D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
self
/
root
/
usr
/
local
/
psa
/
admin
/
htdocs
/
modules
/
wp-toolkit
/
js
/
Filename :
app.bundle.js
back
Copy
/*! For license information please see app.bundle.js.LICENSE.txt */ var wptMain;(()=>{var e,t,n,s,i={6672:e=>{e.exports={CLS_PREFIX:"pul-wp-toolkit-",Z_INDEX_POPOVER:1035,Z_INDEX_DROPDOWN:1035,Z_INDEX_OVERLAY:1050,Z_INDEX_TOASTER:1055,Z_INDEX_TOOLTIP:1060}},17:e=>{e.exports={CLS_PREFIX:"pul-wp-toolkit-",Z_INDEX_POPOVER:1035,Z_INDEX_DROPDOWN:1035,Z_INDEX_OVERLAY:1050,Z_INDEX_TOASTER:1055,Z_INDEX_TOOLTIP:1060}},84842:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>Me,CompositeItem:()=>Le,FloatingArrow:()=>Ne,FloatingDelayGroup:()=>tt,FloatingFocusManager:()=>Ut,FloatingList:()=>je,FloatingNode:()=>We,FloatingOverlay:()=>Yt,FloatingPortal:()=>Dt,FloatingTree:()=>ze,arrow:()=>se,autoPlacement:()=>ee,autoUpdate:()=>B.ll,computePosition:()=>B.rD,detectOverflow:()=>B.__,flip:()=>J,getOverflowAncestors:()=>a.v9,hide:()=>te,inline:()=>ne,inner:()=>bn,limitShift:()=>Q,offset:()=>K,platform:()=>B.iD,safePolygon:()=>xn,shift:()=>X,size:()=>Z,useClick:()=>Vt,useClientPoint:()=>Wt,useDelayGroup:()=>nt,useDelayGroupContext:()=>et,useDismiss:()=>Kt,useFloating:()=>Qt,useFloatingNodeId:()=>$e,useFloatingParentNodeId:()=>Be,useFloatingPortalNode:()=>Ct,useFloatingRootContext:()=>Xt,useFloatingTree:()=>Ve,useFocus:()=>Jt,useHover:()=>Qe,useId:()=>Ue,useInnerOffset:()=>vn,useInteractions:()=>nn,useListItem:()=>Te,useListNavigation:()=>ln,useMergeRefs:()=>ie,useRole:()=>un,useTransitionStatus:()=>hn,useTransitionStyles:()=>mn,useTypeahead:()=>fn});var s=n(96540),i=n.t(s,2),a=n(86635);function r(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function o(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function l(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function c(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function u(e){return!(0!==e.mozInputSource||!e.isTrusted)||(h()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function d(e){return!c().includes("jsdom/")&&(!h()&&0===e.width&&0===e.height||h()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function p(){return/apple/i.test(navigator.vendor)}function h(){const e=/android/i;return e.test(l())||e.test(c())}function m(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function f(e){return(null==e?void 0:e.ownerDocument)||document}function g(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function b(e){return"composedPath"in e?e.composedPath()[0]:e.target}const v="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function y(e){return(0,a.sb)(e)&&e.matches(v)}function x(e){e.preventDefault(),e.stopPropagation()}function _(e){return!!e&&"combobox"===e.getAttribute("role")&&y(e)}var S=n(97193),w=n(74848),k=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),j="undefined"==typeof Element,T=j?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,C=!j&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},D=function e(t,n){var s;void 0===n&&(n=!0);var i=null==t||null===(s=t.getAttribute)||void 0===s?void 0:s.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},P=function e(t,n,s){for(var i=[],a=Array.from(t);a.length;){var r=a.shift();if(!D(r,!1))if("SLOT"===r.tagName){var o=r.assignedElements(),l=e(o.length?o:r.children,!0,s);s.flatten?i.push.apply(i,l):i.push({scopeParent:r,candidates:l})}else{T.call(r,k)&&s.filter(r)&&(n||!t.includes(r))&&i.push(r);var c=r.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(r),u=!D(c,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(r));if(c&&u){var d=e(!0===c?r.children:c.children,!0,s);s.flatten?i.push.apply(i,d):i.push({scopeParent:r,candidates:d})}else a.unshift.apply(a,r.children)}}return i},O=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},I=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!O(e)?0:e.tabIndex},M=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},L=function(e){return"INPUT"===e.tagName},A=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return 0===n&&0===s},E=function(e,t){return!(t.disabled||D(t)||function(e){return L(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=T.call(e,"details>summary:first-of-type")?e.parentElement:e;if(T.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return A(e)}else{if("function"==typeof s){for(var a=e;e;){var r=e.parentElement,o=C(e);if(r&&!r.shadowRoot&&!0===s(r))return A(e);e=e.assignedSlot?e.assignedSlot:r||o===e.ownerDocument?r:o.host}e=a}if(function(e){var t,n,s,i,a=e&&C(e),r=null===(t=a)||void 0===t?void 0:t.host,o=!1;if(a&&a!==e)for(o=!!(null!==(n=r)&&void 0!==n&&null!==(s=n.ownerDocument)&&void 0!==s&&s.contains(r)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!o&&r;){var l,c,u;o=!(null===(c=r=null===(l=a=C(r))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(r))}return o}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if("LEGEND"===s.tagName)return!!T.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},R=function(e,t){return!(function(e){return function(e){return L(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||C(e),s=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=s(window.CSS.escape(e.name));else try{t=s(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||I(t)<0||!E(e,t))},U=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},N=function e(t){var n=[],s=[];return t.forEach((function(t,i){var a=!!t.scopeParent,r=a?t.scopeParent:t,o=function(e,t){var n=I(e);return n<0&&t&&!O(e)?0:n}(r,a),l=a?e(t.candidates):r;0===o?a?n.push.apply(n,l):n.push(r):s.push({documentOrder:i,tabIndex:o,item:t,isScope:a,content:l})})),s.sort(M).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},F=function(e,t){var n;return n=(t=t||{}).getShadowRoot?P([e],t.includeContainer,{filter:R.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:U}):function(e,t,n){if(D(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(k));return t&&T.call(e,k)&&s.unshift(e),s.filter(n)}(e,t.includeContainer,R.bind(null,t)),N(n)},Y=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==T.call(e,k)&&R(t,e)},H=n(40961),B=n(46885),V="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function $(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,s,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;0!=s--;)if(!$(e[s],t[s]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(s=n;0!=s--;)if(!{}.hasOwnProperty.call(t,i[s]))return!1;for(s=n;0!=s--;){const n=i[s];if(!("_owner"===n&&e.$$typeof||$(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function W(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z(e,t){const n=W(e);return Math.round(t*n)/n}function q(e){const t=s.useRef(e);return V((()=>{t.current=e})),t}const G=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:s}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,B.UE)({element:n.current,padding:s}).fn(t):{}:n?(0,B.UE)({element:n,padding:s}).fn(t):{};var i}}),K=(e,t)=>({...(0,B.cY)(e),options:[e,t]}),X=(e,t)=>({...(0,B.BN)(e),options:[e,t]}),Q=(e,t)=>({...(0,B.ER)(e),options:[e,t]}),J=(e,t)=>({...(0,B.UU)(e),options:[e,t]}),Z=(e,t)=>({...(0,B.Ej)(e),options:[e,t]}),ee=(e,t)=>({...(0,B.RK)(e),options:[e,t]}),te=(e,t)=>({...(0,B.jD)(e),options:[e,t]}),ne=(e,t)=>({...(0,B.mG)(e),options:[e,t]}),se=(e,t)=>({...G(e),options:[e,t]});function ie(e){return s.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ae={...i},re=ae.useInsertionEffect||(e=>e());function oe(e){const t=s.useRef((()=>{}));return re((()=>{t.current=e})),s.useCallback((function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return null==t.current?void 0:t.current(...n)}),[])}const le="ArrowUp",ce="ArrowDown",ue="ArrowLeft",de="ArrowRight";function pe(e,t,n){return Math.floor(e/t)!==n}function he(e,t){return t<0||t>=e.current.length}function me(e,t){return ge(e,{disabledIndices:t})}function fe(e,t){return ge(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function ge(e,t){let{startingIndex:n=-1,decrement:s=!1,disabledIndices:i,amount:a=1}=void 0===t?{}:t;const r=e.current;let o=n;do{o+=s?-a:a}while(o>=0&&o<=r.length-1&&_e(r,o,i));return o}function be(e,t){let{event:n,orientation:s,loop:i,rtl:a,cols:r,disabledIndices:o,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===le){if(d&&x(n),-1===u)p=c;else if(p=ge(e,{startingIndex:p,amount:r,decrement:!0,disabledIndices:o}),i&&(u-r<l||p<0)){const e=u%r,t=c%r,n=c-(t-e);p=t===e?c:t>e?n:n-r}he(e,p)&&(p=u)}if(n.key===ce&&(d&&x(n),-1===u?p=l:(p=ge(e,{startingIndex:u,amount:r,disabledIndices:o}),i&&u+r>c&&(p=ge(e,{startingIndex:u%r-r,amount:r,disabledIndices:o}))),he(e,p)&&(p=u)),"both"===s){const t=(0,S.RI)(u/r);n.key===(a?ue:de)&&(d&&x(n),u%r!=r-1?(p=ge(e,{startingIndex:u,disabledIndices:o}),i&&pe(p,r,t)&&(p=ge(e,{startingIndex:u-u%r-1,disabledIndices:o}))):i&&(p=ge(e,{startingIndex:u-u%r-1,disabledIndices:o})),pe(p,r,t)&&(p=u)),n.key===(a?de:ue)&&(d&&x(n),u%r!=0?(p=ge(e,{startingIndex:u,decrement:!0,disabledIndices:o}),i&&pe(p,r,t)&&(p=ge(e,{startingIndex:u+(r-u%r),decrement:!0,disabledIndices:o}))):i&&(p=ge(e,{startingIndex:u+(r-u%r),decrement:!0,disabledIndices:o})),pe(p,r,t)&&(p=u));const s=(0,S.RI)(c/r)===t;he(e,p)&&(p=i&&s?n.key===(a?de:ue)?c:ge(e,{startingIndex:u-u%r-1,disabledIndices:o}):u)}return p}function ve(e,t,n){const s=[];let i=0;return e.forEach(((e,a)=>{let{width:r,height:o}=e,l=!1;for(n&&(i=0);!l;){const e=[];for(let n=0;n<r;n++)for(let s=0;s<o;s++)e.push(i+n+s*t);i%t+r<=t&&e.every((e=>null==s[e]))?(e.forEach((e=>{s[e]=a})),l=!0):i++}})),[...s]}function ye(e,t,n,s,i){if(-1===e)return-1;const a=n.indexOf(e),r=t[e];switch(i){case"tl":return a;case"tr":return r?a+r.width-1:a;case"bl":return r?a+(r.height-1)*s:a;case"br":return n.lastIndexOf(e)}}function xe(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function _e(e,t,n){if(n)return n.includes(t);const s=e[t];return null==s||s.hasAttribute("disabled")||"true"===s.getAttribute("aria-disabled")}var Se="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function we(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const ke=s.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function je(e){const{children:t,elementsRef:n,labelsRef:i}=e,[a,r]=s.useState((()=>new Map)),o=s.useCallback((e=>{r((t=>new Map(t).set(e,null)))}),[]),l=s.useCallback((e=>{r((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return Se((()=>{const e=new Map(a);Array.from(e.keys()).sort(we).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e.entries())if(s!==t.get(n))return!1;return!0}(a,e)||r(e)}),[a]),(0,w.jsx)(ke.Provider,{value:s.useMemo((()=>({register:o,unregister:l,map:a,elementsRef:n,labelsRef:i})),[o,l,a,n,i]),children:t})}function Te(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:i,map:a,elementsRef:r,labelsRef:o}=s.useContext(ke),[l,c]=s.useState(null),u=s.useRef(null),d=s.useCallback((e=>{if(u.current=e,null!==l&&(r.current[l]=e,o)){var n;const s=void 0!==t;o.current[l]=s?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,r,o,t]);return Se((()=>{const e=u.current;if(e)return n(e),()=>{i(e)}}),[n,i]),Se((()=>{const e=u.current?a.get(u.current):null;null!=e&&c(e)}),[a]),s.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function Ce(e,t){return"function"==typeof e?e(t):e?s.cloneElement(e,t):(0,w.jsx)("div",{...t})}const De=s.createContext({activeIndex:0,onNavigate:()=>{}}),Pe=[ue,de],Oe=[le,ce],Ie=[...Pe,...Oe],Me=s.forwardRef((function(e,t){const{render:n,orientation:i="both",loop:a=!0,rtl:r=!1,cols:o=1,disabledIndices:l,activeIndex:c,onNavigate:u,itemSizes:d,dense:p=!1,...h}=e,[m,f]=s.useState(0),g=null!=c?c:m,b=oe(null!=u?u:f),v=s.useRef([]),y=n&&"function"!=typeof n?n.props:{},x=s.useMemo((()=>({activeIndex:g,onNavigate:b})),[g,b]),_=o>1,S={...h,...y,ref:t,"aria-orientation":"both"===i?void 0:i,onKeyDown(e){null==h.onKeyDown||h.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ie.includes(e.key))return;let t=g;const n=me(v,l),s=fe(v,l),c=r?ue:de,u=r?de:ue;if(_){const u=d||Array.from({length:v.current.length},(()=>({width:1,height:1}))),h=ve(u,o,p),m=h.findIndex((e=>null!=e&&!_e(v.current,e,l))),f=h.reduce(((e,t,n)=>null==t||_e(v.current,t,l)?e:n),-1),b=h[be({current:h.map((e=>e?v.current[e]:null))},{event:e,orientation:i,loop:a,rtl:r,cols:o,disabledIndices:xe([...l||v.current.map(((e,t)=>_e(v.current,t)?t:void 0)),void 0],h),minIndex:m,maxIndex:f,prevIndex:ye(g>s?n:g,u,h,o,e.key===ce?"bl":e.key===c?"tr":"tl")})];null!=b&&(t=b)}const h={horizontal:[c],vertical:[ce],both:[c,ce]}[i],m={horizontal:[u],vertical:[le],both:[u,le]}[i],f=_?Ie:{horizontal:Pe,vertical:Oe,both:Ie}[i];var y;t===g&&[...h,...m].includes(e.key)&&(t=a&&t===s&&h.includes(e.key)?n:a&&t===n&&m.includes(e.key)?s:ge(v,{startingIndex:t,decrement:m.includes(e.key),disabledIndices:l})),t===g||he(v,t)||(e.stopPropagation(),f.includes(e.key)&&e.preventDefault(),b(t),null==(y=v.current[t])||y.focus())}(e)}};return(0,w.jsx)(De.Provider,{value:x,children:(0,w.jsx)(je,{elementsRef:v,children:Ce(n,S)})})})),Le=s.forwardRef((function(e,t){const{render:n,...i}=e,a=n&&"function"!=typeof n?n.props:{},{activeIndex:r,onNavigate:o}=s.useContext(De),{ref:l,index:c}=Te(),u=ie([l,t,a.ref]),d=r===c;return Ce(n,{...i,...a,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==i.onFocus||i.onFocus(e),null==a.onFocus||a.onFocus(e),o(c)}})}));let Ae=!1,Ee=0;const Re=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ee++,Ue=ae.useId||function(){const[e,t]=s.useState((()=>Ae?Re():void 0));return Se((()=>{null==e&&t(Re())}),[]),s.useEffect((()=>{Ae=!0}),[]),e},Ne=s.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:i},middlewareData:{arrow:r,shift:o}},width:l=14,height:c=7,tipRadius:u=0,strokeWidth:d=0,staticOffset:p,stroke:h,d:m,style:{transform:f,...g}={},...b}=e,v=Ue(),[y,x]=s.useState(!1);if(Se((()=>{i&&"rtl"===(0,a.L9)(i).direction&&x(!0)}),[i]),!i)return null;const[_,S]=n.split("-"),k="top"===_||"bottom"===_;let j=p;(k&&null!=o&&o.x||!k&&null!=o&&o.y)&&(j=null);const T=2*d,C=T/2,D=l/2*(u/-8+1),P=c/2*u/4,O=!!m,I=j&&"end"===S?"bottom":"top";let M=j&&"end"===S?"right":"left";j&&y&&(M="end"===S?"left":"right");const L=null!=(null==r?void 0:r.x)?j||r.x:"",A=null!=(null==r?void 0:r.y)?j||r.y:"",E=m||"M0,0 H"+l+" L"+(l-D)+","+(c-P)+" Q"+l/2+","+c+" "+D+","+(c-P)+" Z",R={top:O?"rotate(180deg)":"",left:O?"rotate(90deg)":"rotate(-90deg)",bottom:O?"":"rotate(180deg)",right:O?"rotate(-90deg)":"rotate(90deg)"}[_];return(0,w.jsxs)("svg",{...b,"aria-hidden":!0,ref:t,width:O?l:l+T,height:l,viewBox:"0 0 "+l+" "+(c>l?c:l),style:{position:"absolute",pointerEvents:"none",[M]:L,[I]:A,[_]:k||O?"100%":"calc(100% - "+T/2+"px)",transform:[R,f].filter((e=>!!e)).join(" "),...g},children:[T>0&&(0,w.jsx)("path",{clipPath:"url(#"+v+")",fill:"none",stroke:h,strokeWidth:T+(m?0:1),d:E}),(0,w.jsx)("path",{stroke:T&&!m?b.fill:"none",d:E}),(0,w.jsx)("clipPath",{id:v,children:(0,w.jsx)("rect",{x:-C,y:C*(O?-1:1),width:l+T,height:l})})]})}));function Fe(){const e=new Map;return{emit(t,n){var s;null==(s=e.get(t))||s.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var s;e.set(t,(null==(s=e.get(t))?void 0:s.filter((e=>e!==n)))||[])}}}const Ye=s.createContext(null),He=s.createContext(null),Be=()=>{var e;return(null==(e=s.useContext(Ye))?void 0:e.id)||null},Ve=()=>s.useContext(He);function $e(e){const t=Ue(),n=Ve(),s=Be(),i=e||s;return Se((()=>{if(!t)return;const e={id:t,parentId:i};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,i]),t}function We(e){const{children:t,id:n}=e,i=Be();return(0,w.jsx)(Ye.Provider,{value:s.useMemo((()=>({id:n,parentId:i})),[n,i]),children:t})}function ze(e){const{children:t}=e,n=s.useRef([]),i=s.useCallback((e=>{n.current=[...n.current,e]}),[]),a=s.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),r=s.useState((()=>Fe()))[0];return(0,w.jsx)(He.Provider,{value:s.useMemo((()=>({nodesRef:n,addNode:i,removeNode:a,events:r})),[i,a,r]),children:t})}function qe(e){return"data-floating-ui-"+e}function Ge(e){const t=(0,s.useRef)(e);return Se((()=>{t.current=e})),t}const Ke=qe("safe-polygon");function Xe(e,t,n){return n&&!m(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Qe(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:r,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:p=null,mouseOnly:h=!1,restMs:g=0,move:b=!0}=t,v=Ve(),y=Be(),x=Ge(p),_=Ge(d),S=Ge(n),w=s.useRef(),k=s.useRef(-1),j=s.useRef(),T=s.useRef(-1),C=s.useRef(!0),D=s.useRef(!1),P=s.useRef((()=>{})),O=s.useRef(!1),I=s.useCallback((()=>{var e;const t=null==(e=r.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[r]);s.useEffect((()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(T.current),C.current=!0,O.current=!1)}}),[u,l]),s.useEffect((()=>{if(!u)return;if(!x.current)return;if(!n)return;function e(e){I()&&i(!1,e,"hover")}const t=f(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[c.floating,n,i,u,x,I]);const M=s.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const s=Xe(_.current,"close",w.current);s&&!j.current?(clearTimeout(k.current),k.current=window.setTimeout((()=>i(!1,e,n)),s)):t&&(clearTimeout(k.current),i(!1,e,n))}),[_,i]),L=oe((()=>{P.current(),j.current=void 0})),A=oe((()=>{if(D.current){const e=f(c.floating).body;e.style.pointerEvents="",e.removeAttribute(Ke),D.current=!1}})),E=oe((()=>!!r.current.openEvent&&["click","mousedown"].includes(r.current.openEvent.type)));s.useEffect((()=>{if(u&&(0,a.vq)(c.domReference)){var e;const i=c.domReference;return n&&i.addEventListener("mouseleave",l),null==(e=c.floating)||e.addEventListener("mouseleave",l),b&&i.addEventListener("mousemove",t,{once:!0}),i.addEventListener("mouseenter",t),i.addEventListener("mouseleave",s),()=>{var e;n&&i.removeEventListener("mouseleave",l),null==(e=c.floating)||e.removeEventListener("mouseleave",l),b&&i.removeEventListener("mousemove",t),i.removeEventListener("mouseenter",t),i.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(k.current),C.current=!1,h&&!m(w.current)||g>0&&!Xe(_.current,"open"))return;const t=Xe(_.current,"open",w.current);t?k.current=window.setTimeout((()=>{S.current||i(!0,e,"hover")}),t):n||i(!0,e,"hover")}function s(e){if(E())return;P.current();const t=f(c.floating);if(clearTimeout(T.current),O.current=!1,x.current&&r.current.floatingContext){n||clearTimeout(k.current),j.current=x.current({...r.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){A(),L(),E()||M(e,!0,"safe-polygon")}});const s=j.current;return t.addEventListener("mousemove",s),void(P.current=()=>{t.removeEventListener("mousemove",s)})}("touch"!==w.current||!o(c.floating,e.relatedTarget))&&M(e)}function l(e){E()||r.current.floatingContext&&(null==x.current||x.current({...r.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){A(),L(),E()||M(e)}})(e))}}),[c,u,e,h,g,b,M,L,A,i,n,S,v,_,x,r,E]),Se((()=>{var e;if(u&&n&&null!=(e=x.current)&&e.__options.blockPointerEvents&&I()){D.current=!0;const e=c.floating;if((0,a.vq)(c.domReference)&&e){var t;const n=f(c.floating).body;n.setAttribute(Ke,"");const s=c.domReference,i=null==v||null==(t=v.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return i&&(i.style.pointerEvents=""),n.style.pointerEvents="none",s.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",s.style.pointerEvents="",e.style.pointerEvents=""}}}}),[u,n,y,c,v,x,I]),Se((()=>{n||(w.current=void 0,O.current=!1,L(),A())}),[n,L,A]),s.useEffect((()=>()=>{L(),clearTimeout(k.current),clearTimeout(T.current),A()}),[u,c.domReference,L,A]);const R=s.useMemo((()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function s(){C.current||S.current||i(!0,t,"hover")}h&&!m(w.current)||n||0===g||O.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(T.current),"touch"===w.current?s():(O.current=!0,T.current=window.setTimeout(s,g)))}}}),[h,i,n,S,g]),U=s.useMemo((()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){E()||M(e.nativeEvent,!1)}})),[M,E]);return s.useMemo((()=>u?{reference:R,floating:U}:{}),[u,R,U])}const Je=()=>{},Ze=s.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Je,setState:Je,isInstantPhase:!1}),et=()=>s.useContext(Ze);function tt(e){const{children:t,delay:n,timeoutMs:i=0}=e,[a,r]=s.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:i,initialDelay:n,currentId:null,isInstantPhase:!1}),o=s.useRef(null),l=s.useCallback((e=>{r({currentId:e})}),[]);return Se((()=>{a.currentId?null===o.current?o.current=a.currentId:a.isInstantPhase||r({isInstantPhase:!0}):(a.isInstantPhase&&r({isInstantPhase:!1}),o.current=null)}),[a.currentId,a.isInstantPhase]),(0,w.jsx)(Ze.Provider,{value:s.useMemo((()=>({...a,setState:r,setCurrentId:l})),[a,l]),children:t})}function nt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:s,floatingId:i}=e,{id:a,enabled:r=!0}=t,o=null!=a?a:i,l=et(),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:h}=l;return Se((()=>{r&&c&&(p({delay:{open:1,close:Xe(d,"close")}}),c!==o&&s(!1))}),[r,o,s,p,c,d]),Se((()=>{function e(){s(!1),p({delay:d,currentId:null})}if(r&&c&&!n&&c===o){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}}),[r,n,p,c,o,s,d,h]),Se((()=>{r&&u!==Je&&n&&u(o)}),[r,n,u,o]),l}let st=0;function it(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:s=!0,sync:i=!1}=t;s&&cancelAnimationFrame(st);const a=()=>null==e?void 0:e.focus({preventScroll:n});i?a():st=requestAnimationFrame(a)}function at(e,t){var n;let s=[],i=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;i;){const t=e.find((e=>e.id===i));i=null==t?void 0:t.parentId,t&&(s=s.concat(t))}return s}function rt(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),s=n;for(;s.length;)s=e.filter((e=>{var t;return null==(t=s)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(s);return n}let ot=new WeakMap,lt=new WeakSet,ct={},ut=0;const dt=()=>"undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,pt=e=>e&&(e.host||pt(e.parentNode)),ht=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=pt(t);return e.contains(n)?n:null})).filter((e=>null!=e));function mt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const s=f(e[0]).body;return function(e,t,n,s){const i="data-floating-ui-inert",r=s?"inert":n?"aria-hidden":null,o=ht(t,e),l=new Set,c=new Set(o),u=[];ct[i]||(ct[i]=new WeakMap);const d=ct[i];return o.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!c.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==(0,a.mq)(t))if(l.has(t))e(t);else{const e=r?t.getAttribute(r):null,n=null!==e&&"false"!==e,s=ot.get(t)||0,a=r?s+1:s,o=(d.get(t)||0)+1;ot.set(t,a),d.set(t,o),u.push(t),1===a&&n&<.add(t),1===o&&t.setAttribute(i,""),!n&&r&&t.setAttribute(r,"true")}}))}(t),l.clear(),ut++,()=>{u.forEach((e=>{const t=ot.get(e)||0,n=r?t-1:t,s=(d.get(e)||0)-1;ot.set(e,n),d.set(e,s),n||(!lt.has(e)&&r&&e.removeAttribute(r),lt.delete(e)),s||e.removeAttribute(i)})),ut--,ut||(ot=new WeakMap,ot=new WeakMap,lt=new WeakSet,ct={})}}(e.concat(Array.from(s.querySelectorAll("[aria-live]"))),s,t,n)}const ft=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function gt(e,t){const n=F(e,ft());"prev"===t&&n.reverse();const s=n.indexOf(r(f(e)));return n.slice(s+1)[0]}function bt(){return gt(document.body,"next")}function vt(){return gt(document.body,"prev")}function yt(e,t){const n=t||e.currentTarget,s=e.relatedTarget;return!s||!o(n,s)}function xt(e){F(e,ft()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function _t(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const St={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function wt(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const kt=s.forwardRef((function(e,t){const[n,i]=s.useState();Se((()=>(p()&&i("button"),document.addEventListener("keydown",wt),()=>{document.removeEventListener("keydown",wt)})),[]);const a={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[qe("focus-guard")]:"",style:St};return(0,w.jsx)("span",{...e,...a})})),jt=s.createContext(null),Tt=qe("portal");function Ct(e){void 0===e&&(e={});const{id:t,root:n}=e,i=Ue(),r=Pt(),[o,l]=s.useState(null),c=s.useRef(null);return Se((()=>()=>{null==o||o.remove(),queueMicrotask((()=>{c.current=null}))}),[o]),Se((()=>{if(!i)return;if(c.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=i,n.setAttribute(Tt,""),e.appendChild(n),c.current=n,l(n)}),[t,i]),Se((()=>{if(null===n)return;if(!i)return;if(c.current)return;let e=n||(null==r?void 0:r.portalNode);e&&!(0,a.vq)(e)&&(e=e.current),e=e||document.body;let s=null;t&&(s=document.createElement("div"),s.id=t,e.appendChild(s));const o=document.createElement("div");o.id=i,o.setAttribute(Tt,""),e=s||e,e.appendChild(o),c.current=o,l(o)}),[t,n,i,r]),o}function Dt(e){const{children:t,id:n,root:i,preserveTabOrder:a=!0}=e,r=Ct({id:n,root:i}),[o,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),h=null==o?void 0:o.modal,m=null==o?void 0:o.open,f=!!o&&!o.modal&&o.open&&a&&!(!i&&!r);return s.useEffect((()=>{if(r&&a&&!h)return r.addEventListener("focusin",e,!0),r.addEventListener("focusout",e,!0),()=>{r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)};function e(e){r&&yt(e)&&("focusin"===e.type?_t:xt)(r)}}),[r,a,h]),s.useEffect((()=>{r&&(m||_t(r))}),[m,r]),(0,w.jsxs)(jt.Provider,{value:s.useMemo((()=>({preserveTabOrder:a,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:r,setFocusManagerState:l})),[a,r]),children:[f&&r&&(0,w.jsx)(kt,{"data-type":"outside",ref:c,onFocus:e=>{if(yt(e,r)){var t;null==(t=d.current)||t.focus()}else{const e=vt()||(null==o?void 0:o.domReference);null==e||e.focus()}}}),f&&r&&(0,w.jsx)("span",{"aria-owns":r.id,style:St}),r&&H.createPortal(t,r),f&&r&&(0,w.jsx)(kt,{"data-type":"outside",ref:u,onFocus:e=>{if(yt(e,r)){var t;null==(t=p.current)||t.focus()}else{const t=bt()||(null==o?void 0:o.domReference);null==t||t.focus(),(null==o?void 0:o.closeOnFocusOut)&&(null==o||o.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const Pt=()=>s.useContext(jt),Ot="data-floating-ui-focusable";function It(e){return e?e.hasAttribute(Ot)?e:e.querySelector("["+Ot+"]")||e:null}const Mt=20;let Lt=[];function At(e){Lt=Lt.filter((e=>e.isConnected)),e&&"body"!==(0,a.mq)(e)&&(Lt.push(e),Lt.length>Mt&&(Lt=Lt.slice(-Mt)))}function Et(){return Lt.slice().reverse().find((e=>e.isConnected))}const Rt=s.forwardRef((function(e,t){return(0,w.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:St})}));function Ut(e){const{context:t,children:n,disabled:i=!1,order:l=["content"],guards:c=!0,initialFocus:p=0,returnFocus:h=!0,restoreFocus:m=!1,modal:g=!0,visuallyHiddenDismiss:v=!1,closeOnFocusOut:y=!0,outsideElementsInert:S=!1}=e,{open:k,onOpenChange:j,events:T,dataRef:C,elements:{domReference:D,floating:P}}=t,O=oe((()=>{var e;return null==(e=C.current.floatingContext)?void 0:e.nodeId})),I="number"==typeof p&&p<0,M=_(D)&&I,L=dt(),A=!L||c,E=!A||L&&S,R=Ge(l),U=Ge(p),N=Ge(h),H=Ve(),B=Pt(),V=s.useRef(null),$=s.useRef(null),W=s.useRef(!1),z=s.useRef(!1),q=s.useRef(-1),G=null!=B,K=It(P),X=oe((function(e){return void 0===e&&(e=K),e?F(e,ft()):[]})),Q=oe((e=>{const t=X(e);return R.current.map((e=>D&&"reference"===e?D:K&&"floating"===e?K:t)).filter(Boolean).flat()}));s.useEffect((()=>{if(i)return;if(!g)return;function e(e){if("Tab"===e.key){o(K,r(f(K)))&&0===X().length&&!M&&x(e);const t=Q(),n=b(e);"reference"===R.current[0]&&n===D&&(x(e),e.shiftKey?it(t[t.length-1]):it(t[1])),"floating"===R.current[1]&&n===K&&e.shiftKey&&(x(e),it(t[0]))}}const t=f(K);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[i,D,K,g,R,M,X,Q]),s.useEffect((()=>{if(!i&&P)return P.addEventListener("focusin",e),()=>{P.removeEventListener("focusin",e)};function e(e){const t=b(e),n=X().indexOf(t);-1!==n&&(q.current=n)}}),[i,P,X]),s.useEffect((()=>{if(!i&&y)return P&&(0,a.sb)(D)?(D.addEventListener("focusout",t),D.addEventListener("pointerdown",e),P.addEventListener("focusout",t),()=>{D.removeEventListener("focusout",t),D.removeEventListener("pointerdown",e),P.removeEventListener("focusout",t)}):void 0;function e(){z.current=!0,setTimeout((()=>{z.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=O(),s=!(o(D,t)||o(P,t)||o(t,P)||o(null==B?void 0:B.portalNode,t)||null!=t&&t.hasAttribute(qe("focus-guard"))||H&&(rt(H.nodesRef.current,n).find((e=>{var n,s;return o(null==(n=e.context)?void 0:n.elements.floating,t)||o(null==(s=e.context)?void 0:s.elements.domReference,t)}))||at(H.nodesRef.current,n).find((e=>{var n,s,i;return[null==(n=e.context)?void 0:n.elements.floating,It(null==(s=e.context)?void 0:s.elements.floating)].includes(t)||(null==(i=e.context)?void 0:i.elements.domReference)===t}))));if(m&&s&&r(f(K))===f(K).body){(0,a.sb)(K)&&K.focus();const e=q.current,t=X(),n=t[e]||t[t.length-1]||K;(0,a.sb)(n)&&n.focus()}!M&&g||!t||!s||z.current||t===Et()||(W.current=!0,j(!1,e,"focus-out"))}))}}),[i,D,P,K,g,H,B,j,y,m,X,M,O]);const J=s.useRef(null),Z=s.useRef(null),ee=ie([J,null==B?void 0:B.beforeInsideRef]),te=ie([Z,null==B?void 0:B.afterInsideRef]);function ne(e){return!i&&v&&g?(0,w.jsx)(Rt,{ref:"start"===e?V:$,onClick:e=>j(!1,e.nativeEvent),children:"string"==typeof v?v:"Dismiss"}):null}s.useEffect((()=>{var e;if(i)return;if(!P)return;const t=Array.from((null==B||null==(e=B.portalNode)?void 0:e.querySelectorAll("["+qe("portal")+"]"))||[]),n=H&&!g?at(null==H?void 0:H.nodesRef.current,O()).map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],s=[P,...t,...n,V.current,$.current,J.current,Z.current,null==B?void 0:B.beforeOutsideRef.current,null==B?void 0:B.afterOutsideRef.current,R.current.includes("reference")||M?D:null].filter((e=>null!=e)),a=g||M?mt(s,!E,E):mt(s);return()=>{a()}}),[i,D,P,g,R,B,M,A,E,H,O]),Se((()=>{if(i||!(0,a.sb)(K))return;const e=r(f(K));queueMicrotask((()=>{const t=Q(K),n=U.current,s=("number"==typeof n?t[n]:n.current)||K,i=o(K,e);I||i||!k||it(s,{preventScroll:s===K})}))}),[i,k,K,I,Q,U]),Se((()=>{if(i||!K)return;let e=!1;const t=f(K),n=r(t);let s=C.current.openEvent;function l(t){let{open:n,reason:i,event:a,nested:r}=t;n&&(s=a),"escape-key"===i&&D&&At(D),["hover","safe-polygon"].includes(i)&&"mouseleave"===a.type&&(W.current=!0),"outside-press"===i&&(r?(W.current=!1,e=!0):W.current=!(u(a)||d(a)))}At(n),T.on("openchange",l);const c=t.createElement("span");return c.setAttribute("tabindex","-1"),c.setAttribute("aria-hidden","true"),Object.assign(c.style,St),G&&D&&D.insertAdjacentElement("afterend",c),()=>{T.off("openchange",l);const n=r(t),i=o(P,n)||H&&rt(H.nodesRef.current,O()).some((e=>{var t;return o(null==(t=e.context)?void 0:t.elements.floating,n)}));(i||s&&["click","mousedown"].includes(s.type))&&D&&At(D);const u="boolean"==typeof N.current?Et()||c:N.current.current||c;queueMicrotask((()=>{const s=function(e){const t=ft();return Y(e,t)?e:F(e,t)[0]||e}(u);N.current&&!W.current&&(0,a.sb)(s)&&(s===n||n===t.body||i)&&s.focus({preventScroll:e}),c.remove()}))}}),[i,P,K,N,C,T,H,G,D,O]),s.useEffect((()=>{queueMicrotask((()=>{W.current=!1}))}),[i]),Se((()=>{if(!i&&B)return B.setFocusManagerState({modal:g,closeOnFocusOut:y,open:k,onOpenChange:j,domReference:D}),()=>{B.setFocusManagerState(null)}}),[i,B,g,k,j,y,D]),Se((()=>{if(i)return;if(!K)return;if("function"!=typeof MutationObserver)return;if(I)return;const e=()=>{const e=K.getAttribute("tabindex"),t=X(),n=r(f(P)),s=t.indexOf(n);-1!==s&&(q.current=s),R.current.includes("floating")||n!==D&&0===t.length?"0"!==e&&K.setAttribute("tabindex","0"):"-1"!==e&&K.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(K,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[i,P,K,D,R,X,I]);const se=!i&&A&&(!g||!M)&&(G||g);return(0,w.jsxs)(w.Fragment,{children:[se&&(0,w.jsx)(kt,{"data-type":"inside",ref:ee,onFocus:e=>{if(g){const e=Q();it("reference"===l[0]?e[0]:e[e.length-1])}else if(null!=B&&B.preserveTabOrder&&B.portalNode)if(W.current=!1,yt(e,B.portalNode)){const e=bt()||D;null==e||e.focus()}else{var t;null==(t=B.beforeOutsideRef.current)||t.focus()}}}),!M&&ne("start"),n,ne("end"),se&&(0,w.jsx)(kt,{"data-type":"inside",ref:te,onFocus:e=>{if(g)it(Q()[0]);else if(null!=B&&B.preserveTabOrder&&B.portalNode)if(y&&(W.current=!0),yt(e,B.portalNode)){const e=vt()||D;null==e||e.focus()}else{var t;null==(t=B.afterOutsideRef.current)||t.focus()}}})]})}let Nt=0,Ft=()=>{};const Yt=s.forwardRef((function(e,t){const{lockScroll:n=!1,...s}=e;return Se((()=>{if(n)return Nt++,1===Nt&&(Ft=function(){const e=/iP(hone|ad|od)|iOS/.test(l()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",s=window.innerWidth-document.documentElement.clientWidth,i=t.left?parseFloat(t.left):window.scrollX,a=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",s&&(t[n]=s+"px"),e){var r,o;const e=(null==(r=window.visualViewport)?void 0:r.offsetLeft)||0,n=(null==(o=window.visualViewport)?void 0:o.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(a-Math.floor(n))+"px",left:-(i-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(i,a))}}()),()=>{Nt--,0===Nt&&Ft()}}),[n]),(0,w.jsx)("div",{ref:t,...s,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}})}));function Ht(e){return(0,a.sb)(e.target)&&"BUTTON"===e.target.tagName}function Bt(e){return y(e)}function Vt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,dataRef:a,elements:{domReference:r}}=e,{enabled:o=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,h=s.useRef(),f=s.useRef(!1),g=s.useMemo((()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==l&&(m(t,!0)&&u||(!n||!c||a.current.openEvent&&p&&"mousedown"!==a.current.openEvent.type?(e.preventDefault(),i(!0,e.nativeEvent,"click")):i(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===l&&h.current?h.current=void 0:m(t,!0)&&u||(!n||!c||a.current.openEvent&&p&&"click"!==a.current.openEvent.type?i(!0,e.nativeEvent,"click"):i(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!d||Ht(e)||(" "!==e.key||Bt(r)||(e.preventDefault(),f.current=!0),"Enter"===e.key&&i(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Ht(e)||Bt(r)||" "===e.key&&f.current&&(f.current=!1,i(!n||!c,e.nativeEvent,"click"))}})),[a,r,l,u,d,i,n,p,c]);return s.useMemo((()=>o?{reference:g}:{}),[o,g])}function $t(e){return null!=e&&null!=e.clientX}function Wt(e,t){void 0===t&&(t={});const{open:n,dataRef:i,elements:{floating:r,domReference:l},refs:c}=e,{enabled:u=!0,axis:d="both",x:p=null,y:h=null}=t,f=s.useRef(!1),g=s.useRef(null),[v,y]=s.useState(),[x,_]=s.useState([]),S=oe(((e,t)=>{f.current||i.current.openEvent&&!$t(i.current.openEvent)||c.setPositionReference(function(e,t){let n=null,s=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){var a;const r=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},o="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(a=t.dataRef.current.openEvent)?void 0:a.type)||"")&&"touch"!==t.pointerType;let u=r.width,d=r.height,p=r.x,h=r.y;return null==n&&t.x&&o&&(n=r.x-t.x),null==s&&t.y&&l&&(s=r.y-t.y),p-=n||0,h-=s||0,u=0,d=0,!i||c?(u="y"===t.axis?r.width:0,d="x"===t.axis?r.height:0,p=o&&null!=t.x?t.x:p,h=l&&null!=t.y?t.y:h):i&&!c&&(d="x"===t.axis?r.height:d,u="y"===t.axis?r.width:u),i=!0,{width:u,height:d,x:p,y:h,top:h,right:p+u,bottom:h+d,left:p}}}}(l,{x:e,y:t,axis:d,dataRef:i,pointerType:v}))})),w=oe((e=>{null==p&&null==h&&(n?g.current||_([]):S(e.clientX,e.clientY))})),k=m(v)?r:n,j=s.useCallback((()=>{if(!k||!u||null!=p||null!=h)return;const e=(0,a.zk)(r);function t(n){const s=b(n);o(r,s)?(e.removeEventListener("mousemove",t),g.current=null):S(n.clientX,n.clientY)}if(!i.current.openEvent||$t(i.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),g.current=null};return g.current=n,n}c.setPositionReference(l)}),[k,u,p,h,r,i,c,l,S]);s.useEffect((()=>j()),[j,x]),s.useEffect((()=>{u&&!r&&(f.current=!1)}),[u,r]),s.useEffect((()=>{!u&&n&&(f.current=!0)}),[u,n]),Se((()=>{!u||null==p&&null==h||(f.current=!1,S(p,h))}),[u,p,h,S]);const T=s.useMemo((()=>{function e(e){let{pointerType:t}=e;y(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}}),[w]);return s.useMemo((()=>u?{reference:T}:{}),[u,T])}const zt={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},qt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Gt=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Kt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,elements:r,dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:p="pointerdown",referencePress:h=!1,referencePressEvent:m="pointerdown",ancestorScroll:v=!1,bubbles:y,capture:x}=t,_=Ve(),S=oe("function"==typeof d?d:()=>!1),w="function"==typeof d?S:d,k=s.useRef(!1),j=s.useRef(!1),{escapeKey:T,outsidePress:C}=Gt(y),{escapeKey:D,outsidePress:P}=Gt(x),O=s.useRef(!1),I=oe((e=>{var t;if(!n||!c||!u||"Escape"!==e.key)return;if(O.current)return;const s=null==(t=l.current.floatingContext)?void 0:t.nodeId,a=_?rt(_.nodesRef.current,s):[];if(!T&&(e.stopPropagation(),a.length>0)){let e=!0;if(a.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}i(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),M=oe((e=>{var t;const n=()=>{var t;I(e),null==(t=b(e))||t.removeEventListener("keydown",n)};null==(t=b(e))||t.addEventListener("keydown",n)})),L=oe((e=>{var t;const n=k.current;k.current=!1;const s=j.current;if(j.current=!1,"click"===p&&s)return;if(n)return;if("function"==typeof w&&!w(e))return;const c=b(e),u="["+qe("inert")+"]",d=f(r.floating).querySelectorAll(u);let h=(0,a.vq)(c)?c:null;for(;h&&!(0,a.eu)(h);){const e=(0,a.$4)(h);if((0,a.eu)(e)||!(0,a.vq)(e))break;h=e}if(d.length&&(0,a.vq)(c)&&!c.matches("html,body")&&!o(c,r.floating)&&Array.from(d).every((e=>!o(h,e))))return;if((0,a.sb)(c)&&R){const t=(0,a.eu)(c),n=(0,a.L9)(c),s=/auto|scroll/,i=t||s.test(n.overflowX),r=t||s.test(n.overflowY),o=i&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,l=r&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,u="rtl"===n.direction,d=l&&(u?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),p=o&&e.offsetY>c.clientHeight;if(d||p)return}const m=null==(t=l.current.floatingContext)?void 0:t.nodeId,v=_&&rt(_.nodesRef.current,m).some((t=>{var n;return g(e,null==(n=t.context)?void 0:n.elements.floating)}));if(g(e,r.floating)||g(e,r.domReference)||v)return;const y=_?rt(_.nodesRef.current,m):[];if(y.length>0){let e=!0;if(y.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}i(!1,e,"outside-press")})),A=oe((e=>{var t;const n=()=>{var t;L(e),null==(t=b(e))||t.removeEventListener(p,n)};null==(t=b(e))||t.addEventListener(p,n)}));s.useEffect((()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=T,l.current.__outsidePressBubbles=C;let e=-1;function t(e){i(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),O.current=!0}function o(){e=window.setTimeout((()=>{O.current=!1}),(0,a.Tc)()?5:0)}const d=f(r.floating);u&&(d.addEventListener("keydown",D?M:I,D),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",o)),w&&d.addEventListener(p,P?A:L,P);let h=[];return v&&((0,a.vq)(r.domReference)&&(h=(0,a.v9)(r.domReference)),(0,a.vq)(r.floating)&&(h=h.concat((0,a.v9)(r.floating))),!(0,a.vq)(r.reference)&&r.reference&&r.reference.contextElement&&(h=h.concat((0,a.v9)(r.reference.contextElement)))),h=h.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),h.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{u&&(d.removeEventListener("keydown",D?M:I,D),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",o)),w&&d.removeEventListener(p,P?A:L,P),h.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[l,r,u,w,p,n,i,v,c,T,C,I,D,M,L,P,A]),s.useEffect((()=>{k.current=!1}),[w,p]);const E=s.useMemo((()=>({onKeyDown:I,...h&&{[zt[m]]:e=>{i(!1,e.nativeEvent,"reference-press")},..."click"!==m&&{onClick(e){i(!1,e.nativeEvent,"reference-press")}}}})),[I,i,h,m]),R=s.useMemo((()=>({onKeyDown:I,onMouseDown(){j.current=!0},onMouseUp(){j.current=!0},[qt[p]]:()=>{k.current=!0}})),[I,p]);return s.useMemo((()=>c?{reference:E,floating:R}:{}),[c,E,R])}function Xt(e){const{open:t=!1,onOpenChange:n,elements:i}=e,a=Ue(),r=s.useRef({}),[o]=s.useState((()=>Fe())),l=null!=Be(),[c,u]=s.useState(i.reference),d=oe(((e,t,s)=>{r.current.openEvent=e?t:void 0,o.emit("openchange",{open:e,event:t,reason:s,nested:l}),null==n||n(e,t,s)})),p=s.useMemo((()=>({setPositionReference:u})),[]),h=s.useMemo((()=>({reference:c||i.reference||null,floating:i.floating||null,domReference:i.reference})),[c,i.reference,i.floating]);return s.useMemo((()=>({dataRef:r,open:t,onOpenChange:d,elements:h,events:o,floatingId:a,refs:p})),[t,d,h,o,a,p])}function Qt(e){void 0===e&&(e={});const{nodeId:t}=e,n=Xt({...e,elements:{reference:null,floating:null,...e.elements}}),i=e.rootContext||n,r=i.elements,[o,l]=s.useState(null),[c,u]=s.useState(null),d=(null==r?void 0:r.domReference)||o,p=s.useRef(null),h=Ve();Se((()=>{d&&(p.current=d)}),[d]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:r,floating:o}={},transform:l=!0,whileElementsMounted:c,open:u}=e,[d,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=s.useState(i);$(h,i)||m(i);const[f,g]=s.useState(null),[b,v]=s.useState(null),y=s.useCallback((e=>{e!==w.current&&(w.current=e,g(e))}),[]),x=s.useCallback((e=>{e!==k.current&&(k.current=e,v(e))}),[]),_=r||f,S=o||b,w=s.useRef(null),k=s.useRef(null),j=s.useRef(d),T=null!=c,C=q(c),D=q(a),P=q(u),O=s.useCallback((()=>{if(!w.current||!k.current)return;const e={placement:t,strategy:n,middleware:h};D.current&&(e.platform=D.current),(0,B.rD)(w.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};I.current&&!$(j.current,t)&&(j.current=t,H.flushSync((()=>{p(t)})))}))}),[h,t,n,D,P]);V((()=>{!1===u&&j.current.isPositioned&&(j.current.isPositioned=!1,p((e=>({...e,isPositioned:!1}))))}),[u]);const I=s.useRef(!1);V((()=>(I.current=!0,()=>{I.current=!1})),[]),V((()=>{if(_&&(w.current=_),S&&(k.current=S),_&&S){if(C.current)return C.current(_,S,O);O()}}),[_,S,O,C,T]);const M=s.useMemo((()=>({reference:w,floating:k,setReference:y,setFloating:x})),[y,x]),L=s.useMemo((()=>({reference:_,floating:S})),[_,S]),A=s.useMemo((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=z(L.floating,d.x),s=z(L.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+s+"px)",...W(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:s}}),[n,l,L.floating,d.x,d.y]);return s.useMemo((()=>({...d,update:O,refs:M,elements:L,floatingStyles:A})),[d,O,M,L,A])}({...e,elements:{...r,...c&&{reference:c}}}),f=s.useCallback((e=>{const t=(0,a.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),m.refs.setReference(t)}),[m.refs]),g=s.useCallback((e=>{((0,a.vq)(e)||null===e)&&(p.current=e,l(e)),((0,a.vq)(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!(0,a.vq)(e))&&m.refs.setReference(e)}),[m.refs]),b=s.useMemo((()=>({...m.refs,setReference:g,setPositionReference:f,domReference:p})),[m.refs,g,f]),v=s.useMemo((()=>({...m.elements,domReference:d})),[m.elements,d]),y=s.useMemo((()=>({...m,...i,refs:b,elements:v,nodeId:t})),[m,b,v,t,i]);return Se((()=>{i.dataRef.current.floatingContext=y;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),s.useMemo((()=>({...m,context:y,refs:b,elements:v})),[m,b,v,y])}function Jt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:i,events:c,dataRef:u,elements:h}=e,{enabled:m=!0,visibleOnly:g=!0}=t,v=s.useRef(!1),x=s.useRef(),_=s.useRef(!0);s.useEffect((()=>{if(!m)return;const e=(0,a.zk)(h.domReference);function t(){!n&&(0,a.sb)(h.domReference)&&h.domReference===r(f(h.domReference))&&(v.current=!0)}function s(){_.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",s,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",s,!0)}}),[h.domReference,n,m]),s.useEffect((()=>{if(m)return c.on("openchange",e),()=>{c.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(v.current=!0)}}),[c,m]),s.useEffect((()=>()=>{clearTimeout(x.current)}),[]);const S=s.useMemo((()=>({onPointerDown(e){d(e.nativeEvent)||(_.current=!1)},onMouseLeave(){v.current=!1},onFocus(e){if(v.current)return;const t=b(e.nativeEvent);if(g&&(0,a.vq)(t))try{if(p()&&l().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!_.current&&!y(t))return}i(!0,e.nativeEvent,"focus")},onBlur(e){v.current=!1;const t=e.relatedTarget,n=e.nativeEvent,s=(0,a.vq)(t)&&t.hasAttribute(qe("focus-guard"))&&"outside"===t.getAttribute("data-type");x.current=window.setTimeout((()=>{var e;const a=r(h.domReference?h.domReference.ownerDocument:document);(t||a!==h.domReference)&&(o(null==(e=u.current.floatingContext)?void 0:e.refs.floating.current,a)||o(h.domReference,a)||s||i(!1,n,"focus"))}))}})),[u,h.domReference,i,g]);return s.useMemo((()=>m?{reference:S}:{}),[m,S])}const Zt="active",en="selected";function tn(e,t,n){const s=new Map,i="item"===n;let a=e;if(i&&e){const{[Zt]:t,[en]:n,...s}=e;a=s}return{..."floating"===n&&{tabIndex:-1,[Ot]:""},...a,...t.map((t=>{const s=t?t[n]:null;return"function"==typeof s?e?s(e):null:s})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,a]=t;var r;i&&[Zt,en].includes(n)||(0===n.indexOf("on")?(s.has(n)||s.set(n,[]),"function"==typeof a&&(null==(r=s.get(n))||r.push(a),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];return null==(e=s.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=a)})),e):e),{})}}function nn(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),i=e.map((e=>null==e?void 0:e.item)),a=s.useCallback((t=>tn(t,e,"reference")),t),r=s.useCallback((t=>tn(t,e,"floating")),n),o=s.useCallback((t=>tn(t,e,"item")),i);return s.useMemo((()=>({getReferenceProps:a,getFloatingProps:r,getItemProps:o})),[a,r,o])}function sn(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function an(e,t){return sn(t,e===le||e===ce,e===ue||e===de)}function rn(e,t,n){return sn(t,e===ce,n?e===ue:e===de)||"Enter"===e||" "===e||""===e}function on(e,t,n){return sn(t,n?e===de:e===ue,e===le)}function ln(e,t){const{open:n,onOpenChange:i,elements:l}=e,{listRef:c,activeIndex:p,onNavigate:h=()=>{},enabled:m=!0,selectedIndex:g=null,allowEscape:b=!1,loop:v=!1,nested:y=!1,rtl:S=!1,virtual:w=!1,focusItemOnOpen:k="auto",focusItemOnHover:j=!0,openOnArrowKeyDown:T=!0,disabledIndices:C,orientation:D="vertical",cols:P=1,scrollItemIntoView:O=!0,virtualItemRef:I,itemSizes:M,dense:L=!1}=t,A=Ge(It(l.floating)),E=Be(),R=Ve(),U=oe((()=>{h(-1===Y.current?null:Y.current)})),N=_(l.domReference),F=s.useRef(k),Y=s.useRef(null!=g?g:-1),H=s.useRef(null),B=s.useRef(!0),V=s.useRef(U),$=s.useRef(!!l.floating),W=s.useRef(n),z=s.useRef(!1),q=s.useRef(!1),G=Ge(C),K=Ge(n),X=Ge(O),Q=Ge(g),[J,Z]=s.useState(),[ee,te]=s.useState(),ne=oe((()=>{function e(e){w?(Z(e.id),null==R||R.events.emit("virtualfocus",e),I&&(I.current=e)):it(e,{sync:z.current,preventScroll:!0})}const t=c.current[Y.current];t&&e(t),(z.current?e=>e():requestAnimationFrame)((()=>{const n=c.current[Y.current]||t;if(!n)return;t||e(n);const s=X.current;s&&ie&&(q.current||!B.current)&&(null==n.scrollIntoView||n.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));Se((()=>{m&&(n&&l.floating?F.current&&null!=g&&(q.current=!0,Y.current=g,U()):$.current&&(Y.current=-1,V.current()))}),[m,n,l.floating,g,U]),Se((()=>{if(m&&n&&l.floating)if(null==p){if(z.current=!1,null!=Q.current)return;if($.current&&(Y.current=-1,ne()),(!W.current||!$.current)&&F.current&&(null!=H.current||!0===F.current&&null==H.current)){let e=0;const t=()=>{null==c.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(Y.current=null==H.current||rn(H.current,D,S)||y?me(c,G.current):fe(c,G.current),H.current=null,U())};t()}}else he(c,p)||(Y.current=p,ne(),q.current=!1)}),[m,n,l.floating,p,Q,y,c,D,S,U,ne,G]),Se((()=>{var e;if(!m||l.floating||!R||w||!$.current)return;const t=R.nodesRef.current,n=null==(e=t.find((e=>e.id===E)))||null==(e=e.context)?void 0:e.elements.floating,s=r(f(l.floating)),i=t.some((e=>e.context&&o(e.context.elements.floating,s)));n&&!i&&B.current&&n.focus({preventScroll:!0})}),[m,l.floating,R,E,w]),Se((()=>{if(m&&R&&w&&!E)return R.events.on("virtualfocus",e),()=>{R.events.off("virtualfocus",e)};function e(e){te(e.id),I&&(I.current=e)}}),[m,R,w,E,I]),Se((()=>{V.current=U,W.current=n,$.current=!!l.floating})),Se((()=>{n||(H.current=null)}),[n]);const se=null!=p,ie=s.useMemo((()=>{function e(e){if(!n)return;const t=c.current.indexOf(e);-1!==t&&Y.current!==t&&(Y.current=t,U())}return{onFocus(t){let{currentTarget:n}=t;z.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...j&&{onMouseMove(t){let{currentTarget:n}=t;z.current=!0,q.current=!1,e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;B.current&&"touch"!==t&&(z.current=!0,Y.current=-1,U(),w||null==(n=A.current)||n.focus({preventScroll:!0}))}}}}),[n,A,j,c,U,w]),ae=oe((e=>{if(B.current=!1,z.current=!0,229===e.which)return;if(!K.current&&e.currentTarget===A.current)return;if(y&&on(e.key,D,S))return x(e),i(!1,e.nativeEvent,"list-navigation"),void((0,a.sb)(l.domReference)&&(w?null==R||R.events.emit("virtualfocus",l.domReference):l.domReference.focus()));const t=Y.current,s=me(c,C),o=fe(c,C);if(N||("Home"===e.key&&(x(e),Y.current=s,U()),"End"===e.key&&(x(e),Y.current=o,U())),P>1){const t=M||Array.from({length:c.current.length},(()=>({width:1,height:1}))),n=ve(t,P,L),i=n.findIndex((e=>null!=e&&!_e(c.current,e,C))),a=n.reduce(((e,t,n)=>null==t||_e(c.current,t,C)?e:n),-1),r=n[be({current:n.map((e=>null!=e?c.current[e]:null))},{event:e,orientation:D,loop:v,rtl:S,cols:P,disabledIndices:xe([...C||c.current.map(((e,t)=>_e(c.current,t)?t:void 0)),void 0],n),minIndex:i,maxIndex:a,prevIndex:ye(Y.current>o?s:Y.current,t,n,P,e.key===ce?"bl":e.key===(S?ue:de)?"tr":"tl"),stopEvent:!0})];if(null!=r&&(Y.current=r,U()),"both"===D)return}if(an(e.key,D)){if(x(e),n&&!w&&r(e.currentTarget.ownerDocument)===e.currentTarget)return Y.current=rn(e.key,D,S)?s:o,void U();rn(e.key,D,S)?Y.current=v?t>=o?b&&t!==c.current.length?-1:s:ge(c,{startingIndex:t,disabledIndices:C}):Math.min(o,ge(c,{startingIndex:t,disabledIndices:C})):Y.current=v?t<=s?b&&-1!==t?c.current.length:o:ge(c,{startingIndex:t,decrement:!0,disabledIndices:C}):Math.max(s,ge(c,{startingIndex:t,decrement:!0,disabledIndices:C})),he(c,Y.current)&&(Y.current=-1),U()}})),re=s.useMemo((()=>w&&n&&se&&{"aria-activedescendant":ee||J}),[w,n,se,ee,J]),le=s.useMemo((()=>({"aria-orientation":"both"===D?void 0:D,...N?{}:re,onKeyDown:ae,onPointerMove(){B.current=!0}})),[re,ae,D,N]),pe=s.useMemo((()=>{function e(e){"auto"===k&&u(e.nativeEvent)&&(F.current=!0)}function t(e){F.current=k,"auto"===k&&d(e.nativeEvent)&&(F.current=!0)}return{...re,onKeyDown(e){B.current=!1;const t=e.key.startsWith("Arrow"),s=["Home","End"].includes(e.key),a=t||s,r=function(e,t,n){return sn(t,n?e===ue:e===de,e===ce)}(e.key,D,S),o=on(e.key,D,S),l=an(e.key,D),u=(y?r:l)||"Enter"===e.key||""===e.key.trim();if(w&&n){const t=null==R?void 0:R.nodesRef.current.find((e=>null==e.parentId)),n=R&&t?function(e,t){let n,s=-1;return function t(i,a){a>s&&(n=i,s=a),rt(e,i).forEach((e=>{t(e.id,a+1)}))}(t,0),e.find((e=>e.id===n))}(R.nodesRef.current,t.id):null;if(a&&n&&I){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(r||o){var d,p;const s=(null==(d=n.context)?void 0:d.elements.domReference)===e.currentTarget,i=o&&!s?null==(p=n.context)?void 0:p.elements.domReference:r?c.current.find((e=>(null==e?void 0:e.id)===J)):null;i&&(x(e),i.dispatchEvent(t),te(void 0))}var h;if((l||s)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return x(e),void(null==(h=n.context.elements.domReference)||h.dispatchEvent(t))}return ae(e)}(n||T||!t)&&(u&&(H.current=y&&l?null:e.key),y?r&&(x(e),n?(Y.current=me(c,G.current),U()):i(!0,e.nativeEvent,"list-navigation")):l&&(null!=g&&(Y.current=g),x(e),!n&&T?i(!0,e.nativeEvent,"list-navigation"):ae(e),n&&U()))},onFocus(){n&&!w&&(Y.current=-1,U())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}),[J,re,ae,G,k,c,y,U,i,n,T,D,S,g,R,w,I]);return s.useMemo((()=>m?{reference:pe,floating:le,item:ie}:{}),[m,pe,le,ie])}const cn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function un(e,t){var n;void 0===t&&(t={});const{open:i,floatingId:a}=e,{enabled:r=!0,role:o="dialog"}=t,l=null!=(n=cn.get(o))?n:o,c=Ue(),u=null!=Be(),d=s.useMemo((()=>"tooltip"===l||"label"===o?{["aria-"+("label"===o?"labelledby":"describedby")]:i?a:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":i?a:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===o&&{"aria-autocomplete":"none"},..."combobox"===o&&{"aria-autocomplete":"list"}}),[l,a,u,i,c,o]),p=s.useMemo((()=>{const e={id:a,...l&&{role:l}};return"tooltip"===l||"label"===o?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,a,c,o]),h=s.useCallback((e=>{let{active:t,selected:n}=e;const s={role:"option",...t&&{id:a+"-option"}};switch(o){case"select":return{...s,"aria-selected":t&&n};case"combobox":return{...s,...t&&{"aria-selected":!0}}}return{}}),[a,o]);return s.useMemo((()=>r?{reference:d,floating:p,item:h}:{}),[r,d,p,h])}const dn=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function pn(e,t){return"function"==typeof e?e(t):e}function hn(e,t){void 0===t&&(t={});const{open:n,elements:{floating:i}}=e,{duration:a=250}=t,r=("number"==typeof a?a:a.close)||0,[o,l]=s.useState("unmounted"),c=function(e,t){const[n,i]=s.useState(e);return e&&!n&&i(!0),s.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>i(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,r);return c||"close"!==o||l("unmounted"),Se((()=>{if(i){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,i]),{isMounted:c,status:o}}function mn(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:i,close:a,common:r,duration:o=250}=t,l=e.placement,c=l.split("-")[0],u=s.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof o,p=(d?o:o.open)||0,h=(d?o:o.close)||0,[m,f]=s.useState((()=>({...pn(r,u),...pn(n,u)}))),{isMounted:g,status:b}=hn(e,{duration:o}),v=Ge(n),y=Ge(i),x=Ge(a),_=Ge(r);return Se((()=>{const e=pn(v.current,u),t=pn(x.current,u),n=pn(_.current,u),s=pn(y.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===b&&f((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===b&&f({transitionProperty:Object.keys(s).map(dn).join(","),transitionDuration:p+"ms",...n,...s}),"close"===b){const s=t||e;f({transitionProperty:Object.keys(s).map(dn).join(","),transitionDuration:h+"ms",...n,...s})}}),[h,x,v,y,_,p,b,u]),{isMounted:g,styles:m}}function fn(e,t){var n;const{open:i,dataRef:a}=e,{listRef:r,activeIndex:o,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:h=[],selectedIndex:m=null}=t,f=s.useRef(),g=s.useRef(""),b=s.useRef(null!=(n=null!=m?m:o)?n:-1),v=s.useRef(null),y=oe(l),_=oe(c),S=Ge(d),w=Ge(h);Se((()=>{i&&(clearTimeout(f.current),v.current=null,g.current="")}),[i]),Se((()=>{var e;i&&""===g.current&&(b.current=null!=(e=null!=m?m:o)?e:-1)}),[i,m,o]);const k=oe((e=>{e?a.current.typing||(a.current.typing=e,_(e)):a.current.typing&&(a.current.typing=e,_(e))})),j=oe((e=>{function t(e,t,n){const s=S.current?S.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return s?e.indexOf(s):-1}const n=r.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?k(!1):" "===e.key&&x(e)),null==n||w.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;i&&" "!==e.key&&(x(e),k(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&g.current===e.key&&(g.current="",b.current=v.current),g.current+=e.key,clearTimeout(f.current),f.current=setTimeout((()=>{g.current="",b.current=v.current,k(!1)}),p);const s=b.current,a=t(n,[...n.slice((s||0)+1),...n.slice(0,(s||0)+1)],g.current);-1!==a?(y(a),v.current=a):" "!==e.key&&(g.current="",k(!1))})),T=s.useMemo((()=>({onKeyDown:j})),[j]),C=s.useMemo((()=>({onKeyDown:j,onKeyUp(e){" "===e.key&&k(!1)}})),[j,k]);return s.useMemo((()=>u?{reference:T,floating:C}:{}),[u,T,C])}function gn(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const bn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:s,onFallbackChange:i,offset:a=0,index:r=0,minItemsVisible:o=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=(0,S._3)(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[r],m=(null==c?void 0:c.current)||p,f=p.clientTop||m.clientTop,g=0!==p.clientTop,b=0!==m.clientTop,v=p===m;if(!h)return{};const y={...t,...await K(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-a).fn(t)},x=await(0,B.__)(gn(y,m.scrollHeight+f+p.clientTop),u),_=await(0,B.__)(y,{...u,elementContext:"reference"}),w=(0,S.T9)(0,x.top),k=y.y+w,j=(m.scrollHeight>m.clientHeight?e=>e:S.LI)((0,S.T9)(0,m.scrollHeight+(g&&v||b?2*f:0)-w-(0,S.T9)(0,x.bottom)));if(m.style.maxHeight=j+"px",m.scrollTop=w,i){const e=m.offsetHeight<h.offsetHeight*(0,S.jk)(o,n.current.length)-1||_.top>=-l||_.bottom>=-l;H.flushSync((()=>i(e)))}return s&&(s.current=await(0,B.__)(gn({...y,y:k},m.offsetHeight+f+p.clientTop),u)),{y:k}}});function vn(e,t){const{open:n,elements:i}=e,{enabled:a=!0,overflowRef:r,scrollRef:o,onChange:l}=t,u=oe(l),d=s.useRef(!1),p=s.useRef(null),h=s.useRef(null);s.useEffect((()=>{if(!a)return;function e(e){if(e.ctrlKey||!t||null==r.current)return;const n=e.deltaY,s=r.current.top>=-.5,i=r.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,o=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!s&&n>0||!i&&n<0?(e.preventDefault(),H.flushSync((()=>{u((e=>e+Math[l](n,a*o)))}))):/firefox/i.test(c())&&(t.scrollTop+=n))}const t=(null==o?void 0:o.current)||i.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{p.current=t.scrollTop,null!=r.current&&(h.current={...r.current})})),()=>{p.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0}),[a,n,i.floating,r,o,u]);const m=s.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==o?void 0:o.current)||i.floating;if(r.current&&e&&d.current){if(null!==p.current){const t=e.scrollTop-p.current;(r.current.bottom<-.5&&t<-1||r.current.top<-.5&&t>1)&&H.flushSync((()=>u((e=>e+t))))}requestAnimationFrame((()=>{p.current=e.scrollTop}))}}})),[i.floating,u,r,o]);return s.useMemo((()=>a?{floating:m}:{}),[a,m])}function yn(e,t){const[n,s]=e;let i=!1;const a=t.length;for(let e=0,r=a-1;e<a;r=e++){const[a,o]=t[e]||[0,0],[l,c]=t[r]||[0,0];o>=s!=c>=s&&n<=(l-a)*(s-o)/(c-o)+a&&(i=!i)}return i}function xn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:s=!0}=e;let i,r=!1,l=null,c=null,u=performance.now();const d=e=>{let{x:n,y:d,placement:p,elements:h,onClose:m,nodeId:f,tree:g}=e;return function(e){function v(){clearTimeout(i),m()}if(clearTimeout(i),!h.domReference||!h.floating||null==p||null==n||null==d)return;const{clientX:y,clientY:x}=e,_=[y,x],S=b(e),w="mouseleave"===e.type,k=o(h.floating,S),j=o(h.domReference,S),T=h.domReference.getBoundingClientRect(),C=h.floating.getBoundingClientRect(),D=p.split("-")[0],P=n>C.right-C.width/2,O=d>C.bottom-C.height/2,I=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(_,T),M=C.width>T.width,L=C.height>T.height,A=(M?T:C).left,E=(M?T:C).right,R=(L?T:C).top,U=(L?T:C).bottom;if(k&&(r=!0,!w))return;if(j&&(r=!1),j&&!w)return void(r=!0);if(w&&(0,a.vq)(e.relatedTarget)&&o(h.floating,e.relatedTarget))return;if(g&&rt(g.nodesRef.current,f).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===D&&d>=T.bottom-1||"bottom"===D&&d<=T.top+1||"left"===D&&n>=T.right-1||"right"===D&&n<=T.left+1)return v();let N=[];switch(D){case"top":N=[[A,T.top+1],[A,C.bottom-1],[E,C.bottom-1],[E,T.top+1]];break;case"bottom":N=[[A,C.top+1],[A,T.bottom-1],[E,T.bottom-1],[E,C.top+1]];break;case"left":N=[[C.right-1,U],[C.right-1,R],[T.left+1,R],[T.left+1,U]];break;case"right":N=[[T.right-1,U],[T.right-1,R],[C.left+1,R],[C.left+1,U]]}if(!yn([y,x],N)){if(r&&!I)return v();if(!w&&s){const t=function(e,t){const n=performance.now(),s=n-u;if(null===l||null===c||0===s)return l=e,c=t,u=n,null;const i=e-l,a=t-c,r=Math.sqrt(i*i+a*a);return l=e,c=t,u=n,r/s}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}yn([y,x],function(e){let[n,s]=e;switch(D){case"top":return[[M?n+t/2:P?n+4*t:n-4*t,s+t+1],[M?n-t/2:P?n+4*t:n-4*t,s+t+1],[C.left,P||M?C.bottom-t:C.top],[C.right,P?M?C.bottom-t:C.top:C.bottom-t]];case"bottom":return[[M?n+t/2:P?n+4*t:n-4*t,s-t],[M?n-t/2:P?n+4*t:n-4*t,s-t],[C.left,P||M?C.top+t:C.bottom],[C.right,P?M?C.top+t:C.bottom:C.top+t]];case"left":{const e=[n+t+1,L?s+t/2:O?s+4*t:s-4*t],i=[n+t+1,L?s-t/2:O?s+4*t:s-4*t];return[[O||L?C.right-t:C.left,C.top],[O?L?C.right-t:C.left:C.right-t,C.bottom],e,i]}case"right":return[[n-t,L?s+t/2:O?s+4*t:s-4*t],[n-t,L?s-t/2:O?s+4*t:s-4*t],[O||L?C.left+t:C.right,C.top],[O?L?C.left+t:C.right:C.left+t,C.bottom]]}}([n,d]))?!r&&s&&(i=window.setTimeout(v,40)):v()}}};return d.__options={blockPointerEvents:n},d}},9455:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var s=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?s.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t}))}return!0}},13144:(e,t,n)=>{"use strict";var s=n(66743),i=n(11002),a=n(10076),r=n(47119);e.exports=r||s.call(a,i)},11002:e=>{"use strict";e.exports=Function.prototype.apply},10076:e=>{"use strict";e.exports=Function.prototype.call},73126:(e,t,n)=>{"use strict";var s=n(66743),i=n(69675),a=n(10076),r=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return r(s,a,e)}},47119:e=>{"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},36556:(e,t,n)=>{"use strict";var s=n(70453),i=n(73126),a=i([s("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=s(e,!!t);return"function"==typeof n&&a(e,".prototype.")>-1?i([n]):n}},71508:e=>{function t(e){var n,s,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(n=0;n<a;n++)e[n]&&(s=t(e[n]))&&(i&&(i+=" "),i+=s)}else for(s in e)e[s]&&(i&&(i+=" "),i+=s);return i}function n(){for(var e,n,s=0,i="",a=arguments.length;s<a;s++)(e=arguments[s])&&(n=t(e))&&(i&&(i+=" "),i+=n);return i}e.exports=n,e.exports.clsx=n},36246:function(e,t){var n,s;void 0===(s="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,s=e.replace(/^v/,"").replace(/\+.*$/,""),i=(n="-",-1===(t=s).indexOf(n)?t.length:t.indexOf(n)),a=s.substring(0,i).split(".");return a.push(s.substring(i+1)),a}function n(e){return isNaN(Number(e))?e:Number(e)}function s(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function i(e,i){[e,i].forEach(s);for(var a=t(e),r=t(i),o=0;o<Math.max(a.length-1,r.length-1);o++){var l=parseInt(a[o]||0,10),c=parseInt(r[o]||0,10);if(l>c)return 1;if(c>l)return-1}var u=a[a.length-1],d=r[r.length-1];if(u&&d){var p=u.split(".").map(n),h=d.split(".").map(n);for(o=0;o<Math.max(p.length,h.length);o++){if(void 0===p[o]||"string"==typeof h[o]&&"number"==typeof p[o])return-1;if(void 0===h[o]||"string"==typeof p[o]&&"number"==typeof h[o])return 1;if(p[o]>h[o])return 1;if(h[o]>p[o])return-1}}else if(u||d)return u?-1:1;return 0}var a=[">",">=","=","<","<="],r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return i.validate=function(t){return"string"==typeof t&&e.test(t)},i.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===a.indexOf(e))throw new TypeError("Invalid operator, expected one of "+a.join("|"))}(n);var s=i(e,t);return r[n].indexOf(s)>-1},i})?n.apply(t,[]):n)||(e.exports=s)},38593:(e,t,n)=>{"use strict";var s=n(2858);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==s){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},50925:(e,t,n)=>{e.exports=n(38593)()},2858:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},17965:(e,t,n)=>{"use strict";var s=n(16426),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,r,o,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(r=s(),o=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),void 0===s.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=i[t.format]||i.default;window.clipboardData.setData(a,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))})),document.body.appendChild(c),o.selectNodeContents(c),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(s){n&&console.error("unable to copy using clipboardData: ",s),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return u}},17334:e=>{function t(e,t,n){var s,i,a,r,o;function l(){var c=Date.now()-r;c<t&&c>=0?s=setTimeout(l,t-c):(s=null,n||(o=e.apply(a,i),a=i=null))}null==t&&(t=100);var c=function(){a=this,i=arguments,r=Date.now();var c=n&&!s;return s||(s=setTimeout(l,t)),c&&(o=e.apply(a,i),a=i=null),o};return c.clear=function(){s&&(clearTimeout(s),s=null)},c.flush=function(){s&&(o=e.apply(a,i),a=i=null,clearTimeout(s),s=null)},c}t.debounce=t,e.exports=t},14744:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function i(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function r(e,t){try{return t in e}catch(e){return!1}}function o(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||i,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var i={};return n.isMergeableObject(e)&&a(e).forEach((function(t){i[t]=s(e[t],n)})),a(t).forEach((function(a){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(r(e,a)&&n.isMergeableObject(t[a])?i[a]=function(e,t){if(!t.customMerge)return o;var n=t.customMerge(e);return"function"==typeof n?n:o}(a,n)(e[a],t[a],n):i[a]=s(t[a],n))})),i}(e,n,l):s(n,l)}o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return o(e,n,t)}),{})};var l=o;e.exports=l},7176:(e,t,n)=>{"use strict";var s,i=n(73126),a=n(75795);try{s=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!s&&a&&a(Object.prototype,"__proto__"),o=Object,l=o.getPrototypeOf;e.exports=r&&"function"==typeof r.get?i([r.get]):"function"==typeof l&&function(e){return l(null==e?e:o(e))}},79878:function(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var o=r(n(13603));t.htmlDecodeTree=o.default;var l=r(n(22517));t.xmlDecodeTree=l.default;var c=a(n(55096));t.decodeCodePoint=c.default;var u,d,p,h,m=n(55096);function f(e){return e>=u.ZERO&&e<=u.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return m.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return m.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(u||(u={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(d=t.BinTrieFlags||(t.BinTrieFlags={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(p||(p={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(h=t.DecodingMode||(t.DecodingMode={}));var g=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=h.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case p.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=p.NamedEntity,this.stateNamedEntity(e,t));case p.NumericStart:return this.stateNumericStart(e,t);case p.NumericDecimal:return this.stateNumericDecimal(e,t);case p.NumericHex:return this.stateNumericHex(e,t);case p.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,s){if(t!==n){var i=n-t;this.result=this.result*Math.pow(s,i)+parseInt(e.substr(t,i),s),this.consumed+=i}},e.prototype.stateNumericHex=function(e,t){for(var n,s=t;t<e.length;){var i=e.charCodeAt(t);if(!(f(i)||(n=i,n>=u.UPPER_A&&n<=u.UPPER_F||n>=u.LOWER_A&&n<=u.LOWER_F)))return this.addToNumericResult(e,s,t,16),this.emitNumericEntity(i,3);t+=1}return this.addToNumericResult(e,s,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t<e.length;){var s=e.charCodeAt(t);if(!f(s))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(s,2);t+=1}return this.addToNumericResult(e,n,t,10),-1},e.prototype.emitNumericEntity=function(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===u.SEMI)this.consumed+=1;else if(this.decodeMode===h.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==u.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(e,t){for(var n=this.decodeTree,s=n[this.treeIndex],i=(s&d.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var a=e.charCodeAt(t);if(this.treeIndex=v(n,s,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return 0===this.result||this.decodeMode===h.Attribute&&(0===i||((r=a)===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||f(e)}(r)))?0:this.emitNotTerminatedNamedEntity();if(0!=(i=((s=n[this.treeIndex])&d.VALUE_LENGTH)>>14)){if(a===u.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==h.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var r;return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,n=(this.decodeTree[t]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var s=this.decodeTree;return this.emitCodePoint(1===t?s[e]&~d.VALUE_LENGTH:s[e+1],n),3===t&&this.emitCodePoint(s[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case p.NamedEntity:return 0===this.result||this.decodeMode===h.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}},e}();function b(e){var t="",n=new g(e,(function(e){return t+=(0,c.fromCodePoint)(e)}));return function(e,s){for(var i=0,a=0;(a=e.indexOf("&",a))>=0;){t+=e.slice(i,a),n.startEntity(s);var r=n.write(e,a+1);if(r<0){i=a+n.end();break}i=a+r,a=0===r?i+1:i}var o=t+e.slice(i);return t="",o}}function v(e,t,n,s){var i=(t&d.BRANCH_LENGTH)>>7,a=t&d.JUMP_TABLE;if(0===i)return 0!==a&&s===a?n:-1;if(a){var r=s-a;return r<0||r>=i?-1:e[n+r]-1}for(var o=n,l=o+i-1;o<=l;){var c=o+l>>>1,u=e[c];if(u<s)o=c+1;else{if(!(u>s))return e[c+i];l=c-1}}return-1}t.EntityDecoder=g,t.determineBranch=v;var y=b(o.default),x=b(l.default);t.decodeHTML=function(e,t){return void 0===t&&(t=h.Legacy),y(e,t)},t.decodeHTMLAttribute=function(e){return y(e,h.Attribute)},t.decodeHTMLStrict=function(e){return y(e,h.Strict)},t.decodeXML=function(e){return x(e,h.Strict)}},55096:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var s=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=s.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=i,t.default=function(e){return(0,t.fromCodePoint)(i(e))}},71818:function(e,t,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var i=s(n(35504)),a=n(5987),r=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function o(e,t){for(var n,s="",r=0;null!==(n=e.exec(t));){var o=n.index;s+=t.substring(r,o);var l=t.charCodeAt(o),c=i.default.get(l);if("object"==typeof c){if(o+1<t.length){var u=t.charCodeAt(o+1),d="number"==typeof c.n?c.n===u?c.o:void 0:c.n.get(u);if(void 0!==d){s+=d,r=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)s+=c,r=o+1;else{var p=(0,a.getCodePoint)(t,o);s+="&#x".concat(p.toString(16),";"),r=e.lastIndex+=Number(p!==l)}}return s+t.substr(r)}t.encodeHTML=function(e){return o(r,e)},t.encodeNonAsciiHTML=function(e){return o(a.xmlReplacer,e)}},5987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function s(e){for(var s,i="",a=0;null!==(s=t.xmlReplacer.exec(e));){var r=s.index,o=e.charCodeAt(r),l=n.get(o);void 0!==l?(i+=e.substring(a,r)+l,a=r+1):(i+="".concat(e.substring(a,r),"&#x").concat((0,t.getCodePoint)(e,r).toString(16),";"),a=t.xmlReplacer.lastIndex+=Number(55296==(64512&o)))}return i+e.substr(a)}function i(e,t){return function(n){for(var s,i=0,a="";s=e.exec(n);)i!==s.index&&(a+=n.substring(i,s.index)),a+=t.get(s[0].charCodeAt(0)),i=s.index+1;return a+n.substring(i)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=s,t.escape=s,t.escapeUTF8=i(/[&<>'"]/g,n),t.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},13603:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},22517:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},35504:(e,t)=>{"use strict";function n(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Map(n([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(n([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(n([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(n([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},72730:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var s,i,a=n(79878),r=n(71818),o=n(5987);function l(e,t){if(void 0===t&&(t=s.XML),("number"==typeof t?t:t.level)===s.HTML){var n="object"==typeof t?t.mode:void 0;return(0,a.decodeHTML)(e,n)}return(0,a.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(s=t.EntityLevel||(t.EntityLevel={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(i=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=s.XML);var i="number"==typeof t?{level:t}:t;return null!==(n=i.mode)&&void 0!==n||(i.mode=a.DecodingMode.Strict),l(e,i)},t.encode=function(e,t){void 0===t&&(t=s.XML);var n="number"==typeof t?{level:t}:t;return n.mode===i.UTF8?(0,o.escapeUTF8)(e):n.mode===i.Attribute?(0,o.escapeAttribute)(e):n.mode===i.Text?(0,o.escapeText)(e):n.level===s.HTML?n.mode===i.ASCII?(0,r.encodeNonAsciiHTML)(e):(0,r.encodeHTML)(e):(0,o.encodeXML)(e)};var c=n(5987);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(71818);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(79878);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},30655:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},41237:e=>{"use strict";e.exports=EvalError},69383:e=>{"use strict";e.exports=Error},79290:e=>{"use strict";e.exports=RangeError},79538:e=>{"use strict";e.exports=ReferenceError},58068:e=>{"use strict";e.exports=SyntaxError},69675:e=>{"use strict";e.exports=TypeError},35345:e=>{"use strict";e.exports=URIError},79612:e=>{"use strict";e.exports=Object},52834:e=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},89353:e=>{"use strict";var t=Object.prototype.toString,n=Math.max,s=function(e,t){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n};e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==t.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var a,r=function(e){for(var t=[],n=1,s=0;n<e.length;n+=1,s+=1)t[s]=e[n];return t}(arguments),o=n(0,i.length-r.length),l=[],c=0;c<o;c++)l[c]="$"+c;if(a=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof a){var t=i.apply(this,s(r,arguments));return Object(t)===t?t:this}return i.apply(e,s(r,arguments))})),i.prototype){var u=function(){};u.prototype=i.prototype,a.prototype=new u,u.prototype=null}return a}},66743:(e,t,n)=>{"use strict";var s=n(89353);e.exports=Function.prototype.bind||s},70453:(e,t,n)=>{"use strict";var s,i=n(79612),a=n(69383),r=n(41237),o=n(79290),l=n(79538),c=n(58068),u=n(69675),d=n(35345),p=n(71514),h=n(58968),m=n(6188),f=n(68002),g=n(75880),b=Function,v=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},y=n(75795),x=n(30655),_=function(){throw new u},S=y?function(){try{return _}catch(e){try{return y(arguments,"callee").get}catch(e){return _}}}():_,w=n(64039)(),k=n(7176),j="function"==typeof Reflect&&Reflect.getPrototypeOf||i.getPrototypeOf||k,T=n(11002),C=n(10076),D={},P="undefined"!=typeof Uint8Array&&j?j(Uint8Array):s,O={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":w&&j?j([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":D,"%AsyncGenerator%":D,"%AsyncGeneratorFunction%":D,"%AsyncIteratorPrototype%":D,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?s:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":r,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":D,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&j?j(j([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&w&&j?j((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":y,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&w&&j?j((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&j?j(""[Symbol.iterator]()):s,"%Symbol%":w?Symbol:s,"%SyntaxError%":c,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?s:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":T,"%Object.defineProperty%":x,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":f,"%Math.pow%":g};if(j)try{null.error}catch(e){var I=j(j(e));O["%Error.prototype%"]=I}var M=function e(t){var n;if("%AsyncFunction%"===t)n=v("async function () {}");else if("%GeneratorFunction%"===t)n=v("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=v("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&j&&(n=j(i.prototype))}return O[t]=n,n},L={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},A=n(66743),E=n(9957),R=A.call(C,Array.prototype.concat),U=A.call(T,Array.prototype.splice),N=A.call(C,String.prototype.replace),F=A.call(C,String.prototype.slice),Y=A.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,V=function(e,t){var n,s=e;if(E(L,s)&&(s="%"+(n=L[s])[0]+"%"),E(O,s)){var i=O[s];if(i===D&&(i=M(s)),void 0===i&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:s,value:i}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===Y(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=F(e,0,1),n=F(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var s=[];return N(e,H,(function(e,t,n,i){s[s.length]=n?N(i,B,"$1"):t||e})),s}(e),s=n.length>0?n[0]:"",i=V("%"+s+"%",t),a=i.name,r=i.value,o=!1,l=i.alias;l&&(s=l[0],U(n,R([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=F(h,0,1),f=F(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===f||"'"===f||"`"===f)&&m!==f)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(o=!0),E(O,a="%"+(s+="."+h)+"%"))r=O[a];else if(null!=r){if(!(h in r)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(y&&d+1>=n.length){var g=y(r,h);r=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:r[h]}else p=E(r,h),r=r[h];p&&!o&&(O[a]=r)}}return r}},6549:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},75795:(e,t,n)=>{"use strict";var s=n(6549);if(s)try{s([],"length")}catch(e){s=null}e.exports=s},64039:(e,t,n)=>{"use strict";var s="undefined"!=typeof Symbol&&Symbol,i=n(41333);e.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&i()}},41333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var s in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},9957:(e,t,n)=>{"use strict";var s=Function.prototype.call,i=Object.prototype.hasOwnProperty,a=n(66743);e.exports=a.call(s,i)},4146:(e,t,n)=>{"use strict";var s=n(44363),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return s.isMemo(e)?r:o[e.$$typeof]||i}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,s){if("string"!=typeof n){if(m){var i=h(n);i&&i!==m&&e(t,i,s)}var r=u(n);d&&(r=r.concat(d(n)));for(var o=l(t),f=l(n),g=0;g<r.length;++g){var b=r[g];if(!(a[b]||s&&s[b]||f&&f[b]||o&&o[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},11724:function(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var r=a(n(57918)),o=n(79878),l=new Set(["input","option","optgroup","select","button","datalist","textarea"]),c=new Set(["p"]),u=new Set(["thead","tbody"]),d=new Set(["dd","dt"]),p=new Set(["rt","rp"]),h=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",c],["h1",c],["h2",c],["h3",c],["h4",c],["h5",c],["h6",c],["select",l],["input",l],["output",l],["button",l],["datalist",l],["textarea",l],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",d],["dt",d],["address",c],["article",c],["aside",c],["blockquote",c],["details",c],["div",c],["dl",c],["fieldset",c],["figcaption",c],["figure",c],["footer",c],["form",c],["header",c],["hr",c],["main",c],["nav",c],["ol",c],["pre",c],["section",c],["table",c],["ul",c],["rt",p],["rp",p],["tbody",u],["tfoot",u]]),m=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),f=new Set(["math","svg"]),g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b=/\s|\//,v=function(){function e(e,t){var n,s,i,a,o;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(s=t.lowerCaseAttributeNames)&&void 0!==s?s:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:r.default)(this.options,this),null===(o=(a=this.cbs).onparserinit)||void 0===o||o.call(a,this)}return e.prototype.ontext=function(e,t){var n,s,i=this.getSlice(e,t);this.endIndex=t-1,null===(s=(n=this.cbs).ontext)||void 0===s||s.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,s=this.tokenizer.getSectionStart();this.endIndex=s-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,o.fromCodePoint)(e)),this.startIndex=s},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&m.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,s,i;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&h.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var r=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!0)}this.isVoidElement(e)||(this.stack.push(e),f.has(e)?this.foreignContext.push(!0):g.has(e)&&this.foreignContext.push(!1)),null===(i=(s=this.cbs).onopentagname)||void 0===i||i.call(s,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,s,i,a,r,o;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(f.has(l)||g.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))this.options.xmlMode||"br"!==l||(null===(s=(n=this.cbs).onopentagname)||void 0===s||s.call(n,"br"),null===(a=(i=this.cbs).onopentag)||void 0===a||a.call(i,"br",{},!0),null===(o=(r=this.cbs).onclosetag)||void 0===o||o.call(r,"br",!1));else{var c=this.stack.lastIndexOf(l);if(-1!==c)if(this.cbs.onclosetag)for(var u=this.stack.length-c;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=c;else this.options.xmlMode||"p"!==l||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,s=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===s&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,s,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,o.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,s;this.endIndex=t,null===(s=(n=this.cbs).onattribute)||void 0===s||s.call(n,this.attribname,this.attribvalue,e===r.QuoteType.Double?'"':e===r.QuoteType.Single?"'":e===r.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(b),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(s),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var s=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(s),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var s,i,a,r;this.endIndex=t,null===(i=(s=this.cbs).oncomment)||void 0===i||i.call(s,this.getSlice(e,t-n)),null===(r=(a=this.cbs).oncommentend)||void 0===r||r.call(a),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var s,i,a,r,o,l,c,u,d,p;this.endIndex=t;var h=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(s=this.cbs).oncdatastart)||void 0===i||i.call(s),null===(r=(a=this.cbs).ontext)||void 0===r||r.call(a,h),null===(l=(o=this.cbs).oncdataend)||void 0===l||l.call(o)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,"[CDATA[".concat(h,"]]")),null===(p=(d=this.cbs).oncommentend)||void 0===p||p.call(d)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,s;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(s=(n=this.cbs).onparserinit)||void 0===s||s.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=v},57918:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var s,i,a,r=n(79878);function o(e){return e===s.Space||e===s.NewLine||e===s.Tab||e===s.FormFeed||e===s.CarriageReturn}function l(e){return e===s.Slash||e===s.Gt||o(e)}function c(e){return e>=s.Zero&&e<=s.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(s||(s={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(a=t.QuoteType||(t.QuoteType={}));var u={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function e(e,t){var n=e.xmlMode,s=void 0!==n&&n,a=e.decodeEntities,o=void 0===a||a;this.cbs=t,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=s,this.decodeEntities=o,this.entityTrie=s?r.xmlDecodeTree:r.htmlDecodeTree}return e.prototype.reset=function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===s.Lt||!this.decodeEntities&&this.fastForwardTo(s.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===s.Amp&&(this.state=i.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===s.Gt||o(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var n=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=n}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===u.TitleEnd?this.decodeEntities&&e===s.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(s.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===s.Lt)},e.prototype.stateCDATASequence=function(e){e===u.Cdata[this.sequenceIndex]?++this.sequenceIndex===u.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=u.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!l(e):function(e){return e>=s.LowerA&&e<=s.LowerZ||e>=s.UpperA&&e<=s.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===s.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===s.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this.index,this.xmlMode||t!==u.TitleEnd[2]?this.state=this.xmlMode||t!==u.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(u.TitleEnd,3)}else e===s.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){o(e)||(e===s.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===s.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===s.Gt||this.fastForwardTo(s.Gt))&&(this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===s.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===s.Slash?this.state=i.InSelfClosingTag:o(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===s.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===s.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===s.Eq?this.state=i.BeforeAttributeValue:e===s.Slash||e===s.Gt?(this.cbs.onattribend(a.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(a.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===s.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===s.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===s.DoubleQuote?a.Double:a.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&e===s.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,s.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,s.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){o(e)||e===s.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===s.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===s.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===s.Dash?i.BeforeComment:i.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===s.Dash?(this.state=i.InCommentLike,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===s.Gt||this.fastForwardTo(s.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===s.Number?this.state=i.BeforeNumericEntity:e===s.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,r.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&r.BinTrieFlags.VALUE_LENGTH;if(t){var n=(t>>14)-1;if(this.allowLegacyEntity()||e===s.Semi){var i=this.index-this.entityExcess+1;i>this.sectionStart&&this.emitPartial(this.sectionStart,i),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&r.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~r.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===s.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===i.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,r.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===s.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-s.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===s.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-s.Zero),this.entityExcess++):function(e){return e>=s.UpperA&&e<=s.UpperF||e>=s.LowerA&&e<=s.LowerF}(e)?(this.entityResult=16*this.entityResult+((32|e)-s.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case i.Text:this.stateText(e);break;case i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case i.InSpecialTag:this.stateInSpecialTag(e);break;case i.CDATASequence:this.stateCDATASequence(e);break;case i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case i.InAttributeName:this.stateInAttributeName(e);break;case i.InCommentLike:this.stateInCommentLike(e);break;case i.InSpecialComment:this.stateInSpecialComment(e);break;case i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case i.InTagName:this.stateInTagName(e);break;case i.InClosingTagName:this.stateInClosingTagName(e);break;case i.BeforeTagName:this.stateBeforeTagName(e);break;case i.AfterAttributeName:this.stateAfterAttributeName(e);break;case i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case i.InDeclaration:this.stateInDeclaration(e);break;case i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case i.BeforeComment:this.stateBeforeComment(e);break;case i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case i.InNamedEntity:this.stateInNamedEntity(e);break;case i.BeforeEntity:this.stateBeforeEntity(e);break;case i.InHexEntity:this.stateInHexEntity(e);break;case i.InNumericEntity:this.stateInNumericEntity(e);break;default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},e.prototype.finish=function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===u.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()||this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();t.default=d},78659:function(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var o=n(11724),l=n(11724);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return l.Parser}});var c=n(66443),u=n(66443);function d(e,t){var n=new c.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}function p(e,t){return d(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=d,t.parseDOM=p,t.createDomStream=function(e,t,n){var s=new c.DomHandler(e,t,n);return new o.Parser(s,t)};var h=n(57918);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return r(h).default}}),t.ElementType=a(n(23775));var m=n(43970),f=n(43970);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return f.getFeed}});var g={xmlMode:!0};t.parseFeed=function(e,t){return void 0===t&&(t=g),(0,m.getFeed)(p(e,t))},t.DomUtils=a(n(43970))},1350:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})))},50492:function(e,t,n){"use strict";var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var o=r(n(23775)),l=n(72730),c=n(1350),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,""")}var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),s="",i=0;i<n.length;i++)s+=m(n[i],t);return s}function m(e,t){switch(e.type){case o.Root:return h(e.children,t);case o.Doctype:case o.Directive:return"<".concat(e.data,">");case o.Comment:return"\x3c!--".concat(e.data,"--\x3e");case o.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case o.Script:case o.Style:case o.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&f.has(e.parent.name)&&(t=s(s({},t),{xmlMode:!1}))),!t.xmlMode&&g.has(e.name)&&(t=s(s({},t),{xmlMode:"foreign"}));var i="<".concat(e.name),a=function(e,t){var n;if(e){var s=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var i,a,r=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(a=c.attributeNames.get(n))&&void 0!==a?a:n),t.emptyAttrs||t.xmlMode||""!==r?"".concat(n,'="').concat(s(r),'"'):n})).join(" ")}}(e.attribs,t);return a&&(i+=" ".concat(a)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=h(e.children,t)),!t.xmlMode&&p.has(e.name)||(i+="</".concat(e.name,">"))),i}(e,t);case o.Text:return function(e,t){var n,s=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(s=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(s):(0,l.escapeText)(s)),s}(e,t)}}t.render=h,t.default=h;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},23775:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},66443:function(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var a=n(23775),r=n(4011);i(n(4011),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?a.ElementType.Tag:void 0,s=new r.Element(e,t,void 0,n);this.addNode(s),this.tagStack.push(s)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===a.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new r.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment)this.lastNode.data+=e;else{var t=new r.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new r.Text(""),t=new r.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new r.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4011:function(e,t,n){"use strict";var s,i=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var r=n(23775),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),S(this,e)},e}();t.Node=o;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return i(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Text,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Comment,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var s=e.call(this,n)||this;return s.name=t,s.type=r.ElementType.Directive,s}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return i(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.CDATA,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Root,t}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var f=function(e){function t(t,n,s,i){void 0===s&&(s=[]),void 0===i&&(i="script"===t?r.ElementType.Script:"style"===t?r.ElementType.Style:r.ElementType.Tag);var a=e.call(this,s)||this;return a.name=t,a.attribs=n,a.type=i,a}return i(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,s;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(s=e["x-attribsPrefix"])||void 0===s?void 0:s[t]}}))},enumerable:!1,configurable:!0}),t}(p);function g(e){return(0,r.isTag)(e)}function b(e){return e.type===r.ElementType.CDATA}function v(e){return e.type===r.ElementType.Text}function y(e){return e.type===r.ElementType.Comment}function x(e){return e.type===r.ElementType.Directive}function _(e){return e.type===r.ElementType.Root}function S(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(y(e))n=new u(e.data);else if(g(e)){var s=t?w(e.children):[],i=new f(e.name,a({},e.attribs),s);s.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=a({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=a({},e["x-attribsPrefix"])),n=i}else if(b(e)){s=t?w(e.children):[];var r=new h(s);s.forEach((function(e){return e.parent=r})),n=r}else if(_(e)){s=t?w(e.children):[];var o=new m(s);s.forEach((function(e){return e.parent=o})),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function w(e){for(var t=e.map((function(e){return S(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=f,t.isTag=g,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=x,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=S},48115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var s=n(65247),i=n(86851);t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,s={type:"atom",items:(0,i.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,s={media:o(n)};u(s,"id","id",n),u(s,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(s.link=i);var a=c("summary",n)||c("content",n);a&&(s.description=a);var r=c("updated",n);return r&&(s.pubDate=new Date(r)),s}))};u(s,"id","id",n),u(s,"title","title",n);var a=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;a&&(s.link=a),u(s,"description","subtitle",n);var r=c("updated",n);return r&&(s.updated=new Date(r)),u(s,"author","email",n,!0),s}(t):function(e){var t,n,s=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],a={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:o(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var s=c("pubDate",t)||c("dc:date",t);return s&&(n.pubDate=new Date(s)),n}))};u(a,"title","title",s),u(a,"link","link",s),u(a,"description","description",s);var r=c("lastBuildDate",s);return r&&(a.updated=new Date(r)),u(a,"author","managingEditor",s,!0),a}(t):null};var a=["url","type","lang"],r=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},s=0,i=a;s<i.length;s++)t[c=i[s]]&&(n[c]=t[c]);for(var o=0,l=r;o<l.length;o++){var c;t[c=l[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,i.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,s.textContent)((0,i.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,s,i){void 0===i&&(i=!1);var a=c(n,s,i);a&&(e[t]=a)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},89891:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.DocumentPosition=t.removeSubsets=void 0;var s,i=n(66443);function a(e,t){var n=[],a=[];if(e===t)return 0;for(var r=(0,i.hasChildren)(e)?e:e.parent;r;)n.unshift(r),r=r.parent;for(r=(0,i.hasChildren)(t)?t:t.parent;r;)a.unshift(r),r=r.parent;for(var o=Math.min(n.length,a.length),l=0;l<o&&n[l]===a[l];)l++;if(0===l)return s.DISCONNECTED;var c=n[l-1],u=c.children,d=n[l],p=a[l];return u.indexOf(d)>u.indexOf(p)?c===t?s.FOLLOWING|s.CONTAINED_BY:s.FOLLOWING:c===e?s.PRECEDING|s.CONTAINS:s.PRECEDING}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var s=n.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(s=t.DocumentPosition||(t.DocumentPosition={})),t.compareDocumentPosition=a,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=a(e,t);return n&s.PRECEDING?-1:n&s.FOLLOWING?1:0})),e}},43970:function(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,i)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,i(n(65247),t),i(n(21840),t),i(n(27049),t),i(n(28620),t),i(n(86851),t),i(n(89891),t),i(n(48115),t);var a=n(66443);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return a.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return a.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return a.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return a.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return a.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return a.hasChildren}})},86851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var s=n(66443),i=n(28620),a={tag_name:function(e){return"function"==typeof e?function(t){return(0,s.isTag)(t)&&e(t.name)}:"*"===e?s.isTag:function(t){return(0,s.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,s.isText)(t)&&e(t.data)}:function(t){return(0,s.isText)(t)&&t.data===e}}};function r(e,t){return"function"==typeof t?function(n){return(0,s.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,s.isTag)(n)&&n.attribs[e]===t}}function o(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(a,t)?a[t](n):r(t,n)}));return 0===t.length?null:t.reduce(o)}t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,s){void 0===s&&(s=1/0);var a=l(e);return a?(0,i.filter)(a,t,n,s):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,i.findOne)(r("id",e),t,n)},t.getElementsByTagName=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),(0,i.filter)(a.tag_name(e),t,n,s)},t.getElementsByTagType=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),(0,i.filter)(a.tag_type(e),t,n,s)}},27049:(e,t)=>{"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var s=t.next=e.next;s&&(s.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var s=e.children[e.children.length-2];s.next=t,t.prev=s}else t.prev=null},t.append=function(e,t){n(t);var s=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=s,i){if(i.prev=t,s){var a=s.children;a.splice(a.lastIndexOf(i),0,t)}}else s&&s.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var s=e.children[1];s.prev=t,t.next=s}else t.next=null},t.prepend=function(e,t){n(t);var s=e.parent;if(s){var i=s.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=s,t.prev=e.prev,t.next=e,e.prev=t}},28620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var s=n(66443);function i(e,t,n,i){for(var a=[],r=[t],o=[0];;)if(o[0]>=r[0].length){if(1===o.length)return a;r.shift(),o.shift()}else{var l=r[0][o[0]++];if(e(l)&&(a.push(l),--i<=0))return a;n&&(0,s.hasChildren)(l)&&l.children.length>0&&(o.unshift(0),r.unshift(l.children))}}t.filter=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),i(e,Array.isArray(t)?t:[t],n,s)},t.find=i,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,i){void 0===i&&(i=!0);for(var a=null,r=0;r<n.length&&!a;r++){var o=n[r];(0,s.isTag)(o)&&(t(o)?a=o:i&&o.children.length>0&&(a=e(t,o.children,!0)))}return a},t.existsOne=function e(t,n){return n.some((function(n){return(0,s.isTag)(n)&&(t(n)||e(t,n.children))}))},t.findAll=function(e,t){for(var n=[],i=[t],a=[0];;)if(a[0]>=i[0].length){if(1===i.length)return n;i.shift(),a.shift()}else{var r=i[0][a[0]++];(0,s.isTag)(r)&&(e(r)&&n.push(r),r.children.length>0&&(a.unshift(0),i.unshift(r.children)))}}},65247:function(e,t,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var i=n(66443),a=s(n(50492)),r=n(23775);function o(e,t){return(0,a.default)(e,t)}t.getOuterHTML=o,t.getInnerHTML=function(e,t){return(0,i.hasChildren)(e)?e.children.map((function(e){return o(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,i.isCDATA)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&!(0,i.isComment)(t)?e(t.children):(0,i.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,i.hasChildren)(t)&&(t.type===r.ElementType.Tag||(0,i.isCDATA)(t))?e(t.children):(0,i.isText)(t)?t.data:""}},21840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var s=n(66443);function i(e){return(0,s.hasChildren)(e)?e.children:[]}function a(e){return e.parent||null}t.getChildren=i,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return i(t);for(var n=[e],s=e.prev,r=e.next;null!=s;)n.unshift(s),s=s.prev;for(;null!=r;)n.push(r),r=r.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,s.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,s.isTag)(t);)t=t.prev;return t}},16368:e=>{"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},78682:(e,t)=>{"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,s;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(s=t.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}},20181:(e,t,n)=>{var s=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=a.test(e);return n||r.test(e)?o(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var s,i,a,r,o,l,c=0,u=!1,d=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,a=i;return s=i=void 0,c=t,r=e.apply(a,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function x(){var e=m();if(y(e))return _(e);o=setTimeout(x,function(e){var n=t-(e-l);return d?h(n,a-(e-c)):n}(e))}function _(e){return o=void 0,b&&s?v(e):(s=i=void 0,r)}function S(){var e=m(),n=y(e);if(s=arguments,i=this,l=e,n){if(void 0===o)return function(e){return c=e,o=setTimeout(x,t),u?v(e):r}(l);if(d)return o=setTimeout(x,t),v(l)}return void 0===o&&(o=setTimeout(x,t)),r}return t=g(t)||0,f(n)&&(u=!!n.leading,a=(d="maxWait"in n)?p(g(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b),S.cancel=function(){void 0!==o&&clearTimeout(o),c=0,s=l=i=o=void 0},S.flush=function(){return void 0===o?r:_(m())},S}},38514:(e,t,n)=>{e=n.nmd(e);var s="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",r="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",m="[object Promise]",f="[object RegExp]",g="[object Set]",b="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",x="[object DataView]",_=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[a]=w[r]=w[y]=w[o]=w[x]=w[l]=w[c]=w[u]=w[d]=w[p]=w[h]=w[f]=w[g]=w[b]=w[v]=!1;var k="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,j="object"==typeof self&&self&&self.Object===Object&&self,T=k||j||Function("return this")(),C=t&&!t.nodeType&&t,D=C&&e&&!e.nodeType&&e,P=D&&D.exports===C&&k.process,O=function(){try{return P&&P.binding("util")}catch(e){}}(),I=O&&O.isTypedArray;function M(e,t){for(var n=-1,s=e?e.length:0;++n<s;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function A(e){var t=-1,n=Array(e.size);return e.forEach((function(e,s){n[++t]=[s,e]})),n}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var R,U,N,F=Array.prototype,Y=Function.prototype,H=Object.prototype,B=T["__core-js_shared__"],V=(R=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",$=Y.toString,W=H.hasOwnProperty,z=H.toString,q=RegExp("^"+$.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=T.Symbol,K=T.Uint8Array,X=H.propertyIsEnumerable,Q=F.splice,J=(U=Object.keys,N=Object,function(e){return U(N(e))}),Z=_e(T,"DataView"),ee=_e(T,"Map"),te=_e(T,"Promise"),ne=_e(T,"Set"),se=_e(T,"WeakMap"),ie=_e(Object,"create"),ae=ke(Z),re=ke(ee),oe=ke(te),le=ke(ne),ce=ke(se),ue=G?G.prototype:void 0,de=ue?ue.valueOf:void 0;function pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function he(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function me(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function fe(e){var t=-1,n=e?e.length:0;for(this.__data__=new me;++t<n;)this.add(e[t])}function ge(e){this.__data__=new he(e)}function be(e,t){for(var n=e.length;n--;)if(je(e[n][0],t))return n;return-1}function ve(e,t,n,s,i){return e===t||(null==e||null==t||!Oe(e)&&!Ie(t)?e!=e&&t!=t:function(e,t,n,s,i,u){var m=Te(e),v=Te(t),_=r,S=r;m||(_=(_=Se(e))==a?h:_),v||(S=(S=Se(t))==a?h:S);var w=_==h&&!L(e),k=S==h&&!L(t),j=_==S;if(j&&!w)return u||(u=new ge),m||Me(e)?ye(e,t,n,s,i,u):function(e,t,n,s,i,a,r){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!s(new K(e),new K(t)));case o:case l:case p:return je(+e,+t);case c:return e.name==t.name&&e.message==t.message;case f:case b:return e==t+"";case d:var u=A;case g:var h=2&a;if(u||(u=E),e.size!=t.size&&!h)return!1;var m=r.get(e);if(m)return m==t;a|=1,r.set(e,t);var v=ye(u(e),u(t),s,i,a,r);return r.delete(e),v;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,_,n,s,i,u);if(!(2&i)){var T=w&&W.call(e,"__wrapped__"),C=k&&W.call(t,"__wrapped__");if(T||C){var D=T?e.value():e,P=C?t.value():t;return u||(u=new ge),n(D,P,s,i,u)}}return!!j&&(u||(u=new ge),function(e,t,n,s,i,a){var r=2&i,o=Le(e),l=o.length;if(l!=Le(t).length&&!r)return!1;for(var c=l;c--;){var u=o[c];if(!(r?u in t:W.call(t,u)))return!1}var d=a.get(e);if(d&&a.get(t))return d==t;var p=!0;a.set(e,t),a.set(t,e);for(var h=r;++c<l;){var m=e[u=o[c]],f=t[u];if(s)var g=r?s(f,m,u,t,e,a):s(m,f,u,e,t,a);if(!(void 0===g?m===f||n(m,f,s,i,a):g)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,s,i,u))}(e,t,ve,n,s,i))}function ye(e,t,n,s,i,a){var r=2&i,o=e.length,l=t.length;if(o!=l&&!(r&&l>o))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,d=!0,p=1&i?new fe:void 0;for(a.set(e,t),a.set(t,e);++u<o;){var h=e[u],m=t[u];if(s)var f=r?s(m,h,u,t,e,a):s(h,m,u,e,t,a);if(void 0!==f){if(f)continue;d=!1;break}if(p){if(!M(t,(function(e,t){if(!p.has(t)&&(h===e||n(h,e,s,i,a)))return p.add(t)}))){d=!1;break}}else if(h!==m&&!n(h,m,s,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function xe(e,t){var n,s,i=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function _e(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!Oe(e)||function(e){return!!V&&V in e}(e))&&(De(e)||L(e)?q:_).test(ke(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ie?ie(null):{}},pe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},pe.prototype.get=function(e){var t=this.__data__;if(ie){var n=t[e];return n===s?void 0:n}return W.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ie?void 0!==t[e]:W.call(t,e)},pe.prototype.set=function(e,t){return this.__data__[e]=ie&&void 0===t?s:t,this},he.prototype.clear=function(){this.__data__=[]},he.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():Q.call(t,n,1),0))},he.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return be(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,s=be(n,e);return s<0?n.push([e,t]):n[s][1]=t,this},me.prototype.clear=function(){this.__data__={hash:new pe,map:new(ee||he),string:new pe}},me.prototype.delete=function(e){return xe(this,e).delete(e)},me.prototype.get=function(e){return xe(this,e).get(e)},me.prototype.has=function(e){return xe(this,e).has(e)},me.prototype.set=function(e,t){return xe(this,e).set(e,t),this},fe.prototype.add=fe.prototype.push=function(e){return this.__data__.set(e,s),this},fe.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.clear=function(){this.__data__=new he},ge.prototype.delete=function(e){return this.__data__.delete(e)},ge.prototype.get=function(e){return this.__data__.get(e)},ge.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var s=n.__data__;if(!ee||s.length<199)return s.push([e,t]),this;n=this.__data__=new me(s)}return n.set(e,t),this};var Se=function(e){return z.call(e)};function we(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||S.test(e))&&e>-1&&e%1==0&&e<t}function ke(e){if(null!=e){try{return $.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function je(e,t){return e===t||e!=e&&t!=t}(Z&&Se(new Z(new ArrayBuffer(1)))!=x||ee&&Se(new ee)!=d||te&&Se(te.resolve())!=m||ne&&Se(new ne)!=g||se&&Se(new se)!=v)&&(Se=function(e){var t=z.call(e),n=t==h?e.constructor:void 0,s=n?ke(n):void 0;if(s)switch(s){case ae:return x;case re:return d;case oe:return m;case le:return g;case ce:return v}return t});var Te=Array.isArray;function Ce(e){return null!=e&&Pe(e.length)&&!De(e)}function De(e){var t=Oe(e)?z.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Pe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function Oe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ie(e){return!!e&&"object"==typeof e}var Me=I?function(e){return function(t){return e(t)}}(I):function(e){return Ie(e)&&Pe(e.length)&&!!w[z.call(e)]};function Le(e){return Ce(e)?function(e,t){var n=Te(e)||function(e){return function(e){return Ie(e)&&Ce(e)}(e)&&W.call(e,"callee")&&(!X.call(e,"callee")||z.call(e)==a)}(e)?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],s=n.length,i=!!s;for(var r in e)!t&&!W.call(e,r)||i&&("length"==r||we(r,s))||n.push(r);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||H))return J(e);var t,n,s=[];for(var i in Object(e))W.call(e,i)&&"constructor"!=i&&s.push(i);return s}(e)}e.exports=function(e,t,n){var s=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===s?ve(e,t,n):!!s}},71514:e=>{"use strict";e.exports=Math.abs},58968:e=>{"use strict";e.exports=Math.floor},6188:e=>{"use strict";e.exports=Math.max},68002:e=>{"use strict";e.exports=Math.min},75880:e=>{"use strict";e.exports=Math.pow},6864:function(e,t,n){"use strict";const s=n(16368),{hasOwnProperty:i}=Object.prototype,{propertyIsEnumerable:a}=Object,r=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),o=this,l={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const n in e)i.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(const s of n)a.call(e,s)&&t.push(s)}return t};function u(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return c(e).forEach((n=>{r(t,n,u(e[n]))})),t}(e):s(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach((n=>{r(t,n,u(e[n]))})),t}(e):e}const d=(e,t,n,s)=>(n.forEach((n=>{void 0===t[n]&&s.ignoreUndefined||(n in e&&e[n]!==Object.getPrototypeOf(e)?r(e,n,h(e[n],t[n],s)):r(e,n,u(t[n])))})),e),p=(e,t,n)=>{let s=e.slice(0,0),a=0;return[e,t].forEach((t=>{const o=[];for(let n=0;n<t.length;n++)i.call(t,n)&&(o.push(String(n)),r(s,a++,t===e?t[n]:u(t[n])));s=d(s,t,c(t).filter((e=>!o.includes(e))),n)})),s};function h(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?p(e,t,n):s(t)&&s(e)?d(e,t,c(t),n):u(t)}e.exports=function(...e){const t=h(u(l),this!==o&&this||{},l);let n={_:{}};for(const i of e)if(void 0!==i){if(!s(i))throw new TypeError("`"+i+"` is not an Option Object");n=h(n,{_:i},t)}return n._}},25177:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},41488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(s,i,a,r){var o=t(s),l=n[e][t(s)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,s)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(95093))},58676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(95093))},42353:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,a,r){var o=n(t),l=s[e][n(t)];return 2===o&&(l=l[i?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},24496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},82682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},89756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},61509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,r){var o=s(t),l=i[e][s(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},95533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},28959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(s=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),s%10==1&&s%100!=11?i[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?i[1]:i[2]);var s,i}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(95093))},47777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},54903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(95093))},17357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(95093))},61290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(95093))},31545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(95093))},11470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(95093))},44429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var s=e+" ";switch(n){case"ss":return s+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return s+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return s+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return s+(1===e?"dan":"dana");case"MM":return s+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return s+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,s){if("m"===n)return t?"jedna minuta":s?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},56464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),s=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,t,n,s){var i=e+" ";switch(n){case"s":return t||s?"pár sekund":"pár sekundami";case"ss":return t||s?i+(a(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":s?"minutu":"minutou";case"mm":return t||s?i+(a(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?i+(a(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||s?"den":"dnem";case"dd":return t||s?i+(a(e)?"dny":"dní"):i+"dny";case"M":return t||s?"měsíc":"měsícem";case"MM":return t||s?i+(a(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||s?"rok":"rokem";case"yy":return t||s?i+(a(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},73635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(95093))},64226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},93601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26111:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54697:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},77853:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},60708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(95093))},54691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,s=this._calendarEl[e],i=t&&t.hours();return n=s,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(s=s.apply(t)),s.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(95093))},53872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(95093))},28298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},56195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},66584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},65543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(95093))},79402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},43004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},32934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(95093))},20838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},17730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},56575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(95093))},97650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:s?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},90527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function s(e,s,i,a){var r="";switch(i){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":r=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return function(e,s){return e<10?s?n[e]:t[e]:e}(e,a)+" "+r}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},95995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},52477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(95093))},37892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},85498:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},37071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},41734:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},70217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},77329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},32124:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return s?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(95093))},93383:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return s?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(95093))},95050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(95093))},11713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(95093))},43861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},s=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:s,longMonthsParse:s,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(95093))},26308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var s=e+" ";switch(n){case"ss":return s+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return s+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return s+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return s+(1===e?"dan":"dana");case"MM":return s+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return s+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},90609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,s){var i=e;switch(n){case"s":return s||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(s||t)?" másodperc":" másodperce";case"m":return"egy"+(s||t?" perc":" perce");case"mm":return i+(s||t?" perc":" perce");case"h":return"egy"+(s||t?" óra":" órája");case"hh":return i+(s||t?" óra":" órája");case"d":return"egy"+(s||t?" nap":" napja");case"dd":return i+(s||t?" nap":" napja");case"M":return"egy"+(s||t?" hónap":" hónapja");case"MM":return i+(s||t?" hónap":" hónapja");case"y":return"egy"+(s||t?" év":" éve");case"yy":return i+(s||t?" év":" éve")}return""}function s(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return s.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return s.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},17160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(95093))},74063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(95093))},89374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,s,i){var a=e+" ";switch(s){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||i?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||i?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||i?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(i?"daga":"dögum"):n?a+"dagur":a+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(i?"mánuði":"mánuðum"):n?a+"mánuður":a+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?a+(n||i?"ár":"árum"):a+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},21827:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},88383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},23827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(95093))},89722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(95093))},41794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(95093))},27088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},96870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},84451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(95093))},63164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(95093))},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?i[n][0]:i[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(95093))},98174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:s,monthsShort:s,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},78474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},79680:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},15867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(95093))},45766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,s){return t?i(n)[0]:s?i(n)[1]:i(n)[2]}function s(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function a(e,t,a,r){var o=e+" ";return 1===e?o+n(0,t,a[0],r):t?o+(s(e)?i(a)[1]:i(a)[0]):r?o+i(a)[1]:o+(s(e)?i(a)[1]:i(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,s){return t?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(95093))},69532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function s(e,s,i){return e+" "+n(t[i],e,s)}function i(e,s,i){return n(t[i],e,s)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:s,m:i,mm:s,h:i,hh:s,d:i,dd:s,M:i,MM:s,y:i,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},58076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,s){var i=t.words[s];return 1===s.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},41848:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},30306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},73739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(95093))},99053:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(95093))},86169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function s(e,t,n,s){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(95093))},92297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},73386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},77075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},72264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},22274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(95093))},43784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},92572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},54566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},69330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},29849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(95093))},94418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var s=e+" ";switch(n){case"ss":return s+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return s+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return s+(i(e)?"godziny":"godzin");case"ww":return s+(i(e)?"tygodnie":"tygodni");case"MM":return s+(i(e)?"miesiące":"miesięcy");case"yy":return s+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,s){return e?/D MMMM/.test(s)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},48303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(95093))},79834:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},24457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(95093))},82271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(s=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),s%10==1&&s%100!=11?i[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?i[1]:i[2]);var s,i}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(95093))},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},33478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},17538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(95093))},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function s(e){return e>1&&e<5}function i(e,t,n,i){var a=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?a+(s(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?a+(s(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?a+(s(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?a+(s(e)?"dni":"dní"):a+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?a+(s(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?a+(s(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},46637:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i=e+" ";switch(n){case"s":return t||s?"nekaj sekund":"nekaj sekundami";case"ss":return i+(1===e?t?"sekundo":"sekundi":2===e?t||s?"sekundi":"sekundah":e<5?t||s?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return i+(1===e?t?"minuta":"minuto":2===e?t||s?"minuti":"minutama":e<5?t||s?"minute":"minutami":t||s?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return i+(1===e?t?"ura":"uro":2===e?t||s?"uri":"urama":e<5?t||s?"ure":"urami":t||s?"ur":"urami");case"d":return t||s?"en dan":"enim dnem";case"dd":return i+(1===e?t||s?"dan":"dnem":2===e?t||s?"dni":"dnevoma":t||s?"dni":"dnevi");case"M":return t||s?"en mesec":"enim mesecem";case"MM":return i+(1===e?t||s?"mesec":"mesecem":2===e?t||s?"meseca":"mesecema":e<5?t||s?"mesece":"meseci":t||s?"mesecev":"meseci");case"y":return t||s?"eno leto":"enim letom";case"yy":return i+(1===e?t||s?"leto":"letom":2===e?t||s?"leti":"letoma":e<5?t||s?"leta":"leti":t||s?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},86794:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,s,i){var a,r=t.words[s];return 1===s.length?"y"===s&&n?"једна година":i||n?r[0]:r[1]:(a=t.correctGrammaticalCase(e,r),"yy"===s&&n&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,s,i){var a,r=t.words[s];return 1===s.length?"y"===s&&n?"jedna godina":i||n?r[0]:r[1]:(a=t.correctGrammaticalCase(e,r),"yy"===s&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},56e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(95093))},41011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(95093))},40748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(95093))},11025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(95093))},28861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},86571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},55802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(95093))},59527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var s=e%10;return e+(t[s]||t[e%100-s]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},29231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},31052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,s,i){var a=function(e){var n=Math.floor(e%1e3/100),s=Math.floor(e%100/10),i=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),s>0&&(a+=(""!==a?" ":"")+t[s]+"maH"),i>0&&(a+=(""!==a?" ":"")+t[i]),""===a?"pagh":a}(e);switch(s){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},85096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var s=e%10;return e+(t[s]||t[e%100-s]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},79846:function(e,t,n){!function(e){"use strict";function t(e,t,n,s){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},97711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(95093))},81765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(95093))},48414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var s=100*e+t;return s<600?"يېرىم كېچە":s<900?"سەھەر":s<1130?"چۈشتىن بۇرۇن":s<1230?"چۈش":s<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(95093))},16618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(s=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),s%10==1&&s%100!=11?i[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?i[1]:i[2]);var s,i}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(95093))},57777:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},72475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(95093))},57609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(95093))},21135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},64051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},82218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(95093))},52648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(95093))},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1200?"上午":1200===s?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},31541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},50304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},35358:(e,t,n)=>{var s={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function i(e){var t=a(e);return n(t)}function a(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=a,e.exports=i,i.id=35358},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,s;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,s=[],i=e.length;for(n=0;n<i;++n)s.push(t(e[n],n));return s}function h(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return At(e,t,n,s,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,n=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=f(e),n=s.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function b(e){var t=m(NaN);return null!=e?h(f(t),e):f(t).userInvalidated=!0,t}s=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;t<s;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],y=!1;function x(e,t){var n,s,i,a=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=f(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(i=t[s=v[n]])||(e[s]=i);return e}function _(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,i.updateOffset(this),y=!1)}function S(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function w(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function k(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var s,a,r,l=[],c=arguments.length;for(a=0;a<c;a++){if(s="","object"==typeof arguments[a]){for(r in s+="\n["+a+"] ",arguments[0])o(arguments[0],r)&&(s+=r+": "+arguments[0][r]+", ");s=s.slice(0,-2)}else s=arguments[a];l.push(s)}w(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var j,T={};function C(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),T[e]||(w(t),T[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e,t){var n,s=h({},e);for(n in t)o(t,n)&&(r(e[n])&&r(t[n])?(s[n]={},h(s[n],e[n]),h(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&r(e[n])&&(s[n]=h({},s[n]));return s}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,j=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};function I(e,t,n){var s=""+Math.abs(e),i=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var M=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},E={};function R(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(E[e]=i),t&&(E[t[0]]=function(){return I(i.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=N(t,e.localeData()),A[t]=A[t]||function(e){var t,n,s,i=e.match(M);for(t=0,n=i.length;t<n;t++)E[i[t]]?i[t]=E[i[t]]:i[t]=(s=i[t]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(t){var s,a="";for(s=0;s<n;s++)a+=D(i[s])?i[s].call(t,e):i[s];return a}}(t),A[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,s),L.lastIndex=0,n-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Y(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function H(e){var t,n,s={};for(n in e)o(e,n)&&(t=Y(n))&&(s[t]=e[n]);return s}var B={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var V,$=/\d/,W=/\d\d/,z=/\d{3}/,q=/\d{4}/,G=/[+-]?\d{6}/,K=/\d\d?/,X=/\d\d\d\d?/,Q=/\d\d\d\d\d\d?/,J=/\d{1,3}/,Z=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ie=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,re=/^[1-9]\d?/,oe=/^([1-9]\d|\d)/;function le(e,t,n){V[e]=D(t)?t:function(e,s){return e&&n?n:t}}function ce(e,t){return o(V,e)?V[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,s,i){return t||n||s||i}))))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}V={};var he={};function me(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),u(t)&&(i=function(e,n){n[t]=pe(e)}),s=e.length,n=0;n<s;n++)he[e[n]]=i}function fe(e,t){me(e,(function(e,n,s,i){s._w=s._w||{},t(e,s._w,s,i)}))}function ge(e,t,n){null!=t&&o(he,e)&&he[e](t,n._a,n,e)}function be(e){return e%4==0&&e%100!=0||e%400==0}var ve=0,ye=1,xe=2,_e=3,Se=4,we=5,ke=6,je=7,Te=8;function Ce(e){return be(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?I(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",K,W),le("YYYY",Z,q),le("YYYYY",ee,G),le("YYYYYY",ee,G),me(["YYYYY","YYYYYY"],ve),me("YYYY",(function(e,t){t[ve]=2===e.length?i.parseTwoDigitYear(e):pe(e)})),me("YY",(function(e,t){t[ve]=i.parseTwoDigitYear(e)})),me("Y",(function(e,t){t[ve]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var De,Pe=Oe("FullYear",!0);function Oe(e,t){return function(n){return null!=n?(Me(this,e,n),i.updateOffset(this,t),this):Ie(this,e)}}function Ie(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Me(e,t,n){var s,i,a,r,o;if(e.isValid()&&!isNaN(n)){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}a=n,r=e.month(),o=29!==(o=e.date())||1!==r||be(a)?o:28,i?s.setUTCFullYear(a,r,o):s.setFullYear(a,r,o)}}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?be(e)?29:28:31-s%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",K,re),le("MM",K,W),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),me(["M","MM"],(function(e,t){t[ye]=pe(e)-1})),me(["MMM","MMMM"],(function(e,t,n,s){var i=n._locale.monthsParse(e,s,n._strict);null!=i?t[ye]=i:f(n).invalidMonth=e}));var Ae="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ue=ae,Ne=ae;function Fe(e,t,n){var s,i,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)a=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,r))?i:null:-1!==(i=De.call(this._longMonthsParse,r))?i:null:"MMM"===t?-1!==(i=De.call(this._shortMonthsParse,r))||-1!==(i=De.call(this._longMonthsParse,r))?i:null:-1!==(i=De.call(this._longMonthsParse,r))||-1!==(i=De.call(this._shortMonthsParse,r))?i:null}function Ye(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=pe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,s=e.date();return s=s<29?s:Math.min(s,Le(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function He(e){return null!=e?(Ye(this,e),i.updateOffset(this,!0),this):Ie(this,"Month")}function Be(){function e(e,t){return t.length-e.length}var t,n,s,i,a=[],r=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),s=ue(this.monthsShort(n,"")),i=ue(this.months(n,"")),a.push(s),r.push(i),o.push(i),o.push(s);a.sort(e),r.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ve(e,t,n,s,i,a,r){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,a,r),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,a,r),o}function $e(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,n){var s=7+t-n;return-(7+$e(e,0,s).getUTCDay()-t)%7+s-1}function ze(e,t,n,s,i){var a,r,o=1+7*(t-1)+(7+n-s)%7+We(e,s,i);return o<=0?r=Ce(a=e-1)+o:o>Ce(e)?(a=e+1,r=o-Ce(e)):(a=e,r=o),{year:a,dayOfYear:r}}function qe(e,t,n){var s,i,a=We(e.year(),t,n),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?s=r+Ge(i=e.year()-1,t,n):r>Ge(e.year(),t,n)?(s=r-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),s=r),{week:s,year:i}}function Ge(e,t,n){var s=We(e,t,n),i=We(e+1,t,n);return(Ce(e)-s+i)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),le("w",K,re),le("ww",K,W),le("W",K,re),le("WW",K,W),fe(["w","ww","W","WW"],(function(e,t,n,s){t[s.substr(0,1)]=pe(e)}));function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),le("d",K),le("e",K),le("E",K),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),fe(["dd","ddd","dddd"],(function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:f(n).invalidWeekday=e})),fe(["d","e","E"],(function(e,t,n,s){t[s]=pe(e)}));var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ae,et=ae,tt=ae;function nt(e,t,n){var s,i,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)a=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,r))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,r))?i:null:-1!==(i=De.call(this._minWeekdaysParse,r))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,r))||-1!==(i=De.call(this._shortWeekdaysParse,r))||-1!==(i=De.call(this._minWeekdaysParse,r))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,r))||-1!==(i=De.call(this._weekdaysParse,r))||-1!==(i=De.call(this._minWeekdaysParse,r))?i:null:-1!==(i=De.call(this._minWeekdaysParse,r))||-1!==(i=De.call(this._weekdaysParse,r))||-1!==(i=De.call(this._shortWeekdaysParse,r))?i:null}function st(){function e(e,t){return t.length-e.length}var t,n,s,i,a,r=[],o=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=ue(this.weekdaysMin(n,"")),i=ue(this.weekdaysShort(n,"")),a=ue(this.weekdays(n,"")),r.push(s),o.push(i),l.push(a),c.push(s),c.push(i),c.push(a);r.sort(e),o.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function it(){return this.hours()%12||12}function at(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function rt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,it),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+it.apply(this)+I(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+it.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),at("a",!0),at("A",!1),le("a",rt),le("A",rt),le("H",K,oe),le("h",K,re),le("k",K,re),le("HH",K,W),le("hh",K,W),le("kk",K,W),le("hmm",X),le("hmmss",Q),le("Hmm",X),le("Hmmss",Q),me(["H","HH"],_e),me(["k","kk"],(function(e,t,n){var s=pe(e);t[_e]=24===s?0:s})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[_e]=pe(e),f(n).bigHour=!0})),me("hmm",(function(e,t,n){var s=e.length-2;t[_e]=pe(e.substr(0,s)),t[Se]=pe(e.substr(s)),f(n).bigHour=!0})),me("hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[_e]=pe(e.substr(0,s)),t[Se]=pe(e.substr(s,2)),t[we]=pe(e.substr(i)),f(n).bigHour=!0})),me("Hmm",(function(e,t,n){var s=e.length-2;t[_e]=pe(e.substr(0,s)),t[Se]=pe(e.substr(s))})),me("Hmmss",(function(e,t,n){var s=e.length-4,i=e.length-2;t[_e]=pe(e.substr(0,s)),t[Se]=pe(e.substr(s,2)),t[we]=pe(e.substr(i))}));var ot=Oe("Hours",!0);var lt,ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ae,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Je,weekdaysShort:Qe,meridiemParse:/[ap]\.?m?\.?/i},ut={},dt={};function pt(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function mt(t){var s=null;if(void 0===ut[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{s=lt._abbr,n(35358)("./"+t),ft(s)}catch(e){ut[t]=null}return ut[t]}function ft(e,t){var n;return e&&((n=c(t)?bt(e):gt(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function gt(e,t){if(null!==t){var n,s=ct;if(t.abbr=e,null!=ut[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])s=ut[t.parentLocale]._config;else{if(null==(n=mt(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return ut[e]=new O(P(s,t)),dt[e]&&dt[e].forEach((function(e){gt(e.name,e.config)})),ft(e),ut[e]}return delete ut[e],null}function bt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!a(e)){if(t=mt(e))return t;e=[e]}return function(e){for(var t,n,s,i,a=0;a<e.length;){for(t=(i=ht(e[a]).split("-")).length,n=(n=ht(e[a+1]))?n.split("-"):null;t>0;){if(s=mt(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&pt(i,n)>=t-1)break;t--}a++}return lt}(e)}function vt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[xe]<1||n[xe]>Le(n[ve],n[ye])?xe:n[_e]<0||n[_e]>24||24===n[_e]&&(0!==n[Se]||0!==n[we]||0!==n[ke])?_e:n[Se]<0||n[Se]>59?Se:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>999?ke:-1,f(e)._overflowDayOfYear&&(t<ve||t>xe)&&(t=xe),f(e)._overflowWeeks&&-1===t&&(t=je),f(e)._overflowWeekday&&-1===t&&(t=Te),f(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,St=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kt=/^\/?Date\((-?\d+)/i,jt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Tt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,s,i,a,r,o=e._i,l=yt.exec(o)||xt.exec(o),c=St.length,u=wt.length;if(l){for(f(e).iso=!0,t=0,n=c;t<n;t++)if(St[t][1].exec(l[1])){i=St[t][0],s=!1!==St[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){a=(l[2]||" ")+wt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!s&&null!=a)return void(e._isValid=!1);if(l[4]){if(!_t.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=i+(a||"")+(r||""),Mt(e)}else e._isValid=!1}function Dt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Pt(e){var t,n,s,i,a,r,o,l,c=jt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],s=c[3],i=c[2],a=c[5],r=c[6],o=c[7],l=[Dt(n),Ee.indexOf(s),parseInt(i,10),parseInt(a,10),parseInt(r,10)],o&&l.push(parseInt(o,10)),t=l,!function(e,t,n){return!e||Qe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return Tt[e];if(t)return 0;var s=parseInt(n,10),i=s%100;return(s-i)/100*60+i}(c[8],c[9],c[10]),e._d=$e.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function Ot(e,t,n){return null!=e?e:null!=t?t:n}function It(e){var t,n,s,a,r,o=[];if(!e._d){for(s=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[xe]&&null==e._a[ye]&&function(e){var t,n,s,i,a,r,o,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,r=4,n=Ot(t.GG,e._a[ve],qe(Et(),1,4).year),s=Ot(t.W,1),((i=Ot(t.E,1))<1||i>7)&&(l=!0)):(a=e._locale._week.dow,r=e._locale._week.doy,c=qe(Et(),a,r),n=Ot(t.gg,e._a[ve],c.year),s=Ot(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),s<1||s>Ge(n,a,r)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(o=ze(n,s,i,a,r),e._a[ve]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=Ot(e._a[ve],s[ve]),(e._dayOfYear>Ce(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=$e(r,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[xe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[_e]&&0===e._a[Se]&&0===e._a[we]&&0===e._a[ke]&&(e._nextDay=!0,e._a[_e]=0),e._d=(e._useUTC?$e:Ve).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[_e]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function Mt(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],f(e).empty=!0;var t,n,s,a,r,o,l,c=""+e._i,u=c.length,d=0;for(l=(s=N(e._f,e._locale).match(M)||[]).length,t=0;t<l;t++)a=s[t],(n=(c.match(ce(a,e))||[])[0])&&((r=c.substr(0,c.indexOf(n))).length>0&&f(e).unusedInput.push(r),c=c.slice(c.indexOf(n)+n.length),d+=n.length),E[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=u-d,c.length>0&&f(e).unusedInput.push(c),e._a[_e]<=12&&!0===f(e).bigHour&&e._a[_e]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[_e]=function(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[_e],e._meridiem),null!==(o=f(e).era)&&(e._a[ve]=e._locale.erasConvertYear(o,e._a[ve])),It(e),vt(e)}else Pt(e);else Ct(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||bt(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new _(vt(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,s,i,a,r,o=!1,l=e._f.length;if(0===l)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)a=0,r=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Mt(t),g(t)&&(r=!0),a+=f(t).charsLeftOver,a+=10*f(t).unusedTokens.length,f(t).score=a,o?a<s&&(s=a,n=t):(null==s||a<s||r)&&(s=a,n=t,r&&(o=!0));h(e,n||t)}(e):n?Mt(e):function(e){var t=e._i;c(t)?e._d=new Date(i.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=kt.exec(e._i);null===t?(Ct(e),!1===e._isValid&&(delete e._isValid,Pt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),It(e)):r(t)?function(e){if(!e._d){var t=H(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),It(e)}}(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function At(e,t,n,s,i){var o,c={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(r(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=i,c._l=n,c._i=e,c._f=t,c._strict=s,(o=new _(vt(Lt(c))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Et(e,t,n,s){return At(e,t,n,s,!1)}i.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Rt=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Ut=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Nt(e,t){var n,s;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Yt(e){var t=H(e),n=t.year||0,s=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,r=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,s=!1,i=Ft.length;for(t in e)if(o(e,t)&&(-1===De.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ft[n]]){if(s)return!1;parseFloat(e[Ft[n]])!==pe(e[Ft[n]])&&(s=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+r+7*a,this._months=+i+3*s+12*n,this._data={},this._locale=bt(),this._bubble()}function Ht(e){return e instanceof Yt}function Bt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Vt(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+I(~~(e/60),2)+t+I(~~e%60,2)}))}Vt("Z",":"),Vt("ZZ",""),le("Z",ie),le("ZZ",ie),me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Wt(ie,e)}));var $t=/([\+\-]|\d\d)/gi;function Wt(e,t){var n,s,i=(t||"").match(e);return null===i?null:0===(s=60*(n=((i[i.length-1]||[])+"").match($t)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?s:-s}function zt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(S(e)||d(e)?e.valueOf():Et(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),i.updateOffset(n,!1),n):Et(e).local()}function qt(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Kt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Xt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Qt(e,t){var n,s,i,a,r,l,c=e,d=null;return Ht(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Kt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:pe(d[xe])*n,h:pe(d[_e])*n,m:pe(d[Se])*n,s:pe(d[we])*n,ms:pe(Bt(1e3*d[ke]))*n}):(d=Xt.exec(e))?(n="-"===d[1]?-1:1,c={y:Jt(d[2],n),M:Jt(d[3],n),w:Jt(d[4],n),d:Jt(d[5],n),h:Jt(d[6],n),m:Jt(d[7],n),s:Jt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=Et(c.from),r=Et(c.to),i=a.isValid()&&r.isValid()?(r=zt(r,a),a.isBefore(r)?l=Zt(a,r):((l=Zt(r,a)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=i.milliseconds,c.M=i.months),s=new Yt(c),Ht(e)&&o(e,"_locale")&&(s._locale=e._locale),Ht(e)&&o(e,"_isValid")&&(s._isValid=e._isValid),s}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,s){var i;return null===s||isNaN(+s)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=s,s=i),tn(this,Qt(n,s),e),this}}function tn(e,t,n,s){var a=t._milliseconds,r=Bt(t._days),o=Bt(t._months);e.isValid()&&(s=null==s||s,o&&Ye(e,Ie(e,"Month")+o*n),r&&Me(e,"Date",Ie(e,"Date")+r*n),a&&e._d.setTime(e._d.valueOf()+a*n),s&&i.updateOffset(e,r||o))}Qt.fn=Yt.prototype,Qt.invalid=function(){return Qt(NaN)};var nn=en(1,"add"),sn=en(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function rn(e){return S(e)||d(e)||an(e)||u(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&an(e)})).length),t&&n}(e)||function(e){var t,n,s=r(e)&&!l(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(t=0;t<c;t+=1)n=a[t],i=i||o(e,n);return s&&i}(e)||null==e}function on(e,t){if(e.date()<t.date())return-on(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bt(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function un(){return this._locale}var dn=1e3,pn=6e4,hn=36e5,mn=126227808e5;function fn(e,t){return(e%t+t)%t}function gn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mn:new Date(e,t,n).valueOf()}function bn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,s,i,a=[],r=[],o=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),s=ue(c[e].abbr),i=ue(c[e].narrow),r.push(n),a.push(s),o.push(i),l.push(n),l.push(s),l.push(i);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function xn(e,t){R(0,[e,e.length],0,t)}function _n(e,t,n,s,i){var a;return null==e?qe(this,s,i).year:(t>(a=Ge(e,s,i))&&(t=a),Sn.call(this,e,t,n,s,i))}function Sn(e,t,n,s,i){var a=ze(e,t,n,s,i),r=$e(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),le("N",vn),le("NN",vn),le("NNN",vn),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),me(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?f(n).era=i:f(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),me(["y","yy","yyy","yyyy"],ve),me(["yo"],(function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,i):t[ve]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),xn("gggg","weekYear"),xn("ggggg","weekYear"),xn("GGGG","isoWeekYear"),xn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",K,W),le("gg",K,W),le("GGGG",Z,q),le("gggg",Z,q),le("GGGGG",ee,G),le("ggggg",ee,G),fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,s){t[s.substr(0,2)]=pe(e)})),fe(["gg","GG"],(function(e,t,n,s){t[s]=i.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),le("Q",$),me("Q",(function(e,t){t[ye]=3*(pe(e)-1)})),R("D",["DD",2],"Do","date"),le("D",K,re),le("DD",K,W),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),me(["D","DD"],xe),me("Do",(function(e,t){t[xe]=pe(e.match(K)[0])}));var wn=Oe("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",J),le("DDDD",z),me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),R("m",["mm",2],0,"minute"),le("m",K,oe),le("mm",K,W),me(["m","mm"],Se);var kn=Oe("Minutes",!1);R("s",["ss",2],0,"second"),le("s",K,oe),le("ss",K,W),me(["s","ss"],we);var jn,Tn,Cn=Oe("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",J,$),le("SS",J,W),le("SSS",J,z),jn="SSSS";jn.length<=9;jn+="S")le(jn,te);function Dn(e,t){t[ke]=pe(1e3*("0."+e))}for(jn="S";jn.length<=9;jn+="S")me(jn,Dn);Tn=Oe("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var Pn=_.prototype;function On(e){return e}Pn.add=nn,Pn.calendar=function(e,t){1===arguments.length&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=r(e)&&!l(e),s=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)s=s||o(e,i[t]);return n&&s}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),s=zt(n,this).startOf("day"),a=i.calendarFormat(this,s)||"sameElse",c=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(c||this.localeData().calendar(a,this,Et(n)))},Pn.clone=function(){return new _(this)},Pn.diff=function(e,t,n){var s,i,a;if(!this.isValid())return NaN;if(!(s=zt(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=Y(t)){case"year":a=on(this,s)/12;break;case"month":a=on(this,s);break;case"quarter":a=on(this,s)/3;break;case"second":a=(this-s)/1e3;break;case"minute":a=(this-s)/6e4;break;case"hour":a=(this-s)/36e5;break;case"day":a=(this-s-i)/864e5;break;case"week":a=(this-s-i)/6048e5;break;default:a=this-s}return n?a:de(a)},Pn.endOf=function(e){var t,n;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-fn(t+(this._isUTC?0:this.utcOffset()*pn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=pn-fn(t,pn)-1;break;case"second":t=this._d.valueOf(),t+=dn-fn(t,dn)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},Pn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},Pn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Et(e).isValid())?Qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Pn.fromNow=function(e){return this.from(Et(),e)},Pn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Et(e).isValid())?Qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Pn.toNow=function(e){return this.to(Et(),e)},Pn.get=function(e){return D(this[e=Y(e)])?this[e]():this},Pn.invalidAt=function(){return f(this).overflow},Pn.isAfter=function(e,t){var n=S(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Pn.isBefore=function(e,t){var n=S(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Pn.isBetween=function(e,t,n,s){var i=S(e)?e:Et(e),a=S(t)?t:Et(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(s=s||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===s[1]?this.isBefore(a,n):!this.isAfter(a,n))},Pn.isSame=function(e,t){var n,s=S(e)?e:Et(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=Y(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Pn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Pn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Pn.isValid=function(){return g(this)},Pn.lang=cn,Pn.locale=ln,Pn.localeData=un,Pn.max=Ut,Pn.min=Rt,Pn.parsingFlags=function(){return h({},f(this))},Pn.set=function(e,t){if("object"==typeof e){var n,s=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:B[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=H(e)),i=s.length;for(n=0;n<i;n++)this[s[n].unit](e[s[n].unit])}else if(D(this[e=Y(e)]))return this[e](t);return this},Pn.startOf=function(e){var t,n;if(void 0===(e=Y(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:gn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fn(t+(this._isUTC?0:this.utcOffset()*pn),hn);break;case"minute":t=this._d.valueOf(),t-=fn(t,pn);break;case"second":t=this._d.valueOf(),t-=fn(t,dn)}return this._d.setTime(t),i.updateOffset(this,!0),this},Pn.subtract=sn,Pn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Pn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Pn.toDate=function(){return new Date(this.valueOf())},Pn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Pn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Pn.toJSON=function(){return this.isValid()?this.toISOString():null},Pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Pn.unix=function(){return Math.floor(this.valueOf()/1e3)},Pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Pn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].name;if(s[e].until<=n&&n<=s[e].since)return s[e].name}return""},Pn.eraNarrow=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].narrow;if(s[e].until<=n&&n<=s[e].since)return s[e].narrow}return""},Pn.eraAbbr=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].abbr;if(s[e].until<=n&&n<=s[e].since)return s[e].abbr}return""},Pn.eraYear=function(){var e,t,n,s,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,s=this.clone().startOf("day").valueOf(),a[e].since<=s&&s<=a[e].until||a[e].until<=s&&s<=a[e].since)return(this.year()-i(a[e].since).year())*n+a[e].offset;return this.year()},Pn.year=Pe,Pn.isLeapYear=function(){return be(this.year())},Pn.weekYear=function(e){return _n.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Pn.isoWeekYear=function(e){return _n.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Pn.quarter=Pn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Pn.month=He,Pn.daysInMonth=function(){return Le(this.year(),this.month())},Pn.week=Pn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Pn.isoWeek=Pn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Pn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},Pn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},Pn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},Pn.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},Pn.date=wn,Pn.day=Pn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Ie(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Pn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Pn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Pn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Pn.hour=Pn.hours=ot,Pn.minute=Pn.minutes=kn,Pn.second=Pn.seconds=Cn,Pn.millisecond=Pn.milliseconds=Tn,Pn.utcOffset=function(e,t,n){var s,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(ie,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=qt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),a!==e&&(!t||this._changeInProgress?tn(this,Qt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:qt(this)},Pn.utc=function(e){return this.utcOffset(0,e)},Pn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qt(this),"m")),this},Pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Pn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Et(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Pn.isUtc=Gt,Pn.isUTC=Gt,Pn.zoneAbbr=function(){return this._isUTC?"UTC":""},Pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Pn.dates=k("dates accessor is deprecated. Use date instead.",wn),Pn.months=k("months accessor is deprecated. Use month instead",He),Pn.years=k("years accessor is deprecated. Use year instead",Pe),Pn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Pn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Lt(t))._a?(e=t._isUTC?m(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(s=0;s<i;s++)(n&&e[s]!==t[s]||!n&&pe(e[s])!==pe(t[s]))&&r++;return r+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var In=O.prototype;function Mn(e,t,n,s){var i=bt(),a=m().set(s,t);return i[n](a,e)}function Ln(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=Mn(e,s,n,"month");return i}function An(e,t,n,s){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,a=bt(),r=e?a._week.dow:0,o=[];if(null!=n)return Mn(t,(n+r)%7,s,"day");for(i=0;i<7;i++)o[i]=Mn(t,(i+r)%7,s,"day");return o}In.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return D(s)?s.call(t,n):s},In.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(M).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},In.invalidDate=function(){return this._invalidDate},In.ordinal=function(e){return this._ordinal.replace("%d",e)},In.preparse=On,In.postformat=On,In.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return D(i)?i(e,t,n,s):i.replace(/%d/i,e)},In.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},In.set=function(e){var t,n;for(n in e)o(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},In.eras=function(e,t){var n,s,a,r=this._eras||bt("en")._eras;for(n=0,s=r.length;n<s;++n)switch("string"==typeof r[n].since&&(a=i(r[n].since).startOf("day"),r[n].since=a.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":a=i(r[n].until).startOf("day").valueOf(),r[n].until=a.valueOf()}return r},In.erasParse=function(e,t,n){var s,i,a,r,o,l=this.eras();for(e=e.toUpperCase(),s=0,i=l.length;s<i;++s)if(a=l[s].name.toUpperCase(),r=l[s].abbr.toUpperCase(),o=l[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[s];break;case"NNNN":if(a===e)return l[s];break;case"NNNNN":if(o===e)return l[s]}else if([a,r,o].indexOf(e)>=0)return l[s]},In.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n},In.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},In.erasNameRegex=function(e){return o(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},In.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},In.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},In.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},In.monthsParse=function(e,t,n){var s,i,a;if(this._monthsParseExact)return Fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},In.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Be.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},In.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Be.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},In.week=function(e){return qe(e,this._week.dow,this._week.doy).week},In.firstDayOfYear=function(){return this._week.doy},In.firstDayOfWeek=function(){return this._week.dow},In.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},In.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},In.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},In.weekdaysParse=function(e,t,n){var s,i,a;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},In.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},In.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},In.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},In.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},In.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",ft),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bt);var En=Math.abs;function Rn(e,t,n,s){var i=Qt(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function Un(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function Fn(e){return 146097*e/4800}function Yn(e){return function(){return this.as(e)}}var Hn=Yn("ms"),Bn=Yn("s"),Vn=Yn("m"),$n=Yn("h"),Wn=Yn("d"),zn=Yn("w"),qn=Yn("M"),Gn=Yn("Q"),Kn=Yn("y"),Xn=Hn;function Qn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Jn=Qn("milliseconds"),Zn=Qn("seconds"),es=Qn("minutes"),ts=Qn("hours"),ns=Qn("days"),ss=Qn("months"),is=Qn("years");var as=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function os(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var ls=Math.abs;function cs(e){return(e>0)-(e<0)||+e}function us(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,a,r,o,l=ls(this._milliseconds)/1e3,c=ls(this._days),u=ls(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(u/12),u%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",a=cs(this._months)!==cs(d)?"-":"",r=cs(this._days)!==cs(d)?"-":"",o=cs(this._milliseconds)!==cs(d)?"-":"",i+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?r+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+s+"S":"")):"P0D"}var ds=Yt.prototype;return ds.isValid=function(){return this._isValid},ds.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},ds.add=function(e,t){return Rn(this,e,t,1)},ds.subtract=function(e,t){return Rn(this,e,t,-1)},ds.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=Y(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Nn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Fn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},ds.asMilliseconds=Hn,ds.asSeconds=Bn,ds.asMinutes=Vn,ds.asHours=$n,ds.asDays=Wn,ds.asWeeks=zn,ds.asMonths=qn,ds.asQuarters=Gn,ds.asYears=Kn,ds.valueOf=Xn,ds._bubble=function(){var e,t,n,s,i,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return a>=0&&r>=0&&o>=0||a<=0&&r<=0&&o<=0||(a+=864e5*Un(Fn(o)+r),r=0,o=0),l.milliseconds=a%1e3,e=de(a/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,r+=de(n/24),o+=i=de(Nn(r)),r-=Un(Fn(i)),s=de(o/12),o%=12,l.days=r,l.months=o,l.years=s,this},ds.clone=function(){return Qt(this)},ds.get=function(e){return e=Y(e),this.isValid()?this[e+"s"]():NaN},ds.milliseconds=Jn,ds.seconds=Zn,ds.minutes=es,ds.hours=ts,ds.days=ns,ds.weeks=function(){return de(this.days()/7)},ds.months=ss,ds.years=is,ds.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i=!1,a=rs;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(a=Object.assign({},rs,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),s=function(e,t,n,s){var i=Qt(e).abs(),a=as(i.as("s")),r=as(i.as("m")),o=as(i.as("h")),l=as(i.as("d")),c=as(i.as("M")),u=as(i.as("w")),d=as(i.as("y")),p=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||r<=1&&["m"]||r<n.m&&["mm",r]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=s,os.apply(null,p)}(this,!i,a,n=this.localeData()),i&&(s=n.pastFuture(+this,s)),n.postformat(s)},ds.toISOString=us,ds.toString=us,ds.toJSON=us,ds.locale=ln,ds.localeData=un,ds.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),ds.lang=cn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),me("x",(function(e,t,n){n._d=new Date(pe(e))})),i.version="2.30.1",t=Et,i.fn=Pn,i.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},i.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=m,i.unix=function(e){return Et(1e3*e)},i.months=function(e,t){return Ln(e,t,"months")},i.isDate=d,i.locale=ft,i.invalid=b,i.duration=Qt,i.isMoment=S,i.weekdays=function(e,t,n){return An(e,t,n,"weekdays")},i.parseZone=function(){return Et.apply(null,arguments).parseZone()},i.localeData=bt,i.isDuration=Ht,i.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return An(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,s,i=ct;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(P(ut[e]._config,t)):(null!=(s=mt(e))&&(i=s._config),t=P(i,t),null==s&&(t.abbr=e),(n=new O(t)).parentLocale=ut[e],ut[e]=n),ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===ft()&&ft(e)):null!=ut[e]&&delete ut[e]);return ut[e]},i.locales=function(){return j(ut)},i.weekdaysShort=function(e,t,n){return An(e,t,n,"weekdaysShort")},i.normalizeUnits=Y,i.relativeTimeRounding=function(e){return void 0===e?as:"function"==typeof e&&(as=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==rs[e]&&(void 0===t?rs[e]:(rs[e]=t,"s"===e&&(rs.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=Pn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},58859:(e,t,n)=>{var s="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=s&&i&&"function"==typeof i.get?i.get:null,r=s&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&l&&"function"==typeof l.get?l.get:null,u=o&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,f=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,v=String.prototype.slice,y=String.prototype.replace,x=String.prototype.toUpperCase,_=String.prototype.toLowerCase,S=RegExp.prototype.test,w=Array.prototype.concat,k=Array.prototype.join,j=Array.prototype.slice,T=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,O="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function A(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var s=e<0?-T(-e):T(e);if(s!==e){var i=String(s),a=v.call(t,i.length+1);return y.call(i,n,"$&_")+"."+y.call(y.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var E=n(42634),R=E.custom,U=$(R)?R:null,N={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function Y(e,t,n){var s=n.quoteStyle||t,i=N[s];return i+e+i}function H(e){return y.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==q(e)||I&&"object"==typeof e&&I in e)}function V(e){return!("[object RegExp]"!==q(e)||I&&"object"==typeof e&&I in e)}function $(e){if(O)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!P)return!1;try{return P.call(e),!0}catch(e){}return!1}e.exports=function e(t,s,i,o){var l=s||{};if(z(l,"quoteStyle")&&!z(N,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=!z(l,"customInspect")||l.customInspect;if("boolean"!=typeof f&&"symbol"!==f)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return K(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var S=String(t);return x?A(t,S):S}if("bigint"==typeof t){var T=String(t)+"n";return x?A(t,T):T}var D=void 0===l.depth?5:l.depth;if(void 0===i&&(i=0),i>=D&&D>0&&"object"==typeof t)return B(t)?"[Array]":"[Object]";var R,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=k.call(Array(e.indent+1)," ")}return{base:n,prev:k.call(Array(t+1),n)}}(l,i);if(void 0===o)o=[];else if(G(o,t)>=0)return"[Circular]";function W(t,n,s){if(n&&(o=j.call(o)).push(n),s){var a={depth:l.depth};return z(l,"quoteStyle")&&(a.quoteStyle=l.quoteStyle),e(t,a,i+1,o)}return e(t,l,i+1,o)}if("function"==typeof t&&!V(t)){var X=function(e){if(e.name)return e.name;var t=b.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=te(t,W);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ne.length>0?" { "+k.call(ne,", ")+" }":"")}if($(t)){var se=O?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):P.call(t);return"object"!=typeof t||O?se:Q(se)}if((R=t)&&"object"==typeof R&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var ie="<"+_.call(String(t.nodeName)),ae=t.attributes||[],re=0;re<ae.length;re++)ie+=" "+ae[re].name+"="+Y(H(ae[re].value),"double",l);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+_.call(String(t.nodeName))+">"}if(B(t)){if(0===t.length)return"[]";var oe=te(t,W);return F&&!function(e){for(var t=0;t<e.length;t++)if(G(e[t],"\n")>=0)return!1;return!0}(oe)?"["+ee(oe,F)+"]":"[ "+k.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)){var le=te(t,W);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===le.length?"["+String(t)+"]":"{ ["+String(t)+"] "+k.call(le,", ")+" }":"{ ["+String(t)+"] "+k.call(w.call("[cause]: "+W(t.cause),le),", ")+" }"}if("object"==typeof t&&f){if(U&&"function"==typeof t[U]&&E)return E(t,{depth:D-i});if("symbol"!==f&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ce=[];return r&&r.call(t,(function(e,n){ce.push(W(n,t,!0)+" => "+W(e,t))})),Z("Map",a.call(t),ce,F)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return u&&u.call(t,(function(e){ue.push(W(e,t))})),Z("Set",c.call(t),ue,F)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return J("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return J("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return J("WeakRef");if(function(e){return!("[object Number]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Q(W(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return Q(W(C.call(t)));if(function(e){return!("[object Boolean]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Q(m.call(t));if(function(e){return!("[object String]"!==q(e)||I&&"object"==typeof e&&I in e)}(t))return Q(W(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==q(e)||I&&"object"==typeof e&&I in e)}(t)&&!V(t)){var de=te(t,W),pe=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,he=t instanceof Object?"":"null prototype",me=!pe&&I&&Object(t)===t&&I in t?v.call(q(t),8,-1):he?"Object":"",fe=(pe||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(me||he?"["+k.call(w.call([],me||[],he||[]),": ")+"] ":"");return 0===de.length?fe+"{}":F?fe+"{"+ee(de,F)+"}":fe+"{ "+k.call(de,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return W.call(e,t)}function q(e){return f.call(e)}function G(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,s=e.length;n<s;n++)if(e[n]===t)return n;return-1}function K(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,s="... "+n+" more character"+(n>1?"s":"");return K(v.call(e,0,t.maxStringLength),t)+s}var i=F[t.quoteStyle||"single"];return i.lastIndex=0,Y(y.call(y.call(e,i,"\\$1"),/[\x00-\x1f]/g,X),"single",t)}function X(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function Q(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function Z(e,t,n,s){return e+" ("+t+") {"+(s?ee(n,s):k.call(n,", "))+"}"}function ee(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+k.call(e,","+n)+"\n"+t.prev}function te(e,t){var n=B(e),s=[];if(n){s.length=e.length;for(var i=0;i<e.length;i++)s[i]=z(e,i)?t(e[i],e):""}var a,r="function"==typeof D?D(e):[];if(O){a={};for(var o=0;o<r.length;o++)a["$"+r[o]]=r[o]}for(var l in e)z(e,l)&&(n&&String(Number(l))===l&&l<e.length||O&&a["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?s.push(t(l,e)+": "+t(e[l],e)):s.push(l+": "+t(e[l],e))));if("function"==typeof D)for(var c=0;c<r.length;c++)M.call(e,r[c])&&s.push("["+t(r[c])+"]: "+t(e[r[c]],e));return s}},29466:function(e,t){var n,s;void 0===(s="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,s=t.exec(e.substring(f));if(s)return n=s[0],f+=n.length,n}for(var s,i,a,r,o,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,h=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,f=0,g=[];;){if(n(u),f>=l)return g;s=n(d),i=[],","===s.slice(-1)?(s=s.replace(p,""),v()):b()}function b(){for(n(c),a="",r="in descriptor";;){if(o=e.charAt(f),"in descriptor"===r)if(t(o))a&&(i.push(a),a="",r="after descriptor");else{if(","===o)return f+=1,a&&i.push(a),void v();if("("===o)a+=o,r="in parens";else{if(""===o)return a&&i.push(a),void v();a+=o}}else if("in parens"===r)if(")"===o)a+=o,r="in descriptor";else{if(""===o)return i.push(a),void v();a+=o}else if("after descriptor"===r)if(t(o));else{if(""===o)return void v();r="in descriptor",f-=1}f+=1}}function v(){var t,n,a,r,o,l,c,u,d,p=!1,f={};for(r=0;r<i.length;r++)l=(o=i[r])[o.length-1],c=o.substring(0,o.length-1),u=parseInt(c,10),d=parseFloat(c),h.test(c)&&"w"===l?((t||n)&&(p=!0),0===u?p=!0:t=u):m.test(c)&&"x"===l?((t||n||a)&&(p=!0),d<0?p=!0:n=d):h.test(c)&&"h"===l?((a||n)&&(p=!0),0===u?p=!0:a=u):p=!0;p?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+o+"'."):(f.url=s,t&&(f.w=t),n&&(f.d=n),a&&(f.h=a),g.push(f))}}})?n.apply(t,[]):n)||(e.exports=s)},48633:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},2694:(e,t,n)=>{"use strict";var s=n(6925);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==s){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>b,default:()=>_,encode:()=>v,toASCII:()=>x,toUnicode:()=>y,ucs2decode:()=>h,ucs2encode:()=>m});const s=2147483647,i=36,a=/^xn--/,r=/[^\0-\x7F]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){const n=e.split("@");let s="";n.length>1&&(s=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let s=e.length;for(;s--;)n[s]=t(e[s]);return n}((e=e.replace(o,".")).split("."),t).join(".");return s+i}function h(e){const t=[];let n=0;const s=e.length;for(;n<s;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<s){const s=e.charCodeAt(n++);56320==(64512&s)?t.push(((1023&i)<<10)+(1023&s)+65536):(t.push(i),n--)}else t.push(i)}return t}const m=e=>String.fromCodePoint(...e),f=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,n){let s=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;s+=i)e=c(e/35);return c(s+36*e/(e+38))},b=function(e){const t=[],n=e.length;let a=0,r=128,o=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=a;for(let t=1,r=i;;r+=i){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:i;l>=i&&d("invalid-input"),l>c((s-a)/t)&&d("overflow"),a+=l*t;const h=r<=o?1:r>=o+26?26:r-o;if(l<h)break;const m=i-h;t>c(s/m)&&d("overflow"),t*=m}const h=t.length+1;o=g(a-l,h,0==l),c(a/h)>s-r&&d("overflow"),r+=c(a/h),a%=h,t.splice(a++,0,r)}var u;return String.fromCodePoint(...t)},v=function(e){const t=[],n=(e=h(e)).length;let a=128,r=0,o=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let p=l;for(l&&t.push("-");p<n;){let n=s;for(const t of e)t>=a&&t<n&&(n=t);const h=p+1;n-a>c((s-r)/h)&&d("overflow"),r+=(n-a)*h,a=n;for(const n of e)if(n<a&&++r>s&&d("overflow"),n===a){let e=r;for(let n=i;;n+=i){const s=n<=o?1:n>=o+26?26:n-o;if(e<s)break;const a=e-s,r=i-s;t.push(u(f(s+a%r,0))),e=c(a/r)}t.push(u(f(e,0))),o=g(r,h,p===l),r=0,++p}++r,++a}return t.join("")},y=function(e){return p(e,(function(e){return a.test(e)?b(e.slice(4).toLowerCase()):e}))},x=function(e){return p(e,(function(e){return r.test(e)?"xn--"+v(e):e}))},_={version:"2.3.1",ucs2:{decode:h,encode:m},decode:b,encode:v,toASCII:x,toUnicode:y}},74765:e=>{"use strict";var t=String.prototype.replace,n=/%20/g,s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:s}},55373:(e,t,n)=>{"use strict";var s=n(98636),i=n(62642),a=n(74765);e.exports={formats:a,parse:i,stringify:s}},62642:(e,t,n)=>{"use strict";var s=n(37720),i=Object.prototype.hasOwnProperty,a=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:s.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,n,a){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(r),u=c?r.slice(0,c.index):r,d=[];if(u){if(!n.plainObjects&&i.call(Object.prototype,u)&&!n.allowPrototypes)return;d.push(u)}for(var p=0;n.depth>0&&null!==(c=o.exec(r))&&p<n.depth;){if(p+=1,!n.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(c[1])}if(c){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");d.push("["+r.slice(c.index)+"]")}return function(e,t,n,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var r=e.slice(0,-1).join("");a=Array.isArray(t)&&t[r]?t[r].length:0}for(var o=i?t:l(t,n,a),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:s.combine([],o);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,m=parseInt(h,10);n.parseArrays||""!==h?!isNaN(m)&&d!==h&&String(m)===h&&m>=0&&n.parseArrays&&m<=n.arrayLimit?(u=[])[m]=o:"__proto__"!==h&&(u[h]=o):u={0:o}}o=u}return o}(d,t,n,a)}};e.exports=function(e,t){var n=function(e){if(!e)return r;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?r.charset:e.charset,n=void 0===e.duplicates?r.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||r.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:r.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||s.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:r.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,h=-1,m=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?m="utf-8":"utf8=%26%2310003%3B"===d[p]&&(m="iso-8859-1"),h=p,p=d.length);for(p=0;p<d.length;++p)if(p!==h){var f,g,b=d[p],v=b.indexOf("]="),y=-1===v?b.indexOf("="):v+1;-1===y?(f=t.decoder(b,r.decoder,m,"key"),g=t.strictNullHandling?null:""):(f=t.decoder(b.slice(0,y),r.decoder,m,"key"),g=s.maybeMap(l(b.slice(y+1),t,a(n[f])?n[f].length:0),(function(e){return t.decoder(e,r.decoder,m,"value")}))),g&&t.interpretNumericEntities&&"iso-8859-1"===m&&(g=o(String(g))),b.indexOf("[]=")>-1&&(g=a(g)?[g]:g);var x=i.call(n,f);x&&"combine"===t.duplicates?n[f]=s.combine(n[f],g):x&&"last"!==t.duplicates||(n[f]=g)}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),h=0;h<p.length;++h){var m=p[h],f=c(m,u[m],n,"string"==typeof e);d=s.merge(d,f,n)}return!0===n.allowSparse?d:s.compact(d)}},98636:(e,t,n)=>{"use strict";var s=n(920),i=n(37720),a=n(74765),r=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:a.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},f=function e(t,n,a,r,o,c,d,p,f,g,b,v,y,x,_,S,w,k){for(var j,T=t,C=k,D=0,P=!1;void 0!==(C=C.get(m))&&!P;){var O=C.get(t);if(D+=1,void 0!==O){if(O===D)throw new RangeError("Cyclic object value");P=!0}void 0===C.get(m)&&(D=0)}if("function"==typeof g?T=g(n,T):T instanceof Date?T=y(T):"comma"===a&&l(T)&&(T=i.maybeMap(T,(function(e){return e instanceof Date?y(e):e}))),null===T){if(c)return f&&!S?f(n,h.encoder,w,"key",x):n;T=""}if("string"==typeof(j=T)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||i.isBuffer(T))return f?[_(S?n:f(n,h.encoder,w,"key",x))+"="+_(f(T,h.encoder,w,"value",x))]:[_(n)+"="+_(String(T))];var I,M=[];if(void 0===T)return M;if("comma"===a&&l(T))S&&f&&(T=i.maybeMap(T,f)),I=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(g))I=g;else{var L=Object.keys(T);I=b?L.sort(b):L}var A=p?String(n).replace(/\./g,"%2E"):String(n),E=r&&l(T)&&1===T.length?A+"[]":A;if(o&&l(T)&&0===T.length)return E+"[]";for(var R=0;R<I.length;++R){var U=I[R],N="object"==typeof U&&U&&void 0!==U.value?U.value:T[U];if(!d||null!==N){var F=v&&p?String(U).replace(/\./g,"%2E"):String(U),Y=l(T)?"function"==typeof a?a(E,F):E:E+(v?"."+F:"["+F+"]");k.set(t,D);var H=s();H.set(m,k),u(M,e(N,Y,a,r,o,c,d,p,"comma"===a&&S&&l(T)?null:f,g,b,v,y,x,_,S,w,H))}}return M};e.exports=function(e,t){var n,i=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!r.call(a.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s,i=a.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),s=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?i=(0,c.filter)("",i):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof i||null===i)return"";var p=o[c.arrayFormat],m="comma"===p&&c.commaRoundTrip;n||(n=Object.keys(i)),c.sort&&n.sort(c.sort);for(var g=s(),b=0;b<n.length;++b){var v=n[b],y=i[v];c.skipNulls&&null===y||u(d,f(y,v,p,m,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var x=d.join(c.delimiter),_=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),x.length>0?_+x:""}},37720:(e,t,n)=>{"use strict";var s=n(74765),i=Object.prototype.hasOwnProperty,a=Array.isArray,r=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},s=0;s<e.length;++s)void 0!==e[s]&&(n[s]=e[s]);return n},l=1024;e.exports={arrayToObject:o,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],s=0;s<t.length;++s)for(var i=t[s],r=i.obj[i.prop],o=Object.keys(r),l=0;l<o.length;++l){var c=o[l],u=r[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:r,prop:c}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(a(n)){for(var s=[],i=0;i<n.length;++i)void 0!==n[i]&&s.push(n[i]);t.obj[t.prop]=s}}}(t),e},decode:function(e,t,n){var s=e.replace(/\+/g," ");if("iso-8859-1"===n)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},encode:function(e,t,n,i,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",u=0;u<o.length;u+=l){for(var d=o.length>=l?o.slice(u,u+l):o,p=[],h=0;h<d.length;++h){var m=d.charCodeAt(h);45===m||46===m||95===m||126===m||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===s.RFC1738&&(40===m||41===m)?p[p.length]=d.charAt(h):m<128?p[p.length]=r[m]:m<2048?p[p.length]=r[192|m>>6]+r[128|63&m]:m<55296||m>=57344?p[p.length]=r[224|m>>12]+r[128|m>>6&63]+r[128|63&m]:(h+=1,m=65536+((1023&m)<<10|1023&d.charCodeAt(h)),p[p.length]=r[240|m>>18]+r[128|m>>12&63]+r[128|m>>6&63]+r[128|63&m])}c+=p.join("")}return c},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(t(e[s]));return n}return t(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(a(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var r=t;return a(t)&&!a(n)&&(r=o(t,s)),a(t)&&a(n)?(n.forEach((function(n,a){if(i.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,s):t.push(n)}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];return i.call(t,a)?t[a]=e(t[a],r,s):t[a]=r,t}),r)}}},25264:(e,t,n)=>{"use strict";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},s(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=o(n(96540)),a=o(n(17965)),r=["text","onCopy","options","children"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(g,e);var t,n,o,l,f=(o=g,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(o);if(l){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function g(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g);for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return m(p(e=f.call.apply(f,[this].concat(n))),"onClick",(function(t){var n=e.props,s=n.text,r=n.onCopy,o=n.children,l=n.options,c=i.default.Children.only(o),u=(0,a.default)(s,l);r&&r(s,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=g,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,s,i=function(e,t){if(null==e)return{};var n,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,r),s=i.default.Children.only(t);return i.default.cloneElement(s,c(c({},n),{},{onClick:this.onClick}))}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(i.default.PureComponent);t.CopyToClipboard=f,m(f,"defaultProps",{onCopy:void 0,options:void 0})},59399:(e,t,n)=>{"use strict";var s=n(25264).CopyToClipboard;s.CopyToClipboard=s,e.exports=s},59386:function(e,t,n){!function(e,t,n,s,i,a,r,o,l,c,u,d,p,h,m,f,g,b,v,y,x,_,S,w,k,j,T,C,D,P,O,I,M,L,A,E,R,U,N,F,Y,H,B,V,$,W,z,q,G,K,X,Q,J,Z,ee,te,ne,se,ie,ae,re,oe,le,ce,ue){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var pe=de(n),he=de(ue),me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ge.apply(this,arguments)};function be(e,t,n){if(n||2===arguments.length)for(var s,i=0,a=t.length;i<a;i++)!s&&i in t||(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ve,ye=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,s=e.showTime,i=void 0!==s&&s,a=e.className,r=e.children,o=n?"Choose Time":"Choose Date".concat(i?" and Time":"");return pe.default.createElement("div",{className:a,role:"dialog","aria-label":o,"aria-modal":"true"},r)},xe=function(e){var t=e.children,s=e.onClickOutside,i=e.className,a=e.containerRef,r=e.style,o=function(e,t){var s=n.useRef(null),i=n.useRef(e);i.current=e;var a=n.useCallback((function(e){var n;s.current&&!s.current.contains(e.target)&&(t&&e.target instanceof HTMLElement&&e.target.classList.contains(t)||null===(n=i.current)||void 0===n||n.call(i,e))}),[t]);return n.useEffect((function(){return document.addEventListener("mousedown",a),function(){document.removeEventListener("mousedown",a)}}),[a]),s}(s,e.ignoreClass);return pe.default.createElement("div",{className:i,style:r,ref:function(e){o.current=e,a&&(a.current=e)}},t)};function _e(){return"undefined"!=typeof window?window:globalThis}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(ve||(ve={}));var Se=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function we(e){if(null==e)return new Date;var t="string"==typeof e?$.parseISO(e):le.toDate(e);return je(t)?t:new Date}function ke(e,t,n,s,i){var a,r=null,o=Ve(n)||Ve(Be()),l=!0;if(Array.isArray(t))return t.forEach((function(t){var a=V.parse(e,t,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});s&&(l=je(a,i)&&e===Te(a,t,n)),je(a,i)&&l&&(r=a)})),r;if(r=V.parse(e,t,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),s)l=je(r)&&e===Te(r,t,n);else if(!je(r)){var c=(null!==(a=t.match(Se))&&void 0!==a?a:[]).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=x.longFormatters[t];return o?n(e,o.formatLong):t}return e})).join("");e.length>0&&(r=V.parse(e,c.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),je(r)||(r=new Date(e))}return je(r)&&l?r:null}function je(e,t){return F.isValid(e)&&!M.isBefore(e,null!=t?t:new Date("1/1/1800"))}function Te(e,t,n){if("en"===n)return x.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var s=n?Ve(n):void 0;return n&&!s&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!s&&Be()&&Ve(Be())&&(s=Ve(Be())),x.format(e,t,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ce(e,t){var n=t.dateFormat,s=t.locale,i=Array.isArray(n)&&n.length>0?n[0]:n;return e&&Te(e,i,s)||""}function De(e,t){var n=t.hour,s=void 0===n?0:n,i=t.minute,a=void 0===i?0:i,r=t.second,o=void 0===r?0:r;return z.setHours(q.setMinutes(X.setSeconds(e,o),a),s)}function Pe(e){return J.startOfDay(e)}function Oe(e,t,n){var s=Ve(t||Be());return te.startOfWeek(e,{locale:s,weekStartsOn:n})}function Ie(e){return Z.startOfMonth(e)}function Me(e){return ne.startOfYear(e)}function Le(e){return ee.startOfQuarter(e)}function Ae(){return J.startOfDay(we())}function Ee(e){return g.endOfDay(e)}function Re(e,t){return e&&t?N.isSameYear(e,t):!e&&!t}function Ue(e,t){return e&&t?R.isSameMonth(e,t):!e&&!t}function Ne(e,t){return e&&t?U.isSameQuarter(e,t):!e&&!t}function Fe(e,t){return e&&t?E.isSameDay(e,t):!e&&!t}function Ye(e,t){return e&&t?A.isEqual(e,t):!e&&!t}function He(e,t,n){var s,i=J.startOfDay(t),a=g.endOfDay(n);try{s=Y.isWithinInterval(e,{start:i,end:a})}catch(e){s=!1}return s}function Be(){return _e().__localeId__}function Ve(e){if("string"==typeof e){var t=_e();return t.__localeData__?t.__localeData__[e]:void 0}return e}function $e(e,t){return Te(G.setMonth(we(),e),"LLLL",t)}function We(e,t){return Te(G.setMonth(we(),e),"LLL",t)}function ze(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.maxDate,a=n.excludeDates,r=n.excludeDateIntervals,o=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return tt(e,{minDate:s,maxDate:i})||a&&a.some((function(t){return t instanceof Date?Fe(e,t):Fe(e,t.date)}))||r&&r.some((function(t){var n=t.start,s=t.end;return Y.isWithinInterval(e,{start:n,end:s})}))||o&&!o.some((function(t){return Fe(e,t)}))||l&&!l.some((function(t){var n=t.start,s=t.end;return Y.isWithinInterval(e,{start:n,end:s})}))||c&&!c(we(e))||!1}function qe(e,t){var n=void 0===t?{}:t,s=n.excludeDates,i=n.excludeDateIntervals;return i&&i.length>0?i.some((function(t){var n=t.start,s=t.end;return Y.isWithinInterval(e,{start:n,end:s})})):s&&s.some((function(t){var n;return t instanceof Date?Fe(e,t):Fe(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||!1}function Ge(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.maxDate,a=n.excludeDates,r=n.includeDates,o=n.filterDate;return tt(e,{minDate:s?Z.startOfMonth(s):void 0,maxDate:i?b.endOfMonth(i):void 0})||(null==a?void 0:a.some((function(t){return Ue(e,t instanceof Date?t:t.date)})))||r&&!r.some((function(t){return Ue(e,t)}))||o&&!o(we(e))||!1}function Ke(e,t,n,s){var i=O.getYear(e),a=T.getMonth(e),r=O.getYear(t),o=T.getMonth(t),l=O.getYear(s);return i===r&&i===l?a<=n&&n<=o:i<r&&(l===i&&a<=n||l===r&&o>=n||l<r&&l>i)}function Xe(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.maxDate,a=n.excludeDates,r=n.includeDates;return tt(e,{minDate:s,maxDate:i})||a&&a.some((function(t){return Ue(t instanceof Date?t:t.date,e)}))||r&&!r.some((function(t){return Ue(t,e)}))||!1}function Qe(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.maxDate,a=n.excludeDates,r=n.includeDates,o=n.filterDate;return tt(e,{minDate:s,maxDate:i})||(null==a?void 0:a.some((function(t){return Ne(e,t instanceof Date?t:t.date)})))||r&&!r.some((function(t){return Ne(e,t)}))||o&&!o(we(e))||!1}function Je(e,t,n){if(!t||!n)return!1;if(!F.isValid(t)||!F.isValid(n))return!1;var s=O.getYear(t),i=O.getYear(n);return s<=e&&i>=e}function Ze(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.maxDate,a=n.excludeDates,r=n.includeDates,o=n.filterDate,l=new Date(e,0,1);return tt(l,{minDate:s?ne.startOfYear(s):void 0,maxDate:i?y.endOfYear(i):void 0})||(null==a?void 0:a.some((function(e){return Re(l,e instanceof Date?e:e.date)})))||r&&!r.some((function(e){return Re(l,e)}))||o&&!o(we(l))||!1}function et(e,t,n,s){var i=O.getYear(e),a=C.getQuarter(e),r=O.getYear(t),o=C.getQuarter(t),l=O.getYear(s);return i===r&&i===l?a<=n&&n<=o:i<r&&(l===i&&a<=n||l===r&&o>=n||l<r&&l>i)}function tt(e,t){var n,s=void 0===t?{}:t,i=s.minDate,a=s.maxDate;return null!==(n=i&&p.differenceInCalendarDays(e,i)<0||a&&p.differenceInCalendarDays(e,a)>0)&&void 0!==n&&n}function nt(e,t){return t.some((function(t){return w.getHours(t)===w.getHours(e)&&j.getMinutes(t)===j.getMinutes(e)&&D.getSeconds(t)===D.getSeconds(e)}))}function st(e,t){var n=void 0===t?{}:t,s=n.excludeTimes,i=n.includeTimes,a=n.filterTime;return s&&nt(e,s)||i&&!nt(e,i)||a&&!a(e)||!1}function it(e,t){var n=t.minTime,s=t.maxTime;if(!n||!s)throw new Error("Both minTime and maxTime props required");var i=we();i=z.setHours(i,w.getHours(e)),i=q.setMinutes(i,j.getMinutes(e)),i=X.setSeconds(i,D.getSeconds(e));var a=we();a=z.setHours(a,w.getHours(n)),a=q.setMinutes(a,j.getMinutes(n)),a=X.setSeconds(a,D.getSeconds(n));var r,o=we();o=z.setHours(o,w.getHours(s)),o=q.setMinutes(o,j.getMinutes(s)),o=X.setSeconds(o,D.getSeconds(s));try{r=!Y.isWithinInterval(i,{start:a,end:o})}catch(e){r=!1}return r}function at(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.includeDates,a=ie.subMonths(e,1);return s&&h.differenceInCalendarMonths(s,a)>0||i&&i.every((function(e){return h.differenceInCalendarMonths(e,a)>0}))||!1}function rt(e,t){var n=void 0===t?{}:t,s=n.maxDate,i=n.includeDates,a=o.addMonths(e,1);return s&&h.differenceInCalendarMonths(a,s)>0||i&&i.every((function(e){return h.differenceInCalendarMonths(a,e)>0}))||!1}function ot(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.includeDates,a=oe.subYears(e,1);return s&&f.differenceInCalendarYears(s,a)>0||i&&i.every((function(e){return f.differenceInCalendarYears(e,a)>0}))||!1}function lt(e,t){var n=void 0===t?{}:t,s=n.maxDate,i=n.includeDates,a=d.addYears(e,1);return s&&f.differenceInCalendarYears(a,s)>0||i&&i.every((function(e){return f.differenceInCalendarYears(a,e)>0}))||!1}function ct(e){var t=e.minDate,n=e.includeDates;if(n&&t){var s=n.filter((function(e){return p.differenceInCalendarDays(e,t)>=0}));return B.min(s)}return n?B.min(n):t}function ut(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var s=n.filter((function(e){return p.differenceInCalendarDays(e,t)<=0}));return H.max(s)}return n?H.max(n):t}function dt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var s=new Map,i=0,a=e.length;i<a;i++){var r=e[i];if(L.isDate(r)){var o=Te(r,"MM.dd.yyyy");(p=s.get(o)||[]).includes(t)||(p.push(t),s.set(o,p))}else if("object"==typeof r){var l=null!==(n=Object.keys(r)[0])&&void 0!==n?n:"",c=r[l];if("string"==typeof l&&Array.isArray(c))for(var u=0,d=c.length;u<d;u++){var p,h=c[u];h&&(o=Te(h,"MM.dd.yyyy"),(p=s.get(o)||[]).includes(l)||(p.push(l),s.set(o,p)))}}}return s}function pt(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach((function(e){var s=e.date,i=e.holidayName;if(L.isDate(s)){var a=Te(s,"MM.dd.yyyy"),r=n.get(a)||{className:"",holidayNames:[]};if(!("className"in r)||r.className!==t||(o=r.holidayNames,l=[i],o.length!==l.length||!o.every((function(e,t){return e===l[t]})))){var o,l;r.className=t;var c=r.holidayNames;r.holidayNames=c?be(be([],c,!0),[i],!1):[i],n.set(a,r)}}})),n}function ht(e,t,n,s,i){for(var o=i.length,l=[],u=0;u<o;u++){var d=e,p=i[u];p&&(d=a.addHours(d,w.getHours(p)),d=r.addMinutes(d,j.getMinutes(p)),d=c.addSeconds(d,D.getSeconds(p)));var h=r.addMinutes(e,(n+1)*s);I.isAfter(d,t)&&M.isBefore(d,h)&&null!=p&&l.push(p)}return l}function mt(e){return e<10?"0".concat(e):"".concat(e)}function ft(e,t){void 0===t&&(t=12);var n=Math.ceil(O.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function gt(e){var t=e.getSeconds(),n=e.getMilliseconds();return le.toDate(e.getTime()-1e3*t-n)}function bt(e){if(!L.isDate(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function vt(e,t){if(!L.isDate(e)||!L.isDate(t))throw new Error("Invalid date received");var n=bt(e),s=bt(t);return M.isBefore(n,s)}function yt(e){return e.key===ve.Space}var xt,_t=function(e){function t(t){var s=e.call(this,t)||this;return s.inputRef=pe.default.createRef(),s.onTimeChange=function(e){var t,n;s.setState({time:e});var i=s.props.date,a=i instanceof Date&&!isNaN(+i)?i:new Date;if(null==e?void 0:e.includes(":")){var r=e.split(":"),o=r[0],l=r[1];a.setHours(Number(o)),a.setMinutes(Number(l))}null===(n=(t=s.props).onChange)||void 0===n||n.call(t,a)},s.renderTimeInput=function(){var e=s.state.time,t=s.props,i=t.date,a=t.timeString,r=t.customTimeInput;return r?n.cloneElement(r,{date:i,value:e,onChange:s.onTimeChange}):pe.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:s.inputRef,onClick:function(){var e;null===(e=s.inputRef.current)||void 0===e||e.focus()},required:!0,value:e,onChange:function(e){s.onTimeChange(e.target.value||a)}})},s.state={time:s.props.timeString},s}return fe(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return pe.default.createElement("div",{className:"react-datepicker__input-time-container"},pe.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),pe.default.createElement("div",{className:"react-datepicker-time__input-container"},pe.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),St=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.dayEl=n.createRef(),s.handleClick=function(e){!s.isDisabled()&&s.props.onClick&&s.props.onClick(e)},s.handleMouseEnter=function(e){!s.isDisabled()&&s.props.onMouseEnter&&s.props.onMouseEnter(e)},s.handleOnKeyDown=function(e){var t,n;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(n=(t=s.props).handleOnKeyDown)||void 0===n||n.call(t,e)},s.isSameDay=function(e){return Fe(s.props.day,e)},s.isKeyboardSelected=function(){var e;if(s.props.disabledKeyboardNavigation)return!1;var t=s.props.selectsMultiple?null===(e=s.props.selectedDates)||void 0===e?void 0:e.some((function(e){return s.isSameDayOrWeek(e)})):s.isSameDayOrWeek(s.props.selected),n=s.props.preSelection&&s.isDisabled(s.props.preSelection);return!t&&s.isSameDayOrWeek(s.props.preSelection)&&!n},s.isDisabled=function(e){return void 0===e&&(e=s.props.day),ze(e,{minDate:s.props.minDate,maxDate:s.props.maxDate,excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals,includeDateIntervals:s.props.includeDateIntervals,includeDates:s.props.includeDates,filterDate:s.props.filterDate})},s.isExcluded=function(){return qe(s.props.day,{excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals})},s.isStartOfWeek=function(){return Fe(s.props.day,Oe(s.props.day,s.props.locale,s.props.calendarStartDay))},s.isSameWeek=function(e){return s.props.showWeekPicker&&Fe(e,Oe(s.props.day,s.props.locale,s.props.calendarStartDay))},s.isSameDayOrWeek=function(e){return s.isSameDay(e)||s.isSameWeek(e)},s.getHighLightedClass=function(){var e=s.props,t=e.day,n=e.highlightDates;if(!n)return!1;var i=Te(t,"MM.dd.yyyy");return n.get(i)},s.getHolidaysClass=function(){var e,t=s.props,n=t.day,i=t.holidays;if(!i)return[void 0];var a=Te(n,"MM.dd.yyyy");return i.has(a)?[null===(e=i.get(a))||void 0===e?void 0:e.className]:[void 0]},s.isInRange=function(){var e=s.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&He(t,n,i)},s.isInSelectingRange=function(){var e,t=s.props,n=t.day,i=t.selectsStart,a=t.selectsEnd,r=t.selectsRange,o=t.selectsDisabledDaysInRange,l=t.startDate,c=t.endDate,u=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return!(!(i||a||r)||!u||!o&&s.isDisabled())&&(i&&c&&(M.isBefore(u,c)||Ye(u,c))?He(n,u,c):(a&&l&&(I.isAfter(u,l)||Ye(u,l))||!(!r||!l||c||!I.isAfter(u,l)&&!Ye(u,l)))&&He(n,l,u))},s.isSelectingRangeStart=function(){var e;if(!s.isInSelectingRange())return!1;var t=s.props,n=t.day,i=t.startDate,a=t.selectsStart,r=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return Fe(n,a?r:i)},s.isSelectingRangeEnd=function(){var e;if(!s.isInSelectingRange())return!1;var t=s.props,n=t.day,i=t.endDate,a=t.selectsEnd,r=t.selectsRange,o=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return Fe(n,a||r?o:i)},s.isRangeStart=function(){var e=s.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Fe(n,t)},s.isRangeEnd=function(){var e=s.props,t=e.day,n=e.startDate,i=e.endDate;return!(!n||!i)&&Fe(i,t)},s.isWeekend=function(){var e=S.getDay(s.props.day);return 0===e||6===e},s.isAfterMonth=function(){return void 0!==s.props.month&&(s.props.month+1)%12===T.getMonth(s.props.day)},s.isBeforeMonth=function(){return void 0!==s.props.month&&(T.getMonth(s.props.day)+1)%12===s.props.month},s.isCurrentDay=function(){return s.isSameDay(we())},s.isSelected=function(){var e;return s.props.selectsMultiple?null===(e=s.props.selectedDates)||void 0===e?void 0:e.some((function(e){return s.isSameDayOrWeek(e)})):s.isSameDayOrWeek(s.props.selected)},s.getClassNames=function(e){var n=s.props.dayClassName?s.props.dayClassName(e):void 0;return t.clsx("react-datepicker__day",n,"react-datepicker__day--"+Te(s.props.day,"ddd",undefined),{"react-datepicker__day--disabled":s.isDisabled(),"react-datepicker__day--excluded":s.isExcluded(),"react-datepicker__day--selected":s.isSelected(),"react-datepicker__day--keyboard-selected":s.isKeyboardSelected(),"react-datepicker__day--range-start":s.isRangeStart(),"react-datepicker__day--range-end":s.isRangeEnd(),"react-datepicker__day--in-range":s.isInRange(),"react-datepicker__day--in-selecting-range":s.isInSelectingRange(),"react-datepicker__day--selecting-range-start":s.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":s.isSelectingRangeEnd(),"react-datepicker__day--today":s.isCurrentDay(),"react-datepicker__day--weekend":s.isWeekend(),"react-datepicker__day--outside-month":s.isAfterMonth()||s.isBeforeMonth()},s.getHighLightedClass(),s.getHolidaysClass())},s.getAriaLabel=function(){var e=s.props,t=e.day,n=e.ariaLabelPrefixWhenEnabled,i=void 0===n?"Choose":n,a=e.ariaLabelPrefixWhenDisabled,r=void 0===a?"Not available":a,o=s.isDisabled()||s.isExcluded()?r:i;return"".concat(o," ").concat(Te(t,"PPPP",s.props.locale))},s.getTitle=function(){var e=s.props,t=e.day,n=e.holidays,i=void 0===n?new Map:n,a=e.excludeDates,r=Te(t,"MM.dd.yyyy"),o=[];return i.has(r)&&o.push.apply(o,i.get(r).holidayNames),s.isExcluded()&&o.push(null==a?void 0:a.filter((function(e){return e instanceof Date?Fe(e,t):Fe(null==e?void 0:e.date,t)})).map((function(e){if(!(e instanceof Date))return null==e?void 0:e.message}))),o.join(", ")},s.getTabIndex=function(){var e=s.props.selected,t=s.props.preSelection;return(!s.props.showWeekPicker||!s.props.showWeekNumber&&s.isStartOfWeek())&&(s.isKeyboardSelected()||s.isSameDay(e)&&Fe(t,e))?0:-1},s.handleFocusDay=function(){var e;s.shouldFocusDay()&&(null===(e=s.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},s.renderDayContents=function(){return s.props.monthShowsDuplicateDaysEnd&&s.isAfterMonth()||s.props.monthShowsDuplicateDaysStart&&s.isBeforeMonth()?null:s.props.renderDayContents?s.props.renderDayContents(_.getDate(s.props.day),s.props.day):_.getDate(s.props.day)},s.render=function(){return pe.default.createElement("div",{ref:s.dayEl,className:s.getClassNames(s.props.day),onKeyDown:s.handleOnKeyDown,onClick:s.handleClick,onMouseEnter:s.props.usePointerEvent?void 0:s.handleMouseEnter,onPointerEnter:s.props.usePointerEvent?s.handleMouseEnter:void 0,tabIndex:s.getTabIndex(),"aria-label":s.getAriaLabel(),role:"option",title:s.getTitle(),"aria-disabled":s.isDisabled(),"aria-current":s.isCurrentDay()?"date":void 0,"aria-selected":s.isSelected()||s.isInRange()},s.renderDayContents(),""!==s.getTitle()&&pe.default.createElement("span",{className:"overlay"},s.getTitle()))},s}return fe(s,e),s.prototype.componentDidMount=function(){this.handleFocusDay()},s.prototype.componentDidUpdate=function(){this.handleFocusDay()},s.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},s.prototype.isDayActiveElement=function(){var e,t,n;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},s.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},s}(n.Component),wt=function(e){function s(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=n.createRef(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,s;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(s=(n=t.props).handleOnKeyDown)||void 0===s||s.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Fe(t.props.date,t.props.selected)&&Fe(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Fe(t.props.date,t.props.selected)&&Fe(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&Fe(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return fe(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),s.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},s.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},s.prototype.render=function(){var e=this.props,n=e.weekNumber,i=e.isWeekDisabled,a=e.ariaLabelPrefix,r=void 0===a?s.defaultProps.ariaLabelPrefix:a,o=e.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!i,"react-datepicker__week-number--selected":!!o&&Fe(this.props.date,this.props.selected)};return pe.default.createElement("div",{ref:this.weekNumberEl,className:t.clsx(l),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},s}(n.Component),kt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisabled=function(e){return ze(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(e,n){t.props.onDayClick&&t.props.onDayClick(e,n)},t.handleDayMouseEnter=function(e){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(e)},t.handleWeekClick=function(e,s,i){for(var a,r,o,l=new Date(e),c=0;c<7;c++){var u=new Date(e);if(u.setDate(u.getDate()+c),!t.isDisabled(u)){l=u;break}}"function"==typeof t.props.onWeekSelect&&t.props.onWeekSelect(l,s,i),t.props.showWeekPicker&&t.handleDayClick(l,i),(null!==(a=t.props.shouldCloseOnSelect)&&void 0!==a?a:n.defaultProps.shouldCloseOnSelect)&&(null===(o=(r=t.props).setOpen)||void 0===o||o.call(r,!1))},t.formatWeekNumber=function(e){return t.props.formatWeekNumber?t.props.formatWeekNumber(e):function(e){return k.getISOWeek(e)}(e)},t.isWeekDisabled=function(){for(var e=t.startOfWeek(),n=i.addDays(e,6),s=new Date(e);s<=n;){if(!t.isDisabled(s))return!1;s=i.addDays(s,1)}return!0},t.renderDays=function(){var e=t.startOfWeek(),s=[],a=t.formatWeekNumber(e);if(t.props.showWeekNumber){var r=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,e,a):void 0;s.push(pe.default.createElement(wt,ge({key:"W"},n.defaultProps,t.props,{weekNumber:a,isWeekDisabled:t.isWeekDisabled(),date:e,onClick:r})))}return s.concat([0,1,2,3,4,5,6].map((function(s){var a=i.addDays(e,s);return pe.default.createElement(St,ge({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:a.valueOf(),day:a,onClick:t.handleDayClick.bind(t,a),onMouseEnter:t.handleDayMouseEnter.bind(t,a)}))})))},t.startOfWeek=function(){return Oe(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Fe(t.startOfWeek(),t.props.selected)&&Fe(t.startOfWeek(),t.props.preSelection)},t}return fe(n,e),Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Fe(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return pe.default.createElement("div",{className:t.clsx(e)},this.renderDays())},n}(n.Component),jt="two_columns",Tt="three_columns",Ct="four_columns",Dt=((xt={})[jt]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},xt[Tt]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},xt[Ct]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},xt);function Pt(e,t){return e?Ct:t?jt:Tt}var Ot=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.MONTH_REFS=be([],Array(12),!0).map((function(){return n.createRef()})),s.QUARTER_REFS=be([],Array(4),!0).map((function(){return n.createRef()})),s.isDisabled=function(e){return ze(e,{minDate:s.props.minDate,maxDate:s.props.maxDate,excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals,includeDateIntervals:s.props.includeDateIntervals,includeDates:s.props.includeDates,filterDate:s.props.filterDate})},s.isExcluded=function(e){return qe(e,{excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals})},s.handleDayClick=function(e,t){var n,i;null===(i=(n=s.props).onDayClick)||void 0===i||i.call(n,e,t,s.props.orderInDisplay)},s.handleDayMouseEnter=function(e){var t,n;null===(n=(t=s.props).onDayMouseEnter)||void 0===n||n.call(t,e)},s.handleMouseLeave=function(){var e,t;null===(t=(e=s.props).onMouseLeave)||void 0===t||t.call(e)},s.isRangeStartMonth=function(e){var t=s.props,n=t.day,i=t.startDate,a=t.endDate;return!(!i||!a)&&Ue(G.setMonth(n,e),i)},s.isRangeStartQuarter=function(e){var t=s.props,n=t.day,i=t.startDate,a=t.endDate;return!(!i||!a)&&Ne(K.setQuarter(n,e),i)},s.isRangeEndMonth=function(e){var t=s.props,n=t.day,i=t.startDate,a=t.endDate;return!(!i||!a)&&Ue(G.setMonth(n,e),a)},s.isRangeEndQuarter=function(e){var t=s.props,n=t.day,i=t.startDate,a=t.endDate;return!(!i||!a)&&Ne(K.setQuarter(n,e),a)},s.isInSelectingRangeMonth=function(e){var t,n=s.props,i=n.day,a=n.selectsStart,r=n.selectsEnd,o=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return!(!(a||r||o)||!u)&&(a&&c?Ke(u,c,e,i):(r&&l||!(!o||!l||c))&&Ke(l,u,e,i))},s.isSelectingMonthRangeStart=function(e){var t;if(!s.isInSelectingRangeMonth(e))return!1;var n=s.props,i=n.day,a=n.startDate,r=n.selectsStart,o=G.setMonth(i,e),l=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return Ue(o,r?l:a)},s.isSelectingMonthRangeEnd=function(e){var t;if(!s.isInSelectingRangeMonth(e))return!1;var n=s.props,i=n.day,a=n.endDate,r=n.selectsEnd,o=n.selectsRange,l=G.setMonth(i,e),c=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return Ue(l,r||o?c:a)},s.isInSelectingRangeQuarter=function(e){var t,n=s.props,i=n.day,a=n.selectsStart,r=n.selectsEnd,o=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return!(!(a||r||o)||!u)&&(a&&c?et(u,c,e,i):(r&&l||!(!o||!l||c))&&et(l,u,e,i))},s.isWeekInMonth=function(e){var t=s.props.day,n=i.addDays(e,6);return Ue(e,t)||Ue(n,t)},s.isCurrentMonth=function(e,t){return O.getYear(e)===O.getYear(we())&&t===T.getMonth(we())},s.isCurrentQuarter=function(e,t){return O.getYear(e)===O.getYear(we())&&t===C.getQuarter(we())},s.isSelectedMonth=function(e,t,n){return T.getMonth(n)===t&&O.getYear(e)===O.getYear(n)},s.isSelectMonthInList=function(e,t,n){return n.some((function(n){return s.isSelectedMonth(e,t,n)}))},s.isSelectedQuarter=function(e,t,n){return C.getQuarter(e)===t&&O.getYear(e)===O.getYear(n)},s.renderWeeks=function(){for(var e=[],t=s.props.fixedHeight,n=0,i=!1,a=Oe(Ie(s.props.day),s.props.locale,s.props.calendarStartDay),r=s.props.selected?function(e){return s.props.showWeekPicker?Oe(e,s.props.locale,s.props.calendarStartDay):s.props.selected}(s.props.selected):void 0,o=s.props.preSelection?function(e){return s.props.showWeekPicker?Oe(e,s.props.locale,s.props.calendarStartDay):s.props.preSelection}(s.props.preSelection):void 0;e.push(pe.default.createElement(kt,ge({},s.props,{ariaLabelPrefix:s.props.weekAriaLabelPrefix,key:n,day:a,month:T.getMonth(s.props.day),onDayClick:s.handleDayClick,onDayMouseEnter:s.handleDayMouseEnter,selected:r,preSelection:o,showWeekNumber:s.props.showWeekNumbers}))),!i;){n++,a=u.addWeeks(a,1);var l=t&&n>=6,c=!t&&!s.isWeekInMonth(a);if(l||c){if(!s.props.peekNextMonth)break;i=!0}}return e},s.onMonthClick=function(e,t){var n=s.isMonthDisabledForLabelDate(t),i=n.isDisabled,a=n.labelDate;i||s.handleDayClick(Ie(a),e)},s.onMonthMouseEnter=function(e){var t=s.isMonthDisabledForLabelDate(e),n=t.isDisabled,i=t.labelDate;n||s.handleDayMouseEnter(Ie(i))},s.handleMonthNavigation=function(e,t){var n,i,a,r;null===(i=(n=s.props).setPreSelection)||void 0===i||i.call(n,t),null===(r=null===(a=s.MONTH_REFS[e])||void 0===a?void 0:a.current)||void 0===r||r.focus()},s.handleKeyboardNavigation=function(e,t,n){var i,a=s.props,r=a.selected,l=a.preSelection,c=a.setPreSelection,u=a.minDate,d=a.maxDate,p=a.showFourColumnMonthYearPicker,h=a.showTwoColumnMonthYearPicker;if(l){var m=Pt(p,h),f=s.getVerticalOffset(m),g=null===(i=Dt[m])||void 0===i?void 0:i.grid,b=function(e,t,n){var s,i,a=t,r=n;switch(e){case ve.ArrowRight:a=o.addMonths(t,1),r=11===n?0:n+1;break;case ve.ArrowLeft:a=ie.subMonths(t,1),r=0===n?11:n-1;break;case ve.ArrowUp:a=ie.subMonths(t,f),r=(null===(s=null==g?void 0:g[0])||void 0===s?void 0:s.includes(n))?n+12-f:n-f;break;case ve.ArrowDown:a=o.addMonths(t,f),r=(null===(i=null==g?void 0:g[g.length-1])||void 0===i?void 0:i.includes(n))?n-12+f:n+f}return{newCalculatedDate:a,newCalculatedMonth:r}};if(t!==ve.Enter){var v=function(e,t,n){for(var i=e,a=!1,r=0,o=b(i,t,n),l=o.newCalculatedDate,c=o.newCalculatedMonth;!a;){if(r>=40){l=t,c=n;break}var p;u&&l<u&&(i=ve.ArrowRight,l=(p=b(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth),d&&l>d&&(i=ve.ArrowLeft,l=(p=b(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth),Xe(l,s.props)?(l=(p=b(i,l,c)).newCalculatedDate,c=p.newCalculatedMonth):a=!0,r++}return{newCalculatedDate:l,newCalculatedMonth:c}}(t,l,n),y=v.newCalculatedDate,x=v.newCalculatedMonth;switch(t){case ve.ArrowRight:case ve.ArrowLeft:case ve.ArrowUp:case ve.ArrowDown:s.handleMonthNavigation(x,y)}}else s.isMonthDisabled(n)||(s.onMonthClick(e,n),null==c||c(r))}},s.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=Dt[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},s.onMonthKeyDown=function(e,t){var n=s.props,i=n.disabledKeyboardNavigation,a=n.handleOnMonthKeyDown,r=e.key;r!==ve.Tab&&e.preventDefault(),i||s.handleKeyboardNavigation(e,r,t),a&&a(e)},s.onQuarterClick=function(e,t){var n=K.setQuarter(s.props.day,t);Qe(n,s.props)||s.handleDayClick(Le(n),e)},s.onQuarterMouseEnter=function(e){var t=K.setQuarter(s.props.day,e);Qe(t,s.props)||s.handleDayMouseEnter(Le(t))},s.handleQuarterNavigation=function(e,t){var n,i,a,r;s.isDisabled(t)||s.isExcluded(t)||(null===(i=(n=s.props).setPreSelection)||void 0===i||i.call(n,t),null===(r=null===(a=s.QUARTER_REFS[e-1])||void 0===a?void 0:a.current)||void 0===r||r.focus())},s.onQuarterKeyDown=function(e,t){var n,i,a=e.key;if(!s.props.disabledKeyboardNavigation)switch(a){case ve.Enter:s.onQuarterClick(e,t),null===(i=(n=s.props).setPreSelection)||void 0===i||i.call(n,s.props.selected);break;case ve.ArrowRight:if(!s.props.preSelection)break;s.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(s.props.preSelection,1));break;case ve.ArrowLeft:if(!s.props.preSelection)break;s.handleQuarterNavigation(1===t?4:t-1,ae.subQuarters(s.props.preSelection,1))}},s.isMonthDisabledForLabelDate=function(e){var t,n=s.props,i=n.day,a=n.minDate,r=n.maxDate,o=n.excludeDates,l=n.includeDates,c=G.setMonth(i,e);return{isDisabled:null!==(t=(a||r||o||l)&&Ge(c,s.props))&&void 0!==t&&t,labelDate:c}},s.isMonthDisabled=function(e){return s.isMonthDisabledForLabelDate(e).isDisabled},s.getMonthClassNames=function(e){var n=s.props,i=n.day,a=n.startDate,r=n.endDate,o=n.preSelection,l=n.monthClassName,c=l?l(G.setMonth(i,e)):void 0,u=s.getSelection();return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),c,{"react-datepicker__month-text--disabled":s.isMonthDisabled(e),"react-datepicker__month-text--selected":u?s.isSelectMonthInList(i,e,u):void 0,"react-datepicker__month-text--keyboard-selected":!s.props.disabledKeyboardNavigation&&o&&s.isSelectedMonth(i,e,o)&&!s.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":s.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":a&&r?Ke(a,r,e,i):void 0,"react-datepicker__month-text--range-start":s.isRangeStartMonth(e),"react-datepicker__month-text--range-end":s.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":s.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":s.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":s.isCurrentMonth(i,e)})},s.getTabIndex=function(e){if(null==s.props.preSelection)return"-1";var t=T.getMonth(s.props.preSelection),n=s.isMonthDisabledForLabelDate(t).isDisabled;return e!==t||n||s.props.disabledKeyboardNavigation?"-1":"0"},s.getQuarterTabIndex=function(e){if(null==s.props.preSelection)return"-1";var t=C.getQuarter(s.props.preSelection),n=Qe(s.props.day,s.props);return e!==t||n||s.props.disabledKeyboardNavigation?"-1":"0"},s.getAriaLabel=function(e){var t=s.props,n=t.chooseDayAriaLabelPrefix,i=void 0===n?"Choose":n,a=t.disabledDayAriaLabelPrefix,r=void 0===a?"Not available":a,o=t.day,l=t.locale,c=G.setMonth(o,e),u=s.isDisabled(c)||s.isExcluded(c)?r:i;return"".concat(u," ").concat(Te(c,"MMMM yyyy",l))},s.getQuarterClassNames=function(e){var n=s.props,i=n.day,a=n.startDate,r=n.endDate,o=n.selected,l=n.minDate,c=n.maxDate,u=n.excludeDates,d=n.includeDates,p=n.filterDate,h=n.preSelection,m=n.disabledKeyboardNavigation,f=(l||c||u||d||p)&&Qe(K.setQuarter(i,e),s.props);return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":f,"react-datepicker__quarter-text--selected":o?s.isSelectedQuarter(i,e,o):void 0,"react-datepicker__quarter-text--keyboard-selected":!m&&h&&s.isSelectedQuarter(i,e,h)&&!f,"react-datepicker__quarter-text--in-selecting-range":s.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":a&&r?et(a,r,e,i):void 0,"react-datepicker__quarter-text--range-start":s.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":s.isRangeEndQuarter(e)})},s.getMonthContent=function(e){var t=s.props,n=t.showFullMonthYearPicker,i=t.renderMonthContent,a=t.locale,r=t.day,o=We(e,a),l=$e(e,a);return i?i(e,o,l,r):n?l:o},s.getQuarterContent=function(e){var t,n=s.props,i=n.renderQuarterContent,a=function(e,t){return Te(K.setQuarter(we(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==i?void 0:i(e,a))&&void 0!==t?t:a},s.renderMonths=function(){var e,t=s.props,n=t.showTwoColumnMonthYearPicker,i=t.showFourColumnMonthYearPicker,a=t.day,r=t.selected,o=null===(e=Dt[Pt(i,n)])||void 0===e?void 0:e.grid;return null==o?void 0:o.map((function(e,t){return pe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map((function(e,t){return pe.default.createElement("div",{ref:s.MONTH_REFS[e],key:t,onClick:function(t){s.onMonthClick(t,e)},onKeyDown:function(t){yt(t)&&(t.preventDefault(),t.key=ve.Enter),s.onMonthKeyDown(t,e)},onMouseEnter:s.props.usePointerEvent?void 0:function(){return s.onMonthMouseEnter(e)},onPointerEnter:s.props.usePointerEvent?function(){return s.onMonthMouseEnter(e)}:void 0,tabIndex:Number(s.getTabIndex(e)),className:s.getMonthClassNames(e),"aria-disabled":s.isMonthDisabled(e),role:"option","aria-label":s.getAriaLabel(e),"aria-current":s.isCurrentMonth(a,e)?"date":void 0,"aria-selected":r?s.isSelectedMonth(a,e,r):void 0},s.getMonthContent(e))})))}))},s.renderQuarters=function(){var e=s.props,t=e.day,n=e.selected;return pe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,i){return pe.default.createElement("div",{key:i,ref:s.QUARTER_REFS[i],role:"option",onClick:function(t){s.onQuarterClick(t,e)},onKeyDown:function(t){s.onQuarterKeyDown(t,e)},onMouseEnter:s.props.usePointerEvent?void 0:function(){return s.onQuarterMouseEnter(e)},onPointerEnter:s.props.usePointerEvent?function(){return s.onQuarterMouseEnter(e)}:void 0,className:s.getQuarterClassNames(e),"aria-selected":n?s.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(s.getQuarterTabIndex(e)),"aria-current":s.isCurrentQuarter(t,e)?"date":void 0},s.getQuarterContent(e))})))},s.getClassNames=function(){var e=s.props,n=e.selectingDate,i=e.selectsStart,a=e.selectsEnd,r=e.showMonthYearPicker,o=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(i||a)},{"react-datepicker__monthPicker":r},{"react-datepicker__quarterPicker":o},{"react-datepicker__weekPicker":l})},s}return fe(s,e),s.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},s.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,s=e.day,i=e.ariaLabelPrefix,a=void 0===i?"Month ":i,r=a?a.trim()+" ":"";return pe.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(r).concat(Te(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},s}(n.Component),It=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map((function(e,n){return pe.default.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?pe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return fe(t,e),t.prototype.render=function(){return pe.default.createElement(xe,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),Mt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map((function(e,t){return pe.default.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return pe.default.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return pe.default.createElement(It,ge({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,s=[t.renderReadView(!n,e)];return n&&s.unshift(t.renderDropdown(e)),s},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return fe(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return We(e,t.props.locale)}:function(e){return $e(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return pe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function Lt(e,t){for(var n=[],s=Ie(e),i=Ie(t);!I.isAfter(s,i);)n.push(we(s)),s=o.addMonths(s,1);return n}var At=function(e){function n(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map((function(e){var t=P.getTime(e),s=Re(n.props.date,e)&&Ue(n.props.date,e);return pe.default.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":s?"true":void 0},s?pe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",Te(e,n.props.dateFormat,n.props.locale))}))},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Lt(n.props.minDate,n.props.maxDate)},n}return fe(n,e),n.prototype.render=function(){var e=t.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return pe.default.createElement(xe,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},n}(n.Component),Et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=Ie(t.props.minDate),n=Ie(t.props.maxDate),s=[];!I.isAfter(e,n);){var i=P.getTime(e);s.push(pe.default.createElement("option",{key:i,value:i},Te(e,t.props.dateFormat,t.props.locale))),e=o.addMonths(e,1)}return s},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:P.getTime(Ie(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=Te(t.props.date,t.props.dateFormat,t.props.locale);return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return pe.default.createElement(At,ge({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=we(e);Re(t.props.date,n)&&Ue(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return fe(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Rt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var e,s,i;n.list&&(n.list.scrollTop=null!==(i=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(s=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==s?s:0):n.list.clientHeight,n.centerLi))&&void 0!==i?i:0)}))},n.handleClick=function(e){var t,s;(n.props.minTime||n.props.maxTime)&&it(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&st(e,n.props)||null===(s=(t=n.props).onChange)||void 0===s||s.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,gt(n.props.selected).getTime()===gt(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&it(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&st(e,n.props)},n.liClasses=function(e){var s,i=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&i.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&i.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*w.getHours(e)+60*j.getMinutes(e)+D.getSeconds(e))%(60*(null!==(s=n.props.intervals)&&void 0!==s?s:t.defaultProps.intervals))!=0&&i.push("react-datepicker__time-list-item--injected"),i.join(" ")},n.handleOnKeyDown=function(e,t){var s,i;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),(e.key===ve.ArrowUp||e.key===ve.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===ve.ArrowDown||e.key===ve.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===ve.Enter&&n.handleClick(t),null===(i=(s=n.props).handleOnKeyDown)||void 0===i||i.call(s,e)},n.renderTimes=function(){for(var e,s=[],i="string"==typeof n.props.format?n.props.format:"p",a=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,o=n.props.selected||n.props.openToDate||we(),l=Pe(o),c=n.props.injectTimes&&n.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),u=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(o),d=u/a,p=0;p<d;p++){var h=r.addMinutes(l,p*a);if(s.push(h),c){var m=ht(l,h,p,a,c);s=s.concat(m)}}var f=s.reduce((function(e,t){return t.getTime()<=o.getTime()?t:e}),s[0]);return s.map((function(e){return pe.default.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===f&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===f?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},Te(e,i,n.props.locale))}))},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?pe.default.createElement(pe.default.Fragment,null):pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},pe.default.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return fe(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,s=this.state.height;return pe.default.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),pe.default.createElement("div",{className:"react-datepicker__time"},pe.default.createElement("div",{className:"react-datepicker__time-box"},pe.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:s?{height:s}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(n.Component),Ut=function(e){function s(s){var i=e.call(this,s)||this;return i.YEAR_REFS=be([],Array(i.props.yearItemNumber),!0).map((function(){return n.createRef()})),i.isDisabled=function(e){return ze(e,{minDate:i.props.minDate,maxDate:i.props.maxDate,excludeDates:i.props.excludeDates,includeDates:i.props.includeDates,filterDate:i.props.filterDate})},i.isExcluded=function(e){return qe(e,{excludeDates:i.props.excludeDates})},i.selectingDate=function(){var e;return null!==(e=i.props.selectingDate)&&void 0!==e?e:i.props.preSelection},i.updateFocusOnPaginate=function(e){window.requestAnimationFrame((function(){var t,n;null===(n=null===(t=i.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()}))},i.handleYearClick=function(e,t){i.props.onDayClick&&i.props.onDayClick(e,t)},i.handleYearNavigation=function(e,t){var n,s,a,r,o=i.props,l=o.date,c=o.yearItemNumber;if(void 0!==l&&void 0!==c){var u=ft(l,c).startPeriod;i.isDisabled(t)||i.isExcluded(t)||(null===(s=(n=i.props).setPreSelection)||void 0===s||s.call(n,t),e-u<0?i.updateFocusOnPaginate(c-(u-e)):e-u>=c?i.updateFocusOnPaginate(Math.abs(c-(e-u))):null===(r=null===(a=i.YEAR_REFS[e-u])||void 0===a?void 0:a.current)||void 0===r||r.focus())}},i.isSameDay=function(e,t){return Fe(e,t)},i.isCurrentYear=function(e){return e===O.getYear(we())},i.isRangeStart=function(e){return i.props.startDate&&i.props.endDate&&Re(Q.setYear(we(),e),i.props.startDate)},i.isRangeEnd=function(e){return i.props.startDate&&i.props.endDate&&Re(Q.setYear(we(),e),i.props.endDate)},i.isInRange=function(e){return Je(e,i.props.startDate,i.props.endDate)},i.isInSelectingRange=function(e){var t=i.props,n=t.selectsStart,s=t.selectsEnd,a=t.selectsRange,r=t.startDate,o=t.endDate;return!(!(n||s||a)||!i.selectingDate())&&(n&&o?Je(e,i.selectingDate(),o):(s&&r||!(!a||!r||o))&&Je(e,r,i.selectingDate()))},i.isSelectingRangeStart=function(e){var t;if(!i.isInSelectingRange(e))return!1;var n=i.props,s=n.startDate,a=n.selectsStart;return Re(Q.setYear(we(),e),a?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=s?s:null)},i.isSelectingRangeEnd=function(e){var t;if(!i.isInSelectingRange(e))return!1;var n=i.props,s=n.endDate,a=n.selectsEnd,r=n.selectsRange;return Re(Q.setYear(we(),e),a||r?null!==(t=i.selectingDate())&&void 0!==t?t:null:null!=s?s:null)},i.isKeyboardSelected=function(e){if(void 0!==i.props.date&&null!=i.props.selected&&null!=i.props.preSelection){var t=i.props,n=t.minDate,s=t.maxDate,a=t.excludeDates,r=t.includeDates,o=t.filterDate,l=Me(Q.setYear(i.props.date,e)),c=(n||s||a||r||o)&&Ze(e,i.props);return!i.props.disabledKeyboardNavigation&&!i.props.inline&&!Fe(l,Me(i.props.selected))&&Fe(l,Me(i.props.preSelection))&&!c}},i.onYearClick=function(e,t){var n=i.props.date;void 0!==n&&i.handleYearClick(Me(Q.setYear(n,t)),e)},i.onYearKeyDown=function(e,t){var n,s,a=e.key,r=i.props,o=r.date,l=r.yearItemNumber,c=r.handleOnKeyDown;if(a!==ve.Tab&&e.preventDefault(),!i.props.disabledKeyboardNavigation)switch(a){case ve.Enter:if(null==i.props.selected)break;i.onYearClick(e,t),null===(s=(n=i.props).setPreSelection)||void 0===s||s.call(n,i.props.selected);break;case ve.ArrowRight:if(null==i.props.preSelection)break;i.handleYearNavigation(t+1,d.addYears(i.props.preSelection,1));break;case ve.ArrowLeft:if(null==i.props.preSelection)break;i.handleYearNavigation(t-1,oe.subYears(i.props.preSelection,1));break;case ve.ArrowUp:if(void 0===o||void 0===l||null==i.props.preSelection)break;var u=ft(o,l).startPeriod;if((m=t-(h=3))<u){var p=l%h;t>=u&&t<u+p?h=p:h+=p,m=t-h}i.handleYearNavigation(m,oe.subYears(i.props.preSelection,h));break;case ve.ArrowDown:if(void 0===o||void 0===l||null==i.props.preSelection)break;var h,m,f=ft(o,l).endPeriod;(m=t+(h=3))>f&&(p=l%h,t<=f&&t>f-p?h=p:h+=p,m=t+h),i.handleYearNavigation(m,d.addYears(i.props.preSelection,h))}c&&c(e)},i.getYearClassNames=function(e){var n=i.props,s=n.date,a=n.minDate,r=n.maxDate,o=n.selected,l=n.excludeDates,c=n.includeDates,u=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),s?null==d?void 0:d(Q.setYear(s,e)):void 0,{"react-datepicker__year-text--selected":o?e===O.getYear(o):void 0,"react-datepicker__year-text--disabled":(a||r||l||c||u)&&Ze(e,i.props),"react-datepicker__year-text--keyboard-selected":i.isKeyboardSelected(e),"react-datepicker__year-text--range-start":i.isRangeStart(e),"react-datepicker__year-text--range-end":i.isRangeEnd(e),"react-datepicker__year-text--in-range":i.isInRange(e),"react-datepicker__year-text--in-selecting-range":i.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":i.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":i.isSelectingRangeEnd(e),"react-datepicker__year-text--today":i.isCurrentYear(e)})},i.getYearTabIndex=function(e){if(i.props.disabledKeyboardNavigation||null==i.props.preSelection)return"-1";var t=O.getYear(i.props.preSelection),n=Ze(e,i.props);return e!==t||n?"-1":"0"},i.getYearContent=function(e){return i.props.renderYearContent?i.props.renderYearContent(e):e},i}return fe(s,e),s.prototype.render=function(){var e=this,t=[],n=this.props,s=n.date,i=n.yearItemNumber,a=n.onYearMouseEnter,r=n.onYearMouseLeave;if(void 0===s)return null;for(var o=ft(s,i),l=o.startPeriod,c=o.endPeriod,u=function(n){t.push(pe.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){yt(t)&&(t.preventDefault(),t.key=ve.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return a(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return r(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return r(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,p=l;p<=c;p++)u(p);return pe.default.createElement("div",{className:"react-datepicker__year"},pe.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},s}(n.Component);function Nt(e,t,n,s){for(var i=[],a=0;a<2*t+1;a++){var r=e+t-a,o=!0;n&&(o=O.getYear(n)<=r),s&&o&&(o=O.getYear(s)>=r),o&&i.push(r)}return i}var Ft,Yt=function(e){function s(t){var s=e.call(this,t)||this;s.renderOptions=function(){var e=s.props.year,t=s.state.yearsList.map((function(t){return pe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:s.onChange.bind(s,t),"aria-selected":e===t?"true":void 0},e===t?pe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=s.props.minDate?O.getYear(s.props.minDate):null,i=s.props.maxDate?O.getYear(s.props.maxDate):null;return i&&s.state.yearsList.find((function(e){return e===i}))||t.unshift(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:s.incrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&s.state.yearsList.find((function(e){return e===n}))||t.push(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:s.decrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},s.onChange=function(e){s.props.onChange(e)},s.handleClickOutside=function(){s.props.onCancel()},s.shiftYears=function(e){var t=s.state.yearsList.map((function(t){return t+e}));s.setState({yearsList:t})},s.incrementYears=function(){return s.shiftYears(1)},s.decrementYears=function(){return s.shiftYears(-1)};var i=t.yearDropdownItemNumber,a=t.scrollableYearDropdown,r=i||(a?10:5);return s.state={yearsList:Nt(s.props.year,r,s.props.minDate,s.props.maxDate)},s.dropdownRef=n.createRef(),s}return fe(s,e),s.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},s.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return pe.default.createElement(xe,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},s}(n.Component),Ht=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?O.getYear(t.props.minDate):1900,n=t.props.maxDate?O.getYear(t.props.maxDate):2100,s=[],i=e;i<=n;i++)s.push(pe.default.createElement("option",{key:i,value:i},i));return s},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},pe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return pe.default.createElement(Yt,ge({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},(function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)}))},t.handleYearChange=function(e,n){var s;null===(s=t.onSelect)||void 0===s||s.call(t,e,n),t.setOpen()},t.onSelect=function(e,n){var s,i;null===(i=(s=t.props).onSelect)||void 0===i||i.call(s,e,n)},t.setOpen=function(){var e,n;null===(n=(e=t.props).setOpen)||void 0===n||n.call(e,!0)},t}return fe(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Bt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Vt=function(e){function a(r){var c=e.call(this,r)||this;return c.monthContainer=void 0,c.handleClickOutside=function(e){c.props.onClickOutside(e)},c.setClickOutsideRef=function(){return c.containerRef.current},c.handleDropdownFocus=function(e){var t,n,s,i;s=e.target,i=(s.className||"").split(/\s+/),Bt.some((function(e){return i.indexOf(e)>=0}))&&(null===(n=(t=c.props).onDropdownFocus)||void 0===n||n.call(t,e))},c.getDateInView=function(){var e=c.props,t=e.preSelection,n=e.selected,s=e.openToDate,i=ct(c.props),a=ut(c.props),r=we();return s||n||t||(i&&M.isBefore(r,i)?i:a&&I.isAfter(r,a)?a:r)},c.increaseMonth=function(){c.setState((function(e){var t=e.date;return{date:o.addMonths(t,1)}}),(function(){return c.handleMonthChange(c.state.date)}))},c.decreaseMonth=function(){c.setState((function(e){var t=e.date;return{date:ie.subMonths(t,1)}}),(function(){return c.handleMonthChange(c.state.date)}))},c.handleDayClick=function(e,t,n){c.props.onSelect(e,t,n),c.props.setPreSelection&&c.props.setPreSelection(e)},c.handleDayMouseEnter=function(e){c.setState({selectingDate:e}),c.props.onDayMouseEnter&&c.props.onDayMouseEnter(e)},c.handleMonthMouseLeave=function(){c.setState({selectingDate:void 0}),c.props.onMonthMouseLeave&&c.props.onMonthMouseLeave()},c.handleYearMouseEnter=function(e,t){c.setState({selectingDate:Q.setYear(we(),t)}),c.props.onYearMouseEnter&&c.props.onYearMouseEnter(e,t)},c.handleYearMouseLeave=function(e,t){c.props.onYearMouseLeave&&c.props.onYearMouseLeave(e,t)},c.handleYearChange=function(e){var t,n,s,i;null===(n=(t=c.props).onYearChange)||void 0===n||n.call(t,e),c.setState({isRenderAriaLiveMessage:!0}),c.props.adjustDateOnChange&&(c.props.onSelect(e),null===(i=(s=c.props).setOpen)||void 0===i||i.call(s,!0)),c.props.setPreSelection&&c.props.setPreSelection(e)},c.getEnabledPreSelectionDateForMonth=function(e){if(!ze(e,c.props))return e;for(var t=Ie(e),n=function(e){return b.endOfMonth(e)}(e),a=s.differenceInDays(n,t),r=null,o=0;o<=a;o++){var l=i.addDays(t,o);if(!ze(l,c.props)){r=l;break}}return r},c.handleMonthChange=function(e){var t,n,s,i=null!==(t=c.getEnabledPreSelectionDateForMonth(e))&&void 0!==t?t:e;c.handleCustomMonthChange(i),c.props.adjustDateOnChange&&(c.props.onSelect(i),null===(s=(n=c.props).setOpen)||void 0===s||s.call(n,!0)),c.props.setPreSelection&&c.props.setPreSelection(i)},c.handleCustomMonthChange=function(e){var t,n;null===(n=(t=c.props).onMonthChange)||void 0===n||n.call(t,e),c.setState({isRenderAriaLiveMessage:!0})},c.handleMonthYearChange=function(e){c.handleYearChange(e),c.handleMonthChange(e)},c.changeYear=function(e){c.setState((function(t){var n=t.date;return{date:Q.setYear(n,Number(e))}}),(function(){return c.handleYearChange(c.state.date)}))},c.changeMonth=function(e){c.setState((function(t){var n=t.date;return{date:G.setMonth(n,Number(e))}}),(function(){return c.handleMonthChange(c.state.date)}))},c.changeMonthYear=function(e){c.setState((function(t){var n=t.date;return{date:Q.setYear(G.setMonth(n,T.getMonth(e)),O.getYear(e))}}),(function(){return c.handleMonthYearChange(c.state.date)}))},c.header=function(e){void 0===e&&(e=c.state.date);var n=Oe(e,c.props.locale,c.props.calendarStartDay),s=[];return c.props.showWeekNumbers&&s.push(pe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},c.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map((function(e){var s=i.addDays(n,e),a=c.formatWeekday(s,c.props.locale),r=c.props.weekDayClassName?c.props.weekDayClassName(s):void 0;return pe.default.createElement("div",{key:e,"aria-label":Te(s,"EEEE",c.props.locale),className:t.clsx("react-datepicker__day-name",r)},a)})))},c.formatWeekday=function(e,t){return c.props.formatWeekDay?function(e,t,n){return t(Te(e,"EEEE",n))}(e,c.props.formatWeekDay,t):c.props.useWeekdaysShort?function(e,t){return Te(e,"EEE",t)}(e,t):function(e,t){return Te(e,"EEEEEE",t)}(e,t)},c.decreaseYear=function(){c.setState((function(e){var t,n=e.date;return{date:oe.subYears(n,c.props.showYearPicker?null!==(t=c.props.yearItemNumber)&&void 0!==t?t:a.defaultProps.yearItemNumber:1)}}),(function(){return c.handleYearChange(c.state.date)}))},c.clearSelectingDate=function(){c.setState({selectingDate:void 0})},c.renderPreviousButton=function(){var e,t,n;if(!c.props.renderCustomHeader){var s,i=null!==(e=c.props.monthsShown)&&void 0!==e?e:a.defaultProps.monthsShown,r=c.props.showPreviousMonths?i-1:0,o=null!==(t=c.props.monthSelectedIn)&&void 0!==t?t:r,l=ie.subMonths(c.state.date,o);switch(!0){case c.props.showMonthYearPicker:s=ot(c.state.date,c.props);break;case c.props.showYearPicker:s=function(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.yearItemNumber,a=void 0===i?12:i,r=ft(Me(oe.subYears(e,a)),a).endPeriod,o=s&&O.getYear(s);return o&&o>r||!1}(c.state.date,c.props);break;case c.props.showQuarterYearPicker:s=function(e,t){var n=void 0===t?{}:t,s=n.minDate,i=n.includeDates,a=ne.startOfYear(e),r=ae.subQuarters(a,1);return s&&m.differenceInCalendarQuarters(s,r)>0||i&&i.every((function(e){return m.differenceInCalendarQuarters(e,r)>0}))||!1}(c.state.date,c.props);break;default:s=at(l,c.props)}if(((null!==(n=c.props.forceShowMonthNavigation)&&void 0!==n?n:a.defaultProps.forceShowMonthNavigation)||c.props.showDisabledMonthNavigation||!s)&&!c.props.showTimeSelectOnly){var u=["react-datepicker__navigation","react-datepicker__navigation--previous"],d=c.decreaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(d=c.decreaseYear),s&&c.props.showDisabledMonthNavigation&&(u.push("react-datepicker__navigation--previous--disabled"),d=void 0);var p=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,h=c.props,f=h.previousMonthButtonLabel,g=void 0===f?a.defaultProps.previousMonthButtonLabel:f,b=h.previousYearButtonLabel,v=void 0===b?a.defaultProps.previousYearButtonLabel:b,y=c.props,x=y.previousMonthAriaLabel,_=void 0===x?"string"==typeof g?g:"Previous Month":x,S=y.previousYearAriaLabel,w=void 0===S?"string"==typeof v?v:"Previous Year":S;return pe.default.createElement("button",{type:"button",className:u.join(" "),onClick:d,onKeyDown:c.props.handleOnKeyDown,"aria-label":p?w:_},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},p?v:g))}}},c.increaseYear=function(){c.setState((function(e){var t,n=e.date;return{date:d.addYears(n,c.props.showYearPicker?null!==(t=c.props.yearItemNumber)&&void 0!==t?t:a.defaultProps.yearItemNumber:1)}}),(function(){return c.handleYearChange(c.state.date)}))},c.renderNextButton=function(){var e;if(!c.props.renderCustomHeader){var t;switch(!0){case c.props.showMonthYearPicker:t=lt(c.state.date,c.props);break;case c.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,s=n.maxDate,i=n.yearItemNumber,a=void 0===i?12:i,r=ft(d.addYears(e,a),a).startPeriod,o=s&&O.getYear(s);return o&&o<r||!1}(c.state.date,c.props);break;case c.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,s=n.maxDate,i=n.includeDates,a=y.endOfYear(e),r=l.addQuarters(a,1);return s&&m.differenceInCalendarQuarters(r,s)>0||i&&i.every((function(e){return m.differenceInCalendarQuarters(r,e)>0}))||!1}(c.state.date,c.props);break;default:t=rt(c.state.date,c.props)}if(((null!==(e=c.props.forceShowMonthNavigation)&&void 0!==e?e:a.defaultProps.forceShowMonthNavigation)||c.props.showDisabledMonthNavigation||!t)&&!c.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];c.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),c.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var s=c.increaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(s=c.increaseYear),t&&c.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),s=void 0);var i=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,r=c.props,o=r.nextMonthButtonLabel,u=void 0===o?a.defaultProps.nextMonthButtonLabel:o,p=r.nextYearButtonLabel,h=void 0===p?a.defaultProps.nextYearButtonLabel:p,f=c.props,g=f.nextMonthAriaLabel,b=void 0===g?"string"==typeof u?u:"Next Month":g,v=f.nextYearAriaLabel,x=void 0===v?"string"==typeof h?h:"Next Year":v;return pe.default.createElement("button",{type:"button",className:n.join(" "),onClick:s,onKeyDown:c.props.handleOnKeyDown,"aria-label":i?x:b},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},i?h:u))}}},c.renderCurrentMonth=function(e){void 0===e&&(e=c.state.date);var t=["react-datepicker__current-month"];return c.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),c.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),c.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),pe.default.createElement("h2",{className:t.join(" ")},Te(e,c.props.dateFormat,c.props.locale))},c.renderYearDropdown=function(e){if(void 0===e&&(e=!1),c.props.showYearDropdown&&!e)return pe.default.createElement(Ht,ge({},a.defaultProps,c.props,{date:c.state.date,onChange:c.changeYear,year:O.getYear(c.state.date)}))},c.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),c.props.showMonthDropdown&&!e)return pe.default.createElement(Mt,ge({},a.defaultProps,c.props,{month:T.getMonth(c.state.date),onChange:c.changeMonth}))},c.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),c.props.showMonthYearDropdown&&!e)return pe.default.createElement(Et,ge({},a.defaultProps,c.props,{date:c.state.date,onChange:c.changeMonthYear}))},c.handleTodayButtonClick=function(e){c.props.onSelect(Ae(),e),c.props.setPreSelection&&c.props.setPreSelection(Ae())},c.renderTodayButton=function(){if(c.props.todayButton&&!c.props.showTimeSelectOnly)return pe.default.createElement("div",{className:"react-datepicker__today-button",onClick:c.handleTodayButtonClick},c.props.todayButton)},c.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return pe.default.createElement("div",{className:"react-datepicker__header ".concat(c.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},c.renderCurrentMonth(t),pe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(c.props.dropdownMode),onFocus:c.handleDropdownFocus},c.renderMonthDropdown(0!==n),c.renderMonthYearDropdown(0!==n),c.renderYearDropdown(0!==n)),pe.default.createElement("div",{className:"react-datepicker__day-names"},c.header(t)))},c.renderCustomHeader=function(e){var t,n,s=e.monthDate,i=e.i;if(c.props.showTimeSelect&&!c.state.monthContainer||c.props.showTimeSelectOnly)return null;var a=at(c.state.date,c.props),r=rt(c.state.date,c.props),o=ot(c.state.date,c.props),l=lt(c.state.date,c.props),u=!c.props.showMonthYearPicker&&!c.props.showQuarterYearPicker&&!c.props.showYearPicker;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:c.props.onDropdownFocus},null===(n=(t=c.props).renderCustomHeader)||void 0===n?void 0:n.call(t,ge(ge({},c.state),{customHeaderCount:i,monthDate:s,changeMonth:c.changeMonth,changeYear:c.changeYear,decreaseMonth:c.decreaseMonth,increaseMonth:c.increaseMonth,decreaseYear:c.decreaseYear,increaseYear:c.increaseYear,prevMonthButtonDisabled:a,nextMonthButtonDisabled:r,prevYearButtonDisabled:o,nextYearButtonDisabled:l})),u&&pe.default.createElement("div",{className:"react-datepicker__day-names"},c.header(s)))},c.renderYearHeader=function(e){var t=e.monthDate,n=c.props,s=n.showYearPicker,i=n.yearItemNumber,r=ft(t,void 0===i?a.defaultProps.yearItemNumber:i),o=r.startPeriod,l=r.endPeriod;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(o," - ").concat(l):O.getYear(t))},c.renderHeader=function(e){var t=e.monthDate,n=e.i,s={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==c.props.renderCustomHeader:return c.renderCustomHeader(s);case c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker:return c.renderYearHeader(s);default:return c.renderDefaultHeader(s)}},c.renderMonths=function(){var e,t;if(!c.props.showTimeSelectOnly&&!c.props.showYearPicker){for(var n=[],s=null!==(e=c.props.monthsShown)&&void 0!==e?e:a.defaultProps.monthsShown,i=c.props.showPreviousMonths?s-1:0,r=c.props.showMonthYearPicker||c.props.showQuarterYearPicker?d.addYears(c.state.date,i):ie.subMonths(c.state.date,i),l=null!==(t=c.props.monthSelectedIn)&&void 0!==t?t:i,u=0;u<s;++u){var p=u-l+i,h=c.props.showMonthYearPicker||c.props.showQuarterYearPicker?d.addYears(r,p):o.addMonths(r,p),m="month-".concat(u),f=u<s-1,g=u>0;n.push(pe.default.createElement("div",{key:m,ref:function(e){c.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},c.renderHeader({monthDate:h,i:u}),pe.default.createElement(Ot,ge({},a.defaultProps,c.props,{ariaLabelPrefix:c.props.monthAriaLabelPrefix,day:h,onDayClick:c.handleDayClick,handleOnKeyDown:c.props.handleOnDayKeyDown,handleOnMonthKeyDown:c.props.handleOnKeyDown,onDayMouseEnter:c.handleDayMouseEnter,onMouseLeave:c.handleMonthMouseLeave,orderInDisplay:u,selectingDate:c.state.selectingDate,monthShowsDuplicateDaysEnd:f,monthShowsDuplicateDaysStart:g}))))}return n}},c.renderYears=function(){if(!c.props.showTimeSelectOnly)return c.props.showYearPicker?pe.default.createElement("div",{className:"react-datepicker__year--container"},c.renderHeader({monthDate:c.state.date}),pe.default.createElement(Ut,ge({},a.defaultProps,c.props,{selectingDate:c.state.selectingDate,date:c.state.date,onDayClick:c.handleDayClick,clearSelectingDate:c.clearSelectingDate,onYearMouseEnter:c.handleYearMouseEnter,onYearMouseLeave:c.handleYearMouseLeave}))):void 0},c.renderTimeSection=function(){if(c.props.showTimeSelect&&(c.state.monthContainer||c.props.showTimeSelectOnly))return pe.default.createElement(Rt,ge({},a.defaultProps,c.props,{onChange:c.props.onTimeChange,format:c.props.timeFormat,intervals:c.props.timeIntervals,monthRef:c.state.monthContainer}))},c.renderInputTimeSection=function(){var e=c.props.selected?new Date(c.props.selected):void 0,t=e&&je(e)&&Boolean(c.props.selected)?"".concat(mt(e.getHours()),":").concat(mt(e.getMinutes())):"";if(c.props.showTimeInput)return pe.default.createElement(_t,ge({},a.defaultProps,c.props,{date:e,timeString:t,onChange:c.props.onTimeChange}))},c.renderAriaLiveRegion=function(){var e,t,n=ft(c.state.date,null!==(e=c.props.yearItemNumber)&&void 0!==e?e:a.defaultProps.yearItemNumber),s=n.startPeriod,i=n.endPeriod;return t=c.props.showYearPicker?"".concat(s," - ").concat(i):c.props.showMonthYearPicker||c.props.showQuarterYearPicker?O.getYear(c.state.date):"".concat($e(T.getMonth(c.state.date),c.props.locale)," ").concat(O.getYear(c.state.date)),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},c.state.isRenderAriaLiveMessage&&t)},c.renderChildren=function(){if(c.props.children)return pe.default.createElement("div",{className:"react-datepicker__children-container"},c.props.children)},c.containerRef=n.createRef(),c.state={date:c.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},c}return fe(a,e),Object.defineProperty(a,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12}},enumerable:!1,configurable:!0}),a.prototype.componentDidMount=function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))},a.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||Fe(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Fe(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Ue(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}},a.prototype.render=function(){var e=this.props.container||ye;return pe.default.createElement(xe,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},pe.default.createElement(e,{className:t.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},a}(n.Component),$t=function(e){var t=e.icon,n=e.className,s=void 0===n?"":n,i=e.onClick,a="react-datepicker__calendar-icon";return"string"==typeof t?pe.default.createElement("i",{className:"".concat(a," ").concat(t," ").concat(s),"aria-hidden":"true",onClick:i}):pe.default.isValidElement(t)?pe.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(a," ").concat(s),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof i&&i(e)}}):pe.default.createElement("svg",{className:"".concat(a," ").concat(s),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},pe.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return fe(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return he.default.createPortal(this.props.children,this.el)},t}(n.Component),zt=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},qt=function(e){function t(t){var s=e.call(this,t)||this;return s.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=s.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(zt)},s.handleFocusStart=function(){var e=s.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},s.handleFocusEnd=function(){var e=s.getTabChildren();e&&e.length>1&&e[0].focus()},s.tabLoopRef=n.createRef(),s}return fe(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?pe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},pe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,pe.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),Gt=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return fe(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),s.prototype.render=function(){var e=this.props,i=e.className,a=e.wrapperClassName,r=e.hidePopper,o=void 0===r?s.defaultProps.hidePopper:r,l=e.popperComponent,c=e.targetComponent,u=e.enableTabLoop,d=e.popperOnKeyDown,p=e.portalId,h=e.portalHost,m=e.popperProps,f=e.showArrow,g=void 0;if(!o){var b=t.clsx("react-datepicker-popper",i);g=pe.default.createElement(qt,{enableTabLoop:u},pe.default.createElement("div",{ref:m.refs.setFloating,style:m.floatingStyles,className:b,"data-placement":m.placement,onKeyDown:d},l,f&&pe.default.createElement(ce.FloatingArrow,{ref:m.arrowRef,context:m.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(g=n.createElement(this.props.popperContainer,{},g)),p&&!o&&(g=pe.default.createElement(Wt,{portalId:p,portalHost:h},g));var v=t.clsx("react-datepicker-wrapper",a);return pe.default.createElement(pe.default.Fragment,null,pe.default.createElement("div",{ref:m.refs.setReference,className:v},c),g)},s}(n.Component),Kt=(Ft=Gt,function(e){var t,s="boolean"!=typeof e.hidePopper||e.hidePopper,i=n.useRef(null),a=ce.useFloating(ge({open:!s,whileElementsMounted:ce.autoUpdate,placement:e.popperPlacement,middleware:be([ce.flip({padding:15}),ce.offset(10),ce.arrow({element:i})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),r=ge(ge({},e),{hidePopper:s,popperProps:ge(ge({},a),{arrowRef:i})});return pe.default.createElement(Ft,ge({},r))}),Xt="react-datepicker-ignore-onclickoutside",Qt="Date input not valid.",Jt=function(e){function s(a){var r=e.call(this,a)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:we()},r.modifyHolidays=function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return je(n)?be(be([],e,!0),[ge(ge({},t),{date:n})],!1):e}),[])},r.calcInitialState=function(){var e,t=r.getPreSelection(),n=ct(r.props),s=ut(r.props),i=n&&M.isBefore(t,Pe(n))?n:s&&I.isAfter(t,Ee(s))?s:t;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:i,highlightDates:dt(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(ge(ge({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(ge(ge({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.safeFocus=function(){setTimeout((function(){var e,t;null===(t=null===(e=r.input)||void 0===e?void 0:e.focus)||void 0===t||t.call(e,{preventScroll:!0})}),0)},r.safeBlur=function(){setTimeout((function(){var e,t;null===(t=null===(e=r.input)||void 0===e?void 0:e.blur)||void 0===t||t.call(e)}),0)},r.setFocus=function(){r.safeFocus()},r.setBlur=function(){r.safeBlur(),r.cancelFocusInput()},r.setOpen=function(e,t){void 0===t&&(t=!1),r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:en},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))},r.inputOk=function(){return L.isDate(r.state.preSelection)},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){var t,n,s=r.state.wasHidden,i=!s||r.state.open;s&&r.resetHiddenStatus(),!r.state.preventFocus&&i&&(null===(n=(t=r.props).onFocus)||void 0===n||n.call(t,e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},(function(){r.preventFocusTimeout=setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))}))},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){var t,n;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&(null===(n=(t=r.props).onBlur)||void 0===n||n.call(t,e)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){var t,n;r.props.inline||r.setOpen(!1),null===(n=(t=r.props).onClickOutside)||void 0===n||n.call(t,e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var a=n[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(r,n),a&&"function"==typeof a.isDefaultPrevented&&!a.isDefaultPrevented())){r.setState({inputValue:(null==a?void 0:a.target)instanceof HTMLInputElement?a.target.value:null,lastPreSelectChange:Zt});var o=r.props,l=o.dateFormat,c=void 0===l?s.defaultProps.dateFormat:l,u=o.strictParsing,d=void 0===u?s.defaultProps.strictParsing:u,p=o.selectsRange,h=o.startDate,m=o.endDate,f=(null==a?void 0:a.target)instanceof HTMLInputElement?a.target.value:"";if(p){var g=f.split("-",2).map((function(e){return e.trim()})),b=g[0],v=g[1],y=ke(null!=b?b:"",c,r.props.locale,d),x=ke(null!=v?v:"",c,r.props.locale,d),_=(null==h?void 0:h.getTime())!==(null==y?void 0:y.getTime()),S=(null==m?void 0:m.getTime())!==(null==x?void 0:x.getTime());if(!_&&!S)return;if(y&&ze(y,r.props))return;if(x&&ze(x,r.props))return;null===(t=(e=r.props).onChange)||void 0===t||t.call(e,[y,x],a)}else{var k=ke(f,c,r.props.locale,d,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&k&&!Fe(k,r.props.selected)&&(k=W.set(r.props.selected,{hours:w.getHours(k),minutes:j.getMinutes(k),seconds:D.getSeconds(k)})),!k&&f||r.setSelected(k,a,!0)}}},r.handleSelect=function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var s=r.props,i=s.startDate,a=s.endDate;!i||a||!r.props.swapRange&&vt(e,i)||r.setOpen(!1)}},r.setSelected=function(e,t,n,s){var i,a,o=e;if(r.props.showYearPicker){if(null!==o&&Ze(O.getYear(o),r.props))return}else if(r.props.showMonthYearPicker){if(null!==o&&Ge(o,r.props))return}else if(null!==o&&ze(o,r.props))return;var l=r.props,c=l.onChange,u=l.selectsRange,d=l.startDate,p=l.endDate,h=l.selectsMultiple,m=l.selectedDates,f=l.minTime,g=l.swapRange;if(!Ye(r.props.selected,o)||r.props.allowSameDay||u||h)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=De(o,{hour:w.getHours(r.props.selected),minute:j.getMinutes(r.props.selected),second:D.getSeconds(r.props.selected)})),n||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly||f&&(o=De(o,{hour:f.getHours(),minute:f.getMinutes(),second:f.getSeconds()})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),u){var b=d&&p;d||p?d&&!p&&(null===o?null==c||c([null,null],t):vt(o,d)?g?null==c||c([o,d],t):null==c||c([o,null],t):null==c||c([d,o],t)):null==c||c([o,null],t),b&&(null==c||c([o,null],t))}else if(h){if(null!==o)if(null==m?void 0:m.length)if(m.some((function(e){return Fe(e,o)}))){var v=m.filter((function(e){return!Fe(e,o)}));null==c||c(v,t)}else null==c||c(be(be([],m,!0),[o],!1),t);else null==c||c([o],t)}else null==c||c(o,t);n||(null===(a=(i=r.props).onSelect)||void 0===a||a.call(i,o,t),r.setState({inputValue:null}))},r.setPreSelection=function(e){var t=L.isDate(r.props.minDate),n=L.isDate(r.props.maxDate),s=!0;if(e){var i=Pe(e);if(t&&n)s=He(e,r.props.minDate,r.props.maxDate);else if(t){var a=Pe(r.props.minDate);s=I.isAfter(e,a)||Ye(i,a)}else if(n){var o=Ee(r.props.maxDate);s=M.isBefore(e,o)||Ye(i,o)}}s&&r.setState({preSelection:e})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(e){var t,n;if(!r.props.selectsRange&&!r.props.selectsMultiple){var s=r.props.selected?r.props.selected:r.getPreSelection(),i=r.props.selected?e:De(s,{hour:w.getHours(e),minute:j.getMinutes(e)});r.setState({preSelection:i}),null===(n=(t=r.props).onChange)||void 0===n||n.call(t,i),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var e,t;r.props.disabled||r.props.readOnly||r.setOpen(!0),null===(t=(e=r.props).onInputClick)||void 0===t||t.call(e)},r.onInputKeyDown=function(e){var t,n,s,i,a,o;null===(n=(t=r.props).onKeyDown)||void 0===n||n.call(t,e);var l=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if(l===ve.ArrowDown||l===ve.ArrowUp){e.preventDefault();var c=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null===(i=r.calendar)||void 0===i?void 0:i.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(c);return void(u instanceof HTMLElement&&u.focus({preventScroll:!0}))}var d=we(r.state.preSelection);l===ve.Enter?(e.preventDefault(),e.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===en?(r.handleSelect(d,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(d)):r.setOpen(!1)):l===ve.Escape?(e.preventDefault(),e.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):l===ve.Tab&&r.setOpen(!1),r.inputOk()||null===(o=(a=r.props).onInputError)||void 0===o||o.call(a,{code:1,msg:Qt})}}else l!==ve.ArrowDown&&l!==ve.ArrowUp&&l!==ve.Enter||null===(s=r.onInputClick)||void 0===s||s.call(r)},r.onPortalKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))},r.onDayKeyDown=function(e){var t,n,s,a,l,c,p=r.props,h=p.minDate,m=p.maxDate,f=p.disabledKeyboardNavigation,g=p.showWeekPicker,b=p.shouldCloseOnSelect,y=p.locale,x=p.calendarStartDay,_=p.adjustDateOnChange,S=p.inline;if(null===(n=(t=r.props).onKeyDown)||void 0===n||n.call(t,e),!f){var w=e.key,k=e.shiftKey,j=we(r.state.preSelection),C=function(e,t){var n=t;switch(e){case ve.ArrowRight:n=g?u.addWeeks(t,1):i.addDays(t,1);break;case ve.ArrowLeft:n=g?re.subWeeks(t,1):se.subDays(t,1);break;case ve.ArrowUp:n=re.subWeeks(t,1);break;case ve.ArrowDown:n=u.addWeeks(t,1);break;case ve.PageUp:n=k?oe.subYears(t,1):ie.subMonths(t,1);break;case ve.PageDown:n=k?d.addYears(t,1):o.addMonths(t,1);break;case ve.Home:n=Oe(t,y,x);break;case ve.End:n=function(e){return v.endOfWeek(e)}(t)}return n};if(w===ve.Enter)return e.preventDefault(),r.handleSelect(j,e),void(!b&&r.setPreSelection(j));if(w===ve.Escape)return e.preventDefault(),r.setOpen(!1),void(r.inputOk()||null===(a=(s=r.props).onInputError)||void 0===a||a.call(s,{code:1,msg:Qt}));var D=null;switch(w){case ve.ArrowLeft:case ve.ArrowRight:case ve.ArrowUp:case ve.ArrowDown:case ve.PageUp:case ve.PageDown:case ve.Home:case ve.End:D=function(e,t){for(var n=e,s=!1,i=0,a=C(e,t);!s;){if(i>=40){a=t;break}h&&a<h&&(n=ve.ArrowRight,a=ze(h,r.props)?C(n,a):h),m&&a>m&&(n=ve.ArrowLeft,a=ze(m,r.props)?C(n,a):m),ze(a,r.props)?(n!==ve.PageUp&&n!==ve.Home||(n=ve.ArrowRight),n!==ve.PageDown&&n!==ve.End||(n=ve.ArrowLeft),a=C(n,a)):s=!0,i++}return a}(w,j)}if(D){if(e.preventDefault(),r.setState({lastPreSelectChange:en}),_&&r.setSelected(D),r.setPreSelection(D),S){var P=T.getMonth(j),I=T.getMonth(D),M=O.getYear(j),L=O.getYear(D);P!==I||M!==L?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}else null===(c=(l=r.props).onInputError)||void 0===c||c.call(l,{code:1,msg:Qt})}},r.onPopperKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput();var t=r.props,n=t.selectsRange,s=t.onChange;n?null==s||s([null,null],e):null==s||s(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)},r.renderCalendar=function(){var e,t;return r.props.inline||r.isCalendarOpen()?pe.default.createElement(Vt,ge({showMonthYearDropdown:void 0,ref:function(e){r.calendar=e}},r.props,r.state,{setOpen:r.setOpen,dateFormat:null!==(e=r.props.dateFormatCalendar)&&void 0!==e?e:s.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:pt(r.modifyHolidays()),outsideClickIgnoreClass:Xt,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:null!==(t=r.props.dropdownMode)&&void 0!==t?t:s.defaultProps.dropdownMode}),r.props.children):null},r.renderAriaLiveRegion=function(){var e,t=r.props,n=t.dateFormat,i=void 0===n?s.defaultProps.dateFormat:n,a=t.locale,o=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(Ce(r.props.startDate,{dateFormat:o,locale:a}),". ").concat(r.props.endDate?"End date: "+Ce(r.props.endDate,{dateFormat:o,locale:a}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(Ce(r.props.selected,{dateFormat:i,locale:a})):r.props.showYearPicker?"Selected year: ".concat(Ce(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?"Selected month: ".concat(Ce(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(Ce(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):"Selected date: ".concat(Ce(r.props.selected,{dateFormat:o,locale:a})),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},r.renderDateInput=function(){var e,i,a,o=t.clsx(r.props.className,((e={})[Xt]=r.state.open,e)),l=r.props.customInput||pe.default.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,p=void 0===d?s.defaultProps.dateFormat:d,h=u.locale,m="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var s=Ce(e,n),i=t?Ce(t,n):"";return"".concat(s," - ").concat(i)}(r.props.startDate,r.props.endDate,{dateFormat:p,locale:h}):r.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?Ce(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var s=Ce(e[1],t);return"".concat(n,", ").concat(s)}var i=e.length-1;return"".concat(n," (+").concat(i,")")}(null!==(a=r.props.selectedDates)&&void 0!==a?a:[],{dateFormat:p,locale:h}):Ce(r.props.selected,{dateFormat:p,locale:h});return n.cloneElement(l,((i={})[c]=function(e){r.input=e},i.value=m,i.onBlur=r.handleBlur,i.onChange=r.handleChange,i.onClick=r.onInputClick,i.onFocus=r.handleFocus,i.onKeyDown=r.onInputKeyDown,i.id=r.props.id,i.name=r.props.name,i.form=r.props.form,i.autoFocus=r.props.autoFocus,i.placeholder=r.props.placeholderText,i.disabled=r.props.disabled,i.autoComplete=r.props.autoComplete,i.className=t.clsx(l.props.className,o),i.title=r.props.title,i.readOnly=r.props.readOnly,i.required=r.props.required,i.tabIndex=r.props.tabIndex,i["aria-describedby"]=r.props.ariaDescribedBy,i["aria-invalid"]=r.props.ariaInvalid,i["aria-labelledby"]=r.props.ariaLabelledBy,i["aria-required"]=r.props.ariaRequired,i))},r.renderClearButton=function(){var e=r.props,n=e.isClearable,s=e.disabled,i=e.selected,a=e.startDate,o=e.endDate,l=e.clearButtonTitle,c=e.clearButtonClassName,u=void 0===c?"":c,d=e.ariaLabelClose,p=void 0===d?"Close":d,h=e.selectedDates;return n&&(null!=i||null!=a||null!=o||(null==h?void 0:h.length))?pe.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",u,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":p,onClick:r.onClearClick,title:l,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return fe(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),s.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},s.prototype.componentDidUpdate=function(e,t){var n,s,i,a,r,o;e.inline&&(r=e.selected,o=this.props.selected,r&&o?T.getMonth(r)!==T.getMonth(o)||O.getYear(r)!==O.getYear(o):r!==o)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:dt(this.props.highlightDates)}),t.focused||Ye(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(s=(n=this.props).onCalendarOpen)||void 0===s||s.call(n)),!0===t.open&&!1===this.state.open&&(null===(a=(i=this.props).onCalendarClose)||void 0===a||a.call(i)))},s.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},s.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,s=e.icon,i=e.calendarIconClassname,a=e.calendarIconClassName,r=e.toggleCalendarOnIconClick,o=this.state.open;return i&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),pe.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&pe.default.createElement($t,ge({icon:s,className:t.clsx(a,!a&&i,o&&"react-datepicker-ignore-onclickoutside")},r?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},s.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?pe.default.createElement(qt,{enableTabLoop:this.props.enableTabLoop},pe.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=pe.default.createElement(Wt,ge({portalId:this.props.portalId},this.props),t)),pe.default.createElement("div",null,this.renderInputContainer(),t)}return pe.default.createElement(Kt,ge({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},s}(n.Component),Zt="input",en="navigate";e.CalendarContainer=ye,e.default=Jt,e.getDefaultLocale=Be,e.registerLocale=function(e,t){var n=_e();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){_e().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(71508),n(96540),n(21057),n(27761),n(83359),n(44461),n(55353),n(88823),n(2577),n(4481),n(60274),n(88676),n(8),n(13450),n(12701),n(75327),n(51411),n(98577),n(4820),n(81002),n(22901),n(4195),n(22918),n(29332),n(26688),n(98511),n(921),n(86392),n(77116),n(97328),n(65171),n(68330),n(76253),n(86925),n(17933),n(65137),n(90795),n(81322),n(89111),n(63727),n(56171),n(82377),n(75798),n(4793),n(75245),n(34386),n(28772),n(41819),n(80093),n(80356),n(46908),n(71228),n(39852),n(80066),n(36128),n(14745),n(37608),n(85380),n(18590),n(25278),n(857),n(34032),n(84842),n(40961))},91396:(e,t)=>{"use strict";t.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}},79057:(e,t,n)=>{"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return s.enUS}});var s=n(34134)},20445:(e,t)=>{"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},81889:(e,t,n)=>{"use strict";t.formatters=void 0;var s=n(627),i=n(29332),a=n(6253),r=n(63613),o=n(9804),l=n(91396),c=n(7019);function u(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),i=Math.trunc(s/60),a=s%60;return 0===a?n+String(i):n+String(i)+t+(0,l.addLeadingZeros)(a,2)}function d(e,t){return e%60==0?(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2):p(e,t)}function p(e,t=""){const n=e>0?"-":"+",s=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(s/60),2)+t+(0,l.addLeadingZeros)(s%60,2)}t.formatters={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),s=t>0?t:1-t;return n.ordinalNumber(s,{unit:"year"})}return c.lightFormatters.y(e,t)},Y:function(e,t,n,s){const i=(0,o.getWeekYear)(e,s),a=i>0?i:1-i;if("YY"===t){const e=a%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):(0,l.addLeadingZeros)(a,t.length)},R:function(e,t){const n=(0,a.getISOWeekYear)(e);return(0,l.addLeadingZeros)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return(0,l.addLeadingZeros)(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return(0,l.addLeadingZeros)(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return c.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return(0,l.addLeadingZeros)(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const i=(0,r.getWeek)(e,s);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,l.addLeadingZeros)(i,t.length)},I:function(e,t,n){const s=(0,i.getISOWeek)(e);return"Io"===t?n.ordinalNumber(s,{unit:"week"}):(0,l.addLeadingZeros)(s,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):c.lightFormatters.d(e,t)},D:function(e,t,n){const i=(0,s.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(i,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const i=e.getDay(),a=(i-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return(0,l.addLeadingZeros)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const i=e.getDay(),a=(i-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return(0,l.addLeadingZeros)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),i=0===s?7:s;switch(t){case"i":return String(i);case"ii":return(0,l.addLeadingZeros)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let i;switch(i=12===s?"noon":0===s?"midnight":s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let i;switch(i=s>=17?"evening":s>=12?"afternoon":s>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return c.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):c.lightFormatters.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return"Ko"===t?n.ordinalNumber(s,{unit:"hour"}):(0,l.addLeadingZeros)(s,t.length)},k:function(e,t,n){let s=e.getHours();return 0===s&&(s=24),"ko"===t?n.ordinalNumber(s,{unit:"hour"}):(0,l.addLeadingZeros)(s,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):c.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):c.lightFormatters.s(e,t)},S:function(e,t){return c.lightFormatters.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return d(s);case"XXXX":case"XX":return p(s);default:return p(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return d(s);case"xxxx":case"xx":return p(s);default:return p(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+u(s,":");default:return"GMT"+p(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+u(s,":");default:return"GMT"+p(s,":")}},t:function(e,t,n){const s=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(s,t.length)},T:function(e,t,n){const s=e.getTime();return(0,l.addLeadingZeros)(s,t.length)}}},7019:(e,t,n)=>{"use strict";t.lightFormatters=void 0;var s=n(91396);t.lightFormatters={y(e,t){const n=e.getFullYear(),i=n>0?n:1-n;return(0,s.addLeadingZeros)("yy"===t?i%100:i,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,s.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,s.addLeadingZeros)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,s.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,s.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,s.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,s.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,i=e.getMilliseconds(),a=Math.trunc(i*Math.pow(10,n-3));return(0,s.addLeadingZeros)(a,t.length)}}},85879:(e,t)=>{"use strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},s=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.longFormatters={p:s,P:(e,t)=>{const i=e.match(/(P+)(p+)?/)||[],a=i[1],r=i[2];if(!r)return n(e,t);let o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(a,t)).replace("{{time}}",s(r,t))}}},72071:(e,t)=>{"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}},62535:(e,t,n)=>{"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,s.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n};var s=n(34032)},47602:(e,t)=>{"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return s.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const s=function(e,t,n){const s="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(s),i.includes(e))throw new RangeError(s)};const n=/^D+$/,s=/^Y+$/,i=["D","DD","YY","YYYY"]},82586:(e,t,n)=>{"use strict";t.add=function(e,t){const{years:n=0,months:o=0,weeks:l=0,days:c=0,hours:u=0,minutes:d=0,seconds:p=0}=t,h=(0,r.toDate)(e),m=o||n?(0,i.addMonths)(h,o+12*n):h,f=c||l?(0,s.addDays)(m,c+7*l):m,g=1e3*(p+60*(d+60*u));return(0,a.constructFrom)(e,f.getTime()+g)};var s=n(27761),i=n(55353),a=n(81516),r=n(34032)},38583:(e,t,n)=>{"use strict";t.addBusinessDays=function(e,t){const n=(0,o.toDate)(e),l=(0,r.isWeekend)(n);if(isNaN(t))return(0,s.constructFrom)(e,NaN);const c=n.getHours(),u=t<0?-1:1,d=Math.trunc(t/5);n.setDate(n.getDate()+7*d);let p=Math.abs(t%5);for(;p>0;)n.setDate(n.getDate()+u),(0,r.isWeekend)(n)||(p-=1);return l&&(0,r.isWeekend)(n)&&0!==t&&((0,i.isSaturday)(n)&&n.setDate(n.getDate()+(u<0?2:-1)),(0,a.isSunday)(n)&&n.setDate(n.getDate()+(u<0?1:-2))),n.setHours(c),n};var s=n(81516),i=n(84398),a=n(39957),r=n(52764),o=n(34032)},27761:(e,t,n)=>{"use strict";t.addDays=function(e,t){const n=(0,s.toDate)(e);return isNaN(t)?(0,i.constructFrom)(e,NaN):t?(n.setDate(n.getDate()+t),n):n};var s=n(34032),i=n(81516)},83359:(e,t,n)=>{"use strict";t.addHours=function(e,t){return(0,s.addMilliseconds)(e,t*i.millisecondsInHour)};var s=n(40276),i=n(69992)},21839:(e,t,n)=>{"use strict";t.addISOWeekYears=function(e,t){return(0,i.setISOWeekYear)(e,(0,s.getISOWeekYear)(e)+t)};var s=n(6253),i=n(93169)},40276:(e,t,n)=>{"use strict";t.addMilliseconds=function(e,t){const n=+(0,s.toDate)(e);return(0,i.constructFrom)(e,n+t)};var s=n(34032),i=n(81516)},44461:(e,t,n)=>{"use strict";t.addMinutes=function(e,t){return(0,s.addMilliseconds)(e,t*i.millisecondsInMinute)};var s=n(40276),i=n(69992)},55353:(e,t,n)=>{"use strict";t.addMonths=function(e,t){const n=(0,s.toDate)(e);if(isNaN(t))return(0,i.constructFrom)(e,NaN);if(!t)return n;const a=n.getDate(),r=(0,i.constructFrom)(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);return a>=r.getDate()?r:(n.setFullYear(r.getFullYear(),r.getMonth(),a),n)};var s=n(34032),i=n(81516)},88823:(e,t,n)=>{"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,s.addMonths)(e,n)};var s=n(55353)},2577:(e,t,n)=>{"use strict";t.addSeconds=function(e,t){return(0,s.addMilliseconds)(e,1e3*t)};var s=n(40276)},4481:(e,t,n)=>{"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,s.addDays)(e,n)};var s=n(27761)},60274:(e,t,n)=>{"use strict";t.addYears=function(e,t){return(0,s.addMonths)(e,12*t)};var s=n(55353)},10794:(e,t,n)=>{"use strict";t.areIntervalsOverlapping=function(e,t,n){const[i,a]=[+(0,s.toDate)(e.start),+(0,s.toDate)(e.end)].sort(((e,t)=>e-t)),[r,o]=[+(0,s.toDate)(t.start),+(0,s.toDate)(t.end)].sort(((e,t)=>e-t));return n?.inclusive?i<=o&&r<=a:i<o&&r<a};var s=n(34032)},30418:(e,t,n)=>{"use strict";t.clamp=function(e,t){return(0,i.min)([(0,s.max)([e,t.start]),t.end])};var s=n(56171),i=n(82377)},2069:(e,t,n)=>{"use strict";t.closestIndexTo=function(e,t){const n=(0,s.toDate)(e);if(isNaN(Number(n)))return NaN;const i=n.getTime();let a,r;return t.forEach((function(e,t){const n=(0,s.toDate)(e);if(isNaN(Number(n)))return a=NaN,void(r=NaN);const o=Math.abs(i-n.getTime());(null==a||o<r)&&(a=t,r=o)})),a};var s=n(34032)},26703:(e,t,n)=>{"use strict";t.closestTo=function(e,t){const n=(0,i.toDate)(e);if(isNaN(Number(n)))return(0,s.constructFrom)(e,NaN);const a=n.getTime();let r,o;return t.forEach((t=>{const n=(0,i.toDate)(t);if(isNaN(Number(n)))return r=(0,s.constructFrom)(e,NaN),void(o=NaN);const l=Math.abs(a-n.getTime());(null==r||l<o)&&(r=n,o=l)})),r};var s=n(81516),i=n(34032)},84393:(e,t,n)=>{"use strict";t.compareAsc=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t),a=n.getTime()-i.getTime();return a<0?-1:a>0?1:a};var s=n(34032)},96267:(e,t,n)=>{"use strict";t.compareDesc=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t),a=n.getTime()-i.getTime();return a>0?-1:a<0?1:a};var s=n(34032)},69992:(e,t)=>{"use strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secondsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsInQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsInHour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void 0,t.daysInWeek=7;const n=t.daysInYear=365.2425,s=t.maxTime=24*Math.pow(10,8)*60*60*1e3,i=(t.minTime=-s,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minutesInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.monthsInYear=12,t.quartersInYear=4,t.secondsInHour=3600),a=(t.secondsInMinute=60,t.secondsInDay=24*i),r=(t.secondsInWeek=7*a,t.secondsInYear=a*n),o=t.secondsInMonth=r/12;t.secondsInQuarter=3*o},81516:(e,t)=>{"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},57270:(e,t,n)=>{"use strict";t.constructNow=function(e){return(0,s.constructFrom)(e,Date.now())};var s=n(81516)},90670:(e,t,n)=>{"use strict";t.daysToWeeks=function(e){const t=e/s.daysInWeek,n=Math.trunc(t);return 0===n?0:n};var s=n(69992)},66384:(e,t,n)=>{"use strict";t.differenceInBusinessDays=function(e,t){const n=(0,l.toDate)(e);let c=(0,l.toDate)(t);if(!(0,r.isValid)(n)||!(0,r.isValid)(c))return NaN;const u=(0,i.differenceInCalendarDays)(n,c),d=u<0?-1:1,p=Math.trunc(u/7);let h=5*p;for(c=(0,s.addDays)(c,7*p);!(0,a.isSameDay)(n,c);)h+=(0,o.isWeekend)(c)?0:d,c=(0,s.addDays)(c,d);return 0===h?0:h};var s=n(27761),i=n(88676),a=n(17933),r=n(89111),o=n(52764),l=n(34032)},88676:(e,t,n)=>{"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,i.startOfDay)(e),r=(0,i.startOfDay)(t),o=+n-(0,a.getTimezoneOffsetInMilliseconds)(n),l=+r-(0,a.getTimezoneOffsetInMilliseconds)(r);return Math.round((o-l)/s.millisecondsInDay)};var s=n(69992),i=n(71228),a=n(62535)},87546:(e,t,n)=>{"use strict";t.differenceInCalendarISOWeekYears=function(e,t){return(0,s.getISOWeekYear)(e)-(0,s.getISOWeekYear)(t)};var s=n(6253)},7905:(e,t,n)=>{"use strict";t.differenceInCalendarISOWeeks=function(e,t){const n=(0,i.startOfISOWeek)(e),r=(0,i.startOfISOWeek)(t),o=+n-(0,a.getTimezoneOffsetInMilliseconds)(n),l=+r-(0,a.getTimezoneOffsetInMilliseconds)(r);return Math.round((o-l)/s.millisecondsInWeek)};var s=n(69992),i=n(20419),a=n(62535)},8:(e,t,n)=>{"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t);return 12*(n.getFullYear()-i.getFullYear())+(n.getMonth()-i.getMonth())};var s=n(34032)},13450:(e,t,n)=>{"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,i.toDate)(e),a=(0,i.toDate)(t);return 4*(n.getFullYear()-a.getFullYear())+((0,s.getQuarter)(n)-(0,s.getQuarter)(a))};var s=n(921),i=n(34032)},2930:(e,t,n)=>{"use strict";t.differenceInCalendarWeeks=function(e,t,n){const r=(0,i.startOfWeek)(e,n),o=(0,i.startOfWeek)(t,n),l=+r-(0,a.getTimezoneOffsetInMilliseconds)(r),c=+o-(0,a.getTimezoneOffsetInMilliseconds)(o);return Math.round((l-c)/s.millisecondsInWeek)};var s=n(69992),i=n(36128),a=n(62535)},12701:(e,t,n)=>{"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t);return n.getFullYear()-i.getFullYear()};var s=n(34032)},94210:(e,t,n)=>{"use strict";t.differenceInDays=function(e,t){const n=(0,i.toDate)(e),r=(0,i.toDate)(t),o=a(n,r),l=Math.abs((0,s.differenceInCalendarDays)(n,r));n.setDate(n.getDate()-o*l);const c=o*(l-Number(a(n,r)===-o));return 0===c?0:c};var s=n(88676),i=n(34032);function a(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}},97618:(e,t,n)=>{"use strict";t.differenceInHours=function(e,t,n){const r=(0,a.differenceInMilliseconds)(e,t)/i.millisecondsInHour;return(0,s.getRoundingMethod)(n?.roundingMethod)(r)};var s=n(72071),i=n(69992),a=n(29963)},32100:(e,t,n)=>{"use strict";t.differenceInISOWeekYears=function(e,t){let n=(0,r.toDate)(e);const o=(0,r.toDate)(t),l=(0,s.compareAsc)(n,o),c=Math.abs((0,i.differenceInCalendarISOWeekYears)(n,o));n=(0,a.subISOWeekYears)(n,l*c);const u=l*(c-Number((0,s.compareAsc)(n,o)===-l));return 0===u?0:u};var s=n(84393),i=n(87546),a=n(34830),r=n(34032)},29963:(e,t,n)=>{"use strict";t.differenceInMilliseconds=function(e,t){return+(0,s.toDate)(e)-+(0,s.toDate)(t)};var s=n(34032)},45092:(e,t,n)=>{"use strict";t.differenceInMinutes=function(e,t,n){const r=(0,a.differenceInMilliseconds)(e,t)/i.millisecondsInMinute;return(0,s.getRoundingMethod)(n?.roundingMethod)(r)};var s=n(72071),i=n(69992),a=n(29963)},20654:(e,t,n)=>{"use strict";t.differenceInMonths=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),l=(0,s.compareAsc)(n,o),c=Math.abs((0,i.differenceInCalendarMonths)(n,o));let u;if(c<1)u=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*c);let t=(0,s.compareAsc)(n,o)===-l;(0,a.isLastDayOfMonth)((0,r.toDate)(e))&&1===c&&1===(0,s.compareAsc)(e,o)&&(t=!1),u=l*(c-Number(t))}return 0===u?0:u};var s=n(84393),i=n(8),a=n(82082),r=n(34032)},36587:(e,t,n)=>{"use strict";t.differenceInQuarters=function(e,t,n){const a=(0,i.differenceInMonths)(e,t)/3;return(0,s.getRoundingMethod)(n?.roundingMethod)(a)};var s=n(72071),i=n(20654)},46276:(e,t,n)=>{"use strict";t.differenceInSeconds=function(e,t,n){const a=(0,i.differenceInMilliseconds)(e,t)/1e3;return(0,s.getRoundingMethod)(n?.roundingMethod)(a)};var s=n(72071),i=n(29963)},17116:(e,t,n)=>{"use strict";t.differenceInWeeks=function(e,t,n){const a=(0,i.differenceInDays)(e,t)/7;return(0,s.getRoundingMethod)(n?.roundingMethod)(a)};var s=n(72071),i=n(94210)},18835:(e,t,n)=>{"use strict";t.differenceInYears=function(e,t){const n=(0,a.toDate)(e),r=(0,a.toDate)(t),o=(0,s.compareAsc)(n,r),l=Math.abs((0,i.differenceInCalendarYears)(n,r));n.setFullYear(1584),r.setFullYear(1584);const c=o*(l-+((0,s.compareAsc)(n,r)===-o));return 0===c?0:c};var s=n(84393),i=n(12701),a=n(34032)},33872:(e,t,n)=>{"use strict";t.eachDayOfInterval=function(e,t){const n=(0,s.toDate)(e.start),i=(0,s.toDate)(e.end);let a=+n>+i;const r=a?+n:+i,o=a?i:n;o.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setDate(o.getDate()+l),o.setHours(0,0,0,0);return a?c.reverse():c};var s=n(34032)},39646:(e,t,n)=>{"use strict";t.eachHourOfInterval=function(e,t){const n=(0,i.toDate)(e.start),a=(0,i.toDate)(e.end);let r=+n>+a;const o=r?+n:+a;let l=r?a:n;l.setMinutes(0,0,0);let c=t?.step??1;if(!c)return[];c<0&&(c=-c,r=!r);const u=[];for(;+l<=o;)u.push((0,i.toDate)(l)),l=(0,s.addHours)(l,c);return r?u.reverse():u};var s=n(83359),i=n(34032)},90044:(e,t,n)=>{"use strict";t.eachMinuteOfInterval=function(e,t){const n=(0,i.startOfMinute)((0,a.toDate)(e.start)),r=(0,a.toDate)(e.end);let o=+n>+r;const l=o?+n:+r;let c=o?r:n,u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);const d=[];for(;+c<=l;)d.push((0,a.toDate)(c)),c=(0,s.addMinutes)(c,u);return o?d.reverse():d};var s=n(44461),i=n(99800),a=n(34032)},31880:(e,t,n)=>{"use strict";t.eachMonthOfInterval=function(e,t){const n=(0,s.toDate)(e.start),i=(0,s.toDate)(e.end);let a=+n>+i;const r=a?+n:+i,o=a?i:n;o.setHours(0,0,0,0),o.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setMonth(o.getMonth()+l);return a?c.reverse():c};var s=n(34032)},19674:(e,t,n)=>{"use strict";t.eachQuarterOfInterval=function(e,t){const n=(0,a.toDate)(e.start),r=(0,a.toDate)(e.end);let o=+n>+r;const l=o?+(0,i.startOfQuarter)(n):+(0,i.startOfQuarter)(r);let c=o?(0,i.startOfQuarter)(r):(0,i.startOfQuarter)(n),u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);const d=[];for(;+c<=l;)d.push((0,a.toDate)(c)),c=(0,s.addQuarters)(c,u);return o?d.reverse():d};var s=n(88823),i=n(80066),a=n(34032)},80932:(e,t,n)=>{"use strict";t.eachWeekOfInterval=function(e,t){const n=(0,a.toDate)(e.start),r=(0,a.toDate)(e.end);let o=+n>+r;const l=o?(0,i.startOfWeek)(r,t):(0,i.startOfWeek)(n,t),c=o?(0,i.startOfWeek)(n,t):(0,i.startOfWeek)(r,t);l.setHours(15),c.setHours(15);const u=+c.getTime();let d=l,p=t?.step??1;if(!p)return[];p<0&&(p=-p,o=!o);const h=[];for(;+d<=u;)d.setHours(0),h.push((0,a.toDate)(d)),d=(0,s.addWeeks)(d,p),d.setHours(15);return o?h.reverse():h};var s=n(4481),i=n(36128),a=n(34032)},50015:(e,t,n)=>{"use strict";t.eachWeekendOfInterval=function(e){const t=(0,s.eachDayOfInterval)(e),n=[];let a=0;for(;a<t.length;){const e=t[a++];(0,i.isWeekend)(e)&&n.push(e)}return n};var s=n(33872),i=n(52764)},45998:(e,t,n)=>{"use strict";t.eachWeekendOfMonth=function(e){const t=(0,a.startOfMonth)(e),n=(0,i.endOfMonth)(e);return(0,s.eachWeekendOfInterval)({start:t,end:n})};var s=n(50015),i=n(51411),a=n(39852)},76939:(e,t,n)=>{"use strict";t.eachWeekendOfYear=function(e){const t=(0,a.startOfYear)(e),n=(0,i.endOfYear)(e);return(0,s.eachWeekendOfInterval)({start:t,end:n})};var s=n(50015),i=n(4820),a=n(14745)},85261:(e,t,n)=>{"use strict";t.eachYearOfInterval=function(e,t){const n=(0,s.toDate)(e.start),i=(0,s.toDate)(e.end);let a=+n>+i;const r=a?+n:+i,o=a?i:n;o.setHours(0,0,0,0),o.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,a=!a);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setFullYear(o.getFullYear()+l);return a?c.reverse():c};var s=n(34032)},75327:(e,t,n)=>{"use strict";t.endOfDay=function(e){const t=(0,s.toDate)(e);return t.setHours(23,59,59,999),t};var s=n(34032)},20449:(e,t,n)=>{"use strict";t.endOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return t.setFullYear(i,11,31),t.setHours(23,59,59,999),t};var s=n(34032)},72335:(e,t,n)=>{"use strict";t.endOfHour=function(e){const t=(0,s.toDate)(e);return t.setMinutes(59,59,999),t};var s=n(34032)},84792:(e,t,n)=>{"use strict";t.endOfISOWeek=function(e){return(0,s.endOfWeek)(e,{weekStartsOn:1})};var s=n(98577)},20873:(e,t,n)=>{"use strict";t.endOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,a.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const r=(0,i.startOfISOWeek)(n);return r.setMilliseconds(r.getMilliseconds()-1),r};var s=n(6253),i=n(20419),a=n(81516)},21193:(e,t,n)=>{"use strict";t.endOfMinute=function(e){const t=(0,s.toDate)(e);return t.setSeconds(59,999),t};var s=n(34032)},51411:(e,t,n)=>{"use strict";t.endOfMonth=function(e){const t=(0,s.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var s=n(34032)},67285:(e,t,n)=>{"use strict";t.endOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t};var s=n(34032)},31001:(e,t,n)=>{"use strict";t.endOfSecond=function(e){const t=(0,s.toDate)(e);return t.setMilliseconds(999),t};var s=n(34032)},4344:(e,t,n)=>{"use strict";t.endOfToday=function(){return(0,s.endOfDay)(Date.now())};var s=n(75327)},93938:(e,t)=>{"use strict";t.endOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),i=new Date(0);return i.setFullYear(t,n,s+1),i.setHours(23,59,59,999),i}},98577:(e,t,n)=>{"use strict";t.endOfWeek=function(e,t){const n=(0,i.getDefaultOptions)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=6+(o<a?-7:0)-(o-a);return r.setDate(r.getDate()+l),r.setHours(23,59,59,999),r};var s=n(34032),i=n(20445)},4820:(e,t,n)=>{"use strict";t.endOfYear=function(e){const t=(0,s.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var s=n(34032)},48333:(e,t)=>{"use strict";t.endOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),i=new Date(0);return i.setFullYear(t,n,s-1),i.setHours(23,59,59,999),i}},81002:(e,t,n)=>{"use strict";t.format=t.formatDate=function(e,t,n){const p=(0,i.getDefaultOptions)(),h=n?.locale??p.locale??s.defaultLocale,g=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,b=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,v=(0,c.toDate)(e);if(!(0,l.isValid)(v))throw new RangeError("Invalid time value");let y=t.match(d).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,r.longFormatters[t])(e,h.formatLong):e})).join("").match(u).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:f(e)};if(a.formatters[t])return{isToken:!0,value:e};if(t.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));h.localize.preprocessor&&(y=h.localize.preprocessor(v,y));const x={firstWeekContainsDate:g,weekStartsOn:b,locale:h};return y.map((s=>{if(!s.isToken)return s.value;const i=s.value;return(!n?.useAdditionalWeekYearTokens&&(0,o.isProtectedWeekYearToken)(i)||!n?.useAdditionalDayOfYearTokens&&(0,o.isProtectedDayOfYearToken)(i))&&(0,o.warnOrThrowProtectedError)(i,t,String(e)),(0,a.formatters[i[0]])(v,i,h.localize,x)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return a.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return r.longFormatters}});var s=n(79057),i=n(20445),a=n(81889),r=n(85879),o=n(47602),l=n(89111),c=n(34032);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,m=/[a-zA-Z]/;function f(e){const t=e.match(p);return t?t[1].replace(h,"'"):e}},35990:(e,t,n)=>{"use strict";t.formatDistance=function(e,t,n){const d=(0,c.getDefaultOptions)(),p=n?.locale??d.locale??l.defaultLocale,h=(0,s.compareAsc)(e,t);if(isNaN(h))throw new RangeError("Invalid time value");const m=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h});let f,g;h>0?(f=(0,o.toDate)(t),g=(0,o.toDate)(e)):(f=(0,o.toDate)(e),g=(0,o.toDate)(t));const b=(0,r.differenceInSeconds)(g,f),v=((0,u.getTimezoneOffsetInMilliseconds)(g)-(0,u.getTimezoneOffsetInMilliseconds)(f))/1e3,y=Math.round((b-v)/60);let x;if(y<2)return n?.includeSeconds?b<5?p.formatDistance("lessThanXSeconds",5,m):b<10?p.formatDistance("lessThanXSeconds",10,m):b<20?p.formatDistance("lessThanXSeconds",20,m):b<40?p.formatDistance("halfAMinute",0,m):b<60?p.formatDistance("lessThanXMinutes",1,m):p.formatDistance("xMinutes",1,m):0===y?p.formatDistance("lessThanXMinutes",1,m):p.formatDistance("xMinutes",y,m);if(y<45)return p.formatDistance("xMinutes",y,m);if(y<90)return p.formatDistance("aboutXHours",1,m);if(y<i.minutesInDay){const e=Math.round(y/60);return p.formatDistance("aboutXHours",e,m)}if(y<2520)return p.formatDistance("xDays",1,m);if(y<i.minutesInMonth){const e=Math.round(y/i.minutesInDay);return p.formatDistance("xDays",e,m)}if(y<2*i.minutesInMonth)return x=Math.round(y/i.minutesInMonth),p.formatDistance("aboutXMonths",x,m);if(x=(0,a.differenceInMonths)(g,f),x<12){const e=Math.round(y/i.minutesInMonth);return p.formatDistance("xMonths",e,m)}{const e=x%12,t=Math.trunc(x/12);return e<3?p.formatDistance("aboutXYears",t,m):e<9?p.formatDistance("overXYears",t,m):p.formatDistance("almostXYears",t+1,m)}};var s=n(84393),i=n(69992),a=n(20654),r=n(46276),o=n(34032),l=n(79057),c=n(20445),u=n(62535)},10380:(e,t,n)=>{"use strict";t.formatDistanceStrict=function(e,t,n){const u=(0,i.getDefaultOptions)(),d=n?.locale??u.locale??s.defaultLocale,p=(0,o.compareAsc)(e,t);if(isNaN(p))throw new RangeError("Invalid time value");const h=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:p});let m,f;p>0?(m=(0,c.toDate)(t),f=(0,c.toDate)(e)):(m=(0,c.toDate)(e),f=(0,c.toDate)(t));const g=(0,a.getRoundingMethod)(n?.roundingMethod??"round"),b=f.getTime()-m.getTime(),v=b/l.millisecondsInMinute,y=(b-((0,r.getTimezoneOffsetInMilliseconds)(f)-(0,r.getTimezoneOffsetInMilliseconds)(m)))/l.millisecondsInMinute,x=n?.unit;let _;if(_=x||(v<1?"second":v<60?"minute":v<l.minutesInDay?"hour":y<l.minutesInMonth?"day":y<l.minutesInYear?"month":"year"),"second"===_){const e=g(b/1e3);return d.formatDistance("xSeconds",e,h)}if("minute"===_){const e=g(v);return d.formatDistance("xMinutes",e,h)}if("hour"===_){const e=g(v/60);return d.formatDistance("xHours",e,h)}if("day"===_){const e=g(y/l.minutesInDay);return d.formatDistance("xDays",e,h)}if("month"===_){const e=g(y/l.minutesInMonth);return 12===e&&"month"!==x?d.formatDistance("xYears",1,h):d.formatDistance("xMonths",e,h)}{const e=g(y/l.minutesInYear);return d.formatDistance("xYears",e,h)}};var s=n(79057),i=n(20445),a=n(72071),r=n(62535),o=n(84393),l=n(69992),c=n(34032)},13582:(e,t,n)=>{"use strict";t.formatDistanceToNow=function(e,t){return(0,i.formatDistance)(e,(0,s.constructNow)(e),t)};var s=n(57270),i=n(35990)},91043:(e,t,n)=>{"use strict";t.formatDistanceToNowStrict=function(e,t){return(0,s.formatDistanceStrict)(e,(0,i.constructNow)(e),t)};var s=n(10380),i=n(57270)},31010:(e,t,n)=>{"use strict";t.formatDuration=function(e,t){const n=(0,i.getDefaultOptions)(),r=t?.locale??n.locale??s.defaultLocale,o=t?.format??a,l=t?.zero??!1,c=t?.delimiter??" ";return r.formatDistance?o.reduce(((t,n)=>{const s=`x${n.replace(/(^.)/,(e=>e.toUpperCase()))}`,i=e[n];return void 0!==i&&(l||e[n])?t.concat(r.formatDistance(s,i)):t}),[]).join(c):""};var s=n(79057),i=n(20445);const a=["years","months","weeks","days","hours","minutes","seconds"]},68269:(e,t,n)=>{"use strict";t.formatISO=function(e,t){const n=(0,s.toDate)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const a=t?.format??"extended",r=t?.representation??"complete";let o="",l="";const c="extended"===a?"-":"",u="extended"===a?":":"";if("time"!==r){const e=(0,i.addLeadingZeros)(n.getDate(),2),t=(0,i.addLeadingZeros)(n.getMonth()+1,2);o=`${(0,i.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}if("date"!==r){const e=n.getTimezoneOffset();if(0!==e){const t=Math.abs(e);l=`${e<0?"+":"-"}${(0,i.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,i.addLeadingZeros)(t%60,2)}`}else l="Z";o=`${o}${""===o?"":"T"}${[(0,i.addLeadingZeros)(n.getHours(),2),(0,i.addLeadingZeros)(n.getMinutes(),2),(0,i.addLeadingZeros)(n.getSeconds(),2)].join(u)}${l}`}return o};var s=n(34032),i=n(91396)},44152:(e,t,n)=>{"use strict";t.formatISO9075=function(e,t){const n=(0,i.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const r=t?.format??"extended",o=t?.representation??"complete";let l="";const c="extended"===r?"-":"",u="extended"===r?":":"";if("time"!==o){const e=(0,a.addLeadingZeros)(n.getDate(),2),t=(0,a.addLeadingZeros)(n.getMonth()+1,2);l=`${(0,a.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}return"date"!==o&&(l=`${l}${""===l?"":" "}${(0,a.addLeadingZeros)(n.getHours(),2)}${u}${(0,a.addLeadingZeros)(n.getMinutes(),2)}${u}${(0,a.addLeadingZeros)(n.getSeconds(),2)}`),l};var s=n(89111),i=n(34032),a=n(91396)},69193:(e,t)=>{"use strict";t.formatISODuration=function(e){const{years:t=0,months:n=0,days:s=0,hours:i=0,minutes:a=0,seconds:r=0}=e;return`P${t}Y${n}M${s}DT${i}H${a}M${r}S`}},98215:(e,t,n)=>{"use strict";t.formatRFC3339=function(e,t){const n=(0,i.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const r=t?.fractionDigits??0,o=(0,a.addLeadingZeros)(n.getDate(),2),l=(0,a.addLeadingZeros)(n.getMonth()+1,2),c=n.getFullYear(),u=(0,a.addLeadingZeros)(n.getHours(),2),d=(0,a.addLeadingZeros)(n.getMinutes(),2),p=(0,a.addLeadingZeros)(n.getSeconds(),2);let h="";if(r>0){const e=n.getMilliseconds(),t=Math.trunc(e*Math.pow(10,r-3));h="."+(0,a.addLeadingZeros)(t,r)}let m="";const f=n.getTimezoneOffset();if(0!==f){const e=Math.abs(f);m=`${f<0?"+":"-"}${(0,a.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,a.addLeadingZeros)(e%60,2)}`}else m="Z";return`${c}-${l}-${o}T${u}:${d}:${p}${h}${m}`};var s=n(89111),i=n(34032),a=n(91396)},4628:(e,t,n)=>{"use strict";t.formatRFC7231=function(e){const t=(0,i.toDate)(e);if(!(0,s.isValid)(t))throw new RangeError("Invalid time value");return`${r[t.getUTCDay()]}, ${(0,a.addLeadingZeros)(t.getUTCDate(),2)} ${o[t.getUTCMonth()]} ${t.getUTCFullYear()} ${(0,a.addLeadingZeros)(t.getUTCHours(),2)}:${(0,a.addLeadingZeros)(t.getUTCMinutes(),2)}:${(0,a.addLeadingZeros)(t.getUTCSeconds(),2)} GMT`};var s=n(89111),i=n(34032),a=n(91396);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},53666:(e,t,n)=>{"use strict";t.formatRelative=function(e,t,n){const l=(0,a.toDate)(e),c=(0,a.toDate)(t),u=(0,o.getDefaultOptions)(),d=n?.locale??u.locale??r.defaultLocale,p=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,h=(0,s.differenceInCalendarDays)(l,c);if(isNaN(h))throw new RangeError("Invalid time value");let m;m=h<-6?"other":h<-1?"lastWeek":h<0?"yesterday":h<1?"today":h<2?"tomorrow":h<7?"nextWeek":"other";const f=d.formatRelative(m,l,c,{locale:d,weekStartsOn:p});return(0,i.format)(l,f,{locale:d,weekStartsOn:p})};var s=n(88676),i=n(81002),a=n(34032),r=n(79057),o=n(20445)},64278:(e,t,n)=>{"use strict";t.fromUnixTime=function(e){return(0,s.toDate)(1e3*e)};var s=n(34032)},22901:(e,t,n)=>{"use strict";t.getDate=function(e){return(0,s.toDate)(e).getDate()};var s=n(34032)},4195:(e,t,n)=>{"use strict";t.getDay=function(e){return(0,s.toDate)(e).getDay()};var s=n(34032)},627:(e,t,n)=>{"use strict";t.getDayOfYear=function(e){const t=(0,a.toDate)(e);return(0,s.differenceInCalendarDays)(t,(0,i.startOfYear)(t))+1};var s=n(88676),i=n(14745),a=n(34032)},46087:(e,t,n)=>{"use strict";t.getDaysInMonth=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),a=t.getMonth(),r=(0,i.constructFrom)(e,0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()};var s=n(34032),i=n(81516)},39208:(e,t,n)=>{"use strict";t.getDaysInYear=function(e){const t=(0,i.toDate)(e);return"Invalid Date"===String(new Date(t))?NaN:(0,s.isLeapYear)(t)?366:365};var s=n(43674),i=n(34032)},79893:(e,t,n)=>{"use strict";t.getDecade=function(e){const t=(0,s.toDate)(e).getFullYear();return 10*Math.floor(t/10)};var s=n(34032)},63348:(e,t,n)=>{"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,s.getDefaultOptions)())};var s=n(20445)},22918:(e,t,n)=>{"use strict";t.getHours=function(e){return(0,s.toDate)(e).getHours()};var s=n(34032)},19272:(e,t,n)=>{"use strict";t.getISODay=function(e){let t=(0,s.toDate)(e).getDay();return 0===t&&(t=7),t};var s=n(34032)},29332:(e,t,n)=>{"use strict";t.getISOWeek=function(e){const t=(0,r.toDate)(e),n=+(0,i.startOfISOWeek)(t)-+(0,a.startOfISOWeekYear)(t);return Math.round(n/s.millisecondsInWeek)+1};var s=n(69992),i=n(20419),a=n(91046),r=n(34032)},6253:(e,t,n)=>{"use strict";t.getISOWeekYear=function(e){const t=(0,a.toDate)(e),n=t.getFullYear(),r=(0,s.constructFrom)(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=(0,i.startOfISOWeek)(r),l=(0,s.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=(0,i.startOfISOWeek)(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var s=n(81516),i=n(20419),a=n(34032)},73785:(e,t,n)=>{"use strict";t.getISOWeeksInYear=function(e){const t=(0,a.startOfISOWeekYear)(e),n=+(0,a.startOfISOWeekYear)((0,s.addWeeks)(t,60))-+t;return Math.round(n/i.millisecondsInWeek)};var s=n(4481),i=n(69992),a=n(91046)},14191:(e,t,n)=>{"use strict";t.getMilliseconds=function(e){return(0,s.toDate)(e).getMilliseconds()};var s=n(34032)},26688:(e,t,n)=>{"use strict";t.getMinutes=function(e){return(0,s.toDate)(e).getMinutes()};var s=n(34032)},98511:(e,t,n)=>{"use strict";t.getMonth=function(e){return(0,s.toDate)(e).getMonth()};var s=n(34032)},76002:(e,t,n)=>{"use strict";t.getOverlappingDaysInIntervals=function(e,t){const[n,r]=[+(0,a.toDate)(e.start),+(0,a.toDate)(e.end)].sort(((e,t)=>e-t)),[o,l]=[+(0,a.toDate)(t.start),+(0,a.toDate)(t.end)].sort(((e,t)=>e-t));if(!(n<l&&o<r))return 0;const c=o<n?n:o,u=c-(0,s.getTimezoneOffsetInMilliseconds)(c),d=l>r?r:l,p=d-(0,s.getTimezoneOffsetInMilliseconds)(d);return Math.ceil((p-u)/i.millisecondsInDay)};var s=n(62535),i=n(69992),a=n(34032)},921:(e,t,n)=>{"use strict";t.getQuarter=function(e){const t=(0,s.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var s=n(34032)},86392:(e,t,n)=>{"use strict";t.getSeconds=function(e){return(0,s.toDate)(e).getSeconds()};var s=n(34032)},77116:(e,t,n)=>{"use strict";t.getTime=function(e){return(0,s.toDate)(e).getTime()};var s=n(34032)},66790:(e,t,n)=>{"use strict";t.getUnixTime=function(e){return Math.trunc(+(0,s.toDate)(e)/1e3)};var s=n(34032)},63613:(e,t,n)=>{"use strict";t.getWeek=function(e,t){const n=(0,r.toDate)(e),o=+(0,i.startOfWeek)(n,t)-+(0,a.startOfWeekYear)(n,t);return Math.round(o/s.millisecondsInWeek)+1};var s=n(69992),i=n(36128),a=n(34241),r=n(34032)},69428:(e,t,n)=>{"use strict";t.getWeekOfMonth=function(e,t){const n=(0,r.getDefaultOptions)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=(0,s.getDate)(e);if(isNaN(l))return NaN;let c=o-(0,i.getDay)((0,a.startOfMonth)(e));c<=0&&(c+=7);const u=l-c;return Math.ceil(u/7)+1};var s=n(22901),i=n(4195),a=n(39852),r=n(20445)},9804:(e,t,n)=>{"use strict";t.getWeekYear=function(e,t){const n=(0,a.toDate)(e),o=n.getFullYear(),l=(0,r.getDefaultOptions)(),c=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,u=(0,s.constructFrom)(e,0);u.setFullYear(o+1,0,c),u.setHours(0,0,0,0);const d=(0,i.startOfWeek)(u,t),p=(0,s.constructFrom)(e,0);p.setFullYear(o,0,c),p.setHours(0,0,0,0);const h=(0,i.startOfWeek)(p,t);return n.getTime()>=d.getTime()?o+1:n.getTime()>=h.getTime()?o:o-1};var s=n(81516),i=n(36128),a=n(34032),r=n(20445)},41593:(e,t,n)=>{"use strict";t.getWeeksInMonth=function(e,t){return(0,s.differenceInCalendarWeeks)((0,i.lastDayOfMonth)(e),(0,a.startOfMonth)(e),t)+1};var s=n(2930),i=n(80286),a=n(39852)},97328:(e,t,n)=>{"use strict";t.getYear=function(e){return(0,s.toDate)(e).getFullYear()};var s=n(34032)},90681:(e,t,n)=>{"use strict";t.hoursToMilliseconds=function(e){return Math.trunc(e*s.millisecondsInHour)};var s=n(69992)},64714:(e,t,n)=>{"use strict";t.hoursToMinutes=function(e){return Math.trunc(e*s.minutesInHour)};var s=n(69992)},11174:(e,t,n)=>{"use strict";t.hoursToSeconds=function(e){return Math.trunc(e*s.secondsInHour)};var s=n(69992)},21057:(e,t,n)=>{"use strict";var s=n(82586);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var i=n(38583);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var a=n(27761);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var r=n(83359);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(21839);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=n(40276);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(44461);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(55353);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(88823);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=n(2577);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=n(4481);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(60274);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var f=n(10794);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var g=n(30418);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var b=n(2069);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var v=n(26703);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var y=n(84393);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var x=n(96267);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var _=n(81516);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var S=n(57270);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var w=n(90670);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var k=n(66384);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var j=n(88676);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))}));var T=n(87546);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}}))}));var C=n(7905);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var D=n(8);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}}))}));var P=n(13450);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var O=n(2930);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var I=n(12701);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var M=n(94210);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))}));var L=n(97618);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}}))}));var A=n(32100);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var E=n(29963);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}));var R=n(45092);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var U=n(20654);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))}));var N=n(36587);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}}))}));var F=n(46276);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var Y=n(17116);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))}));var H=n(18835);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var B=n(33872);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var V=n(39646);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))}));var $=n(90044);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var W=n(31880);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))}));var z=n(19674);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var q=n(80932);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var G=n(50015);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))}));var K=n(45998);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}));var X=n(76939);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var Q=n(85261);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var J=n(75327);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))}));var Z=n(20449);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var ee=n(72335);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=n(84792);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var ne=n(20873);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var se=n(21193);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return se[e]}}))}));var ie=n(51411);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}));var ae=n(67285);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ae[e]}}))}));var re=n(31001);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var oe=n(4344);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var le=n(93938);Object.keys(le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return le[e]}}))}));var ce=n(98577);Object.keys(ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))}));var ue=n(4820);Object.keys(ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ue[e]}}))}));var de=n(48333);Object.keys(de).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return de[e]}}))}));var pe=n(81002);Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}}))}));var he=n(35990);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(10380);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var fe=n(13582);Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));var ge=n(91043);Object.keys(ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ge[e]}}))}));var be=n(31010);Object.keys(be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return be[e]}}))}));var ve=n(68269);Object.keys(ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ve[e]}}))}));var ye=n(44152);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var xe=n(69193);Object.keys(xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xe[e]}}))}));var _e=n(98215);Object.keys(_e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _e[e]}}))}));var Se=n(4628);Object.keys(Se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Se[e]}}))}));var we=n(53666);Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}}))}));var ke=n(64278);Object.keys(ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}}))}));var je=n(22901);Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}}))}));var Te=n(4195);Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}}))}));var Ce=n(627);Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}}))}));var De=n(46087);Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}}))}));var Pe=n(39208);Object.keys(Pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pe[e]}}))}));var Oe=n(79893);Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}}))}));var Ie=n(63348);Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}}))}));var Me=n(22918);Object.keys(Me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}}))}));var Le=n(19272);Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}}))}));var Ae=n(29332);Object.keys(Ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ae[e]}}))}));var Ee=n(6253);Object.keys(Ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ee[e]}}))}));var Re=n(73785);Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}}))}));var Ue=n(14191);Object.keys(Ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ue[e]}}))}));var Ne=n(26688);Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}}))}));var Fe=n(98511);Object.keys(Fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fe[e]}}))}));var Ye=n(76002);Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}}))}));var He=n(921);Object.keys(He).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return He[e]}}))}));var Be=n(86392);Object.keys(Be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Be[e]}}))}));var Ve=n(77116);Object.keys(Ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}}))}));var $e=n(66790);Object.keys($e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $e[e]}}))}));var We=n(63613);Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}}))}));var ze=n(69428);Object.keys(ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ze[e]}}))}));var qe=n(9804);Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}}))}));var Ge=n(41593);Object.keys(Ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ge[e]}}))}));var Ke=n(97328);Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}}))}));var Xe=n(90681);Object.keys(Xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xe[e]}}))}));var Qe=n(64714);Object.keys(Qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qe[e]}}))}));var Je=n(11174);Object.keys(Je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Je[e]}}))}));var Ze=n(34860);Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}}))}));var et=n(17625);Object.keys(et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return et[e]}}))}));var tt=n(72093);Object.keys(tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tt[e]}}))}));var nt=n(3578);Object.keys(nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nt[e]}}))}));var st=n(65171);Object.keys(st).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===st[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return st[e]}}))}));var it=n(68330);Object.keys(it).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===it[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return it[e]}}))}));var at=n(76253);Object.keys(at).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===at[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return at[e]}}))}));var rt=n(86925);Object.keys(rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rt[e]}}))}));var ot=n(86041);Object.keys(ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ot[e]}}))}));var lt=n(78048);Object.keys(lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lt[e]}}))}));var ct=n(19302);Object.keys(ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ct[e]}}))}));var ut=n(45702);Object.keys(ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ut[e]}}))}));var dt=n(82082);Object.keys(dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dt[e]}}))}));var pt=n(43674);Object.keys(pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pt[e]}}))}));var ht=n(69220);Object.keys(ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ht[e]}}))}));var mt=n(31937);Object.keys(mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mt[e]}}))}));var ft=n(12161);Object.keys(ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ft[e]}}))}));var gt=n(17933);Object.keys(gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gt[e]}}))}));var bt=n(92801);Object.keys(bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bt[e]}}))}));var vt=n(29046);Object.keys(vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vt[e]}}))}));var yt=n(45755);Object.keys(yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yt[e]}}))}));var xt=n(4111);Object.keys(xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xt[e]}}))}));var _t=n(65137);Object.keys(_t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _t[e]}}))}));var St=n(90795);Object.keys(St).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===St[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return St[e]}}))}));var wt=n(72451);Object.keys(wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wt[e]}}))}));var kt=n(4363);Object.keys(kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kt[e]}}))}));var jt=n(81322);Object.keys(jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jt[e]}}))}));var Tt=n(84398);Object.keys(Tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tt[e]}}))}));var Ct=n(39957);Object.keys(Ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ct[e]}}))}));var Dt=n(45243);Object.keys(Dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dt[e]}}))}));var Pt=n(48108);Object.keys(Pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pt[e]}}))}));var Ot=n(87229);Object.keys(Ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ot[e]}}))}));var It=n(22231);Object.keys(It).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===It[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return It[e]}}))}));var Mt=n(60609);Object.keys(Mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mt[e]}}))}));var Lt=n(53589);Object.keys(Lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Lt[e]}}))}));var At=n(72389);Object.keys(At).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===At[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return At[e]}}))}));var Et=n(6104);Object.keys(Et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Et[e]}}))}));var Rt=n(26943);Object.keys(Rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rt[e]}}))}));var Ut=n(21236);Object.keys(Ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ut[e]}}))}));var Nt=n(16062);Object.keys(Nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nt[e]}}))}));var Ft=n(24758);Object.keys(Ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ft[e]}}))}));var Yt=n(89111);Object.keys(Yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yt[e]}}))}));var Ht=n(3221);Object.keys(Ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ht[e]}}))}));var Bt=n(52764);Object.keys(Bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bt[e]}}))}));var Vt=n(63727);Object.keys(Vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vt[e]}}))}));var $t=n(90705);Object.keys($t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $t[e]}}))}));var Wt=n(30322);Object.keys(Wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wt[e]}}))}));var zt=n(36109);Object.keys(zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zt[e]}}))}));var qt=n(82748);Object.keys(qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qt[e]}}))}));var Gt=n(80286);Object.keys(Gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gt[e]}}))}));var Kt=n(31684);Object.keys(Kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kt[e]}}))}));var Xt=n(84774);Object.keys(Xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xt[e]}}))}));var Qt=n(11067);Object.keys(Qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qt[e]}}))}));var Jt=n(56982);Object.keys(Jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jt[e]}}))}));var Zt=n(56171);Object.keys(Zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zt[e]}}))}));var en=n(63443);Object.keys(en).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===en[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return en[e]}}))}));var tn=n(61587);Object.keys(tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tn[e]}}))}));var nn=n(41817);Object.keys(nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nn[e]}}))}));var sn=n(50773);Object.keys(sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sn[e]}}))}));var an=n(82377);Object.keys(an).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===an[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return an[e]}}))}));var rn=n(64146);Object.keys(rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rn[e]}}))}));var on=n(61099);Object.keys(on).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===on[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return on[e]}}))}));var ln=n(25156);Object.keys(ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ln[e]}}))}));var cn=n(70418);Object.keys(cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cn[e]}}))}));var un=n(17733);Object.keys(un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return un[e]}}))}));var dn=n(25240);Object.keys(dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dn[e]}}))}));var pn=n(23427);Object.keys(pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pn[e]}}))}));var hn=n(95128);Object.keys(hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hn[e]}}))}));var mn=n(20279);Object.keys(mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mn[e]}}))}));var fn=n(18520);Object.keys(fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fn[e]}}))}));var gn=n(95346);Object.keys(gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gn[e]}}))}));var bn=n(24693);Object.keys(bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bn[e]}}))}));var vn=n(1034);Object.keys(vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vn[e]}}))}));var yn=n(75798);Object.keys(yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yn[e]}}))}));var xn=n(4793);Object.keys(xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xn[e]}}))}));var _n=n(62328);Object.keys(_n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _n[e]}}))}));var Sn=n(67480);Object.keys(Sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sn[e]}}))}));var wn=n(38883);Object.keys(wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wn[e]}}))}));var kn=n(92504);Object.keys(kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kn[e]}}))}));var jn=n(12631);Object.keys(jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jn[e]}}))}));var Tn=n(94360);Object.keys(Tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tn[e]}}))}));var Cn=n(74130);Object.keys(Cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cn[e]}}))}));var Dn=n(56565);Object.keys(Dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dn[e]}}))}));var Pn=n(17834);Object.keys(Pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pn[e]}}))}));var On=n(54850);Object.keys(On).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===On[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return On[e]}}))}));var In=n(23335);Object.keys(In).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===In[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return In[e]}}))}));var Mn=n(76981);Object.keys(Mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mn[e]}}))}));var Ln=n(29271);Object.keys(Ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ln[e]}}))}));var An=n(3906);Object.keys(An).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===An[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return An[e]}}))}));var En=n(2683);Object.keys(En).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===En[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return En[e]}}))}));var Rn=n(628);Object.keys(Rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rn[e]}}))}));var Un=n(75245);Object.keys(Un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Un[e]}}))}));var Nn=n(91697);Object.keys(Nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nn[e]}}))}));var Fn=n(40964);Object.keys(Fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fn[e]}}))}));var Yn=n(52063);Object.keys(Yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yn[e]}}))}));var Hn=n(81288);Object.keys(Hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Hn[e]}}))}));var Bn=n(34386);Object.keys(Bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bn[e]}}))}));var Vn=n(2892);Object.keys(Vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vn[e]}}))}));var $n=n(7472);Object.keys($n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $n[e]}}))}));var Wn=n(93169);Object.keys(Wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wn[e]}}))}));var zn=n(65931);Object.keys(zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zn[e]}}))}));var qn=n(28772);Object.keys(qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qn[e]}}))}));var Gn=n(41819);Object.keys(Gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gn[e]}}))}));var Kn=n(80093);Object.keys(Kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kn[e]}}))}));var Xn=n(80356);Object.keys(Xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xn[e]}}))}));var Qn=n(10233);Object.keys(Qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qn[e]}}))}));var Jn=n(9504);Object.keys(Jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jn[e]}}))}));var Zn=n(46908);Object.keys(Zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zn[e]}}))}));var es=n(71228);Object.keys(es).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===es[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return es[e]}}))}));var ts=n(96376);Object.keys(ts).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ts[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ts[e]}}))}));var ns=n(15694);Object.keys(ns).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ns[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ns[e]}}))}));var ss=n(20419);Object.keys(ss).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ss[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ss[e]}}))}));var is=n(91046);Object.keys(is).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===is[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return is[e]}}))}));var as=n(99800);Object.keys(as).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===as[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return as[e]}}))}));var rs=n(39852);Object.keys(rs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rs[e]}}))}));var os=n(80066);Object.keys(os).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===os[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return os[e]}}))}));var ls=n(42e3);Object.keys(ls).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ls[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ls[e]}}))}));var cs=n(24643);Object.keys(cs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cs[e]}}))}));var us=n(58667);Object.keys(us).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===us[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return us[e]}}))}));var ds=n(36128);Object.keys(ds).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ds[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ds[e]}}))}));var ps=n(34241);Object.keys(ps).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ps[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ps[e]}}))}));var hs=n(14745);Object.keys(hs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hs[e]}}))}));var ms=n(8458);Object.keys(ms).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ms[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ms[e]}}))}));var fs=n(58831);Object.keys(fs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fs[e]}}))}));var gs=n(90106);Object.keys(gs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gs[e]}}))}));var bs=n(37608);Object.keys(bs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bs[e]}}))}));var vs=n(76724);Object.keys(vs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vs[e]}}))}));var ys=n(34830);Object.keys(ys).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ys[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ys[e]}}))}));var xs=n(8857);Object.keys(xs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xs[e]}}))}));var _s=n(12170);Object.keys(_s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _s[e]}}))}));var Ss=n(85380);Object.keys(Ss).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ss[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ss[e]}}))}));var ws=n(18590);Object.keys(ws).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ws[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ws[e]}}))}));var ks=n(74982);Object.keys(ks).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ks[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ks[e]}}))}));var js=n(25278);Object.keys(js).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===js[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return js[e]}}))}));var Ts=n(857);Object.keys(Ts).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ts[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ts[e]}}))}));var Cs=n(34032);Object.keys(Cs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cs[e]}}))}));var Ds=n(61306);Object.keys(Ds).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ds[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ds[e]}}))}));var Ps=n(49914);Object.keys(Ps).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ps[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ps[e]}}))}));var Os=n(94429);Object.keys(Os).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Os[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Os[e]}}))}));var Is=n(69181);Object.keys(Is).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Is[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Is[e]}}))}));var Ms=n(8627);Object.keys(Ms).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ms[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ms[e]}}))}))},34860:(e,t,n)=>{"use strict";t.interval=function(e,t,n){const i=(0,s.toDate)(e);if(isNaN(+i))throw new TypeError("Start date is invalid");const a=(0,s.toDate)(t);if(isNaN(+a))throw new TypeError("End date is invalid");if(n?.assertPositive&&+i>+a)throw new TypeError("End date must be after start date");return{start:i,end:a}};var s=n(34032)},17625:(e,t,n)=>{"use strict";t.intervalToDuration=function(e){const t=(0,u.toDate)(e.start),n=(0,u.toDate)(e.end),d={},p=(0,c.differenceInYears)(n,t);p&&(d.years=p);const h=(0,s.add)(t,{years:d.years}),m=(0,o.differenceInMonths)(n,h);m&&(d.months=m);const f=(0,s.add)(h,{months:d.months}),g=(0,i.differenceInDays)(n,f);g&&(d.days=g);const b=(0,s.add)(f,{days:d.days}),v=(0,a.differenceInHours)(n,b);v&&(d.hours=v);const y=(0,s.add)(b,{hours:d.hours}),x=(0,r.differenceInMinutes)(n,y);x&&(d.minutes=x);const _=(0,s.add)(y,{minutes:d.minutes}),S=(0,l.differenceInSeconds)(n,_);return S&&(d.seconds=S),d};var s=n(82586),i=n(94210),a=n(97618),r=n(45092),o=n(20654),l=n(46276),c=n(18835),u=n(34032)},72093:(e,t,n)=>{"use strict";t.intlFormat=function(e,t,n){let i;var a;return void 0===(a=t)||"locale"in a?n=t:i=t,new Intl.DateTimeFormat(n?.locale,i).format((0,s.toDate)(e))};var s=n(34032)},3578:(e,t,n)=>{"use strict";t.intlFormatDistance=function(e,t,n){let h,m=0;const f=(0,p.toDate)(e),g=(0,p.toDate)(t);if(n?.unit)h=n?.unit,"second"===h?m=(0,d.differenceInSeconds)(f,g):"minute"===h?m=(0,u.differenceInMinutes)(f,g):"hour"===h?m=(0,c.differenceInHours)(f,g):"day"===h?m=(0,i.differenceInCalendarDays)(f,g):"week"===h?m=(0,o.differenceInCalendarWeeks)(f,g):"month"===h?m=(0,a.differenceInCalendarMonths)(f,g):"quarter"===h?m=(0,r.differenceInCalendarQuarters)(f,g):"year"===h&&(m=(0,l.differenceInCalendarYears)(f,g));else{const e=(0,d.differenceInSeconds)(f,g);Math.abs(e)<s.secondsInMinute?(m=(0,d.differenceInSeconds)(f,g),h="second"):Math.abs(e)<s.secondsInHour?(m=(0,u.differenceInMinutes)(f,g),h="minute"):Math.abs(e)<s.secondsInDay&&Math.abs((0,i.differenceInCalendarDays)(f,g))<1?(m=(0,c.differenceInHours)(f,g),h="hour"):Math.abs(e)<s.secondsInWeek&&(m=(0,i.differenceInCalendarDays)(f,g))&&Math.abs(m)<7?h="day":Math.abs(e)<s.secondsInMonth?(m=(0,o.differenceInCalendarWeeks)(f,g),h="week"):Math.abs(e)<s.secondsInQuarter?(m=(0,a.differenceInCalendarMonths)(f,g),h="month"):Math.abs(e)<s.secondsInYear&&(0,r.differenceInCalendarQuarters)(f,g)<4?(m=(0,r.differenceInCalendarQuarters)(f,g),h="quarter"):(m=(0,l.differenceInCalendarYears)(f,g),h="year")}return new Intl.RelativeTimeFormat(n?.locale,{localeMatcher:n?.localeMatcher,numeric:n?.numeric||"auto",style:n?.style}).format(m,h)};var s=n(69992),i=n(88676),a=n(8),r=n(13450),o=n(2930),l=n(12701),c=n(97618),u=n(45092),d=n(46276),p=n(34032)},65171:(e,t,n)=>{"use strict";t.isAfter=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t);return n.getTime()>i.getTime()};var s=n(34032)},68330:(e,t,n)=>{"use strict";t.isBefore=function(e,t){return+(0,s.toDate)(e)<+(0,s.toDate)(t)};var s=n(34032)},76253:(e,t)=>{"use strict";t.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},86925:(e,t,n)=>{"use strict";t.isEqual=function(e,t){return+(0,s.toDate)(e)==+(0,s.toDate)(t)};var s=n(34032)},86041:(e,t)=>{"use strict";t.isExists=function(e,t,n){const s=new Date(e,t,n);return s.getFullYear()===e&&s.getMonth()===t&&s.getDate()===n}},78048:(e,t,n)=>{"use strict";t.isFirstDayOfMonth=function(e){return 1===(0,s.toDate)(e).getDate()};var s=n(34032)},19302:(e,t,n)=>{"use strict";t.isFriday=function(e){return 5===(0,s.toDate)(e).getDay()};var s=n(34032)},45702:(e,t,n)=>{"use strict";t.isFuture=function(e){return+(0,s.toDate)(e)>Date.now()};var s=n(34032)},82082:(e,t,n)=>{"use strict";t.isLastDayOfMonth=function(e){const t=(0,a.toDate)(e);return+(0,s.endOfDay)(t)==+(0,i.endOfMonth)(t)};var s=n(75327),i=n(51411),a=n(34032)},43674:(e,t,n)=>{"use strict";t.isLeapYear=function(e){const t=(0,s.toDate)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0};var s=n(34032)},69220:(e,t,n)=>{"use strict";t.isMatch=function(e,t,n){return(0,s.isValid)((0,i.parse)(e,t,new Date,n))};var s=n(89111),i=n(75798)},31937:(e,t,n)=>{"use strict";t.isMonday=function(e){return 1===(0,s.toDate)(e).getDay()};var s=n(34032)},12161:(e,t,n)=>{"use strict";t.isPast=function(e){return+(0,s.toDate)(e)<Date.now()};var s=n(34032)},17933:(e,t,n)=>{"use strict";t.isSameDay=function(e,t){return+(0,s.startOfDay)(e)==+(0,s.startOfDay)(t)};var s=n(71228)},92801:(e,t,n)=>{"use strict";t.isSameHour=function(e,t){return+(0,s.startOfHour)(e)==+(0,s.startOfHour)(t)};var s=n(15694)},29046:(e,t,n)=>{"use strict";t.isSameISOWeek=function(e,t){return(0,s.isSameWeek)(e,t,{weekStartsOn:1})};var s=n(4363)},45755:(e,t,n)=>{"use strict";t.isSameISOWeekYear=function(e,t){return+(0,s.startOfISOWeekYear)(e)==+(0,s.startOfISOWeekYear)(t)};var s=n(91046)},4111:(e,t,n)=>{"use strict";t.isSameMinute=function(e,t){return+(0,s.startOfMinute)(e)==+(0,s.startOfMinute)(t)};var s=n(99800)},65137:(e,t,n)=>{"use strict";t.isSameMonth=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()};var s=n(34032)},90795:(e,t,n)=>{"use strict";t.isSameQuarter=function(e,t){return+(0,s.startOfQuarter)(e)==+(0,s.startOfQuarter)(t)};var s=n(80066)},72451:(e,t,n)=>{"use strict";t.isSameSecond=function(e,t){return+(0,s.startOfSecond)(e)==+(0,s.startOfSecond)(t)};var s=n(42e3)},4363:(e,t,n)=>{"use strict";t.isSameWeek=function(e,t,n){return+(0,s.startOfWeek)(e,n)==+(0,s.startOfWeek)(t,n)};var s=n(36128)},81322:(e,t,n)=>{"use strict";t.isSameYear=function(e,t){const n=(0,s.toDate)(e),i=(0,s.toDate)(t);return n.getFullYear()===i.getFullYear()};var s=n(34032)},84398:(e,t,n)=>{"use strict";t.isSaturday=function(e){return 6===(0,s.toDate)(e).getDay()};var s=n(34032)},39957:(e,t,n)=>{"use strict";t.isSunday=function(e){return 0===(0,s.toDate)(e).getDay()};var s=n(34032)},45243:(e,t,n)=>{"use strict";t.isThisHour=function(e){return(0,i.isSameHour)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(92801)},48108:(e,t,n)=>{"use strict";t.isThisISOWeek=function(e){return(0,i.isSameISOWeek)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(29046)},87229:(e,t,n)=>{"use strict";t.isThisMinute=function(e){return(0,i.isSameMinute)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(4111)},22231:(e,t,n)=>{"use strict";t.isThisMonth=function(e){return(0,i.isSameMonth)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(65137)},60609:(e,t,n)=>{"use strict";t.isThisQuarter=function(e){return(0,i.isSameQuarter)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(90795)},53589:(e,t,n)=>{"use strict";t.isThisSecond=function(e){return(0,i.isSameSecond)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(72451)},72389:(e,t,n)=>{"use strict";t.isThisWeek=function(e,t){return(0,i.isSameWeek)(e,(0,s.constructNow)(e),t)};var s=n(57270),i=n(4363)},6104:(e,t,n)=>{"use strict";t.isThisYear=function(e){return(0,i.isSameYear)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(81322)},26943:(e,t,n)=>{"use strict";t.isThursday=function(e){return 4===(0,s.toDate)(e).getDay()};var s=n(34032)},21236:(e,t,n)=>{"use strict";t.isToday=function(e){return(0,i.isSameDay)(e,(0,s.constructNow)(e))};var s=n(57270),i=n(17933)},16062:(e,t,n)=>{"use strict";t.isTomorrow=function(e){return(0,a.isSameDay)(e,(0,s.addDays)((0,i.constructNow)(e),1))};var s=n(27761),i=n(57270),a=n(17933)},24758:(e,t,n)=>{"use strict";t.isTuesday=function(e){return 2===(0,s.toDate)(e).getDay()};var s=n(34032)},89111:(e,t,n)=>{"use strict";t.isValid=function(e){if(!(0,s.isDate)(e)&&"number"!=typeof e)return!1;const t=(0,i.toDate)(e);return!isNaN(Number(t))};var s=n(76253),i=n(34032)},3221:(e,t,n)=>{"use strict";t.isWednesday=function(e){return 3===(0,s.toDate)(e).getDay()};var s=n(34032)},52764:(e,t,n)=>{"use strict";t.isWeekend=function(e){const t=(0,s.toDate)(e).getDay();return 0===t||6===t};var s=n(34032)},63727:(e,t,n)=>{"use strict";t.isWithinInterval=function(e,t){const n=+(0,s.toDate)(e),[i,a]=[+(0,s.toDate)(t.start),+(0,s.toDate)(t.end)].sort(((e,t)=>e-t));return n>=i&&n<=a};var s=n(34032)},90705:(e,t,n)=>{"use strict";t.isYesterday=function(e){return(0,i.isSameDay)(e,(0,a.subDays)((0,s.constructNow)(e),1))};var s=n(57270),i=n(17933),a=n(37608)},30322:(e,t,n)=>{"use strict";t.lastDayOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),i=9+10*Math.floor(n/10);return t.setFullYear(i+1,0,0),t.setHours(0,0,0,0),t};var s=n(34032)},36109:(e,t,n)=>{"use strict";t.lastDayOfISOWeek=function(e){return(0,s.lastDayOfWeek)(e,{weekStartsOn:1})};var s=n(84774)},82748:(e,t,n)=>{"use strict";t.lastDayOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,a.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const r=(0,i.startOfISOWeek)(n);return r.setDate(r.getDate()-1),r};var s=n(6253),i=n(20419),a=n(81516)},80286:(e,t,n)=>{"use strict";t.lastDayOfMonth=function(e){const t=(0,s.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t};var s=n(34032)},31684:(e,t,n)=>{"use strict";t.lastDayOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),i=n-n%3+3;return t.setMonth(i,0),t.setHours(0,0,0,0),t};var s=n(34032)},84774:(e,t,n)=>{"use strict";t.lastDayOfWeek=function(e,t){const n=(0,i.getDefaultOptions)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=6+(o<a?-7:0)-(o-a);return r.setHours(0,0,0,0),r.setDate(r.getDate()+l),r};var s=n(34032),i=n(20445)},11067:(e,t,n)=>{"use strict";t.lastDayOfYear=function(e){const t=(0,s.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t};var s=n(34032)},56982:(e,t,n)=>{"use strict";t.lightFormat=function(e,t){const n=(0,i.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const u=t.match(r);return u?u.map((e=>{if("''"===e)return"'";const t=e[0];if("'"===t)return function(e){const t=e.match(o);return t?t[1].replace(l,"'"):e}(e);const s=a.lightFormatters[t];if(s)return s(n,e);if(t.match(c))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join(""):""},Object.defineProperty(t,"lightFormatters",{enumerable:!0,get:function(){return a.lightFormatters}});var s=n(89111),i=n(34032),a=n(7019);const r=/(\w)\1*|''|'(''|[^'])+('|$)|./g,o=/^'([^]*?)'?$/,l=/''/g,c=/[a-zA-Z]/},804:(e,t)=>{"use strict";t.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},75426:(e,t)=>{"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let s;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;s=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;s=e.values[i]||e.values[t]}return s[e.argumentCallback?e.argumentCallback(t):t]}}},14568:(e,t)=>{"use strict";t.buildMatchFn=function(e){return(t,n={})=>{const s=n.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const r=a[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(r))return t}(o):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(r))return t}(o);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(r.length)}}}},64072:(e,t)=>{"use strict";t.buildMatchPatternFn=function(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const i=s[0],a=t.match(e.parsePattern);if(!a)return null;let r=e.valueCallback?e.valueCallback(a[0]):a[0];return r=n.valueCallback?n.valueCallback(r):r,{value:r,rest:t.slice(i.length)}}}},34134:(e,t,n)=>{"use strict";t.enUS=void 0;var s=n(50696),i=n(87153),a=n(67511),r=n(35415),o=n(7711);t.enUS={code:"en-US",formatDistance:s.formatDistance,formatLong:i.formatLong,formatRelative:a.formatRelative,localize:r.localize,match:o.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},50696:(e,t)=>{"use strict";t.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};t.formatDistance=(e,t,s)=>{let i;const a=n[e];return i="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+i:i+" ago":i}},87153:(e,t,n)=>{"use strict";t.formatLong=void 0;var s=n(804);t.formatLong={date:(0,s.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,s.buildFormatLongFn)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,s.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},67511:(e,t)=>{"use strict";t.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.formatRelative=(e,t,s,i)=>n[e]},35415:(e,t,n)=>{"use strict";t.localize=void 0;var s=n(75426);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.buildLocalizeFn)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,s.buildLocalizeFn)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,s.buildLocalizeFn)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,s.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},7711:(e,t,n)=>{"use strict";t.match=void 0;var s=n(14568),i=n(64072);t.match={ordinalNumber:(0,i.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,s.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},56171:(e,t,n)=>{"use strict";t.max=function(e){let t;return e.forEach((function(e){const n=(0,s.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)};var s=n(34032)},63443:(e,t,n)=>{"use strict";t.milliseconds=function({years:e,months:t,weeks:n,days:i,hours:a,minutes:r,seconds:o}){let l=0;e&&(l+=e*s.daysInYear),t&&(l+=t*(s.daysInYear/12)),n&&(l+=7*n),i&&(l+=i);let c=24*l*60*60;return a&&(c+=60*a*60),r&&(c+=60*r),o&&(c+=o),Math.trunc(1e3*c)};var s=n(69992)},61587:(e,t,n)=>{"use strict";t.millisecondsToHours=function(e){const t=e/s.millisecondsInHour;return Math.trunc(t)};var s=n(69992)},41817:(e,t,n)=>{"use strict";t.millisecondsToMinutes=function(e){const t=e/s.millisecondsInMinute;return Math.trunc(t)};var s=n(69992)},50773:(e,t,n)=>{"use strict";t.millisecondsToSeconds=function(e){const t=e/s.millisecondsInSecond;return Math.trunc(t)};var s=n(69992)},82377:(e,t,n)=>{"use strict";t.min=function(e){let t;return e.forEach((e=>{const n=(0,s.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)};var s=n(34032)},64146:(e,t,n)=>{"use strict";t.minutesToHours=function(e){const t=e/s.minutesInHour;return Math.trunc(t)};var s=n(69992)},61099:(e,t,n)=>{"use strict";t.minutesToMilliseconds=function(e){return Math.trunc(e*s.millisecondsInMinute)};var s=n(69992)},25156:(e,t,n)=>{"use strict";t.minutesToSeconds=function(e){return Math.trunc(e*s.secondsInMinute)};var s=n(69992)},70418:(e,t,n)=>{"use strict";t.monthsToQuarters=function(e){const t=e/s.monthsInQuarter;return Math.trunc(t)};var s=n(69992)},17733:(e,t,n)=>{"use strict";t.monthsToYears=function(e){const t=e/s.monthsInYear;return Math.trunc(t)};var s=n(69992)},25240:(e,t,n)=>{"use strict";t.nextDay=function(e,t){let n=t-(0,i.getDay)(e);return n<=0&&(n+=7),(0,s.addDays)(e,n)};var s=n(27761),i=n(4195)},23427:(e,t,n)=>{"use strict";t.nextFriday=function(e){return(0,s.nextDay)(e,5)};var s=n(25240)},95128:(e,t,n)=>{"use strict";t.nextMonday=function(e){return(0,s.nextDay)(e,1)};var s=n(25240)},20279:(e,t,n)=>{"use strict";t.nextSaturday=function(e){return(0,s.nextDay)(e,6)};var s=n(25240)},18520:(e,t,n)=>{"use strict";t.nextSunday=function(e){return(0,s.nextDay)(e,0)};var s=n(25240)},95346:(e,t,n)=>{"use strict";t.nextThursday=function(e){return(0,s.nextDay)(e,4)};var s=n(25240)},24693:(e,t,n)=>{"use strict";t.nextTuesday=function(e){return(0,s.nextDay)(e,2)};var s=n(25240)},1034:(e,t,n)=>{"use strict";t.nextWednesday=function(e){return(0,s.nextDay)(e,3)};var s=n(25240)},75798:(e,t,n)=>{"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return o.longFormatters}}),t.parse=function(e,t,n,b){const v=(0,i.getDefaultOptions)(),y=b?.locale??v.locale??a.defaultLocale,x=b?.firstWeekContainsDate??b?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,_=b?.weekStartsOn??b?.locale?.options?.weekStartsOn??v.weekStartsOn??v.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.toDate)(n):(0,s.constructFrom)(n,NaN);const S={firstWeekContainsDate:x,weekStartsOn:_,locale:y},w=[new u.DateToSystemTimezoneSetter],k=t.match(p).map((e=>{const t=e[0];return t in o.longFormatters?(0,o.longFormatters[t])(e,y.formatLong):e})).join("").match(d),j=[];for(let i of k){!b?.useAdditionalWeekYearTokens&&(0,l.isProtectedWeekYearToken)(i)&&(0,l.warnOrThrowProtectedError)(i,t,e),!b?.useAdditionalDayOfYearTokens&&(0,l.isProtectedDayOfYearToken)(i)&&(0,l.warnOrThrowProtectedError)(i,t,e);const a=i[0],r=c.parsers[a];if(r){const{incompatibleTokens:t}=r;if(Array.isArray(t)){const e=j.find((e=>t.includes(e.token)||e.token===a));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${i}\` at the same time`)}else if("*"===r.incompatibleTokens&&j.length>0)throw new RangeError(`The format string mustn't contain \`${i}\` and any other token at the same time`);j.push({token:a,fullToken:i});const o=r.run(e,i,y.match,S);if(!o)return(0,s.constructFrom)(n,NaN);w.push(o.setter),e=o.rest}else{if(a.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===i?i="'":"'"===a&&(i=i.match(h)[1].replace(m,"'")),0!==e.indexOf(i))return(0,s.constructFrom)(n,NaN);e=e.slice(i.length)}}if(e.length>0&&f.test(e))return(0,s.constructFrom)(n,NaN);const T=w.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>w.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let C=(0,r.toDate)(n);if(isNaN(C.getTime()))return(0,s.constructFrom)(n,NaN);const D={};for(const e of T){if(!e.validate(C,S))return(0,s.constructFrom)(n,NaN);const t=e.set(C,D,S);Array.isArray(t)?(C=t[0],Object.assign(D,t[1])):C=t}return(0,s.constructFrom)(n,C)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return c.parsers}});var s=n(81516),i=n(63348),a=n(79057),r=n(34032),o=n(85879),l=n(47602),c=n(71122),u=n(60095);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,m=/''/g,f=/\S/,g=/[a-zA-Z]/},56167:(e,t,n)=>{"use strict";t.Parser=void 0;var s=n(60095);t.Parser=class{run(e,t,n,i){const a=this.parse(e,t,n,i);return a?{setter:new s.ValueSetter(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}}},60095:(e,t,n)=>{"use strict";t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var s=n(61306),i=n(81516);class a{subPriority=0;validate(e,t){return!0}}t.Setter=a,t.ValueSetter=class extends a{constructor(e,t,n,s,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=s,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},t.DateToSystemTimezoneSetter=class extends a{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,i.constructFrom)(e,(0,s.transpose)(e,Date))}}},18583:(e,t)=>{"use strict";t.timezonePatterns=t.numericPatterns=void 0,t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},71122:(e,t,n)=>{"use strict";t.parsers=void 0;var s=n(3048),i=n(45647),a=n(33476),r=n(42010),o=n(8614),l=n(50382),c=n(17211),u=n(17e3),d=n(51505),p=n(10977),h=n(85563),m=n(38250),f=n(25652),g=n(31116),b=n(76833),v=n(15402),y=n(58015),x=n(67507),_=n(35687),S=n(94697),w=n(88549),k=n(63322),j=n(45803),T=n(5068),C=n(15610),D=n(28458),P=n(85521),O=n(24782),I=n(50984),M=n(78959),L=n(85680);t.parsers={G:new s.EraParser,y:new i.YearParser,Y:new a.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new o.ExtendedYearParser,Q:new l.QuarterParser,q:new c.StandAloneQuarterParser,M:new u.MonthParser,L:new d.StandAloneMonthParser,w:new p.LocalWeekParser,I:new h.ISOWeekParser,d:new m.DateParser,D:new f.DayOfYearParser,E:new g.DayParser,e:new b.LocalDayParser,c:new v.StandAloneLocalDayParser,i:new y.ISODayParser,a:new x.AMPMParser,b:new _.AMPMMidnightParser,B:new S.DayPeriodParser,h:new w.Hour1to12Parser,H:new k.Hour0to23Parser,K:new j.Hour0To11Parser,k:new T.Hour1To24Parser,m:new C.MinuteParser,s:new D.SecondParser,S:new P.FractionOfSecondParser,X:new O.ISOTimezoneWithZParser,x:new I.ISOTimezoneParser,t:new M.TimestampSecondsParser,T:new L.TimestampMillisecondsParser}},35687:(e,t,n)=>{"use strict";t.AMPMMidnightParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,i.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}t.AMPMMidnightParser=a},67507:(e,t,n)=>{"use strict";t.AMPMParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,i.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}t.AMPMParser=a},38250:(e,t,n)=>{"use strict";t.DateParser=void 0;var s=n(18583),i=n(56167),a=n(24871);const r=[31,28,31,30,31,30,31,31,30,31,30,31],o=[31,29,31,30,31,30,31,31,30,31,30,31];class l extends i.Parser{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return(0,a.parseNumericPattern)(s.numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear(),s=(0,a.isLeapYearIndex)(n),i=e.getMonth();return s?t>=1&&t<=o[i]:t>=1&&t<=r[i]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}t.DateParser=l},25652:(e,t,n)=>{"use strict";t.DayOfYearParser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return(0,a.parseNumericPattern)(s.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear();return(0,a.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}t.DayOfYearParser=r},31116:(e,t,n)=>{"use strict";t.DayParser=void 0;var s=n(40964),i=n(56167);class a extends i.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=(0,s.setDay)(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}t.DayParser=a},94697:(e,t,n)=>{"use strict";t.DayPeriodParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,i.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}t.DayPeriodParser=a},3048:(e,t,n)=>{"use strict";t.EraParser=void 0;var s=n(56167);class i extends s.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}t.EraParser=i},8614:(e,t,n)=>{"use strict";t.ExtendedYearParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=130;parse(e,t){return"u"===t?(0,i.parseNDigitsSigned)(4,e):(0,i.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}t.ExtendedYearParser=a},85521:(e,t,n)=>{"use strict";t.FractionOfSecondParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=30;parse(e,t){return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}t.FractionOfSecondParser=a},45803:(e,t,n)=>{"use strict";t.Hour0To11Parser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=70;parse(e,t,n){switch(t){case"K":return(0,a.parseNumericPattern)(s.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}t.Hour0To11Parser=r},63322:(e,t,n)=>{"use strict";t.Hour0to23Parser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=70;parse(e,t,n){switch(t){case"H":return(0,a.parseNumericPattern)(s.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}t.Hour0to23Parser=r},5068:(e,t,n)=>{"use strict";t.Hour1To24Parser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=70;parse(e,t,n){switch(t){case"k":return(0,a.parseNumericPattern)(s.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const s=n<=24?n%24:n;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}t.Hour1To24Parser=r},88549:(e,t,n)=>{"use strict";t.Hour1to12Parser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=70;parse(e,t,n){switch(t){case"h":return(0,a.parseNumericPattern)(s.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const s=e.getHours()>=12;return s&&n<12?e.setHours(n+12,0,0,0):s||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}t.Hour1to12Parser=r},58015:(e,t,n)=>{"use strict";t.ISODayParser=void 0;var s=n(2892),i=n(56167),a=n(24871);class r extends i.Parser{priority=90;parse(e,t,n){const s=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,a.parseNDigits)(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return(0,a.mapValue)(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return(0,a.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return(0,a.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s);default:return(0,a.mapValue)(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,s.setISODay)(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}t.ISODayParser=r},50984:(e,t,n)=>{"use strict";t.ISOTimezoneParser=void 0;var s=n(81516),i=n(62535),a=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,o.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,o.parseTimezonePattern)(a.timezonePatterns.basic,e);case"xxxx":return(0,o.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,o.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,o.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,s.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","X"]}t.ISOTimezoneParser=l},24782:(e,t,n)=>{"use strict";t.ISOTimezoneWithZParser=void 0;var s=n(81516),i=n(62535),a=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,o.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,o.parseTimezonePattern)(a.timezonePatterns.basic,e);case"XXXX":return(0,o.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,o.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,o.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,s.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","x"]}t.ISOTimezoneWithZParser=l},85563:(e,t,n)=>{"use strict";t.ISOWeekParser=void 0;var s=n(7472),i=n(20419),a=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=100;parse(e,t,n){switch(t){case"I":return(0,o.parseNumericPattern)(a.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,i.startOfISOWeek)((0,s.setISOWeek)(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekParser=l},42010:(e,t,n)=>{"use strict";t.ISOWeekYearParser=void 0;var s=n(20419),i=n(81516),a=n(56167),r=n(24871);class o extends a.Parser{priority=130;parse(e,t){return"R"===t?(0,r.parseNDigitsSigned)(4,e):(0,r.parseNDigitsSigned)(t.length,e)}set(e,t,n){const a=(0,i.constructFrom)(e,0);return a.setFullYear(n,0,4),a.setHours(0,0,0,0),(0,s.startOfISOWeek)(a)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekYearParser=o},76833:(e,t,n)=>{"use strict";t.LocalDayParser=void 0;var s=n(40964),i=n(56167),a=n(24871);class r extends i.Parser{priority=90;parse(e,t,n,s){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+s.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),i);case"eo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=(0,s.setDay)(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}t.LocalDayParser=r},10977:(e,t,n)=>{"use strict";t.LocalWeekParser=void 0;var s=n(10233),i=n(36128),a=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=100;parse(e,t,n){switch(t){case"w":return(0,o.parseNumericPattern)(a.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,a){return(0,i.startOfWeek)((0,s.setWeek)(e,n,a),a)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}t.LocalWeekParser=l},33476:(e,t,n)=>{"use strict";t.LocalWeekYearParser=void 0;var s=n(9804),i=n(36128),a=n(56167),r=n(24871);class o extends a.Parser{priority=130;parse(e,t,n){const s=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,e),s);case"Yo":return(0,r.mapValue)(n.ordinalNumber(e,{unit:"year"}),s);default:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,a){const o=(0,s.getWeekYear)(e,a);if(n.isTwoDigitYear){const t=(0,r.normalizeTwoDigitYear)(n.year,o);return e.setFullYear(t,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),(0,i.startOfWeek)(e,a)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,a.firstWeekContainsDate),e.setHours(0,0,0,0),(0,i.startOfWeek)(e,a)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}t.LocalWeekYearParser=o},15610:(e,t,n)=>{"use strict";t.MinuteParser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=60;parse(e,t,n){switch(t){case"m":return(0,a.parseNumericPattern)(s.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}t.MinuteParser=r},17e3:(e,t,n)=>{"use strict";t.MonthParser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const i=e=>e-1;switch(t){case"M":return(0,a.mapValue)((0,a.parseNumericPattern)(s.numericPatterns.month,e),i);case"MM":return(0,a.mapValue)((0,a.parseNDigits)(2,e),i);case"Mo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=r},50382:(e,t,n)=>{"use strict";t.QuarterParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return(0,i.parseNDigits)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}t.QuarterParser=a},28458:(e,t,n)=>{"use strict";t.SecondParser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=50;parse(e,t,n){switch(t){case"s":return(0,a.parseNumericPattern)(s.numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return(0,a.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}t.SecondParser=r},15402:(e,t,n)=>{"use strict";t.StandAloneLocalDayParser=void 0;var s=n(40964),i=n(56167),a=n(24871);class r extends i.Parser{priority=90;parse(e,t,n,s){const i=e=>{const t=7*Math.floor((e-1)/7);return(e+s.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),i);case"co":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),i);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return(e=(0,s.setDay)(e,n,i)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}t.StandAloneLocalDayParser=r},51505:(e,t,n)=>{"use strict";t.StandAloneMonthParser=void 0;var s=n(18583),i=n(56167),a=n(24871);class r extends i.Parser{priority=110;parse(e,t,n){const i=e=>e-1;switch(t){case"L":return(0,a.mapValue)((0,a.parseNumericPattern)(s.numericPatterns.month,e),i);case"LL":return(0,a.mapValue)((0,a.parseNDigits)(2,e),i);case"Lo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}t.StandAloneMonthParser=r},17211:(e,t,n)=>{"use strict";t.StandAloneQuarterParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return(0,i.parseNDigits)(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}t.StandAloneQuarterParser=a},85680:(e,t,n)=>{"use strict";t.TimestampMillisecondsParser=void 0;var s=n(81516),i=n(56167),a=n(24871);class r extends i.Parser{priority=20;parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,s.constructFrom)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampMillisecondsParser=r},78959:(e,t,n)=>{"use strict";t.TimestampSecondsParser=void 0;var s=n(81516),i=n(56167),a=n(24871);class r extends i.Parser{priority=40;parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,s.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampSecondsParser=r},45647:(e,t,n)=>{"use strict";t.YearParser=void 0;var s=n(56167),i=n(24871);class a extends s.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const s=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,i.mapValue)((0,i.parseNDigits)(4,e),s);case"yo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"year"}),s);default:return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const s=e.getFullYear();if(n.isTwoDigitYear){const t=(0,i.normalizeTwoDigitYear)(n.year,s);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const a="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}t.YearParser=a},24871:(e,t,n)=>{"use strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},t.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},t.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},t.normalizeTwoDigitYear=function(e,t){const n=t>0,s=n?t:1-t;let i;if(s<=50)i=e||100;else{const t=s+50;i=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?i:1-i},t.parseAnyDigitsSigned=function(e){return a(i.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return a(i.numericPatterns.singleDigit,t);case 2:return a(i.numericPatterns.twoDigits,t);case 3:return a(i.numericPatterns.threeDigits,t);case 4:return a(i.numericPatterns.fourDigits,t);default:return a(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return a(i.numericPatterns.singleDigitSigned,t);case 2:return a(i.numericPatterns.twoDigitsSigned,t);case 3:return a(i.numericPatterns.threeDigitsSigned,t);case 4:return a(i.numericPatterns.fourDigitsSigned,t);default:return a(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=a,t.parseTimezonePattern=function(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const i="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:i*(a*s.millisecondsInHour+r*s.millisecondsInMinute+o*s.millisecondsInSecond),rest:t.slice(n[0].length)}};var s=n(69992),i=n(18583);function a(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},4793:(e,t,n)=>{"use strict";t.parseISO=function(e,t){const n=t?.additionalDigits??2,p=function(e){const t={},n=e.split(i.dateTimeDelimiter);let s;if(n.length>2)return t;if(/:/.test(n[0])?s=n[0]:(t.date=n[0],s=n[1],i.timeZoneDelimiter.test(t.date)&&(t.date=e.split(i.timeZoneDelimiter)[0],s=e.substr(t.date.length,e.length))),s){const e=i.timezone.exec(s);e?(t.time=s.replace(e[1],""),t.timezone=e[1]):t.time=s}return t}(e);let h;if(p.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=e.match(n);if(!s)return{year:NaN,restDateString:""};const i=s[1]?parseInt(s[1]):null,a=s[2]?parseInt(s[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((s[1]||s[2]).length)}}(p.date,n);h=function(e,t){if(null===t)return new Date(NaN);const n=e.match(a);if(!n)return new Date(NaN);const s=!!n[4],i=l(n[1]),r=l(n[2])-1,o=l(n[3]),c=l(n[4]),p=l(n[5])-1;if(s)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,p)?function(e,t,n){const s=new Date(0);s.setUTCFullYear(e,0,4);const i=7*(t-1)+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+i),s}(t,c,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(u[t]||(d(e)?29:28))}(t,r,o)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,i)?(e.setUTCFullYear(t,r,Math.max(i,o)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!h||isNaN(h.getTime()))return new Date(NaN);const m=h.getTime();let f,g=0;if(p.time&&(g=function(e){const t=e.match(r);if(!t)return NaN;const n=c(t[1]),i=c(t[2]),a=c(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,a)?n*s.millisecondsInHour+i*s.millisecondsInMinute+1e3*a:NaN}(p.time),isNaN(g)))return new Date(NaN);if(!p.timezone){const e=new Date(m+g),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return f=function(e){if("Z"===e)return 0;const t=e.match(o);if(!t)return 0;const n="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,a)?n*(i*s.millisecondsInHour+a*s.millisecondsInMinute):NaN}(p.timezone),isNaN(f)?new Date(NaN):new Date(m+g+f)};var s=n(69992);const i={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},a=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,r=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=0}},62328:(e,t)=>{"use strict";t.parseJSON=function(e){const t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}},67480:(e,t,n)=>{"use strict";t.previousDay=function(e,t){let n=(0,s.getDay)(e)-t;return n<=0&&(n+=7),(0,i.subDays)(e,n)};var s=n(4195),i=n(37608)},38883:(e,t,n)=>{"use strict";t.previousFriday=function(e){return(0,s.previousDay)(e,5)};var s=n(67480)},92504:(e,t,n)=>{"use strict";t.previousMonday=function(e){return(0,s.previousDay)(e,1)};var s=n(67480)},12631:(e,t,n)=>{"use strict";t.previousSaturday=function(e){return(0,s.previousDay)(e,6)};var s=n(67480)},94360:(e,t,n)=>{"use strict";t.previousSunday=function(e){return(0,s.previousDay)(e,0)};var s=n(67480)},74130:(e,t,n)=>{"use strict";t.previousThursday=function(e){return(0,s.previousDay)(e,4)};var s=n(67480)},56565:(e,t,n)=>{"use strict";t.previousTuesday=function(e){return(0,s.previousDay)(e,2)};var s=n(67480)},17834:(e,t,n)=>{"use strict";t.previousWednesday=function(e){return(0,s.previousDay)(e,3)};var s=n(67480)},54850:(e,t,n)=>{"use strict";t.quartersToMonths=function(e){return Math.trunc(e*s.monthsInQuarter)};var s=n(69992)},23335:(e,t,n)=>{"use strict";t.quartersToYears=function(e){const t=e/s.quartersInYear;return Math.trunc(t)};var s=n(69992)},76981:(e,t,n)=>{"use strict";t.roundToNearestHours=function(e,t){const n=t?.nearestTo??1;if(n<1||n>12)return(0,i.constructFrom)(e,NaN);const r=(0,a.toDate)(e),o=r.getMinutes()/60,l=r.getSeconds()/60/60,c=r.getMilliseconds()/1e3/60/60,u=r.getHours()+o+l+c,d=t?.roundingMethod??"round",p=(0,s.getRoundingMethod)(d)(u/n)*n,h=(0,i.constructFrom)(e,r);return h.setHours(p,0,0,0),h};var s=n(72071),i=n(81516),a=n(34032)},29271:(e,t,n)=>{"use strict";t.roundToNearestMinutes=function(e,t){const n=t?.nearestTo??1;if(n<1||n>30)return(0,i.constructFrom)(e,NaN);const r=(0,a.toDate)(e),o=r.getSeconds()/60,l=r.getMilliseconds()/1e3/60,c=r.getMinutes()+o+l,u=t?.roundingMethod??"round",d=(0,s.getRoundingMethod)(u)(c/n)*n,p=(0,i.constructFrom)(e,r);return p.setMinutes(d,0,0),p};var s=n(72071),i=n(81516),a=n(34032)},3906:(e,t,n)=>{"use strict";t.secondsToHours=function(e){const t=e/s.secondsInHour;return Math.trunc(t)};var s=n(69992)},2683:(e,t,n)=>{"use strict";t.secondsToMilliseconds=function(e){return e*s.millisecondsInSecond};var s=n(69992)},628:(e,t,n)=>{"use strict";t.secondsToMinutes=function(e){const t=e/s.secondsInMinute;return Math.trunc(t)};var s=n(69992)},75245:(e,t,n)=>{"use strict";t.set=function(e,t){let n=(0,a.toDate)(e);return isNaN(+n)?(0,s.constructFrom)(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,i.setMonth)(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)};var s=n(81516),i=n(41819),a=n(34032)},91697:(e,t,n)=>{"use strict";t.setDate=function(e,t){const n=(0,s.toDate)(e);return n.setDate(t),n};var s=n(34032)},40964:(e,t,n)=>{"use strict";t.setDay=function(e,t,n){const r=(0,a.getDefaultOptions)(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=(0,i.toDate)(e),c=l.getDay(),u=7-o,d=t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7;return(0,s.addDays)(l,d)};var s=n(27761),i=n(34032),a=n(20445)},52063:(e,t,n)=>{"use strict";t.setDayOfYear=function(e,t){const n=(0,s.toDate)(e);return n.setMonth(0),n.setDate(t),n};var s=n(34032)},81288:(e,t,n)=>{"use strict";t.setDefaultOptions=function(e){const t={},n=(0,s.getDefaultOptions)();for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);(0,s.setDefaultOptions)(t)};var s=n(20445)},34386:(e,t,n)=>{"use strict";t.setHours=function(e,t){const n=(0,s.toDate)(e);return n.setHours(t),n};var s=n(34032)},2892:(e,t,n)=>{"use strict";t.setISODay=function(e,t){const n=(0,a.toDate)(e),r=t-(0,i.getISODay)(n);return(0,s.addDays)(n,r)};var s=n(27761),i=n(19272),a=n(34032)},7472:(e,t,n)=>{"use strict";t.setISOWeek=function(e,t){const n=(0,i.toDate)(e),a=(0,s.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*a),n};var s=n(29332),i=n(34032)},93169:(e,t,n)=>{"use strict";t.setISOWeekYear=function(e,t){let n=(0,r.toDate)(e);const o=(0,i.differenceInCalendarDays)(n,(0,a.startOfISOWeekYear)(n)),l=(0,s.constructFrom)(e,0);return l.setFullYear(t,0,4),l.setHours(0,0,0,0),n=(0,a.startOfISOWeekYear)(l),n.setDate(n.getDate()+o),n};var s=n(81516),i=n(88676),a=n(91046),r=n(34032)},65931:(e,t,n)=>{"use strict";t.setMilliseconds=function(e,t){const n=(0,s.toDate)(e);return n.setMilliseconds(t),n};var s=n(34032)},28772:(e,t,n)=>{"use strict";t.setMinutes=function(e,t){const n=(0,s.toDate)(e);return n.setMinutes(t),n};var s=n(34032)},41819:(e,t,n)=>{"use strict";t.setMonth=function(e,t){const n=(0,a.toDate)(e),r=n.getFullYear(),o=n.getDate(),l=(0,s.constructFrom)(e,0);l.setFullYear(r,t,15),l.setHours(0,0,0,0);const c=(0,i.getDaysInMonth)(l);return n.setMonth(t,Math.min(o,c)),n};var s=n(81516),i=n(46087),a=n(34032)},80093:(e,t,n)=>{"use strict";t.setQuarter=function(e,t){const n=(0,i.toDate)(e),a=t-(Math.trunc(n.getMonth()/3)+1);return(0,s.setMonth)(n,n.getMonth()+3*a)};var s=n(41819),i=n(34032)},80356:(e,t,n)=>{"use strict";t.setSeconds=function(e,t){const n=(0,s.toDate)(e);return n.setSeconds(t),n};var s=n(34032)},10233:(e,t,n)=>{"use strict";t.setWeek=function(e,t,n){const a=(0,i.toDate)(e),r=(0,s.getWeek)(a,n)-t;return a.setDate(a.getDate()-7*r),a};var s=n(63613),i=n(34032)},9504:(e,t,n)=>{"use strict";t.setWeekYear=function(e,t,n){const l=(0,o.getDefaultOptions)(),c=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1;let u=(0,r.toDate)(e);const d=(0,i.differenceInCalendarDays)(u,(0,a.startOfWeekYear)(u,n)),p=(0,s.constructFrom)(e,0);return p.setFullYear(t,0,c),p.setHours(0,0,0,0),u=(0,a.startOfWeekYear)(p,n),u.setDate(u.getDate()+d),u};var s=n(81516),i=n(88676),a=n(34241),r=n(34032),o=n(20445)},46908:(e,t,n)=>{"use strict";t.setYear=function(e,t){const n=(0,i.toDate)(e);return isNaN(+n)?(0,s.constructFrom)(e,NaN):(n.setFullYear(t),n)};var s=n(81516),i=n(34032)},71228:(e,t,n)=>{"use strict";t.startOfDay=function(e){const t=(0,s.toDate)(e);return t.setHours(0,0,0,0),t};var s=n(34032)},96376:(e,t,n)=>{"use strict";t.startOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),i=10*Math.floor(n/10);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t};var s=n(34032)},15694:(e,t,n)=>{"use strict";t.startOfHour=function(e){const t=(0,s.toDate)(e);return t.setMinutes(0,0,0),t};var s=n(34032)},20419:(e,t,n)=>{"use strict";t.startOfISOWeek=function(e){return(0,s.startOfWeek)(e,{weekStartsOn:1})};var s=n(36128)},91046:(e,t,n)=>{"use strict";t.startOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,a.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,i.startOfISOWeek)(n)};var s=n(6253),i=n(20419),a=n(81516)},99800:(e,t,n)=>{"use strict";t.startOfMinute=function(e){const t=(0,s.toDate)(e);return t.setSeconds(0,0),t};var s=n(34032)},39852:(e,t,n)=>{"use strict";t.startOfMonth=function(e){const t=(0,s.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var s=n(34032)},80066:(e,t,n)=>{"use strict";t.startOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),i=n-n%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t};var s=n(34032)},42e3:(e,t,n)=>{"use strict";t.startOfSecond=function(e){const t=(0,s.toDate)(e);return t.setMilliseconds(0),t};var s=n(34032)},24643:(e,t,n)=>{"use strict";t.startOfToday=function(){return(0,s.startOfDay)(Date.now())};var s=n(71228)},58667:(e,t)=>{"use strict";t.startOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),i=new Date(0);return i.setFullYear(t,n,s+1),i.setHours(0,0,0,0),i}},36128:(e,t,n)=>{"use strict";t.startOfWeek=function(e,t){const n=(0,i.getDefaultOptions)(),a=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=(o<a?7:0)+o-a;return r.setDate(r.getDate()-l),r.setHours(0,0,0,0),r};var s=n(34032),i=n(20445)},34241:(e,t,n)=>{"use strict";t.startOfWeekYear=function(e,t){const n=(0,r.getDefaultOptions)(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=(0,i.getWeekYear)(e,t),c=(0,s.constructFrom)(e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),(0,a.startOfWeek)(c,t)};var s=n(81516),i=n(9804),a=n(36128),r=n(20445)},14745:(e,t,n)=>{"use strict";t.startOfYear=function(e){const t=(0,s.toDate)(e),n=(0,i.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var s=n(34032),i=n(81516)},8458:(e,t)=>{"use strict";t.startOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),i=new Date(0);return i.setFullYear(t,n,s-1),i.setHours(0,0,0,0),i}},58831:(e,t,n)=>{"use strict";t.sub=function(e,t){const{years:n=0,months:r=0,weeks:o=0,days:l=0,hours:c=0,minutes:u=0,seconds:d=0}=t,p=(0,i.subMonths)(e,r+12*n),h=(0,s.subDays)(p,l+7*o),m=1e3*(d+60*(u+60*c));return(0,a.constructFrom)(e,h.getTime()-m)};var s=n(37608),i=n(85380),a=n(81516)},90106:(e,t,n)=>{"use strict";t.subBusinessDays=function(e,t){return(0,s.addBusinessDays)(e,-t)};var s=n(38583)},37608:(e,t,n)=>{"use strict";t.subDays=function(e,t){return(0,s.addDays)(e,-t)};var s=n(27761)},76724:(e,t,n)=>{"use strict";t.subHours=function(e,t){return(0,s.addHours)(e,-t)};var s=n(83359)},34830:(e,t,n)=>{"use strict";t.subISOWeekYears=function(e,t){return(0,s.addISOWeekYears)(e,-t)};var s=n(21839)},8857:(e,t,n)=>{"use strict";t.subMilliseconds=function(e,t){return(0,s.addMilliseconds)(e,-t)};var s=n(40276)},12170:(e,t,n)=>{"use strict";t.subMinutes=function(e,t){return(0,s.addMinutes)(e,-t)};var s=n(44461)},85380:(e,t,n)=>{"use strict";t.subMonths=function(e,t){return(0,s.addMonths)(e,-t)};var s=n(55353)},18590:(e,t,n)=>{"use strict";t.subQuarters=function(e,t){return(0,s.addQuarters)(e,-t)};var s=n(88823)},74982:(e,t,n)=>{"use strict";t.subSeconds=function(e,t){return(0,s.addSeconds)(e,-t)};var s=n(2577)},25278:(e,t,n)=>{"use strict";t.subWeeks=function(e,t){return(0,s.addWeeks)(e,-t)};var s=n(4481)},857:(e,t,n)=>{"use strict";t.subYears=function(e,t){return(0,s.addYears)(e,-t)};var s=n(60274)},34032:(e,t)=>{"use strict";t.toDate=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}},61306:(e,t,n)=>{"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,s.constructFrom)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n};var s=n(81516)},49914:(e,t,n)=>{"use strict";t.weeksToDays=function(e){return Math.trunc(e*s.daysInWeek)};var s=n(69992)},94429:(e,t,n)=>{"use strict";t.yearsToDays=function(e){return Math.trunc(e*s.daysInYear)};var s=n(69992)},69181:(e,t,n)=>{"use strict";t.yearsToMonths=function(e){return Math.trunc(e*s.monthsInYear)};var s=n(69992)},8627:(e,t,n)=>{"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*s.quartersInYear)};var s=n(69992)},22551:(e,t,n)=>{"use strict";var s=n(96540),i=n(69982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function f(e,t,n,s,i,a,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=r}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new f(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new f(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new f(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new f(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new f(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new f(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,s){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0!==i.type:s||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,s){if(null==t||function(e,t,n,s){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!s&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,s))return!0;if(s)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,s)&&(n=null),s||null===i?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,s=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,v);g[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,v);g[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var R,U=Object.assign;function N(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function Y(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var s=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){s=e}e.call(t.prototype)}else{try{throw Error()}catch(e){s=e}e()}}catch(t){if(t&&s&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=s.stack.split("\n"),r=i.length-1,o=a.length-1;1<=r&&0<=o&&i[r]!==a[o];)o--;for(;1<=r&&0<=o;r--,o--)if(i[r]!==a[o]){if(1!==r||1!==o)do{if(r--,0>--o||i[r]!==a[o]){var l="\n"+i[r].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=r&&0<=o);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function H(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return Y(e.type,!1);case 11:return Y(e.type.render,!1);case 1:return Y(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case w:return"Fragment";case S:return"Portal";case j:return"Profiler";case k:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case D:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return B(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function $(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){s=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(e){s=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=W(e)?e.checked?"true":"false":e.value),(e=s)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,s=null!=t.checked?t.checked:t.defaultChecked;n=$(null!=t.value?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function J(e,t){Q(e,t);var n=$(t.value),s=t.type;if(null!=n)"number"===s?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===s||"reset"===s)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,$(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!("submit"!==s&&"reset"!==s||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+$(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(s&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:$(n)}}function ae(e,t){var n=$(t.value),s=$(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=s&&(e.defaultValue=""+s)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,s){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var s=0===n.indexOf("--"),i=fe(n,t[n],s);"float"===n&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var be=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,we=null,ke=null;function je(e){if(e=yi(e)){if("function"!=typeof Se)throw Error(a(280));var t=e.stateNode;t&&(t=_i(t),Se(e.stateNode,e.type,t))}}function Te(e){we?ke?ke.push(e):ke=[e]:we=e}function Ce(){if(we){var e=we,t=ke;if(ke=we=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function De(e,t){return e(t)}function Pe(){}var Oe=!1;function Ie(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return De(e,t,n)}finally{Oe=!1,(null!==we||null!==ke)&&(Pe(),Ce())}}function Me(e,t){var n=e.stateNode;if(null===n)return null;var s=_i(n);if(null===s)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(s=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!s;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Le=!1;if(u)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ue){Le=!1}function Ee(e,t,n,s,i,a,r,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,Ue=null,Ne=!1,Fe=null,Ye={onError:function(e){Re=!0,Ue=e}};function He(e,t,n,s,i,a,r,o,l){Re=!1,Ue=null,Ee.apply(Ye,arguments)}function Be(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function $e(e){if(Be(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(null===i)break;var r=i.alternate;if(null===r){if(null!==(s=i.return)){n=s;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return $e(i),e;if(r===s)return $e(i),t;r=r.sibling}throw Error(a(188))}if(n.return!==s.return)n=i,s=r;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,s=r;break}if(l===s){o=!0,s=i,n=r;break}l=l.sibling}if(!o){for(l=r.child;l;){if(l===n){o=!0,n=r,s=i;break}if(l===s){o=!0,s=r,n=i;break}l=l.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==s)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?ze(e):null}function ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ze(e);if(null!==t)return t;e=e.sibling}return null}var qe=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ke=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Qe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,st=i.unstable_IdlePriority,it=null,at=null,rt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var s=0,i=e.suspendedLanes,a=e.pingedLanes,r=268435455&n;if(0!==r){var o=r&~i;0!==o?s=dt(o):0!=(a&=r)&&(s=dt(a))}else 0!=(r=n&~i)?s=dt(r):0!==a&&(s=dt(a));if(0===s)return 0;if(0!==t&&t!==s&&!(t&i)&&((i=s&-s)>=(a=t&-t)||16===i&&4194240&a))return t;if(4&s&&(s|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=s;0<t;)i=1<<(n=31-rt(t)),s|=e[n],t&=~i;return s}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-rt(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,St,wt,kt,jt,Tt=!1,Ct=[],Dt=null,Pt=null,Ot=null,It=new Map,Mt=new Map,Lt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Et(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mt.delete(t.pointerId)}}function Rt(e,t,n,s,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=yi(t))&&St(t),e):(e.eventSystemFlags|=s,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ut(e){var t=vi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void jt(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=yi(n))&&St(t),e.blockedOn=n,!1;var s=new(n=e.nativeEvent).constructor(n.type,n);xe=s,n.target.dispatchEvent(s),xe=null,t.shift()}return!0}function Ft(e,t,n){Nt(e)&&n.delete(t)}function Yt(){Tt=!1,null!==Dt&&Nt(Dt)&&(Dt=null),null!==Pt&&Nt(Pt)&&(Pt=null),null!==Ot&&Nt(Ot)&&(Ot=null),It.forEach(Ft),Mt.forEach(Ft)}function Ht(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Yt)))}function Bt(e){function t(t){return Ht(t,e)}if(0<Ct.length){Ht(Ct[0],e);for(var n=1;n<Ct.length;n++){var s=Ct[n];s.blockedOn===e&&(s.blockedOn=null)}}for(null!==Dt&&Ht(Dt,e),null!==Pt&&Ht(Pt,e),null!==Ot&&Ht(Ot,e),It.forEach(t),Mt.forEach(t),n=0;n<Lt.length;n++)(s=Lt[n]).blockedOn===e&&(s.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Ut(n),null===n.blockedOn&&Lt.shift()}var Vt=x.ReactCurrentBatchConfig,$t=!0;function Wt(e,t,n,s){var i=yt,a=Vt.transition;Vt.transition=null;try{yt=1,qt(e,t,n,s)}finally{yt=i,Vt.transition=a}}function zt(e,t,n,s){var i=yt,a=Vt.transition;Vt.transition=null;try{yt=4,qt(e,t,n,s)}finally{yt=i,Vt.transition=a}}function qt(e,t,n,s){if($t){var i=Kt(e,t,n,s);if(null===i)$s(e,t,s,Gt,n),Et(e,s);else if(function(e,t,n,s,i){switch(t){case"focusin":return Dt=Rt(Dt,e,t,n,s,i),!0;case"dragenter":return Pt=Rt(Pt,e,t,n,s,i),!0;case"mouseover":return Ot=Rt(Ot,e,t,n,s,i),!0;case"pointerover":var a=i.pointerId;return It.set(a,Rt(It.get(a)||null,e,t,n,s,i)),!0;case"gotpointercapture":return a=i.pointerId,Mt.set(a,Rt(Mt.get(a)||null,e,t,n,s,i)),!0}return!1}(i,e,t,n,s))s.stopPropagation();else if(Et(e,s),4&t&&-1<At.indexOf(e)){for(;null!==i;){var a=yi(i);if(null!==a&&_t(a),null===(a=Kt(e,t,n,s))&&$s(e,t,s,Gt,n),a===i)break;i=a}null!==i&&s.stopPropagation()}else $s(e,t,s,null,n)}}var Gt=null;function Kt(e,t,n,s){if(Gt=null,null!==(e=vi(e=_e(s))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case st:return 536870912;default:return 16}default:return 16}}var Qt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,s=n.length,i="value"in Qt?Qt.value:Qt.textContent,a=i.length;for(e=0;e<s&&n[e]===i[e];e++);var r=s-e;for(t=1;t<=r&&n[s-t]===i[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function sn(){return!1}function an(e){function t(t,n,s,i,a){for(var r in this._reactName=t,this._targetInst=s,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(r)&&(t=e[r],this[r]=t?t(i):i[r]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:sn,this.isPropagationStopped=sn,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var rn,on,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=U({},cn,{view:0,detail:0}),pn=an(dn),hn=U({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(rn=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=rn=0,ln=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),mn=an(hn),fn=an(U({},hn,{dataTransfer:0})),gn=an(U({},dn,{relatedTarget:0})),bn=an(U({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=U({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(vn),xn=an(U({},cn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=wn[e])&&!!t[e]}function jn(){return kn}var Tn=U({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(Tn),Dn=an(U({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(U({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jn})),On=an(U({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),In=U({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Mn=an(In),Ln=[9,13,27,32],An=u&&"CompositionEvent"in window,En=null;u&&"documentMode"in document&&(En=document.documentMode);var Rn=u&&"TextEvent"in window&&!En,Un=u&&(!An||En&&8<En&&11>=En),Nn=String.fromCharCode(32),Fn=!1;function Yn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $n(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,s){Te(s),0<(t=zs(t,"onChange")).length&&(n=new un("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var zn=null,qn=null;function Gn(e){Ns(e,0)}function Kn(e){if(q(xi(e)))return e}function Xn(e,t){if("change"===e)return t}var Qn=!1;if(u){var Jn;if(u){var Zn="oninput"in document;if(!Zn){var es=document.createElement("div");es.setAttribute("oninput","return;"),Zn="function"==typeof es.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function ts(){zn&&(zn.detachEvent("onpropertychange",ns),qn=zn=null)}function ns(e){if("value"===e.propertyName&&Kn(qn)){var t=[];Wn(t,qn,e,_e(e)),Ie(Gn,t)}}function ss(e,t,n){"focusin"===e?(ts(),qn=n,(zn=t).attachEvent("onpropertychange",ns)):"focusout"===e&&ts()}function is(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function as(e,t){if("click"===e)return Kn(t)}function rs(e,t){if("input"===e||"change"===e)return Kn(t)}var os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ls(e,t){if(os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!d.call(t,i)||!os(e[i],t[i]))return!1}return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function us(e,t){var n,s=cs(e);for(e=0;s;){if(3===s.nodeType){if(n=e+s.textContent.length,e<=t&&n>=t)return{node:s,offset:t-e};e=n}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=cs(s)}}function ds(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ds(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ps(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ms(e){var t=ps(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ds(n.ownerDocument.documentElement,n)){if(null!==s&&hs(n))if(t=s.start,void 0===(e=s.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(s.start,i);s=void 0===s.end?a:Math.min(s.end,i),!e.extend&&a>s&&(i=s,s=a,a=i),i=us(n,a);var r=us(n,s);i&&r&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>s?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fs=u&&"documentMode"in document&&11>=document.documentMode,gs=null,bs=null,vs=null,ys=!1;function xs(e,t,n){var s=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ys||null==gs||gs!==G(s)||(s="selectionStart"in(s=gs)&&hs(s)?{start:s.selectionStart,end:s.selectionEnd}:{anchorNode:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset},vs&&ls(vs,s)||(vs=s,0<(s=zs(bs,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=gs)))}function _s(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ss={animationend:_s("Animation","AnimationEnd"),animationiteration:_s("Animation","AnimationIteration"),animationstart:_s("Animation","AnimationStart"),transitionend:_s("Transition","TransitionEnd")},ws={},ks={};function js(e){if(ws[e])return ws[e];if(!Ss[e])return e;var t,n=Ss[e];for(t in n)if(n.hasOwnProperty(t)&&t in ks)return ws[e]=n[t];return e}u&&(ks=document.createElement("div").style,"AnimationEvent"in window||(delete Ss.animationend.animation,delete Ss.animationiteration.animation,delete Ss.animationstart.animation),"TransitionEvent"in window||delete Ss.transitionend.transition);var Ts=js("animationend"),Cs=js("animationiteration"),Ds=js("animationstart"),Ps=js("transitionend"),Os=new Map,Is="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ms(e,t){Os.set(e,t),l(t,[e])}for(var Ls=0;Ls<Is.length;Ls++){var As=Is[Ls];Ms(As.toLowerCase(),"on"+(As[0].toUpperCase()+As.slice(1)))}Ms(Ts,"onAnimationEnd"),Ms(Cs,"onAnimationIteration"),Ms(Ds,"onAnimationStart"),Ms("dblclick","onDoubleClick"),Ms("focusin","onFocus"),Ms("focusout","onBlur"),Ms(Ps,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rs=new Set("cancel close invalid load scroll toggle".split(" ").concat(Es));function Us(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,s,i,r,o,l,c){if(He.apply(this,arguments),Re){if(!Re)throw Error(a(198));var u=Ue;Re=!1,Ue=null,Ne||(Ne=!0,Fe=u)}}(s,t,void 0,e),e.currentTarget=null}function Ns(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;e:{var a=void 0;if(t)for(var r=s.length-1;0<=r;r--){var o=s[r],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;Us(i,o,c),a=l}else for(r=0;r<s.length;r++){if(l=(o=s[r]).instance,c=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;Us(i,o,c),a=l}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Fs(e,t){var n=t[fi];void 0===n&&(n=t[fi]=new Set);var s=e+"__bubble";n.has(s)||(Vs(t,e,2,!1),n.add(s))}function Ys(e,t,n){var s=0;t&&(s|=4),Vs(n,e,s,t)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function Bs(e){if(!e[Hs]){e[Hs]=!0,r.forEach((function(t){"selectionchange"!==t&&(Rs.has(t)||Ys(t,!1,e),Ys(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hs]||(t[Hs]=!0,Ys("selectionchange",!1,t))}}function Vs(e,t,n,s){switch(Xt(t)){case 1:var i=Wt;break;case 4:i=zt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),s?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function $s(e,t,n,s,i){var a=s;if(!(1&t||2&t||null===s))e:for(;;){if(null===s)return;var r=s.tag;if(3===r||4===r){var o=s.stateNode.containerInfo;if(o===i||8===o.nodeType&&o.parentNode===i)break;if(4===r)for(r=s.return;null!==r;){var l=r.tag;if((3===l||4===l)&&((l=r.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;r=r.return}for(;null!==o;){if(null===(r=vi(o)))return;if(5===(l=r.tag)||6===l){s=a=r;continue e}o=o.parentNode}}s=s.return}Ie((function(){var s=a,i=_e(n),r=[];e:{var o=Os.get(e);if(void 0!==o){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=gn;break;case"focusout":c="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ts:case Cs:case Ds:l=bn;break;case Ps:l=On;break;case"scroll":l=pn;break;case"wheel":l=Mn;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Dn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==o?o+"Capture":null:o;u=[];for(var h,m=s;null!==m;){var f=(h=m).stateNode;if(5===h.tag&&null!==f&&(h=f,null!==p&&null!=(f=Me(m,p))&&u.push(Ws(m,f,h))),d)break;m=m.return}0<u.length&&(o=new l(o,c,null,n,i),r.push({event:o,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!vi(c)&&!c[mi])&&(l||o)&&(o=i.window===i?i:(o=i.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=s,null!==(c=(c=n.relatedTarget||n.toElement)?vi(c):null)&&(c!==(d=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=s),l!==c)){if(u=mn,f="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=Dn,f="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?o:xi(l),h=null==c?o:xi(c),(o=new u(f,m+"leave",l,n,i)).target=d,o.relatedTarget=h,f=null,vi(i)===s&&((u=new u(p,m+"enter",c,n,i)).target=h,u.relatedTarget=d,f=u),d=f,l&&c)e:{for(p=c,m=0,h=u=l;h;h=qs(h))m++;for(h=0,f=p;f;f=qs(f))h++;for(;0<m-h;)u=qs(u),m--;for(;0<h-m;)p=qs(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qs(u),p=qs(p)}u=null}else u=null;null!==l&&Gs(r,o,l,u,!1),null!==c&&null!==d&&Gs(r,d,c,u,!0)}if("select"===(l=(o=s?xi(s):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=Xn;else if($n(o))if(Qn)g=rs;else{g=is;var b=ss}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(g=as);switch(g&&(g=g(e,s))?Wn(r,g,n,i):(b&&b(e,o,s),"focusout"===e&&(b=o._wrapperState)&&b.controlled&&"number"===o.type&&ee(o,"number",o.value)),b=s?xi(s):window,e){case"focusin":($n(b)||"true"===b.contentEditable)&&(gs=b,bs=s,vs=null);break;case"focusout":vs=bs=gs=null;break;case"mousedown":ys=!0;break;case"contextmenu":case"mouseup":case"dragend":ys=!1,xs(r,n,i);break;case"selectionchange":if(fs)break;case"keydown":case"keyup":xs(r,n,i)}var v;if(An)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Bn?Yn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Un&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(v=en()):(Jt="value"in(Qt=i)?Qt.value:Qt.textContent,Bn=!0)),0<(b=zs(s,y)).length&&(y=new xn(y,e,null,n,i),r.push({event:y,listeners:b}),(v||null!==(v=Hn(n)))&&(y.data=v))),(v=Rn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!An&&Yn(e,t)?(e=en(),Zt=Jt=Qt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(s=zs(s,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),r.push({event:i,listeners:s}),i.data=v)}Ns(r,t)}))}function Ws(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zs(e,t){for(var n=t+"Capture",s=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Me(e,n))&&s.unshift(Ws(e,a,i)),null!=(a=Me(e,t))&&s.push(Ws(e,a,i))),e=e.return}return s}function qs(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gs(e,t,n,s,i){for(var a=t._reactName,r=[];null!==n&&n!==s;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===s)break;5===o.tag&&null!==c&&(o=c,i?null!=(l=Me(n,a))&&r.unshift(Ws(n,l,o)):i||null!=(l=Me(n,a))&&r.push(Ws(n,l,o))),n=n.return}0!==r.length&&e.push({event:t,listeners:r})}var Ks=/\r\n?/g,Xs=/\u0000|\uFFFD/g;function Qs(e){return("string"==typeof e?e:""+e).replace(Ks,"\n").replace(Xs,"")}function Js(e,t,n){if(t=Qs(t),Qs(e)!==t&&n)throw Error(a(425))}function Zs(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var si="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,ri="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(oi)}:si;function oi(e){setTimeout((function(){throw e}))}function li(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===s)return e.removeChild(i),void Bt(t);s--}else"$"!==n&&"$?"!==n&&"$!"!==n||s++;n=i}while(n);Bt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ui(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),pi="__reactFiber$"+di,hi="__reactProps$"+di,mi="__reactContainer$"+di,fi="__reactEvents$"+di,gi="__reactListeners$"+di,bi="__reactHandles$"+di;function vi(e){var t=e[pi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mi]||n[pi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ui(e);null!==e;){if(n=e[pi])return n;e=ui(e)}return t}n=(e=n).parentNode}return null}function yi(e){return!(e=e[pi]||e[mi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function _i(e){return e[hi]||null}var Si=[],wi=-1;function ki(e){return{current:e}}function ji(e){0>wi||(e.current=Si[wi],Si[wi]=null,wi--)}function Ti(e,t){wi++,Si[wi]=e.current,e.current=t}var Ci={},Di=ki(Ci),Pi=ki(!1),Oi=Ci;function Ii(e,t){var n=e.type.contextTypes;if(!n)return Ci;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Mi(e){return null!=e.childContextTypes}function Li(){ji(Pi),ji(Di)}function Ai(e,t,n){if(Di.current!==Ci)throw Error(a(168));Ti(Di,t),Ti(Pi,n)}function Ei(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,"function"!=typeof s.getChildContext)return n;for(var i in s=s.getChildContext())if(!(i in t))throw Error(a(108,V(e)||"Unknown",i));return U({},n,s)}function Ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Oi=Di.current,Ti(Di,e),Ti(Pi,Pi.current),!0}function Ui(e,t,n){var s=e.stateNode;if(!s)throw Error(a(169));n?(e=Ei(e,t,Oi),s.__reactInternalMemoizedMergedChildContext=e,ji(Pi),ji(Di),Ti(Di,e)):ji(Pi),Ti(Pi,n)}var Ni=null,Fi=!1,Yi=!1;function Hi(e){null===Ni?Ni=[e]:Ni.push(e)}function Bi(){if(!Yi&&null!==Ni){Yi=!0;var e=0,t=yt;try{var n=Ni;for(yt=1;e<n.length;e++){var s=n[e];do{s=s(!0)}while(null!==s)}Ni=null,Fi=!1}catch(t){throw null!==Ni&&(Ni=Ni.slice(e+1)),qe(Ze,Bi),t}finally{yt=t,Yi=!1}}return null}var Vi=[],$i=0,Wi=null,zi=0,qi=[],Gi=0,Ki=null,Xi=1,Qi="";function Ji(e,t){Vi[$i++]=zi,Vi[$i++]=Wi,Wi=e,zi=t}function Zi(e,t,n){qi[Gi++]=Xi,qi[Gi++]=Qi,qi[Gi++]=Ki,Ki=e;var s=Xi;e=Qi;var i=32-rt(s)-1;s&=~(1<<i),n+=1;var a=32-rt(t)+i;if(30<a){var r=i-i%5;a=(s&(1<<r)-1).toString(32),s>>=r,i-=r,Xi=1<<32-rt(t)+i|n<<i|s,Qi=a+e}else Xi=1<<a|n<<i|s,Qi=e}function ea(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function ta(e){for(;e===Wi;)Wi=Vi[--$i],Vi[$i]=null,zi=Vi[--$i],Vi[$i]=null;for(;e===Ki;)Ki=qi[--Gi],qi[Gi]=null,Qi=qi[--Gi],qi[Gi]=null,Xi=qi[--Gi],qi[Gi]=null}var na=null,sa=null,ia=!1,aa=null;function ra(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,sa=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,sa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ki?{id:Xi,overflow:Qi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ic(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,sa=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ca(e){if(ia){var t=sa;if(t){var n=t;if(!oa(e,t)){if(la(e))throw Error(a(418));t=ci(n.nextSibling);var s=na;t&&oa(e,t)?ra(s,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function da(e){if(e!==na)return!1;if(!ia)return ua(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=sa)){if(la(e))throw pa(),Error(a(418));for(;t;)ra(e,t),t=ci(t.nextSibling)}if(ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){sa=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}sa=null}}else sa=na?ci(e.stateNode.nextSibling):null;return!0}function pa(){for(var e=sa;e;)e=ci(e.nextSibling)}function ha(){sa=na=null,ia=!1}function ma(e){null===aa?aa=[e]:aa.push(e)}var fa=x.ReactCurrentBatchConfig;function ga(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var s=n.stateNode}if(!s)throw Error(a(147,e));var i=s,r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=i.refs;null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function va(e){return(0,e._init)(e._payload)}function ya(e){function t(t,n){if(e){var s=t.deletions;null===s?(t.deletions=[n],t.flags|=16):s.push(n)}}function n(n,s){if(!e)return null;for(;null!==s;)t(n,s),s=s.sibling;return null}function s(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function r(t,n,s){return t.index=s,e?null!==(s=t.alternate)?(s=s.index)<n?(t.flags|=2,n):s:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,s){return null===t||6!==t.tag?((t=Uc(n,e.mode,s)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,s){var a=n.type;return a===w?d(e,t,n.props.children,s,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===M&&va(a)===t.type)?((s=i(t,n.props)).ref=ga(e,t,n),s.return=e,s):((s=Ac(n.type,n.key,n.props,null,e.mode,s)).ref=ga(e,t,n),s.return=e,s)}function u(e,t,n,s){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nc(n,e.mode,s)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,s,a){return null===t||7!==t.tag?((t=Ec(n,e.mode,s,a)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Uc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Ac(t.type,t.key,t.props,null,e.mode,n)).ref=ga(e,null,t),n.return=e,n;case S:return(t=Nc(t,e.mode,n)).return=e,t;case M:return p(e,(0,t._init)(t._payload),n)}if(te(t)||E(t))return(t=Ec(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function h(e,t,n,s){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,s);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?c(e,t,n,s):null;case S:return n.key===i?u(e,t,n,s):null;case M:return h(e,t,(i=n._init)(n._payload),s)}if(te(n)||E(n))return null!==i?null:d(e,t,n,s,null);ba(e,n)}return null}function m(e,t,n,s,i){if("string"==typeof s&&""!==s||"number"==typeof s)return l(t,e=e.get(n)||null,""+s,i);if("object"==typeof s&&null!==s){switch(s.$$typeof){case _:return c(t,e=e.get(null===s.key?n:s.key)||null,s,i);case S:return u(t,e=e.get(null===s.key?n:s.key)||null,s,i);case M:return m(e,t,n,(0,s._init)(s._payload),i)}if(te(s)||E(s))return d(t,e=e.get(n)||null,s,i,null);ba(t,s)}return null}function f(i,a,o,l){for(var c=null,u=null,d=a,f=a=0,g=null;null!==d&&f<o.length;f++){d.index>f?(g=d,d=null):g=d.sibling;var b=h(i,d,o[f],l);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(i,d),a=r(b,a,f),null===u?c=b:u.sibling=b,u=b,d=g}if(f===o.length)return n(i,d),ia&&Ji(i,f),c;if(null===d){for(;f<o.length;f++)null!==(d=p(i,o[f],l))&&(a=r(d,a,f),null===u?c=d:u.sibling=d,u=d);return ia&&Ji(i,f),c}for(d=s(i,d);f<o.length;f++)null!==(g=m(d,i,f,o[f],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),a=r(g,a,f),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(i,e)})),ia&&Ji(i,f),c}function g(i,o,l,c){var u=E(l);if("function"!=typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,f=o,g=o=0,b=null,v=l.next();null!==f&&!v.done;g++,v=l.next()){f.index>g?(b=f,f=null):b=f.sibling;var y=h(i,f,v.value,c);if(null===y){null===f&&(f=b);break}e&&f&&null===y.alternate&&t(i,f),o=r(y,o,g),null===d?u=y:d.sibling=y,d=y,f=b}if(v.done)return n(i,f),ia&&Ji(i,g),u;if(null===f){for(;!v.done;g++,v=l.next())null!==(v=p(i,v.value,c))&&(o=r(v,o,g),null===d?u=v:d.sibling=v,d=v);return ia&&Ji(i,g),u}for(f=s(i,f);!v.done;g++,v=l.next())null!==(v=m(f,i,g,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),o=r(v,o,g),null===d?u=v:d.sibling=v,d=v);return e&&f.forEach((function(e){return t(i,e)})),ia&&Ji(i,g),u}return function e(s,a,r,l){if("object"==typeof r&&null!==r&&r.type===w&&null===r.key&&(r=r.props.children),"object"==typeof r&&null!==r){switch(r.$$typeof){case _:e:{for(var c=r.key,u=a;null!==u;){if(u.key===c){if((c=r.type)===w){if(7===u.tag){n(s,u.sibling),(a=i(u,r.props.children)).return=s,s=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===M&&va(c)===u.type){n(s,u.sibling),(a=i(u,r.props)).ref=ga(s,u,r),a.return=s,s=a;break e}n(s,u);break}t(s,u),u=u.sibling}r.type===w?((a=Ec(r.props.children,s.mode,l,r.key)).return=s,s=a):((l=Ac(r.type,r.key,r.props,null,s.mode,l)).ref=ga(s,a,r),l.return=s,s=l)}return o(s);case S:e:{for(u=r.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===r.containerInfo&&a.stateNode.implementation===r.implementation){n(s,a.sibling),(a=i(a,r.children||[])).return=s,s=a;break e}n(s,a);break}t(s,a),a=a.sibling}(a=Nc(r,s.mode,l)).return=s,s=a}return o(s);case M:return e(s,a,(u=r._init)(r._payload),l)}if(te(r))return f(s,a,r,l);if(E(r))return g(s,a,r,l);ba(s,r)}return"string"==typeof r&&""!==r||"number"==typeof r?(r=""+r,null!==a&&6===a.tag?(n(s,a.sibling),(a=i(a,r)).return=s,s=a):(n(s,a),(a=Uc(r,s.mode,l)).return=s,s=a),o(s)):n(s,a)}}var xa=ya(!0),_a=ya(!1),Sa=ki(null),wa=null,ka=null,ja=null;function Ta(){ja=ka=wa=null}function Ca(e){var t=Sa.current;ji(Sa),e._currentValue=t}function Da(e,t,n){for(;null!==e;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==s&&(s.childLanes|=t)):null!==s&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Pa(e,t){wa=e,ja=ka=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yo=!0),e.firstContext=null)}function Oa(e){var t=e._currentValue;if(ja!==e)if(e={context:e,memoizedValue:t,next:null},null===ka){if(null===wa)throw Error(a(308));ka=e,wa.dependencies={lanes:0,firstContext:e}}else ka=ka.next=e;return t}var Ia=null;function Ma(e){null===Ia?Ia=[e]:Ia.push(e)}function La(e,t,n,s){var i=t.interleaved;return null===i?(n.next=n,Ma(t)):(n.next=i.next,i.next=n),t.interleaved=n,Aa(e,s)}function Aa(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ea=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Na(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var s=e.updateQueue;if(null===s)return null;if(s=s.shared,2&Dl){var i=s.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),s.pending=t,Aa(e,n)}return null===(i=s.interleaved)?(t.next=t,Ma(s)):(t.next=i.next,i.next=t),s.interleaved=t,Aa(e,n)}function Ya(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var s=t.lanes;n|=s&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Ha(e,t){var n=e.updateQueue,s=e.alternate;if(null!==s&&n===(s=s.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=r:a=a.next=r,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:s.shared,effects:s.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ba(e,t,n,s){var i=e.updateQueue;Ea=!1;var a=i.firstBaseUpdate,r=i.lastBaseUpdate,o=i.shared.pending;if(null!==o){i.shared.pending=null;var l=o,c=l.next;l.next=null,null===r?a=c:r.next=c,r=l;var u=e.alternate;null!==u&&(o=(u=u.updateQueue).lastBaseUpdate)!==r&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l)}if(null!==a){var d=i.baseState;for(r=0,u=c=l=null,o=a;;){var p=o.lane,h=o.eventTime;if((s&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,f=o;switch(p=t,h=n,f.tag){case 1:if("function"==typeof(m=f.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=f.payload)?m.call(h,d,p):m))break e;d=U({},d,p);break e;case 2:Ea=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(p=i.effects)?i.effects=[o]:p.push(o))}else h={eventTime:h,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,r|=p;if(null===(o=o.next)){if(null===(o=i.shared.pending))break;o=(p=o).next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{r|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Rl|=r,e.lanes=r,e.memoizedState=d}}function Va(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(null!==i){if(s.callback=null,s=n,"function"!=typeof i)throw Error(a(191,i));i.call(s)}}}var $a={},Wa=ki($a),za=ki($a),qa=ki($a);function Ga(e){if(e===$a)throw Error(a(174));return e}function Ka(e,t){switch(Ti(qa,t),Ti(za,e),Ti(Wa,$a),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ji(Wa),Ti(Wa,t)}function Xa(){ji(Wa),ji(za),ji(qa)}function Qa(e){Ga(qa.current);var t=Ga(Wa.current),n=le(t,e.type);t!==n&&(Ti(za,e),Ti(Wa,n))}function Ja(e){za.current===e&&(ji(Wa),ji(za))}var Za=ki(0);function er(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tr=[];function nr(){for(var e=0;e<tr.length;e++)tr[e]._workInProgressVersionPrimary=null;tr.length=0}var sr=x.ReactCurrentDispatcher,ir=x.ReactCurrentBatchConfig,ar=0,rr=null,or=null,lr=null,cr=!1,ur=!1,dr=0,pr=0;function hr(){throw Error(a(321))}function mr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!os(e[n],t[n]))return!1;return!0}function fr(e,t,n,s,i,r){if(ar=r,rr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sr.current=null===e||null===e.memoizedState?Jr:Zr,e=n(s,i),ur){r=0;do{if(ur=!1,dr=0,25<=r)throw Error(a(301));r+=1,lr=or=null,t.updateQueue=null,sr.current=eo,e=n(s,i)}while(ur)}if(sr.current=Qr,t=null!==or&&null!==or.next,ar=0,lr=or=rr=null,cr=!1,t)throw Error(a(300));return e}function gr(){var e=0!==dr;return dr=0,e}function br(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lr?rr.memoizedState=lr=e:lr=lr.next=e,lr}function vr(){if(null===or){var e=rr.alternate;e=null!==e?e.memoizedState:null}else e=or.next;var t=null===lr?rr.memoizedState:lr.next;if(null!==t)lr=t,or=e;else{if(null===e)throw Error(a(310));e={memoizedState:(or=e).memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},null===lr?rr.memoizedState=lr=e:lr=lr.next=e}return lr}function yr(e,t){return"function"==typeof t?t(e):t}function xr(e){var t=vr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var s=or,i=s.baseQueue,r=n.pending;if(null!==r){if(null!==i){var o=i.next;i.next=r.next,r.next=o}s.baseQueue=i=r,n.pending=null}if(null!==i){r=i.next,s=s.baseState;var l=o=null,c=null,u=r;do{var d=u.lane;if((ar&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,o=s):c=c.next=p,rr.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==r);null===c?o=s:c.next=l,os(s,t.memoizedState)||(yo=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}if(null!==(e=n.interleaved)){i=e;do{r=i.lane,rr.lanes|=r,Rl|=r,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _r(e){var t=vr(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,r=t.memoizedState;if(null!==i){n.pending=null;var o=i=i.next;do{r=e(r,o.action),o=o.next}while(o!==i);os(r,t.memoizedState)||(yo=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,s]}function Sr(){}function wr(e,t){var n=rr,s=vr(),i=t(),r=!os(s.memoizedState,i);if(r&&(s.memoizedState=i,yo=!0),s=s.queue,Er(Tr.bind(null,n,s,e),[e]),s.getSnapshot!==t||r||null!==lr&&1&lr.memoizedState.tag){if(n.flags|=2048,Or(9,jr.bind(null,n,s,i,t),void 0,null),null===Pl)throw Error(a(349));30&ar||kr(n,t,i)}return i}function kr(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rr.updateQueue)?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function jr(e,t,n,s){t.value=n,t.getSnapshot=s,Cr(t)&&Dr(e)}function Tr(e,t,n){return n((function(){Cr(t)&&Dr(e)}))}function Cr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!os(e,n)}catch(e){return!0}}function Dr(e){var t=Aa(e,1);null!==t&&nc(t,e,1,-1)}function Pr(e){var t=br();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:e},t.queue=e,e=e.dispatch=qr.bind(null,rr,e),[t.memoizedState,e]}function Or(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},null===(t=rr.updateQueue)?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Ir(){return vr().memoizedState}function Mr(e,t,n,s){var i=br();rr.flags|=e,i.memoizedState=Or(1|t,n,void 0,void 0===s?null:s)}function Lr(e,t,n,s){var i=vr();s=void 0===s?null:s;var a=void 0;if(null!==or){var r=or.memoizedState;if(a=r.destroy,null!==s&&mr(s,r.deps))return void(i.memoizedState=Or(t,n,a,s))}rr.flags|=e,i.memoizedState=Or(1|t,n,a,s)}function Ar(e,t){return Mr(8390656,8,e,t)}function Er(e,t){return Lr(2048,8,e,t)}function Rr(e,t){return Lr(4,2,e,t)}function Ur(e,t){return Lr(4,4,e,t)}function Nr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fr(e,t,n){return n=null!=n?n.concat([e]):null,Lr(4,4,Nr.bind(null,t,e),n)}function Yr(){}function Hr(e,t){var n=vr();t=void 0===t?null:t;var s=n.memoizedState;return null!==s&&null!==t&&mr(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Br(e,t){var n=vr();t=void 0===t?null:t;var s=n.memoizedState;return null!==s&&null!==t&&mr(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Vr(e,t,n){return 21&ar?(os(n,t)||(n=ft(),rr.lanes|=n,Rl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yo=!0),e.memoizedState=n)}function $r(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var s=ir.transition;ir.transition={};try{e(!1),t()}finally{yt=n,ir.transition=s}}function Wr(){return vr().memoizedState}function zr(e,t,n){var s=tc(e);n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Gr(e)?Kr(t,n):null!==(n=La(e,t,n,s))&&(nc(n,e,s,ec()),Xr(n,t,s))}function qr(e,t,n){var s=tc(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gr(e))Kr(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var r=t.lastRenderedState,o=a(r,n);if(i.hasEagerState=!0,i.eagerState=o,os(o,r)){var l=t.interleaved;return null===l?(i.next=i,Ma(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=La(e,t,i,s))&&(nc(n,e,s,i=ec()),Xr(n,t,s))}}function Gr(e){var t=e.alternate;return e===rr||null!==t&&t===rr}function Kr(e,t){ur=cr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xr(e,t,n){if(4194240&n){var s=t.lanes;n|=s&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Qr={readContext:Oa,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},Jr={readContext:Oa,useCallback:function(e,t){return br().memoizedState=[e,void 0===t?null:t],e},useContext:Oa,useEffect:Ar,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Mr(4194308,4,Nr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mr(4,2,e,t)},useMemo:function(e,t){var n=br();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=br();return t=void 0!==n?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=zr.bind(null,rr,e),[s.memoizedState,e]},useRef:function(e){return e={current:e},br().memoizedState=e},useState:Pr,useDebugValue:Yr,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=Pr(!1),t=e[0];return e=$r.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=rr,i=br();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Pl)throw Error(a(349));30&ar||kr(s,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,Ar(Tr.bind(null,s,r,e),[e]),s.flags|=2048,Or(9,jr.bind(null,s,r,n,t),void 0,null),n},useId:function(){var e=br(),t=Pl.identifierPrefix;if(ia){var n=Qi;t=":"+t+"R"+(n=(Xi&~(1<<32-rt(Xi)-1)).toString(32)+n),0<(n=dr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zr={readContext:Oa,useCallback:Hr,useContext:Oa,useEffect:Er,useImperativeHandle:Fr,useInsertionEffect:Rr,useLayoutEffect:Ur,useMemo:Br,useReducer:xr,useRef:Ir,useState:function(){return xr(yr)},useDebugValue:Yr,useDeferredValue:function(e){return Vr(vr(),or.memoizedState,e)},useTransition:function(){return[xr(yr)[0],vr().memoizedState]},useMutableSource:Sr,useSyncExternalStore:wr,useId:Wr,unstable_isNewReconciler:!1},eo={readContext:Oa,useCallback:Hr,useContext:Oa,useEffect:Er,useImperativeHandle:Fr,useInsertionEffect:Rr,useLayoutEffect:Ur,useMemo:Br,useReducer:_r,useRef:Ir,useState:function(){return _r(yr)},useDebugValue:Yr,useDeferredValue:function(e){var t=vr();return null===or?t.memoizedState=e:Vr(t,or.memoizedState,e)},useTransition:function(){return[_r(yr)[0],vr().memoizedState]},useMutableSource:Sr,useSyncExternalStore:wr,useId:Wr,unstable_isNewReconciler:!1};function to(e,t){if(e&&e.defaultProps){for(var n in t=U({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function no(e,t,n,s){n=null==(n=n(s,t=e.memoizedState))?t:U({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var so={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=ec(),i=tc(e),a=Na(s,i);a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,i))&&(nc(t,e,i,s),Ya(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=ec(),i=tc(e),a=Na(s,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,i))&&(nc(t,e,i,s),Ya(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),s=tc(e),i=Na(n,s);i.tag=2,null!=t&&(i.callback=t),null!==(t=Fa(e,i,s))&&(nc(t,e,s,n),Ya(t,e,s))}};function io(e,t,n,s,i,a,r){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(s,a,r):!(t.prototype&&t.prototype.isPureReactComponent&&ls(n,s)&&ls(i,a))}function ao(e,t,n){var s=!1,i=Ci,a=t.contextType;return"object"==typeof a&&null!==a?a=Oa(a):(i=Mi(t)?Oi:Di.current,a=(s=null!=(s=t.contextTypes))?Ii(e,i):Ci),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=so,e.stateNode=t,t._reactInternals=e,s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ro(e,t,n,s){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,s),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function oo(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=Oa(a):(a=Mi(t)?Oi:Di.current,i.context=Ii(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(no(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&so.enqueueReplaceState(i,i.state,null),Ba(e,n,i,s),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function lo(e,t){try{var n="",s=t;do{n+=H(s),s=s.return}while(s);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function uo(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var po="function"==typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=Na(-1,n)).tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){$l||($l=!0,Wl=s),uo(0,t)},n}function mo(e,t,n){(n=Na(-1,n)).tag=3;var s=e.type.getDerivedStateFromError;if("function"==typeof s){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){uo(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){uo(0,t),"function"!=typeof s&&(null===zl?zl=new Set([this]):zl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fo(e,t,n){var s=e.pingCache;if(null===s){s=e.pingCache=new po;var i=new Set;s.set(t,i)}else void 0===(i=s.get(t))&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=jc.bind(null,e,t,n),t.then(e,e))}function go(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bo(e,t,n,s,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Na(-1,1)).tag=2,Fa(n,t,1))),n.lanes|=1),e)}var vo=x.ReactCurrentOwner,yo=!1;function xo(e,t,n,s){t.child=null===e?_a(t,null,n,s):xa(t,e.child,n,s)}function _o(e,t,n,s,i){n=n.render;var a=t.ref;return Pa(t,i),s=fr(e,t,n,s,a,i),n=gr(),null===e||yo?(ia&&n&&ea(t),t.flags|=1,xo(e,t,s,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$o(e,t,i))}function So(e,t,n,s,i){if(null===e){var a=n.type;return"function"!=typeof a||Mc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ac(n.type,null,s,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,wo(e,t,a,s,i))}if(a=e.child,!(e.lanes&i)){var r=a.memoizedProps;if((n=null!==(n=n.compare)?n:ls)(r,s)&&e.ref===t.ref)return $o(e,t,i)}return t.flags|=1,(e=Lc(a,s)).ref=t.ref,e.return=t,t.child=e}function wo(e,t,n,s,i){if(null!==e){var a=e.memoizedProps;if(ls(a,s)&&e.ref===t.ref){if(yo=!1,t.pendingProps=s=a,!(e.lanes&i))return t.lanes=e.lanes,$o(e,t,i);131072&e.flags&&(yo=!0)}}return To(e,t,n,s,i)}function ko(e,t,n){var s=t.pendingProps,i=s.children,a=null!==e?e.memoizedState:null;if("hidden"===s.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Ll,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=null!==a?a.baseLanes:n,Ti(Ll,Ml),Ml|=s}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Ll,Ml),Ml|=n;else null!==a?(s=a.baseLanes|n,t.memoizedState=null):s=n,Ti(Ll,Ml),Ml|=s;return xo(e,t,i,n),t.child}function jo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function To(e,t,n,s,i){var a=Mi(n)?Oi:Di.current;return a=Ii(t,a),Pa(t,i),n=fr(e,t,n,s,a,i),s=gr(),null===e||yo?(ia&&s&&ea(t),t.flags|=1,xo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$o(e,t,i))}function Co(e,t,n,s,i){if(Mi(n)){var a=!0;Ri(t)}else a=!1;if(Pa(t,i),null===t.stateNode)Vo(e,t),ao(t,n,s),oo(t,n,s,i),s=!0;else if(null===e){var r=t.stateNode,o=t.memoizedProps;r.props=o;var l=r.context,c=n.contextType;c="object"==typeof c&&null!==c?Oa(c):Ii(t,c=Mi(n)?Oi:Di.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof r.getSnapshotBeforeUpdate;d||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==s||l!==c)&&ro(t,r,s,c),Ea=!1;var p=t.memoizedState;r.state=p,Ba(t,s,r,i),l=t.memoizedState,o!==s||p!==l||Pi.current||Ea?("function"==typeof u&&(no(t,n,u,s),l=t.memoizedState),(o=Ea||io(t,n,o,s,p,l,c))?(d||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.flags|=4194308)):("function"==typeof r.componentDidMount&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=l),r.props=s,r.state=l,r.context=c,s=o):("function"==typeof r.componentDidMount&&(t.flags|=4194308),s=!1)}else{r=t.stateNode,Ua(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:to(t.type,o),r.props=c,d=t.pendingProps,p=r.context,l="object"==typeof(l=n.contextType)&&null!==l?Oa(l):Ii(t,l=Mi(n)?Oi:Di.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==d||p!==l)&&ro(t,r,s,l),Ea=!1,p=t.memoizedState,r.state=p,Ba(t,s,r,i);var m=t.memoizedState;o!==d||p!==m||Pi.current||Ea?("function"==typeof h&&(no(t,n,h,s),m=t.memoizedState),(c=Ea||io(t,n,c,s,p,m,l)||!1)?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(s,m,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(s,m,l)),"function"==typeof r.componentDidUpdate&&(t.flags|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=m),r.props=s,r.state=m,r.context=l,s=c):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),s=!1)}return Do(e,t,n,s,a,i)}function Do(e,t,n,s,i,a){jo(e,t);var r=!!(128&t.flags);if(!s&&!r)return i&&Ui(t,n,!1),$o(e,t,a);s=t.stateNode,vo.current=t;var o=r&&"function"!=typeof n.getDerivedStateFromError?null:s.render();return t.flags|=1,null!==e&&r?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,o,a)):xo(e,t,o,a),t.memoizedState=s.state,i&&Ui(t,n,!0),t.child}function Po(e){var t=e.stateNode;t.pendingContext?Ai(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ai(0,t.context,!1),Ka(e,t.containerInfo)}function Oo(e,t,n,s,i){return ha(),ma(i),t.flags|=256,xo(e,t,n,s),t.child}var Io,Mo,Lo,Ao,Eo={dehydrated:null,treeContext:null,retryLane:0};function Ro(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uo(e,t,n){var s,i=t.pendingProps,r=Za.current,o=!1,l=!!(128&t.flags);if((s=l)||(s=(null===e||null!==e.memoizedState)&&!!(2&r)),s?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(r|=1),Ti(Za,1&r),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,o?(i=t.mode,o=t.child,l={mode:"hidden",children:l},1&i||null===o?o=Rc(l,i,0,null):(o.childLanes=0,o.pendingProps=l),e=Ec(e,i,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Ro(n),t.memoizedState=Eo,e):No(t,l));if(null!==(r=e.memoizedState)&&null!==(s=r.dehydrated))return function(e,t,n,s,i,r,o){if(n)return 256&t.flags?(t.flags&=-257,Fo(e,t,o,s=co(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(r=s.fallback,i=t.mode,s=Rc({mode:"visible",children:s.children},i,0,null),(r=Ec(r,i,o,null)).flags|=2,s.return=t,r.return=t,s.sibling=r,t.child=s,1&t.mode&&xa(t,e.child,null,o),t.child.memoizedState=Ro(o),t.memoizedState=Eo,r);if(!(1&t.mode))return Fo(e,t,o,null);if("$!"===i.data){if(s=i.nextSibling&&i.nextSibling.dataset)var l=s.dgst;return s=l,Fo(e,t,o,s=co(r=Error(a(419)),s,void 0))}if(l=!!(o&e.childLanes),yo||l){if(null!==(s=Pl)){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(s.suspendedLanes|o)?0:i)&&i!==r.retryLane&&(r.retryLane=i,Aa(e,i),nc(s,e,i,-1))}return fc(),Fo(e,t,o,s=co(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=r.treeContext,sa=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(qi[Gi++]=Xi,qi[Gi++]=Qi,qi[Gi++]=Ki,Xi=e.id,Qi=e.overflow,Ki=t),(t=No(t,s.children)).flags|=4096,t)}(e,t,l,i,s,r,n);if(o){o=i.fallback,l=t.mode,s=(r=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===r?(i=Lc(r,c)).subtreeFlags=14680064&r.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==s?o=Lc(s,o):(o=Ec(o,l,n,null)).flags|=2,o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,l=null===(l=e.child.memoizedState)?Ro(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Eo,i}return e=(o=e.child).sibling,i=Lc(o,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function No(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fo(e,t,n,s){return null!==s&&ma(s),xa(t,e.child,null,n),(e=No(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Yo(e,t,n){e.lanes|=t;var s=e.alternate;null!==s&&(s.lanes|=t),Da(e.return,t,n)}function Ho(e,t,n,s,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=s,a.tail=n,a.tailMode=i)}function Bo(e,t,n){var s=t.pendingProps,i=s.revealOrder,a=s.tail;if(xo(e,t,s.children,n),2&(s=Za.current))s=1&s|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Yo(e,n,t);else if(19===e.tag)Yo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Ti(Za,s),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===er(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ho(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===er(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ho(t,!0,n,null,a);break;case"together":Ho(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vo(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $o(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wo(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;null!==n;)null!==n.alternate&&(s=n),n=n.sibling;null===s?t||null===e.tail?e.tail=null:e.tail.sibling=null:s.sibling=null}}function zo(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,s|=14680064&i.subtreeFlags,s|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function qo(e,t,n){var s=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zo(t),null;case 1:case 17:return Mi(t.type)&&Li(),zo(t),null;case 3:return s=t.stateNode,Xa(),ji(Pi),ji(Di),nr(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==e&&null!==e.child||(da(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(rc(aa),aa=null))),Mo(e,t),zo(t),null;case 5:Ja(t);var i=Ga(qa.current);if(n=t.type,null!==e&&null!=t.stateNode)Lo(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(null===t.stateNode)throw Error(a(166));return zo(t),null}if(e=Ga(Wa.current),da(t)){s=t.stateNode,n=t.type;var r=t.memoizedProps;switch(s[pi]=t,s[hi]=r,e=!!(1&t.mode),n){case"dialog":Fs("cancel",s),Fs("close",s);break;case"iframe":case"object":case"embed":Fs("load",s);break;case"video":case"audio":for(i=0;i<Es.length;i++)Fs(Es[i],s);break;case"source":Fs("error",s);break;case"img":case"image":case"link":Fs("error",s),Fs("load",s);break;case"details":Fs("toggle",s);break;case"input":X(s,r),Fs("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!r.multiple},Fs("invalid",s);break;case"textarea":ie(s,r),Fs("invalid",s)}for(var l in ve(n,r),i=null,r)if(r.hasOwnProperty(l)){var c=r[l];"children"===l?"string"==typeof c?s.textContent!==c&&(!0!==r.suppressHydrationWarning&&Js(s.textContent,c,e),i=["children",c]):"number"==typeof c&&s.textContent!==""+c&&(!0!==r.suppressHydrationWarning&&Js(s.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fs("scroll",s)}switch(n){case"input":z(s),Z(s,r,!0);break;case"textarea":z(s),re(s);break;case"select":case"option":break;default:"function"==typeof r.onClick&&(s.onclick=Zs)}s=i,t.updateQueue=s,null!==s&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof s.is?e=l.createElement(n,{is:s.is}):(e=l.createElement(n),"select"===n&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,n),e[pi]=t,e[hi]=s,Io(e,t,!1,!1),t.stateNode=e;e:{switch(l=ye(n,s),n){case"dialog":Fs("cancel",e),Fs("close",e),i=s;break;case"iframe":case"object":case"embed":Fs("load",e),i=s;break;case"video":case"audio":for(i=0;i<Es.length;i++)Fs(Es[i],e);i=s;break;case"source":Fs("error",e),i=s;break;case"img":case"image":case"link":Fs("error",e),Fs("load",e),i=s;break;case"details":Fs("toggle",e),i=s;break;case"input":X(e,s),i=K(e,s),Fs("invalid",e);break;case"option":default:i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=U({},s,{value:void 0}),Fs("invalid",e);break;case"textarea":ie(e,s),i=se(e,s),Fs("invalid",e)}for(r in ve(n,i),c=i)if(c.hasOwnProperty(r)){var u=c[r];"style"===r?ge(e,u):"dangerouslySetInnerHTML"===r?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===r?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(o.hasOwnProperty(r)?null!=u&&"onScroll"===r&&Fs("scroll",e):null!=u&&y(e,r,u,l))}switch(n){case"input":z(e),Z(e,s,!1);break;case"textarea":z(e),re(e);break;case"option":null!=s.value&&e.setAttribute("value",""+$(s.value));break;case"select":e.multiple=!!s.multiple,null!=(r=s.value)?ne(e,!!s.multiple,r,!1):null!=s.defaultValue&&ne(e,!!s.multiple,s.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Zs)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return zo(t),null;case 6:if(e&&null!=t.stateNode)Ao(e,t,e.memoizedProps,s);else{if("string"!=typeof s&&null===t.stateNode)throw Error(a(166));if(n=Ga(qa.current),Ga(Wa.current),da(t)){if(s=t.stateNode,n=t.memoizedProps,s[pi]=t,(r=s.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Js(s.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Js(s.nodeValue,n,!!(1&e.mode))}r&&(t.flags|=4)}else(s=(9===n.nodeType?n:n.ownerDocument).createTextNode(s))[pi]=t,t.stateNode=s}return zo(t),null;case 13:if(ji(Za),s=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==sa&&1&t.mode&&!(128&t.flags))pa(),ha(),t.flags|=98560,r=!1;else if(r=da(t),null!==s&&null!==s.dehydrated){if(null===e){if(!r)throw Error(a(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(a(317));r[pi]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;zo(t),r=!1}else null!==aa&&(rc(aa),aa=null),r=!0;if(!r)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((s=null!==s)!=(null!==e&&null!==e.memoizedState)&&s&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Za.current?0===Al&&(Al=3):fc())),null!==t.updateQueue&&(t.flags|=4),zo(t),null);case 4:return Xa(),Mo(e,t),null===e&&Bs(t.stateNode.containerInfo),zo(t),null;case 10:return Ca(t.type._context),zo(t),null;case 19:if(ji(Za),null===(r=t.memoizedState))return zo(t),null;if(s=!!(128&t.flags),null===(l=r.rendering))if(s)Wo(r,!1);else{if(0!==Al||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=er(e))){for(t.flags|=128,Wo(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;null!==n;)e=s,(r=n).flags&=14680066,null===(l=r.alternate)?(r.childLanes=0,r.lanes=e,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,e=l.dependencies,r.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(Za,1&Za.current|2),t.child}e=e.sibling}null!==r.tail&&Qe()>Bl&&(t.flags|=128,s=!0,Wo(r,!1),t.lanes=4194304)}else{if(!s)if(null!==(e=er(l))){if(t.flags|=128,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!ia)return zo(t),null}else 2*Qe()-r.renderingStartTime>Bl&&1073741824!==n&&(t.flags|=128,s=!0,Wo(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Qe(),t.sibling=null,n=Za.current,Ti(Za,s?1&n|2:1&n),t):(zo(t),null);case 22:case 23:return dc(),s=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==s&&(t.flags|=8192),s&&1&t.mode?!!(1073741824&Ml)&&(zo(t),6&t.subtreeFlags&&(t.flags|=8192)):zo(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Go(e,t){switch(ta(t),t.tag){case 1:return Mi(t.type)&&Li(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),ji(Pi),ji(Di),nr(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(ji(Za),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ji(Za),null;case 4:return Xa(),null;case 10:return Ca(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Io=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Mo=function(){},Lo=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Ga(Wa.current);var a,r=null;switch(n){case"input":i=K(e,i),s=K(e,s),r=[];break;case"select":i=U({},i,{value:void 0}),s=U({},s,{value:void 0}),r=[];break;case"textarea":i=se(e,i),s=se(e,s),r=[];break;default:"function"!=typeof i.onClick&&"function"==typeof s.onClick&&(e.onclick=Zs)}for(u in ve(n,s),n=null,i)if(!s.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?r||(r=[]):(r=r||[]).push(u,null));for(u in s){var c=s[u];if(l=null!=i?i[u]:void 0,s.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(r||(r=[]),r.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(r=r||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(r=r||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fs("scroll",e),r||l===c||(r=[])):(r=r||[]).push(u,c))}n&&(r=r||[]).push("style",n);var u=r;(t.updateQueue=u)&&(t.flags|=4)}},Ao=function(e,t,n,s){n!==s&&(t.flags|=4)};var Ko=!1,Xo=!1,Qo="function"==typeof WeakSet?WeakSet:Set,Jo=null;function Zo(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function el(e,t,n){try{n()}catch(n){kc(e,t,n)}}var tl=!1;function nl(e,t,n){var s=t.updateQueue;if(null!==(s=null!==s?s.lastEffect:null)){var i=s=s.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&el(t,n,a)}i=i.next}while(i!==s)}}function sl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[pi],delete t[hi],delete t[fi],delete t[gi],delete t[bi]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e){return 5===e.tag||3===e.tag||4===e.tag}function ol(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var s=e.tag;if(5===s||6===s)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zs));else if(4!==s&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var s=e.tag;if(5===s||6===s)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==s&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(e){}switch(n.tag){case 5:Xo||Zo(n,t);case 6:var s=ul,i=dl;ul=null,pl(e,t,n),dl=i,null!==(ul=s)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?li(e.parentNode,n):1===e.nodeType&&li(e,n),Bt(e)):li(ul,n.stateNode));break;case 4:s=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=s,dl=i;break;case 0:case 11:case 14:case 15:if(!Xo&&null!==(s=n.updateQueue)&&null!==(s=s.lastEffect)){i=s=s.next;do{var a=i,r=a.destroy;a=a.tag,void 0!==r&&(2&a||4&a)&&el(n,t,r),i=i.next}while(i!==s)}pl(e,t,n);break;case 1:if(!Xo&&(Zo(n,t),"function"==typeof(s=n.stateNode).componentWillUnmount))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(e){kc(n,t,e)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xo=(s=Xo)||null!==n.memoizedState,pl(e,t,n),Xo=s):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qo),t.forEach((function(t){var s=Dc.bind(null,e,t);n.has(t)||(n.add(t),t.then(s,s))}))}}function fl(e,t){var n=t.deletions;if(null!==n)for(var s=0;s<n.length;s++){var i=n[s];try{var r=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(a(160));hl(r,o,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){kc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(fl(t,e),bl(e),4&s){try{nl(3,e,e.return),sl(3,e)}catch(t){kc(e,e.return,t)}try{nl(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:fl(t,e),bl(e),512&s&&null!==n&&Zo(n,n.return);break;case 5:if(fl(t,e),bl(e),512&s&&null!==n&&Zo(n,n.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(t){kc(e,e.return,t)}}if(4&s&&null!=(i=e.stateNode)){var r=e.memoizedProps,o=null!==n?n.memoizedProps:r,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===r.type&&null!=r.name&&Q(i,r),ye(l,o);var u=ye(l,r);for(o=0;o<c.length;o+=2){var d=c[o],p=c[o+1];"style"===d?ge(i,p):"dangerouslySetInnerHTML"===d?de(i,p):"children"===d?pe(i,p):y(i,d,p,u)}switch(l){case"input":J(i,r);break;case"textarea":ae(i,r);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!r.multiple;var m=r.value;null!=m?ne(i,!!r.multiple,m,!1):h!==!!r.multiple&&(null!=r.defaultValue?ne(i,!!r.multiple,r.defaultValue,!0):ne(i,!!r.multiple,r.multiple?[]:"",!1))}i[hi]=r}catch(t){kc(e,e.return,t)}}break;case 6:if(fl(t,e),bl(e),4&s){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,r=e.memoizedProps;try{i.nodeValue=r}catch(t){kc(e,e.return,t)}}break;case 3:if(fl(t,e),bl(e),4&s&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:fl(t,e),bl(e);break;case 13:fl(t,e),bl(e),8192&(i=e.child).flags&&(r=null!==i.memoizedState,i.stateNode.isHidden=r,!r||null!==i.alternate&&null!==i.alternate.memoizedState||(Hl=Qe())),4&s&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Xo=(u=Xo)||d,fl(t,e),Xo=u):fl(t,e),bl(e),8192&s){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Jo=e,d=e.child;null!==d;){for(p=Jo=d;null!==Jo;){switch(m=(h=Jo).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:Zo(h,h.return);var f=h.stateNode;if("function"==typeof f.componentWillUnmount){s=h,n=h.return;try{t=s,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(e){kc(s,n,e)}}break;case 5:Zo(h,h.return);break;case 22:if(null!==h.memoizedState){_l(p);continue}}null!==m?(m.return=h,Jo=m):_l(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"==typeof(r=i.style).setProperty?r.setProperty("display","none","important"):r.display="none":(l=p.stateNode,o=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=fe("display",o))}catch(t){kc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:fl(t,e),bl(e),4&s&&ml(e);case 21:}}function bl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(rl(n)){var s=n;break e}n=n.return}throw Error(a(160))}switch(s.tag){case 5:var i=s.stateNode;32&s.flags&&(pe(i,""),s.flags&=-33),cl(e,ol(e),i);break;case 3:case 4:var r=s.stateNode.containerInfo;ll(e,ol(e),r);break;default:throw Error(a(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Jo=e,yl(e,t,n)}function yl(e,t,n){for(var s=!!(1&e.mode);null!==Jo;){var i=Jo,a=i.child;if(22===i.tag&&s){var r=null!==i.memoizedState||Ko;if(!r){var o=i.alternate,l=null!==o&&null!==o.memoizedState||Xo;o=Ko;var c=Xo;if(Ko=r,(Xo=l)&&!c)for(Jo=i;null!==Jo;)l=(r=Jo).child,22===r.tag&&null!==r.memoizedState?Sl(i):null!==l?(l.return=r,Jo=l):Sl(i);for(;null!==a;)Jo=a,yl(a,t,n),a=a.sibling;Jo=i,Ko=o,Xo=c}xl(e)}else 8772&i.subtreeFlags&&null!==a?(a.return=i,Jo=a):xl(e)}}function xl(e){for(;null!==Jo;){var t=Jo;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xo||sl(5,t);break;case 1:var s=t.stateNode;if(4&t.flags&&!Xo)if(null===n)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:to(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var r=t.updateQueue;null!==r&&Va(t,r,s);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Va(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(a(163))}Xo||512&t.flags&&il(t)}catch(e){kc(t,t.return,e)}}if(t===e){Jo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jo=n;break}Jo=t.return}}function _l(e){for(;null!==Jo;){var t=Jo;if(t===e){Jo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jo=n;break}Jo=t.return}}function Sl(e){for(;null!==Jo;){var t=Jo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{sl(4,t)}catch(e){kc(t,n,e)}break;case 1:var s=t.stateNode;if("function"==typeof s.componentDidMount){var i=t.return;try{s.componentDidMount()}catch(e){kc(t,i,e)}}var a=t.return;try{il(t)}catch(e){kc(t,a,e)}break;case 5:var r=t.return;try{il(t)}catch(e){kc(t,r,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Jo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Jo=o;break}Jo=t.return}}var wl,kl=Math.ceil,jl=x.ReactCurrentDispatcher,Tl=x.ReactCurrentOwner,Cl=x.ReactCurrentBatchConfig,Dl=0,Pl=null,Ol=null,Il=0,Ml=0,Ll=ki(0),Al=0,El=null,Rl=0,Ul=0,Nl=0,Fl=null,Yl=null,Hl=0,Bl=1/0,Vl=null,$l=!1,Wl=null,zl=null,ql=!1,Gl=null,Kl=0,Xl=0,Ql=null,Jl=-1,Zl=0;function ec(){return 6&Dl?Qe():-1!==Jl?Jl:Jl=Qe()}function tc(e){return 1&e.mode?2&Dl&&0!==Il?Il&-Il:null!==fa.transition?(0===Zl&&(Zl=ft()),Zl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function nc(e,t,n,s){if(50<Xl)throw Xl=0,Ql=null,Error(a(185));bt(e,n,s),2&Dl&&e===Pl||(e===Pl&&(!(2&Dl)&&(Ul|=n),4===Al&&oc(e,Il)),sc(e,s),1===n&&0===Dl&&!(1&t.mode)&&(Bl=Qe()+500,Fi&&Bi()))}function sc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var r=31-rt(a),o=1<<r,l=i[r];-1===l?o&n&&!(o&s)||(i[r]=ht(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}}(e,t);var s=pt(e,e===Pl?Il:0);if(0===s)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fi=!0,Hi(e)}(lc.bind(null,e)):Hi(lc.bind(null,e)),ri((function(){!(6&Dl)&&Bi()})),n=null;else{switch(xt(s)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=st}n=Pc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Jl=-1,Zl=0,6&Dl)throw Error(a(327));var n=e.callbackNode;if(Sc()&&e.callbackNode!==n)return null;var s=pt(e,e===Pl?Il:0);if(0===s)return null;if(30&s||s&e.expiredLanes||t)t=gc(e,s);else{t=s;var i=Dl;Dl|=2;var r=mc();for(Pl===e&&Il===t||(Vl=null,Bl=Qe()+500,pc(e,t));;)try{vc();break}catch(t){hc(e,t)}Ta(),jl.current=r,Dl=i,null!==Ol?t=0:(Pl=null,Il=0,t=Al)}if(0!==t){if(2===t&&0!==(i=mt(e))&&(s=i,t=ac(e,i)),1===t)throw n=El,pc(e,0),oc(e,s),sc(e,Qe()),n;if(6===t)oc(e,s);else{if(i=e.current.alternate,!(30&s||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var s=0;s<n.length;s++){var i=n[s],a=i.getSnapshot;i=i.value;try{if(!os(a(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=gc(e,s),2===t&&(r=mt(e),0!==r&&(s=r,t=ac(e,r))),1!==t)))throw n=El,pc(e,0),oc(e,s),sc(e,Qe()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(a(345));case 2:case 5:_c(e,Yl,Vl);break;case 3:if(oc(e,s),(130023424&s)===s&&10<(t=Hl+500-Qe())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&s)!==s){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=si(_c.bind(null,e,Yl,Vl),t);break}_c(e,Yl,Vl);break;case 4:if(oc(e,s),(4194240&s)===s)break;for(t=e.eventTimes,i=-1;0<s;){var o=31-rt(s);r=1<<o,(o=t[o])>i&&(i=o),s&=~r}if(s=i,10<(s=(120>(s=Qe()-s)?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*kl(s/1960))-s)){e.timeoutHandle=si(_c.bind(null,e,Yl,Vl),s);break}_c(e,Yl,Vl);break;default:throw Error(a(329))}}}return sc(e,Qe()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Yl,Yl=n,null!==t&&rc(t)),e}function rc(e){null===Yl?Yl=e:Yl.push.apply(Yl,e)}function oc(e,t){for(t&=~Nl,t&=~Ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),s=1<<n;e[n]=-1,t&=~s}}function lc(e){if(6&Dl)throw Error(a(327));Sc();var t=pt(e,0);if(!(1&t))return sc(e,Qe()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var s=mt(e);0!==s&&(t=s,n=ac(e,s))}if(1===n)throw n=El,pc(e,0),oc(e,t),sc(e,Qe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,_c(e,Yl,Vl),sc(e,Qe()),null}function cc(e,t){var n=Dl;Dl|=1;try{return e(t)}finally{0===(Dl=n)&&(Bl=Qe()+500,Fi&&Bi())}}function uc(e){null!==Gl&&0===Gl.tag&&!(6&Dl)&&Sc();var t=Dl;Dl|=1;var n=Cl.transition,s=yt;try{if(Cl.transition=null,yt=1,e)return e()}finally{yt=s,Cl.transition=n,!(6&(Dl=t))&&Bi()}}function dc(){Ml=Ll.current,ji(Ll)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Ol)for(n=Ol.return;null!==n;){var s=n;switch(ta(s),s.tag){case 1:null!=(s=s.type.childContextTypes)&&Li();break;case 3:Xa(),ji(Pi),ji(Di),nr();break;case 5:Ja(s);break;case 4:Xa();break;case 13:case 19:ji(Za);break;case 10:Ca(s.type._context);break;case 22:case 23:dc()}n=n.return}if(Pl=e,Ol=e=Lc(e.current,null),Il=Ml=t,Al=0,El=null,Nl=Ul=Rl=0,Yl=Fl=null,null!==Ia){for(t=0;t<Ia.length;t++)if(null!==(s=(n=Ia[t]).interleaved)){n.interleaved=null;var i=s.next,a=n.pending;if(null!==a){var r=a.next;a.next=i,s.next=r}n.pending=s}Ia=null}return e}function hc(e,t){for(;;){var n=Ol;try{if(Ta(),sr.current=Qr,cr){for(var s=rr.memoizedState;null!==s;){var i=s.queue;null!==i&&(i.pending=null),s=s.next}cr=!1}if(ar=0,lr=or=rr=null,ur=!1,dr=0,Tl.current=null,null===n||null===n.return){Al=1,El=t,Ol=null;break}e:{var r=e,o=n.return,l=n,c=t;if(t=Il,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=go(o);if(null!==m){m.flags&=-257,bo(m,o,l,0,t),1&m.mode&&fo(r,u,t),c=u;var f=(t=m).updateQueue;if(null===f){var g=new Set;g.add(c),t.updateQueue=g}else f.add(c);break e}if(!(1&t)){fo(r,u,t),fc();break e}c=Error(a(426))}else if(ia&&1&l.mode){var b=go(o);if(null!==b){!(65536&b.flags)&&(b.flags|=256),bo(b,o,l,0,t),ma(lo(c,l));break e}}r=c=lo(c,l),4!==Al&&(Al=2),null===Fl?Fl=[r]:Fl.push(r),r=o;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,Ha(r,ho(0,c,t));break e;case 1:l=c;var v=r.type,y=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==zl&&zl.has(y)))){r.flags|=65536,t&=-t,r.lanes|=t,Ha(r,mo(r,l,t));break e}}r=r.return}while(null!==r)}xc(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function mc(){var e=jl.current;return jl.current=Qr,null===e?Qr:e}function fc(){0!==Al&&3!==Al&&2!==Al||(Al=4),null===Pl||!(268435455&Rl)&&!(268435455&Ul)||oc(Pl,Il)}function gc(e,t){var n=Dl;Dl|=2;var s=mc();for(Pl===e&&Il===t||(Vl=null,pc(e,t));;)try{bc();break}catch(t){hc(e,t)}if(Ta(),Dl=n,jl.current=s,null!==Ol)throw Error(a(261));return Pl=null,Il=0,Al}function bc(){for(;null!==Ol;)yc(Ol)}function vc(){for(;null!==Ol&&!Ke();)yc(Ol)}function yc(e){var t=wl(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?xc(e):Ol=t,Tl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Go(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return Al=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=qo(n,t,Ml)))return void(Ol=n);if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Al&&(Al=5)}function _c(e,t,n){var s=yt,i=Cl.transition;try{Cl.transition=null,yt=1,function(e,t,n,s){do{Sc()}while(null!==Gl);if(6&Dl)throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var r=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-rt(n),a=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~a}}(e,r),e===Pl&&(Ol=Pl=null,Il=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||ql||(ql=!0,Pc(tt,(function(){return Sc(),null}))),r=!!(15990&n.flags),15990&n.subtreeFlags||r){r=Cl.transition,Cl.transition=null;var o=yt;yt=1;var l=Dl;Dl|=4,Tl.current=null,function(e,t){if(ei=$t,hs(e=ps())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var s=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(s&&0!==s.rangeCount){n=s.anchorNode;var i=s.anchorOffset,r=s.focusNode;s=s.focusOffset;try{n.nodeType,r.nodeType}catch(e){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var m;p!==n||0!==i&&3!==p.nodeType||(l=o+i),p!==r||0!==s&&3!==p.nodeType||(c=o+s),3===p.nodeType&&(o+=p.nodeValue.length),null!==(m=p.firstChild);)h=p,p=m;for(;;){if(p===e)break t;if(h===n&&++u===i&&(l=o),h===r&&++d===s&&(c=o),null!==(m=p.nextSibling))break;h=(p=h).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},$t=!1,Jo=t;null!==Jo;)if(e=(t=Jo).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jo=e;else for(;null!==Jo;){t=Jo;try{var f=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var g=f.memoizedProps,b=f.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:to(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(a(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jo=e;break}Jo=t.return}f=tl,tl=!1}(e,n),gl(n,e),ms(ti),$t=!!ei,ti=ei=null,e.current=n,vl(n,e,i),Xe(),Dl=l,yt=o,Cl.transition=r}else e.current=n;if(ql&&(ql=!1,Gl=e,Kl=i),0===(r=e.pendingLanes)&&(zl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),sc(e,Qe()),null!==t)for(s=e.onRecoverableError,n=0;n<t.length;n++)s((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=Wl,Wl=null,e;!!(1&Kl)&&0!==e.tag&&Sc(),1&(r=e.pendingLanes)?e===Ql?Xl++:(Xl=0,Ql=e):Xl=0,Bi()}(e,t,n,s)}finally{Cl.transition=i,yt=s}return null}function Sc(){if(null!==Gl){var e=xt(Kl),t=Cl.transition,n=yt;try{if(Cl.transition=null,yt=16>e?16:e,null===Gl)var s=!1;else{if(e=Gl,Gl=null,Kl=0,6&Dl)throw Error(a(331));var i=Dl;for(Dl|=4,Jo=e.current;null!==Jo;){var r=Jo,o=r.child;if(16&Jo.flags){var l=r.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Jo=u;null!==Jo;){var d=Jo;switch(d.tag){case 0:case 11:case 15:nl(8,d,r)}var p=d.child;if(null!==p)p.return=d,Jo=p;else for(;null!==Jo;){var h=(d=Jo).sibling,m=d.return;if(al(d),d===u){Jo=null;break}if(null!==h){h.return=m,Jo=h;break}Jo=m}}}var f=r.alternate;if(null!==f){var g=f.child;if(null!==g){f.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Jo=r}}if(2064&r.subtreeFlags&&null!==o)o.return=r,Jo=o;else e:for(;null!==Jo;){if(2048&(r=Jo).flags)switch(r.tag){case 0:case 11:case 15:nl(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,Jo=v;break e}Jo=r.return}}var y=e.current;for(Jo=y;null!==Jo;){var x=(o=Jo).child;if(2064&o.subtreeFlags&&null!==x)x.return=o,Jo=x;else e:for(o=y;null!==Jo;){if(2048&(l=Jo).flags)try{switch(l.tag){case 0:case 11:case 15:sl(9,l)}}catch(e){kc(l,l.return,e)}if(l===o){Jo=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Jo=_;break e}Jo=l.return}}if(Dl=i,Bi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}s=!0}return s}finally{yt=n,Cl.transition=t}}return!1}function wc(e,t,n){e=Fa(e,t=ho(0,t=lo(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),sc(e,t))}function kc(e,t,n){if(3===e.tag)wc(e,e,n);else for(;null!==t;){if(3===t.tag){wc(t,e,n);break}if(1===t.tag){var s=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&(null===zl||!zl.has(s))){t=Fa(t,e=mo(t,e=lo(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),sc(t,e));break}}t=t.return}}function jc(e,t,n){var s=e.pingCache;null!==s&&s.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Il&n)===n&&(4===Al||3===Al&&(130023424&Il)===Il&&500>Qe()-Hl?pc(e,0):Nl|=n),sc(e,t)}function Tc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=ec();null!==(e=Aa(e,t))&&(bt(e,t,n),sc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Dc(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(a(314))}null!==s&&s.delete(t),Tc(e,n)}function Pc(e,t){return qe(e,t)}function Oc(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ic(e,t,n,s){return new Oc(e,t,n,s)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ac(e,t,n,s,i,r){var o=2;if(s=e,"function"==typeof e)Mc(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case w:return Ec(n.children,i,r,t);case k:o=8,i|=8;break;case j:return(e=Ic(12,n,t,2|i)).elementType=j,e.lanes=r,e;case P:return(e=Ic(13,n,t,i)).elementType=P,e.lanes=r,e;case O:return(e=Ic(19,n,t,i)).elementType=O,e.lanes=r,e;case L:return Rc(n,i,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:o=10;break e;case C:o=9;break e;case D:o=11;break e;case I:o=14;break e;case M:o=16,s=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ic(o,n,t,i)).elementType=e,t.type=s,t.lanes=r,t}function Ec(e,t,n,s){return(e=Ic(7,e,s,t)).lanes=n,e}function Rc(e,t,n,s){return(e=Ic(22,e,s,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Uc(e,t,n){return(e=Ic(6,e,null,t)).lanes=n,e}function Nc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,s,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Yc(e,t,n,s,i,a,r,o,l){return e=new Fc(e,t,n,o,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ic(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function Hc(e){if(!e)return Ci;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Ei(e,n,t)}return t}function Bc(e,t,n,s,i,a,r,o,l){return(e=Yc(n,s,!0,e,0,a,0,o,l)).context=Hc(null),n=e.current,(a=Na(s=ec(),i=tc(n))).callback=null!=t?t:null,Fa(n,a,i),e.current.lanes=i,bt(e,i,s),sc(e,s),e}function Vc(e,t,n,s){var i=t.current,a=ec(),r=tc(i);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Na(a,r)).payload={element:e},null!==(s=void 0===s?null:s)&&(t.callback=s),null!==(e=Fa(i,t,r))&&(nc(e,i,r,a),Ya(e,i,r)),r}function $c(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function zc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}wl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pi.current)yo=!0;else{if(!(e.lanes&n||128&t.flags))return yo=!1,function(e,t,n){switch(t.tag){case 3:Po(t),ha();break;case 5:Qa(t);break;case 1:Mi(t.type)&&Ri(t);break;case 4:Ka(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;Ti(Sa,s._currentValue),s._currentValue=i;break;case 13:if(null!==(s=t.memoizedState))return null!==s.dehydrated?(Ti(Za,1&Za.current),t.flags|=128,null):n&t.child.childLanes?Uo(e,t,n):(Ti(Za,1&Za.current),null!==(e=$o(e,t,n))?e.sibling:null);Ti(Za,1&Za.current);break;case 19:if(s=!!(n&t.childLanes),128&e.flags){if(s)return Bo(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(Za,Za.current),s)break;return null;case 22:case 23:return t.lanes=0,ko(e,t,n)}return $o(e,t,n)}(e,t,n);yo=!!(131072&e.flags)}else yo=!1,ia&&1048576&t.flags&&Zi(t,zi,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Vo(e,t),e=t.pendingProps;var i=Ii(t,Di.current);Pa(t,n),i=fr(null,t,s,e,i,n);var r=gr();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(s)?(r=!0,Ri(t)):r=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ra(t),i.updater=so,t.stateNode=i,i._reactInternals=t,oo(t,s,e,n),t=Do(null,t,s,!0,r,n)):(t.tag=0,ia&&r&&ea(t),xo(null,t,i,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Vo(e,t),e=t.pendingProps,s=(i=s._init)(s._payload),t.type=s,i=t.tag=function(e){if("function"==typeof e)return Mc(e)?1:0;if(null!=e){if((e=e.$$typeof)===D)return 11;if(e===I)return 14}return 2}(s),e=to(s,e),i){case 0:t=To(null,t,s,e,n);break e;case 1:t=Co(null,t,s,e,n);break e;case 11:t=_o(null,t,s,e,n);break e;case 14:t=So(null,t,s,to(s.type,e),n);break e}throw Error(a(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,To(e,t,s,i=t.elementType===s?i:to(s,i),n);case 1:return s=t.type,i=t.pendingProps,Co(e,t,s,i=t.elementType===s?i:to(s,i),n);case 3:e:{if(Po(t),null===e)throw Error(a(387));s=t.pendingProps,i=(r=t.memoizedState).element,Ua(e,t),Ba(t,s,null,n);var o=t.memoizedState;if(s=o.element,r.isDehydrated){if(r={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=r,t.memoizedState=r,256&t.flags){t=Oo(e,t,s,n,i=lo(Error(a(423)),t));break e}if(s!==i){t=Oo(e,t,s,n,i=lo(Error(a(424)),t));break e}for(sa=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=_a(t,null,s,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),s===i){t=$o(e,t,n);break e}xo(e,t,s,n)}t=t.child}return t;case 5:return Qa(t),null===e&&ca(t),s=t.type,i=t.pendingProps,r=null!==e?e.memoizedProps:null,o=i.children,ni(s,i)?o=null:null!==r&&ni(s,r)&&(t.flags|=32),jo(e,t),xo(e,t,o,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Uo(e,t,n);case 4:return Ka(t,t.stateNode.containerInfo),s=t.pendingProps,null===e?t.child=xa(t,null,s,n):xo(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,_o(e,t,s,i=t.elementType===s?i:to(s,i),n);case 7:return xo(e,t,t.pendingProps,n),t.child;case 8:case 12:return xo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,i=t.pendingProps,r=t.memoizedProps,o=i.value,Ti(Sa,s._currentValue),s._currentValue=o,null!==r)if(os(r.value,o)){if(r.children===i.children&&!Pi.current){t=$o(e,t,n);break e}}else for(null!==(r=t.child)&&(r.return=t);null!==r;){var l=r.dependencies;if(null!==l){o=r.child;for(var c=l.firstContext;null!==c;){if(c.context===s){if(1===r.tag){(c=Na(-1,n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}r.lanes|=n,null!==(c=r.alternate)&&(c.lanes|=n),Da(r.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===r.tag)o=r.type===t.type?null:r.child;else if(18===r.tag){if(null===(o=r.return))throw Error(a(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Da(o,n,t),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===t){o=null;break}if(null!==(r=o.sibling)){r.return=o.return,o=r;break}o=o.return}r=o}xo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,Pa(t,n),s=s(i=Oa(i)),t.flags|=1,xo(e,t,s,n),t.child;case 14:return i=to(s=t.type,t.pendingProps),So(e,t,s,i=to(s.type,i),n);case 15:return wo(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:to(s,i),Vo(e,t),t.tag=1,Mi(s)?(e=!0,Ri(t)):e=!1,Pa(t,n),ao(t,s,i),oo(t,s,i,n),Do(null,t,s,!0,e,n);case 19:return Bo(e,t,n);case 22:return ko(e,t,n)}throw Error(a(156,t.tag))};var qc="function"==typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,s,i){var a=n._reactRootContainer;if(a){var r=a;if("function"==typeof i){var o=i;i=function(){var e=$c(r);o.call(e)}}Vc(t,r,e,i)}else r=function(e,t,n,s,i){if(i){if("function"==typeof s){var a=s;s=function(){var e=$c(r);a.call(e)}}var r=Bc(t,s,e,0,null,!1,0,"",Jc);return e._reactRootContainer=r,e[mi]=r.current,Bs(8===e.nodeType?e.parentNode:e),uc(),r}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof s){var o=s;s=function(){var e=$c(l);o.call(e)}}var l=Yc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[mi]=l.current,Bs(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,n,s)})),l}(n,t,e,i,s);return $c(r)}Kc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Vc(e,t,null,null)},Kc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[mi]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Ut(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),sc(t,Qe()),!(6&Dl)&&(Bl=Qe()+500,Bi()))}break;case 13:uc((function(){var t=Aa(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),zc(e,1)}},St=function(e){if(13===e.tag){var t=Aa(e,134217728);null!==t&&nc(t,e,134217728,ec()),zc(e,134217728)}},wt=function(e){if(13===e.tag){var t=tc(e),n=Aa(e,t);null!==n&&nc(n,e,t,ec()),zc(e,t)}},kt=function(){return yt},jt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},Se=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var i=_i(s);if(!i)throw Error(a(90));q(s),J(s,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},De=cc,Pe=uc;var eu={usingClientEntryPoint:!1,Events:[yi,xi,_i,Te,Ce,cc]},tu={findFiberByHostInstance:vi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var su=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!su.isDisabled&&su.supportsFiber)try{it=su.inject(nu),at=su}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return function(e,t,n){var s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==s?null:""+s,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,s="",i=qc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(s=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Yc(e,1,!1,null,0,n,0,s,i),e[mi]=t.current,Bs(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(a(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var s=null!=n&&n.hydratedSources||null,i=!1,r="",o=qc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Bc(t,null,e,1,null!=n?n:null,i,0,r,o),e[mi]=t.current,Bs(e),s)for(e=0;e<s.length;e++)i=(i=(n=s[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Kc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(a(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(a(40));return!!e._reactRootContainer&&(uc((function(){Zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zc(e,t,n,!1,s)},t.version="18.3.1-next-f1338f8080-20240426"},5338:(e,t,n)=>{"use strict";var s=n(40961);t.H=s.createRoot,s.hydrateRoot},40961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},22799:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,s=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,f=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case u:case d:case a:case o:case r:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case g:case f:case l:return e;default:return t}}case i:return t}}}function S(e){return _(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=s,t.ForwardRef=p,t.Fragment=a,t.Lazy=g,t.Memo=f,t.Portal=i,t.Profiler=o,t.StrictMode=r,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||_(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return _(e)===p},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===f},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===o},t.isStrictMode=function(e){return _(e)===r},t.isSuspense=function(e){return _(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===o||e===r||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=_},44363:(e,t,n)=>{"use strict";e.exports=n(22799)},86170:(e,t,n)=>{"use strict";var s=n(54441);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==s){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},43440:(e,t,n)=>{e.exports=n(86170)()},54441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},28989:(e,t)=>{"use strict";var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case r:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case m:case h:case o:return e;default:return t}}case s:return t}}}(e)===l}},54737:(e,t,n)=>{"use strict";e.exports=n(28989)},9375:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},8505:(e,t,n)=>{var s=n(9375);e.exports=function e(t,n,i){return s(n)||(i=n||i,n=[]),i=i||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var s=0;s<n.length;s++)t.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(t,n):s(t)?function(t,n,s){for(var i=[],a=0;a<t.length;a++)i.push(e(t[a],n,s).source);return d(new RegExp("(?:"+i.join("|")+")",p(s)),n)}(t,n,i):function(e,t,n){return h(a(e,n),t,n)}(t,n,i)},e.exports.parse=a,e.exports.compile=function(e,t){return l(a(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function a(e,t){for(var n,s=[],a=0,o=0,l="",c=t&&t.delimiter||"/";null!=(n=i.exec(e));){var d=n[0],p=n[1],h=n.index;if(l+=e.slice(o,h),o=h+d.length,p)l+=p[1];else{var m=e[o],f=n[2],g=n[3],b=n[4],v=n[5],y=n[6],x=n[7];l&&(s.push(l),l="");var _=null!=f&&null!=m&&m!==f,S="+"===y||"*"===y,w="?"===y||"*"===y,k=f||c,j=b||v,T=f||("string"==typeof s[s.length-1]?s[s.length-1]:"");s.push({name:g||a++,prefix:f||"",delimiter:k,optional:w,repeat:S,partial:_,asterisk:!!x,pattern:j?u(j):x?".*":r(k,T)})}}return o<e.length&&(l+=e.substr(o)),l&&s.push(l),s}function r(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",p(t)));return function(t,i){for(var a="",r=t||{},l=(i||{}).pretty?o:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=r[u.name];if(null==p){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(s(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");a+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');a+=u.prefix+d}}else a+=u}return a}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function h(e,t,n){s(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,a=!1!==n.end,r="",o=0;o<e.length;o++){var l=e[o];if("string"==typeof l)r+=c(l);else{var u=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+u+h+")*"),r+=h=l.optional?l.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")"}}var m=c(n.delimiter||"/"),f=r.slice(-m.length)===m;return i||(r=(f?r.slice(0,-m.length):r)+"(?:"+m+"(?=$))?"),r+=a?"$":i&&f?"":"(?="+m+"|$)",d(new RegExp("^"+r,p(n)),t)}},2263:(e,t,n)=>{"use strict";var s=n(82752);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==s){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},76523:(e,t,n)=>{e.exports=n(2263)()},82752:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},15915:(e,t,n)=>{"use strict";var s=n(96556);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,r){if(r!==s){var o=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 o.name="Invariant Violation",o}}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:a,resetWarningCache:i};return n.PropTypes=n,n}},37271:(e,t,n)=>{e.exports=n(15915)()},96556:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},21020:(e,t,n)=>{"use strict";var s=n(96540),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var s,a={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!l.hasOwnProperty(s)&&(a[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===a[s]&&(a[s]=t[s]);return{$$typeof:i,type:e,key:c,ref:u,props:a,_owner:o.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},15287:(e,t)=>{"use strict";var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,f(x,b.prototype),x.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,s){var i,a={},r=null,o=null;if(null!=t)for(i in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(r=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=s;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:r,ref:o,props:a,_owner:w.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,i,a,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case s:l=!0}}if(l)return r=r(l=e),e=""===a?"."+D(l,0):a,_(r)?(i="",null!=e&&(i=e.replace(C,"$&/")+"/"),P(r,t,i,"",(function(e){return e}))):null!=r&&(T(r)&&(r=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,i+(!r.key||l&&l.key===r.key?"":(""+r.key).replace(C,"$&/")+"/")+e)),t.push(r)),1;if(l=0,a=""===a?".":a+":",_(e))for(var c=0;c<e.length;c++){var u=a+D(o=e[c],c);l+=P(o,t,i,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(o=e.next()).done;)l+=P(o=o.value,t,i,u=a+D(o,c++),r);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function O(e,t,n){if(null==e)return e;var s=[],i=0;return P(e,s,"","",(function(e){return t.call(n,e,i++)})),s}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M={current:null},L={transition:null},A={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:L,ReactCurrentOwner:w};function E(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=i,t.Profiler=r,t.PureComponent=y,t.StrictMode=a,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.act=E,t.cloneElement=function(e,t,s){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=f({},e.props),a=e.key,r=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,o=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=s;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:r,props:i,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=E,t.useCallback=function(e,t){return M.current.useCallback(e,t)},t.useContext=function(e){return M.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return M.current.useDeferredValue(e)},t.useEffect=function(e,t){return M.current.useEffect(e,t)},t.useId=function(){return M.current.useId()},t.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return M.current.useMemo(e,t)},t.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},t.useRef=function(e){return M.current.useRef(e)},t.useState=function(e){return M.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return M.current.useTransition()},t.version="18.3.1"},96540:(e,t,n)=>{"use strict";e.exports=n(15287)},74848:(e,t,n)=>{"use strict";e.exports=n(21020)},74728:(e,t,n)=>{const s=n(78659),i=n(52834),{isPlainObject:a}=n(78682),r=n(14744),o=n(29466),{parse:l}=n(74356),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function p(e,t){return{}.hasOwnProperty.call(e,t)}function h(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=f;const m=/^[^\0\t\n\f\r /<=>]+$/;function f(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let b="",v="";function y(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=b.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){O.length&&(O[O.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){O.length&&c.includes(this.tag)&&O[O.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},f.defaults,t)).parser=Object.assign({},g,t.parser);const x=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){x(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const _=t.nonTextTags||["script","style","textarea","option"];let S,w;t.allowedAttributes&&(S={},w={},d(t.allowedAttributes,(function(e,t){S[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):S[t].push(e)})),n.length&&(w[t]=new RegExp("^("+n.join("|")+")$"))})));const k={},j={},T={};d(t.allowedClasses,(function(e,t){if(S&&(p(S,t)||(S[t]=[]),S[t].push("class")),k[t]=e,Array.isArray(e)){const n=[];k[t]=[],T[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?T[t].push(e):k[t].push(e)})),n.length&&(j[t]=new RegExp("^("+n.join("|")+")$"))}}));const C={};let D,P,O,I,M,L,A;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=f.simpleTransform(e)),"*"===t?D=n:C[t]=n}));let E=!1;U();const R=new s.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&U(),L)return void A++;const s=new y(e,n);O.push(s);let i=!1;const c=!!s.text;let u;if(p(C,e)&&(u=C[e](e,n),s.attribs=n=u.attribs,void 0!==u.text&&(s.innerText=u.text),e!==u.tagName&&(s.name=e=u.tagName,M[P]=u.tagName)),D&&(u=D(e,n),s.attribs=n=u.attribs,e!==u.tagName&&(s.name=e=u.tagName,M[P]=u.tagName)),(!x(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(p(e,t))return!1;return!0}(I)||null!=t.nestingLimit&&P>=t.nestingLimit)&&(i=!0,I[P]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==_.indexOf(e)&&(L=!0,A=1),I[P]=!0),P++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(s.innerText&&!c){const n=N(s.innerText);t.textFilter?b+=t.textFilter(n,e):b+=N(s.innerText),E=!0}return}v=b,b=""}b+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(s.innerText=""),(!S||p(S,e)||S["*"])&&d(n,(function(n,i){if(!m.test(i))return void delete s.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete s.attribs[i];let c=!1;if(!S||p(S,e)&&-1!==S[e].indexOf(i)||S["*"]&&-1!==S["*"].indexOf(i)||p(w,e)&&w[e].test(i)||w["*"]&&w["*"].test(i))c=!0;else if(S&&S[e])for(const t of S[e])if(a(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const s=n.split(" ");for(const n of s)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&F(e,n))return void delete s.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const s=Y(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===s.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return s.url.hostname===e||s.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete s.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const s=Y(n);if(s.isRelativeUrl)e=p(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===s.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return s.url.hostname===e||s.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete s.attribs[i]}if("srcset"===i)try{let e=o(n);if(e.forEach((function(e){F("srcset",e.url)&&(e.evil=!0)})),e=h(e,(function(e){return!e.evil})),!e.length)return void delete s.attribs[i];n=h(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),s.attribs[i]=n}catch(e){return void delete s.attribs[i]}if("class"===i){const t=k[e],a=k["*"],o=j[e],l=T[e],c=T["*"],p=[o,j["*"]].concat(l,c).filter((function(e){return e}));if(!(u=n,d=t&&a?r(t,a):t||a,f=p,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||f.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete s.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let s;return s=t[n.selector]&&t["*"]?r(t[n.selector],t["*"]):t[n.selector]||t["*"],s&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return p(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(s),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete s.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete s.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");b+=" "+i,n&&n.length?b+='="'+N(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(b+='=""')}else delete s.attribs[i];var u,d,f})),-1!==t.selfClosing.indexOf(e)?b+=" />":(b+=">",!s.innerText||c||t.textFilter||(b+=N(s.innerText),E=!0)),i&&(b=v+N(b),v="")},ontext:function(e){if(L)return;const n=O[O.length-1];let s;if(n&&(s=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||x(s))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==s&&"style"!==s){const n=N(e,!1);t.textFilter&&!E?b+=t.textFilter(n,s):E||(b+=n)}else b+=e;else e="";O.length&&(O[O.length-1].text+=e)},onclosetag:function(e,n){if(L){if(A--,A)return;L=!1}const s=O.pop();if(!s)return;if(s.tag!==e)return void O.push(s);L=!!t.enforceHtmlBoundary&&"html"===e,P--;const i=I[P];if(i){if(delete I[P],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void s.updateParentNodeText();v=b,b=""}M[P]&&(e=M[P],delete M[P]),t.exclusiveFilter&&t.exclusiveFilter(s)?b=b.substr(0,s.tagPosition):(s.updateParentNodeMediaChildren(),s.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!x(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(b=v,v=""):(b+="</"+e+">",i&&(b=v+N(b),v=""),E=!1))}},t.parser);return R.write(e),R.end(),b;function U(){b="",P=0,O=[],I={},M={},L=!1,A=0}function N(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function F(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const s=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!s)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=s[1].toLowerCase();return p(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function Y(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const g={decodeEntities:!0};f.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},f.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(s,i){let a;if(n)for(a in t)i[a]=t[a];else i=t;return{tagName:e,attribs:i}}}},8995:(e,t,n)=>{"use strict";let s=n(5718);class i extends s{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=i,i.default=i,s.registerAtRule(i)},80728:(e,t,n)=>{"use strict";let s=n(24261);class i extends s{constructor(e){super(e),this.type="comment"}}e.exports=i,i.default=i},5718:(e,t,n)=>{"use strict";let s,i,a,r,o=n(80728),l=n(54497),c=n(24261),{isClean:u,my:d}=n(87396);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class m extends c{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[s]+=1;return delete this.indexes[s],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let e of i)this.proxyOf.nodes.splice(s+1,0,e);for(let e in this.indexes)n=this.indexes[e],s<n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}insertBefore(e,t){let n,s=this.index(e),i=0===s&&"prepend",a=this.normalize(t,this.proxyOf.nodes[s],i).reverse();s=this.index(e);for(let e of a)this.proxyOf.nodes.splice(s,0,e);for(let e in this.indexes)n=this.indexes[e],s<=n&&(this.indexes[e]=n+a.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(i(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new r(e)];else if(e.name)e=[new s(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new o(e)]}return e.map((e=>(e[d]||m.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&h(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let s;try{s=e(t,n)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("atrule"===n.type&&e.test(n.name))return t(n,s)})):this.walk(((n,s)=>{if("atrule"===n.type&&n.name===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("decl"===n.type&&e.test(n.prop))return t(n,s)})):this.walk(((n,s)=>{if("decl"===n.type&&n.prop===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("rule"===n.type&&e.test(n.selector))return t(n,s)})):this.walk(((n,s)=>{if("rule"===n.type&&n.selector===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}m.registerParse=e=>{i=e},m.registerRule=e=>{r=e},m.registerAtRule=e=>{s=e},m.registerRoot=e=>{a=e},e.exports=m,m.default=m,m.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,o.prototype):"root"===e.type&&Object.setPrototypeOf(e,a.prototype),e[d]=!0,e.nodes&&e.nodes.forEach((e=>{m.rebuild(e)}))}},44371:(e,t,n)=>{"use strict";let s=n(48633),i=n(9049);class a extends Error{constructor(e,t,n,s,i,r){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),s&&(this.source=s),r&&(this.plugin=r),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,a)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=s.isColorSupported);let n=e=>e,a=e=>e,r=e=>e;if(e){let{bold:e,gray:t,red:o}=s.createColors(!0);a=t=>e(o(t)),n=e=>t(e),i&&(r=e=>i(e))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),u=String(c).length;return o.slice(l,c).map(((e,t)=>{let s=l+1+t,i=" "+(" "+s).slice(-u)+" | ";if(s===this.line){if(e.length>160){let t=20,s=Math.max(0,this.column-t),o=Math.max(this.column+t,this.endColumn+t),l=e.slice(s,o),c=n(i.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return a(">")+n(i)+r(l)+"\n "+c+a("^")}let t=n(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+n(i)+r(e)+"\n "+t+a("^")}return" "+n(i)+r(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=a,a.default=a},54497:(e,t,n)=>{"use strict";let s=n(24261);class i extends s{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=i,i.default=i},93272:(e,t,n)=>{"use strict";let s,i,a=n(5718);class r extends a{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new s(new i,this,e).stringify()}}r.registerLazyResult=e=>{s=e},r.registerProcessor=e=>{i=e},e.exports=r,r.default=r},88824:(e,t,n)=>{"use strict";let s=n(8995),i=n(80728),a=n(54497),r=n(88717),o=n(59699),l=n(94845),c=n(72199);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:r.prototype};n.map&&(n.map={...n.map,__proto__:o.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new a(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new i(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},88717:(e,t,n)=>{"use strict";let{nanoid:s}=n(95042),{isAbsolute:i,resolve:a}=n(43446),{SourceMapConsumer:r,SourceMapGenerator:o}=n(57811),{fileURLToPath:l,pathToFileURL:c}=n(68462),u=n(44371),d=n(59699),p=n(9049),h=Symbol("fromOffsetCache"),m=Boolean(r&&o),f=Boolean(a&&i);class g{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!f||/^\w+:\/\//.test(t.from)||i(t.from)?this.file=t.from:this.file=a(t.from)),f&&m){let e=new d(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,s={}){let i,a,r;if(t&&"object"==typeof t){let e=t,s=n;if("number"==typeof e.offset){let s=this.fromOffset(e.offset);t=s.line,n=s.col}else t=e.line,n=e.column;if("number"==typeof s.offset){let e=this.fromOffset(s.offset);a=e.line,i=e.col}else a=s.line,i=s.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let o=this.origin(t,n,a,i);return r=o?new u(e,void 0===o.endLine?o.line:{column:o.column,line:o.line},void 0===o.endLine?o.column:{column:o.endColumn,line:o.endLine},o.source,o.file,s.plugin):new u(e,void 0===a?t:{column:n,line:t},void 0===a?n:{column:i,line:a},this.css,this.file,s.plugin),r.input={column:n,endColumn:i,endLine:a,line:t,source:this.css},this.file&&(c&&(r.input.url=c(this.file).toString()),r.input.file=this.file),r}fromOffset(e){let t,n;if(this[h])n=this[h];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let s=0,i=e.length;s<i;s++)n[s]=t,t+=e[s].length+1;this[h]=n}t=n[n.length-1];let s=0;if(e>=t)s=n.length-1;else{let t,i=n.length-2;for(;s<i;)if(t=s+(i-s>>1),e<n[t])i=t-1;else{if(!(e>=n[t+1])){s=t;break}s=t+1}}return{col:e-n[s]+1,line:s+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let a,r,o=this.map.consumer(),u=o.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(a=o.originalPositionFor({column:s,line:n})),r=i(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:a&&a.column,endLine:a&&a.line,line:u.line,url:r.toString()};if("file:"===r.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(r)}let p=o.sourceContentFor(u.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}e.exports=g,g.default=g,p&&p.registerInput&&p.registerInput(g)},62141:(e,t,n)=>{"use strict";let s=n(5718),i=n(93272),a=n(95171),r=n(57570),o=n(88780),l=n(94845),c=n(48092),{isClean:u,my:d}=n(87396);n(5135);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return"object"==typeof e&&"function"==typeof e.then}function g(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:g(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[u]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class x{constructor(e,t,n){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof x||t instanceof o)i=v(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=r;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{i=e(t,n)}catch(e){this.processed=!0,this.error=e}i&&!i[d]&&s.rebuild(i)}else i=v(t);this.result=new o(e,i,n),this.helpers={...y,postcss:y,result:this.result},this.plugins=this.processor.plugins.map((e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!h[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if("object"==typeof t[n])for(let s in t[n])e(t,"*"===s?n:n+"-"+s.toLowerCase(),t[n][s]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(f(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(f(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new a(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(f(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,i]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return i(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let s,i=t.iterator;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[u])return s[u]=!0,void e.push(b(s));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[u]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=g(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[u]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}x.registerPostcss=e=>{y=e},e.exports=x,x.default=x,l.registerLazyResult(x),i.registerLazyResult(x)},80901:e=>{"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let s=[],i="",a=!1,r=0,o=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:o?n===l&&(o=!1):'"'===n||"'"===n?(o=!0,l=n):"("===n?r+=1:")"===n?r>0&&(r-=1):0===r&&t.includes(n)&&(a=!0),a?(""!==i&&s.push(i.trim()),i="",a=!1):i+=n;return(n||""!==i)&&s.push(i.trim()),s}};e.exports=t,t.default=t},95171:(e,t,n)=>{"use strict";let{dirname:s,relative:i,resolve:a,sep:r}=n(43446),{SourceMapConsumer:o,SourceMapGenerator:l}=n(57811),{pathToFileURL:c}=n(68462),u=n(88717),d=Boolean(o&&l),p=Boolean(s&&a&&i&&r);e.exports=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),i=e.root||s(e.file);!1===this.mapOpts.sourcesContent?(t=new o(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(i)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),p&&d&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,(t=>{e+=t})),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,s=1,i="<no source>",a={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((r,o,l)=>{if(this.css+=r,o&&"end"!==l&&(a.generated.line=n,a.generated.column=s-1,o.source&&o.source.start?(a.source=this.sourcePath(o),a.original.line=o.source.start.line,a.original.column=o.source.start.column-1,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,this.map.addMapping(a))),t=r.match(/\n/g),t?(n+=t.length,e=r.lastIndexOf("\n"),s=r.length-e):s+=r.length,o&&"start"!==l){let e=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===e.last&&!e.raws.semicolon||(o.source&&o.source.end?(a.source=this.sourcePath(o),a.original.line=o.source.end.line,a.original.column=o.source.end.column-1,a.generated.line=n,a.generated.column=s-2,this.map.addMapping(a)):(a.source=i,a.original.line=1,a.original.column=0,a.generated.line=n,a.generated.column=s-1,this.map.addMapping(a)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((e=>e.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some((e=>e.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((e=>e.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let n=this.opts.to?s(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=s(a(n,this.mapOpts.annotation)));let r=i(n,e);return this.memoizedPaths.set(e,r),r}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}}));else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk((t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,t.source.input.css)}}}));else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(c){let t=c(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===r&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},23514:(e,t,n)=>{"use strict";let s=n(95171),i=n(57570);const a=n(88780);let r=n(48092);n(5135);class o{constructor(e,t,n){let i;t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let o=r;this.result=new a(this._processor,i,this._opts),this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get:()=>l.root});let c=new s(o,i,this._opts,t);if(c.isMap()){let[e,t]=c.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else c.clearAnnotation(),this.result.css=c.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=i;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=o,o.default=o},24261:(e,t,n)=>{"use strict";let s=n(44371),i=n(48803),a=n(48092),{isClean:r,my:o}=n(87396);function l(e,t){let n=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;if("proxyCache"===s)continue;let i=e[s],a=typeof i;"parent"===s&&"object"===a?t&&(n[s]=t):"source"===s?n[s]=i:Array.isArray(i)?n[s]=i.map((e=>l(e,n))):("object"===a&&null!==i&&(i=l(i)),n[s]=i)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,s=1,i=0;for(let a=0;a<e.length;a++){if(s===t.line&&n===t.column){i=a;break}"\n"===e[a]?(n=1,s+=1):n+=1}return i}class u{constructor(e={}){this.raws={},this[r]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=l(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:n.column,line:n.line},t)}return new s(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==s&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,s="document"in this.source.input?this.source.input.document:this.source.input.css,i=c(s,this.source.start),a=i+e;for(let e=i;e<a;e++)"\n"===s[e]?(t=1,n+=1):t+=1;return{column:t,line:n}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let s="document"in this.source.input?this.source.input.document:this.source.input.css,i=s.slice(c(s,this.source.start),c(s,this.source.end)).indexOf(e.word);-1!==i&&(t=this.positionInside(i),n=this.positionInside(i+e.word.length))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return(new i).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},s=null==t;t=t||new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))n[e]=s.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof s&&s.toJSON)n[e]=s.toJSON(null,t);else if("source"===e){let a=t.get(s.input);null==a&&(a=i,t.set(s.input,i),i++),n[e]={end:s.end,inputId:a,start:s.start}}else n[e]=s}return s&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n){let s={node:this};for(let e in n)s[e]=n[e];return e.warn(t,s)}get proxyOf(){return this}}e.exports=u,u.default=u},57570:(e,t,n)=>{"use strict";let s=n(5718),i=n(88717),a=n(47826);function r(e,t){let n=new i(e,t),s=new a(n);try{s.parse()}catch(e){throw e}return s.root}e.exports=r,r.default=r,s.registerParse(r)},47826:(e,t,n)=>{"use strict";let s=n(8995),i=n(80728),a=n(54497),r=n(94845),o=n(72199),l=n(79096);const c={empty:!0,space:!0};e.exports=class{constructor(e){this.input=e,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,i,a=new s;a.name=e[1].slice(1),""===a.name&&this.unnamedAtrule(a,e),this.init(a,e[2]);let r=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){a.source.end=this.getPosition(e[2]),a.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(l.length>0){for(i=l.length-1,n=l[i];n&&"space"===n[0];)n=l[--i];n&&(a.source.end=this.getPosition(n[3]||n[2]),a.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}a.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(a.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(a,"params",l),r&&(e=l[l.length-1],a.source.end=this.getPosition(e[3]||e[2]),a.source.end.offset++,this.spaces=a.raws.between,a.raws.between="")):(a.raws.afterName="",a.params=""),o&&(a.nodes=[],this.current=a)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,s=0;for(let i=t-1;i>=0&&(n=e[i],"space"===n[0]||(s+=1,2!==s));i--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,s,i=0;for(let[a,r]of e.entries()){if(n=r,s=n[0],"("===s&&(i+=1),")"===s&&(i-=1),0===i&&":"===s){if(t){if("word"===t[0]&&"progid"===t[1])continue;return a}this.doubleColon(n)}t=n}return!1}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new a;this.init(n,e[0][2]);let s,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],s=n[3]||n[2];if(s)return s}}(e)),n.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(s=e.shift(),":"===s[0]){n.raws.between+=s[1];break}"word"===s[0]&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let r,o=[];for(;e.length&&(r=e[0][0],"space"===r||"comment"===r);)o.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(s=e[t],"!important"===s[1].toLowerCase()){n.important=!0;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s," !important"!==s&&(n.raws.important=s);break}if("important"===s[1].toLowerCase()){let s=e.slice(0),i="";for(let e=t;e>0;e--){let t=s[e][0];if(i.trim().startsWith("!")&&"space"!==t)break;i=s.pop()[1]+i}i.trim().startsWith("!")&&(n.important=!0,n.raws.important=i,e=s)}if("space"!==s[0]&&"comment"!==s[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=o.map((e=>e[1])).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,n=null,s=!1,i=null,a=[],r=e[1].startsWith("--"),o=[],l=e;for(;l;){if(n=l[0],o.push(l),"("===n||"["===n)i||(i=l),a.push("("===n?")":"]");else if(r&&s&&"{"===n)i||(i=l),a.push("}");else if(0===a.length){if(";"===n){if(s)return void this.decl(o,r);break}if("{"===n)return void this.rule(o);if("}"===n){this.tokenizer.back(o.pop()),t=!0;break}":"===n&&(s=!0)}else n===a[a.length-1]&&(a.pop(),0===a.length&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&s){if(!r)for(;o.length&&(l=o[o.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(o.pop());this.decl(o,r)}else this.unknownWord(o)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,s){let i,a,r,o,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)i=n[e],a=i[0],"space"!==a||e!==l-1||s?"comment"===a?(o=n[e-1]?n[e-1][0]:"empty",r=n[e+1]?n[e+1][0]:"empty",c[o]||c[r]||","===u.slice(-1)?d=!1:u+=i[1]):u+=i[1]:d=!1;if(!d){let s=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:s,value:u}}e[t]=u}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}},74356:(e,t,n)=>{"use strict";let s=n(8995),i=n(80728),a=n(5718),r=n(44371),o=n(54497),l=n(93272),c=n(88824),u=n(88717),d=n(62141),p=n(80901),h=n(24261),m=n(57570),f=n(97373),g=n(88780),b=n(94845),v=n(72199),y=n(48092),x=n(30037);function _(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new f(e)}_.plugin=function(e,t){let n,s=!1;function i(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=t(...n);return i.postcssPlugin=e,i.postcssVersion=(new f).version,i}return Object.defineProperty(i,"postcss",{get:()=>(n||(n=i()),n)}),i.process=function(e,t,n){return _([i(n)]).process(e,t)},i},_.stringify=y,_.parse=m,_.fromJSON=c,_.list=p,_.comment=e=>new i(e),_.atRule=e=>new s(e),_.decl=e=>new o(e),_.rule=e=>new v(e),_.root=e=>new b(e),_.document=e=>new l(e),_.CssSyntaxError=r,_.Declaration=o,_.Container=a,_.Processor=f,_.Document=l,_.Comment=i,_.Warning=x,_.AtRule=s,_.Result=g,_.Input=u,_.Rule=v,_.Root=b,_.Node=h,d.registerPostcss(_),e.exports=_,_.default=_},59699:(e,t,n)=>{"use strict";let{existsSync:s,readFileSync:i}=n(91902),{dirname:a,join:r}=n(43446),{SourceMapConsumer:o,SourceMapGenerator:l}=n(57811);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=a(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new o(this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return s=e.substr(n[0].length),Buffer?Buffer.from(s,"base64").toString():window.atob(s);var s;let i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}loadFile(e){if(this.root=a(e),s(e))return this.mapFile=e,i(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof o)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=r(a(e),t)),this.loadFile(t)}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},97373:(e,t,n)=>{"use strict";let s=n(93272),i=n(62141),a=n(23514),r=n(94845);class o{constructor(e=[]){this.version="8.5.1",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new i(this,e,t):new a(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=o,o.default=o,r.registerProcessor(o),s.registerProcessor(o)},88780:(e,t,n)=>{"use strict";let s=n(30037);class i{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new s(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}get content(){return this.css}}e.exports=i,i.default=i},94845:(e,t,n)=>{"use strict";let s,i,a=n(5718);class r extends a{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before;return s}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new s(new i,this,e).stringify()}}r.registerLazyResult=e=>{s=e},r.registerProcessor=e=>{i=e},e.exports=r,r.default=r,a.registerRoot(r)},72199:(e,t,n)=>{"use strict";let s=n(5718),i=n(80901);class a extends s{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return i.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=a,a.default=a,s.registerRule(a)},48803:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,s=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:s&&(n+=" "),e.nodes)this.block(e,n+s);else{let i=(e.raws.between||"")+(t?";":"");this.builder(n+s+i,e)}}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let s=e.parent,i=0;for(;s&&"root"!==s.type;)i+=1,s=s.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n,s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let s=0;s<e.nodes.length;s++){let i=e.nodes[s],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,t!==s||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),s=e.prop+n+this.rawValue(e,"value");e.important&&(s+=e.raws.important||" !important"),t&&(s+=";"),this.builder(s,e)}document(e){this.body(e)}raw(e,n,s){let i;if(s||(s=n),n&&(i=e.raws[n],void 0!==i))return i;let a=e.parent;if("before"===s){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return t[s];let r=e.root();if(r.rawCache||(r.rawCache={}),void 0!==r.rawCache[s])return r.rawCache[s];if("before"===s||"after"===s)return this.beforeAfter(e,s);{let t="raw"+((o=s)[0].toUpperCase()+o.slice(1));this[t]?i=this[t](r,e):r.walk((e=>{if(i=e.raws[n],void 0!==i)return!1}))}var o;return void 0===i&&(i=t[s]),r.rawCache[s]=i,i}rawBeforeClose(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk((e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1})),t}rawBeforeRule(e){let t;return e.walk((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls((e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1})),t}rawEmptyBody(e){let t;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1})),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk((n=>{let s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}})),t}rawSemicolon(e){let t;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1})),t}rawValue(e,t){let n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}}e.exports=n,n.default=n},48092:(e,t,n)=>{"use strict";let s=n(48803);function i(e,t){new s(t).stringify(e)}e.exports=i,i.default=i},87396:e=>{"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},79096:e=>{"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),s="\\".charCodeAt(0),i="/".charCodeAt(0),a="\n".charCodeAt(0),r=" ".charCodeAt(0),o="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),m="{".charCodeAt(0),f="}".charCodeAt(0),g=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),x=/[\t\n\f\r "#'()/;[\\\]{}]/g,_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,S=/.[\r\n"'(/\\]/,w=/[\da-f]/i;e.exports=function(e,k={}){let j,T,C,D,P,O,I,M,L,A,E=e.css.valueOf(),R=k.ignoreErrors,U=E.length,N=0,F=[],Y=[];function H(t){throw e.error("Unclosed "+t,N)}return{back:function(e){Y.push(e)},endOfFile:function(){return 0===Y.length&&N>=U},nextToken:function(e){if(Y.length)return Y.pop();if(N>=U)return;let k=!!e&&e.ignoreUnclosed;switch(j=E.charCodeAt(N),j){case a:case r:case l:case c:case o:D=N;do{D+=1,j=E.charCodeAt(D)}while(j===r||j===a||j===l||j===c||j===o);O=["space",E.slice(N,D)],N=D-1;break;case u:case d:case m:case f:case v:case g:case h:{let e=String.fromCharCode(j);O=[e,e,N];break}case p:if(A=F.length?F.pop()[1]:"",L=E.charCodeAt(N+1),"url"===A&&L!==t&&L!==n&&L!==r&&L!==a&&L!==l&&L!==o&&L!==c){D=N;do{if(I=!1,D=E.indexOf(")",D+1),-1===D){if(R||k){D=N;break}H("bracket")}for(M=D;E.charCodeAt(M-1)===s;)M-=1,I=!I}while(I);O=["brackets",E.slice(N,D+1),N,D],N=D}else D=E.indexOf(")",N+1),T=E.slice(N,D+1),-1===D||S.test(T)?O=["(","(",N]:(O=["brackets",T,N,D],N=D);break;case t:case n:P=j===t?"'":'"',D=N;do{if(I=!1,D=E.indexOf(P,D+1),-1===D){if(R||k){D=N+1;break}H("string")}for(M=D;E.charCodeAt(M-1)===s;)M-=1,I=!I}while(I);O=["string",E.slice(N,D+1),N,D],N=D;break;case y:x.lastIndex=N+1,x.test(E),D=0===x.lastIndex?E.length-1:x.lastIndex-2,O=["at-word",E.slice(N,D+1),N,D],N=D;break;case s:for(D=N,C=!0;E.charCodeAt(D+1)===s;)D+=1,C=!C;if(j=E.charCodeAt(D+1),C&&j!==i&&j!==r&&j!==a&&j!==l&&j!==c&&j!==o&&(D+=1,w.test(E.charAt(D)))){for(;w.test(E.charAt(D+1));)D+=1;E.charCodeAt(D+1)===r&&(D+=1)}O=["word",E.slice(N,D+1),N,D],N=D;break;default:j===i&&E.charCodeAt(N+1)===b?(D=E.indexOf("*/",N+2)+1,0===D&&(R||k?D=E.length:H("comment")),O=["comment",E.slice(N,D+1),N,D],N=D):(_.lastIndex=N+1,_.test(E),D=0===_.lastIndex?E.length-1:_.lastIndex-2,O=["word",E.slice(N,D+1),N,D],F.push(O),N=D)}return N++,O},position:function(){return N}}}},5135:e=>{"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},30037:e=>{"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=t,t.default=t},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var s=n-1>>>1,i=e[s];if(!(0<a(i,t)))break e;e[s]=t,e[n]=i,n=s}}function s(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var s=0,i=e.length,r=i>>>1;s<r;){var o=2*(s+1)-1,l=e[o],c=o+1,u=e[c];if(0>a(l,n))c<i&&0>a(u,l)?(e[s]=u,e[c]=n,s=c):(e[s]=l,e[o]=n,s=o);else{if(!(c<i&&0>a(u,n)))break e;e[s]=u,e[c]=n,s=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;t.unstable_now=function(){return r.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,p=null,h=3,m=!1,f=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=s(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=s(u)}}function _(e){if(g=!1,x(e),!f)if(null!==s(c))f=!0,L(S);else{var t=s(u);null!==t&&A(_,t.startTime-e)}}function S(e,n){f=!1,g&&(g=!1,v(T),T=-1),m=!0;var a=h;try{for(x(n),p=s(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var r=p.callback;if("function"==typeof r){p.callback=null,h=p.priorityLevel;var o=r(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?p.callback=o:p===s(c)&&i(c),x(n)}else i(c);p=s(c)}if(null!==p)var l=!0;else{var d=s(u);null!==d&&A(_,d.startTime-n),l=!1}return l}finally{p=null,h=a,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,k=!1,j=null,T=-1,C=5,D=-1;function P(){return!(t.unstable_now()-D<C)}function O(){if(null!==j){var e=t.unstable_now();D=e;var n=!0;try{n=j(!0,e)}finally{n?w():(k=!1,j=null)}}else k=!1}if("function"==typeof y)w=function(){y(O)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,M=I.port2;I.port1.onmessage=O,w=function(){M.postMessage(null)}}else w=function(){b(O,0)};function L(e){j=e,k||(k=!0,w())}function A(e,n){T=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||m||(f=!0,L(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return s(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,a){var r=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?r+a:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:o=a+o,sortIndex:-1},a>r?(e.sortIndex=a,n(u,e),null===s(c)&&e===s(u)&&(g?(v(T),T=-1):g=!0,A(_,a-r))):(e.sortIndex=o,n(c,e),f||m||(f=!0,L(S))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},69982:(e,t,n)=>{"use strict";e.exports=n(7463)},45192:(e,t,n)=>{"use strict";n(93940),t.parse=n(29563)},29563:e=>{"use strict";for(var t="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",n=new RegExp("^"+t+"$"),s="|&;()<> \\t",i=/^#$/,a="",r=0;r<4;r++)a+=(4294967296*Math.random()).toString(16);var o=new RegExp("^"+a);e.exports=function(e,r,l){var c=function(e,r,o){o||(o={});var l=o.escape||"\\",c=new RegExp(["("+t+")","((\\"+l+"['\""+s+"]|[^\\s'\""+s+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),u=function(e,t){for(var n,s=t.lastIndex,i=[];n=t.exec(e);)i.push(n),t.lastIndex===n.index&&(t.lastIndex+=1);return t.lastIndex=s,i}(e,c);if(0===u.length)return[];r||(r={});var d=!1;return u.map((function(t){var s=t[0];if(s&&!d){if(n.test(s))return{op:s};var o,c=!1,u=!1,p="",h=!1;for(o=0;o<s.length;o++){var m=s.charAt(o);if(h=h||!c&&("*"===m||"?"===m),u)p+=m,u=!1;else if(c)m===c?c=!1:"'"==c?p+=m:m===l?(o+=1,p+='"'===(m=s.charAt(o))||m===l||"$"===m?m:l+m):p+="$"===m?g():m;else if('"'===m||"'"===m)c=m;else{if(n.test(m))return{op:s};if(i.test(m)){d=!0;var f={comment:e.slice(t.index+o+1)};return p.length?[p,f]:[f]}m===l?u=!0:p+="$"===m?g():m}}return h?{op:"glob",pattern:p}:p}function g(){var e,t;o+=1;var n=s.charAt(o);if("{"===n){if(o+=1,"}"===s.charAt(o))throw new Error("Bad substitution: "+s.slice(o-2,o+1));if((e=s.indexOf("}",o))<0)throw new Error("Bad substitution: "+s.slice(o));t=s.slice(o,e),o=e}else if(/[*@#?$!_-]/.test(n))t=n,o+=1;else{var i=s.slice(o);(e=i.match(/[^\w\d_]/))?(t=i.slice(0,e.index),o+=e.index-1):(t=i,o=s.length)}return function(e,t,n){var s="function"==typeof e?e(n):e[n];return void 0===s&&""!=n?s="":void 0===s&&(s="$"),"object"==typeof s?""+a+JSON.stringify(s)+a:""+s}(r,0,t)}})).reduce((function(e,t){return void 0===t?e:e.concat(t)}),[])}(e,r,l);return"function"!=typeof r?c:c.reduce((function(e,t){if("object"==typeof t)return e.concat(t);var n=t.split(RegExp("("+a+".*?"+a+")","g"));return 1===n.length?e.concat(n[0]):e.concat(n.filter(Boolean).map((function(e){return o.test(e)?JSON.parse(e.split(a)[1]):e})))}),[])}},93940:e=>{"use strict";e.exports=function(e){return e.map((function(e){return""===e?"''":e&&"object"==typeof e?e.op.replace(/(.)/g,"\\$1"):/["\s]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['\\])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")})).join(" ")}},14803:(e,t,n)=>{"use strict";var s=n(58859),i=n(69675),a=function(e,t,n){for(var s,i=e;null!=(s=i.next);i=s)if(s.key===t)return i.next=s.next,n||(s.next=e.next,e.next=s),s};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+s(e))},delete:function(t){var n=e&&e.next,s=function(e,t){if(e)return a(e,t,!0)}(e,t);return s&&n&&n===s&&(e=void 0),!!s},get:function(t){return function(e,t){if(e){var n=a(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!a(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var s=a(e,t);s?s.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},80507:(e,t,n)=>{"use strict";var s=n(70453),i=n(36556),a=n(58859),r=n(69675),o=s("%Map%",!0),l=i("Map.prototype.get",!0),c=i("Map.prototype.set",!0),u=i("Map.prototype.has",!0),d=i("Map.prototype.delete",!0),p=i("Map.prototype.size",!0);e.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+a(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new o),c(e,t,n)}};return t}},72271:(e,t,n)=>{"use strict";var s=n(70453),i=n(36556),a=n(58859),r=n(80507),o=n(69675),l=s("%WeakMap%",!0),c=i("WeakMap.prototype.get",!0),u=i("WeakMap.prototype.set",!0),d=i("WeakMap.prototype.has",!0),p=i("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(r&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,s){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,s)):r&&(t||(t=r()),t.set(n,s))}};return n}:r},920:(e,t,n)=>{"use strict";var s=n(69675),i=n(58859),a=n(14803),r=n(80507),o=n(72271)||r||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=o()),e.set(t,n)}};return t}},38338:function(e,t){var n,s;s=this,void 0===(n=function(){return s.svg4everybody=function(){function e(e,t,n){if(n){var s=document.createDocumentFragment(),i=!t.hasAttribute("viewBox")&&n.getAttribute("viewBox");i&&t.setAttribute("viewBox",i);for(var a=n.cloneNode(!0);a.childNodes.length;)s.appendChild(a.firstChild);e.appendChild(s)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var n=t._cachedDocument;n||((n=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map((function(s){var i=t._cachedTarget[s.id];i||(i=t._cachedTarget[s.id]=n.getElementById(s.id)),e(s.parent,s.svg,i)}))}},t.onreadystatechange()}function n(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return function(s){var i,a=Object(s),r=window.top!==window.self;i="polyfill"in a?a.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&r;var o={},l=window.requestAnimationFrame||setTimeout,c=document.getElementsByTagName("use"),u=0;i&&function s(){for(var r=0;r<c.length;){var d=c[r],p=d.parentNode,h=n(p),m=d.getAttribute("xlink:href")||d.getAttribute("href");if(!m&&a.attributeName&&(m=d.getAttribute(a.attributeName)),h&&m){if(i)if(!a.validate||a.validate(m,h,d)){p.removeChild(d);var f=m.split("#"),g=f.shift(),b=f.join("#");if(g.length){var v=o[g];v||((v=o[g]=new XMLHttpRequest).open("GET",g),v.send(),v._embeds=[]),v._embeds.push({parent:p,svg:h,id:b}),t(v)}else e(p,h,document.getElementById(b))}else++r,++u}else++r}(!c.length||c.length-u>0)&&l(s,67)}()}}()}.apply(t,[]))||(e.exports=n)},16426:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],s=0;s<e.rangeCount;s++)n.push(e.getRangeAt(s));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},21430:function(e,t,n){var s,i;!function(a,r){"use strict";e.exports?e.exports=r():void 0===(i="function"==typeof(s=r)?s.call(t,n,t,e):s)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,s=e.toLowerCase().split(":"),i=s.length,a=8;for(""===s[0]&&""===s[1]&&""===s[2]?(s.shift(),s.shift()):""===s[0]&&""===s[1]?s.shift():""===s[i-1]&&""===s[i-2]&&s.pop(),-1!==s[(i=s.length)-1].indexOf(".")&&(a=7),t=0;t<i&&""!==s[t];t++);if(t<a)for(s.splice(t,1,"0000");s.length<a;)s.splice(t,0,"0000");for(var r=0;r<a;r++){n=s[r].split("");for(var o=0;o<3&&"0"===n[0]&&n.length>1;o++)n.splice(0,1);s[r]=n.join("")}var l=-1,c=0,u=0,d=-1,p=!1;for(r=0;r<a;r++)p?"0"===s[r]?u+=1:(p=!1,u>c&&(l=d,c=u)):"0"===s[r]&&(p=!0,d=r,u=1);u>c&&(l=d,c=u),c>1&&s.splice(l,c,""),i=s.length;var h="";for(""===s[0]&&(h=":"),r=0;r<i&&(h+=s[r],r!==i-1);r++)h+=":";return""===s[i-1]&&(h+=":"),h},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},4704:function(e,t,n){var s,i;!function(a,r){"use strict";e.exports?e.exports=r():void 0===(i="function"==typeof(s=r)?s.call(t,n,t,e):s)||(e.exports=i)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var s=e.lastIndexOf(".",t-1);if(s<=0||s>=t-1)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(s+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var s=n.list[e.slice(t+1)];return!!s&&s.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var s=e.lastIndexOf(".",t-1);if(s<=0||s>=t-1)return null;var i=n.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(s+1,t)+" ")<0?null:e.slice(s+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},84193:function(e,t,n){var s,i,a;!function(r,o){"use strict";e.exports?e.exports=o(n(39340),n(21430),n(4704)):(i=[n(39340),n(21430),n(4704)],void 0===(a="function"==typeof(s=o)?s.apply(t,i):s)||(e.exports=a))}(0,(function(e,t,n,s){"use strict";var i=s&&s.URI;function a(e,t){var n=arguments.length>=1;if(!(this instanceof a))return n?arguments.length>=2?new a(e,t):new a(e):new a;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}a.version="1.19.11";var r=a.prototype,o=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function u(e){return"Array"===c(e)}function d(e,t){var n,s,i={};if("RegExp"===c(t))i=null;else if(u(t))for(n=0,s=t.length;n<s;n++)i[t[n]]=!0;else i[t]=!0;for(n=0,s=e.length;n<s;n++)(i&&void 0!==i[e[n]]||!i&&t.test(e[n]))&&(e.splice(n,1),s--,n--);return e}function p(e,t){var n,s;if(u(t)){for(n=0,s=t.length;n<s;n++)if(!p(e,t[n]))return!1;return!0}var i=c(t);for(n=0,s=e.length;n<s;n++)if("RegExp"===i){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function h(e,t){if(!u(e)||!u(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,s=e.length;n<s;n++)if(e[n]!==t[n])return!1;return!0}function m(e){return e.replace(/^\/+|\/+$/g,"")}function f(e){return escape(e)}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,f).replace(/\*/g,"%2A")}a._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:a.preventInvalidHostname,duplicateQueryParameters:a.duplicateQueryParameters,escapeQuerySpace:a.escapeQuerySpace}},a.preventInvalidHostname=!1,a.duplicateQueryParameters=!1,a.escapeQuerySpace=!0,a.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,a.idn_expression=/[^a-z0-9\._-]/i,a.punycode_expression=/(xn--)/i,a.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,a.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,a.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,a.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},a.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,a.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},a.hostProtocols=["http","https"],a.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,a.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},a.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return a.domAttributes[t]}},a.encode=g,a.decode=decodeURIComponent,a.iso8859=function(){a.encode=escape,a.decode=unescape},a.unicode=function(){a.encode=g,a.decode=decodeURIComponent},a.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},a.encodeQuery=function(e,t){var n=a.encode(e+"");return void 0===t&&(t=a.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},a.decodeQuery=function(e,t){e+="",void 0===t&&(t=a.escapeQuerySpace);try{return a.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var b,v={encode:"encode",decode:"decode"},y=function(e,t){return function(n){try{return a[t](n+"").replace(a.characters[e][t].expression,(function(n){return a.characters[e][t].map[n]}))}catch(e){return n}}};for(b in v)a[b+"PathSegment"]=y("pathname",v[b]),a[b+"UrnPathSegment"]=y("urnpath",v[b]);var x=function(e,t,n){return function(s){var i;i=n?function(e){return a[t](a[n](e))}:a[t];for(var r=(s+"").split(e),o=0,l=r.length;o<l;o++)r[o]=i(r[o]);return r.join(e)}};function _(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function S(e,t){return function(n,s){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!s),this)}}a.decodePath=x("/","decodePathSegment"),a.decodeUrnPath=x(":","decodeUrnPathSegment"),a.recodePath=x("/","encodePathSegment","decode"),a.recodeUrnPath=x(":","encodeUrnPathSegment","decode"),a.encodeReserved=y("reserved","encode"),a.parse=function(e,t){var n;return t||(t={preventInvalidHostname:a.preventInvalidHostname}),(n=(e=(e=e.replace(a.leading_whitespace_expression,"")).replace(a.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=a.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(a.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=a.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},a.parseHost=function(e,t){e||(e="");var n,s,i=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var r=e.indexOf(":"),o=e.indexOf("/"),l=e.indexOf(":",r+1);-1!==l&&(-1===o||l<o)?(t.hostname=e.substring(0,i)||null,t.port=null):(s=e.substring(0,i).split(":"),t.hostname=s[0]||null,t.port=s[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),t.preventInvalidHostname&&a.ensureValidHostname(t.hostname,t.protocol),t.port&&a.ensureValidPort(t.port),e.substring(i)||"/"},a.parseAuthority=function(e,t){return e=a.parseUserinfo(e,t),a.parseHost(e,t)},a.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var s,i=e.indexOf("/"),r=e.lastIndexOf("@",i>-1?i:e.length-1);return r>-1&&(-1===i||r<i)?(s=e.substring(0,r).split(":"),t.username=s[0]?a.decode(s[0]):null,s.shift(),t.password=s[0]?a.decode(s.join(":")):null,e=n.substring(r+1)):(t.username=null,t.password=null),e},a.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,s,i,r={},l=e.split("&"),c=l.length,u=0;u<c;u++)n=l[u].split("="),s=a.decodeQuery(n.shift(),t),i=n.length?a.decodeQuery(n.join("="),t):null,"__proto__"!==s&&(o.call(r,s)?("string"!=typeof r[s]&&null!==r[s]||(r[s]=[r[s]]),r[s].push(i)):r[s]=i);return r},a.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=a.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},a.buildHost=function(e){var t="";return e.hostname?(a.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},a.buildAuthority=function(e){return a.buildUserinfo(e)+a.buildHost(e)},a.buildUserinfo=function(e){var t="";return e.username&&(t+=a.encode(e.username)),e.password&&(t+=":"+a.encode(e.password)),t&&(t+="@"),t},a.buildQuery=function(e,t,n){var s,i,r,l,c="";for(i in e)if("__proto__"!==i&&o.call(e,i))if(u(e[i]))for(s={},r=0,l=e[i].length;r<l;r++)void 0!==e[i][r]&&void 0===s[e[i][r]+""]&&(c+="&"+a.buildQueryParameter(i,e[i][r],n),!0!==t&&(s[e[i][r]+""]=!0));else void 0!==e[i]&&(c+="&"+a.buildQueryParameter(i,e[i],n));return c.substring(1)},a.buildQueryParameter=function(e,t,n){return a.encodeQuery(e,n)+(null!==t?"="+a.encodeQuery(t,n):"")},a.addQuery=function(e,t,n){if("object"==typeof t)for(var s in t)o.call(t,s)&&a.addQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),u(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},a.setQuery=function(e,t,n){if("object"==typeof t)for(var s in t)o.call(t,s)&&a.setQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},a.removeQuery=function(e,t,n){var s,i,r;if(u(t))for(s=0,i=t.length;s<i;s++)e[t[s]]=void 0;else if("RegExp"===c(t))for(r in e)t.test(r)&&(e[r]=void 0);else if("object"==typeof t)for(r in t)o.call(t,r)&&a.removeQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===c(n)?!u(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=d(e[t],n):e[t]!==String(n)||u(n)&&1!==n.length?u(e[t])&&(e[t]=d(e[t],n)):e[t]=void 0:e[t]=void 0}},a.hasQuery=function(e,t,n,s){switch(c(t)){case"String":break;case"RegExp":for(var i in e)if(o.call(e,i)&&t.test(i)&&(void 0===n||a.hasQuery(e,i,n)))return!0;return!1;case"Object":for(var r in t)if(o.call(t,r)&&!a.hasQuery(e,r,t[r]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(u(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!u(e[t])&&(s?p:h)(e[t],n);case"RegExp":return u(e[t])?!!s&&p(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return u(e[t])?!!s&&p(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},a.joinPaths=function(){for(var e=[],t=[],n=0,s=0;s<arguments.length;s++){var i=new a(arguments[s]);e.push(i);for(var r=i.segment(),o=0;o<r.length;o++)"string"==typeof r[o]&&t.push(r[o]),r[o]&&n++}if(!t.length||!n)return new a("");var l=new a("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||l.path("/"+l.path()),l.normalize()},a.commonPath=function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},a.withinString=function(e,t,n){n||(n={});var s=n.start||a.findUri.start,i=n.end||a.findUri.end,r=n.trim||a.findUri.trim,o=n.parens||a.findUri.parens,l=/[a-z0-9-]=["']?$/i;for(s.lastIndex=0;;){var c=s.exec(e);if(!c)break;var u=c.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&l.test(d))continue}for(var p=u+e.slice(u).search(i),h=e.slice(u,p),m=-1;;){var f=o.exec(h);if(!f)break;var g=f.index+f[0].length;m=Math.max(m,g)}if(!((h=m>-1?h.slice(0,m)+h.slice(m).replace(r,""):h.replace(r,"")).length<=c[0].length||n.ignore&&n.ignore.test(h))){var b=t(h,u,p=u+h.length,e);void 0!==b?(b=String(b),e=e.slice(0,u)+b+e.slice(p),s.lastIndex=u+b.length):s.lastIndex=p}}return s.lastIndex=0,e},a.ensureValidHostname=function(t,n){var s=!!t,i=!1;if(!!n&&(i=p(a.hostProtocols,n)),i&&!s)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(a.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(a.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},a.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},a.noConflict=function(e){if(e){var t={URI:this.noConflict()};return s.URITemplate&&"function"==typeof s.URITemplate.noConflict&&(t.URITemplate=s.URITemplate.noConflict()),s.IPv6&&"function"==typeof s.IPv6.noConflict&&(t.IPv6=s.IPv6.noConflict()),s.SecondLevelDomains&&"function"==typeof s.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=s.SecondLevelDomains.noConflict()),t}return s.URI===this&&(s.URI=i),this},r.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=a.build(this._parts),this._deferred_build=!1),this},r.clone=function(){return new a(this)},r.valueOf=r.toString=function(){return this.build(!1)._string},r.protocol=_("protocol"),r.username=_("username"),r.password=_("password"),r.hostname=_("hostname"),r.port=_("port"),r.query=S("query","?"),r.fragment=S("fragment","#"),r.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},r.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},r.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?a.decodeUrnPath:a.decodePath)(n):n}return this._parts.urn?this._parts.path=e?a.recodeUrnPath(e):"":this._parts.path=e?a.recodePath(e):"/",this.build(!t),this},r.path=r.pathname,r.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=a._parts();var s=e instanceof a,i="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[a.getDomAttribute(e)]||"",i=!1),!s&&i&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=a.parse(String(e),this._parts);else{if(!s&&!i)throw new TypeError("invalid input");var r=s?e._parts:e;for(n in r)"query"!==n&&o.call(this._parts,n)&&(this._parts[n]=r[n]);r.query&&this.query(r.query,!1)}return this.build(!t),this},r.is=function(e){var t=!1,s=!1,i=!1,r=!1,o=!1,l=!1,c=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,s=a.ip4_expression.test(this._parts.hostname),i=a.ip6_expression.test(this._parts.hostname),o=(r=!(t=s||i))&&n&&n.has(this._parts.hostname),l=r&&a.idn_expression.test(this._parts.hostname),c=r&&a.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return r;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return s;case"ip6":case"ipv6":case"inet6":return i;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var w=r.protocol,k=r.port,j=r.hostname;r.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(a.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return w.call(this,e,t)},r.scheme=r.protocol,r.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),a.ensureValidPort(e))),k.call(this,e,t))},r.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==a.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&a.ensureValidHostname(e,this._parts.protocol)}return j.call(this,e,t)},r.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var s=a(e);return this.protocol(s.protocol()).authority(s.authority()).build(!t),this},r.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildHost(this._parts):"";if("/"!==a.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},r.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?a.buildAuthority(this._parts):"";if("/"!==a.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},r.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=a.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),a.parseUserinfo(e,this._parts),this.build(!t),this},r.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=a.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},r.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var s=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,s),r=new RegExp("^"+l(i));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&a.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(r,e),this.build(!t),this},r.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var s=this._parts.hostname.length-this.tld(t).length-1;return s=this._parts.hostname.lastIndexOf(".",s-1)+1,this._parts.hostname.substring(s)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(a.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var i=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},r.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var s=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(s+1);return!0!==t&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var a;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');a=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");a=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},r.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,s=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?a.decodePath(s):s}var i=this._parts.path.length-this.filename().length,r=this._parts.path.substring(0,i),o=new RegExp("^"+l(r));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!t),this},r.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),s=this._parts.path.substring(n+1);return e?a.decodePathSegment(s):s}var i=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(i=!0);var r=new RegExp(l(this.filename())+"$");return e=a.recodePath(e),this._parts.path=this._parts.path.replace(r,e),i?this.normalizePath(t):this.build(!t),this},r.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,s,i=this.filename(),r=i.lastIndexOf(".");return-1===r?"":(n=i.substring(r+1),s=/^[a-z0-9%]+$/i.test(n)?n:"",e?a.decodePathSegment(s):s)}"."===e.charAt(0)&&(e=e.substring(1));var o,c=this.suffix();if(c)o=e?new RegExp(l(c)+"$"):new RegExp(l("."+c)+"$");else{if(!e)return this;this._parts.path+="."+a.recodePath(e)}return o&&(e=a.recodePath(e),this._parts.path=this._parts.path.replace(o,e)),this.build(!t),this},r.segment=function(e,t,n){var s=this._parts.urn?":":"/",i=this.path(),a="/"===i.substring(0,1),r=i.split(s);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&r.shift(),e<0&&(e=Math.max(r.length+e,0)),void 0===t)return void 0===e?r:r[e];if(null===e||void 0===r[e])if(u(t)){r=[];for(var o=0,l=t.length;o<l;o++)(t[o].length||r.length&&r[r.length-1].length)&&(r.length&&!r[r.length-1].length&&r.pop(),r.push(m(t[o])))}else(t||"string"==typeof t)&&(t=m(t),""===r[r.length-1]?r[r.length-1]=t:r.push(t));else t?r[e]=m(t):r.splice(e,1);return a&&r.unshift(""),this.path(r.join(s),n)},r.segmentCoded=function(e,t,n){var s,i,r;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(u(s=this.segment(e,t,n)))for(i=0,r=s.length;i<r;i++)s[i]=a.decode(s[i]);else s=void 0!==s?a.decode(s):void 0;return s}if(u(t))for(i=0,r=t.length;i<r;i++)t[i]=a.encode(t[i]);else t="string"==typeof t||t instanceof String?a.encode(t):t;return this.segment(e,t,n)};var T=r.query;return r.query=function(e,t){if(!0===e)return a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace),s=e.call(this,n);return this._parts.query=a.buildQuery(s||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=a.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):T.call(this,e,t)},r.setQuery=function(e,t,n){var s=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)s[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in e)o.call(e,i)&&(s[i]=e[i])}return this._parts.query=a.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.addQuery=function(e,t,n){var s=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.addQuery(s,e,void 0===t?null:t),this._parts.query=a.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.removeQuery=function(e,t,n){var s=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.removeQuery(s,e,t),this._parts.query=a.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.hasQuery=function(e,t,n){var s=a.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return a.hasQuery(s,e,t,n)},r.setSearch=r.setQuery,r.addSearch=r.addQuery,r.removeSearch=r.removeQuery,r.hasSearch=r.hasQuery,r.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},r.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},r.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},r.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===a.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},r.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=a.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var s,i,r="";for("/"!==(n=a.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(r=n.substring(1).match(/^(\.\.\/)+/)||"")&&(r=r[0]);-1!==(s=n.search(/\/\.\.(\/|$)/));)0!==s?(-1===(i=n.substring(0,s).lastIndexOf("/"))&&(i=s),n=n.substring(0,i)+n.substring(s+3)):n=n.substring(3);return t&&this.is("relative")&&(n=r+n.substring(1)),this._parts.path=n,this.build(!e),this},r.normalizePathname=r.normalizePath,r.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(a.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},r.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},r.normalizeSearch=r.normalizeQuery,r.normalizeHash=r.normalizeFragment,r.iso8859=function(){var e=a.encode,t=a.decode;a.encode=escape,a.decode=decodeURIComponent;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},r.unicode=function(){var e=a.encode,t=a.decode;a.encode=g,a.decode=unescape;try{this.normalize()}finally{a.encode=e,a.decode=t}return this},r.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var s="",i=0,r=t._parts.query.split("&"),o=r.length;i<o;i++){var l=(r[i]||"").split("=");s+="&"+a.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==l[1]&&(s+="="+a.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+s.substring(1)}return n+a.decodeQuery(t.hash(),!0)},r.absoluteTo=function(e){var t,n,s,i=this.clone(),r=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof a||(e=new a(e)),i._parts.protocol)return i;if(i._parts.protocol=e._parts.protocol,this._parts.hostname)return i;for(n=0;s=r[n];n++)i._parts[s]=e._parts[s];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),i._parts.path=(t?t+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=e._parts.path,i._parts.query||(i._parts.query=e._parts.query)),i.build(),i},r.relativeTo=function(e){var t,n,s,i,r,o=this.clone().normalize();if(o._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new a(e).normalize(),t=o._parts,n=e._parts,i=o.path(),r=e.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==r.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return o.build();if(null!==t.protocol||null!==t.username||null!==t.password)return o.build();if(t.hostname!==n.hostname||t.port!==n.port)return o.build();if(t.hostname=null,t.port=null,i===r)return t.path="",o.build();if(!(s=a.commonPath(i,r)))return o.build();var l=n.path.substring(s.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=l+t.path.substring(s.length)||"./",o.build()},r.equals=function(e){var t,n,s,i,r,l=this.clone(),c=new a(e),d={};if(l.normalize(),c.normalize(),l.toString()===c.toString())return!0;if(s=l.query(),i=c.query(),l.query(""),c.query(""),l.toString()!==c.toString())return!1;if(s.length!==i.length)return!1;for(r in t=a.parseQuery(s,this._parts.escapeQuerySpace),n=a.parseQuery(i,this._parts.escapeQuerySpace),t)if(o.call(t,r)){if(u(t[r])){if(!h(t[r],n[r]))return!1}else if(t[r]!==n[r])return!1;d[r]=!0}for(r in n)if(o.call(n,r)&&!d[r])return!1;return!0},r.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},r.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},r.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},a}))},39340:function(e,t,n){var s;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var i="object"==typeof n.g&&n.g;i.global!==i&&i.window!==i&&i.self;var a,r=2147483647,o=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function f(e,t){for(var n=e.length,s=[];n--;)s[n]=t(e[n]);return s}function g(e,t){var n=e.split("@"),s="";return n.length>1&&(s=n[0]+"@",e=n[1]),s+f((e=e.replace(u,".")).split("."),t).join(".")}function b(e){for(var t,n,s=[],i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<a?56320==(64512&(n=e.charCodeAt(i++)))?s.push(((1023&t)<<10)+(1023&n)+65536):(s.push(t),i--):s.push(t);return s}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function x(e,t,n){var s=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;s+=o)e=p(e/35);return p(s+36*e/(e+38))}function _(e){var t,n,s,i,a,l,c,u,d,h,f,g=[],b=e.length,y=0,_=128,S=72;for((n=e.lastIndexOf("-"))<0&&(n=0),s=0;s<n;++s)e.charCodeAt(s)>=128&&m("not-basic"),g.push(e.charCodeAt(s));for(i=n>0?n+1:0;i<b;){for(a=y,l=1,c=o;i>=b&&m("invalid-input"),((u=(f=e.charCodeAt(i++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:o)>=o||u>p((r-y)/l))&&m("overflow"),y+=u*l,!(u<(d=c<=S?1:c>=S+26?26:c-S));c+=o)l>p(r/(h=o-d))&&m("overflow"),l*=h;S=x(y-a,t=g.length+1,0==a),p(y/t)>r-_&&m("overflow"),_+=p(y/t),y%=t,g.splice(y++,0,_)}return v(g)}function S(e){var t,n,s,i,a,l,c,u,d,f,g,v,_,S,w,k=[];for(v=(e=b(e)).length,t=128,n=0,a=72,l=0;l<v;++l)(g=e[l])<128&&k.push(h(g));for(s=i=k.length,i&&k.push("-");s<v;){for(c=r,l=0;l<v;++l)(g=e[l])>=t&&g<c&&(c=g);for(c-t>p((r-n)/(_=s+1))&&m("overflow"),n+=(c-t)*_,t=c,l=0;l<v;++l)if((g=e[l])<t&&++n>r&&m("overflow"),g==t){for(u=n,d=o;!(u<(f=d<=a?1:d>=a+26?26:d-a));d+=o)w=u-f,S=o-f,k.push(h(y(f+w%S,0))),u=p(w/S);k.push(h(y(u,0))),a=x(n,_,s==i),n=0,++s}++n,++t}return k.join("")}a={version:"1.3.2",ucs2:{decode:b,encode:v},decode:_,encode:S,toASCII:function(e){return g(e,(function(e){return c.test(e)?"xn--"+S(e):e}))},toUnicode:function(e){return g(e,(function(e){return l.test(e)?_(e.slice(4).toLowerCase()):e}))}},void 0===(s=function(){return a}.call(t,n,t,e))||(e.exports=s)}()},58493:(e,t,n)=>{"use strict";var s=n(96540),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=s.useState,r=s.useEffect,o=s.useLayoutEffect,l=s.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=a({inst:{value:n,getSnapshot:t}}),i=s[0].inst,u=s[1];return o((function(){i.value=n,i.getSnapshot=t,c(i)&&u({inst:i})}),[e,n,t]),r((function(){return c(i)&&u({inst:i}),e((function(){c(i)&&u({inst:i})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:u},22162:(e,t,n)=>{"use strict";var s=n(96540),i=n(19888),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=i.useSyncExternalStore,o=s.useRef,l=s.useEffect,c=s.useMemo,u=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,i){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,r=e,e=s(e),void 0!==i&&p.hasValue){var t=p.value;if(i(t,e))return o=t}return o=e}if(t=o,a(r,e))return t;var n=s(e);return void 0!==i&&i(t,n)?(r=e,t):(r=e,o=n)}var r,o,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,s,i]);var h=r(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},19888:(e,t,n)=>{"use strict";e.exports=n(58493)},69242:(e,t,n)=>{"use strict";e.exports=n(22162)},42634:()=>{},9049:()=>{},91902:()=>{},43446:()=>{},57811:()=>{},68462:()=>{},46942:(e,t)=>{var n;!function(){"use strict";var s={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)s.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},16036:(e,t,n)=>{"use strict";var s=n(19725);n(3362),n(26099),n(26148),n(46058),n(80081),n(95115),n(17978),n(6986),n(88177),n(54151),n(72400),n(73677),n(85901),e.exports=s},40188:(e,t,n)=>{"use strict";var s=n(57919);e.exports=s},26404:(e,t,n)=>{"use strict";var s=n(69609);e.exports=s},68211:(e,t,n)=>{"use strict";var s=n(29326);e.exports=s},53837:(e,t,n)=>{"use strict";var s=n(56344);n(43375),n(39225),n(13972),n(99209),n(25714),n(17561),n(66197),e.exports=s},29933:(e,t,n)=>{"use strict";var s=n(40160);e.exports=s},85448:(e,t,n)=>{"use strict";var s=n(12841);e.exports=s},45666:(e,t,n)=>{"use strict";n(23418),n(64346),n(31051),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(74423),n(25276),n(23792),n(48598),n(8921),n(62062),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(26099),n(47764);var s=n(19167);e.exports=s.Array},17990:(e,t,n)=>{"use strict";n(5506);var s=n(19167);e.exports=s.Object.entries},94014:(e,t,n)=>{"use strict";n(16034);var s=n(19167);e.exports=s.Object.values},61137:(e,t,n)=>{"use strict";n(26099),n(3362),n(9391);var s=n(97015);e.exports=s("Promise","finally")},57655:(e,t,n)=>{"use strict";n(23792),n(26099),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(47764);var s=n(19167);e.exports=s.Set},70979:(e,t,n)=>{"use strict";n(21699);var s=n(97015);e.exports=s("String","includes")},74209:(e,t,n)=>{"use strict";n(92327)},83835:(e,t,n)=>{"use strict";n(83405)},68029:(e,t,n)=>{"use strict";n(69311)},66130:(e,t,n)=>{"use strict";n(81880)},40828:(e,t,n)=>{"use strict";n(92582)},6396:(e,t,n)=>{"use strict";n(66290)},72701:(e,t,n)=>{"use strict";n(98255)},92327:(e,t,n)=>{"use strict";var s=n(16036);n(36033),n(34504),n(87370),n(31659),n(45490),n(55105),n(17656),n(61938),e.exports=s},83405:(e,t,n)=>{"use strict";var s=n(40188);e.exports=s},69311:(e,t,n)=>{"use strict";var s=n(26404);e.exports=s},81880:(e,t,n)=>{"use strict";var s=n(68211);e.exports=s},92582:(e,t,n)=>{"use strict";var s=n(53837);n(49522),n(23283),n(25509),n(65223),n(41927),n(60321),n(11632),n(64377),n(66771),n(12516),n(68931),n(52514),n(35694),n(52774),n(49536),n(21926),n(94483),n(16215),e.exports=s},66290:(e,t,n)=>{"use strict";var s=n(29933);e.exports=s},98255:(e,t,n)=>{"use strict";var s=n(85448);e.exports=s},79306:(e,t,n)=>{"use strict";var s=n(94901),i=n(16823),a=TypeError;e.exports=function(e){if(s(e))return e;throw new a(i(e)+" is not a function")}},35548:(e,t,n)=>{"use strict";var s=n(33517),i=n(16823),a=TypeError;e.exports=function(e){if(s(e))return e;throw new a(i(e)+" is not a constructor")}},73506:(e,t,n)=>{"use strict";var s=n(13925),i=String,a=TypeError;e.exports=function(e){if(s(e))return e;throw new a("Can't set "+i(e)+" as a prototype")}},97080:(e,t,n)=>{"use strict";var s=n(94402).has;e.exports=function(e){return s(e),e}},6469:(e,t,n)=>{"use strict";var s=n(78227),i=n(2360),a=n(24913).f,r=s("unscopables"),o=Array.prototype;void 0===o[r]&&a(o,r,{configurable:!0,value:i(null)}),e.exports=function(e){o[r][e]=!0}},90679:(e,t,n)=>{"use strict";var s=n(1625),i=TypeError;e.exports=function(e,t){if(s(t,e))return e;throw new i("Incorrect invocation")}},28551:(e,t,n)=>{"use strict";var s=n(20034),i=String,a=TypeError;e.exports=function(e){if(s(e))return e;throw new a(i(e)+" is not an object")}},15652:(e,t,n)=>{"use strict";var s=n(79039);e.exports=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},57029:(e,t,n)=>{"use strict";var s=n(48981),i=n(35610),a=n(26198),r=n(84606),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=s(this),l=a(n),c=i(e,l),u=i(t,l),d=arguments.length>2?arguments[2]:void 0,p=o((void 0===d?l:i(d,l))-u,l-c),h=1;for(u<c&&c<u+p&&(h=-1,u+=p-1,c+=p-1);p-- >0;)u in n?n[c]=n[u]:r(n,c),c+=h,u+=h;return n}},84373:(e,t,n)=>{"use strict";var s=n(48981),i=n(35610),a=n(26198);e.exports=function(e){for(var t=s(this),n=a(t),r=arguments.length,o=i(r>1?arguments[1]:void 0,n),l=r>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);c>o;)t[o++]=e;return t}},90235:(e,t,n)=>{"use strict";var s=n(59213).forEach,i=n(34598)("forEach");e.exports=i?[].forEach:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}},8045:(e,t,n)=>{"use strict";var s=n(76080),i=n(79504),a=n(48981),r=n(33517),o=n(1886),l=n(70081),c=n(1767),u=n(50851),d=n(55966),p=n(97751),h=n(44124),m=n(78227),f=n(24074),g=n(36639).toArray,b=m("asyncIterator"),v=i(h("Array","values")),y=i(v([]).next),x=function(){return new _(this)},_=function(e){this.iterator=v(e)};_.prototype.next=function(){return y(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,h=n>2?arguments[2]:void 0;return new(p("Promise"))((function(n){var p=a(e);void 0!==i&&(i=s(i,h));var m=d(p,b),v=m?void 0:u(p)||x,y=r(t)?new t:[],_=m?o(p,m):new f(c(l(p,v)));n(g(_,i,y))}))}},35370:(e,t,n)=>{"use strict";var s=n(26198);e.exports=function(e,t,n){for(var i=0,a=arguments.length>2?n:s(t),r=new e(a);a>i;)r[i]=t[i++];return r}},97916:(e,t,n)=>{"use strict";var s=n(76080),i=n(69565),a=n(48981),r=n(96319),o=n(44209),l=n(33517),c=n(26198),u=n(97040),d=n(70081),p=n(50851),h=Array;e.exports=function(e){var t=a(e),n=l(this),m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f;g&&(f=s(f,m>2?arguments[2]:void 0));var b,v,y,x,_,S,w=p(t),k=0;if(!w||this===h&&o(w))for(b=c(t),v=n?new this(b):h(b);b>k;k++)S=g?f(t[k],k):t[k],u(v,k,S);else for(v=n?new this:[],_=(x=d(t,w)).next;!(y=i(_,x)).done;k++)S=g?r(x,f,[y.value,k],!0):y.value,u(v,k,S);return v.length=k,v}},2952:(e,t,n)=>{"use strict";var s=n(76080),i=n(79504),a=n(47055),r=n(48981),o=n(26198),l=n(72248),c=l.Map,u=l.get,d=l.has,p=l.set,h=i([].push);e.exports=function(e){for(var t,n,i=r(this),l=a(i),m=s(e,arguments.length>1?arguments[1]:void 0),f=new c,g=o(l),b=0;g>b;b++)t=m(n=l[b],b,i),d(f,t)?h(u(f,t),n):p(f,t,[n]);return f}},77957:(e,t,n)=>{"use strict";var s=n(76080),i=n(79504),a=n(47055),r=n(48981),o=n(56969),l=n(26198),c=n(2360),u=n(35370),d=Array,p=i([].push);e.exports=function(e,t,n,i){for(var h,m,f,g=r(e),b=a(g),v=s(t,n),y=c(null),x=l(b),_=0;x>_;_++)f=b[_],(m=o(v(f,_,g)))in y?p(y[m],f):y[m]=[f];if(i&&(h=i(g))!==d)for(m in y)y[m]=u(h,y[m]);return y}},19617:(e,t,n)=>{"use strict";var s=n(25397),i=n(35610),a=n(26198),r=function(e){return function(t,n,r){var o=s(t),l=a(o);if(0===l)return!e&&-1;var c,u=i(r,l);if(e&&n!=n){for(;l>u;)if((c=o[u++])!=c)return!0}else for(;l>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},43839:(e,t,n)=>{"use strict";var s=n(76080),i=n(47055),a=n(48981),r=n(26198),o=function(e){var t=1===e;return function(n,o,l){for(var c,u=a(n),d=i(u),p=r(d),h=s(o,l);p-- >0;)if(h(c=d[p],p,u))switch(e){case 0:return c;case 1:return p}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},59213:(e,t,n)=>{"use strict";var s=n(76080),i=n(79504),a=n(47055),r=n(48981),o=n(26198),l=n(1469),c=i([].push),u=function(e){var t=1===e,n=2===e,i=3===e,u=4===e,d=6===e,p=7===e,h=5===e||d;return function(m,f,g,b){for(var v,y,x=r(m),_=a(x),S=o(_),w=s(f,g),k=0,j=b||l,T=t?j(m,S):n||p?j(m,0):void 0;S>k;k++)if((h||k in _)&&(y=w(v=_[k],k,x),e))if(t)T[k]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:c(T,v)}else switch(e){case 4:return!1;case 7:c(T,v)}return d?-1:i||u?u:T}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},8379:(e,t,n)=>{"use strict";var s=n(18745),i=n(25397),a=n(91291),r=n(26198),o=n(34598),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),p=u||!d;e.exports=p?function(e){if(u)return s(c,this,arguments)||0;var t=i(this),n=r(t);if(0===n)return-1;var o=n-1;for(arguments.length>1&&(o=l(o,a(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},70597:(e,t,n)=>{"use strict";var s=n(79039),i=n(78227),a=n(39519),r=i("species");e.exports=function(e){return a>=51||!s((function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34598:(e,t,n)=>{"use strict";var s=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))}},80926:(e,t,n)=>{"use strict";var s=n(79306),i=n(48981),a=n(47055),r=n(26198),o=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,u){var d=i(t),p=a(d),h=r(d);if(s(n),0===h&&c<2)throw new o(l);var m=e?h-1:0,f=e?-1:1;if(c<2)for(;;){if(m in p){u=p[m],m+=f;break}if(m+=f,e?m<0:h<=m)throw new o(l)}for(;e?m>=0:h>m;m+=f)m in p&&(u=n(u,p[m],m,d));return u}};e.exports={left:c(!1),right:c(!0)}},34527:(e,t,n)=>{"use strict";var s=n(43724),i=n(34376),a=TypeError,r=Object.getOwnPropertyDescriptor,o=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(i(e)&&!r(e,"length").writable)throw new a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680:(e,t,n)=>{"use strict";var s=n(79504);e.exports=s([].slice)},74488:(e,t,n)=>{"use strict";var s=n(67680),i=Math.floor,a=function(e,t){var n=e.length;if(n<8)for(var r,o,l=1;l<n;){for(o=l,r=e[l];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==l++&&(e[o]=r)}else for(var c=i(n/2),u=a(s(e,0,c),t),d=a(s(e,c),t),p=u.length,h=d.length,m=0,f=0;m<p||f<h;)e[m+f]=m<p&&f<h?t(u[m],d[f])<=0?u[m++]:d[f++]:m<p?u[m++]:d[f++];return e};e.exports=a},87433:(e,t,n)=>{"use strict";var s=n(34376),i=n(33517),a=n(20034),r=n(78227)("species"),o=Array;e.exports=function(e){var t;return s(e)&&(t=e.constructor,(i(t)&&(t===o||s(t.prototype))||a(t)&&null===(t=t[r]))&&(t=void 0)),void 0===t?o:t}},1469:(e,t,n)=>{"use strict";var s=n(87433);e.exports=function(e,t){return new(s(e))(0===t?0:t)}},37628:(e,t,n)=>{"use strict";var s=n(26198);e.exports=function(e,t){for(var n=s(e),i=new t(n),a=0;a<n;a++)i[a]=e[n-a-1];return i}},79565:(e,t,n)=>{"use strict";var s=n(79504),i=n(79306),a=n(64117),r=n(26198),o=n(48981),l=n(72248),c=n(26223),u=l.Map,d=l.has,p=l.set,h=s([].push);e.exports=function(e){var t,n,s,l=o(this),m=r(l),f=[],g=new u,b=a(e)?function(e){return e}:i(e);for(t=0;t<m;t++)s=b(n=l[t]),d(g,s)||p(g,s,n);return c(g,(function(e){h(f,e)})),f}},39928:(e,t,n)=>{"use strict";var s=n(26198),i=n(91291),a=RangeError;e.exports=function(e,t,n,r){var o=s(e),l=i(n),c=l<0?o+l:l;if(c>=o||c<0)throw new a("Incorrect index");for(var u=new t(o),d=0;d<o;d++)u[d]=d===c?r:e[d];return u}},24074:(e,t,n)=>{"use strict";var s=n(69565),i=n(28551),a=n(2360),r=n(55966),o=n(56279),l=n(91181),c=n(97751),u=n(53982),d=n(62529),p=c("Promise"),h="AsyncFromSyncIterator",m=l.set,f=l.getterFor(h),g=function(e,t,n){var s=e.done;p.resolve(e.value).then((function(e){t(d(e,s))}),n)},b=function(e){e.type=h,m(this,e)};b.prototype=o(a(u),{next:function(){var e=f(this);return new p((function(t,n){var a=i(s(e.next,e.iterator));g(a,t,n)}))},return:function(){var e=f(this).iterator;return new p((function(t,n){var a=r(e,"return");if(void 0===a)return t(d(void 0,!0));var o=i(s(a,e));g(o,t,n)}))}}),e.exports=b},20772:(e,t,n)=>{"use strict";var s=n(69565),i=n(97751),a=n(55966);e.exports=function(e,t,n,r){try{var o=a(e,"return");if(o)return i("Promise").resolve(s(o,e)).then((function(){t(n)}),(function(e){r(e)}))}catch(e){return r(e)}t(n)}},36639:(e,t,n)=>{"use strict";var s=n(69565),i=n(79306),a=n(28551),r=n(20034),o=n(96837),l=n(97751),c=n(1767),u=n(20772),d=function(e){var t=0===e,n=1===e,d=2===e,p=3===e;return function(e,h,m){a(e);var f=void 0!==h;!f&&t||i(h);var g=c(e),b=l("Promise"),v=g.iterator,y=g.next,x=0;return new b((function(e,i){var l=function(e){u(v,i,e,i)},c=function(){try{if(f)try{o(x)}catch(e){l(e)}b.resolve(a(s(y,v))).then((function(s){try{if(a(s).done)t?(m.length=x,e(m)):e(!p&&(d||void 0));else{var o=s.value;try{if(f){var g=h(o,x),y=function(s){if(n)c();else if(d)s?c():u(v,e,!1,i);else if(t)try{m[x++]=s,c()}catch(e){l(e)}else s?u(v,e,p||o,i):c()};r(g)?b.resolve(g).then(y,l):y(g)}else m[x++]=o,c()}catch(e){l(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};c()}))}};e.exports={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)}},53982:(e,t,n)=>{"use strict";var s,i,a=n(44576),r=n(77629),o=n(94901),l=n(2360),c=n(42787),u=n(36840),d=n(78227),p=n(96395),h="USE_FUNCTION_CONSTRUCTOR",m=d("asyncIterator"),f=a.AsyncIterator,g=r.AsyncIteratorPrototype;if(g)s=g;else if(o(f))s=f.prototype;else if(r[h]||a[h])try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(s=i)}catch(e){}s?p&&(s=l(s)):s={},o(s[m])||u(s,m,(function(){return this})),e.exports=s},96319:(e,t,n)=>{"use strict";var s=n(28551),i=n(9539);e.exports=function(e,t,n,a){try{return a?t(s(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},84428:(e,t,n)=>{"use strict";var s=n(78227)("iterator"),i=!1;try{var a=0,r={next:function(){return{done:!!a++}},return:function(){i=!0}};r[s]=function(){return this},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var n=!1;try{var a={};a[s]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},22195:(e,t,n)=>{"use strict";var s=n(79504),i=s({}.toString),a=s("".slice);e.exports=function(e){return a(i(e),8,-1)}},36955:(e,t,n)=>{"use strict";var s=n(92140),i=n(94901),a=n(22195),r=n(78227)("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}());e.exports=s?a:function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o(e),r))?n:l?a(t):"Object"===(s=a(t))&&i(t.callee)?"Arguments":s}},70933:(e,t,n)=>{"use strict";var s=n(76080),i=n(28551),a=n(48981),r=n(72652);e.exports=function(e,t,n){return function(o){var l=a(o),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,p=d?s(u,c>2?arguments[2]:void 0):void 0,h=new e,m=0;return r(l,(function(e){var s=d?p(e,m++):e;n?t(h,i(s)[0],s[1]):t(h,s)})),h}}},87500:(e,t,n)=>{"use strict";var s=n(28551);e.exports=function(e,t,n){return function(){for(var i=new e,a=arguments.length,r=0;r<a;r++){var o=arguments[r];n?t(i,s(o)[0],o[1]):t(i,o)}return i}}},86938:(e,t,n)=>{"use strict";var s=n(2360),i=n(62106),a=n(56279),r=n(76080),o=n(90679),l=n(64117),c=n(72652),u=n(51088),d=n(62529),p=n(87633),h=n(43724),m=n(3451).fastKey,f=n(91181),g=f.set,b=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,i){o(e,p),g(e,{type:t,index:s(null),first:null,last:null,size:0}),h||(e.size=0),l(i)||c(i,e[u],{that:e,AS_ENTRIES:n})})),p=d.prototype,f=b(t),v=function(e,t,n){var s,i,a=f(e),r=y(e,t);return r?r.value=n:(a.last=r={index:i=m(t,!0),key:t,value:n,previous:s=a.last,next:null,removed:!1},a.first||(a.first=r),s&&(s.next=r),h?a.size++:e.size++,"F"!==i&&(a.index[i]=r)),e},y=function(e,t){var n,s=f(e),i=m(t);if("F"!==i)return s.index[i];for(n=s.first;n;n=n.next)if(n.key===t)return n};return a(p,{clear:function(){for(var e=f(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=s(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=f(t),s=y(t,e);if(s){var i=s.next,a=s.previous;delete n.index[s.index],s.removed=!0,a&&(a.next=i),i&&(i.previous=a),n.first===s&&(n.first=i),n.last===s&&(n.last=a),h?n.size--:t.size--}return!!s},forEach:function(e){for(var t,n=f(this),s=r(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(s(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),a(p,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),h&&i(p,"size",{configurable:!0,get:function(){return f(this).size}}),d},setStrong:function(e,t,n){var s=t+" Iterator",i=b(t),a=b(s);u(e,t,(function(e,t){g(this,{type:s,target:e,state:i(e),kind:t,last:null})}),(function(){for(var e=a(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},16468:(e,t,n)=>{"use strict";var s=n(46518),i=n(44576),a=n(79504),r=n(92796),o=n(36840),l=n(3451),c=n(72652),u=n(90679),d=n(94901),p=n(64117),h=n(20034),m=n(79039),f=n(84428),g=n(10687),b=n(23167);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),x=v?"set":"add",_=i[e],S=_&&_.prototype,w=_,k={},j=function(e){var t=a(S[e]);o(S,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(r(e,!d(_)||!(y||S.forEach&&!m((function(){(new _).entries().next()})))))w=n.getConstructor(t,e,v,x),l.enable();else if(r(e,!0)){var T=new w,C=T[x](y?{}:-0,1)!==T,D=m((function(){T.has(1)})),P=f((function(e){new _(e)})),O=!y&&m((function(){for(var e=new _,t=5;t--;)e[x](t,t);return!e.has(-0)}));P||((w=t((function(e,t){u(e,S);var n=b(new _,e,w);return p(t)||c(t,n[x],{that:n,AS_ENTRIES:v}),n}))).prototype=S,S.constructor=w),(D||O)&&(j("delete"),j("has"),v&&j("get")),(O||C)&&j(x),y&&S.clear&&delete S.clear}return k[e]=w,s({global:!0,constructor:!0,forced:w!==_},k),g(w,e),y||n.setStrong(w,e,v),w}},77740:(e,t,n)=>{"use strict";var s=n(39297),i=n(35031),a=n(77347),r=n(24913);e.exports=function(e,t,n){for(var o=i(t),l=r.f,c=a.f,u=0;u<o.length;u++){var d=o[u];s(e,d)||n&&s(n,d)||l(e,d,c(t,d))}}},41436:(e,t,n)=>{"use strict";var s=n(78227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[s]=!1,"/./"[e](t)}catch(e){}}return!1}},12211:(e,t,n)=>{"use strict";var s=n(79039);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699:(e,t,n)=>{"use strict";var s=n(43724),i=n(24913),a=n(6980);e.exports=s?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040:(e,t,n)=>{"use strict";var s=n(43724),i=n(24913),a=n(6980);e.exports=function(e,t,n){s?i.f(e,t,a(0,n)):e[t]=n}},62106:(e,t,n)=>{"use strict";var s=n(50283),i=n(24913);e.exports=function(e,t,n){return n.get&&s(n.get,t,{getter:!0}),n.set&&s(n.set,t,{setter:!0}),i.f(e,t,n)}},36840:(e,t,n)=>{"use strict";var s=n(94901),i=n(24913),a=n(50283),r=n(39433);e.exports=function(e,t,n,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:t;if(s(n)&&a(n,c,o),o.global)l?e[t]=n:r(t,n);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},56279:(e,t,n)=>{"use strict";var s=n(36840);e.exports=function(e,t,n){for(var i in t)s(e,i,t[i],n);return e}},39433:(e,t,n)=>{"use strict";var s=n(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}},84606:(e,t,n)=>{"use strict";var s=n(16823),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+s(t)+" of "+s(e))}},43724:(e,t,n)=>{"use strict";var s=n(79039);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:(e,t,n)=>{"use strict";var s=n(44576),i=n(20034),a=s.document,r=i(a)&&i(a.createElement);e.exports=function(e){return r?a.createElement(e):{}}},96837:e=>{"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},67400:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296:(e,t,n)=>{"use strict";var s=n(4055)("span").classList,i=s&&s.constructor&&s.constructor.prototype;e.exports=i===Object.prototype?void 0:i},97015:(e,t,n)=>{"use strict";var s=n(44576),i=n(79504);e.exports=function(e,t){return i(s[e].prototype[t])}},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709:(e,t,n)=>{"use strict";var s=n(82839).match(/firefox\/(\d+)/i);e.exports=!!s&&+s[1]},13763:(e,t,n)=>{"use strict";var s=n(82839);e.exports=/MSIE|Trident/.test(s)},44265:(e,t,n)=>{"use strict";var s=n(82839);e.exports=/ipad|iphone|ipod/i.test(s)&&"undefined"!=typeof Pebble},89544:(e,t,n)=>{"use strict";var s=n(82839);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(s)},16193:(e,t,n)=>{"use strict";var s=n(84215);e.exports="NODE"===s},7860:(e,t,n)=>{"use strict";var s=n(82839);e.exports=/web0s(?!.*chrome)/i.test(s)},82839:(e,t,n)=>{"use strict";var s=n(44576).navigator,i=s&&s.userAgent;e.exports=i?String(i):""},39519:(e,t,n)=>{"use strict";var s,i,a=n(44576),r=n(82839),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u&&(i=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!i&&r&&(!(s=r.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=r.match(/Chrome\/(\d+)/))&&(i=+s[1]),e.exports=i},3607:(e,t,n)=>{"use strict";var s=n(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!s&&+s[1]},84215:(e,t,n)=>{"use strict";var s=n(44576),i=n(82839),a=n(22195),r=function(e){return i.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},46518:(e,t,n)=>{"use strict";var s=n(44576),i=n(77347).f,a=n(66699),r=n(36840),o=n(39433),l=n(77740),c=n(92796);e.exports=function(e,t){var n,u,d,p,h,m=e.target,f=e.global,g=e.stat;if(n=f?s:g?s[m]||o(m,{}):s[m]&&s[m].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=i(n,u))&&h.value:n[u],!c(f?u:m+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&a(p,"sham",!0),r(n,u,p,e)}}},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},70259:(e,t,n)=>{"use strict";var s=n(34376),i=n(26198),a=n(96837),r=n(76080),o=function(e,t,n,l,c,u,d,p){for(var h,m,f=c,g=0,b=!!d&&r(d,p);g<l;)g in n&&(h=b?b(n[g],g,t):n[g],u>0&&s(h)?(m=i(h),f=o(e,t,h,m,f,u-1)-1):(a(f+1),e[f]=h),f++),g++;return f};e.exports=o},92744:(e,t,n)=>{"use strict";var s=n(79039);e.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18745:(e,t,n)=>{"use strict";var s=n(40616),i=Function.prototype,a=i.apply,r=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?r.bind(a):function(){return r.apply(a,arguments)})},76080:(e,t,n)=>{"use strict";var s=n(27476),i=n(79306),a=n(40616),r=s(s.bind);e.exports=function(e,t){return i(e),void 0===t?e:a?r(e,t):function(){return e.apply(t,arguments)}}},40616:(e,t,n)=>{"use strict";var s=n(79039);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},69565:(e,t,n)=>{"use strict";var s=n(40616),i=Function.prototype.call;e.exports=s?i.bind(i):function(){return i.apply(i,arguments)}},10350:(e,t,n)=>{"use strict";var s=n(43724),i=n(39297),a=Function.prototype,r=s&&Object.getOwnPropertyDescriptor,o=i(a,"name"),l=o&&"something"===function(){}.name,c=o&&(!s||s&&r(a,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},46706:(e,t,n)=>{"use strict";var s=n(79504),i=n(79306);e.exports=function(e,t,n){try{return s(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},27476:(e,t,n)=>{"use strict";var s=n(22195),i=n(79504);e.exports=function(e){if("Function"===s(e))return i(e)}},79504:(e,t,n)=>{"use strict";var s=n(40616),i=Function.prototype,a=i.call,r=s&&i.bind.bind(a,a);e.exports=s?r:function(e){return function(){return a.apply(e,arguments)}}},1886:(e,t,n)=>{"use strict";var s=n(69565),i=n(24074),a=n(28551),r=n(70081),o=n(1767),l=n(55966),c=n(78227)("asyncIterator");e.exports=function(e,t){var n=arguments.length<2?l(e,c):t;return n?a(s(n,e)):new i(o(r(e)))}},44124:(e,t,n)=>{"use strict";var s=n(44576);e.exports=function(e,t){var n=s[e],i=n&&n.prototype;return i&&i[t]}},97751:(e,t,n)=>{"use strict";var s=n(44576),i=n(94901);e.exports=function(e,t){return arguments.length<2?(n=s[e],i(n)?n:void 0):s[e]&&s[e][t];var n}},1767:e=>{"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},50851:(e,t,n)=>{"use strict";var s=n(36955),i=n(55966),a=n(64117),r=n(26269),o=n(78227)("iterator");e.exports=function(e){if(!a(e))return i(e,o)||i(e,"@@iterator")||r[s(e)]}},70081:(e,t,n)=>{"use strict";var s=n(69565),i=n(79306),a=n(28551),r=n(16823),o=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?o(e):t;if(i(n))return a(s(n,e));throw new l(r(e)+" is not iterable")}},55966:(e,t,n)=>{"use strict";var s=n(79306),i=n(64117);e.exports=function(e,t){var n=e[t];return i(n)?void 0:s(n)}},83789:(e,t,n)=>{"use strict";var s=n(79306),i=n(28551),a=n(69565),r=n(91291),o=n(1767),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,p=function(e,t){this.set=e,this.size=d(t,0),this.has=s(e.has),this.keys=s(e.keys)};p.prototype={getIterator:function(){return o(i(a(this.keys,this.set)))},includes:function(e){return a(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new u(l);var n=r(t);if(n<0)throw new c(l);return new p(e,n)}},44576:function(e,t,n){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof n.g&&n.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297:(e,t,n)=>{"use strict";var s=n(79504),i=n(48981),a=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},30421:e=>{"use strict";e.exports={}},90757:e=>{"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},20397:(e,t,n)=>{"use strict";var s=n(97751);e.exports=s("document","documentElement")},35917:(e,t,n)=>{"use strict";var s=n(43724),i=n(79039),a=n(4055);e.exports=!s&&!i((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},47055:(e,t,n)=>{"use strict";var s=n(79504),i=n(79039),a=n(22195),r=Object,o=s("".split);e.exports=i((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?o(e,""):r(e)}:r},23167:(e,t,n)=>{"use strict";var s=n(94901),i=n(20034),a=n(52967);e.exports=function(e,t,n){var r,o;return a&&s(r=t.constructor)&&r!==n&&i(o=r.prototype)&&o!==n.prototype&&a(e,o),e}},33706:(e,t,n)=>{"use strict";var s=n(79504),i=n(94901),a=n(77629),r=s(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return r(e)}),e.exports=a.inspectSource},3451:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(30421),r=n(20034),o=n(39297),l=n(24913).f,c=n(38480),u=n(10298),d=n(34124),p=n(33392),h=n(92744),m=!1,f=p("meta"),g=0,b=function(e){l(e,f,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},m=!0;var e=c.f,t=i([].splice),n={};n[f]=1,e(n).length&&(c.f=function(n){for(var s=e(n),i=0,a=s.length;i<a;i++)if(s[i]===f){t(s,i,1);break}return s},s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,f)){if(!d(e))return"F";if(!t)return"E";b(e)}return e[f].objectID},getWeakData:function(e,t){if(!o(e,f)){if(!d(e))return!0;if(!t)return!1;b(e)}return e[f].weakData},onFreeze:function(e){return h&&m&&d(e)&&!o(e,f)&&b(e),e}};a[f]=!0},91181:(e,t,n)=>{"use strict";var s,i,a,r=n(58622),o=n(44576),l=n(20034),c=n(66699),u=n(39297),d=n(77629),p=n(66119),h=n(30421),m="Object already initialized",f=o.TypeError,g=o.WeakMap;if(r||d.state){var b=d.state||(d.state=new g);b.get=b.get,b.has=b.has,b.set=b.set,s=function(e,t){if(b.has(e))throw new f(m);return t.facade=e,b.set(e,t),t},i=function(e){return b.get(e)||{}},a=function(e){return b.has(e)}}else{var v=p("state");h[v]=!0,s=function(e,t){if(u(e,v))throw new f(m);return t.facade=e,c(e,v,t),t},i=function(e){return u(e,v)?e[v]:{}},a=function(e){return u(e,v)}}e.exports={set:s,get:i,has:a,enforce:function(e){return a(e)?i(e):s(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return n}}}},44209:(e,t,n)=>{"use strict";var s=n(78227),i=n(26269),a=s("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[a]===e)}},34376:(e,t,n)=>{"use strict";var s=n(22195);e.exports=Array.isArray||function(e){return"Array"===s(e)}},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},33517:(e,t,n)=>{"use strict";var s=n(79504),i=n(79039),a=n(94901),r=n(36955),o=n(97751),l=n(33706),c=function(){},u=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=s(d.exec),h=!d.test(c),m=function(e){if(!a(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},f=function(e){if(!a(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,l(e))}catch(e){return!0}};f.sham=!0,e.exports=!u||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?f:m},92796:(e,t,n)=>{"use strict";var s=n(79039),i=n(94901),a=/#|\.prototype\./,r=function(e,t){var n=l[o(e)];return n===u||n!==c&&(i(t)?s(t):!!t)},o=r.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";e.exports=r},31563:(e,t,n)=>{"use strict";var s=n(36955),i=n(39297),a=n(64117),r=n(78227),o=n(26269),l=r("iterator"),c=Object;e.exports=function(e){if(a(e))return!1;var t=c(e);return void 0!==t[l]||"@@iterator"in t||i(o,s(t))}},64117:e=>{"use strict";e.exports=function(e){return null==e}},20034:(e,t,n)=>{"use strict";var s=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},13925:(e,t,n)=>{"use strict";var s=n(20034);e.exports=function(e){return s(e)||null===e}},96395:e=>{"use strict";e.exports=!1},60788:(e,t,n)=>{"use strict";var s=n(20034),i=n(22195),a=n(78227)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[a])?!!t:"RegExp"===i(e))}},10757:(e,t,n)=>{"use strict";var s=n(97751),i=n(94901),a=n(1625),r=n(7040),o=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return i(t)&&a(t.prototype,o(e))}},40507:(e,t,n)=>{"use strict";var s=n(69565);e.exports=function(e,t,n){for(var i,a,r=n?e:e.iterator,o=e.next;!(i=s(o,r)).done;)if(void 0!==(a=t(i.value)))return a}},72652:(e,t,n)=>{"use strict";var s=n(76080),i=n(69565),a=n(28551),r=n(16823),o=n(44209),l=n(26198),c=n(1625),u=n(70081),d=n(50851),p=n(9539),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},f=m.prototype;e.exports=function(e,t,n){var g,b,v,y,x,_,S,w=n&&n.that,k=!(!n||!n.AS_ENTRIES),j=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),D=s(t,w),P=function(e){return g&&p(g,"normal",e),new m(!0,e)},O=function(e){return k?(a(e),C?D(e[0],e[1],P):D(e[0],e[1])):C?D(e,P):D(e)};if(j)g=e.iterator;else if(T)g=e;else{if(!(b=d(e)))throw new h(r(e)+" is not iterable");if(o(b)){for(v=0,y=l(e);y>v;v++)if((x=O(e[v]))&&c(f,x))return x;return new m(!1)}g=u(e,b)}for(_=j?e.next:g.next;!(S=i(_,g)).done;){try{x=O(S.value)}catch(e){p(g,"throw",e)}if("object"==typeof x&&x&&c(f,x))return x}return new m(!1)}},9539:(e,t,n)=>{"use strict";var s=n(69565),i=n(28551),a=n(55966);e.exports=function(e,t,n){var r,o;i(e);try{if(!(r=a(e,"return"))){if("throw"===t)throw n;return n}r=s(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return i(r),n}},33994:(e,t,n)=>{"use strict";var s=n(57657).IteratorPrototype,i=n(2360),a=n(6980),r=n(10687),o=n(26269),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=i(s,{next:a(+!c,n)}),r(e,u,!1,!0),o[u]=l,e}},51088:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(96395),r=n(10350),o=n(94901),l=n(33994),c=n(42787),u=n(52967),d=n(10687),p=n(66699),h=n(36840),m=n(78227),f=n(26269),g=n(57657),b=r.PROPER,v=r.CONFIGURABLE,y=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,_=m("iterator"),S="keys",w="values",k="entries",j=function(){return this};e.exports=function(e,t,n,r,m,g,T){l(n,t,r);var C,D,P,O=function(e){if(e===m&&E)return E;if(!x&&e&&e in L)return L[e];switch(e){case S:case w:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",M=!1,L=e.prototype,A=L[_]||L["@@iterator"]||m&&L[m],E=!x&&A||O(m),R="Array"===t&&L.entries||A;if(R&&(C=c(R.call(new e)))!==Object.prototype&&C.next&&(a||c(C)===y||(u?u(C,y):o(C[_])||h(C,_,j)),d(C,I,!0,!0),a&&(f[I]=j)),b&&m===w&&A&&A.name!==w&&(!a&&v?p(L,"name",w):(M=!0,E=function(){return i(A,this)})),m)if(D={values:O(w),keys:g?E:O(S),entries:O(k)},T)for(P in D)(x||M||!(P in L))&&h(L,P,D[P]);else s({target:t,proto:!0,forced:x||M},D);return a&&!T||L[_]===E||h(L,_,E,{name:m}),f[t]=E,D}},57657:(e,t,n)=>{"use strict";var s,i,a,r=n(79039),o=n(94901),l=n(20034),c=n(2360),u=n(42787),d=n(36840),p=n(78227),h=n(96395),m=p("iterator"),f=!1;[].keys&&("next"in(a=[].keys())?(i=u(u(a)))!==Object.prototype&&(s=i):f=!0),!l(s)||r((function(){var e={};return s[m].call(e)!==e}))?s={}:h&&(s=c(s)),o(s[m])||d(s,m,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},26269:e=>{"use strict";e.exports={}},26198:(e,t,n)=>{"use strict";var s=n(18014);e.exports=function(e){return s(e.length)}},50283:(e,t,n)=>{"use strict";var s=n(79504),i=n(79039),a=n(94901),r=n(39297),o=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),d=u.enforce,p=u.get,h=String,m=Object.defineProperty,f=s("".slice),g=s("".replace),b=s([].join),v=o&&!i((function(){return 8!==m((function(){}),"length",{value:8}).length})),y=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===f(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(o?m(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&r(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=d(e);return r(s,"source")||(s.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return a(this)&&p(this).source||c(this)}),"toString")},72248:(e,t,n)=>{"use strict";var s=n(79504),i=Map.prototype;e.exports={Map,set:s(i.set),get:s(i.get),has:s(i.has),remove:s(i.delete),proto:i}},26223:(e,t,n)=>{"use strict";var s=n(79504),i=n(40507),a=n(72248),r=a.Map,o=a.proto,l=s(o.forEach),c=s(o.entries),u=c(new r).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:u},(function(e){return t(e[1],e[0])})):l(e,t)}},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?n:t)(s)}},91955:(e,t,n)=>{"use strict";var s,i,a,r,o,l=n(44576),c=n(93389),u=n(76080),d=n(59225).set,p=n(18265),h=n(89544),m=n(44265),f=n(7860),g=n(16193),b=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,x=l.Promise,_=c("queueMicrotask");if(!_){var S=new p,w=function(){var e,t;for(g&&(e=y.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&s(),e}e&&e.enter()};h||g||f||!b||!v?!m&&x&&x.resolve?((r=x.resolve(void 0)).constructor=x,o=u(r.then,r),s=function(){o(w)}):g?s=function(){y.nextTick(w)}:(d=u(d,l),s=function(){d(w)}):(i=!0,a=v.createTextNode(""),new b(w).observe(a,{characterData:!0}),s=function(){a.data=i=!i}),_=function(e){S.head||s(),S.add(e)}}e.exports=_},36043:(e,t,n)=>{"use strict";var s=n(79306),i=TypeError,a=function(e){var t,n;this.promise=new e((function(e,s){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=s})),this.resolve=s(t),this.reject=s(n)};e.exports.f=function(e){return new a(e)}},60511:(e,t,n)=>{"use strict";var s=n(60788),i=TypeError;e.exports=function(e){if(s(e))throw new i("The method doesn't accept regular expressions");return e}},44213:(e,t,n)=>{"use strict";var s=n(43724),i=n(79504),a=n(69565),r=n(79039),o=n(71072),l=n(33717),c=n(48773),u=n(48981),d=n(47055),p=Object.assign,h=Object.defineProperty,m=i([].concat);e.exports=!p||r((function(){if(s&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==p({},e)[n]||o(p({},t)).join("")!==i}))?function(e,t){for(var n=u(e),i=arguments.length,r=1,p=l.f,h=c.f;i>r;)for(var f,g=d(arguments[r++]),b=p?m(o(g),p(g)):o(g),v=b.length,y=0;v>y;)f=b[y++],s&&!a(h,g,f)||(n[f]=g[f]);return n}:p},2360:(e,t,n)=>{"use strict";var s,i=n(28551),a=n(96801),r=n(88727),o=n(30421),l=n(20397),c=n(4055),u=n(66119),d="prototype",p="script",h=u("IE_PROTO"),m=function(){},f=function(e){return"<"+p+">"+e+"</"+p+">"},g=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&s?g(s):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):g(s);for(var i=r.length;i--;)delete b[d][r[i]];return b()};o[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=i(e),n=new m,m[d]=null,n[h]=e):n=b(),void 0===t?n:a.f(n,t)}},96801:(e,t,n)=>{"use strict";var s=n(43724),i=n(48686),a=n(24913),r=n(28551),o=n(25397),l=n(71072);t.f=s&&!i?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),i=l(t),c=i.length,u=0;c>u;)a.f(e,n=i[u++],s[n]);return e}},24913:(e,t,n)=>{"use strict";var s=n(43724),i=n(35917),a=n(48686),r=n(28551),o=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=s?a?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var s=u(e,t);s&&s[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:s[p],enumerable:d in n?n[d]:s[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(r(e),t=o(t),r(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347:(e,t,n)=>{"use strict";var s=n(43724),i=n(69565),a=n(48773),r=n(6980),o=n(25397),l=n(56969),c=n(39297),u=n(35917),d=Object.getOwnPropertyDescriptor;t.f=s?d:function(e,t){if(e=o(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return r(!i(a.f,e,t),e[t])}},10298:(e,t,n)=>{"use strict";var s=n(22195),i=n(25397),a=n(38480).f,r=n(67680),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===s(e)?function(e){try{return a(e)}catch(e){return r(o)}}(e):a(i(e))}},38480:(e,t,n)=>{"use strict";var s=n(61828),i=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,i)}},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},42787:(e,t,n)=>{"use strict";var s=n(39297),i=n(94901),a=n(48981),r=n(66119),o=n(12211),l=r("IE_PROTO"),c=Object,u=c.prototype;e.exports=o?c.getPrototypeOf:function(e){var t=a(e);if(s(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},34124:(e,t,n)=>{"use strict";var s=n(79039),i=n(20034),a=n(22195),r=n(15652),o=Object.isExtensible,l=s((function(){o(1)}));e.exports=l||r?function(e){return!!i(e)&&(!r||"ArrayBuffer"!==a(e))&&(!o||o(e))}:o},1625:(e,t,n)=>{"use strict";var s=n(79504);e.exports=s({}.isPrototypeOf)},61828:(e,t,n)=>{"use strict";var s=n(79504),i=n(39297),a=n(25397),r=n(19617).indexOf,o=n(30421),l=s([].push);e.exports=function(e,t){var n,s=a(e),c=0,u=[];for(n in s)!i(o,n)&&i(s,n)&&l(u,n);for(;t.length>c;)i(s,n=t[c++])&&(~r(u,n)||l(u,n));return u}},71072:(e,t,n)=>{"use strict";var s=n(61828),i=n(88727);e.exports=Object.keys||function(e){return s(e,i)}},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,i=s&&!n.call({1:2},1);t.f=i?function(e){var t=s(this,e);return!!t&&t.enumerable}:n},52967:(e,t,n)=>{"use strict";var s=n(46706),i=n(20034),a=n(67750),r=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=s(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return a(n),r(s),i(n)?(t?e(n,s):n.__proto__=s,n):n}}():void 0)},32357:(e,t,n)=>{"use strict";var s=n(43724),i=n(79039),a=n(79504),r=n(42787),o=n(71072),l=n(25397),c=a(n(48773).f),u=a([].push),d=s&&i((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),p=function(e){return function(t){for(var n,i=l(t),a=o(i),p=d&&null===r(i),h=a.length,m=0,f=[];h>m;)n=a[m++],s&&!(p?n in i:c(i,n))||u(f,e?[n,i[n]]:i[n]);return f}};e.exports={entries:p(!0),values:p(!1)}},53179:(e,t,n)=>{"use strict";var s=n(92140),i=n(36955);e.exports=s?{}.toString:function(){return"[object "+i(this)+"]"}},84270:(e,t,n)=>{"use strict";var s=n(69565),i=n(94901),a=n(20034),r=TypeError;e.exports=function(e,t){var n,o;if("string"===t&&i(n=e.toString)&&!a(o=s(n,e)))return o;if(i(n=e.valueOf)&&!a(o=s(n,e)))return o;if("string"!==t&&i(n=e.toString)&&!a(o=s(n,e)))return o;throw new r("Can't convert object to primitive value")}},35031:(e,t,n)=>{"use strict";var s=n(97751),i=n(79504),a=n(38480),r=n(33717),o=n(28551),l=i([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=r.f;return n?l(t,n(e)):t}},19167:(e,t,n)=>{"use strict";var s=n(44576);e.exports=s},1103:e=>{"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},10916:(e,t,n)=>{"use strict";var s=n(44576),i=n(80550),a=n(94901),r=n(92796),o=n(33706),l=n(78227),c=n(84215),u=n(96395),d=n(39519),p=i&&i.prototype,h=l("species"),m=!1,f=a(s.PromiseRejectionEvent),g=r("Promise",(function(){var e=o(i),t=e!==String(i);if(!t&&66===d)return!0;if(u&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),s=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=s,!(m=n.then((function(){}))instanceof s))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||f)}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:f,SUBCLASSING:m}},80550:(e,t,n)=>{"use strict";var s=n(44576);e.exports=s.Promise},93438:(e,t,n)=>{"use strict";var s=n(28551),i=n(20034),a=n(36043);e.exports=function(e,t){if(s(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},90537:(e,t,n)=>{"use strict";var s=n(80550),i=n(84428),a=n(10916).CONSTRUCTOR;e.exports=a||!i((function(e){s.all(e).then(void 0,(function(){}))}))},18265:e=>{"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},67750:(e,t,n)=>{"use strict";var s=n(64117),i=TypeError;e.exports=function(e){if(s(e))throw new i("Can't call method on "+e);return e}},93389:(e,t,n)=>{"use strict";var s=n(44576),i=n(43724),a=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return s[e];var t=a(s,e);return t&&t.value}},89286:(e,t,n)=>{"use strict";var s=n(94402),i=n(38469),a=s.Set,r=s.add;e.exports=function(e){var t=new a;return i(e,(function(e){r(t,e)})),t}},83440:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402),a=n(89286),r=n(25170),o=n(83789),l=n(38469),c=n(40507),u=i.has,d=i.remove;e.exports=function(e){var t=s(this),n=o(e),i=a(t);return r(t)<=n.size?l(t,(function(e){n.includes(e)&&d(i,e)})):c(n.getIterator(),(function(e){u(t,e)&&d(i,e)})),i}},94402:(e,t,n)=>{"use strict";var s=n(79504),i=Set.prototype;e.exports={Set,add:s(i.add),has:s(i.has),remove:s(i.delete),proto:i}},68750:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402),a=n(25170),r=n(83789),o=n(38469),l=n(40507),c=i.Set,u=i.add,d=i.has;e.exports=function(e){var t=s(this),n=r(e),i=new c;return a(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(i,e)})):o(t,(function(e){n.includes(e)&&u(i,e)})),i}},64449:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402).has,a=n(25170),r=n(83789),o=n(38469),l=n(40507),c=n(9539);e.exports=function(e){var t=s(this),n=r(e);if(a(t)<=n.size)return!1!==o(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(i(t,e))return c(u,"normal",!1)}))}},53838:(e,t,n)=>{"use strict";var s=n(97080),i=n(25170),a=n(38469),r=n(83789);e.exports=function(e){var t=s(this),n=r(e);return!(i(t)>n.size)&&!1!==a(t,(function(e){if(!n.includes(e))return!1}),!0)}},28527:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402).has,a=n(25170),r=n(83789),o=n(40507),l=n(9539);e.exports=function(e){var t=s(this),n=r(e);if(a(t)<n.size)return!1;var c=n.getIterator();return!1!==o(c,(function(e){if(!i(t,e))return l(c,"normal",!1)}))}},38469:(e,t,n)=>{"use strict";var s=n(79504),i=n(40507),a=n(94402),r=a.Set,o=a.proto,l=s(o.forEach),c=s(o.keys),u=c(new r).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:u},t):l(e,t)}},84916:(e,t,n)=>{"use strict";var s=n(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=s("Set");try{(new n)[e](i(0));try{return(new n)[e](i(-1)),!1}catch(s){if(!t)return!0;try{return(new n)[e](a(-1/0)),!1}catch(s){var r=new n;return r.add(1),r.add(2),t(r[e](a(1/0)))}}}catch(e){return!1}}},25170:(e,t,n)=>{"use strict";var s=n(46706),i=n(94402);e.exports=s(i.proto,"size","get")||function(e){return e.size}},87633:(e,t,n)=>{"use strict";var s=n(97751),i=n(62106),a=n(78227),r=n(43724),o=a("species");e.exports=function(e){var t=s(e);r&&t&&!t[o]&&i(t,o,{configurable:!0,get:function(){return this}})}},83650:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402),a=n(89286),r=n(83789),o=n(40507),l=i.add,c=i.has,u=i.remove;e.exports=function(e){var t=s(this),n=r(e).getIterator(),i=a(t);return o(n,(function(e){c(t,e)?u(i,e):l(i,e)})),i}},10687:(e,t,n)=>{"use strict";var s=n(24913).f,i=n(39297),a=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&s(e,a,{configurable:!0,value:t})}},44204:(e,t,n)=>{"use strict";var s=n(97080),i=n(94402).add,a=n(89286),r=n(83789),o=n(40507);e.exports=function(e){var t=s(this),n=r(e).getIterator(),l=a(t);return o(n,(function(e){i(l,e)})),l}},66119:(e,t,n)=>{"use strict";var s=n(25745),i=n(33392),a=s("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},77629:(e,t,n)=>{"use strict";var s=n(96395),i=n(44576),a=n(39433),r="__core-js_shared__",o=e.exports=i[r]||a(r,{});(o.versions||(o.versions=[])).push({version:"3.40.0",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745:(e,t,n)=>{"use strict";var s=n(77629);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},2293:(e,t,n)=>{"use strict";var s=n(28551),i=n(35548),a=n(64117),r=n(78227)("species");e.exports=function(e,t){var n,o=s(e).constructor;return void 0===o||a(n=s(o)[r])?t:i(n)}},68183:(e,t,n)=>{"use strict";var s=n(79504),i=n(91291),a=n(655),r=n(67750),o=s("".charAt),l=s("".charCodeAt),c=s("".slice),u=function(e){return function(t,n){var s,u,d=a(r(t)),p=i(n),h=d.length;return p<0||p>=h?e?"":void 0:(s=l(d,p))<55296||s>56319||p+1===h||(u=l(d,p+1))<56320||u>57343?e?o(d,p):s:e?c(d,p,p+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3717:(e,t,n)=>{"use strict";var s=n(79504),i=2147483647,a=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",l=RangeError,c=s(r.exec),u=Math.floor,d=String.fromCharCode,p=s("".charCodeAt),h=s([].join),m=s([].push),f=s("".replace),g=s("".split),b=s("".toLowerCase),v=function(e){return e+22+75*(e<26)},y=function(e,t,n){var s=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),s+=36;return u(s+36*e/(e+38))},x=function(e){var t=[];e=function(e){for(var t=[],n=0,s=e.length;n<s;){var i=p(e,n++);if(i>=55296&&i<=56319&&n<s){var a=p(e,n++);56320==(64512&a)?m(t,((1023&i)<<10)+(1023&a)+65536):(m(t,i),n--)}else m(t,i)}return t}(e);var n,s,a=e.length,r=128,c=0,f=72;for(n=0;n<e.length;n++)(s=e[n])<128&&m(t,d(s));var g=t.length,b=g;for(g&&m(t,"-");b<a;){var x=i;for(n=0;n<e.length;n++)(s=e[n])>=r&&s<x&&(x=s);var _=b+1;if(x-r>u((i-c)/_))throw new l(o);for(c+=(x-r)*_,r=x,n=0;n<e.length;n++){if((s=e[n])<r&&++c>i)throw new l(o);if(s===r){for(var S=c,w=36;;){var k=w<=f?1:w>=f+26?26:w-f;if(S<k)break;var j=S-k,T=36-k;m(t,d(v(k+j%T))),S=u(j/T),w+=36}m(t,d(v(S))),f=y(c,_,b===g),c=0,b++}}c++,r++}return h(t,"")};e.exports=function(e){var t,n,s=[],i=g(f(b(e),r,"."),".");for(t=0;t<i.length;t++)n=i[t],m(s,c(a,n)?"xn--"+x(n):n);return h(s,".")}},4495:(e,t,n)=>{"use strict";var s=n(39519),i=n(79039),a=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},59225:(e,t,n)=>{"use strict";var s,i,a,r,o=n(44576),l=n(18745),c=n(76080),u=n(94901),d=n(39297),p=n(79039),h=n(20397),m=n(67680),f=n(4055),g=n(22812),b=n(89544),v=n(16193),y=o.setImmediate,x=o.clearImmediate,_=o.process,S=o.Dispatch,w=o.Function,k=o.MessageChannel,j=o.String,T=0,C={},D="onreadystatechange";p((function(){s=o.location}));var P=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},O=function(e){return function(){P(e)}},I=function(e){P(e.data)},M=function(e){o.postMessage(j(e),s.protocol+"//"+s.host)};y&&x||(y=function(e){g(arguments.length,1);var t=u(e)?e:w(e),n=m(arguments,1);return C[++T]=function(){l(t,void 0,n)},i(T),T},x=function(e){delete C[e]},v?i=function(e){_.nextTick(O(e))}:S&&S.now?i=function(e){S.now(O(e))}:k&&!b?(r=(a=new k).port2,a.port1.onmessage=I,i=c(r.postMessage,r)):o.addEventListener&&u(o.postMessage)&&!o.importScripts&&s&&"file:"!==s.protocol&&!p(M)?(i=M,o.addEventListener("message",I,!1)):i=D in f("script")?function(e){h.appendChild(f("script"))[D]=function(){h.removeChild(this),P(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:y,clear:x}},35610:(e,t,n)=>{"use strict";var s=n(91291),i=Math.max,a=Math.min;e.exports=function(e,t){var n=s(e);return n<0?i(n+t,0):a(n,t)}},25397:(e,t,n)=>{"use strict";var s=n(47055),i=n(67750);e.exports=function(e){return s(i(e))}},91291:(e,t,n)=>{"use strict";var s=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},18014:(e,t,n)=>{"use strict";var s=n(91291),i=Math.min;e.exports=function(e){var t=s(e);return t>0?i(t,9007199254740991):0}},48981:(e,t,n)=>{"use strict";var s=n(67750),i=Object;e.exports=function(e){return i(s(e))}},72777:(e,t,n)=>{"use strict";var s=n(69565),i=n(20034),a=n(10757),r=n(55966),o=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=r(e,u);if(l){if(void 0===t&&(t="default"),n=s(l,e,t),!i(n)||a(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},56969:(e,t,n)=>{"use strict";var s=n(72777),i=n(10757);e.exports=function(e){var t=s(e,"string");return i(t)?t:t+""}},47650:(e,t,n)=>{"use strict";var s=n(97751),i=n(94901),a=n(31563),r=n(20034),o=s("Set");e.exports=function(e){return function(e){return r(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:a(e)?new o(e):e}},92140:(e,t,n)=>{"use strict";var s={};s[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(s)},655:(e,t,n)=>{"use strict";var s=n(36955),i=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},33392:(e,t,n)=>{"use strict";var s=n(79504),i=0,a=Math.random(),r=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++i+a,36)}},67416:(e,t,n)=>{"use strict";var s=n(79039),i=n(78227),a=n(43724),r=n(96395),o=i("iterator");e.exports=!s((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),s="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),s+=n+e})),n.delete("a",2),n.delete("b",void 0),r&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(r||!a)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host}))},7040:(e,t,n)=>{"use strict";var s=n(4495);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686:(e,t,n)=>{"use strict";var s=n(43724),i=n(79039);e.exports=s&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},22812:e=>{"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},58622:(e,t,n)=>{"use strict";var s=n(44576),i=n(94901),a=s.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},78227:(e,t,n)=>{"use strict";var s=n(44576),i=n(25745),a=n(39297),r=n(33392),o=n(4495),l=n(7040),c=s.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||r;e.exports=function(e){return a(u,e)||(u[e]=o&&a(c,e)?c[e]:d("Symbol."+e)),u[e]}},18107:(e,t,n)=>{"use strict";var s=n(46518),i=n(48981),a=n(26198),r=n(91291),o=n(6469);s({target:"Array",proto:!0},{at:function(e){var t=i(this),n=a(t),s=r(e),o=s>=0?s:n+s;return o<0||o>=n?void 0:t[o]}}),o("at")},28706:(e,t,n)=>{"use strict";var s=n(46518),i=n(79039),a=n(34376),r=n(20034),o=n(48981),l=n(26198),c=n(96837),u=n(97040),d=n(1469),p=n(70597),h=n(78227),m=n(39519),f=h("isConcatSpreadable"),g=m>=51||!i((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),b=function(e){if(!r(e))return!1;var t=e[f];return void 0!==t?!!t:a(e)};s({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(e){var t,n,s,i,a,r=o(this),p=d(r,0),h=0;for(t=-1,s=arguments.length;t<s;t++)if(b(a=-1===t?r:arguments[t]))for(i=l(a),c(h+i),n=0;n<i;n++,h++)n in a&&u(p,h,a[n]);else c(h+1),u(p,h++,a);return p.length=h,p}})},26835:(e,t,n)=>{"use strict";var s=n(46518),i=n(57029),a=n(6469);s({target:"Array",proto:!0},{copyWithin:i}),a("copyWithin")},88431:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).every;s({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},33771:(e,t,n)=>{"use strict";var s=n(46518),i=n(84373),a=n(6469);s({target:"Array",proto:!0},{fill:i}),a("fill")},2008:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).filter;s({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},48980:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).findIndex,a=n(6469),r="findIndex",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),s({target:"Array",proto:!0,forced:o},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(r)},13451:(e,t,n)=>{"use strict";var s=n(46518),i=n(43839).findLastIndex,a=n(6469);s({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},10838:(e,t,n)=>{"use strict";var s=n(46518),i=n(43839).findLast,a=n(6469);s({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},50113:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).find,a=n(6469),r="find",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),s({target:"Array",proto:!0,forced:o},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(r)},78350:(e,t,n)=>{"use strict";var s=n(46518),i=n(70259),a=n(79306),r=n(48981),o=n(26198),l=n(1469);s({target:"Array",proto:!0},{flatMap:function(e){var t,n=r(this),s=o(n);return a(e),(t=l(n,0)).length=i(t,n,n,s,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},46449:(e,t,n)=>{"use strict";var s=n(46518),i=n(70259),a=n(48981),r=n(26198),o=n(91291),l=n(1469);s({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=a(this),n=r(t),s=l(t,0);return s.length=i(s,t,t,n,0,void 0===e?1:o(e)),s}})},51629:(e,t,n)=>{"use strict";var s=n(46518),i=n(90235);s({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},23418:(e,t,n)=>{"use strict";var s=n(46518),i=n(97916);s({target:"Array",stat:!0,forced:!n(84428)((function(e){Array.from(e)}))},{from:i})},74423:(e,t,n)=>{"use strict";var s=n(46518),i=n(19617).includes,a=n(79039),r=n(6469);s({target:"Array",proto:!0,forced:a((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},25276:(e,t,n)=>{"use strict";var s=n(46518),i=n(27476),a=n(19617).indexOf,r=n(34598),o=i([].indexOf),l=!!o&&1/o([1],1,-0)<0;s({target:"Array",proto:!0,forced:l||!r("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?o(this,e,t)||0:a(this,e,t)}})},64346:(e,t,n)=>{"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792:(e,t,n)=>{"use strict";var s=n(25397),i=n(6469),a=n(26269),r=n(91181),o=n(24913).f,l=n(51088),c=n(62529),u=n(96395),d=n(43724),p="Array Iterator",h=r.set,m=r.getterFor(p);e.exports=l(Array,"Array",(function(e,t){h(this,{type:p,target:s(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var f=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==f.name)try{o(f,"name",{value:"values"})}catch(e){}},48598:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(47055),r=n(25397),o=n(34598),l=i([].join);s({target:"Array",proto:!0,forced:a!==Object||!o("join",",")},{join:function(e){return l(r(this),void 0===e?",":e)}})},8921:(e,t,n)=>{"use strict";var s=n(46518),i=n(8379);s({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},62062:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).map;s({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},31051:(e,t,n)=>{"use strict";var s=n(46518),i=n(79039),a=n(33517),r=n(97040),o=Array;s({target:"Array",stat:!0,forced:i((function(){function e(){}return!(o.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(a(this)?this:o)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},44114:(e,t,n)=>{"use strict";var s=n(46518),i=n(48981),a=n(26198),r=n(34527),o=n(96837);s({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=a(t),s=arguments.length;o(n+s);for(var l=0;l<s;l++)t[n]=arguments[l],n++;return r(t,n),n}})},18863:(e,t,n)=>{"use strict";var s=n(46518),i=n(80926).right,a=n(34598),r=n(39519);s({target:"Array",proto:!0,forced:!n(16193)&&r>79&&r<83||!a("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},72712:(e,t,n)=>{"use strict";var s=n(46518),i=n(80926).left,a=n(34598),r=n(39519);s({target:"Array",proto:!0,forced:!n(16193)&&r>79&&r<83||!a("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},94490:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(34376),r=i([].reverse),o=[1,2];s({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),r(this)}})},34782:(e,t,n)=>{"use strict";var s=n(46518),i=n(34376),a=n(33517),r=n(20034),o=n(35610),l=n(26198),c=n(25397),u=n(97040),d=n(78227),p=n(70597),h=n(67680),m=p("slice"),f=d("species"),g=Array,b=Math.max;s({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,s,d,p=c(this),m=l(p),v=o(e,m),y=o(void 0===t?m:t,m);if(i(p)&&(n=p.constructor,(a(n)&&(n===g||i(n.prototype))||r(n)&&null===(n=n[f]))&&(n=void 0),n===g||void 0===n))return h(p,v,y);for(s=new(void 0===n?g:n)(b(y-v,0)),d=0;v<y;v++,d++)v in p&&u(s,d,p[v]);return s.length=d,s}})},15086:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).some;s({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},26910:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(79306),r=n(48981),o=n(26198),l=n(84606),c=n(655),u=n(79039),d=n(74488),p=n(34598),h=n(13709),m=n(13763),f=n(39519),g=n(3607),b=[],v=i(b.sort),y=i(b.push),x=u((function(){b.sort(void 0)})),_=u((function(){b.sort(null)})),S=p("sort"),w=!u((function(){if(f)return f<70;if(!(h&&h>3)){if(m)return!0;if(g)return g<603;var e,t,n,s,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(s=0;s<47;s++)b.push({k:t+s,v:n})}for(b.sort((function(e,t){return t.v-e.v})),s=0;s<b.length;s++)t=b[s].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));s({target:"Array",proto:!0,forced:x||!_||!S||!w},{sort:function(e){void 0!==e&&a(e);var t=r(this);if(w)return void 0===e?v(t):v(t,e);var n,s,i=[],u=o(t);for(s=0;s<u;s++)s in t&&y(i,t[s]);for(d(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=o(i),s=0;s<n;)t[s]=i[s++];for(;s<u;)l(t,s++);return t}})},87478:(e,t,n)=>{"use strict";n(87633)("Array")},54554:(e,t,n)=>{"use strict";var s=n(46518),i=n(48981),a=n(35610),r=n(91291),o=n(26198),l=n(34527),c=n(96837),u=n(1469),d=n(97040),p=n(84606),h=n(70597)("splice"),m=Math.max,f=Math.min;s({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,s,h,g,b,v,y=i(this),x=o(y),_=a(e,x),S=arguments.length;for(0===S?n=s=0:1===S?(n=0,s=x-_):(n=S-2,s=f(m(r(t),0),x-_)),c(x+n-s),h=u(y,s),g=0;g<s;g++)(b=_+g)in y&&d(h,g,y[b]);if(h.length=s,n<s){for(g=_;g<x-s;g++)v=g+n,(b=g+s)in y?y[v]=y[b]:p(y,v);for(g=x;g>x-s+n;g--)p(y,g-1)}else if(n>s)for(g=x-s;g>_;g--)v=g+n-1,(b=g+s-1)in y?y[v]=y[b]:p(y,v);for(g=0;g<n;g++)y[g+_]=arguments[g+2];return l(y,x-s+n),h}})},9678:(e,t,n)=>{"use strict";var s=n(46518),i=n(37628),a=n(25397),r=n(6469),o=Array;s({target:"Array",proto:!0},{toReversed:function(){return i(a(this),o)}}),r("toReversed")},57145:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(79306),r=n(25397),o=n(35370),l=n(44124),c=n(6469),u=Array,d=i(l("Array","sort"));s({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&a(e);var t=r(this),n=o(u,t);return d(n,e)}}),c("toSorted")},71658:(e,t,n)=>{"use strict";var s=n(46518),i=n(6469),a=n(96837),r=n(26198),o=n(35610),l=n(25397),c=n(91291),u=Array,d=Math.max,p=Math.min;s({target:"Array",proto:!0},{toSpliced:function(e,t){var n,s,i,h,m=l(this),f=r(m),g=o(e,f),b=arguments.length,v=0;for(0===b?n=s=0:1===b?(n=0,s=f-g):(n=b-2,s=p(d(c(t),0),f-g)),i=a(f+n-s),h=u(i);v<g;v++)h[v]=m[v];for(;v<g+n;v++)h[v]=arguments[v-g+2];for(;v<i;v++)h[v]=m[v+s-n];return h}}),i("toSpliced")},30237:(e,t,n)=>{"use strict";n(6469)("flatMap")},93514:(e,t,n)=>{"use strict";n(6469)("flat")},13609:(e,t,n)=>{"use strict";var s=n(46518),i=n(48981),a=n(26198),r=n(34527),o=n(84606),l=n(96837);s({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),n=a(t),s=arguments.length;if(s){l(n+s);for(var c=n;c--;){var u=c+s;c in t?t[u]=t[c]:o(t,u)}for(var d=0;d<s;d++)t[d]=arguments[d]}return r(t,n+s)}})},11558:(e,t,n)=>{"use strict";var s=n(46518),i=n(39928),a=n(25397),r=Array;s({target:"Array",proto:!0},{with:function(e,t){return i(a(this),r,e,t)}})},48523:(e,t,n)=>{"use strict";n(16468)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},36033:(e,t,n)=>{"use strict";n(48523)},5506:(e,t,n)=>{"use strict";var s=n(46518),i=n(32357).entries;s({target:"Object",stat:!0},{entries:function(e){return i(e)}})},26099:(e,t,n)=>{"use strict";var s=n(92140),i=n(36840),a=n(53179);s||i(Object.prototype,"toString",a,{unsafe:!0})},16034:(e,t,n)=>{"use strict";var s=n(46518),i=n(32357).values;s({target:"Object",stat:!0},{values:function(e){return i(e)}})},16499:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(79306),r=n(36043),o=n(1103),l=n(72652);s({target:"Promise",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=r.f(t),s=n.resolve,c=n.reject,u=o((function(){var n=a(t.resolve),r=[],o=0,u=1;l(e,(function(e){var a=o++,l=!1;u++,i(n,t,e).then((function(e){l||(l=!0,r[a]=e,--u||s(r))}),c)})),--u||s(r)}));return u.error&&c(u.value),n.promise}})},82003:(e,t,n)=>{"use strict";var s=n(46518),i=n(96395),a=n(10916).CONSTRUCTOR,r=n(80550),o=n(97751),l=n(94901),c=n(36840),u=r&&r.prototype;if(s({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(r)){var d=o("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},10436:(e,t,n)=>{"use strict";var s,i,a,r=n(46518),o=n(96395),l=n(16193),c=n(44576),u=n(69565),d=n(36840),p=n(52967),h=n(10687),m=n(87633),f=n(79306),g=n(94901),b=n(20034),v=n(90679),y=n(2293),x=n(59225).set,_=n(91955),S=n(90757),w=n(1103),k=n(18265),j=n(91181),T=n(80550),C=n(10916),D=n(36043),P="Promise",O=C.CONSTRUCTOR,I=C.REJECTION_EVENT,M=C.SUBCLASSING,L=j.getterFor(P),A=j.set,E=T&&T.prototype,R=T,U=E,N=c.TypeError,F=c.document,Y=c.process,H=D.f,B=H,V=!!(F&&F.createEvent&&c.dispatchEvent),$="unhandledrejection",W=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},z=function(e,t){var n,s,i,a=t.value,r=1===t.state,o=r?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{o?(r||(2===t.rejection&&Q(t),t.rejection=1),!0===o?n=a:(d&&d.enter(),n=o(a),d&&(d.exit(),i=!0)),n===e.promise?c(new N("Promise-chain cycle")):(s=W(n))?u(s,n,l,c):l(n)):c(a)}catch(e){d&&!i&&d.exit(),c(e)}},q=function(e,t){e.notified||(e.notified=!0,_((function(){for(var n,s=e.reactions;n=s.get();)z(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},G=function(e,t,n){var s,i;V?((s=F.createEvent("Event")).promise=t,s.reason=n,s.initEvent(e,!1,!0),c.dispatchEvent(s)):s={promise:t,reason:n},!I&&(i=c["on"+e])?i(s):e===$&&S("Unhandled promise rejection",n)},K=function(e){u(x,c,(function(){var t,n=e.facade,s=e.value;if(X(e)&&(t=w((function(){l?Y.emit("unhandledRejection",s,n):G($,n,s)})),e.rejection=l||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Q=function(e){u(x,c,(function(){var t=e.facade;l?Y.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},J=function(e,t,n){return function(s){e(t,s,n)}},Z=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var s=W(t);s?_((function(){var n={done:!1};try{u(s,t,J(ee,n,e),J(Z,n,e))}catch(t){Z(n,t,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(t){Z({done:!1},t,e)}}};if(O&&(U=(R=function(e){v(this,U),f(e),u(s,this);var t=L(this);try{e(J(ee,t),J(Z,t))}catch(e){Z(t,e)}}).prototype,(s=function(e){A(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:null})}).prototype=d(U,"then",(function(e,t){var n=L(this),s=H(y(this,R));return n.parent=!0,s.ok=!g(e)||e,s.fail=g(t)&&t,s.domain=l?Y.domain:void 0,0===n.state?n.reactions.add(s):_((function(){z(s,n)})),s.promise})),i=function(){var e=new s,t=L(e);this.promise=e,this.resolve=J(ee,t),this.reject=J(Z,t)},D.f=H=function(e){return e===R||void 0===e?new i(e):B(e)},!o&&g(T)&&E!==Object.prototype)){a=E.then,M||d(E,"then",(function(e,t){var n=this;return new R((function(e,t){u(a,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete E.constructor}catch(e){}p&&p(E,U)}r({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:R}),h(R,P,!1,!0),m(P)},9391:(e,t,n)=>{"use strict";var s=n(46518),i=n(96395),a=n(80550),r=n(79039),o=n(97751),l=n(94901),c=n(2293),u=n(93438),d=n(36840),p=a&&a.prototype;if(s({target:"Promise",proto:!0,real:!0,forced:!!a&&r((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,o("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!i&&l(a)){var h=o("Promise").prototype.finally;p.finally!==h&&d(p,"finally",h,{unsafe:!0})}},3362:(e,t,n)=>{"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(79306),r=n(36043),o=n(1103),l=n(72652);s({target:"Promise",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=r.f(t),s=n.reject,c=o((function(){var r=a(t.resolve);l(e,(function(e){i(r,t,e).then(n.resolve,s)}))}));return c.error&&s(c.value),n.promise}})},51481:(e,t,n)=>{"use strict";var s=n(46518),i=n(36043);s({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},40280:(e,t,n)=>{"use strict";var s=n(46518),i=n(97751),a=n(96395),r=n(80550),o=n(10916).CONSTRUCTOR,l=n(93438),c=i("Promise"),u=a&&!o;s({target:"Promise",stat:!0,forced:a||o},{resolve:function(e){return l(u&&this===c?r:this,e)}})},92405:(e,t,n)=>{"use strict";n(16468)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},17642:(e,t,n)=>{"use strict";var s=n(46518),i=n(83440);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(e){return 0===e.size}))},{difference:i})},58004:(e,t,n)=>{"use strict";var s=n(46518),i=n(79039),a=n(68750);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:a})},33853:(e,t,n)=>{"use strict";var s=n(46518),i=n(64449);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:i})},45876:(e,t,n)=>{"use strict";var s=n(46518),i=n(53838);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(e){return e}))},{isSubsetOf:i})},32475:(e,t,n)=>{"use strict";var s=n(46518),i=n(28527);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:i})},31415:(e,t,n)=>{"use strict";n(92405)},15024:(e,t,n)=>{"use strict";var s=n(46518),i=n(83650);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")},{symmetricDifference:i})},31698:(e,t,n)=>{"use strict";var s=n(46518),i=n(44204);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")},{union:i})},27337:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(35610),r=RangeError,o=String.fromCharCode,l=String.fromCodePoint,c=i([].join);s({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],s=arguments.length,i=0;s>i;){if(t=+arguments[i++],a(t,1114111)!==t)throw new r(t+" is not a valid code point");n[i]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},21699:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(60511),r=n(67750),o=n(655),l=n(41436),c=i("".indexOf);s({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(o(r(this)),o(a(e)),arguments.length>1?arguments[1]:void 0)}})},47764:(e,t,n)=>{"use strict";var s=n(68183).charAt,i=n(655),a=n(91181),r=n(51088),o=n(62529),l="String Iterator",c=a.set,u=a.getterFor(l);r(String,"String",(function(e){c(this,{type:l,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?o(void 0,!0):(e=s(n,i),t.index+=e.length,o(e,!1))}))},34504:(e,t,n)=>{"use strict";n(18107)},87370:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).filterReject,a=n(6469);s({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("filterOut")},31659:(e,t,n)=>{"use strict";var s=n(46518),i=n(59213).filterReject,a=n(6469);s({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("filterReject")},17978:(e,t,n)=>{"use strict";n(13451)},95115:(e,t,n)=>{"use strict";n(10838)},26148:(e,t,n)=>{"use strict";var s=n(46518),i=n(8045),a=n(79039),r=Array.fromAsync;s({target:"Array",stat:!0,forced:!r||a((function(){var e=0;return r.call((function(){return e++,[]}),{length:0}),1!==e}))},{fromAsync:i})},88177:(e,t,n)=>{"use strict";var s=n(46518),i=n(34598),a=n(6469),r=n(2952);s({target:"Array",proto:!0,name:"groupToMap",forced:n(96395)||!i("groupByToMap")},{groupByToMap:r}),a("groupByToMap")},6986:(e,t,n)=>{"use strict";var s=n(46518),i=n(77957),a=n(34598),r=n(6469);s({target:"Array",proto:!0,forced:!a("groupBy")},{groupBy:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r("groupBy")},80081:(e,t,n)=>{"use strict";var s=n(46518),i=n(6469),a=n(2952);s({target:"Array",proto:!0,forced:n(96395)},{groupToMap:a}),i("groupToMap")},46058:(e,t,n)=>{"use strict";var s=n(46518),i=n(77957),a=n(6469);s({target:"Array",proto:!0},{group:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("group")},45490:(e,t,n)=>{"use strict";var s=n(46518),i=n(34376),a=Object.isFrozen,r=function(e,t){if(!a||!i(e)||!a(e))return!1;for(var n,s=0,r=e.length;s<r;)if(!("string"==typeof(n=e[s++])||t&&void 0===n))return!1;return 0!==r};s({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!r(e,!0))return!1;var t=e.raw;return t.length===e.length&&r(t,!1)}})},17656:(e,t,n)=>{"use strict";var s=n(43724),i=n(6469),a=n(48981),r=n(26198),o=n(62106);s&&(o(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=a(this),t=r(e);return 0===t?0:t-1}}),i("lastIndex"))},55105:(e,t,n)=>{"use strict";var s=n(43724),i=n(6469),a=n(48981),r=n(26198),o=n(62106);s&&(o(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=a(this),t=r(e);return 0===t?void 0:e[t-1]},set:function(e){var t=a(this),n=r(t);return t[0===n?0:n-1]=e}}),i("lastItem"))},54151:(e,t,n)=>{"use strict";n(9678)},72400:(e,t,n)=>{"use strict";n(57145)},73677:(e,t,n)=>{"use strict";n(71658)},61938:(e,t,n)=>{"use strict";var s=n(46518),i=n(6469);s({target:"Array",proto:!0,forced:!0},{uniqueBy:n(79565)}),i("uniqueBy")},85901:(e,t,n)=>{"use strict";n(11558)},25509:(e,t,n)=>{"use strict";var s=n(46518),i=n(97080),a=n(94402).add;s({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)a(e,arguments[t]);return e}})},65223:(e,t,n)=>{"use strict";var s=n(46518),i=n(97080),a=n(94402).remove;s({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,s=0,r=arguments.length;s<r;s++)e=a(t,arguments[s]),n=n&&e;return!!n}})},60321:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(83440);s({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return i(r,this,a(e))}})},43375:(e,t,n)=>{"use strict";n(17642)},41927:(e,t,n)=>{"use strict";var s=n(46518),i=n(76080),a=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!1!==r(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},11632:(e,t,n)=>{"use strict";var s=n(46518),i=n(76080),a=n(97080),r=n(94402),o=n(38469),l=r.Set,c=r.add;s({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),s=new l;return o(t,(function(e){n(e,e,t)&&c(s,e)})),s}})},64377:(e,t,n)=>{"use strict";var s=n(46518),i=n(76080),a=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),s=r(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return s&&s.value}})},49522:(e,t,n)=>{"use strict";var s=n(46518),i=n(94402);s({target:"Set",stat:!0,forced:!0},{from:n(70933)(i.Set,i.add,!1)})},66771:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(68750);s({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return i(r,this,a(e))}})},39225:(e,t,n)=>{"use strict";n(58004)},12516:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(64449);s({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(r,this,a(e))}})},13972:(e,t,n)=>{"use strict";n(33853)},68931:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(53838);s({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(r,this,a(e))}})},99209:(e,t,n)=>{"use strict";n(45876)},52514:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(28527);s({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(r,this,a(e))}})},25714:(e,t,n)=>{"use strict";n(32475)},35694:(e,t,n)=>{"use strict";var s=n(46518),i=n(79504),a=n(97080),r=n(38469),o=n(655),l=i([].join),c=i([].push);s({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=a(this),n=void 0===e?",":o(e),s=[];return r(t,(function(e){c(s,e)})),l(s,n)}})},52774:(e,t,n)=>{"use strict";var s=n(46518),i=n(76080),a=n(97080),r=n(94402),o=n(38469),l=r.Set,c=r.add;s({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0),s=new l;return o(t,(function(e){c(s,n(e,e,t))})),s}})},23283:(e,t,n)=>{"use strict";var s=n(46518),i=n(94402);s({target:"Set",stat:!0,forced:!0},{of:n(87500)(i.Set,i.add,!1)})},49536:(e,t,n)=>{"use strict";var s=n(46518),i=n(79306),a=n(97080),r=n(38469),o=TypeError;s({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=a(this),n=arguments.length<2,s=n?void 0:arguments[1];if(i(e),r(t,(function(i){n?(n=!1,s=i):s=e(s,i,i,t)})),n)throw new o("Reduce of empty set with no initial value");return s}})},21926:(e,t,n)=>{"use strict";var s=n(46518),i=n(76080),a=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=a(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!0===r(t,(function(e){if(n(e,e,t))return!0}),!0)}})},94483:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(83650);s({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(r,this,a(e))}})},17561:(e,t,n)=>{"use strict";n(15024)},16215:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565),a=n(47650),r=n(44204);s({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return i(r,this,a(e))}})},66197:(e,t,n)=>{"use strict";n(31698)},62953:(e,t,n)=>{"use strict";var s=n(44576),i=n(67400),a=n(79296),r=n(23792),o=n(66699),l=n(10687),c=n(78227)("iterator"),u=r.values,d=function(e,t){if(e){if(e[c]!==u)try{o(e,c,u)}catch(t){e[c]=u}if(l(e,t,!0),i[t])for(var n in r)if(e[n]!==r[n])try{o(e,n,r[n])}catch(t){e[n]=r[n]}}};for(var p in i)d(s[p]&&s[p].prototype,p);d(a,"DOMTokenList")},98406:(e,t,n)=>{"use strict";n(23792),n(27337);var s=n(46518),i=n(44576),a=n(93389),r=n(97751),o=n(69565),l=n(79504),c=n(43724),u=n(67416),d=n(36840),p=n(62106),h=n(56279),m=n(10687),f=n(33994),g=n(91181),b=n(90679),v=n(94901),y=n(39297),x=n(76080),_=n(36955),S=n(28551),w=n(20034),k=n(655),j=n(2360),T=n(6980),C=n(70081),D=n(50851),P=n(62529),O=n(22812),I=n(78227),M=n(74488),L=I("iterator"),A="URLSearchParams",E=A+"Iterator",R=g.set,U=g.getterFor(A),N=g.getterFor(E),F=a("fetch"),Y=a("Request"),H=a("Headers"),B=Y&&Y.prototype,V=H&&H.prototype,$=i.TypeError,W=i.encodeURIComponent,z=String.fromCharCode,q=r("String","fromCodePoint"),G=parseInt,K=l("".charAt),X=l([].join),Q=l([].push),J=l("".replace),Z=l([].shift),ee=l([].splice),te=l("".split),ne=l("".slice),se=l(/./.exec),ie=/\+/g,ae=/^[0-9a-f]+$/i,re=function(e,t){var n=ne(e,t,t+2);return se(ae,n)?G(n,16):NaN},oe=function(e){for(var t=0,n=128;n>0&&e&n;n>>=1)t++;return t},le=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},ce=function(e){for(var t=(e=J(e,ie," ")).length,n="",s=0;s<t;){var i=K(e,s);if("%"===i){if("%"===K(e,s+1)||s+3>t){n+="%",s++;continue}var a=re(e,s+1);if(a!=a){n+=i,s++;continue}s+=2;var r=oe(a);if(0===r)i=z(a);else{if(1===r||r>4){n+="�",s++;continue}for(var o=[a],l=1;l<r&&!(3+ ++s>t||"%"!==K(e,s));){var c=re(e,s+1);if(c!=c){s+=3;break}if(c>191||c<128)break;Q(o,c),s+=2,l++}if(o.length!==r){n+="�";continue}var u=le(o);null===u?n+="�":i=q(u)}}n+=i,s++}return n},ue=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pe=function(e){return de[e]},he=function(e){return J(W(e),ue,pe)},me=f((function(e,t){R(this,{type:E,target:U(e).entries,index:0,kind:t})}),A,(function(){var e=N(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,P(void 0,!0);var s=t[n];switch(e.kind){case"keys":return P(s.key,!1);case"values":return P(s.value,!1)}return P([s.key,s.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(w(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ne(e,1):e:k(e)))};fe.prototype={type:A,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,s,i,a,r,l,c=this.entries,u=D(e);if(u)for(n=(t=C(e,u)).next;!(s=o(n,t)).done;){if(a=(i=C(S(s.value))).next,(r=o(a,i)).done||(l=o(a,i)).done||!o(a,i).done)throw new $("Expected sequence with length 2");Q(c,{key:k(r.value),value:k(l.value)})}else for(var d in e)y(e,d)&&Q(c,{key:d,value:k(e[d])})},parseQuery:function(e){if(e)for(var t,n,s=this.entries,i=te(e,"&"),a=0;a<i.length;)(t=i[a++]).length&&(n=te(t,"="),Q(s,{key:ce(Z(n)),value:ce(X(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],s=0;s<t.length;)e=t[s++],Q(n,he(e.key)+"="+he(e.value));return X(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ge=function(){b(this,be);var e=R(this,new fe(arguments.length>0?arguments[0]:void 0));c||(this.size=e.entries.length)},be=ge.prototype;if(h(be,{append:function(e,t){var n=U(this);O(arguments.length,2),Q(n.entries,{key:k(e),value:k(t)}),c||this.length++,n.updateURL()},delete:function(e){for(var t=U(this),n=O(arguments.length,1),s=t.entries,i=k(e),a=n<2?void 0:arguments[1],r=void 0===a?a:k(a),o=0;o<s.length;){var l=s[o];if(l.key!==i||void 0!==r&&l.value!==r)o++;else if(ee(s,o,1),void 0!==r)break}c||(this.size=s.length),t.updateURL()},get:function(e){var t=U(this).entries;O(arguments.length,1);for(var n=k(e),s=0;s<t.length;s++)if(t[s].key===n)return t[s].value;return null},getAll:function(e){var t=U(this).entries;O(arguments.length,1);for(var n=k(e),s=[],i=0;i<t.length;i++)t[i].key===n&&Q(s,t[i].value);return s},has:function(e){for(var t=U(this).entries,n=O(arguments.length,1),s=k(e),i=n<2?void 0:arguments[1],a=void 0===i?i:k(i),r=0;r<t.length;){var o=t[r++];if(o.key===s&&(void 0===a||o.value===a))return!0}return!1},set:function(e,t){var n=U(this);O(arguments.length,1);for(var s,i=n.entries,a=!1,r=k(e),o=k(t),l=0;l<i.length;l++)(s=i[l]).key===r&&(a?ee(i,l--,1):(a=!0,s.value=o));a||Q(i,{key:r,value:o}),c||(this.size=i.length),n.updateURL()},sort:function(){var e=U(this);M(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=U(this).entries,s=x(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)s((t=n[i++]).value,t.key,this)},keys:function(){return new me(this,"keys")},values:function(){return new me(this,"values")},entries:function(){return new me(this,"entries")}},{enumerable:!0}),d(be,L,be.entries,{name:"entries"}),d(be,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),c&&p(be,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),m(ge,A),s({global:!0,constructor:!0,forced:!u},{URLSearchParams:ge}),!u&&v(H)){var ve=l(V.has),ye=l(V.set),xe=function(e){if(w(e)){var t,n=e.body;if(_(n)===A)return t=e.headers?new H(e.headers):new H,ve(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),j(e,{body:T(0,k(n)),headers:T(0,t)})}return e};if(v(F)&&s({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?xe(arguments[1]):{})}}),v(Y)){var _e=function(e){return b(this,B),new Y(e,arguments.length>1?xe(arguments[1]):{})};B.constructor=_e,_e.prototype=B,s({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:_e})}}e.exports={URLSearchParams:ge,getState:U}},14603:(e,t,n)=>{"use strict";var s=n(36840),i=n(79504),a=n(655),r=n(22812),o=URLSearchParams,l=o.prototype,c=i(l.append),u=i(l.delete),d=i(l.forEach),p=i([].push),h=new o("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&s(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var s=[];d(this,(function(e,t){p(s,{key:t,value:e})})),r(t,1);for(var i,o=a(e),l=a(n),h=0,m=0,f=!1,g=s.length;h<g;)i=s[h++],f||i.key===o?(f=!0,u(this,i.key)):m++;for(;m<g;)(i=s[m++]).key===o&&i.value===l||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},47566:(e,t,n)=>{"use strict";var s=n(36840),i=n(79504),a=n(655),r=n(22812),o=URLSearchParams,l=o.prototype,c=i(l.getAll),u=i(l.has),d=new o("a=1");!d.has("a",2)&&d.has("a",void 0)||s(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var s=c(this,e);r(t,1);for(var i=a(n),o=0;o<s.length;)if(s[o++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},48408:(e,t,n)=>{"use strict";n(98406)},98721:(e,t,n)=>{"use strict";var s=n(43724),i=n(79504),a=n(62106),r=URLSearchParams.prototype,o=i(r.forEach);s&&!("size"in r)&&a(r,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},2222:(e,t,n)=>{"use strict";var s=n(46518),i=n(97751),a=n(79039),r=n(22812),o=n(655),l=n(67416),c=i("URL"),u=l&&a((function(){c.canParse()})),d=a((function(){return 1!==c.canParse.length}));s({target:"URL",stat:!0,forced:!u||d},{canParse:function(e){var t=r(arguments.length,1),n=o(e),s=t<2||void 0===arguments[1]?void 0:o(arguments[1]);try{return!!new c(n,s)}catch(e){return!1}}})},45806:(e,t,n)=>{"use strict";n(47764);var s,i=n(46518),a=n(43724),r=n(67416),o=n(44576),l=n(76080),c=n(79504),u=n(36840),d=n(62106),p=n(90679),h=n(39297),m=n(44213),f=n(97916),g=n(67680),b=n(68183).codeAt,v=n(3717),y=n(655),x=n(10687),_=n(22812),S=n(98406),w=n(91181),k=w.set,j=w.getterFor("URL"),T=S.URLSearchParams,C=S.getState,D=o.URL,P=o.TypeError,O=o.parseInt,I=Math.floor,M=Math.pow,L=c("".charAt),A=c(/./.exec),E=c([].join),R=c(1..toString),U=c([].pop),N=c([].push),F=c("".replace),Y=c([].shift),H=c("".split),B=c("".slice),V=c("".toLowerCase),$=c([].unshift),W="Invalid scheme",z="Invalid host",q="Invalid port",G=/[a-z]/i,K=/[\d+-.a-z]/i,X=/\d/,Q=/^0x/i,J=/^[0-7]+$/,Z=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,se=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ae=/[\t\n\r]/g,re=function(e){var t,n,s,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)$(t,e%256),e=I(e/256);return E(t,".")}if("object"==typeof e){for(t="",s=function(e){for(var t=null,n=1,s=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=s,n=i),s=null,i=0):(null===s&&(s=a),++i);return i>n?s:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),s===n?(t+=n?":":"::",i=!0):(t+=R(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},oe={},le=m({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=m({},le,{"#":1,"?":1,"{":1,"}":1}),ue=m({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(e,t){var n=b(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},pe={ftp:21,file:null,http:80,https:443,ws:80,wss:443},he=function(e,t){var n;return 2===e.length&&A(G,L(e,0))&&(":"===(n=L(e,1))||!t&&"|"===n)},me=function(e){var t;return e.length>1&&he(B(e,0,2))&&(2===e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},fe=function(e){return"."===e||"%2e"===V(e)},ge={},be={},ve={},ye={},xe={},_e={},Se={},we={},ke={},je={},Te={},Ce={},De={},Pe={},Oe={},Ie={},Me={},Le={},Ae={},Ee={},Re={},Ue=function(e,t,n){var s,i,a,r=y(e);if(t){if(i=this.parse(r))throw new P(i);this.searchParams=null}else{if(void 0!==n&&(s=new Ue(n,!0)),i=this.parse(r,null,s))throw new P(i);(a=C(new T)).bindURL(this),this.searchParams=a}};Ue.prototype={type:"URL",parse:function(e,t,n){var i,a,r,o,l,c=this,u=t||ge,d=0,p="",m=!1,b=!1,v=!1;for(e=y(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=F(e,se,""),e=F(e,ie,"$1")),e=F(e,ae,""),i=f(e);d<=i.length;){switch(a=i[d],u){case ge:if(!a||!A(G,a)){if(t)return W;u=ve;continue}p+=V(a),u=be;break;case be:if(a&&(A(K,a)||"+"===a||"-"===a||"."===a))p+=V(a);else{if(":"!==a){if(t)return W;p="",u=ve,d=0;continue}if(t&&(c.isSpecial()!==h(pe,p)||"file"===p&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=p,t)return void(c.isSpecial()&&pe[c.scheme]===c.port&&(c.port=null));p="","file"===c.scheme?u=Pe:c.isSpecial()&&n&&n.scheme===c.scheme?u=ye:c.isSpecial()?u=we:"/"===i[d+1]?(u=xe,d++):(c.cannotBeABaseURL=!0,N(c.path,""),u=Ae)}break;case ve:if(!n||n.cannotBeABaseURL&&"#"!==a)return W;if(n.cannotBeABaseURL&&"#"===a){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Re;break}u="file"===n.scheme?Pe:_e;continue;case ye:if("/"!==a||"/"!==i[d+1]){u=_e;continue}u=ke,d++;break;case xe:if("/"===a){u=je;break}u=Le;continue;case _e:if(c.scheme=n.scheme,a===s)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===a||"\\"===a&&c.isSpecial())u=Se;else if("?"===a)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",u=Ee;else{if("#"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,u=Le;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",u=Re}break;case Se:if(!c.isSpecial()||"/"!==a&&"\\"!==a){if("/"!==a){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Le;continue}u=je}else u=ke;break;case we:if(u=ke,"/"!==a||"/"!==L(p,d+1))continue;d++;break;case ke:if("/"!==a&&"\\"!==a){u=je;continue}break;case je:if("@"===a){m&&(p="%40"+p),m=!0,r=f(p);for(var x=0;x<r.length;x++){var _=r[x];if(":"!==_||v){var S=de(_,ue);v?c.password+=S:c.username+=S}else v=!0}p=""}else if(a===s||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()){if(m&&""===p)return"Invalid authority";d-=f(p).length+1,p="",u=Te}else p+=a;break;case Te:case Ce:if(t&&"file"===c.scheme){u=Ie;continue}if(":"!==a||b){if(a===s||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()){if(c.isSpecial()&&""===p)return z;if(t&&""===p&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(p))return o;if(p="",u=Me,t)return;continue}"["===a?b=!0:"]"===a&&(b=!1),p+=a}else{if(""===p)return z;if(o=c.parseHost(p))return o;if(p="",u=De,t===Ce)return}break;case De:if(!A(X,a)){if(a===s||"/"===a||"?"===a||"#"===a||"\\"===a&&c.isSpecial()||t){if(""!==p){var w=O(p,10);if(w>65535)return q;c.port=c.isSpecial()&&w===pe[c.scheme]?null:w,p=""}if(t)return;u=Me;continue}return q}p+=a;break;case Pe:if(c.scheme="file","/"===a||"\\"===a)u=Oe;else{if(!n||"file"!==n.scheme){u=Le;continue}switch(a){case s:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",u=Ee;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",u=Re;break;default:me(E(g(i,d),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),u=Le;continue}}break;case Oe:if("/"===a||"\\"===a){u=Ie;break}n&&"file"===n.scheme&&!me(E(g(i,d),""))&&(he(n.path[0],!0)?N(c.path,n.path[0]):c.host=n.host),u=Le;continue;case Ie:if(a===s||"/"===a||"\\"===a||"?"===a||"#"===a){if(!t&&he(p))u=Le;else if(""===p){if(c.host="",t)return;u=Me}else{if(o=c.parseHost(p))return o;if("localhost"===c.host&&(c.host=""),t)return;p="",u=Me}continue}p+=a;break;case Me:if(c.isSpecial()){if(u=Le,"/"!==a&&"\\"!==a)continue}else if(t||"?"!==a)if(t||"#"!==a){if(a!==s&&(u=Le,"/"!==a))continue}else c.fragment="",u=Re;else c.query="",u=Ee;break;case Le:if(a===s||"/"===a||"\\"===a&&c.isSpecial()||!t&&("?"===a||"#"===a)){if(".."===(l=V(l=p))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===a||"\\"===a&&c.isSpecial()||N(c.path,"")):fe(p)?"/"===a||"\\"===a&&c.isSpecial()||N(c.path,""):("file"===c.scheme&&!c.path.length&&he(p)&&(c.host&&(c.host=""),p=L(p,0)+":"),N(c.path,p)),p="","file"===c.scheme&&(a===s||"?"===a||"#"===a))for(;c.path.length>1&&""===c.path[0];)Y(c.path);"?"===a?(c.query="",u=Ee):"#"===a&&(c.fragment="",u=Re)}else p+=de(a,ce);break;case Ae:"?"===a?(c.query="",u=Ee):"#"===a?(c.fragment="",u=Re):a!==s&&(c.path[0]+=de(a,oe));break;case Ee:t||"#"!==a?a!==s&&("'"===a&&c.isSpecial()?c.query+="%27":c.query+="#"===a?"%23":de(a,oe)):(c.fragment="",u=Re);break;case Re:a!==s&&(c.fragment+=de(a,le))}d++}},parseHost:function(e){var t,n,s;if("["===L(e,0)){if("]"!==L(e,e.length-1))return z;if(t=function(e){var t,n,s,i,a,r,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return L(e,d)};if(":"===p()){if(":"!==L(e,1))return;d+=2,u=++c}for(;p();){if(8===c)return;if(":"!==p()){for(t=n=0;n<4&&A(ee,p());)t=16*t+O(p(),16),d++,n++;if("."===p()){if(0===n)return;if(d-=n,c>6)return;for(s=0;p();){if(i=null,s>0){if(!("."===p()&&s<4))return;d++}if(!A(X,p()))return;for(;A(X,p());){if(a=O(p(),10),null===i)i=a;else{if(0===i)return;i=10*i+a}if(i>255)return;d++}l[c]=256*l[c]+i,2!=++s&&4!==s||c++}if(4!==s)return;break}if(":"===p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(r=c-u,c=7;0!==c&&r>0;)o=l[c],l[c--]=l[u+r-1],l[u+--r]=o;else if(8!==c)return;return l}(B(e,1,-1)),!t)return z;this.host=t}else if(this.isSpecial()){if(e=v(e),A(te,e))return z;if(t=function(e){var t,n,s,i,a,r,o,l=H(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return e;for(n=[],s=0;s<t;s++){if(""===(i=l[s]))return e;if(a=10,i.length>1&&"0"===L(i,0)&&(a=A(Q,i)?16:8,i=B(i,8===a?1:2)),""===i)r=0;else{if(!A(10===a?Z:8===a?J:ee,i))return e;r=O(i,a)}N(n,r)}for(s=0;s<t;s++)if(r=n[s],s===t-1){if(r>=M(256,5-t))return null}else if(r>255)return null;for(o=U(n),s=0;s<n.length;s++)o+=n[s]*M(256,3-s);return o}(e),null===t)return z;this.host=t}else{if(A(ne,e))return z;for(t="",n=f(e),s=0;s<n.length;s++)t+=de(n[s],oe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(pe,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&he(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,s=e.password,i=e.host,a=e.port,r=e.path,o=e.query,l=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(s?":"+s:"")+"@"),c+=re(i),null!==a&&(c+=":"+a)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?r[0]:r.length?"/"+E(r,"/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new P(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ne(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+re(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",ge)},getUsername:function(){return this.username},setUsername:function(e){var t=f(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=de(t[n],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=de(t[n],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?re(e):re(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getHostname:function(){var e=this.host;return null===e?"":re(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ce)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=y(e))?this.port=null:this.parse(e,De))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+E(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Me))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=y(e))?this.query=null:("?"===L(e,0)&&(e=B(e,1)),this.query="",this.parse(e,Ee)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=y(e))?("#"===L(e,0)&&(e=B(e,1)),this.fragment="",this.parse(e,Re)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ne=function(e){var t=p(this,Fe),n=_(arguments.length,1)>1?arguments[1]:void 0,s=k(t,new Ue(e,!1,n));a||(t.href=s.serialize(),t.origin=s.getOrigin(),t.protocol=s.getProtocol(),t.username=s.getUsername(),t.password=s.getPassword(),t.host=s.getHost(),t.hostname=s.getHostname(),t.port=s.getPort(),t.pathname=s.getPathname(),t.search=s.getSearch(),t.searchParams=s.getSearchParams(),t.hash=s.getHash())},Fe=Ne.prototype,Ye=function(e,t){return{get:function(){return j(this)[e]()},set:t&&function(e){return j(this)[t](e)},configurable:!0,enumerable:!0}};if(a&&(d(Fe,"href",Ye("serialize","setHref")),d(Fe,"origin",Ye("getOrigin")),d(Fe,"protocol",Ye("getProtocol","setProtocol")),d(Fe,"username",Ye("getUsername","setUsername")),d(Fe,"password",Ye("getPassword","setPassword")),d(Fe,"host",Ye("getHost","setHost")),d(Fe,"hostname",Ye("getHostname","setHostname")),d(Fe,"port",Ye("getPort","setPort")),d(Fe,"pathname",Ye("getPathname","setPathname")),d(Fe,"search",Ye("getSearch","setSearch")),d(Fe,"searchParams",Ye("getSearchParams")),d(Fe,"hash",Ye("getHash","setHash"))),u(Fe,"toJSON",(function(){return j(this).serialize()}),{enumerable:!0}),u(Fe,"toString",(function(){return j(this).serialize()}),{enumerable:!0}),D){var He=D.createObjectURL,Be=D.revokeObjectURL;He&&u(Ne,"createObjectURL",l(He,D)),Be&&u(Ne,"revokeObjectURL",l(Be,D))}x(Ne,"URL"),i({global:!0,constructor:!0,forced:!r,sham:!a},{URL:Ne})},3296:(e,t,n)=>{"use strict";n(45806)},45781:(e,t,n)=>{"use strict";var s=n(46518),i=n(97751),a=n(22812),r=n(655),o=n(67416),l=i("URL");s({target:"URL",stat:!0,forced:!o},{parse:function(e){var t=a(arguments.length,1),n=r(e),s=t<2||void 0===arguments[1]?void 0:r(arguments[1]);try{return new l(n,s)}catch(e){return null}}})},27208:(e,t,n)=>{"use strict";var s=n(46518),i=n(69565);s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},19725:(e,t,n)=>{"use strict";var s=n(45666);e.exports=s},57919:(e,t,n)=>{"use strict";var s=n(17990);e.exports=s},69609:(e,t,n)=>{"use strict";var s=n(94014);e.exports=s},29326:(e,t,n)=>{"use strict";var s=n(61137);e.exports=s},56344:(e,t,n)=>{"use strict";var s=n(57655);n(62953),e.exports=s},40160:(e,t,n)=>{"use strict";var s=n(70979);e.exports=s},12841:(e,t,n)=>{"use strict";var s=n(98367);e.exports=s},16811:(e,t,n)=>{"use strict";n(48408),n(14603),n(47566),n(98721);var s=n(19167);e.exports=s.URLSearchParams},98367:(e,t,n)=>{"use strict";n(16811),n(3296),n(2222),n(45781),n(27208);var s=n(19167);e.exports=s.URL},95042:e=>{e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let s="",i=0|n;for(;i--;)s+=e[Math.random()*e.length|0];return s}}},46885:(e,t,n)=>{"use strict";n.d(t,{UE:()=>A,RK:()=>P,ll:()=>T,rD:()=>U,__:()=>C,UU:()=>I,jD:()=>L,mG:()=>E,ER:()=>R,cY:()=>D,iD:()=>k,BN:()=>O,Ej:()=>M});var s=n(97193);function i(e,t,n){let{reference:i,floating:a}=e;const r=(0,s.TV)(t),o=(0,s.Dz)(t),l=(0,s.sq)(o),c=(0,s.C0)(t),u="y"===r,d=i.x+i.width/2-a.width/2,p=i.y+i.height/2-a.height/2,h=i[l]/2-a[l]/2;let m;switch(c){case"top":m={x:d,y:i.y-a.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:p};break;case"left":m={x:i.x-a.width,y:p};break;default:m={x:i.x,y:i.y}}switch((0,s.Sg)(t)){case"start":m[o]-=h*(n&&u?-1:1);break;case"end":m[o]+=h*(n&&u?-1:1)}return m}async function a(e,t){var n;void 0===t&&(t={});const{x:i,y:a,platform:r,rects:o,elements:l,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=(0,s._3)(t,e),f=(0,s.nI)(m),g=l[h?"floating"===p?"reference":"floating":p],b=(0,s.B1)(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),v="floating"===p?{x:i,y:a,width:o.floating.width,height:o.floating.height}:o.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),x=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},_=(0,s.B1)(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:c}):v);return{top:(b.top-_.top+f.top)/x.y,bottom:(_.bottom-b.bottom+f.bottom)/x.y,left:(b.left-_.left+f.left)/x.x,right:(_.right-b.right+f.right)/x.x}}function r(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function o(e){return s.r_.some((t=>e[t]>=0))}function l(e){const t=(0,s.jk)(...e.map((e=>e.left))),n=(0,s.jk)(...e.map((e=>e.top)));return{x:t,y:n,width:(0,s.T9)(...e.map((e=>e.right)))-t,height:(0,s.T9)(...e.map((e=>e.bottom)))-n}}var c=n(86635);function u(e){const t=(0,c.L9)(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const a=(0,c.sb)(e),r=a?e.offsetWidth:n,o=a?e.offsetHeight:i,l=(0,s.LI)(n)!==r||(0,s.LI)(i)!==o;return l&&(n=r,i=o),{width:n,height:i,$:l}}function d(e){return(0,c.vq)(e)?e:e.contextElement}function p(e){const t=d(e);if(!(0,c.sb)(t))return(0,s.Jx)(1);const n=t.getBoundingClientRect(),{width:i,height:a,$:r}=u(t);let o=(r?(0,s.LI)(n.width):n.width)/i,l=(r?(0,s.LI)(n.height):n.height)/a;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}const h=(0,s.Jx)(0);function m(e){const t=(0,c.zk)(e);return(0,c.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function f(e,t,n,i){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),r=d(e);let o=(0,s.Jx)(1);t&&(i?(0,c.vq)(i)&&(o=p(i)):o=p(e));const l=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,c.zk)(e))&&t}(r,n,i)?m(r):(0,s.Jx)(0);let u=(a.left+l.x)/o.x,h=(a.top+l.y)/o.y,f=a.width/o.x,g=a.height/o.y;if(r){const e=(0,c.zk)(r),t=i&&(0,c.vq)(i)?(0,c.zk)(i):i;let n=e,s=(0,c._m)(n);for(;s&&i&&t!==n;){const e=p(s),t=s.getBoundingClientRect(),i=(0,c.L9)(s),a=t.left+(s.clientLeft+parseFloat(i.paddingLeft))*e.x,r=t.top+(s.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,h*=e.y,f*=e.x,g*=e.y,u+=a,h+=r,n=(0,c.zk)(s),s=(0,c._m)(n)}}return(0,s.B1)({width:f,height:g,x:u,y:h})}function g(e,t){const n=(0,c.CP)(e).scrollLeft;return t?t.left+n:f((0,c.ep)(e)).left+n}function b(e,t,n){void 0===n&&(n=!1);const s=e.getBoundingClientRect();return{x:s.left+t.scrollLeft-(n?0:g(e,s)),y:s.top+t.scrollTop}}function v(e,t,n){let i;if("viewport"===t)i=function(e,t){const n=(0,c.zk)(e),s=(0,c.ep)(e),i=n.visualViewport;let a=s.clientWidth,r=s.clientHeight,o=0,l=0;if(i){a=i.width,r=i.height;const e=(0,c.Tc)();(!e||e&&"fixed"===t)&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:r,x:o,y:l}}(e,n);else if("document"===t)i=function(e){const t=(0,c.ep)(e),n=(0,c.CP)(e),i=e.ownerDocument.body,a=(0,s.T9)(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=(0,s.T9)(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-n.scrollLeft+g(e);const l=-n.scrollTop;return"rtl"===(0,c.L9)(i).direction&&(o+=(0,s.T9)(t.clientWidth,i.clientWidth)-a),{width:a,height:r,x:o,y:l}}((0,c.ep)(e));else if((0,c.vq)(t))i=function(e,t){const n=f(e,!0,"fixed"===t),i=n.top+e.clientTop,a=n.left+e.clientLeft,r=(0,c.sb)(e)?p(e):(0,s.Jx)(1);return{width:e.clientWidth*r.x,height:e.clientHeight*r.y,x:a*r.x,y:i*r.y}}(t,n);else{const n=m(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,s.B1)(i)}function y(e,t){const n=(0,c.$4)(e);return!(n===t||!(0,c.vq)(n)||(0,c.eu)(n))&&("fixed"===(0,c.L9)(n).position||y(n,t))}function x(e,t,n){const i=(0,c.sb)(t),a=(0,c.ep)(t),r="fixed"===n,o=f(e,!0,r,t);let l={scrollLeft:0,scrollTop:0};const u=(0,s.Jx)(0);if(i||!i&&!r)if(("body"!==(0,c.mq)(t)||(0,c.ZU)(a))&&(l=(0,c.CP)(t)),i){const e=f(t,!0,r,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=g(a));const d=!a||i||r?(0,s.Jx)(0):b(a,l);return{x:o.left+l.scrollLeft-u.x-d.x,y:o.top+l.scrollTop-u.y-d.y,width:o.width,height:o.height}}function _(e){return"static"===(0,c.L9)(e).position}function S(e,t){if(!(0,c.sb)(e)||"fixed"===(0,c.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,c.ep)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){const n=(0,c.zk)(e);if((0,c.Tf)(e))return n;if(!(0,c.sb)(e)){let t=(0,c.$4)(e);for(;t&&!(0,c.eu)(t);){if((0,c.vq)(t)&&!_(t))return t;t=(0,c.$4)(t)}return n}let s=S(e,t);for(;s&&(0,c.Lv)(s)&&_(s);)s=S(s,t);return s&&(0,c.eu)(s)&&_(s)&&!(0,c.sQ)(s)?n:s||(0,c.gJ)(e)||n}const k={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e;const r="fixed"===a,o=(0,c.ep)(i),l=!!t&&(0,c.Tf)(t.floating);if(i===o||l&&r)return n;let u={scrollLeft:0,scrollTop:0},d=(0,s.Jx)(1);const h=(0,s.Jx)(0),m=(0,c.sb)(i);if((m||!m&&!r)&&(("body"!==(0,c.mq)(i)||(0,c.ZU)(o))&&(u=(0,c.CP)(i)),(0,c.sb)(i))){const e=f(i);d=p(i),h.x=e.x+i.clientLeft,h.y=e.y+i.clientTop}const g=!o||m||r?(0,s.Jx)(0):b(o,u,!0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-u.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-u.scrollTop*d.y+h.y+g.y}},getDocumentElement:c.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e;const r=[..."clippingAncestors"===n?(0,c.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let s=(0,c.v9)(e,[],!1).filter((e=>(0,c.vq)(e)&&"body"!==(0,c.mq)(e))),i=null;const a="fixed"===(0,c.L9)(e).position;let r=a?(0,c.$4)(e):e;for(;(0,c.vq)(r)&&!(0,c.eu)(r);){const t=(0,c.L9)(r),n=(0,c.sQ)(r);n||"fixed"!==t.position||(i=null),(a?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||(0,c.ZU)(r)&&!n&&y(e,r))?s=s.filter((e=>e!==r)):i=t,r=(0,c.$4)(r)}return t.set(e,s),s}(t,this._c):[].concat(n),i],o=r[0],l=r.reduce(((e,n)=>{const i=v(t,n,a);return e.top=(0,s.T9)(i.top,e.top),e.right=(0,s.jk)(i.right,e.right),e.bottom=(0,s.jk)(i.bottom,e.bottom),e.left=(0,s.T9)(i.left,e.left),e}),v(t,o,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:w,getElementRects:async function(e){const t=this.getOffsetParent||w,n=this.getDimensions,s=await n(e.floating);return{reference:x(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=u(e);return{width:t,height:n}},getScale:p,isElement:c.vq,isRTL:function(e){return"rtl"===(0,c.L9)(e).direction}};function j(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function T(e,t,n,i){void 0===i&&(i={});const{ancestorScroll:a=!0,ancestorResize:r=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,p=d(e),h=a||r?[...p?(0,c.v9)(p):[],...(0,c.v9)(t)]:[];h.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)}));const m=p&&l?function(e,t){let n,i=null;const a=(0,c.ep)(e);function r(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function o(l,c){void 0===l&&(l=!1),void 0===c&&(c=1),r();const u=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=u;if(l||t(),!h||!m)return;const f={rootMargin:-(0,s.RI)(p)+"px "+-(0,s.RI)(a.clientWidth-(d+h))+"px "+-(0,s.RI)(a.clientHeight-(p+m))+"px "+-(0,s.RI)(d)+"px",threshold:(0,s.T9)(0,(0,s.jk)(1,c))||1};let g=!0;function b(t){const s=t[0].intersectionRatio;if(s!==c){if(!g)return o();s?o(!1,s):n=setTimeout((()=>{o(!1,1e-7)}),1e3)}1!==s||j(u,e.getBoundingClientRect())||o(),g=!1}try{i=new IntersectionObserver(b,{...f,root:a.ownerDocument})}catch(e){i=new IntersectionObserver(b,f)}i.observe(e)}(!0),r}(p,n):null;let g,b=-1,v=null;o&&(v=new ResizeObserver((e=>{let[s]=e;s&&s.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),p&&!u&&v.observe(p),v.observe(t));let y=u?f(e):null;return u&&function t(){const s=f(e);y&&!j(y,s)&&n(),y=s,g=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach((e=>{a&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=v)||e.disconnect(),v=null,u&&cancelAnimationFrame(g)}}const C=a,D=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:a,y:r,placement:o,middlewareData:l}=t,c=await async function(e,t){const{placement:n,platform:i,elements:a}=e,r=await(null==i.isRTL?void 0:i.isRTL(a.floating)),o=(0,s.C0)(n),l=(0,s.Sg)(n),c="y"===(0,s.TV)(n),u=["left","top"].includes(o)?-1:1,d=r&&c?-1:1,p=(0,s._3)(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&"number"==typeof f&&(m="end"===l?-1*f:f),c?{x:m*d,y:h*u}:{x:h*u,y:m*d}}(t,e);return o===(null==(n=l.offset)?void 0:n.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:a+c.x,y:r+c.y,data:{...c,placement:o}}}}},P=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,r;const{rects:o,middlewareData:l,placement:c,platform:u,elements:d}=t,{crossAxis:p=!1,alignment:h,allowedPlacements:m=s.DD,autoAlignment:f=!0,...g}=(0,s._3)(e,t),b=void 0!==h||m===s.DD?function(e,t,n){return(e?[...n.filter((t=>(0,s.Sg)(t)===e)),...n.filter((t=>(0,s.Sg)(t)!==e))]:n.filter((e=>(0,s.C0)(e)===e))).filter((n=>!e||(0,s.Sg)(n)===e||!!t&&(0,s.aD)(n)!==n))}(h||null,f,m):m,v=await a(t,g),y=(null==(n=l.autoPlacement)?void 0:n.index)||0,x=b[y];if(null==x)return{};const _=(0,s.w7)(x,o,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(c!==x)return{reset:{placement:b[0]}};const S=[v[(0,s.C0)(x)],v[_[0]],v[_[1]]],w=[...(null==(i=l.autoPlacement)?void 0:i.overflows)||[],{placement:x,overflows:S}],k=b[y+1];if(k)return{data:{index:y+1,overflows:w},reset:{placement:k}};const j=w.map((e=>{const t=(0,s.Sg)(e.placement);return[e.placement,t&&p?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),T=(null==(r=j.filter((e=>e[2].slice(0,(0,s.Sg)(e[0])?2:3).every((e=>e<=0))))[0])?void 0:r[0])||j[0][0];return T!==c?{data:{index:y+1,overflows:w},reset:{placement:T}}:{}}}},O=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:r}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=(0,s._3)(e,t),d={x:n,y:i},p=await a(t,u),h=(0,s.TV)((0,s.C0)(r)),m=(0,s.PG)(h);let f=d[m],g=d[h];if(o){const e="y"===m?"bottom":"right",t=f+p["y"===m?"top":"left"],n=f-p[e];f=(0,s.qE)(t,f,n)}if(l){const e="y"===h?"bottom":"right",t=g+p["y"===h?"top":"left"],n=g-p[e];g=(0,s.qE)(t,g,n)}const b=c.fn({...t,[m]:f,[h]:g});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[m]:o,[h]:l}}}}}},I=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:r,middlewareData:o,rects:l,initialPlacement:c,platform:u,elements:d}=t,{mainAxis:p=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...v}=(0,s._3)(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=(0,s.C0)(r),x=(0,s.TV)(c),_=(0,s.C0)(c)===c,S=await(null==u.isRTL?void 0:u.isRTL(d.floating)),w=m||(_||!b?[(0,s.bV)(c)]:(0,s.WJ)(c)),k="none"!==g;!m&&k&&w.push(...(0,s.lP)(c,b,g,S));const j=[c,...w],T=await a(t,v),C=[];let D=(null==(i=o.flip)?void 0:i.overflows)||[];if(p&&C.push(T[y]),h){const e=(0,s.w7)(r,l,S);C.push(T[e[0]],T[e[1]])}if(D=[...D,{placement:r,overflows:C}],!C.every((e=>e<=0))){var P,O;const e=((null==(P=o.flip)?void 0:P.index)||0)+1,t=j[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(O=D.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:O.placement;if(!n)switch(f){case"bestFit":{var I;const e=null==(I=D.filter((e=>{if(k){const t=(0,s.TV)(e.placement);return t===x||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:I[0];e&&(n=e);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},M=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:r,rects:o,platform:l,elements:c}=t,{apply:u=()=>{},...d}=(0,s._3)(e,t),p=await a(t,d),h=(0,s.C0)(r),m=(0,s.Sg)(r),f="y"===(0,s.TV)(r),{width:g,height:b}=o.floating;let v,y;"top"===h||"bottom"===h?(v=h,y=m===(await(null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(y=h,v="end"===m?"top":"bottom");const x=b-p.top-p.bottom,_=g-p.left-p.right,S=(0,s.jk)(b-p[v],x),w=(0,s.jk)(g-p[y],_),k=!t.middlewareData.shift;let j=S,T=w;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=_),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(j=x),k&&!m){const e=(0,s.T9)(p.left,0),t=(0,s.T9)(p.right,0),n=(0,s.T9)(p.top,0),i=(0,s.T9)(p.bottom,0);f?T=g-2*(0!==e||0!==t?e+t:(0,s.T9)(p.left,p.right)):j=b-2*(0!==n||0!==i?n+i:(0,s.T9)(p.top,p.bottom))}await u({...t,availableWidth:T,availableHeight:j});const C=await l.getDimensions(c.floating);return g!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}},L=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...l}=(0,s._3)(e,t);switch(i){case"referenceHidden":{const e=r(await a(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:o(e)}}}case"escaped":{const e=r(await a(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:o(e)}}}default:return{}}}}},A=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:a,rects:r,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=(0,s._3)(e,t)||{};if(null==u)return{};const p=(0,s.nI)(d),h={x:n,y:i},m=(0,s.Dz)(a),f=(0,s.sq)(m),g=await o.getDimensions(u),b="y"===m,v=b?"top":"left",y=b?"bottom":"right",x=b?"clientHeight":"clientWidth",_=r.reference[f]+r.reference[m]-h[m]-r.floating[f],S=h[m]-r.reference[m],w=await(null==o.getOffsetParent?void 0:o.getOffsetParent(u));let k=w?w[x]:0;k&&await(null==o.isElement?void 0:o.isElement(w))||(k=l.floating[x]||r.floating[f]);const j=_/2-S/2,T=k/2-g[f]/2-1,C=(0,s.jk)(p[v],T),D=(0,s.jk)(p[y],T),P=C,O=k-g[f]-D,I=k/2-g[f]/2+j,M=(0,s.qE)(P,I,O),L=!c.arrow&&null!=(0,s.Sg)(a)&&I!==M&&r.reference[f]/2-(I<P?C:D)-g[f]/2<0,A=L?I<P?I-P:I-O:0;return{[m]:h[m]+A,data:{[m]:M,centerOffset:I-M-A,...L&&{alignmentOffset:A}},reset:L}}}),E=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:i,rects:a,platform:r,strategy:o}=t,{padding:c=2,x:u,y:d}=(0,s._3)(e,t),p=Array.from(await(null==r.getClientRects?void 0:r.getClientRects(i.reference))||[]),h=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let i=null;for(let e=0;e<t.length;e++){const s=t[e];!i||s.y-i.y>i.height/2?n.push([s]):n[n.length-1].push(s),i=s}return n.map((e=>(0,s.B1)(l(e))))}(p),m=(0,s.B1)(l(p)),f=(0,s.nI)(c),g=await r.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=d)return h.find((e=>u>e.left-f.left&&u<e.right+f.right&&d>e.top-f.top&&d<e.bottom+f.bottom))||m;if(h.length>=2){if("y"===(0,s.TV)(n)){const e=h[0],t=h[h.length-1],i="top"===(0,s.C0)(n),a=e.top,r=t.bottom,o=i?e.left:t.left,l=i?e.right:t.right;return{top:a,bottom:r,left:o,right:l,width:l-o,height:r-a,x:o,y:a}}const e="left"===(0,s.C0)(n),t=(0,s.T9)(...h.map((e=>e.right))),i=(0,s.jk)(...h.map((e=>e.left))),a=h.filter((n=>e?n.left===i:n.right===t)),r=a[0].top,o=a[a.length-1].bottom;return{top:r,bottom:o,left:i,right:t,width:t-i,height:o-r,x:i,y:r}}return m}},floating:i.floating,strategy:o});return a.reference.x!==g.reference.x||a.reference.y!==g.reference.y||a.reference.width!==g.reference.width||a.reference.height!==g.reference.height?{reset:{rects:g}}:{}}}},R=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:a,rects:r,middlewareData:o}=t,{offset:l=0,mainAxis:c=!0,crossAxis:u=!0}=(0,s._3)(e,t),d={x:n,y:i},p=(0,s.TV)(a),h=(0,s.PG)(p);let m=d[h],f=d[p];const g=(0,s._3)(l,t),b="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const e="y"===h?"height":"width",t=r.reference[h]-r.floating[e]+b.mainAxis,n=r.reference[h]+r.reference[e]-b.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var v,y;const e="y"===h?"width":"height",t=["top","left"].includes((0,s.C0)(a)),n=r.reference[p]-r.floating[e]+(t&&(null==(v=o.offset)?void 0:v[p])||0)+(t?0:b.crossAxis),i=r.reference[p]+r.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[p])||0)-(t?b.crossAxis:0);f<n?f=n:f>i&&(f=i)}return{[h]:m,[p]:f}}}},U=(e,t,n)=>{const s=new Map,a={platform:k,...n},r={...a.platform,_c:s};return(async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:r=[],platform:o}=n,l=r.filter(Boolean),c=await(null==o.isRTL?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:p}=i(u,s,c),h=s,m={},f=0;for(let n=0;n<l.length;n++){const{name:r,fn:g}=l[n],{x:b,y:v,data:y,reset:x}=await g({x:d,y:p,initialPlacement:s,placement:h,strategy:a,middlewareData:m,rects:u,platform:o,elements:{reference:e,floating:t}});d=null!=b?b:d,p=null!=v?v:p,m={...m,[r]:{...m[r],...y}},x&&f<=50&&(f++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),({x:d,y:p}=i(u,h,c))),n=-1)}return{x:d,y:p,placement:h,strategy:a,middlewareData:m}})(e,t,{...a,platform:r})}},86635:(e,t,n)=>{"use strict";function s(){return"undefined"!=typeof window}function i(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function a(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function r(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!s()&&(e instanceof Node||e instanceof a(e).Node)}function l(e){return!!s()&&(e instanceof Element||e instanceof a(e).Element)}function c(e){return!!s()&&(e instanceof HTMLElement||e instanceof a(e).HTMLElement)}function u(e){return!(!s()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof a(e).ShadowRoot)}function d(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(i)}function p(e){return["table","td","th"].includes(i(e))}function h(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function m(e){const t=g(),n=l(e)?v(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function f(e){let t=x(e);for(;c(t)&&!b(t);){if(m(t))return t;if(h(t))return null;t=x(t)}return null}function g(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function b(e){return["html","body","#document"].includes(i(e))}function v(e){return a(e).getComputedStyle(e)}function y(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function x(e){if("html"===i(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||r(e);return u(t)?t.host:t}function _(e){const t=x(e);return b(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&d(t)?t:_(t)}function S(e,t,n){var s;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=_(e),r=i===(null==(s=e.ownerDocument)?void 0:s.body),o=a(i);if(r){const e=w(o);return t.concat(o,o.visualViewport||[],d(i)?i:[],e&&n?S(e):[])}return t.concat(i,S(i,[],n))}function w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}n.d(t,{$4:()=>x,CP:()=>y,L9:()=>v,Lv:()=>p,Ng:()=>u,Tc:()=>g,Tf:()=>h,ZU:()=>d,_m:()=>w,ep:()=>r,eu:()=>b,gJ:()=>f,mq:()=>i,sQ:()=>m,sb:()=>c,v9:()=>S,vq:()=>l,zk:()=>a})},97193:(e,t,n)=>{"use strict";n.d(t,{B1:()=>C,C0:()=>f,DD:()=>a,Dz:()=>x,Jx:()=>u,LI:()=>l,PG:()=>b,RI:()=>c,Sg:()=>g,T9:()=>o,TV:()=>y,WJ:()=>S,_3:()=>m,aD:()=>w,bV:()=>j,jk:()=>r,lP:()=>k,nI:()=>T,qE:()=>h,r_:()=>s,sq:()=>v,w7:()=>_});const s=["top","right","bottom","left"],i=["start","end"],a=s.reduce(((e,t)=>e.concat(t,t+"-"+i[0],t+"-"+i[1])),[]),r=Math.min,o=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(e,t,n){return o(e,r(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(f(e))?"y":"x"}function x(e){return b(y(e))}function _(e,t,n){void 0===n&&(n=!1);const s=g(e),i=x(e),a=v(i);let r="x"===i?s===(n?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[a]>t.floating[a]&&(r=j(r)),[r,j(r)]}function S(e){const t=j(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,(e=>p[e]))}function k(e,t,n,s){const i=g(e);let a=function(e,t,n){const s=["left","right"],i=["right","left"],a=["top","bottom"],r=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:s:t?s:i;case"left":case"right":return t?a:r;default:return[]}}(f(e),"start"===n,s);return i&&(a=a.map((e=>e+"-"+i)),t&&(a=a.concat(a.map(w)))),a}function j(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function T(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function C(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={id:e,loaded:!1,exports:{}};return i[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=i,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var o=2&s&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"js/"+e+".app.bundle.js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},s="wptMain:",r.l=(e,t,i,a)=>{if(n[e])n[e].push(t);else{var o,l;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+i){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,r.nc&&o.setAttribute("nonce",r.nc),o.setAttribute("data-webpack",s+i),o.src=e),n[e]=[t];var p=(t,s)=>{o.onerror=o.onload=null,clearTimeout(h);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(s))),t)return t(s)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),l&&document.head.appendChild(o)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/modules/wp-toolkit/",(()=>{var e={792:0};r.f.j=(t,n)=>{var s=r.o(e,t)?e[t]:void 0;if(0!==s)if(s)n.push(s[2]);else{var i=new Promise(((n,i)=>s=e[t]=[n,i]));n.push(s[2]=i);var a=r.p+r.u(t),o=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,s[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var s,i,[a,o,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(s in o)r.o(o,s)&&(r.m[s]=o[s]);l&&l(r)}for(t&&t(n);c<a.length;c++)i=a[c],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkwptMain=self.webpackChunkwptMain||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};(()=>{"use strict";r(74209),r(68029),r(83835),r(66130),r(40828),r(72701),r(6396),function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),s=0;n[s]&&n[s]!==t;)++s;return Boolean(n[s])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window)})(),(()=>{"use strict";r.r(o),r.d(o,{default:()=>ZK,withoutInitialData:()=>tX,wpMode:()=>eX});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>cm,hasStandardBrowserEnv:()=>dm,hasStandardBrowserWebWorkerEnv:()=>pm,navigator:()=>um,origin:()=>hm});var t={};r.r(t),r.d(t,{addAppMessage:()=>Kg,addErrorMessage:()=>qg,addInfoMessage:()=>zg,addSuccessMessage:()=>Wg,addWarningMessage:()=>Gg,checkSession:()=>$g,clearAppMessage:()=>Xg,closeFlashMessage:()=>sb,closeGlobalAlert:()=>ib,disableSmartUpdatePromoForInstances:()=>Zg,disableSmartUpdatePromoForMultipleSitesUpdatesScreen:()=>tb,disableSmartUpdatePromoForUpdatesScreen:()=>eb,displayErrorMessageFromMeta:()=>Bg,displayErrorMessagesFromFormErrors:()=>Hg,fetchInitialData:()=>hb,getInitialOptions:()=>nb,getLicenseInfo:()=>db,getPremiumUsers:()=>ob,getWhmcsUpsellLink:()=>lb,loadChangelog:()=>ab,parseResponseMessages:()=>Vg,sendMainPagePerfStat:()=>fb,setSearch:()=>Qg,upVoteForFeature:()=>ub,updateLicenseInfo:()=>pb});var n={};r.r(n),r.d(n,{closeDrawer:()=>Fb,loadSettings:()=>Rb,loadSettingsIfFirstOpen:()=>Eb,openDrawer:()=>Nb,settingsLoaded:()=>Hb,settingsLoadingError:()=>Bb,settingsRequested:()=>Yb,settingsSubmitted:()=>Vb,settingsUpdateError:()=>Wb,settingsUpdated:()=>$b,updateSettings:()=>Ub});var s={};r.r(s),r.d(s,{activateOrDeactivatePlugin:()=>w_,getInstallationPlugins:()=>T_,getPluginInfo:()=>C_,remove:()=>k_,setPluginsAutoUpdates:()=>j_});var i={};r.r(i),r.d(i,{activateTheme:()=>A_,getInstallationThemes:()=>U_,remove:()=>E_,setThemesAutoUpdates:()=>R_});var a={};r.r(a),r.d(a,{acceptSmartPhpUpdate:()=>sw,activateVirtualPatchesSubscription:()=>Nk,appendDomainInstallationsIds:()=>qw,applySmartUpdate:()=>cw,calculateVulnerabilityProtectionUsageStatistics:()=>Yk,checkExpiredExpandedInstanceIds:()=>Xw,checkInstallationsVulnerability:()=>_k,checkUpdates:()=>BS,cleanUpUpdatesStore:()=>$S,createInstallation:()=>Hw,createMaintenancePreview:()=>vS,deleteSnapshot:()=>GS,detach:()=>_S,detachVirtualPatchesSubscription:()=>Fk,discardSmartPhpUpdate:()=>iw,discardSmartUpdate:()=>uw,executeWpCliCommand:()=>Bk,fetchAvailableUpdates:()=>VS,forgetExpandedInstanceId:()=>Kw,getAdminSettings:()=>pw,getAutoUpdateSettings:()=>ww,getAvailablePhpHandlers:()=>gS,getDbSettings:()=>ZS,getHotlinkProtectionSettingsMeta:()=>DS,getInstallationData:()=>XS,getInstallationLabelsMeta:()=>ak,getInstallationStub:()=>vk,getInstallationsRemoveConfiguration:()=>US,getInstancesData:()=>JS,getMaintenanceSettings:()=>fk,getMaintenanceTemplateCustomizationUrl:()=>xS,getPasswordProtection:()=>Ew,getRemoteAgentInstallationProperties:()=>Ik,getRemoteServerInstallationProperties:()=>Ok,getSetDetails:()=>yk,getSmartPhpUpdateResult:()=>nw,getSmartPhpUpdateStub:()=>tw,getSmartUpdateResult:()=>dw,getSynchronizeSiteUrlParams:()=>hk,getVirtualPatchesSubscriptionGuid:()=>Ek,getVirtualPatchesSubscriptionInfo:()=>Ak,getVirtualPatchesSubscriptionPurchaseUrlAndGuid:()=>Rk,getWordPressDebugSettings:()=>xk,getWpCliCommandsList:()=>Hk,getWpCredentials:()=>mk,getWpCronTakeoverMeta:()=>TS,getWpUser:()=>fw,installationStarted:()=>Yw,instanceUpdateFailed:()=>Zw,instanceUpdateFinished:()=>Jw,instancesCheckUpdatesFailed:()=>sk,instancesCheckUpdatesFinished:()=>nk,instancesDetachFinished:()=>SS,instancesMassUpdateFailed:()=>tk,instancesMassUpdateFinished:()=>ek,keepExpandedInstanceId:()=>Gw,loadInstancesList:()=>$w,loginToInstance:()=>ok,loginToInstancePerformed:()=>lk,recordHireDeveloperTransition:()=>Mk,redetectRemoteInstanceProperties:()=>Mw,redetectRemoteInstancePropertiesFinished:()=>Ow,redetectRemoteInstancePropertiesFinishedWithError:()=>Iw,refresh:()=>mS,refreshScreenshot:()=>AS,reload:()=>hS,remove:()=>bS,resetInstancesList:()=>Vw,restoreMaintenanceTemplate:()=>rw,restoreSnapshot:()=>WS,restoreSnapshotFinished:()=>qS,runSmartPhpUpdate:()=>Sk,saveRemoteAgentInstancePropertiesFinished:()=>Tw,saveRemoteAgentInstancePropertiesFinishedWithError:()=>Cw,saveRemoteInstancePropertiesFinished:()=>kw,saveRemoteInstancePropertiesFinishedWithError:()=>jw,scan:()=>FS,scanFinished:()=>HS,setAdminSettings:()=>hw,setAdminSettingsFinished:()=>mw,setDbSettings:()=>ew,setDebugSettings:()=>yw,setExpandedInstanceId:()=>zw,setHotlinkProtectionSettings:()=>PS,setIndexingStatus:()=>wS,setInstallationAfterInstallStarted:()=>Bw,setInstallationLabels:()=>rk,setInstallationPhpHandler:()=>wk,setInstanceActiveTab:()=>ik,setInstanceName:()=>Lw,setInstancesFilter:()=>ow,setIsNeedToUpdateInstancesFilter:()=>Fw,setIsNeedToUpdateInstancesList:()=>Nw,setLastInstalledInstanceId:()=>Qw,setMaintenanceFullMode:()=>yS,setNginxCachingStatus:()=>vw,setSelectedInstanceId:()=>Ww,setSmartUpdatesStatus:()=>LS,setWpUser:()=>gw,smartPhpUpdateFinished:()=>Tk,smartPhpUpdateResultApplied:()=>Ck,smartPhpUpdateResultDiscarded:()=>Dk,smartPhpUpdateStarted:()=>kk,smartPhpUpdateStubLoaded:()=>Pk,smartPhpUpdateTaskStatusUpdated:()=>jk,switchPhpHandler:()=>fS,synchronizeSiteUrl:()=>ck,synchronizeSiteUrlFinished:()=>pk,synchronizeSiteUrlStarted:()=>dk,synchronizeSiteUrlSync:()=>uk,toggleDebug:()=>xw,toggleHotlinkProtection:()=>CS,togglePasswordProtectionStatus:()=>Uw,toggleWpCronTakeoverStatus:()=>kS,toggleWpCronTakeoverTaskStatus:()=>jS,updateAutoUpdateSettings:()=>_w,updateInstallationsAutoUpdatesSettings:()=>Sw,updateItems:()=>lw,updateMaintenanceSettings:()=>aw,updateMaintenanceStatus:()=>IS,updatePasswordProtection:()=>Rw,updateRemoteAgentInstanceProperties:()=>Pw,updateRemoteInstanceProperties:()=>Dw,updateVirtualPatchingSubscriptionInfo:()=>Uk,updateVulnerabilityFilteringSettings:()=>Lk,validateInstallationPath:()=>bk,vulnerabilityCheckerStatsUpdate:()=>gk});var l={};r.r(l),r.d(l,{activatePlugins:()=>nT,activatePluginsFinished:()=>tT,deactivatePlugins:()=>aT,deactivatePluginsFinished:()=>iT,getPluginsList:()=>Yj,installPlugins:()=>Gj,installPluginsFinished:()=>qj,reloadPlugins:()=>Vj,reloadPluginsFinished:()=>Bj,removePlugins:()=>dT,removePluginsFinished:()=>uT,resetPluginsList:()=>Hj,searchPlugins:()=>Wj,searchPluginsFinished:()=>$j,uninstallPlugins:()=>lT,uninstallPluginsFinished:()=>oT,updatePlugins:()=>mT,updatePluginsFinished:()=>hT,uploadAndInstallPlugin:()=>Zj,uploadAndInstallPluginTaskFinished:()=>Qj,uploadAndInstallPluginTaskStarted:()=>Jj,uploadPluginToStorage:()=>Xj,uploadPluginToStorageFinished:()=>Kj});var c={};r.r(c),r.d(c,{createInstanceBackup:()=>SM,instanceBackupCreationFinished:()=>jM,instanceBackupCreationFinishedWithError:()=>kM,instanceBackupCreationStarted:()=>wM,instanceBackupRestoringFinished:()=>PM,instanceBackupRestoringFinishedWithError:()=>DM,instanceBackupRestoringStarted:()=>CM,loadInstanceBackupsMetaData:()=>yM,removeInstanceBackups:()=>_M,resetInstanceBackupList:()=>xM,restoreInstanceBackup:()=>TM});var u={};r.r(u),r.d(u,{INSTANCE_TYPE_LOCAL_CPANEL:()=>OM,INSTANCE_TYPE_LOCAL_PLESK_LINUX:()=>MM,INSTANCE_TYPE_LOCAL_PLESK_WINDOWS:()=>LM,INSTANCE_TYPE_MANAGED_BY_PLUGIN:()=>EM,INSTANCE_TYPE_REMOTE_CPANEL:()=>IM,INSTANCE_TYPE_REMOTE_GENERIC:()=>AM});var d={};r.r(d),r.d(d,{activateThemeOnAllInstances:()=>fE,activateThemeOnAllInstancesFinished:()=>mE,getThemesList:()=>$A,installThemes:()=>JA,installThemesFinished:()=>QA,reloadThemes:()=>qA,reloadThemesFinished:()=>zA,removeThemes:()=>cE,removeThemesOnAllInstancesFinished:()=>lE,resetThemesList:()=>WA,searchThemes:()=>KA,searchThemesFinished:()=>GA,uninstallThemes:()=>rE,uninstallThemesOnAllInstancesFinished:()=>aE,updateThemes:()=>pE,updateThemesOnAllInstancesFinished:()=>dE,uploadAndInstallTheme:()=>sE,uploadAndInstallThemeTaskFinished:()=>tE,uploadAndInstallThemeTaskStarted:()=>nE,uploadThemeToStorage:()=>eE,uploadThemeToStorageFinished:()=>ZA});var p={};r.r(p),r.d(p,{addPluginsToSet:()=>zE,addSet:()=>YE,addThemesToSet:()=>eR,getPluginDescription:()=>_R,getPluginDescriptionFinished:()=>xR,getSetsList:()=>UE,getThemeDescription:()=>wR,getThemeDescriptionFinished:()=>SR,installSetFinished:()=>kR,installSetInto:()=>cR,removeAllPluginsFromSet:()=>bR,removeAllPluginsFromSetFinished:()=>gR,removeAllThemesFromSet:()=>yR,removeAllThemesFromSetFinished:()=>vR,removePluginFromSet:()=>nR,removePluginFromSetFinished:()=>tR,removeSet:()=>fR,removeSetFinished:()=>mR,removeSets:()=>BE,removeThemeFromSet:()=>iR,removeThemeFromSetFinished:()=>sR,renameSet:()=>$E,resetSetsList:()=>NE,searchPlugins:()=>dR,searchPluginsFinished:()=>uR,searchThemes:()=>hR,searchThemesFinished:()=>pR,setPluginActivationState:()=>QE,setThemeActivationState:()=>JE,uploadPlugin:()=>rR,uploadPluginFinished:()=>aR,uploadTheme:()=>lR,uploadThemeFinished:()=>oR});var h={};r.r(h),r.d(h,{acceptFingerprint:()=>KR,addServer:()=>ZR,addServerFinished:()=>sU,addServerFinishedWithError:()=>iU,addServerStarted:()=>eU,addServerToList:()=>tU,detachServers:()=>qR,disableBetaDialog:()=>oU,getServer:()=>GR,getServersList:()=>rU,refreshInstancesLog:()=>cU,resetInstancesLog:()=>dU,resetServersList:()=>aU,scanServers:()=>XR,scanServersFinished:()=>JR,setInstancesLog:()=>uU,updateServerInList:()=>nU});var m={};r.r(m),r.d(m,{getAvailable:()=>VN,install:()=>WN,uploadAndInstallAssetToSingleInstance:()=>GN,uploadAndInstallAssetToSingleInstanceFinished:()=>QN,uploadAndInstallAssetToSingleInstanceFinishedWithError:()=>XN,uploadAndInstallAssetToSingleInstanceStarted:()=>KN});var f={};r.r(f),r.d(f,{getSyncSettings:()=>OB,syncFinished:()=>LB,syncInstance:()=>MB,syncStarted:()=>IB});var g={};function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},b.apply(this,arguments)}function v(e){return"/"===e.charAt(0)}function y(e,t){for(var n=t,s=n+1,i=e.length;s<i;n+=1,s+=1)e[n]=e[s];e.pop()}r.r(g),r.d(g,{cloneFinished:()=>kz,cloneInstallation:()=>wz,cloneStarted:()=>Sz,getCloneStub:()=>jz,validateClonePath:()=>_z});const x=function(e,t){if(!e)throw new Error("Invariant failed")};function _(e){var t=e.pathname,n=e.search,s=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),s&&"#"!==s&&(i+="#"===s.charAt(0)?s:"#"+s),i}function S(e,t,n,s){var i;"string"==typeof e?(i=function(e){var t=e||"/",n="",s="",i=t.indexOf("#");-1!==i&&(s=t.substr(i),t=t.substr(0,i));var a=t.indexOf("?");return-1!==a&&(n=t.substr(a),t=t.substr(0,a)),{pathname:t,search:"?"===n?"":n,hash:"#"===s?"":s}}(e),i.state=t):(void 0===(i=b({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),s?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=function(e,t){void 0===t&&(t="");var n,s=e&&e.split("/")||[],i=t&&t.split("/")||[],a=e&&v(e),r=t&&v(t),o=a||r;if(e&&v(e)?i=s:s.length&&(i.pop(),i=i.concat(s)),!i.length)return"/";if(i.length){var l=i[i.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=i.length;u>=0;u--){var d=i[u];"."===d?y(i,u):".."===d?(y(i,u),c++):c&&(y(i,u),c--)}if(!o)for(;c--;c)i.unshift("..");!o||""===i[0]||i[0]&&v(i[0])||i.unshift("");var p=i.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}(i.pathname,s.pathname)):i.pathname=s.pathname:i.pathname||(i.pathname="/"),i}var w=!("undefined"==typeof window||!window.document||!window.document.createElement);function k(e,t){t(window.confirm(e))}var j="popstate",T="hashchange";function C(){try{return window.history.state||{}}catch(e){return{}}}function D(e){void 0===e&&(e={}),w||x(!1);var t,n,s=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,a=!(-1===window.navigator.userAgent.indexOf("Trident")),r=e,o=r.forceRefresh,l=void 0!==o&&o,c=r.getUserConfirmation,u=void 0===c?k:c,d=r.keyLength,p=void 0===d?6:d,h=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}("/"===(n=e.basename).charAt(0)?n:"/"+n):"";function m(e){var t=e||{},n=t.key,s=t.state,i=window.location,a=i.pathname+i.search+i.hash;return h&&(a=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(a,h)),S(a,s,n)}function f(){return Math.random().toString(36).substr(2,p)}var g,v,y=(g=null,v=[],{setPrompt:function(e){return g=e,function(){g===e&&(g=null)}},confirmTransitionTo:function(e,t,n,s){if(null!=g){var i="function"==typeof g?g(e,t):g;"string"==typeof i?"function"==typeof n?n(i,s):s(!0):s(!1!==i)}else s(!0)},appendListener:function(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return v.push(n),function(){t=!1,v=v.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v.forEach((function(e){return e.apply(void 0,t)}))}});function D(e){b(Y,e),Y.length=s.length,y.notifyListeners(Y.location,Y.action)}function P(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(m(e.state))}function O(){M(m(C()))}var I=!1;function M(e){I?(I=!1,D()):y.confirmTransitionTo(e,"POP",u,(function(t){t?D({action:"POP",location:e}):function(e){var t=Y.location,n=A.indexOf(t.key);-1===n&&(n=0);var s=A.indexOf(e.key);-1===s&&(s=0);var i=n-s;i&&(I=!0,R(i))}(e)}))}var L=m(C()),A=[L.key];function E(e){return h+_(e)}function R(e){s.go(e)}var U=0;function N(e){1===(U+=e)&&1===e?(window.addEventListener(j,P),a&&window.addEventListener(T,O)):0===U&&(window.removeEventListener(j,P),a&&window.removeEventListener(T,O))}var F=!1,Y={length:s.length,action:"POP",location:L,createHref:E,push:function(e,t){var n="PUSH",a=S(e,t,f(),Y.location);y.confirmTransitionTo(a,n,u,(function(e){if(e){var t=E(a),r=a.key,o=a.state;if(i)if(s.pushState({key:r,state:o},null,t),l)window.location.href=t;else{var c=A.indexOf(Y.location.key),u=A.slice(0,c+1);u.push(a.key),A=u,D({action:n,location:a})}else window.location.href=t}}))},replace:function(e,t){var n="REPLACE",a=S(e,t,f(),Y.location);y.confirmTransitionTo(a,n,u,(function(e){if(e){var t=E(a),r=a.key,o=a.state;if(i)if(s.replaceState({key:r,state:o},null,t),l)window.location.replace(t);else{var c=A.indexOf(Y.location.key);-1!==c&&(A[c]=a.key),D({action:n,location:a})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=y.setPrompt(e);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),t()}},listen:function(e){var t=y.appendListener(e);return N(1),function(){N(-1),t()}}};return Y}var P=r(74848),O=r(38338),I=r.n(O),M=r(96540),L=r.t(M,2),A=r(46942),E=r.n(A),R=r(17);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},U(e)}function N(e){var t=function(e){if("object"!=U(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=U(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==U(t)?t:t+""}function F(e,t,n){return(t=N(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=e=>"object"==typeof e&&null!=e&&1===e.nodeType,H=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,B=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return H(n.overflowY,t)||H(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},V=(e,t,n,s,i,a,r,o)=>a<e&&r>t||a>e&&r<t?0:a<=e&&o<=n||r>=t&&o>=n?a-e-s:r>t&&o<n||a<e&&o>n?r-t+i:0,$=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},W=(e,t)=>{var n,s,i,a;if("undefined"==typeof document)return[];const{scrollMode:r,block:o,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!Y(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;Y(m)&&d(m);){if(m=$(m),m===p){h.push(m);break}null!=m&&m===document.body&&B(m)&&!B(document.documentElement)||null!=m&&B(m,u)&&h.push(m)}const f=null!=(s=null==(n=window.visualViewport)?void 0:n.width)?s:innerWidth,g=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:x,top:_,right:S,bottom:w,left:k}=e.getBoundingClientRect(),{top:j,right:T,bottom:C,left:D}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let P="start"===o||"nearest"===o?_-j:"end"===o?w+C:_+y/2-j+C,O="center"===l?k+x/2-D+T:"end"===l?S+T:k-D;const I=[];for(let e=0;e<h.length;e++){const t=h[e],{height:n,width:s,top:i,right:a,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===r&&_>=0&&k>=0&&w<=g&&S<=f&&(t===p&&!B(t)||_>=i&&w<=c&&k>=u&&S<=a))return I;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),j=parseInt(d.borderTopWidth,10),T=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let D=0,M=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-T:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-j-C:0,E="offsetWidth"in t?0===t.offsetWidth?0:s/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)D="start"===o?P:"end"===o?P-g:"nearest"===o?V(v,v+g,g,j,C,v+P,v+P+y,y):P-g/2,M="start"===l?O:"center"===l?O-f/2:"end"===l?O-f:V(b,b+f,f,m,T,b+O,b+O+x,x),D=Math.max(0,D+v),M=Math.max(0,M+b);else{D="start"===o?P-i-j:"end"===o?P-c+C+A:"nearest"===o?V(i,c,n,j,C+A,P,P+y,y):P-(i+n/2)+A/2,M="start"===l?O-u-m:"center"===l?O-(u+s/2)+L/2:"end"===l?O-a+T+L:V(u,a,s,m,T+L,O,O+x,x);const{scrollLeft:e,scrollTop:r}=t;D=0===R?0:Math.max(0,Math.min(r+D/R,t.scrollHeight-n/R+A)),M=0===E?0:Math.max(0,Math.min(e+M/E,t.scrollWidth-s/E+L)),P+=r-D,O+=e-M}I.push({el:t,top:D,left:M})}return I};const z=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];e(...n)}},q=(e,t)=>function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];z(e,...s),z(t,...s)},G=e=>{const{target:t,currentTarget:n}=e;if(!1===(t instanceof HTMLElement&&n.contains(t)))return!0;if(t instanceof HTMLElement&&t.hasAttribute("disabled"))return!1;let s=t;for(;s&&s!==n;){if(!(s instanceof HTMLElement))return!0;switch(s.nodeName){case"A":case"INPUT":case"BUTTON":case"LABEL":return!0}if("button"===s.getAttribute("role"))return!0;s=s.parentNode}return!1},K=e=>{const t=t=>e(t);return(0,P.jsx)(t,{})},X=(e,t)=>function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(W(e,t));const s="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:i,top:a,left:r}of W(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=a-n.top+n.bottom,t=r-n.left+n.right;i.scroll({top:e,left:t,behavior:s})}}(e,{block:"center",behavior:"smooth",...t});class Q{constructor(){F(this,"listeners",{})}on(e,t){void 0===this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t)}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];const i=this.listeners[e];i&&i.forEach((e=>{"function"==typeof e&&e(...n)}))}}const J=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>!0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{getNext:(e,t)=>{const n=e.children,s=Array.prototype.indexOf.call(n,t);if(-1!==s)return n[s+1]},getPrev:(e,t)=>{const n=e.children,s=Array.prototype.indexOf.call(n,t);if(-1!==s)return n[s-1]},getFirst:e=>e.firstElementChild,getLast:e=>e.lastElementChild};const s=e=>!!(t(e)&&e instanceof HTMLElement)&&(e.focus(),!0),i=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e.current)return!1;const o=n.getNext(e.current,t);return!(!o||!s(o)&&!i(o,a))||r(a+1)},a=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.activeElement,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e.current)return!1;const r=n.getPrev(e.current,t);return!(!r||!s(r)&&!a(r,i))||o(i+1)},r=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t>1)return!1;if(!e.current)return!1;const a=n.getFirst(e.current);return!(!a||!s(a)&&!i(a,t))},o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t>1)return!1;if(!e.current)return!1;const i=n.getLast(e.current);return!(!i||!s(i)&&!a(i,t))};return{focusNext:i,focusPrev:a,focusFirst:r,focusLast:o}},Z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}},ee=e=>String(Number(e))===String(e)?`${e}px`:e,te={"i-filter-02":"filter","i-filter-check-mark":"filter-check-mark","i-sliders":"sliders","i-two-sheets-blank":"copy","i-server-refresh":"backup","i-two-arrows-refresh-04":"refresh","i-circle-check-mark":"check-mark-circle","i-check-mark":"check-mark","i-three-dots":"three-dots-horizontal","tree-dots-horizontal":"three-dots-horizontal","i-square-arrow-up-04":"arrow-up-in","i-square-arrow-down-04":"arrow-down-in","i-shield-star":"shield","i-menu":"menu","i-folder-blank-closed-02":"folder-closed","i-arrow-refresh-02":"reload","i-eye-03":"eye-closed","i-www-site-picture-text":"site-page","i-broken-chain":"chain-broken","i-eye-02":"eye","i-arrows-looping-06":"arrows-loop","i-circle-question-mark-02":"question-mark-circle-filled","i-circle-check-mark-02":"check-mark-circle-filled","i-circle-info-02":"info-circle-filled","i-circle-exclamation-mark-02":"exclamation-mark-circle-filled","i-magnifying-glass":"search","i-circle-exclamation-mark":"exclamation-mark-circle","i-cross-mark":"cross-mark","i-plus":"plus","i-circle-question-mark":"question-mark-circle","i-arrow-up-07":"chevron-down","i-arrow-down-07":"chevron-up","i-arrow-right-07":"chevron-right","i-arrow-left-07":"chevron-left","i-arrow-up-06":"arrow-up-tray","i-arrow-down-06":"arrow-down-tray","i-trashcan":"remove","i-four-squares":"four-squares","i-shopping-cart-02":"shopping-cart","i-chain":"chain","i-gear":"gear","i-list":"list","i-pencil":"pencil","i-circle-cross-mark":"clean","i-circle-minus":"minus-circle","i-circle-info":"info-circle","i-folder-blank-open":"folder-open",world:"globe","circle-check-mark":"check-mark-circle","circle-check-mark-filled":"check-mark-circle-filled","circle-exclamation-mark":"exclamation-mark-circle","circle-exclamation-mark-filled":"exclamation-mark-circle-filled","circle-info":"info-circle","circle-info-filled":"info-circle-filled","circle-minus":"minus-circle","circle-question-mark":"question-mark-circle","circle-question-mark-filled":"question-mark-circle-filled",sertificate:"ribbon"},ne=["advisor","archive","arrow-back","arrow-diagonal-out","arrow-down","arrow-down-circle-filled","arrow-down-in","arrow-down-out","arrow-down-tray","arrow-left","arrow-left-circle-filled","arrow-right","arrow-right-circle-filled","arrow-right-in","arrow-right-out","arrow-up","arrow-up-circle","arrow-up-circle-filled","arrow-up-in","arrow-up-in-cloud","arrow-up-out","arrow-up-tray","arrows-four-directions","arrows-inward","arrows-loop","arrows-opposite","arrows-outward","backup","backup2","bar-chart-vertical","bar-chart-vertical-arrow-up","bar-chart-vertical-lock","bell","book-email","boost","boundary","box-diagonal-bottom-in","box-diagonal-top-in","brush","bug","calendar","calendar-clock","camera","card","card-ribbon","card-row","card-tile","cd","cd-up-in-cloud","chain","chain-broken","chat","check-list","check-mark","check-mark-circle","check-mark-circle-filled","chevron-double-down","chevron-double-up","chevron-down","chevron-left","chevron-right","chevron-up","circle-diagonal","clean","clip","clock","clone","cloud","cloud-checkmark","cloud-crossed","cloud-graph","code","connection","console","console-filled","copy","copy-indicator","cpu","crane","credit-cards","cross-mark","cross-mark-circle","cross-mark-circle-filled","crown-transfer","dashboard","database","database-box","database-filled","database-plus","deploy","docker-filled","dollar","dollar-filled","dot","dot-big","emoticon-confused","emoticon-dead","emoticon-excited","emoticon-happy","emoticon-neutral","emoticon-sad","emoticon-smile","enter","exclamation-mark-circle","exclamation-mark-circle-filled","eye","eye-closed","facebook","facebook-filled","feedback","file","filter","filter-check-mark","fire","flag","flag-filled","flag-globe","floppy-disk","folder-closed","folder-key","folder-network","folder-open","folders-tree","forward-circle-filled","four-squares","gear","git","github","globe","hard-drive","hard-drive-key","hat","hexagons","home","info-circle","info-circle-filled","ip-addresses","joomla","kebab","key","label","label-plus","laravel","lifebuoy","lightbulb","limit","linux","list","list-check-mark","location","lock-closed","lock-closed-check","lock-closed-filled","lock-open","lock-open-cross","lock-open-filled","mail","mail-circle-filled","mail-settings","megaphone","menu","menu-thin","microsoft","minimize","minus","minus-circle","minus-circle-filled","monitoring","monitoring-off","my-little-admin","net","nine-dots","node-js","package","panel","panel-check","panel-eye","panel-key","panel-settings","panels","pause-circle","pencil","pencil-dialog","php","phpmyadmin","pin","pipette","plans","plugins","plus","plus-circle","plus-circle-filled","power","projects","puzzle","python","question-mark-circle","question-mark-circle-filled","ram","react-js","recycle","redirect-circle-filled","refresh","reload","remove","reset","resource","ribbon","rocket","ruby","sand-clock","scan","screen","search","security-check","send","server","servers","share","shield","shield-attention-filled","shield-chain","shield-filled","shopping-cart","sidebar-right-hide","sidebar-right-show","signal-light","site-page","sleep","sliders","square-with-circles","ssl-it","star","star-circle-filled","star-filled","star-half-filled","start","start-circle","start-filled","stop","stop-circle","storage","themes","three-dots-horizontal","three-dots-vertical","tools","transfer","triangle-exclamation-mark","triangle-exclamation-mark-filled","unarchive","user","volume","web","web-plus","web-settings","windows","woocommerce","wordpress","wordpress-minus","zero-circle-filled"],se=["advisor","archive","arrow-back","arrow-diagonal-out","arrow-down","arrow-down-circle-filled","arrow-down-in","arrow-down-out","arrow-down-tray","arrow-left","arrow-left-circle-filled","arrow-right","arrow-right-circle-filled","arrow-right-in","arrow-right-out","arrow-up","arrow-up-circle","arrow-up-circle-filled","arrow-up-in","arrow-up-in-cloud","arrow-up-out","arrow-up-tray","arrows-four-directions","arrows-inward","arrows-loop","arrows-opposite","arrows-outward","backup","backup2","bar-chart-vertical","bar-chart-vertical-arrow-up","bar-chart-vertical-lock","bell","book-email","boost","boundary","box-diagonal-bottom-in","box-diagonal-top-in","brush","bug","calendar","calendar-clock","camera","card","card-ribbon","card-row","card-tile","cd","cd-up-in-cloud","chain","chain-broken","chat","check-list","check-mark","check-mark-circle","check-mark-circle-filled","chevron-double-down","chevron-double-up","chevron-down","chevron-left","chevron-right","chevron-up","circle-diagonal","clean","clip","clock","clone","cloud","cloud-checkmark","cloud-crossed","cloud-graph","code","connection","console","console-filled","copy","copy-indicator","cpu","crane","credit-cards","cross-mark","cross-mark-circle","cross-mark-circle-filled","crown-transfer","dashboard","database","database-box","database-filled","database-plus","deploy","docker-filled","dollar","dollar-filled","dot","dot-big","emoticon-confused","emoticon-dead","emoticon-excited","emoticon-happy","emoticon-neutral","emoticon-sad","emoticon-smile","enter","exclamation-mark-circle","exclamation-mark-circle-filled","eye","eye-closed","facebook","facebook-filled","feedback","file","filter","filter-check-mark","fire","flag","flag-filled","flag-globe","floppy-disk","folder-closed","folder-key","folder-network","folder-open","folders-tree","forward-circle-filled","four-squares","gear","git","github","globe","hard-drive","hard-drive-key","hat","hexagons","home","info-circle","info-circle-filled","ip-addresses","joomla","kebab","key","label","label-plus","laravel","lifebuoy","lightbulb","limit","linux","list","list-check-mark","location","lock-closed","lock-closed-check","lock-closed-filled","lock-open","lock-open-cross","lock-open-filled","mail","mail-circle-filled","mail-settings","megaphone","menu","menu-thin","microsoft","minimize","minus","minus-circle","minus-circle-filled","monitoring","monitoring-off","my-little-admin","net","nine-dots","node-js","package","panel","panel-check","panel-eye","panel-key","panel-settings","panels","pause-circle","pencil","pencil-dialog","php","phpmyadmin","pin","pipette","plans","plugins","plus","plus-circle","plus-circle-filled","power","projects","puzzle","python","question-mark-circle","question-mark-circle-filled","ram","react-js","recycle","redirect-circle-filled","refresh","reload","remove","reset","resource","ribbon","rocket","ruby","sand-clock","scan","screen","search","security-check","send","server","servers","share","shield","shield-attention-filled","shield-chain","shield-filled","shopping-cart","sidebar-right-hide","sidebar-right-show","signal-light","site-page","sleep","sliders","square-with-circles","ssl-it","star","star-circle-filled","star-filled","star-half-filled","start","start-circle","start-filled","stop","stop-circle","storage","themes","three-dots-horizontal","three-dots-vertical","tools","transfer","triangle-exclamation-mark","triangle-exclamation-mark-filled","unarchive","user","volume","web","web-plus","web-settings","windows","woocommerce","wordpress","wordpress-minus","zero-circle-filled"],ie=(0,M.createContext)(!1),ae="12",re="16",oe="24",le="32",ce="48",ue="64",de="96",pe="128",he="192",me={sm:re,md:le,lg:"48",xl:"64",xxl:"96"},fe=(e,t)=>{let n="16";return"12"!==t&&"24"!==t||-1===ne.indexOf(e)||(n="12"),`/modules/wp-toolkit/images/symbols.svg#${e}:${n}`},ge=e=>{let{baseClassName:t=`${R.CLS_PREFIX}icon`,className:n,name:s,src:i,size:a,intent:r,animation:o,rotate:l,flipHorizontal:c=!1,flipVertical:u=!1,children:d,alt:p="",...h}=e;const m=a&&me[a]||a,f=s?te[s]||s:null;return(0,P.jsx)("span",{className:E()(t,{[`${t}--size-${m}`]:m,[`${t}--intent ${t}--${r}`]:r,[`${t}--animation-${o}`]:o,[`${t}--rotate-${l}`]:l,[`${t}--flip-horizontal`]:c,[`${t}--flip-vertical`]:u,[`${t}--on-dark`]:(0,M.useContext)(ie)},n),...h,children:f?(0,P.jsx)("svg",{focusable:"false",children:(0,P.jsx)("use",{href:fe(f,m)})}):i&&(0,P.jsx)("img",{src:i,alt:p})||d})};ge.create=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;if((0,M.isValidElement)(e)){const{className:n,...s}=e.props,i={...t};return Object.keys(s).forEach((e=>{null!==s[e]&&void 0!==s[e]&&(i[e]=s[e])})),(t.className||n)&&(i.className=E()(t.className,n)),(0,M.cloneElement)(e,i)}if("object"==typeof e){const{className:n,...s}=e;return(0,P.jsx)(be,{...t,className:t.className||n?E()(t.className,n):null,...s})}return(0,P.jsx)(be,{...t,name:e})};const be=ge,ve=e=>{let{baseClassName:t=`${R.CLS_PREFIX}spinner`,className:n,colorAnimation:s=!0,...i}=e;return(0,P.jsx)("svg",{className:E()(t,n,{[`${t}--color-animation`]:s}),...i,viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,P.jsx)("circle",{className:`${t}__path`,fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"24",cy:"24",r:"21"})})},ye=e=>{let{baseClassName:t=`${R.CLS_PREFIX}action`,component:n="a",icon:s,onClick:i,rightAddon:a,bottomAddon:r,children:o,progress:l=!1,primary:c=!1,nowrap:u=!1,outerProps:d={},...p}=e;const{className:h,component:m="span",...f}=d;s=be.create(s,{className:`${t}__icon`,size:re});let g=re;(0,M.isValidElement)(s)&&s.props.size&&({size:g}=s.props);const b={...p,onClick:i,className:E()(p.className,`${t}__content`)||void 0};return l&&(s=(0,P.jsx)(be,{size:g,className:`${t}__icon`,children:(0,P.jsx)(ve,{})}),b.onClick=e=>e.preventDefault(),b.tabIndex=-1),i&&(b.tabIndex=b.tabIndex||0,b.onKeyDown=q(b.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())}))),(0,P.jsxs)(m,{className:E()(t,{[`${t}--size-${g}`]:s||l,[`${t}--progress`]:l,[`${t}--primary`]:c,[`${t}--nowrap`]:u,[`${t}--icon`]:!M.Children.toArray(o).length&&!a&&!r},h),...f,children:[(0,P.jsxs)(n,{...b,children:[s,o]}),a?(0,P.jsx)("span",{className:`${t}__right-addon`,children:a}):null,r?(0,P.jsx)("span",{className:`${t}__bottom-addon`,children:r}):null]})},xe=e=>{let{baseClassName:t=`${R.CLS_PREFIX}alert`,className:n,intent:s,children:i,onClose:a,...r}=e;return(0,P.jsxs)("div",{className:E()(t,{[`${t}--${s}`]:s},n),...r,children:[a&&(0,P.jsx)("span",{className:"close",onClick:a}),i]})},_e=e=>{let{baseClassName:t=`${R.CLS_PREFIX}auxiliary-actions`,className:n,separator:s=(0,P.jsx)("span",{className:`${t}__separator`,children:" | "}),children:i,...a}=e;return(0,P.jsx)("span",{className:E()(t,n),...a,children:M.Children.toArray(i).reduce(((e,t,n)=>0===e.length?[t]:[...e,(0,M.isValidElement)(s)?(0,M.cloneElement)(s,{key:n}):s,t]),[])})},Se="span",we=e=>{let{baseClassName:t=`${R.CLS_PREFIX}label`,children:n,className:s,component:i=Se,icon:a,intent:r="inactive",view:o,size:l,caps:c,...u}=e;a=be.create(a,{className:`${t}__icon`,size:"lg"===l?"16":"12"}),void 0!==c||l&&"sm"!==l||(c=!0);let d=i;d===Se&&u.onClick&&(d="button");const p={};return"button"===d&&(p.type="button"),(0,P.jsxs)(d,{className:E()(t,{[`${t}--${o}`]:o,[`${t}--${l}`]:l,[`${t}--${r}`]:r,[`${t}--caps`]:c},s),...p,...u,children:[a,n&&(0,P.jsx)("span",{className:`${t}__content`,children:n})]})},ke=e=>{let{baseClassName:t=`${R.CLS_PREFIX}badge`,className:n,children:s,label:i,intent:a,hidden:r,...o}=e;const l=!i&&0!==i;if(M.Children.toArray(s).length&&!r){if((0,M.isValidElement)(i)||(i=(0,P.jsx)(we,{intent:"danger",children:i})),(0,M.isValidElement)(i)){const e={className:E()(`${t}__value`,{[`${t}__value--dot`]:l},i.props.className)};!a||i.type!==we&&i.type!==be||(e.intent=a),i=(0,M.cloneElement)(i,e)}}else i=null;return(0,P.jsxs)("div",{className:E()(t,n),...o,children:[(0,P.jsx)("div",{children:s}),i]})};var je=r(40961);const Te=(0,M.createContext)(0),Ce=(0,M.createContext)(void 0),De=e=>{let{baseClassName:t=`${R.CLS_PREFIX}layer`,className:n,children:s,innerRef:i,level:a=0,...r}=e;const o=(0,M.useContext)(Te),l=(0,M.useContext)(Ce)||document.body;return(0,je.createPortal)((0,P.jsx)(Te.Provider,{value:o+a,children:(0,P.jsx)("div",{className:E()(t,n),ref:i,...r,children:(0,M.isValidElement)(s)?(0,M.cloneElement)(s,{style:{...s.props.style,zIndex:o+a}}):s})}),l)};class Pe extends M.Component{constructor(){super(...arguments),F(this,"state",{left:0,top:0,ready:!1,visible:!1}),F(this,"timer",null),F(this,"tooltipRef",(0,M.createRef)()),F(this,"clearTimer",(()=>{this.timer&&(clearTimeout(this.timer),this.timer=null)})),F(this,"handleShow",(()=>{this.clearTimer(),this.setState({visible:!0})})),F(this,"handleHide",(()=>{this.clearTimer(),this.setState({visible:!1,ready:!1})})),F(this,"handleMouseEnter",(()=>{this.timer||(this.setState({ready:!0}),this.timer=setTimeout((()=>this.handleShow()),this.props.delay))})),F(this,"handleMouseMove",(e=>{if(this.tooltipRef.current){const t=e.currentTarget.getBoundingClientRect(),{width:n,height:s}=this.tooltipRef.current.getBoundingClientRect(),i=(e=>{let{clientX:t,clientY:n,tooltipWidth:s,tooltipHeight:i,targetRect:a}=e;const r=((e,t)=>(n,s)=>({top:s,left:n,right:n+e,bottom:s+t}))(s,i),o={top:0,left:0,right:document.documentElement.clientWidth,bottom:document.documentElement.clientHeight},l=[()=>({left:t+8,top:n+16}),()=>({left:t-s-8,top:n+16}),()=>({left:a.left+(a.right-a.left)/2-s/2,top:n+16}),()=>({left:t+8,top:n-i-8}),()=>({left:t-s-8,top:n-i-8}),()=>({left:a.left+(a.right-a.left)/2-s/2,top:n-i-16})];for(let e=0;e<l.length;e++){const t=l[e],{left:n,top:s}=t();if(u=o,(c=r(n,s)).left>=u.left&&c.right<=u.right&&c.top>=u.top&&c.bottom<=u.bottom)return{left:n+window.pageXOffset,top:s+window.pageYOffset}}var c,u;return{top:a.top+16,left:a.left+8}})({clientX:e.clientX,clientY:e.clientY,tooltipWidth:n,tooltipHeight:s,targetRect:t});this.setState({...i})}}))}componentWillUnmount(){this.clearTimer()}renderTooltip(){const{left:e,top:t,visible:n}=this.state,{baseClassName:s,className:i,children:a,title:r,style:o,delay:l,...c}=this.props;return(0,P.jsx)(De,{level:R.Z_INDEX_TOOLTIP,children:(0,P.jsx)("span",{ref:this.tooltipRef,className:E()(s,i),style:{...o,transform:`translate(${e}px, ${t}px)`,visibility:n?"visible":"hidden"},role:"tooltip",...c,children:r})})}render(){const{ready:e}=this.state,{children:t}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,M.cloneElement)(t,{onMouseEnter:q(t.props.onMouseEnter,this.handleMouseEnter),onMouseMove:q(t.props.onMouseMove,this.handleMouseMove),onMouseLeave:q(t.props.onMouseLeave,this.handleHide),onMouseDown:q(t.props.onMouseDown,this.handleHide)}),e&&this.renderTooltip()]})}}F(Pe,"defaultProps",{delay:550,style:void 0,className:void 0,baseClassName:`${R.CLS_PREFIX}tooltip`});const Oe=Pe,Ie=(0,M.createContext)(void 0);Ie.displayName="ResponsiveContext";const Me=Ie,Le={defaultProps:{size:void 0}},Ae=(0,M.createContext)(Le),Ee=e=>({...Le,...e,defaultProps:{...Le.defaultProps,...e.defaultProps||{}}}),Re=Ae,Ue={"customize-order":"arrows-four-directions",download:"arrow-down-tray",edit:"pencil",folder:"folder-closed","globe-alt":"globe",import:"arrow-down-in",invisible:"eye-closed",link:"chain",lock:"lock-closed","ok-circle":"check-mark-circle","question-circle":"question-mark-circle","security-scan":"shield",settings:"sliders",suspend:"sleep",unlock:"lock-open",upload:"arrow-up-tray",visible:"eye"},Ne=e=>{let{baseClassName:t,icon:n,size:s,empty:i}=e;return be.create(Ue[n]||n,{className:`${t}__icon`,size:"lg"===s||i?"16":"12"})},Fe=e=>{let t,{baseClassName:n,size:s,caret:i}=e;return t="boolean"==typeof i&&i?(0,P.jsx)(be,{name:"chevron-down",size:"lg"===s?"16":"12"}):i,(0,M.isValidElement)(t)&&(t=(0,M.cloneElement)(t,{className:E()(`${n}__caret`,t.props.className)})),t},Ye=["size","intent","ghost","selected","onToggle","state","disabled","tooltip","icon","caret","fill","children","component","className","baseClassName","arrow","onClick"],He=(0,M.forwardRef)(((e,t)=>{let{baseClassName:n=`${R.CLS_PREFIX}button`,className:s,component:i,size:a,intent:r,ghost:o=!1,selected:l,onToggle:c,state:u,icon:d,caret:p,fill:h=!1,tooltip:m,children:f,arrow:g,disabled:b=!1,...v}=e;const y=i||"button",[x,_]=(0,M.useState)(!1),S=(0,M.useContext)(Me),w=(0,M.useContext)(Re),k=a||w.defaultProps.size,j={};"button"===y?j.type="button":"a"===y&&(j.role="button",j.tabIndex=0,b&&(v.href=void 0)),v.onClick&&b&&(v.onClick=e=>{e.preventDefault()});let T=f,C=m;S&&d&&f&&(T=null,m||(C=f)),!v.onClick&&c&&(v.onClick=e=>{e.preventDefault(),c((_(!x),!x))});const D=void 0===l?x:l;(void 0!==l||c)&&(j["aria-pressed"]=`${D}`);const O="forward"===g||"backward"===g,I="button"===y&&b&&m;let L=(0,P.jsxs)(y,{ref:t,className:E()(n,{[`${n}--${k}`]:k,[`${n}--${r}`]:r&&!o,[`${n}--ghost`]:o,[`${n}--${u}`]:u,[`${n}--selected`]:D,[`${n}--disabled`]:b,[`${n}--empty`]:!T,[`${n}--caret`]:p,[`${n}--fill`]:h,[`${n}--arrow ${n}--arrow-${g}`]:O&&!o,[`${n}--on-dark`]:(0,M.useContext)(ie)},s),disabled:I?void 0:b,"aria-disabled":I?"true":void 0,...j,...v,children:[(0,P.jsxs)("span",{className:`${n}__inner`,children:["loading"===u?(0,P.jsx)(ve,{className:`${n}__spinner`}):Ne({baseClassName:n,icon:d,size:k,empty:!T}),(0,P.jsx)("span",{children:T}),Fe({baseClassName:n,size:k,caret:p})]}),O&&!o&&(0,P.jsx)("span",{className:`${n}__arrow`})]});return C&&(L=(0,P.jsx)(Oe,{title:C,children:L})),L}));He.displayName="Button";const Be=He,Ve=e=>{let{baseClassName:t=`${R.CLS_PREFIX}button-group`,className:n,children:s,innerRef:i,...a}=e;return(0,P.jsx)("div",{className:E()(t,n),ref:i,...a,children:s})};var $e=r(5556),We=r.n($e);function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},ze.apply(this,arguments)}function qe(e,t){if(null==e)return{};var n,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}function Ke(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ge(e,t)}function Xe(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}r(37271);const Qe=M.createContext(null);var Je=function(e){return e.scrollTop},Ze="unmounted",et="exited",tt="entering",nt="entered",st="exiting",it=function(e){function t(t,n){var s;s=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return s.appearStatus=null,t.in?a?(i=et,s.appearStatus=tt):i=nt:i=t.unmountOnExit||t.mountOnEnter?Ze:et,s.state={status:i},s.nextCallback=null,s}Ke(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ze?{status:et}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==tt&&n!==nt&&(t=tt):n!==tt&&n!==nt||(t=st)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,s=this.props.timeout;return e=t=n=s,null!=s&&"number"!=typeof s&&(e=s.exit,t=s.enter,n=void 0!==s.appear?s.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===tt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:je.findDOMNode(this);n&&Je(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:Ze})},n.performEnter=function(e){var t=this,n=this.props.enter,s=this.context?this.context.isMounting:e,i=this.props.nodeRef?[s]:[je.findDOMNode(this),s],a=i[0],r=i[1],o=this.getTimeouts(),l=s?o.appear:o.enter;e||n?(this.props.onEnter(a,r),this.safeSetState({status:tt},(function(){t.props.onEntering(a,r),t.onTransitionEnd(l,(function(){t.safeSetState({status:nt},(function(){t.props.onEntered(a,r)}))}))}))):this.safeSetState({status:nt},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),s=this.props.nodeRef?void 0:je.findDOMNode(this);t?(this.props.onExit(s),this.safeSetState({status:st},(function(){e.props.onExiting(s),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:et},(function(){e.props.onExited(s)}))}))}))):this.safeSetState({status:et},(function(){e.props.onExited(s)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(s){n&&(n=!1,t.nextCallback=null,e(s))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:je.findDOMNode(this),s=null==e&&!this.props.addEndListener;if(n&&!s){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],r=i[1];this.props.addEndListener(a,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ze)return null;var t=this.props,n=t.children,s=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,qe(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return M.createElement(Qe.Provider,{value:null},"function"==typeof n?n(e,s):M.cloneElement(M.Children.only(n),s))},t}(M.Component);function at(){}it.contextType=Qe,it.propTypes={},it.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:at,onEntering:at,onEntered:at,onExit:at,onExiting:at,onExited:at},it.UNMOUNTED=Ze,it.EXITED=et,it.ENTERING=tt,it.ENTERED=nt,it.EXITING=st;const rt=it;var ot=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return s=t,void((n=e).classList?n.classList.remove(s):"string"==typeof n.className?n.className=Xe(n.className,s):n.setAttribute("class",Xe(n.className&&n.className.baseVal||"",s)));var n,s}))},lt=function(e){function t(){for(var t,n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(t=e.call.apply(e,[this].concat(s))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var s=t.resolveArguments(e,n),i=s[0],a=s[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var s=t.resolveArguments(e,n),i=s[0],a=s[1]?"appear":"enter";t.addClass(i,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var s=t.resolveArguments(e,n),i=s[0],a=s[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,s="string"==typeof n,i=s?(s&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:s?i+"-active":n[e+"Active"],doneClassName:s?i+"-done":n[e+"Done"]}},t}Ke(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var s=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(s+=" "+i),"active"===n&&e&&Je(e),s&&(this.appliedClasses[t][n]=s,function(e,t){e&&t&&t.split(" ").forEach((function(t){return s=t,void((n=e).classList?n.classList.add(s):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,s)||("string"==typeof n.className?n.className=n.className+" "+s:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+s)));var n,s}))}(e,s))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],s=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},s&&ot(e,s),i&&ot(e,i),a&&ot(e,a)},n.render=function(){var e=this.props,t=(e.classNames,qe(e,["classNames"]));return M.createElement(rt,ze({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(M.Component);lt.defaultProps={classNames:""},lt.propTypes={};const ct=lt,ut=e=>{let{baseClassName:t=`${R.CLS_PREFIX}checkbox`,className:n,children:s,onChange:i,tooltip:a,checked:r,defaultChecked:o,disabled:l=!1,name:c,indeterminate:u=!1,inputProps:d,rightAddon:p,...h}=e,m=(0,P.jsxs)("div",{className:E()(t,{[`${t}--disabled`]:l,[`${t}--indeterminate`]:u},n),...h,children:[(0,P.jsxs)("label",{className:`${t}__label`,children:[(0,P.jsx)("input",{className:`${t}__input`,type:"checkbox",onChange:e=>{!l&&i&&i(e.target.checked)},checked:!u&&r,defaultChecked:o,disabled:l,name:c,...d}),(0,P.jsx)("span",{className:`${t}__indicator`}),s?(0,P.jsx)("span",{className:`${t}__text`,children:s}):null]}),p||null]});return a&&(m=(0,P.jsx)(Oe,{title:a,children:m})),m},dt=()=>"rtl"===getComputedStyle(document.documentElement).direction;let pt=!0;const ht=(0,M.createContext)(null);class mt extends M.Component{constructor(){super(...arguments),F(this,"context",void 0),F(this,"children",[]),F(this,"addChild",(e=>{this.children.push(e)})),F(this,"removeChild",(e=>{this.children=this.children.filter((t=>t!==e))})),F(this,"getIgnoreNodes",(()=>{const{ignoreNodes:e}=this.props,t="function"==typeof e?e():[];return t.push(this),this.children.forEach((e=>e.getIgnoreNodes().forEach((e=>t.push(e))))),t})),F(this,"onOutsideClick",(e=>{const t=e.target,n=this.getIgnoreNodes().map((e=>e instanceof mt&&e.props.nodeRef&&e.props.nodeRef.current?e.props.nodeRef.current:e instanceof M.Component?(0,je.findDOMNode)(e):e instanceof Node?e:e&&e.current instanceof Node?e.current:null)).some((e=>Boolean(e&&t instanceof Node&&e.contains(t))));n||this.props.onClose&&this.props.onClose()}))}componentDidMount(){document.body.addEventListener("click",this.onOutsideClick,{capture:!0}),this.context&&this.context.addChild(this)}componentWillUnmount(){document.body.removeEventListener("click",this.onOutsideClick,{capture:!0}),this.context&&this.context.removeChild(this)}render(){return(0,P.jsx)(ht.Provider,{value:this,children:M.Children.only(this.props.children)})}}mt.contextType=ht;const ft=mt;var gt="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,bt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(gt&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),vt=gt&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),bt))}};function yt(e){return e&&"[object Function]"==={}.toString.call(e)}function xt(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function _t(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function St(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=xt(e),n=t.overflow,s=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+s)?e:St(_t(e))}function wt(e){return e&&e.referenceNode?e.referenceNode:e}var kt=gt&&!(!window.MSInputMethodContext||!document.documentMode),jt=gt&&/MSIE 10/.test(navigator.userAgent);function Tt(e){return 11===e?kt:10===e?jt:kt||jt}function Ct(e){if(!e)return document.documentElement;for(var t=Tt(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var s=n&&n.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===xt(n,"position")?Ct(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Dt(e){return null!==e.parentNode?Dt(e.parentNode):e}function Pt(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,s=n?e:t,i=n?t:e,a=document.createRange();a.setStart(s,0),a.setEnd(i,0);var r,o,l=a.commonAncestorContainer;if(e!==l&&t!==l||s.contains(i))return"BODY"===(o=(r=l).nodeName)||"HTML"!==o&&Ct(r.firstElementChild)!==r?Ct(l):l;var c=Dt(e);return c.host?Pt(c.host,t):Pt(e,Dt(t).host)}function Ot(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var s=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||s)[t]}return e[t]}function It(e,t){var n="x"===t?"Left":"Top",s="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+s+"Width"])}function Mt(e,t,n,s){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Tt(10)?parseInt(n["offset"+e])+parseInt(s["margin"+("Height"===e?"Top":"Left")])+parseInt(s["margin"+("Height"===e?"Bottom":"Right")]):0)}function Lt(e){var t=e.body,n=e.documentElement,s=Tt(10)&&getComputedStyle(n);return{height:Mt("Height",t,n,s),width:Mt("Width",t,n,s)}}var At=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),Et=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Rt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e};function Ut(e){return Rt({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Nt(e){var t={};try{if(Tt(10)){t=e.getBoundingClientRect();var n=Ot(e,"top"),s=Ot(e,"left");t.top+=n,t.left+=s,t.bottom+=n,t.right+=s}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Lt(e.ownerDocument):{},r=a.width||e.clientWidth||i.width,o=a.height||e.clientHeight||i.height,l=e.offsetWidth-r,c=e.offsetHeight-o;if(l||c){var u=xt(e);l-=It(u,"x"),c-=It(u,"y"),i.width-=l,i.height-=c}return Ut(i)}function Ft(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=Tt(10),i="HTML"===t.nodeName,a=Nt(e),r=Nt(t),o=St(e),l=xt(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&i&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=Ut({top:a.top-r.top-c,left:a.left-r.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!s&&i){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(s&&!n?t.contains(o):t===o&&"BODY"!==o.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=Ot(t,"top"),i=Ot(t,"left"),a=n?-1:1;return e.top+=s*a,e.bottom+=s*a,e.left+=i*a,e.right+=i*a,e}(d,t)),d}function Yt(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===xt(e,"position"))return!0;var n=_t(e);return!!n&&Yt(n)}function Ht(e){if(!e||!e.parentElement||Tt())return document.documentElement;for(var t=e.parentElement;t&&"none"===xt(t,"transform");)t=t.parentElement;return t||document.documentElement}function Bt(e,t,n,s){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},r=i?Ht(e):Pt(e,wt(t));if("viewport"===s)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,s=Ft(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),r=t?0:Ot(n),o=t?0:Ot(n,"left");return Ut({top:r-s.top+s.marginTop,left:o-s.left+s.marginLeft,width:i,height:a})}(r,i);else{var o=void 0;"scrollParent"===s?"BODY"===(o=St(_t(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===s?e.ownerDocument.documentElement:s;var l=Ft(o,r,i);if("HTML"!==o.nodeName||Yt(r))a=l;else{var c=Lt(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=u+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}var p="number"==typeof(n=n||0);return a.left+=p?n:n.left||0,a.top+=p?n:n.top||0,a.right-=p?n:n.right||0,a.bottom-=p?n:n.bottom||0,a}function Vt(e){return e.width*e.height}function $t(e,t,n,s,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var r=Bt(n,s,a,i),o={top:{width:r.width,height:t.top-r.top},right:{width:r.right-t.right,height:r.height},bottom:{width:r.width,height:r.bottom-t.bottom},left:{width:t.left-r.left,height:r.height}},l=Object.keys(o).map((function(e){return Rt({key:e},o[e],{area:Vt(o[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,s=e.height;return t>=n.clientWidth&&s>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function Wt(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Ft(n,s?Ht(t):Pt(t,wt(n)),s)}function zt(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),s=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+s,height:e.offsetHeight+n}}function qt(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function Gt(e,t,n){n=n.split("-")[0];var s=zt(e),i={width:s.width,height:s.height},a=-1!==["right","left"].indexOf(n),r=a?"top":"left",o=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return i[r]=t[r]+t[l]/2-s[l]/2,i[o]=n===o?t[o]-s[c]:t[qt(o)],i}function Kt(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Xt(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var s=Kt(e,(function(e){return e[t]===n}));return e.indexOf(s)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&yt(n)&&(t.offsets.popper=Ut(t.offsets.popper),t.offsets.reference=Ut(t.offsets.reference),t=n(t,e))})),t}function Qt(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=Wt(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$t(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Gt(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Xt(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Jt(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Zt(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),s=0;s<t.length;s++){var i=t[s],a=i?""+i+n:e;if(void 0!==document.body.style[a])return a}return null}function en(){return this.state.isDestroyed=!0,Jt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Zt("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function tn(e){var t=e.ownerDocument;return t?t.defaultView:window}function nn(e,t,n,s){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||nn(St(a.parentNode),t,n,s),s.push(a)}function sn(e,t,n,s){n.updateBound=s,tn(e).addEventListener("resize",n.updateBound,{passive:!0});var i=St(e);return nn(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function an(){this.state.eventsEnabled||(this.state=sn(this.reference,this.options,this.state,this.scheduleUpdate))}function rn(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,tn(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function on(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function ln(e,t){Object.keys(t).forEach((function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&on(t[n])&&(s="px"),e.style[n]=t[n]+s}))}var cn=gt&&/Firefox/i.test(navigator.userAgent);function un(e,t,n){var s=Kt(e,(function(e){return e.name===t})),i=!!s&&e.some((function(e){return e.name===n&&e.enabled&&e.order<s.order}));if(!i){var a="`"+t+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}var dn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],pn=dn.slice(3);function hn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=pn.indexOf(e),s=pn.slice(n+1).concat(pn.slice(0,n));return t?s.reverse():s}var mn={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],s=t.split("-")[1];if(s){var i=e.offsets,a=i.reference,r=i.popper,o=-1!==["bottom","top"].indexOf(n),l=o?"left":"top",c=o?"width":"height",u={start:Et({},l,a[l]),end:Et({},l,a[l]+a[c]-r[c])};e.offsets.popper=Rt({},r,u[s])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,s=t.offset,i=e.placement,a=e.offsets,r=a.popper,o=a.reference,l=i.split("-")[0];return n=on(+s)?[+s,0]:function(e,t,n,s){var i=[0,0],a=-1!==["right","left"].indexOf(s),r=e.split(/(\+|\-)/).map((function(e){return e.trim()})),o=r.indexOf(Kt(r,(function(e){return-1!==e.search(/,|\s/)})));r[o]&&-1===r[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==o?[r.slice(0,o).concat([r[o].split(l)[0]]),[r[o].split(l)[1]].concat(r.slice(o+1))]:[r];return(c=c.map((function(e,s){var i=(1===s?!a:a)?"height":"width",r=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,s){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],r=i[2];return a?0===r.indexOf("%")?Ut("%p"===r?n:s)[t]/100*a:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a:e}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,s){on(n)&&(i[t]+=n*("-"===e[s-1]?-1:1))}))})),i}(s,r,o,l),"left"===l?(r.top+=n[0],r.left-=n[1]):"right"===l?(r.top+=n[0],r.left+=n[1]):"top"===l?(r.left+=n[0],r.top-=n[1]):"bottom"===l&&(r.left+=n[0],r.top+=n[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Ct(e.instance.popper);e.instance.reference===n&&(n=Ct(n));var s=Zt("transform"),i=e.instance.popper.style,a=i.top,r=i.left,o=i[s];i.top="",i.left="",i[s]="";var l=Bt(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=r,i[s]=o,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),Et({},e,n)},secondary:function(e){var n="right"===e?"left":"top",s=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(s=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),Et({},n,s)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=Rt({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,s=t.reference,i=e.placement.split("-")[0],a=Math.floor,r=-1!==["top","bottom"].indexOf(i),o=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return n[o]<a(s[l])&&(e.offsets.popper[l]=a(s[l])-n[c]),n[l]>a(s[o])&&(e.offsets.popper[l]=a(s[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!un(e.instance.modifiers,"arrow","keepTogether"))return e;var s=t.element;if("string"==typeof s){if(!(s=e.instance.popper.querySelector(s)))return e}else if(!e.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,r=a.popper,o=a.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=zt(s)[c];o[h]-m<r[d]&&(e.offsets.popper[d]-=r[d]-(o[h]-m)),o[d]+m>r[h]&&(e.offsets.popper[d]+=o[d]+m-r[h]),e.offsets.popper=Ut(e.offsets.popper);var f=o[d]+o[c]/2-m/2,g=xt(e.instance.popper),b=parseFloat(g["margin"+u]),v=parseFloat(g["border"+u+"Width"]),y=f-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(r[c]-m,y),0),e.arrowElement=s,e.offsets.arrow=(Et(n={},d,Math.round(y)),Et(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Jt(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Bt(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),s=e.placement.split("-")[0],i=qt(s),a=e.placement.split("-")[1]||"",r=[];switch(t.behavior){case"flip":r=[s,i];break;case"clockwise":r=hn(s);break;case"counterclockwise":r=hn(s,!0);break;default:r=t.behavior}return r.forEach((function(o,l){if(s!==o||r.length===l+1)return e;s=e.placement.split("-")[0],i=qt(s);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===s&&d(c.right)>d(u.left)||"right"===s&&d(c.left)<d(u.right)||"top"===s&&d(c.bottom)>d(u.top)||"bottom"===s&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),m=d(c.right)>d(n.right),f=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),b="left"===s&&h||"right"===s&&m||"top"===s&&f||"bottom"===s&&g,v=-1!==["top","bottom"].indexOf(s),y=!!t.flipVariations&&(v&&"start"===a&&h||v&&"end"===a&&m||!v&&"start"===a&&f||!v&&"end"===a&&g),x=!!t.flipVariationsByContent&&(v&&"start"===a&&m||v&&"end"===a&&h||!v&&"start"===a&&g||!v&&"end"===a&&f),_=y||x;(p||b||_)&&(e.flipped=!0,(p||b)&&(s=r[l+1]),_&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=s+(a?"-"+a:""),e.offsets.popper=Rt({},e.offsets.popper,Gt(e.instance.popper,e.offsets.reference,e.placement)),e=Xt(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],s=e.offsets,i=s.popper,a=s.reference,r=-1!==["left","right"].indexOf(n),o=-1===["top","left"].indexOf(n);return i[r?"left":"top"]=a[n]-(o?i[r?"width":"height"]:0),e.placement=qt(t),e.offsets.popper=Ut(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!un(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Kt(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,s=t.y,i=e.offsets.popper,a=Kt(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,o,l=void 0!==a?a:t.gpuAcceleration,c=Ct(e.instance.popper),u=Nt(c),d={position:i.position},p=function(e,t){var n=e.offsets,s=n.popper,i=n.reference,a=Math.round,r=Math.floor,o=function(e){return e},l=a(i.width),c=a(s.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?a:r:o,h=t?a:o;return{left:p(l%2==1&&c%2==1&&!d&&t?s.left-1:s.left),top:h(s.top),bottom:h(s.bottom),right:p(s.right)}}(e,window.devicePixelRatio<2||!cn),h="bottom"===n?"top":"bottom",m="right"===s?"left":"right",f=Zt("transform");if(o="bottom"===h?"HTML"===c.nodeName?-c.clientHeight+p.bottom:-u.height+p.bottom:p.top,r="right"===m?"HTML"===c.nodeName?-c.clientWidth+p.right:-u.width+p.right:p.left,l&&f)d[f]="translate3d("+r+"px, "+o+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var g="bottom"===h?-1:1,b="right"===m?-1:1;d[h]=o*g,d[m]=r*b,d.willChange=h+", "+m}var v={"x-placement":e.placement};return e.attributes=Rt({},v,e.attributes),e.styles=Rt({},d,e.styles),e.arrowStyles=Rt({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return ln(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&ln(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,s,i){var a=Wt(i,t,e,n.positionFixed),r=$t(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",r),ln(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},fn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:mn},gn=function(){function e(t,n){var s=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=vt(this.update.bind(this)),this.options=Rt({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Rt({},e.Defaults.modifiers,i.modifiers)).forEach((function(t){s.options.modifiers[t]=Rt({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Rt({name:e},s.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&yt(e.onLoad)&&e.onLoad(s.reference,s.popper,s.options,e,s.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return At(e,[{key:"update",value:function(){return Qt.call(this)}},{key:"destroy",value:function(){return en.call(this)}},{key:"enableEventListeners",value:function(){return an.call(this)}},{key:"disableEventListeners",value:function(){return rn.call(this)}}]),e}();gn.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,gn.placements=dn,gn.Defaults=fn;const bn=gn;class vn extends M.Component{constructor(){super(...arguments),F(this,"state",{popperStyle:null,arrowStyle:null,actualPlacement:this.props.placement}),F(this,"popper",null),F(this,"contentRef",(0,M.createRef)()),F(this,"arrowRef",null),F(this,"extractStyles",(e=>{const{onUpdate:t}=this.props,n={popperStyle:{...e.hide?{visibility:"hidden",pointerEvents:"none"}:void 0,...e.styles,position:e.offsets.popper.position},actualPlacement:e.placement,arrowStyle:e.arrowStyles};this.setState(n),t?.(n)}))}componentDidMount(){this.updatePopper(this.props)}componentDidUpdate(e){const{show:t,boundariesElement:n,placement:s,offset:i,behavior:a,arrow:r,children:o}=this.props;e.show===t&&e.boundariesElement===n&&e.placement===s&&e.offset===i&&e.behavior===a&&e.arrow===r&&e.children===o||setTimeout((()=>{this.updatePopper(this.props)}),0)}componentWillUnmount(){this.popper&&this.popper.destroy()}updatePopper(e){let{show:t,boundariesElement:n,placement:s,offset:i,behavior:a,arrow:r,targetRef:o}=e;if(this.popper&&this.popper.destroy(),!this.contentRef.current||!t)return;const l={placement:s,modifiers:{applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.extractStyles,order:900},preventOverflow:{enabled:!0,boundariesElement:n},hide:{enabled:!0},offset:{enabled:!0,offset:i},flip:{enabled:!0,padding:0,behavior:a},arrow:r&&this.arrowRef?{enabled:!0,element:this.arrowRef}:void 0}};let c;c=o&&o.current?o.current:(0,je.findDOMNode)(this),this.popper=new bn(c,this.contentRef.current,l)}render(){const{baseClassName:e,className:t,children:n,target:s,targetRef:i,arrow:a,placement:r,behavior:o,offset:l,onUpdate:c,zIndex:u,show:d,boundariesElement:p,style:h,...m}=this.props,{popperStyle:f}=this.state,{arrowStyle:g,actualPlacement:b}=this.state,v=a&&(0,M.cloneElement)(a,{ref:e=>this.arrowRef=e,style:g});return(0,P.jsxs)(M.Fragment,{children:[s,d?(0,P.jsx)(De,{level:u,children:(0,P.jsxs)("div",{ref:this.contentRef,className:E()(e,t,`${e}--placement-${b}`),style:{...h,...f||{position:"fixed",opacity:0}},...m,children:[n,v]})}):null]})}}F(vn,"defaultProps",{show:!0,children:null,arrow:null,placement:"bottom-start",behavior:"flip",offset:"0, 0",onUpdate:null,className:null,baseClassName:`${R.CLS_PREFIX}popper`,zIndex:null,boundariesElement:"window",style:void 0,targetRef:void 0});const yn=vn,xn=e=>{let{className:t,baseClassName:n=`${R.CLS_PREFIX}menu__divider`,...s}=e;return(0,P.jsx)("div",{className:E()(n,t),role:"separator",...s})},_n=e=>{let{className:t,children:n,icon:s,label:i,component:a="div",baseClassName:r=`${R.CLS_PREFIX}menu__base-item`,...o}=e;return(0,P.jsxs)(a,{className:E()(r,t),...o,children:[(0,P.jsx)("div",{className:`${r}-icon`,children:be.create(s,{size:re})}),(0,P.jsx)("div",{className:`${r}-content`,children:n}),(0,P.jsx)("div",{className:`${r}-label`,children:i})]})},Sn=e=>{let{className:t,children:n,onClick:s,icon:i,label:a,tooltip:r,baseClassName:o=`${R.CLS_PREFIX}menu__item`,disabled:l=!1,active:c=!1,...u}=e;const d=(0,P.jsx)(_n,{className:E()(o,t,{[`${o}--active`]:c,[`${o}--disabled`]:l}),onClick:e=>{s&&!l&&s(e)},role:"menuitem","aria-disabled":l?"true":void 0,tabIndex:l?-1:0,icon:i,label:a,...u,children:n});return r?K((e=>(0,P.jsx)(Oe,{title:r,children:(0,M.cloneElement)(d,e)}))):d},wn=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=[];let s,i=!1;for(;s=e.match(/%%(\w+)%%/);){const{index:a=0}=s;a>0&&n.push(e.substr(0,a));const r=t[s[1]];void 0===r?n.push(s[0]):"object"==typeof r&&(0,M.isValidElement)(r)?(n.push((0,M.cloneElement)(r,{key:s[1]})),i=!0):n.push(r),e=e.substr(a+s[0].length)}return""!==e&&n.push(e),i?n:n.join("")},kn=(e,t)=>{const[n,...s]=e.split("."),i=t[n];return"object"==typeof i&&s.length?kn(s.join("."),i):t[e]},jn=e=>function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if("string"!=typeof t)return"";let i=kn(t,e);return"string"!=typeof i&&(i="string"==typeof s?s:`[${t}]`),wn(i,n)},Tn=(0,M.createContext)(void 0);class Cn extends M.PureComponent{getChildContext(){const{messages:e}=this.props;return{locale:{lmsg:jn(e)}}}render(){const{children:e}=this.props;return(0,P.jsx)(Tn.Provider,{value:this.getChildContext(),children:e})}}F(Cn,"childContextTypes",{locale:We().object});const Dn=Cn,Pn=e=>{const t=(0,M.useContext)(Tn);return(0,M.useCallback)(((n,s,i)=>{if(t){const{locale:{lmsg:a}}=t;return a(e?`${e}.${n}`:n,s,i)}return"string"==typeof i?wn(i,s):`[${n}]`}),[t,e])},On=e=>{let{component:t,content:n,children:s,params:i,unsafe:a,fallback:r,namespace:o,translators:l,...c}=e;const u=t||"span",d=Pn(o),p=n||s||"",h=l&&l[p];if(h)return"function"==typeof h?h(i):h;const m=d(p,i,r),f={...c};return a?f.dangerouslySetInnerHTML={__html:m}:f.children=m,(0,P.jsx)(u,{...f})},In=e=>{const[t,n]=e.split("-");return n&&dt()&&-1!==["top","bottom"].indexOf(t)?`${t}-${"start"===n?"end":"start"}`:e},Mn=e=>{let{baseClassName:t=`${R.CLS_PREFIX}dropdown`,className:n,children:s,menu:i,menuPlacement:a="bottom-start",overlay:r=!1,locale:o,...l}=e;const[c,u]=(0,M.useState)(!1),[d,p]=(0,M.useState)(!1),h=(0,M.useRef)();(0,M.useEffect)((()=>()=>{clearTimeout(h.current)}),[]);const m=()=>{h.current=setTimeout((()=>{u(!1)}),0)},{enhancedMenu:f,menuRef:g}=((e,t)=>{let{baseClassName:n,onClose:s,overlay:i,locale:a,autoFocus:r}=t;const o=(0,M.useRef)(),l=(0,M.useRef)();(0,M.useEffect)((()=>{o.current&&!i&&(l.current=document.activeElement,setTimeout((()=>{o.current&&o.current.focus()})))}));const c=()=>{l.current&&l.current.focus(),s()};let{children:u}=e.props;i&&(u=[...e.props.children,(0,P.jsx)(xn,{className:`${n}__overlay-menu-divider`},"divider"),(0,P.jsx)(Sn,{onClick:c,children:(0,P.jsx)(On,{namespace:"Dropdown",content:"close",translators:a,fallback:"Close"})},"close")]);const d=(0,M.cloneElement)(e,{onItemClick:q(e.props.onItemClick,c),className:E()(`${n}__menu`,e.props.className),overlay:i,ref:o,children:u,onKeyDown:e=>{switch(e.stopPropagation(),e.key){case"Enter":e.preventDefault(),document.activeElement.click();break;case"Escape":e.preventDefault(),c();break;case"Tab":c()}},autoFocus:r});return{enhancedMenu:d,menuRef:o}})(i,{baseClassName:t,onClose:m,overlay:r,locale:o,autoFocus:d}),b=(0,M.useRef)(),v=((e,t)=>{let{onToggle:n,targetRef:s}=t;(0,M.isValidElement)(e)&&e.type!==On||(e=(0,P.jsx)(Be,{caret:!0,children:e}));let i=!1;return(0,M.cloneElement)(e,{onKeyDown:q(e.props.onKeyDown,(e=>{i=" "===e.key||"Enter"===e.key})),onClick:q(e.props.onClick,(e=>{s.current=e.currentTarget,n(i),i=!1})),"aria-haspopup":!0})})(s,{onToggle:e=>{p(e),u(!0)},targetRef:b});return(0,P.jsx)("div",{className:E()(t,{[`${t}--opened`]:c},n),...l,children:r?(0,P.jsxs)(P.Fragment,{children:[v,c&&(0,P.jsx)(De,{level:R.Z_INDEX_OVERLAY,children:(0,P.jsx)("div",{className:`${t}__overlay`,children:(0,P.jsx)(ft,{onClose:m,nodeRef:g,children:(0,P.jsx)("div",{className:`${t}__overlay-menu`,children:f})})})})]}):(0,P.jsx)(yn,{target:v,targetRef:b,placement:In(a),show:c,className:`${t}__popper`,zIndex:R.Z_INDEX_DROPDOWN,children:(0,P.jsx)(ft,{onClose:m,nodeRef:g,children:f})})})},Ln=["clock","emoticon-smile","rocket","sand-clock","sleep","web","star"],An=(e,t,n)=>{const s=(0,M.useRef)(null),[i,a]=(0,M.useState)(t);return(0,M.useEffect)((()=>{const t=s.current,i=()=>{n()&&a((t=>(t+2)%e.length))};return t&&t.addEventListener("animationiteration",i),()=>{t&&t.removeEventListener("animationiteration",i)}}),[e]),[e[i],s]},En=e=>{let{baseClassName:t=`${R.CLS_PREFIX}icons-loader`,className:n,icons:s,size:i,style:a,...r}=e;const o=(0,M.useRef)("icon1");s?.length?1===s.length&&(s=[s[0],s[0]]):s=Ln;const[l,c]=An(s,0,(()=>"icon1"===o.current&&(o.current="icon2",!0))),[u,d]=An(s,1,(()=>"icon2"===o.current&&(o.current="icon1",!0)));return(0,P.jsxs)("div",{className:E()(t,n),style:{...a,"--icons-loader-size":i||void 0},...r,children:[(0,P.jsx)("div",{className:E()(`${t}__icon`,`${t}__icon--1`),ref:c,children:be.create(l,{size:i||"64"})}),(0,P.jsx)("div",{className:E()(`${t}__icon`,`${t}__icon--2`),ref:d,children:be.create(u,{size:i||"64"})})]})},Rn=e=>{let{baseClassName:t=`${R.CLS_PREFIX}content-loader`,className:n,text:s,overlay:i=!1,children:a,backdrop:r=!1,blur:o=!1,loading:l=!0,loader:c="spinner",spinner:u,...d}=e;if(!l)return a;M.Children.toArray(a).length&&i&&(a=(0,P.jsx)("div",{className:E()(`${t}__content`,o&&`${t}__content--blur`),children:a}));const{loaderType:p,loaderProps:h}=(e=>{let t,n={};return"object"==typeof e&&({type:t,...n}=e),"string"==typeof e&&(t=e),{loaderType:t,loaderProps:n}})(c);return h.className=E()(`${t}__indicator`,{[`${t}__indicator--sm`]:"spinner"===p&&u&&"sm"===u.size}),(0,P.jsxs)("div",{className:E()(t,!M.Children.toArray(a).length&&i&&`${t}--overlay`,n),...d,children:[a,(0,P.jsx)("div",{className:E()(`${t}__container`,i&&`${t}__overlay`,r&&`${t}__backdrop`),children:(0,P.jsxs)("div",{className:E()(`${t}__loader`,`${t}__loader--${p}`),children:["spinner"===p&&(0,P.jsx)(ve,{...h}),"icons"===p&&(0,P.jsx)(En,{...h}),s&&(0,P.jsx)("div",{className:`${t}__text`,children:s})]})})]})},Un=e=>{let{icon:t,baseClassName:n=`${R.CLS_PREFIX}card-button`,...s}=e;return(0,P.jsx)(Be,{icon:be.create(t),baseClassName:n,...s})};Un.propTypes={baseClassName:We().string,icon:We().oneOfType([We().string,We().object,We().element]).isRequired};const Nn=Un,Fn="/modules/wp-toolkit/images/no-image.svg",Yn=e=>{let{background:t,image:n,padding:s=0,alt:i,children:a,className:r,baseClassName:o=`${R.CLS_PREFIX}preview-panel`,html:l,...c}=e;const u=(e=>{let{image:t,background:n}=e;return t?{url:t,type:"image"}:n?{url:n,type:"background"}:{url:Fn,type:"noImage"}})({image:n,background:t}),[d,p]=(0,M.useState)("noImage"===u.type?"success":"loading");return(0,M.useEffect)((()=>{let e=p;const t=()=>{e=()=>{}};return"noImage"===u.type?(e("success"),t):(p("loading"),((e,t)=>{let{onSuccess:n,onFailure:s}=t;const i=new Image;i.onload=n,i.onerror=s,i.src=e})(u.url,{onSuccess:()=>e("success"),onFailure:()=>e("failure")}),t)}),[u.type,u.url]),(0,P.jsxs)("div",{className:E()(o,{[`${o}--background`]:"background"===u.type},`${o}--${d}`,r),...c,...(()=>{if("background"!==u.type)return null;let e;switch(d){case"success":e=u.url;break;case"failure":e=Fn;break;default:return null}return{style:{...c.style,backgroundImage:`url("${e}")`}}})(),children:["loading"===d?(0,P.jsx)("div",{className:`${o}__loader`,children:(0,P.jsx)(Rn,{})}):null,(()=>{if("image"!==u.type&&"noImage"!==u.type)return null;let e;switch(d){case"success":e=u.url;break;case"failure":e=Fn}const t={};return"loading"!==d&&(t.src=e,i&&(t.alt=i)),s&&(t.style={padding:`${s instanceof Array?s.join("px "):s}px`}),(0,P.jsx)("img",{className:`${o}__image`,...t})})(),(0,P.jsx)("div",{className:E()(`${o}__content`,{[`${o}__content--empty`]:!a}),children:(0,P.jsx)("div",{className:`${o}__content-inner`,children:a})})]})},Hn="tile",Bn="extended",Vn="row";class $n extends M.Component{constructor(){super(...arguments),F(this,"state",{}),F(this,"rootRef",(0,M.createRef)()),F(this,"handleToggleView",(()=>{const{view:e}=this.state;this.setState({view:e===Bn?Vn:Bn})}))}static getDerivedStateFromProps(e,t){const{view:n}=e,{prevView:s}=t,i={};return n!==s&&(i.view=n),i.prevView=n,i}renderSelection(){const{baseClassName:e,selection:t}=this.props;if(!t)return null;const{isSelected:n,onSelectionChange:s}=t;return(0,P.jsx)("div",{className:`${e}__selection`,children:(0,P.jsx)(ut,{checked:n,onChange:e=>s({isSelected:e}),children:this.isExtended()?(0,P.jsx)(On,{content:"Card.select",fallback:"Select"}):null})})}renderTitle(){const{baseClassName:e,title:t,titleLink:n}=this.props,s="string"==typeof n?{href:n}:n;return(0,P.jsxs)("div",{className:`${e}__title`,children:[(0,P.jsx)("span",{className:`${e}__title-text`,children:t}),s&&(0,P.jsx)(Nn,{component:"a",icon:"chain",tooltip:(0,P.jsx)(On,{content:"Card.titleLinkTooltip",fallback:"Go to page"}),...s}),this.isExtended()&&this.renderTitleLabels()]})}renderTitleLabels(){const{baseClassName:e,titleLabels:t}=this.props;return 0===t.length?null:(0,P.jsx)("div",{className:`${e}__title-labels`,children:M.Children.map(t,(t=>(0,M.cloneElement)(t,{className:E()(`${e}__label`,t.props.className)})))})}renderLabels(){const{baseClassName:e,labels:t}=this.props;return 0===t.length?null:(0,P.jsx)("div",{className:`${e}__labels`,children:M.Children.map(t,(t=>(0,M.cloneElement)(t,{className:E()(`${e}__label`,t.props.className)})))})}renderHeader(){const{baseClassName:e}=this.props;return(0,P.jsxs)("div",{className:`${e}__header`,children:[this.renderSelection(),this.renderTitle(),this.isExtended()&&this.renderLabels(),this.renderButtons()]})}renderRowHeader(){const{baseClassName:e,subtitle:t}=this.props;return(0,P.jsxs)("div",{className:`${e}__header`,children:[t&&(0,P.jsx)("div",{className:`${e}__subtitle`,children:t}),this.renderTitle()]})}renderContent(){const{baseClassName:e,children:t}=this.props;return(0,P.jsx)("div",{className:`${e}__main`,children:(0,P.jsx)("div",{className:`${e}__main-content`,children:t})})}isExtended(){const{view:e}=this.state;return!this.isTile()&&e===Bn}isTile(){const{view:e}=this.state;return e===Hn}isRow(){const{view:e}=this.state;return!this.isTile()&&e===Vn}renderButtons(){const{baseClassName:e,rowContent:t,menu:n,buttons:s}=this.props,i=[];return this.isRow()||s.forEach(((e,t)=>{i.push((0,P.jsx)(Nn,{...e},e.key||t))})),n&&i.push((0,P.jsx)(Mn,{menu:n,menuPlacement:"bottom-end",children:(0,P.jsx)(Nn,{icon:"menu"})},"menu")),t&&!this.isTile()&&i.push((0,P.jsx)(Nn,{icon:{name:"chevron-down",flipVertical:this.isExtended()},onClick:this.handleToggleView,tooltip:this.isExtended()?(0,P.jsx)(On,{content:"Card.collapseCardTooltip",fallback:"Collapse the card"}):(0,P.jsx)(On,{content:"Card.expandCardTooltip",fallback:"Expand the card"})},"toggleView")),0===i.length?null:(0,P.jsx)("div",{className:`${e}__buttons`,children:i})}renderSideHeader(){const{sideHeader:e,baseClassName:t}=this.props;if(!e)return null;let n=e;if(e.type===Yn){const s={className:E()(e.props.className,`${t}__preview-panel`)};this.isRow()&&(s.children=null),n=(0,M.cloneElement)(e,s)}return(0,P.jsx)("div",{className:`${t}__side-header`,children:n})}renderSideContent(){const{sideContent:e,baseClassName:t}=this.props;return e?(0,P.jsx)("div",{className:`${t}__side-content`,children:e}):null}renderRow(){const{baseClassName:e,rowContent:t}=this.props;return(0,P.jsx)("div",{className:`${e}__inner`,children:(0,P.jsxs)("div",{className:`${e}__body`,children:[this.renderSelection(),this.renderSideHeader(),this.renderRowHeader(),(0,P.jsx)("div",{className:`${e}__main`,children:(0,P.jsx)("div",{className:`${e}__main-content`,children:t})}),this.renderButtons()]})})}renderTile(){const{baseClassName:e}=this.props;return(0,P.jsxs)("div",{className:`${e}__inner`,children:[this.renderHeader(),(0,P.jsxs)("div",{className:`${e}__body`,children:[this.renderSideHeader(),this.renderContent()]}),this.renderSideContent()]})}renderExtended(){const{baseClassName:e}=this.props,t=this.renderSideHeader(),n=this.renderSideContent();return(0,P.jsxs)("div",{className:`${e}__inner`,children:[this.renderHeader(),(0,P.jsxs)("div",{className:`${e}__body`,children:[t||n?(0,P.jsxs)("div",{className:`${e}__side`,children:[t,n]}):null,this.renderContent()]})]})}render(){const{baseClassName:e,className:t,children:n,view:s,intent:i,title:a,subtitle:r,titleLink:o,titleLabels:l,selection:c,rowContent:u,sideHeader:d,sideContent:p,buttons:h,menu:m,labels:f,progress:g,...b}=this.props;return(0,P.jsx)(ct,{classNames:`${e}-`,in:this.isExtended(),timeout:300,nodeRef:this.rootRef,children:(0,P.jsxs)("div",{className:E()(e,{[`${e}--extended`]:this.isExtended(),[`${e}--tile`]:this.isTile(),[`${e}--row`]:this.isRow(),[`${e}--${i}`]:i,[`${e}--progress`]:g},t),...b,ref:this.rootRef,children:[this.isExtended()&&this.renderExtended(),this.isTile()&&this.renderTile(),this.isRow()&&this.renderRow(),g&&(0,P.jsx)(Rn,{overlay:!0,backdrop:!0,text:!0===g?null:g})]})})}}$n.propTypes={children:We().node,view:We().oneOf([Bn,Hn,Vn]),intent:We().oneOf(["warning","danger","inactive"]),title:We().node.isRequired,titleLink:We().oneOfType([We().string,We().object]),titleLabels:We().arrayOf(We().element),subtitle:We().node,labels:We().arrayOf(We().element),buttons:We().arrayOf(We().shape({icon:We().oneOfType([We().string,We().object,We().element]).isRequired,onClick:We().func.isRequired,tooltip:We().node})),menu:We().element,selection:We().shape({isSelected:We().bool.isRequired,onSelectionChange:We().func.isRequired}),sideHeader:We().element,sideContent:We().element,rowContent:We().any,progress:We().oneOfType([We().bool,We().node]),className:We().string,baseClassName:We().string},$n.defaultProps={children:null,view:Bn,intent:null,subtitle:"",titleLink:null,titleLabels:[],labels:[],buttons:[],menu:null,selection:null,sideHeader:null,sideContent:null,rowContent:null,progress:!1,className:null,baseClassName:`${R.CLS_PREFIX}card`};const Wn=$n;function zn(){return zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},zn.apply(this,arguments)}function qn(e,t){return qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qn(e,t)}var Gn=r(43440),Kn=r.n(Gn),Xn=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,s){return e[0]===t&&(n=s,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),s=this.__entries__[n];return s&&s[1]},t.prototype.set=function(t,n){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,s=e(n,t);~s&&n.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,s=this.__entries__;n<s.length;n++){var i=s[n];e.call(t,i[1],i[0])}},t}()}(),Qn="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Jn=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Zn="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Jn):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},es=["top","right","bottom","left","width","height","size","weight"],ts="undefined"!=typeof MutationObserver,ns=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,s=0;function i(){t&&(t=!1,e()),n&&r()}function a(){Zn(i)}function r(){var e=Date.now();if(t){if(e-s<2)return;n=!0}else t=!0,n=!1,setTimeout(a,20);s=e}return r}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){Qn&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ts?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){Qn&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;es.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),ss=function(e,t){for(var n=0,s=Object.keys(t);n<s.length;n++){var i=s[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},is=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Jn},as=us(0,0,0,0);function rs(e){return parseFloat(e)||0}function os(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+rs(e["border-"+n+"-width"])}),0)}var ls="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof is(e).SVGGraphicsElement}:function(e){return e instanceof is(e).SVGElement&&"function"==typeof e.getBBox};function cs(e){return Qn?ls(e)?function(e){var t=e.getBBox();return us(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return as;var s=is(e).getComputedStyle(e),i=function(e){for(var t={},n=0,s=["top","right","bottom","left"];n<s.length;n++){var i=s[n],a=e["padding-"+i];t[i]=rs(a)}return t}(s),a=i.left+i.right,r=i.top+i.bottom,o=rs(s.width),l=rs(s.height);if("border-box"===s.boxSizing&&(Math.round(o+a)!==t&&(o-=os(s,"left","right")+a),Math.round(l+r)!==n&&(l-=os(s,"top","bottom")+r)),!function(e){return e===is(e).document.documentElement}(e)){var c=Math.round(o+a)-t,u=Math.round(l+r)-n;1!==Math.abs(c)&&(o-=c),1!==Math.abs(u)&&(l-=u)}return us(i.left,i.top,o,l)}(e):as}function us(e,t,n,s){return{x:e,y:t,width:n,height:s}}var ds=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=us(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=cs(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ps=function(e,t){var n=function(e){var t=e.x,n=e.y,s=e.width,i=e.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(a.prototype);return ss(r,{x:t,y:n,width:s,height:i,top:n,right:t+s,bottom:i+n,left:t}),r}(t);ss(this,{target:e,contentRect:n})},hs=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Xn,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof is(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ds(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof is(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new ps(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ms="undefined"!=typeof WeakMap?new WeakMap:new Xn,fs=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ns.getInstance(),s=new hs(t,n,this);ms.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){fs.prototype[e]=function(){var t;return(t=ms.get(this))[e].apply(t,arguments)}}));const gs=void 0!==Jn.ResizeObserver?Jn.ResizeObserver:fs;var bs=["client","offset","scroll","bounds","margin"];function vs(e){var t=[];return bs.forEach((function(n){e[n]&&t.push(n)})),t}function ys(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var s=e.getBoundingClientRect();n.bounds={top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height}}if(t.indexOf("margin")>-1){var i=getComputedStyle(e);n.margin={top:i?parseInt(i.marginTop):0,right:i?parseInt(i.marginRight):0,bottom:i?parseInt(i.marginBottom):0,left:i?parseInt(i.marginLeft):0}}return n}var xs=function(e){var t,n;return n=t=function(t){var n,s;function i(){for(var e,n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(e=t.call.apply(t,[this].concat(s))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},e._animationFrameID=null,e._resizeObserver=null,e._node=null,e._window=null,e.measure=function(t){var n=ys(e._node,vs(e.props));t&&(n.entry=t[0].contentRect),e._animationFrameID=e._window.requestAnimationFrame((function(){null!==e._resizeObserver&&(e.setState({contentRect:n}),"function"==typeof e.props.onResize&&e.props.onResize(n))}))},e._handleRef=function(t){var n;null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.unobserve(e._node),e._node=t,e._window=(n=e._node)&&n.ownerDocument&&n.ownerDocument.defaultView||window;var s=e.props.innerRef;s&&("function"==typeof s?s(e._node):s.current=e._node),null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.observe(e._node)},e}s=t,(n=i).prototype=Object.create(s.prototype),n.prototype.constructor=n,qn(n,s);var a=i.prototype;return a.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new gs(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(ys(this._node,vs(this.props))))},a.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},a.render=function(){var t=this.props,n=(t.innerRef,t.onResize,function(e,t){if(null==e)return{};var n,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["innerRef","onResize"]));return(0,M.createElement)(e,zn({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},i}(M.Component),t.propTypes={client:Kn().bool,offset:Kn().bool,scroll:Kn().bool,bounds:Kn().bool,margin:Kn().bool,innerRef:Kn().oneOfType([Kn().object,Kn().func]),onResize:Kn().func},n}((function(e){var t=e.measure,n=e.measureRef,s=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:s})}));xs.displayName="Measure",xs.propTypes.children=Kn().func;const _s=xs,Ss=e=>{let{baseClassName:t=`${R.CLS_PREFIX}input`,className:n,size:s="md",type:i="text",textAlign:a,prefix:r,suffix:o,innerRef:l,rootProps:c,...u}=e;const d="string"==typeof s&&-1!==["sm","md","lg","xl","fill"].indexOf(s);return(0,P.jsxs)("span",{className:E()(t,{[`${t}--size-${s}`]:d,[`${t}--text-${a}`]:a,[`${t}--affix`]:r||o},n),...c,children:[r&&(0,P.jsx)("span",{className:`${t}__prefix`,children:r}),(0,P.jsx)("input",{ref:l,type:i,size:"number"==typeof s?s:void 0,className:`${t}__input`,...u}),o&&(0,P.jsx)("span",{className:`${t}__suffix`,children:o})]})},ws=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1;return void 0!==n&&e>n?n:void 0!==t&&e<t?t:e},ks=e=>{if(""===String(e).trim())return!1;const t=parseFloat(String(e));return"number"==typeof t&&!isNaN(t)},js=e=>{if("string"==typeof e){const t=parseFloat(e);return ks(t)?t:0}return e},Ts=e=>{let{baseClassName:t=`${R.CLS_PREFIX}input-number`,className:n,defaultValue:s,value:i,disabled:a,onChange:r,min:o,max:l,step:c=1,decrementIcon:u="minus",incrementIcon:d="plus",...p}=e;const h=(0,M.useRef)(null),m=void 0!==i,f="number"==typeof s?s:"",g="number"==typeof i?i:"",[b,v]=(0,M.useState)(m?g:f),y=(0,M.useRef)(Number(m?g:f));(0,M.useLayoutEffect)((()=>{m&&v(g)}),[m,g]);const x=e=>{y.current!==e&&(y.current=e,z(r,e))},_=e=>()=>{const t=ws(js(b)+e,o,l);m&&t!==g||v(t),x(t)},S=_(+c),w=_(-c),k=()=>{let e;ks(b)?(e=ws(js(b),o,l),x(e)):e="",v(m?g:e)},j=e=>{e.preventDefault(),e.currentTarget.hasAttribute("disabled")||h.current&&document.activeElement!==h.current&&h.current.focus()},T=a||((e,t)=>void 0!==t&&""!==e&&+e<=t)(b,o),C=a||((e,t)=>void 0!==t&&""!==e&&+e>=t)(b,l);return(0,P.jsx)(Ss,{textAlign:"center",size:"sm",...p,value:b,disabled:a,onChange:e=>{const t=e.target.value;let n=t;""===String(t).trim()&&(n=""),v(n)},onKeyDown:e=>{switch(e.key){case"ArrowUp":S();break;case"ArrowDown":w();break;case"Enter":k()}},onBlur:k,className:E()(t,n),innerRef:h,prefix:(0,P.jsx)(Be,{icon:u,ghost:!0,disabled:T,onClick:w,onMouseDown:j,className:`${t}__dec`}),suffix:(0,P.jsx)(Be,{icon:d,ghost:!0,disabled:C,onClick:S,onMouseDown:j,className:`${t}__inc`})})},Cs=e=>{let{baseClassName:t=`${R.CLS_PREFIX}link`,className:n,onClick:s,disabled:i=!1,pseudo:a=!1,component:r,children:o,...l}=e;const c=r||"a",u=(0,M.useContext)(ie),d={...l,onClick:s,className:E()(t,n,{[`${t}--disabled`]:i,[`${t}--pseudo`]:a,[`${t}--on-dark`]:u})},{target:p}=l,h=!a&&"_blank"===p;return h&&!d.rel&&(d.rel="noopener noreferrer"),i&&(d.onClick=e=>e.preventDefault(),d.tabIndex=-1),s&&(d.tabIndex=d.tabIndex||0,d.onKeyDown=q(d.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())}))),(0,P.jsxs)(c,{...d,children:[o,h&&(0,P.jsx)(be,{flipHorizontal:dt(),name:"arrow-diagonal-out",className:`${t}__external-icon`})]})},Ds=e=>{let{baseClassName:t=`${R.CLS_PREFIX}heading`,className:n,icon:s,children:i,component:a,level:r=1,...o}=e;a||(a=`h${r}`);let l=re;return 1===r&&(l=le),2!==r&&3!==r||(l="24"),6===r&&(l="12"),(0,P.jsxs)(a,{className:E()(t,{[`${t}--h${r}`]:r,[`${t}--icon`]:s},n),...o,children:[be.create(s,{className:`${t}__icon`,size:l}),s?(0,P.jsx)("span",{className:`${t}__text`,children:i}):i]})},Ps=e=>{if("string"==typeof e)return!0;if((0,M.isValidElement)(e)&&e.type===On){const{component:t,children:n}=e.props;if(void 0===t&&("string"==typeof n||null==n))return!0}return!1},Os=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};class Is{constructor(){F(this,"ignoreFocusChange",!1)}canIgnoreFocusChange(){return this.ignoreFocusChange}focusFirstDescendant(e,t){for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];if((!t||"function"!=typeof t.canSkip||!t.canSkip(s))&&(this.attemptFocus(s)||this.focusFirstDescendant(s)))return!0}return!1}focusLastDescendant(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(this.attemptFocus(n)||this.focusLastDescendant(n))return!0}return!1}attemptFocus(e){if(!Os(e))return!1;this.ignoreFocusChange=!0;try{e.focus()}catch{}return this.ignoreFocusChange=!1,document.activeElement===e}}const Ms=e=>e instanceof HTMLElement&&e.dataset&&e.dataset.skipAutoFocus,Ls=e=>({elements:[],collect(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.elements=[]);for(let n=0;n<t.children.length;n++){const s=t.children[n];e.current&&Ms(s)||(this.elements.push(s),this.collect(s))}},getFirst(e){return this.collect(e,!0),this.elements[0]},getLast(e){return this.collect(e,!0),this.elements[this.elements.length-1]},getNext(e,t){if(t){const e=this.elements.indexOf(t);if(-1!==e)return this.elements[e+1]}},getPrev(e,t){if(t){const e=this.elements.indexOf(t);if(-1!==e)return this.elements[e-1]}}}),As=(e,t)=>{let{children:n,onFocus:s,...i}=e;const a=(0,M.useRef)(null),r=(0,M.useRef)(null),o=(0,M.useRef)(null),l=(0,M.useRef)(!1),c=e=>e!==r.current&&e!==o.current&&Os(e),{focusFirst:u,focusLast:d}=(0,M.useMemo)((()=>{const e=Ls(l);return J(a,c,e)}),[]),p=q(s,(e=>{if(a.current)switch(!0){case e.target===r.current:a.current!==e.relatedTarget&&e.relatedTarget instanceof HTMLElement&&a.current.contains(e.relatedTarget)?d():u();break;case e.target===o.current:a.current!==e.relatedTarget&&e.relatedTarget instanceof HTMLElement&&a.current.contains(e.relatedTarget)?u():d()}}));return(0,P.jsxs)("div",{onFocus:p,ref:Z(a,t),tabIndex:-1,...i,children:[(0,P.jsx)("div",{tabIndex:0,ref:r}),n,(0,P.jsx)("div",{tabIndex:0,ref:o})]})};As.displayName="FocusTrap";const Es=(0,M.forwardRef)(As),Rs={"top-left":"top-end","top-right":"top-start","right-top":"right-end","right-bottom":"right-start","bottom-left":"bottom-end","bottom-right":"bottom-start","left-top":"left-end","left-bottom":"left-start",top:"top",right:"right",bottom:"bottom",left:"left",auto:"auto"},Us=e=>null!==e.visible;class Ns extends M.Component{constructor(){super(...arguments),F(this,"state",{show:this.props.defaultVisible,arrowInHeader:!1}),F(this,"contentRef",(0,M.createRef)()),F(this,"targetRef",(0,M.createRef)()),F(this,"prevFocusElement",void 0),F(this,"popperData",void 0),F(this,"headerBounds",void 0),F(this,"checkArrowPosition",(()=>{const{title:e}=this.props,{show:t,arrowInHeader:n}=this.state;if(!t||!this.popperData)return;const{actualPlacement:s,arrowStyle:i}=this.popperData,a=parseInt(i?.top||""),[r]=s?.split("-")||[];let o=!1;const l="bottom"===r||null!==a&&this.headerBounds&&a<this.headerBounds.height-13,c="top"!==r&&l;e&&this.headerBounds&&c&&(o=!0),n!==o&&this.setState({arrowInHeader:o})})),F(this,"hotkeyHandler",(e=>{e.isDefaultPrevented()||"Escape"!==e.key||(this.handleClose(),e.preventDefault())})),F(this,"handleTargetClick",(e=>{const{show:t}=this.state,{canCloseOnOutsideClick:n}=this.props;t&&!n||(this.targetRef.current=e.currentTarget,this.setState((e=>({show:!e.show}))))})),F(this,"handleClose",(()=>{const{show:e}=this.state;if(!e)return;const{onClose:t,canCloseOnEscapePress:n,autoFocus:s}=this.props,i=s&&n&&this.prevFocusElement&&(!document.activeElement||this.contentRef.current?.contains(document.activeElement));t?t():this.setState({show:!1}),i&&this.prevFocusElement?.focus()})),F(this,"handleHeaderResize",(e=>{this.headerBounds=e.bounds,this.checkArrowPosition()})),F(this,"handlePopperUpdate",(e=>{this.popperData=e,this.checkArrowPosition()})),F(this,"getIgnoreNodes",(()=>{const{targetRef:e}=this.props;return e||this.targetRef.current?[e,this.targetRef]:[(0,je.findDOMNode)(this)]}))}static getDerivedStateFromProps(e,t){return{show:Us(e)?e.visible:t.show}}componentDidUpdate(e,t){const{canCloseOnEscapePress:n,autoFocus:s}=this.props,{show:i}=this.state;s&&n&&!t.show&&i&&setTimeout((()=>this.focus()),0)}focus(){if(null!==this.contentRef.current&&null!==document.activeElement&&this.state.show&&(this.prevFocusElement=document.activeElement,!this.contentRef.current.contains(document.activeElement))){const e=this.contentRef.current.querySelector("[autofocus]");null!==e?e.focus():this.contentRef.current&&this.contentRef.current.focus()}}render(){const{baseClassName:e,className:t,visible:n,defaultVisible:s,title:i,placement:a,canCloseOnOutsideClick:r,canCloseOnEscapePress:o,target:l,targetRef:c,intent:u,wide:d,width:p,height:h,extra:m,onClose:f,children:g,...b}=this.props,{show:v,arrowInHeader:y}=this.state;let x;if("auto"!==a){const[e]=a?.split("-")||[];"top"===e?x=["top","bottom","right","left"]:"right"===e?x=["right","left","bottom","top"]:"bottom"===e?x=["bottom","top","left","right"]:"left"===e&&(x=["left","right","top","bottom"])}const _=(0,P.jsx)(Be,{className:E()(`${e}__close`,i&&`${e}__close--heading`),onClick:this.handleClose,ghost:!0,icon:{name:"cross-mark",size:i?"16":"12"}}),S=i&&(0,P.jsx)(_s,{onResize:this.handleHeaderResize,bounds:!0,children:t=>{let{measureRef:n}=t;return(0,P.jsxs)("div",{ref:n,className:`${e}__heading`,children:[Ps(i)?(0,P.jsx)(Ds,{level:5,className:`${e}__title`,children:i}):i,(0,P.jsxs)("div",{className:`${e}__extra`,children:[m,_]})]})}}),w=Us(this.props)?l:(0,M.cloneElement)(l,{className:E()(l.props.className,`${e}__target`),onClick:q(l.props.onClick,this.handleTargetClick)}),k=a?Rs[a]:void 0;let j;var T;h&&(j={height:(T=h,String(Number(T))===String(T)?`${T}px`:T)});const C=(0,P.jsxs)(Es,{ref:this.contentRef,onKeyUp:o&&v?this.hotkeyHandler:void 0,className:`${e}__inner`,style:j,children:[h?S:S||_,(0,P.jsx)("div",{className:`${e}__content`,children:(0,P.jsx)("div",{className:`${e}__content-inner`,children:"function"==typeof g?g({onClose:this.handleClose}):g})})]});return(0,P.jsx)(yn,{target:w,targetRef:c||this.targetRef,arrow:(0,P.jsx)("span",{className:E()(`${e}__arrow`,y&&`${e}__arrow--heading`)}),placement:k,onUpdate:this.handlePopperUpdate,className:E()({[`${e}--heading`]:i,[`${e}--${u}`]:u,[`${e}--wide`]:d||p,[`${e}--width-${p}`]:p,[`${e}--on-dark`]:!0===this.context},t),baseClassName:e,behavior:x,zIndex:R.Z_INDEX_POPOVER,show:v,...b,children:r?(0,P.jsx)(ft,{onClose:this.handleClose,ignoreNodes:this.getIgnoreNodes,nodeRef:this.contentRef,children:C}):C})}}F(Ns,"contextType",ie),F(Ns,"defaultProps",{visible:null,defaultVisible:!1,title:void 0,onClose:void 0,placement:"auto",canCloseOnOutsideClick:!0,canCloseOnEscapePress:!0,children:void 0,intent:void 0,wide:void 0,width:void 0,height:void 0,extra:void 0,className:void 0,baseClassName:`${R.CLS_PREFIX}popover`,boundariesElement:void 0,autoFocus:!0,targetRef:void 0});const Fs=Ns,Ys={subtree:!0,childList:!0,characterData:!0},Hs=e=>{let{ref:t,compact:n,expand:s}=e;const i=(0,M.useRef)(0),a=(0,M.useRef)(null),[r,o]=(0,M.useState)(!1),l=(0,M.useRef)(),c=()=>{if(!t.current)return;const e=t.current,r=Math.ceil(e.getBoundingClientRect().width),{scrollWidth:l}=e;let c=!1;l>r?(c=n(),i.current=l,a.current="compact"):(i.current&&r>i.current||"expand"===a.current)&&(c=s(),a.current="expand"),c&&o((e=>!e))};l.current=c,(0,M.useLayoutEffect)((()=>{l.current?.()}),[r]),(e=>{let{ref:t,onResize:n}=e;const s=(0,M.useRef)(void 0);s.current=n,(0,M.useEffect)((()=>{if(!t.current)return;if("undefined"==typeof window||!("ResizeObserver"in window))return;const e=new ResizeObserver((()=>{s.current?.()}));return e.observe(t.current),()=>{e.disconnect()}}),[t])})({ref:t,onResize:c}),(e=>{let{ref:t,onMutate:n,options:s}=e;const i=(0,M.useRef)(void 0);i.current=n,(0,M.useEffect)((()=>{if(!t.current)return;if("undefined"==typeof window||!("MutationObserver"in window))return;const e=new MutationObserver((()=>{i.current?.()}));return e.observe(t.current,s),()=>{e.disconnect()}}),[t,s])})({ref:t,onMutate:c,options:Ys})},Bs=(0,M.forwardRef)(((e,t)=>(Hs({ref:t,...e}),null)));Bs.displayName="Squeezer";const Vs=Bs,$s=e=>{let{className:t,children:n,selected:s=!1,baseClassName:i=`${R.CLS_PREFIX}menu__item`,...a}=e;return(0,P.jsx)(Sn,{className:E()(i,t),icon:s?"check-mark":null,role:"menuitemcheckbox","aria-checked":s?"true":"false",...a,children:n})},Ws=e=>{let t=!1;return M.Children.forEach(e,(e=>{(0,M.isValidElement)(e)&&(e.type===$s||e.props.icon)&&(t=!0)})),t},zs=(0,M.forwardRef)((function(e,t){let{className:n,children:s,onItemClick:i,onKeyDown:a,onFocus:r,autoFocus:o,overlay:l=!1,baseClassName:c=`${R.CLS_PREFIX}menu`,...u}=e;const d=(0,M.useRef)(null),{focusNext:p,focusPrev:h,focusFirst:m,focusLast:f}=(0,M.useMemo)((()=>J(d,(e=>("menuitem"===e.getAttribute("role")||"menuitemcheckbox"===e.getAttribute("role"))&&"true"!==e.getAttribute("aria-disabled")))),[]);let g=!1;const b=M.Children.map(s,((e,t)=>{if(!(0,M.isValidElement)(e))return e;const n={tabIndex:-1};return i&&(n.onClick=q(e.props.onClick,i.bind(null,e,t))),g||e.type!==Sn&&e.type!==$s||e.props.disabled?n.tabIndex=-1:(n.tabIndex=0,g=!0),(0,M.cloneElement)(e,n)}));return(0,P.jsx)("div",{className:E()(c,n,{[`${c}--icons`]:Ws(s),[`${c}--overlay`]:l}),role:"menu",...u,ref:e=>{d.current=e,t&&"function"!=typeof t&&(t.current=e)},onKeyDown:e=>{switch(e.key){case"ArrowUp":e.preventDefault(),h();break;case"ArrowDown":e.preventDefault(),p();break;case"Home":case"PageUp":e.preventDefault(),m();break;case"End":case"PageDown":e.preventDefault(),f()}z(a,e)},onFocus:e=>{e.target===d.current&&o&&m(),z(r,e)},tabIndex:-1,children:b})}));zs.displayName="Menu";const qs=zs,Gs=e=>{let{buttons:t,selected:n,onClick:s}=e;const{title:i=""}=t.find((e=>e.value===n))||{},a=(0,P.jsx)(qs,{children:t.map((e=>{let{title:t,value:n,...i}=e;return(0,P.jsx)(Sn,{...i,onClick:()=>{s(n)},children:t},`${n}`)}))});return(0,P.jsx)(Mn,{menu:a,children:i})},Ks=e=>{let{buttons:t,selectedValues:n,onClick:s,ghost:i,monospaced:a,isResponsive:r,baseClassName:o}=e;const l=(0,M.useRef)([]),[c,u]=(0,M.useState)(0);return(0,M.useLayoutEffect)((()=>{if(!a)return;const e=l.current.map((e=>e.getBoundingClientRect().width)),t=Math.max(...e);c!==t&&u(t)}),[a,c]),(0,P.jsx)(Ve,{className:`${o}__button-group`,children:t.map(((e,t)=>{let{value:u,title:d,style:p={},...h}=e;const m={width:!r&&a&&c?c:p.width,...p};return(0,P.jsx)(Be,{ref:e=>{0===t&&(l.current=[]),e&&l.current.push(e)},selected:n.includes(u),ghost:i,onClick:()=>s(u),...h,className:E()(h.className,`${o}__button`),style:m,children:d},`${u}`)}))})},Xs=e=>void 0===e?[]:Array.isArray(e)?e:[e],Qs=(e,t)=>e>t?1:-1,Js=`${R.CLS_PREFIX}segmented-control`,Zs=e=>{let{label:t,labelPlacement:n="top",buttons:s,monospaced:i=!1,multiple:a=!1,selected:r,onChange:o,inline:l=!1,ghost:c=!1,className:u,baseClassName:d=Js,...p}=e;const h=(0,M.useRef)(null),{isResponsive:m,isInResponsiveContext:f,...g}=(()=>{const e=(0,M.useContext)(Me),t="boolean"==typeof e,[n,s]=(0,M.useState)(!1);return{isResponsive:t?e:n,isInResponsiveContext:t,compact:()=>(s(!0),!1),expand:()=>(s(!1),!1)}})(),{selectedValues:b,handleChange:v}=(e=>{let{multiple:t,externalSelected:n,onChange:s}=e;const i=()=>t?Xs(n):n,[a,r]=(0,M.useState)(i()),[o,l]=(0,M.useState)(n);return o!==n&&(l(n),a!==n&&r(i())),{selectedValues:Xs(a),handleChange:e=>{let n,i=a;if(t){const t=Array.isArray(a);n=t?[...a]:[],t&&-1!==a.indexOf(e)?n.splice(a.indexOf(e),1):n.push(e),n.sort(Qs),t&&(i=[...a].sort(Qs))}else n=e;JSON.stringify(i)!==JSON.stringify(n)&&(r(n),s?.(n))}}})({multiple:a,externalSelected:r,onChange:o});return(0,P.jsxs)("div",{ref:h,className:E()(d,{[`${d}--inline`]:l,[`${d}--collapsed`]:m,[`${d}--vertical`]:t&&"top"===n},u),...p,children:[t&&(0,P.jsx)("div",{className:`${d}__label`,children:t}),(()=>{const e=s.some((e=>{let{icon:t}=e;return!!t}));return e||a||!m?(0,P.jsx)(Me.Provider,{value:m,children:(0,P.jsx)(Ks,{buttons:s,selectedValues:b,onClick:v,ghost:c,isResponsive:m,monospaced:i,baseClassName:d})}):(0,P.jsx)(Gs,{buttons:s,selected:b[0],onClick:v})})(),!f&&(0,P.jsx)(Vs,{ref:h,...g})]})},ei=e=>{let{baseClassName:t=`${R.CLS_PREFIX}text`,className:n,children:s,component:i,intent:a,fontSize:r,bold:o=!1,italic:l=!1,mark:c=!1,truncate:u=!1,nowrap:d=!1,...p}=e;i||(i=c?"mark":"span");const h=(0,M.useContext)(ie);return(0,P.jsx)(i,{className:E()(t,{[`${t}--${a}`]:a,[`${t}--${r}`]:r,[`${t}--bold`]:o,[`${t}--italic`]:l,[`${t}--truncate`]:u,[`${t}--nowrap`]:d,[`${t}--mark`]:c,[`${t}--on-dark`]:h},n),...p,children:s})},ti=[25,100,"all"],ni="default",si=e=>{let{baseClassName:t=`${R.CLS_PREFIX}pagination`,className:n,current:s=1,total:i,onSelect:a,itemsPerPage:r,itemsPerPageOptions:o=ti,onItemsPerPageChange:l,isShowNavigationButtons:c,isShowPageButtons:u,maxPageButtons:d,view:p=ni,loading:h=!1,...m}=e;const f=(0,P.jsxs)("div",{className:E()(t,n),...m,children:[(0,P.jsxs)("div",{className:`${t}__pages`,children:[(0,P.jsx)(Rn,{loading:h,overlay:!0,spinner:{size:"sm"},className:`${t}__loader`,children:(0,P.jsx)(Ts,{value:h?void 0:s,onChange:e=>z(a,e),min:1,max:i,decrementIcon:"arrow-left",incrementIcon:"arrow-right",className:`${t}__input`})}),(0,P.jsx)(On,{content:"Pagination.totalShort",fallback:"of %%total%%",params:{total:i},className:`${t}__text`})]}),l?(0,P.jsxs)("div",{className:`${t}__options`,children:[(0,P.jsx)(On,{content:"Pagination.itemsPerPage",fallback:"Items per page",className:`${t}__text`}),(0,P.jsx)(Zs,{ghost:!0,buttons:o.map((e=>{let t=e;return"all"===e&&(t=(0,P.jsx)(On,{content:"Pagination.all",fallback:"All"})),{value:e,title:t}})),selected:r,onChange:e=>z(l,e),className:`${t}__control`})]}):null]});return"popover"===p?(0,P.jsx)(Fs,{target:(0,P.jsx)(ei,{fontSize:"sm",component:Cs,nowrap:!0,children:(0,P.jsx)(On,{content:"Pagination.total",fallback:"Page %%current%% of %%total%%",params:{current:s,total:i}})}),placement:"top",className:`${t}__popover`,children:f}):f};class ii extends M.Component{constructor(){super(...arguments),F(this,"state",{xs:this.props.xs}),F(this,"handleResize",(e=>{let{bounds:t}=e;const{width:n}=t;let{maxColumnsNumber:s}=this.props;"function"==typeof s&&(s=s({width:n}));const i=Math.max(Math.floor((n+this.getGapSize())/(this.props.minColumnWidth+this.getGapSize())),1);this.setState({xs:Math.min(i,s)}),this.props.onColumnsChange&&this.props.onColumnsChange(i)}))}getGapSize(){switch(this.props.gap){case"xs":return 8;case"sm":return 12;case"md":return 16;case"lg":return 24;case"xl":return 32;default:return 0}}render(){const{baseClassName:e,className:t,minColumnWidth:n,onColumnsChange:s,maxColumnsNumber:i,xs:a,sm:r,md:o,lg:l,xl:c,gap:u,children:d,...p}=this.props,h=E()(e,{[`${e}--xs-${this.state.xs}`]:this.state.xs,[`${e}--sm-${r}`]:r,[`${e}--md-${o}`]:o,[`${e}--lg-${l}`]:l,[`${e}--xl-${c}`]:c,[`${e}--gap-xs`]:"xs"===u,[`${e}--gap-sm`]:"sm"===u,[`${e}--gap-md`]:"md"===u,[`${e}--gap-lg`]:"lg"===u,[`${e}--gap-xl`]:"xl"===u},t),m=(0,P.jsx)("div",{className:h,...p,children:n&&!this.state.xs?null:d});return n?(0,P.jsx)(_s,{bounds:!0,onResize:this.handleResize,children:e=>{let{measureRef:t}=e;return(0,M.cloneElement)(m,{ref:t})}}):m}}F(ii,"defaultProps",{children:null,className:null,baseClassName:`${R.CLS_PREFIX}grid`,minColumnWidth:null,maxColumnsNumber:6,xs:null,sm:null,md:null,lg:null,xl:null,gap:null,onColumnsChange:null});const ai=ii,ri=e=>{let{baseClassName:t=`${R.CLS_PREFIX}grid__col`,className:n,children:s,xs:i,sm:a,md:r,lg:o,xl:l,...c}=e;const u=E()(t,{[`${t}--xs-${i}`]:i,[`${t}--sm-${a}`]:a,[`${t}--md-${r}`]:r,[`${t}--lg-${o}`]:o,[`${t}--xl-${l}`]:l},n);return(0,P.jsx)("div",{className:u,...c,children:s})},oi=e=>{let{className:t,children:n,baseClassName:s=`${R.CLS_PREFIX}menu__header`,...i}=e;return(0,P.jsx)(_n,{className:E()(s,t),role:"none",...i,children:n})},li=(0,M.createContext)(void 0);li.displayName="DistractionFreeModeContext";const ci=li,ui=e=>{let{baseClassName:t=`${R.CLS_PREFIX}toolbar__expander`,className:n,children:s,...i}=e;const a=(0,M.useContext)(ci);return a&&a.enabled?null:(0,P.jsx)("div",{className:E()(t,n),...i,children:s})},di=(0,M.createContext)({selectedRows:0});di.displayName="ListOperationContext";const pi=di,hi=e=>{let{className:t,children:n,title:s,titleAddon:i,titleSize:a,image:r,imageSpacing:o,imageAlign:l,align:c,vertical:u=!1,baseClassName:d=`${R.CLS_PREFIX}media`,...p}=e;return!o&&(0,M.isValidElement)(r)&&r.type===be&&(o={[ae]:"sm",[re]:"sm",[oe]:"md",[le]:"md",[ce]:"lg",[ue]:"xl",[de]:"xxl",[pe]:"xxl",[he]:"xxl"}[r.props.size]),(0,P.jsxs)("div",{className:E()(d,{[`${d}--${c}`]:c,[`${d}--vertical`]:u},t),...p,children:[r&&(0,P.jsx)("figure",{className:E()(`${d}__figure`,{[`${d}__figure--${o}`]:o,[`${d}__figure--${l}`]:l}),children:r}),(0,P.jsxs)("div",{className:`${d}__body`,children:[s||i?(0,P.jsxs)("div",{className:E()(`${d}__header`,{[`${d}__header--${a}`]:a}),children:[(e=>e?"string"==typeof e?(0,P.jsx)(Ds,{level:5,className:`${d}__title`,children:e}):(0,M.isValidElement)(e)?(0,M.cloneElement)(e,{className:E()(`${d}__title`,e.props.className)}):null:null)(s),i&&(0,P.jsx)("div",{className:`${d}__title-addon`,children:i})]}):null,M.Children.toArray(n).length?(0,P.jsx)("div",{className:`${d}__content`,children:n}):null]})]})},mi=e=>{let{baseClassName:t=`${R.CLS_PREFIX}paragraph`,className:n,children:s,component:i="p",...a}=e;return(0,P.jsx)(i,{className:E()(t,n),...a,children:s})},fi=e=>void 0===e?void 0:(0,P.jsx)(ei,{bold:!0,children:e}),gi=e=>{let t;if("cancelButton"!==e)throw new Error("Unknown key");t="Cancel";const n=`ListOperation.${e}`;return(0,P.jsx)(On,{content:n,fallback:"Cancel"})},bi=e=>{let{critical:t=!1,noSelectionText:n,confirmationText:s,actionButtonText:i,cancelButtonText:a,children:r,...o}=e;const{selectedRows:l,selectedRowTitle:c}=(0,M.useContext)(pi),[u,d]=(0,M.useState)(null),p=(0,M.useRef)(null);if(!(0,M.isValidElement)(r))throw new Error('The "children" property must be an element.');const h=e=>"function"==typeof e?e({selectedRows:fi(l),selectedRowTitle:fi(c)}):e,m=()=>{d(null)},f=(0,M.cloneElement)(r,{...o,onClick:e=>{switch(p.current=e.currentTarget,!0){case l&&t:d({message:h(s),actionButtonText:h(i),actionButtonIntent:"danger",cancelButtonText:h(a)||gi("cancelButton")});break;case!l&&!t:d({message:h(n),actionButtonText:h(i),actionButtonIntent:"primary",cancelButtonText:h(a)||gi("cancelButton")});break;case!l&&t:d({message:h(n),icon:(0,P.jsx)(be,{intent:"info",name:"info-circle-filled"})});break;case l&&!t:z(r.props.onClick,e)}}});return(0,P.jsx)(Fs,{visible:!!u,target:f,targetRef:p,placement:"top",onClose:m,children:u&&(0,P.jsxs)(hi,{image:u.icon,children:[(0,P.jsx)(mi,{children:u.message}),u.actionButtonText&&(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{onClick:e=>{d(null),z(r.props.onClick,e)},intent:u.actionButtonIntent,children:u.actionButtonText})," ",(0,P.jsx)(Be,{ghost:!0,onClick:m,children:u.cancelButtonText})]})]})})},vi=(e,t,n)=>{switch(e.type){case Be:{const t={};let s={};return({disabled:t.disabled,icon:t.icon,onClick:t.onClick,children:t.children,...s}=e.props),t.onClick=q(t.onClick,n),Object.keys(s).forEach((e=>{Ye.includes(e)||(t[e]=s[e])})),"a"!==e.props.component&&"function"!=typeof e.props.component||(t.component=e.props.component),(0,P.jsx)(Sn,{...t,children:t.children})}case Ii:{const{title:s,children:i}=e.props;return[(0,P.jsx)(oi,{children:s},s),yi(i,n),t?null:(0,P.jsx)(xn,{})]}case ui:return null;case Mn:{let s;return(0,M.isValidElement)(e.props.menu)&&({onItemClick:s}=e.props.menu.props),[e.props.children?(0,P.jsx)(oi,{children:e.props.children}):null,yi(e.props.menu.props.children,q(s,n)),t?null:(0,P.jsx)(xn,{})]}case bi:{const t=vi(e.props.children,!0,n);return(0,M.isValidElement)(t)?(0,M.cloneElement)(e,{children:(0,M.cloneElement)(t,{onClick:e=>{t.props.onClick(e),n?.(e)}})}):null}case Sn:case _n:return(0,M.cloneElement)(e,{onClick:q(e.props.onClick,n)});case xn:return e;default:return(0,P.jsx)(_n,{onClick:n,children:e})}},yi=(e,t)=>{const n=M.Children.count(e);return M.Children.map(e,((e,s)=>(0,M.isValidElement)(e)?vi(e,s===n-1,t):e))},xi=(0,M.forwardRef)((function(e,t){let{onItemClick:n,children:s,...i}=e;return(0,P.jsx)(qs,{...i,ref:t,children:yi(s,n)})})),_i=xi,Si=(0,M.createContext)(void 0);Si.displayName="RegistryContext";const wi=()=>(0,M.useContext)(Si),ki=Si;class ji{constructor(){F(this,"items",[])}register(e){this.items.push(e)}unregister(e){this.items=this.items.filter((t=>t!==e))}compact(){let e=!1;for(const t of[...this.items].reverse())if(!t.isCompact){t.compact(),e=!0;break}return e}expand(){let e=!1;for(const t of this.items)if(t.isExpandable){t.expand(),e=!0;break}return e}get isCompact(){return this.items.every((e=>{let{isCompact:t}=e;return t}))}get isExpandable(){return this.items.some((e=>{let{isExpandable:t}=e;return t}))}}class Ti{constructor(e){let{onCompactStateChange:t}=e;F(this,"_isCompact",!1),F(this,"onCompactStateChange",void 0),this.onCompactStateChange=t}compact(){this._isCompact=!0,this.onCompactStateChange(!0)}expand(){this._isCompact=!1,this.onCompactStateChange(!1)}get isCompact(){return this._isCompact}get isExpandable(){return this._isCompact}}const Ci=()=>{const e=wi(),[t]=(0,M.useState)((()=>new ji));return(0,M.useLayoutEffect)((()=>{if(e)return e.register(t),()=>{e.unregister(t)}}),[e,t]),t},Di=()=>{const e=wi(),[t,n]=(0,M.useState)(!1),[s]=(0,M.useState)((()=>new Ti({onCompactStateChange:n})));return(0,M.useLayoutEffect)((()=>{if(e)return e.register(s),()=>{e.unregister(s)}}),[e,s]),[t]},Pi=e=>{let{children:t}=e;const[n]=Di();return(0,P.jsx)(Me.Provider,{value:n,children:t})},Oi=e=>M.Children.map(e,(e=>(0,M.isValidElement)(e)?e.type===Ii||e.type===ui?e:(0,P.jsx)(Pi,{children:(0,M.cloneElement)(e,{className:E()(e.props.className,`${R.CLS_PREFIX}toolbar__group-item`)})}):e)),Ii=e=>{let{baseClassName:t=`${R.CLS_PREFIX}toolbar__group`,className:n,title:s,children:i,groupable:a=!0,...r}=e;const[o]=Di(),l=Ci(),[c,u]=(0,M.useState)(!1),d=(0,M.useContext)(ci),p={enabled:d?.enabled??!1,toggle:()=>{d&&(d.toggle(),u((e=>!e)))}};let h=M.Children.toArray(i).some((e=>(0,M.isValidElement)(e)&&e.type===ui));return a&&o&&M.Children.count(i)>1?(h=!1,i=(0,P.jsx)(Mn,{menu:(0,P.jsx)(_i,{onItemClick:()=>{},children:i}),children:s})):i=(0,P.jsx)(ki.Provider,{value:l,children:(0,P.jsx)(ci.Provider,{value:p,children:Oi(i)})}),p.enabled&&!c?null:(0,P.jsx)("div",{className:E()(t,n,{[`${t}--grow`]:h||p.enabled&&c}),...r,children:i})},Mi=e=>{let{children:t,className:n,baseClassName:s=`${R.CLS_PREFIX}toolbar`,...i}=e;const a=(0,M.useRef)(null),[r,o]=(0,M.useState)(!1),l=(0,M.useMemo)((()=>({enabled:r,toggle:()=>o((e=>!e))})),[r]),c=Ci();Hs({ref:a,compact:()=>c.compact(),expand:()=>c.expand()});const u=Oi(t);return(0,P.jsx)("div",{ref:a,className:E()(s,n),...i,children:(0,P.jsx)(ki.Provider,{value:c,children:(0,P.jsx)(ci.Provider,{value:l,children:u})})})},Li=e=>(0,M.isValidElement)(e)&&e.type===ui,Ai=e=>{let{baseClassName:t=`${R.CLS_PREFIX}card-list__toolbar`,selection:n=null,onViewChange:s=null,currentView:i,groups:a}=e,r=[];return n&&r.push(((e,t)=>{let{onSelectAll:n,onSelectNone:s,checked:i,badge:a,menuItems:r=[]}=e;const o=r.length>0,l={},c={};o?(l.caret=!0,c.onClick=e=>e.stopPropagation(),l.component="span"):l.component="label";let u=(0,P.jsx)(Be,{...l,className:`${t}--select-all-btn`,children:(0,P.jsx)(ut,{checked:i,onChange:e=>{e?n():s()},...c})});return a&&("string"==typeof a&&(a={label:a}),u=(0,P.jsx)(ke,{...a,children:u})),o&&(u=(0,P.jsx)(Mn,{menu:(0,P.jsx)(qs,{children:r}),children:u})),(0,P.jsx)(Ii,{title:(0,P.jsx)(On,{content:"CardList.toolbarSelect",fallback:"Select"}),children:u},"selection")})(n,t)),r=r.concat(a),s&&i!==Ui&&(a.filter(Li).length>0||r.push((0,P.jsx)(ui,{},"expander")),r.push(((e,t)=>{const n=[{value:Ni,title:(0,P.jsx)(On,{content:"CardList.viewCards",fallback:"Cards"}),icon:"site-page"},{value:Ri,title:(0,P.jsx)(On,{content:"CardList.viewTiles",fallback:"Tiles"}),icon:"four-squares"},{value:Fi,title:(0,P.jsx)(On,{content:"CardList.viewList",fallback:"List"}),icon:"list"}];return(0,P.jsx)(Ii,{title:(0,P.jsx)(On,{content:"CardList.toolbarView",fallback:"View"}),children:(0,P.jsx)(Zs,{buttons:n,selected:t,onChange:t=>e(t)})},"view")})(s,i))),0===r.length?null:(0,P.jsx)(Mi,{className:t,children:r})};Ai.propTypes={selection:We().object,groups:We().arrayOf(We().element).isRequired,onViewChange:We().func,currentView:We().string.isRequired,baseClassName:We().string};const Ei=Ai,Ri="tile",Ui="responsive",Ni="extended",Fi="row";class Yi extends M.Component{constructor(){super(...arguments),F(this,"state",{page:this.props.defaultPage,totalItems:this.props.totalItems||this.props.items.length,pageSize:10,items:this.props.items,view:this.props.view}),F(this,"selectAll",(()=>{const{items:e}=this.state;this.select(e.map(this.getItemKey))})),F(this,"selectNone",(()=>{this.select([])})),F(this,"getItemKey",(e=>{const{itemKey:t}=this.props;return e[t]})),F(this,"renderItem",(e=>{const{baseClassName:t,itemRender:n,onSelectionChange:s}=this.props,{view:i}=this.state;return(0,M.cloneElement)(n(e),{key:this.getItemKey(e),view:this.isTile()?Ri:i,className:E()(`${t}__list-item`),selection:s?this.itemSelection(e):null})})),F(this,"previousView",null),F(this,"handleResize",(e=>{let{bounds:{width:t}}=e;const n=t>584?this.previousView:Ui;n!==Ui||this.previousView?n!==Ui&&(this.previousView=null):this.previousView=this.state.view,n&&n!==this.state.view&&this.changeView(n)}))}static getDerivedStateFromProps(e,t){const{items:n,totalItems:s}=e,{prevItems:i,prevTotalItems:a}=t,r={};return n!==i&&(r.items=n),s!==a&&(r.totalItems=s||n.length),r.prevItems=n,r.prevTotalItems=s||n.length,r}componentDidMount(){this.fetchItems()}componentDidUpdate(e){const{view:t}=this.props;t!==e.view&&this.state.view!==Ui&&this.fetchItems({page:1,view:t})}totalPages(){const{totalItems:e,pageSize:t}=this.state;return Math.ceil(e/t)}fetchItems(){let{page:e=this.state.page,view:t=this.state.view}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onItemsFetch:n}=this.props,s=t===Fi?40:10;this.setState({view:t,page:e,pageSize:s}),z(n,{page:e,pageSize:s})}loadMore(){const{onItemsFetch:e}=this.props,{page:t}=this.state,n=t+1;this.setState({page:n,pageSize:10}),z(e,{page:n,pageSize:10})}isTile(){const{view:e}=this.state;return e===Ri||e===Ui}renderPagination(){const{baseClassName:e}=this.props,{page:t,view:n}=this.state,s=this.totalPages();return s<2?null:n===Ui&&t<s?(0,P.jsx)("div",{className:`${e}__pagination`,children:(0,P.jsx)(Be,{onClick:()=>this.loadMore(),children:(0,P.jsx)(On,{content:"CardList.loadMore",fallback:"Load more"})})}):(0,P.jsx)(si,{className:`${e}__pagination`,total:s,current:t,onSelect:e=>this.fetchItems({page:e})})}changeView(e){const{onViewChange:t}=this.props;this.fetchItems({page:1,view:e}),z(t,e)}select(e){const{onSelectionChange:t}=this.props;t(e)}itemSelection(e){const t=this.getItemKey(e),{selection:n}=this.props;return{isSelected:n.indexOf(t)>-1,onSelectionChange:e=>{let{isSelected:s}=e;const i=s?[...n,t]:n.filter((e=>e!==t));this.select(i)}}}renderLoader(){const{baseClassName:e,loading:t}=this.props;return t?(0,P.jsx)("div",{className:`${e}__content-blocker`,children:(0,P.jsx)("div",{className:`${e}__loader`,children:(0,P.jsx)(ve,{className:`${e}__loader-spinner`})})}):null}render(){const{baseClassName:e,className:t,items:n,onItemsFetch:s,view:i,itemKey:a,itemRender:r,onViewChange:o,selection:l,onSelectionChange:c,selectionButton:u,viewSwitcher:d,toolbarGroups:p,totalItems:h,defaultPage:m,loading:f,...g}=this.props;let b=this.state.items.map(this.renderItem);return this.isTile()&&(b=(0,P.jsx)(ai,{minColumnWidth:400,gap:"md",children:M.Children.map(b,(e=>(0,P.jsx)(ri,{children:e},e.props.key)))})),(0,P.jsx)(_s,{bounds:!0,onResize:this.handleResize,children:n=>{let{measureRef:s}=n;return(0,P.jsxs)("div",{ref:s,className:E()(e,t),...g,children:[(0,P.jsx)(Ei,{selection:c&&this.state.totalItems>1?{...u,total:this.state.totalItems,onSelectAll:this.selectAll,onSelectNone:this.selectNone,checked:this.state.items.length===l.length}:null,onViewChange:d?e=>this.changeView(e):null,currentView:this.state.view,groups:p}),this.state.items.length>0&&(0,P.jsx)("div",{className:`${e}__list ${e}__list--${this.state.view}`,children:b}),0===this.state.items.length&&!f&&(0,P.jsx)(On,{content:"CardList.notFound",fallback:"No items found."}),this.renderPagination(),this.renderLoader()]})}})}}Yi.propTypes={items:We().array.isRequired,onItemsFetch:We().func,totalItems:We().number,defaultPage:We().number,view:We().oneOf([Ni,Ri,Fi,Ui]),onViewChange:We().func,viewSwitcher:We().bool,selection:We().array,onSelectionChange:We().func,selectionButton:We().shape({badge:We().oneOfType([We().string,We().object]),menuItems:We().arrayOf(We().element)}),toolbarGroups:We().arrayOf(We().element),itemKey:We().string.isRequired,itemRender:We().func.isRequired,loading:We().bool,className:We().string,baseClassName:We().string},Yi.defaultProps={onItemsFetch:null,totalItems:null,defaultPage:1,view:Ni,onViewChange:null,viewSwitcher:!1,selection:[],onSelectionChange:null,selectionButton:{badge:null,menuItems:[]},toolbarGroups:[],loading:!1,className:null,baseClassName:`${R.CLS_PREFIX}card-list`};const Hi=Yi;let Bi=0;const Vi=e=>{let{baseClassName:t=`${R.CLS_PREFIX}radio`,className:n,children:s,onChange:i,checked:a,defaultChecked:r,disabled:o=!1,name:l,inputProps:c={},...u}=e;const d=c&&c.id||"radio-"+Bi++;return(0,P.jsxs)("label",{htmlFor:d,className:E()(t,{[`${t}--disabled`]:o},n),...u,children:[(0,P.jsx)("input",{className:`${t}__input`,type:"radio",name:l,id:d,onChange:e=>{!o&&i&&i(e.target.checked)},checked:a,defaultChecked:r,disabled:o,...c}),(0,P.jsx)("span",{className:`${t}__indicator`}),s?(0,P.jsx)("span",{className:`${t}__text`,children:s}):null]})},$i=450,Wi=(0,M.createContext)(void 0);Wi.displayName="VerticalContext";const zi=Wi,qi=e=>{let{baseClassName:t=`${R.CLS_PREFIX}columns`,className:n,children:s,vertical:i,gap:a,...r}=e,[o,l]=(0,M.useState)(!1);const c=(0,M.useContext)(zi);void 0===i&&(i=void 0===c?$i:c),"boolean"==typeof i&&(o=i);const u=e=>(0,P.jsx)("div",{ref:e,className:E()(t,{[`${t}--vertical`]:o,[`${t}--gap-${a}`]:a},n),...r,children:(0,P.jsx)(zi.Provider,{value:o,children:s})});return"number"==typeof i?(0,P.jsx)(_s,{bounds:!0,onResize:e=>{let{bounds:t}=e;l(t.width<i)},children:e=>{let{measureRef:t}=e;return u(t)}}):u()},Gi=e=>String(Number(e))===String(e)?`${e}px`:e,Ki=e=>{let{baseClassName:t=`${R.CLS_PREFIX}columns__column`,className:n,children:s,fill:i,ratio:a,style:r,width:o,minWidth:l,maxWidth:c,...u}=e;const d=(0,M.useContext)(zi);return(0,P.jsx)("div",{className:E()(t,{[`${t}--fill`]:i&&!d,[`${t}--ratio-${a}`]:a&&!d,[`${t}--has-width`]:o&&!d},n),style:d?r:{width:Gi(o),flexBasis:Gi(l),maxWidth:Gi(c),...r},...u,children:s})},Xi=e=>{e.scrollTop=e.scrollHeight};class Qi extends M.PureComponent{constructor(){super(...arguments),F(this,"rootRef",(0,M.createRef)()),F(this,"prevScrollTop",0),F(this,"autoscrollCancelled",!1),F(this,"handleScroll",(()=>{const e=this.rootRef.current;e&&(e.scrollTop<this.prevScrollTop?this.autoscrollCancelled=!0:e.clientHeight+e.scrollTop>=e.scrollHeight&&(this.autoscrollCancelled=!1))}))}componentDidMount(){const{autoscroll:e}=this.props,t=this.rootRef.current;e&&t&&Xi(t)}componentDidUpdate(){const{autoscroll:e}=this.props,t=this.rootRef.current;e&&t&&(this.prevScrollTop=t.scrollTop,this.autoscrollCancelled||Xi(t))}render(){const{baseClassName:e,className:t,wide:n,cursor:s,children:i,autoscroll:a,...r}=this.props,o=a?this.handleScroll:void 0;return(0,P.jsxs)("pre",{className:E()(e,{[`${e}--wide`]:n},t),ref:this.rootRef,onScroll:o,...r,children:[i,s?(0,P.jsx)("span",{className:`${e}__cursor`}):null]})}}F(Qi,"defaultProps",{baseClassName:`${R.CLS_PREFIX}console-output`,wide:!1,cursor:!1,autoscroll:!0});const Ji=Qi;let Zi=0;const ea=e=>{let{baseClassName:t=`${R.CLS_PREFIX}overlay`,className:n,children:s=null,isOpen:i,placement:a="center",size:r="md",sideBanner:o,sideBannerContainer:l,onClose:c,canCloseOnBackdropClick:u=!0,canCloseOnEscapePress:d=!0,style:p={},onAnimationExited:h,...m}=e;const f=(0,M.useRef)(null),g=(0,M.useRef)(null),[b,v]=(0,M.useState)(!1);(0,M.useEffect)((()=>v(i)),[i]);const y=()=>{if(null!==g.current&&null!==document.activeElement&&!g.current.contains(document.activeElement)){const e=g.current.querySelector("[autofocus]");e instanceof HTMLElement?e.focus():g.current.focus()}};(0,M.useLayoutEffect)((()=>{b&&y()}),[b]);const x=`${t}--open`,_={in:b,classNames:{enterActive:x,enterDone:x},timeout:300};return(0,P.jsx)(De,{level:R.Z_INDEX_OVERLAY,children:(0,P.jsxs)("div",{className:E()(t,`${t}--${a}`,`${t}--${r}`,o&&`${t}--side`,n),style:{"--overlay-side-banner-background":l?.background,"--overlay-side-banner-align":l?.align,...p},...m,children:[(0,P.jsx)(ct,{nodeRef:f,..._,children:(0,P.jsx)("div",{ref:f,className:`${t}__backdrop`,onClick:()=>{u?z(c):b&&y()}})}),(0,P.jsx)(ct,{onExited:h,nodeRef:g,..._,children:(0,P.jsxs)(Es,{className:`${t}__content`,onKeyUp:d?e=>{e.isDefaultPrevented()||"Escape"!==e.key||(z(c),e.preventDefault())}:void 0,ref:g,role:"dialog","aria-modal":"true",children:[(0,P.jsx)("div",{className:`${t}__body`,children:s}),o&&(e=>{const n=`${t}__side`;let s=null;return s=(0,M.isValidElement)(e)?e:"string"==typeof e?(0,P.jsx)("img",{className:`${n}-image`,src:e,alt:""}):(0,P.jsx)("img",{className:`${n}-image`,...e}),(0,P.jsx)("div",{className:n,children:s})})(o)]})})]})})},ta=e=>{let{isOpen:t=!1,...n}=e;const s=(0,M.useRef)(!1),[i,a]=(0,M.useState)(!1),r=(0,M.useRef)(null),o=(0,M.useCallback)((()=>{s.current&&(s.current=!1,0==--Zi&&(()=>{if(!pt){const e=Math.abs(parseInt(document.body.style.marginTop||"0"));document.documentElement.style.position="",document.body.style.marginTop="",window.scrollTo(0,e),pt=!0}})(),r.current?.focus())}),[]);return(0,M.useEffect)((()=>{t?(s.current=!0,(()=>{if(pt){const e=-window.pageYOffset+"px";document.documentElement.style.position="fixed",document.body.style.marginTop=e,pt=!1}})(),Zi++,document.activeElement instanceof HTMLElement&&(r.current=document.activeElement),a(!0)):o()}),[t,o]),(0,M.useEffect)((()=>()=>o()),[o]),i?(0,P.jsx)(ea,{isOpen:t,onAnimationExited:()=>{a(!1)},...n}):null},na=e=>{let{onClose:t,closingConfirmation:n}=e;const[s,i]=(0,M.useState)(!1),[a,r]=(0,M.useState)(!1),o=()=>{r(!1)};let l;"function"==typeof t&&(l=()=>{n?(i(!0),r(!0)):t()});let c=null;return s&&(c=(0,P.jsx)(Ea,{isOpen:a,size:"sm",onClose:o,buttons:[(0,P.jsx)(Be,{intent:"primary",onClick:o,children:(0,P.jsx)(On,{content:"ClosingConfirmation.cancel",fallback:"Go Back"})},"cancel"),(0,P.jsx)(Be,{onClick:()=>{r(!1),z(t)},children:(0,P.jsx)(On,{content:"ClosingConfirmation.confirm",fallback:"Leave"})},"confirm")],cancelButton:!1,children:(0,P.jsx)(mi,{children:(0,P.jsx)(On,{content:"ClosingConfirmation.content",fallback:"Are you sure you want to close and leave this window? Any data changes you've made won't be saved."})})})),{onCloseWithConfirmation:l,closingConfirmationDialog:c}},sa=e=>e.replace(/]/g,"").split("["),ia=(e,t)=>isNaN(t)&&(Array.isArray(e)||"object"!=typeof e||null===e)?{}:isNaN(t)||Array.isArray(e)?isNaN(t)?{...e}:[...e]:[],aa=(e,t,n)=>{const s=sa(t);let i;try{i=s.reduce(((e,t)=>e[t]),e)}catch{}return void 0===i?n:i},ra=(e,t,n)=>{const s=sa(t),i=ia(e,s[0]);let a,r=i;for(;(a=s.shift())&&s.length;)r[a]=ia(r[a],s[0]),r=r[a];return a&&(r[a]=n),i},oa=`${R.CLS_PREFIX}section-item`,la=e=>{let{baseClassName:t=oa,className:n,children:s,title:i,actions:a=!1,vertical:r,...o}=e;const l=(0,M.useContext)(zi);return(0,P.jsxs)("div",{className:E()(t,{[`${t}--actions`]:a,[`${t}--vertical`]:void 0===r?l:r},n),...o,children:[null==i?null:(0,P.jsx)("div",{className:`${t}__title`,children:i}),(0,P.jsx)("div",{className:`${t}__value`,children:s})]})},ca=e=>{let{baseClassName:t=`${R.CLS_PREFIX}hint`,className:n,children:s,component:i="span",...a}=e;return(0,P.jsx)(i,{className:E()(t,n),...a,children:s})},ua=(0,M.createContext)(void 0);ua.displayName="FormContext";const da=ua,pa=(0,M.createContext)(null);pa.displayName="ScrollableElementFormContext";const ha=pa,ma=(0,M.createContext)(void 0);ma.displayName="DisabledContext";const fa=ma,ga=`${R.CLS_PREFIX}form-field`,ba=void 0,va=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e)&&e.length>0)return e;const n=[];return t&&n.push(void 0),n},ya=e=>!e&&0!==e||Array.isArray(e)&&0===e.length||!Array.isArray(e)&&"object"==typeof e&&0===Object.values(e).filter((e=>Boolean(e))).length;class xa extends M.Component{constructor(e){var t;super(e),t=this,F(this,"fieldApi",void 0),F(this,"targetRefs",void 0),F(this,"focusTimer",null),F(this,"getFieldApi",(e=>this.props.multi?{getValues:()=>this.fieldApi.getValues(),getId:()=>{const t=this.fieldApi.getId();return t?`${t}-${e}`:t},getName:()=>{const t=this.fieldApi.getName();return t?`${t}[${e}]`:t},getValue:t=>{const n=this.fieldApi.getValue();return n instanceof Array&&n[e]?n[e]:t},setValue:t=>{const n=va(this.fieldApi.getValue(),!0);return this.fieldApi.setValue(n.map(((n,s)=>s===e?t:n)))},getErrors:()=>{const t=this.fieldApi.getErrors();return t instanceof Array&&t[e]?t[e]:{}},getRequiredMark:()=>0===e?this.fieldApi.getRequiredMark():null,getSeparator:()=>(0,P.jsx)("span",{className:`${this.props.baseClassName}__separator`}),isDisabled:()=>!!this.props.disabled,getFullDescription:()=>0===e?this.fieldApi.getFullDescription():null}:this.fieldApi)),F(this,"focus",(e=>{let t=0;Array.isArray(e)&&(t=e.findIndex((e=>Boolean(e))));const{scrollableElement:n}=this.props,s=this.targetRefs[t];s&&(X(s,{boundary:n}),this.focusTimer=setTimeout((()=>{s&&(new Is).focusFirstDescendant(s)}),500))})),F(this,"handleAddMore",(()=>{const e=va(this.fieldApi.getValue(),!0);this.fieldApi.setValue([...e,ba])})),F(this,"handleRemove",(e=>{const t=va(this.fieldApi.getValue());this.fieldApi.setValue(t.filter(((t,n)=>n!==e))),z(this.props.onRemoveRow,e),this.setState((t=>t.errors&&t.errors.filter?{errors:t.errors.filter(((t,n)=>n!==e))}:{}))})),F(this,"setTargetRef",(e=>t=>{this.targetRefs[e]=t})),F(this,"renderRemoveButton",(e=>{const{multi:t,locale:n,disabled:s}=this.props,i=va(this.fieldApi.getValue()),a=t&&1===i.length&&!ya(i[0]);return!t||i.length<1||1===i.length&&ya(i[0])?null:(0,P.jsx)(Be,{className:`${this.props.baseClassName}__remove`,icon:a?"clean":"cross-mark",tooltip:(0,P.jsx)(On,{namespace:"FormField",content:a?"clear":"remove",fallback:a?"Clear":"Remove",translators:n}),onClick:()=>this.handleRemove(e),disabled:s,ghost:!0})})),F(this,"renderDescription",(e=>{const{baseClassName:t,description:n,multi:s}=this.props;return!n||s&&va(this.fieldApi.getValue()).length-1>e?null:(0,P.jsx)(ca,{component:"div",className:`${t}__description`,children:n})})),F(this,"renderField",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{baseClassName:s,className:i,id:a,name:r,value:o,onChange:l,label:c,description:u,errors:d,required:p,children:h,multi:m,disabled:f,addMoreValidator:g,onRemoveRow:b,locale:v,form:y,vertical:x,scrollableElement:_,fullDescription:S,...w}=t.props,k=t.getFieldApi(e),j=k.getErrors(),T=j&&Object.keys(j).length>0;let C=c;C&&e&&(C="");let D="function"==typeof h?h(k):h;return m&&(D=(0,P.jsxs)("div",{className:`${s}__multi`,children:[D," ",t.renderRemoveButton(e)]})),(0,P.jsxs)(la,{className:E()(s,{[`${s}--error`]:T,[`${s}--vertical-multi`]:m&&x},i),title:null===C?null:(0,P.jsxs)("div",{className:`${s}__label`,children:[(0,P.jsx)("label",{htmlFor:k.getId(),children:C}),k.getFullDescription(),p?k.getRequiredMark():null]}),vertical:x,...w,children:[(0,P.jsx)("div",{ref:t.setTargetRef(e),children:D}),T&&Object.keys(j).map((e=>(0,P.jsxs)("span",{className:`${s}__error`,children:[(0,P.jsx)(be,{className:`${s}__error-icon`,name:"exclamation-mark-circle-filled",size:"12"}),j[e]]},e))),t.renderDescription(e),n&&(0,P.jsx)(Cs,{role:"button",onClick:t.handleAddMore,className:`${s}__add-more`,disabled:f,children:(0,P.jsx)(On,{namespace:"FormField",content:"addMore",fallback:"Add one more",translators:v})})]},e)}));const{value:n,multi:s}=this.props;let i=n;s&&!i&&(i=[ba]),this.state={value:i,errors:this.props.errors},this.fieldApi={getId:()=>this.props.id?this.props.id:this.props.name?this.props.name.replace(/[[\]]+/g,"-").replace(/-+$/,""):void 0,getName:()=>this.props.name,getValues:()=>this.props.form?this.props.form.getValues():null,getValue:e=>this.props.form&&this.props.name?this.props.form.getValue(this.props.name,e):this.state.value||e,setValue:e=>{this.setState({value:e}),this.props.form&&this.props.name&&this.props.form.setValue(this.props.name,e),z(this.props.onChange,e)},getErrors:()=>this.props.form&&this.props.name?this.props.form.getErrors(this.props.name):this.state.errors,getRequiredMark:()=>this.props.form?this.props.form.getRequiredMark():null,isDisabled:()=>Boolean(this.props.disabled),getFullDescription:()=>this.props.fullDescription?(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{outerProps:{className:`${this.props.baseClassName}__full-description`},icon:{name:"info-circle",size:"12",className:`${this.props.baseClassName}__full-description-icon`}}),placement:"right",intent:"info",children:this.props.fullDescription}):null},this.targetRefs=[]}static getDerivedStateFromProps(e,t){const n={},{errors:s,form:i,required:a,name:r}=e,{prevErrors:o,prevRequired:l}=t;return void 0!==e.value&&(n.value=e.value),s!==o&&(n.errors=s),r&&i&&a!==l&&i.setRequiredField(r,!!a),n.prevErrors=s,n.prevRequired=a,n}componentDidMount(){this.props.form&&this.props.name&&(this.props.form.setRequiredField(this.props.name,!!this.props.required),this.props.form.registerField(this.props.name,{focus:this.focus}))}componentWillUnmount(){this.props.form&&this.props.name&&(this.props.form.setRequiredField(this.props.name,!1),this.props.form.unregisterField(this.props.name)),this.focusTimer&&clearTimeout(this.focusTimer)}render(){if(!this.props.multi)return this.renderField();const e="object"==typeof this.props.multi&&this.props.multi.max?this.props.multi.max:1/0;let t=0;const n=(this.fieldApi.getValue()||[]).length||1,s=[];do{s.push(this.renderField(t++,n===t&&n<e))}while(t<n);return s}}const _a=e=>{let{value:t=ba,errors:n={},required:s=!1,baseClassName:i=ga,...a}=e;const r=(0,M.useContext)(da),o=(0,M.useContext)(zi),l=void 0===a.vertical?o:a.vertical,c=(0,M.useContext)(ha),u=(0,M.useContext)(fa);return(0,P.jsx)(xa,{...a,form:r,vertical:l,scrollableElement:c,disabled:a.disabled||u,value:t,errors:n,required:s,baseClassName:i})};_a.displayName="FormField";const Sa=_a,wa=e=>{let{value:t="",onSave:n,onCancel:s,baseClassName:i}=e;const[a,r]=(0,M.useState)(t),o=()=>n(a);return(0,P.jsxs)("div",{className:`${i}__edit`,children:[(0,P.jsx)(Ss,{className:`${i}__edit-input`,value:a,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Escape"===e.key?s():"Enter"===e.key&&o()},autoFocus:!0}),(0,P.jsxs)("div",{className:`${i}__edit-actions`,children:[(0,P.jsx)(Be,{ghost:!0,className:E()(`${i}__control-button`,`${i}__control-button--ok`),icon:"check-mark",onClick:o,tooltip:(0,P.jsx)(On,{content:"InPlaceEdit.okButtonHint",fallback:"Save changes"})}),(0,P.jsx)(Be,{ghost:!0,className:E()(`${i}__control-button`,`${i}__control-button--cancel`),icon:"cross-mark",onClick:s,tooltip:(0,P.jsx)(On,{content:"InPlaceEdit.cancelButtonHint",fallback:"Discard changes"})})]})]})},ka=e=>{let{baseClassName:t=`${R.CLS_PREFIX}in-place-edit`,className:n,onChange:s,value:i,...a}=e;const[r,o]=(0,M.useState)(!1),l=()=>o((e=>!e));return(0,P.jsxs)("div",{className:E()(t,n),...a,children:[!r&&i,!r&&s&&(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__control-button`,`${t}__control-button--edit`),onClick:l,icon:{name:"pencil",className:`${t}__control-button-icon`},tooltip:(0,P.jsx)(On,{content:"InPlaceEdit.editButtonHint",fallback:"Edit value"})}),r&&(0,P.jsx)(wa,{baseClassName:t,value:`${i}`,onSave:e=>{s?.(e),l()},onCancel:l})]})},ja=(e,t)=>{let n={};return M.Children.forEach(t,(t=>{(0,M.isValidElement)(t)&&(t.props.name&&(n={...n,...e.getErrors(t.props.name)}),t.props.children&&(n={...n,...ja(e,t.props.children)}))})),n},Ta=`${R.CLS_PREFIX}section`;class Ca extends M.Component{constructor(){super(...arguments),F(this,"state",{vertical:!1}),F(this,"handleResize",(e=>{let{bounds:t}=e;void 0===this.props.vertical&&t&&this.setState({vertical:t.width<$i})})),F(this,"handleCollapse",(e=>{G(e)||this.setState((e=>{let{collapsed:t}=e;return{collapsed:!t}}),(()=>{this.props.onToggle?.(this.state.collapsed??!1)}))}))}static getDerivedStateFromProps(e,t){const{collapsible:n,collapsed:s,form:i,children:a}=e,{prevCollapsed:r,prevErrors:o}=t,l={};if(s!==r&&(l.collapsed=s),l.prevCollapsed=s,n&&i){const e=ja(i,a);JSON.stringify(e)!==JSON.stringify(o)&&Object.keys(e).length>0&&(l.collapsed=!1),l.prevErrors=e}return l}renderCollapseButton(e){let{baseClassName:t,collapsible:n}=e;const{collapsed:s}=this.state;return n&&(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__control-button`,`${t}__control-button--collapse`),icon:{name:"chevron-up",flipVertical:s},onClick:this.handleCollapse})}renderCloseButton(e){let{baseClassName:t,onClose:n,buttons:s}=e;return(n||s)&&(0,P.jsxs)("div",{className:`${t}__header-buttons`,children:[s,n&&(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__control-button`,`${t}__control-button--close`),onClick:n,icon:"cross-mark"})]})}renderTitle(e){let{baseClassName:t,title:n,onTitleChange:s}=e;return n&&(0,P.jsx)(ka,{className:`${t}__title`,value:n,onChange:s,onClick:e=>{const n=e.target?.closest(`.${t}__header`)?.querySelector(`.${t}__control-button`);n?.click()}})}renderContent(e){let{collapsible:t,children:n}=e;const{collapsed:s}=this.state;return t&&s?null:n}render(){const{baseClassName:e=Ta,className:t,intent:n,collapsible:s=!1,title:i,collapsed:a,onTitleChange:r,onClose:o,onToggle:l,buttons:c,vertical:u,children:d,form:p,...h}=this.props,m=void 0===u?this.state.vertical:u;return(0,P.jsx)(zi.Provider,{value:m,children:(0,P.jsx)(_s,{onResize:this.handleResize,bounds:!0,children:a=>{let{measureRef:l}=a;return(0,P.jsxs)("div",{ref:l,className:E()(e,{[`${e}--${n}`]:n,[`${e}--collapsible`]:s,[`${e}--collapsed`]:this.state.collapsed,[`${e}--vertical`]:m},t),...h,children:[i&&(0,P.jsxs)("div",{className:`${e}__header`,children:[this.renderCollapseButton({baseClassName:e,collapsible:s}),this.renderTitle({baseClassName:e,title:i,onTitleChange:r}),this.renderCloseButton({baseClassName:e,onClose:o,buttons:c})]}),this.renderContent({collapsible:s,children:d})]})}})})}}const Da=e=>{let{collapsible:t=!1,collapsed:n=!1,baseClassName:s=Ta,...i}=e;const a=(0,M.useContext)(da),r=(0,M.useContext)(zi),o=void 0===i.vertical?r:i.vertical;return(0,P.jsx)(Ca,{...i,form:a,vertical:o,collapsible:t,collapsed:n,baseClassName:s})};Da.displayName="Section",Da.WrappedComponent=Ca;const Pa=Da,Oa=Ee({defaultProps:{size:"lg"}});class Ia extends M.Component{constructor(){var e;super(...arguments),e=this,F(this,"state",{values:this.props.values,vertical:this.props.vertical||!1,requiredFields:[],formContext:{getValues:()=>this.state.values,getValue:(e,t)=>this.state.values?aa(this.state.values,e,t):t,setValue:(e,t)=>{this.setState((n=>{let{values:s}=n;return s?{values:ra(s,e,t)}:null})),z(this.props.onFieldChange,e,t)},getErrors:e=>this.props.errors?aa(this.props.errors,e,{}):{},registerField:(e,t)=>{e&&(this.fields[e]=t)},unregisterField:e=>{e&&delete this.fields[e]},setRequiredField:(e,t)=>{this.setState((n=>t?{requiredFields:[...n.requiredFields,e]}:{requiredFields:n.requiredFields.filter((t=>t!==e))}))},getRequiredMark:()=>this.props.requiredMark}}),F(this,"fields",{}),F(this,"handleSubmit",(e=>{e.preventDefault(),this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!1)})),F(this,"handleSubmitClick",(e=>{"submit"!==e.currentTarget.type&&this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!1)})),F(this,"handleApplyClick",(e=>{"submit"!==e.currentTarget.type&&this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!0)})),F(this,"handleResize",(e=>{let{bounds:t}=e;const{vertical:n}=this.props;void 0===n?this.setState({vertical:t.width<$i}):this.setState({vertical:n})})),F(this,"renderForm",(function(){let{actionButtons:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{innerRef:n,baseClassName:s,className:i,children:a,requiredMark:r,hideRequiredLegend:o,values:l,errors:c,submitButton:u,applyButton:d,cancelButton:p,onFieldChange:h,onSubmit:m,additionalButtons:f,footerClassName:g,state:b,render:v,vertical:y,...x}=e.props;return(0,P.jsx)(da.Provider,{value:e.state.formContext,children:(0,P.jsx)(zi.Provider,{value:e.state.vertical,children:(0,P.jsx)(fa.Provider,{value:!!b,children:(0,P.jsx)(_s,{onResize:e.handleResize,innerRef:n,bounds:!0,children:n=>{let{measureRef:r}=n;return(0,P.jsxs)("form",{ref:r,className:E()(s,{[`${s}--has-required`]:e.hasRequiredField()},i),onSubmit:e.handleSubmit,...x,children:[a,t,(0,P.jsx)("input",{type:"image",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=",style:{border:0,height:0,width:0,position:"absolute"}})]})}})})})})})),F(this,"renderActionButtons",(()=>{const{submitButton:e,applyButton:t,cancelButton:n,state:s,additionalButtons:i,baseClassName:a,footerClassName:r}=this.props;return(0,P.jsx)(Pa,{className:E()(`${a}__footer`,r),children:(0,P.jsx)(Sa,{children:(0,P.jsxs)(Ae.Provider,{value:Oa,children:[this.renderSubmitButton({submitButton:e,state:s}),this.renderApplyButton({applyButton:t,state:s}),this.renderAdditionalButtons({additionalButtons:i}),this.renderCancelButton({cancelButton:n,state:s})]})})})}))}static getDerivedStateFromProps(e,t){const{values:n,errors:s,requiredMark:i}=e,{prevValues:a,prevErrors:r,prevRequiredMark:o}=t,l={};return n!==a&&(l.values=n),n===a&&s===r&&i===o||(l.formContext={...t.formContext}),l.prevValues=n,l.prevErrors=s,l.prevRequiredMark=i,l}componentDidUpdate(e){const{errors:t}=this.props;if(t!==e.errors){let e,n;Object.keys(this.fields).every((s=>{const i=aa(t,s);return!(i&&"object"==typeof i&&Object.keys(i).length>0&&(e=this.fields[s],n=i,1))})),e&&e.focus(n)}}hasRequiredField(){return this.props.requiredMark&&this.state.requiredFields.length>0}renderSubmitButton(e){let{submitButton:t,state:n}=e;return t?(0,P.jsx)(Be,{intent:"primary",state:"submit"===n?"loading":void 0,disabled:!!n,onClick:this.handleSubmitClick,children:(0,P.jsx)(On,{content:"Form.submitButton",fallback:"Save"}),..."object"==typeof t?t:{}}):null}renderApplyButton(e){let{applyButton:t,state:n}=e;return t?(0,P.jsx)(Be,{intent:"primary",state:"apply"===n?"loading":void 0,disabled:!!n,onClick:this.handleApplyClick,children:(0,P.jsx)(On,{content:"Form.applyButton",fallback:"Apply"}),..."object"==typeof t?t:{}}):null}renderCancelButton(e){let{cancelButton:t,state:n}=e;return t?(0,P.jsx)(Be,{state:"cancel"===n?"loading":void 0,disabled:!!n,children:(0,P.jsx)(On,{content:"Form.cancelButton",fallback:"Cancel"}),..."object"==typeof t?t:{}}):null}renderAdditionalButtons(e){let{additionalButtons:t}=e;const{baseClassName:n}=this.props;return Array.isArray(t)?t.map((e=>{if((0,M.isValidElement)(e)){const t={className:E()(e.props.className,`${n}__additional-button`)};return(0,M.cloneElement)(e,t)}return e})):null}render(){const{render:e}=this.props;return"function"==typeof e?e({renderForm:this.renderForm,renderActionButtons:this.renderActionButtons}):this.renderForm({actionButtons:this.renderActionButtons()})}}F(Ia,"defaultProps",{children:void 0,requiredMark:(0,P.jsx)("span",{className:`${R.CLS_PREFIX}form__required`}),hideRequiredLegend:!1,values:{},errors:{},state:void 0,submitButton:!0,applyButton:!0,cancelButton:!0,additionalButtons:[],onFieldChange:void 0,onSubmit:void 0,className:void 0,footerClassName:void 0,vertical:void 0,baseClassName:`${R.CLS_PREFIX}form`,render:void 0,innerRef:void 0});const Ma=(0,M.forwardRef)(((e,t)=>{const n=(0,M.useRef)(null);return(0,M.useImperativeHandle)(t,(()=>({submit(){n.current?.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}}))),(0,P.jsx)(Ia,{innerRef:n,...e})}));Ma.displayName="Form";const La=Ma,Aa=e=>e&&"object"==typeof e&&!(0,M.isValidElement)(e),Ea=e=>{let{baseClassName:t=`${R.CLS_PREFIX}dialog`,isOpen:n=!1,size:s="md",closable:i=!0,canClose:a=!0,className:r,children:o,actions:l,banner:c,image:u,title:d,subtitle:p,cancelTitle:h,cancelButton:m,buttons:f,form:g,onClose:b,closingConfirmation:v,...y}=e;const[x,_]=(0,M.useState)(n),{onCloseWithConfirmation:S,closingConfirmationDialog:w}=na({onClose:()=>{_(!1),z(b)},closingConfirmation:v});(0,M.useEffect)((()=>{_(n)}),[n]);const k=(e,n)=>{const s=`${t}__${n}`;return(0,M.isValidElement)(e)?(0,P.jsx)("div",{className:s,children:e}):"string"==typeof e?(0,P.jsx)("div",{className:s,children:(0,P.jsx)("img",{alt:"",className:`${s}-inner`,src:e})}):(0,P.jsx)("div",{className:s,children:(0,P.jsx)("img",{alt:"",className:`${s}-inner`,...e})})},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;if(!i)return!1;if(!1===m||e&&!1===e.cancelButton)return!1;let t={onClick:S,children:h||(0,P.jsx)(On,{content:"Dialog.cancelButton",fallback:"Cancel"})};return e&&Aa(e.cancelButton)&&(t={...t,...e.cancelButton}),Aa(m)&&(t={...t,...m}),t};let T;return g?(0,M.isValidElement)(g)?T=(0,M.cloneElement)(g,{cancelButton:j(g.props),footerClassName:E()(g.props.footerClassName,`${t}__form-footer`)}):"object"==typeof g&&(g.cancelButton=j(),g.footerClassName=E()(g.footerClassName,`${t}__form-footer`),g.applyButton=g.applyButton||!1,T=(0,P.jsx)(La,{...g,children:o})):T=o,(0,P.jsxs)(ta,{className:E()(t,r),isOpen:x,onClose:S,canCloseOnBackdropClick:a&&i,canCloseOnEscapePress:a&&i,size:s,...y,children:[(d||p||l)&&(0,P.jsxs)("header",{className:`${t}__header`,children:[c&&k(c,"banner"),(0,P.jsx)("div",{className:`${t}__header-inner`,children:(0,P.jsxs)("div",{className:`${t}__header-body`,children:[(0,P.jsxs)("div",{className:`${t}__header-content`,children:[Ps(d)?(0,P.jsx)(Ds,{level:2,className:`${t}__title`,children:d}):(0,P.jsx)("div",{className:`${t}__title`,children:d}),p&&(0,P.jsx)("div",{className:`${t}__subtitle`,children:Ps(p)?(0,P.jsx)(ei,{intent:"muted",children:p}):p})]}),(l||i)&&(0,P.jsxs)("div",{className:`${t}__header-actions`,children:[l,i&&(0,P.jsx)(Be,{className:`${t}__header-close`,disabled:!a,ghost:!0,size:"lg",icon:"cross-mark",onClick:S})]})]})})]}),(0,P.jsxs)("div",{className:`${t}__content`,children:[u&&k(u,"image"),T,(()=>{if(g)return null;let e;const n=j();return n&&(e=(0,P.jsx)(Be,{...n})),f||e?(0,P.jsxs)("div",{className:`${t}__buttons`,children:[f,e]}):null})()]}),w]})},Ra=e=>{let{baseClassName:t=`${R.CLS_PREFIX}drawer-header`,onClose:n,children:s,backButton:i=!1,hideButton:a=!1,tabs:r,...o}=e;const l=function(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__button`,`${t}__button--close`),size:"lg",icon:(0,P.jsx)(be,{name:"cross-mark",className:`${t}__icon`}),onClick:n,disabled:e})};let c,u;return n&&(i?c=(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__button`,`${t}__button--back`),size:"lg",icon:(0,P.jsx)(be,{name:"chevron-left",flipHorizontal:dt(),className:`${t}__icon`}),onClick:n}):u=a?(0,P.jsxs)("div",{className:`${t}__actions`,children:[(0,P.jsx)(Be,{ghost:!0,className:E()(`${t}__button`,`${t}__button--hide`),size:"lg",icon:(0,P.jsx)(be,{className:`${t}__icon`,name:"minimize"}),onClick:n}),l({disabled:!0})]}):(0,P.jsx)("div",{className:`${t}__actions`,children:l()})),(0,P.jsx)("div",{className:t,...o,children:(0,P.jsxs)("div",{className:`${t}__inner`,children:[c,(0,P.jsxs)("div",{className:`${t}__content`,children:[s,r&&(0,P.jsx)("div",{className:`${t}__tabs`,children:(0,P.jsx)("div",{className:`${t}__tabs-inner`,children:r})})]}),u]})})},Ua={info:"info-circle-filled",success:"check-mark-circle-filled",warning:"triangle-exclamation-mark-filled",danger:"exclamation-mark-circle-filled",inactive:"cross-mark-circle-filled"},Na=(e,t)=>{if(!1!==e)return!0!==e&&e||!t||(e=Ua[t]),be.create(e,t?{name:Ua[t]}:void 0)},Fa=e=>{let{baseClassName:t=`${R.CLS_PREFIX}status`,className:n,children:s,icon:i,intent:a,progress:r,compact:o,flip:l,outerProps:c={},...u}=e;return"muted"===a&&(a="inactive"),(0,P.jsx)(ye,{component:"span",icon:o?void 0:Na(i,a),className:E()(t,{[`${t}--${a}`]:a&&!r,[`${t}--on-dark`]:(0,M.useContext)(ie)},n),outerProps:{...c,className:E()({[`${t}--compact`]:o,[`${t}--flip`]:l},c.className)},progress:r,...u,children:s})},Ya=e=>{let{baseClassName:t=`${R.CLS_PREFIX}progress-bar__indicator`,className:n,intent:s,progress:i=-1,...a}=e;return(0,P.jsx)("div",{className:E()(t,{[`${t}--${s}`]:s,[`${t}--indeterminate`]:-1===i},n),style:i>=0&&i<=100?{width:`${i}%`}:void 0,...a})},Ha=e=>{let{baseClassName:t=`${R.CLS_PREFIX}progress-bar`,className:n,intent:s,progress:i=-1,...a}=e;return(0,P.jsx)("div",{className:E()(t,{[`${t}--on-dark`]:(0,M.useContext)(ie)},n),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":i>=0&&i<=100?i:void 0,role:"progressbar",...a,children:(0,P.jsx)(Ya,{intent:s,progress:i})})},Ba="not_started",Va="running",$a="done",Wa="warning",za="error",qa=Ba,Ga=e=>{let{className:t,children:n,icon:s,title:i,statusText:a,progress:r=-1,status:o=qa,baseClassName:l=`${R.CLS_PREFIX}progress-step`,...c}=e,u=null;switch(o){case Ba:u="inactive",s="dot";break;case Va:u=!1,s="dot";break;case $a:u="success",s="check-mark-circle-filled";break;case Wa:u="warning",s="triangle-exclamation-mark-filled";break;case za:u="danger",s="exclamation-mark-circle-filled";break;case"canceled":r=0,u="inactive",s="cross-mark-circle-filled"}return s=be.create(s,{className:`${l}__icon`,size:re,intent:u}),!a||(0,M.isValidElement)(a)&&a.type===Fa||(a=(0,P.jsx)(Fa,{children:a})),(0,P.jsxs)("div",{className:E()(l,{[`${l}--${u}`]:u,[`${l}--content`]:M.Children.toArray(n).length,[`${l}--on-dark`]:(0,M.useContext)(ie)},t),...c,children:[s&&(0,P.jsx)("div",{className:`${l}__media`,children:s}),(0,P.jsxs)("div",{className:`${l}__body`,children:[(i||a||M.Children.toArray(n).length>0)&&(0,P.jsxs)("div",{className:`${l}__labels`,children:[(0,P.jsxs)("div",{className:`${l}__labels-body`,children:[i&&(0,P.jsx)("div",{className:`${l}__title`,children:i}),M.Children.toArray(n).length?(0,P.jsx)("div",{className:`${l}__content`,children:n}):null]}),a&&(0,P.jsx)("div",{className:`${l}__status`,children:a})]}),Va===o&&(0,P.jsx)(Ha,{className:`${l}__progress`,intent:"info",progress:r})]})]})};class Ka extends M.Component{constructor(){super(...arguments),F(this,"state",{status:null})}static getDerivedStateFromProps(e){let{children:t}=e,n=!0,s=!0,i=!0,a=!1;return t&&M.Children.forEach(t,(e=>{if((0,M.isValidElement)(e)){const t=e.props.status??qa;n=n&&t===Ba,s=s&&t===$a,i=i&&[$a,Wa].includes(t),a=a||t===za}})),s?{status:$a}:i?{status:Wa}:n?{status:Ba}:a?{status:za}:{status:Va}}componentDidMount(){const{status:e}=this.state,{onStatusChange:t}=this.props;e&&z(t,e)}componentDidUpdate(e,t){const{status:n}=this.state,{onStatusChange:s}=this.props;t.status!==n&&n&&z(s,n)}render(){const{baseClassName:e,className:t,children:n,onStatusChange:s,...i}=this.props;return(0,P.jsx)("div",{className:E()(e,t),...i,children:n})}}F(Ka,"defaultProps",{onStatusChange:null,children:null,className:null,baseClassName:`${R.CLS_PREFIX}progress`});const Xa=Ka,Qa=Ee({defaultProps:{size:"lg"}});class Ja extends M.Component{constructor(){super(...arguments),F(this,"state",{status:null}),F(this,"closeTimeout",void 0),F(this,"handleStatusChange",(e=>{const{onClosableChange:t,onFinish:n,onFail:s,cancelable:i,onStatusChange:a}=this.props,r=e===$a,o=e===za;z(a,e),this.setState({status:e}),z(t,i||r||o),r?z(n):o&&z(s)})),F(this,"handleClose",(()=>{const{onClose:e,onCancel:t,cancelable:n}=this.props;window.clearTimeout(this.closeTimeout),n&&z(t),z(e)})),F(this,"handleCancel",(()=>{const{onCancel:e,onClose:t,cancelable:n}=this.props;window.clearTimeout(this.closeTimeout),n&&z(e),z(t)}))}componentDidUpdate(e,t){const{autoCloseTimeout:n,onStart:s}=this.props,{status:i}=this.state;t.status!==$a&&i===$a&&(window.clearTimeout(this.closeTimeout),null!==n&&(this.closeTimeout=window.setTimeout(this.handleClose,n))),t.status===Ba&&i!==Ba&&z(s)}componentWillUnmount(){window.clearTimeout(this.closeTimeout)}render(){const{baseClassName:e,title:t,steps:n,buttons:s,cancelable:i,render:a}=this.props,{status:r}=this.state,o=i&&!(r===$a||r===za),l=!(!s&&!o),c=(0,P.jsxs)(M.Fragment,{children:[t&&(0,P.jsx)("div",{className:`${e}__title`,children:t}),(0,P.jsx)(Xa,{onStatusChange:this.handleStatusChange,className:`${e}__progress`,children:n.map(((e,t)=>(0,P.jsx)(Ga,{...e},t.toString())))})]}),u=l?(0,P.jsxs)("div",{className:`${e}__footer`,children:[(0,P.jsx)(Ae.Provider,{value:Qa,children:s}),o&&(0,P.jsx)(Be,{onClick:this.handleCancel,size:"lg",children:(0,P.jsx)(On,{content:"DrawerProgress.cancelButton",fallback:"Cancel"})})]}):null;return"function"==typeof a?a({content:c,footer:u}):(0,P.jsxs)(M.Fragment,{children:[c,u]})}}F(Ja,"defaultProps",{baseClassName:`${R.CLS_PREFIX}drawer-progress`,autoCloseTimeout:0,cancelable:!1,steps:[]});const Za=Ja,er=e=>{let{baseClassName:t=`${R.CLS_PREFIX}drawer`,isOpen:n=!1,placement:s="left",size:i="md",className:a,children:r,title:o,subtitle:l,backButton:c,hideButton:u,tabs:d,onClose:p,form:h,progress:m,closingConfirmation:f,...g}=e;const b=(0,M.useRef)(null),[v,y]=(0,M.useState)(!0),{onCloseWithConfirmation:x,closingConfirmationDialog:_}=na({onClose:p,closingConfirmation:f});return(0,P.jsxs)(ta,{className:E()(t,{[`${t}--form`]:h},a),onClose:x,canCloseOnBackdropClick:!0,isOpen:n,placement:s,size:i,...g,children:[(e=>{if(m){m.onClose=x,m.onClosableChange=y;const n=n=>{let{content:s,footer:i}=n;return e({content:(0,P.jsx)("div",{className:`${t}__form`,children:s}),footer:i})};return(0,P.jsx)(Za,{render:n,...m})}if(h){if((0,M.isValidElement)(h))return(0,M.cloneElement)(h,{className:E()(`${t}__form`,h.props.className),cancelButton:!1!==h.props.cancelButton&&{onClick:x,..."object"==typeof h.props.cancelButton&&h.props.cancelButton},render:t=>{let{renderForm:n,renderActionButtons:s}=t;return e({content:n(),footer:s()})}});if("object"==typeof h)return h.className=E()(`${t}__form`,h.className),!1!==h.cancelButton&&(h.cancelButton={onClick:x,..."object"==typeof h.cancelButton&&h.cancelButton}),(0,P.jsx)(La,{...h,render:t=>{let{renderForm:n,renderActionButtons:s}=t;return e({content:n(),footer:s()})},children:r})}return e({content:(0,P.jsx)("div",{className:`${t}__inner-body`,children:r})})})((e=>{let{content:n,footer:s}=e;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(Ra,{backButton:c,hideButton:"boolean"==typeof u?u:Boolean(m&&!v),onClose:x,tabs:d,children:[Ps(o)?(0,P.jsx)(Ds,{level:2,className:`${t}__title`,children:o}):(0,P.jsx)("div",{className:`${t}__title`,children:o}),l&&(0,P.jsx)("div",{className:`${t}__subtitle`,children:l})]}),(0,P.jsx)("div",{className:`${t}__body`,ref:b,children:(0,P.jsx)(ha.Provider,{value:b.current,children:n})}),s&&(0,P.jsx)("footer",{className:`${t}__footer`,children:(0,P.jsx)("div",{className:`${t}__footer-inner`,children:s})})]})})),_]})},tr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}extended-status-message`,className:n,intent:s,image:i,children:a=!1,loading:r,...o}=e;return(0,P.jsx)("div",{className:`${t}__container`,children:(0,P.jsxs)("div",{className:E()(t,{[`${t}--${s}`]:s,[`${t}--loading`]:r},n),...o,children:[i?(0,P.jsx)("div",{className:`${t}__image`,children:i}):null,(0,P.jsx)("div",{className:`${t}__body`,children:a}),r&&(0,P.jsx)(Rn,{overlay:!0,text:!0===r?null:r})]})})},nr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}extended-status-message`,className:n,children:s,...i}=e;return(0,P.jsx)("div",{className:E()(`${t}__actions`,n),...i,children:s})},sr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}extended-status-message`,className:n,children:s,...i}=e;return(0,P.jsx)("div",{className:E()(`${t}__description`,n),...i,children:s})},ir=e=>{let{baseClassName:t=`${R.CLS_PREFIX}extended-status-message`,className:n,children:s,...i}=e;return(0,P.jsx)(Ds,{level:3,className:E()(`${t}__title`,n),...i,children:s})},ar=e=>{let{className:t,label:n,autoFocus:s,required:i=!1,checkedValue:a=!0,uncheckedValue:r=!1,baseClassName:o=`${R.CLS_PREFIX}form-field-checkbox`,...l}=e;return(0,P.jsx)(Sa,{className:E()(o,t),label:null,required:i,...l,children:e=>{let{getId:t,getName:o,getValue:l,setValue:c,getRequiredMark:u,getFullDescription:d,isDisabled:p}=e;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("input",{type:"hidden",name:o(),value:r.toString()}),(0,P.jsx)(ut,{checked:l()===a,onChange:e=>c(e?a:r),inputProps:{id:t(),name:o(),value:a.toString(),autoFocus:s},disabled:p(),rightAddon:(0,P.jsxs)(P.Fragment,{children:[d(),i?u():null]}),children:n})]})}})},rr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}toast`,className:n,message:s,intent:i,accent:a,icon:r=i&&(0,P.jsx)(be,{name:Ua[i]}),onClose:o,closable:l=!0,autoClosable:c,autoCloseTimeout:u,innerRef:d,groupKey:p,...h}=e;(e=>{let{autoClosable:t,autoCloseTimeout:n,onClose:s}=e;const i=(0,M.useRef)(s);i.current=s,(0,M.useEffect)((()=>{const e=((e,t)=>"boolean"!=typeof e?t:e?6e3:void 0)(t,n);let s;return e&&i.current&&(s=window.setTimeout(i.current,e)),()=>window.clearTimeout(s)}),[t,n])})({autoClosable:c,autoCloseTimeout:u,onClose:o});const m=(0,P.jsxs)("div",{tabIndex:0,className:E()(t,i&&`${t}--${i}`,a&&`${t}--accent`,n),...h,ref:d,children:[r&&(0,P.jsx)("div",{className:`${t}__icon`,children:be.create(r,{intent:i})}),(0,P.jsx)("div",{className:`${t}__content`,children:s}),l&&(0,P.jsx)("div",{className:`${t}__action`,children:(0,P.jsx)(Be,{ghost:!0,icon:{name:"cross-mark",size:"12"},className:`${t}__close`,onClick:o})})]});return a?m:(0,P.jsx)(ie.Provider,{value:!0,children:m})},or={improvePassword:"To improve your password:",passwordTooShort:"Make the password longer.",lettersLowerCase:"Use at least one lower-case character.",lettersUpperCase:"Use at least one upper-case character.",numbers1:"Use at least one number.",numbers3:"Use at least three numbers.",specialChar1:"Use at least one special character (for example: !, @, #, $, % ,^, &, *, ?, _, ~).",specialChar2:"Use at least two special characters (for example: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Use both upper and lower-case characters.",comboLettersAndNumbers:"Use both numbers and characters.",comboLettersNumbersSpecial:"Use numbers, characters and special characters.",yourPasswordIsStrong:"You can make it even stronger by increasing its length.",passwordStrength:"The password strength is %%strength%%.",strengthVeryStrong:"VERY STRONG",strengthStrong:"STRONG",strengthVeryWeak:"VERY WEAK",strengthWeak:"WEAK",strengthMedium:"MEDIUM",hidePassword:"Hide password",showPassword:"Show password",generateButton:"Generate",copyButtonHint:"Copy password",copySuccessToast:"Password has been copied",generateButtonHint:"Generate a strong password"},lr={numbers1:"numbers3",specialChar1:"specialChar2",lettersLowerCase:"comboUpperAndLower",lettersUpperCase:"comboUpperAndLower"},cr=[{name:"passwordTooShort",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.passwordTooShort",fallback:or.passwordTooShort}),score:e=>e.length<5?-1:0},{name:"passwordLength",score:e=>e.length<5?3:e.length>4&&e.length<8?6:e.length>7&&e.length<16?12:18},{name:"lettersLowerCase",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.lettersLowerCase",fallback:or.lettersLowerCase}),score:e=>e.match(/[a-z]/)?1:-1},{name:"lettersUpperCase",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.lettersUpperCase",fallback:or.lettersUpperCase}),score:e=>e.match(/[A-Z]/)?5:-1},{name:"numbers1",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.numbers1",fallback:or.numbers1}),score:e=>e.match(/\d+/)?5:-1},{name:"numbers3",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.numbers3",fallback:or.numbers3}),score:e=>e.match(/(.*[0-9].*[0-9].*[0-9])/)?5:-1},{name:"specialChar1",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.specialChar1",fallback:or.specialChar1}),score:e=>e.match(/[!@#$%^&*?_~]/)?5:-1},{name:"specialChar2",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.specialChar2",fallback:or.specialChar2}),score:e=>e.match(/(.*[!@#$%^&*?_~].*[!@#$%^&*?_~])/)?5:-1},{name:"comboUpperAndLower",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.comboUpperAndLower",fallback:or.comboUpperAndLower}),score:e=>e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)?2:-1},{name:"comboLettersAndNumbers",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.comboLettersAndNumbers",fallback:or.comboLettersAndNumbers}),score:e=>e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)?2:-1},{name:"comboLettersNumbersSpecial",suggestion:(0,P.jsx)(On,{content:"FormFieldPassword.comboLettersNumbersSpecial",fallback:or.comboLettersNumbersSpecial}),score:e=>e.match(/([a-zA-Z0-9].*[!@#$%^&*?_~])|([!@#$%^&*?_~].*[a-zA-Z0-9])/)?2:-1}],ur=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cr,n=0;const s=[],i=new Set;let a;switch(t.forEach((t=>{const a=t.score(e);a>=0?n+=a:(i.add(lr[t.name]),!i.has(t.name)&&t.suggestion&&s.push(t.suggestion))})),!0){case n<16:a="VeryWeak";break;case n<25:a="Weak";break;case n<35:a="Medium";break;case n<45:a="Strong";break;default:a="VeryStrong"}return{strength:a,suggestions:s}},dr={VeryWeak:"danger",Weak:"danger",Medium:"warning",Strong:"success",VeryStrong:"success"},pr=e=>{let{value:t,visible:n,onEstimate:s,children:i,...a}=e;const[r,o]=(0,M.useState)(null);return(0,M.useEffect)((()=>{n&&Promise.resolve(s?s(t,ur,cr):ur(t)).then((e=>{o(e)}))}),[n,t,s]),(0,P.jsxs)(Fs,{visible:n&&null!==r,placement:"top-right",intent:r?dr[r.strength]:void 0,canCloseOnOutsideClick:!1,canCloseOnEscapePress:!1,...a,target:i,children:[r?.strength?(0,P.jsx)(On,{component:"div",content:"FormFieldPassword.passwordStrength",fallback:or.passwordStrength,params:{strength:(0,P.jsx)("b",{children:(0,P.jsx)(On,{content:`FormFieldPassword.strength${r?.strength}`,fallback:or[`strength${r?.strength}`]})})}}):null,r?.suggestions.length?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(On,{content:"FormFieldPassword.improvePassword",fallback:or.improvePassword}),(0,P.jsx)("br",{}),(0,P.jsx)("ul",{children:r.suggestions.slice(0,3).map(((e,t)=>(0,P.jsx)("li",{children:e},t.toString())))})]}):(0,P.jsx)(On,{content:"FormFieldPassword.yourPasswordIsStrong",fallback:or.yourPasswordIsStrong})]})},hr={upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",lower:"abcdefghijklmnopqrstuvwxyz",number:"0123456789",special:"!@#$%^&*?_~"};class mr extends M.Component{constructor(){super(...arguments),F(this,"state",{copyToastVisible:!1,visible:!1,passwordMeterVisible:!1,passwordGenerated:!1}),F(this,"targetRef",(0,M.createRef)()),F(this,"handleToggleClick",(()=>{this.setState((e=>{let{visible:t}=e;return{visible:!t}}))})),F(this,"handleClosePasswordMeter",(()=>{this.setState({passwordMeterVisible:!1})})),F(this,"handleBlur",this.handleClosePasswordMeter),F(this,"handleCopyToClipboard",(e=>{(e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)})(e),this.setState({copyToastVisible:!0})}))}renderCopyButton(e){let{value:t,isDisabled:n}=e;const{baseClassName:s,copyButton:i}=this.props,a={className:`${s}__button--copy`,icon:"copy",onClick:()=>this.handleCopyToClipboard(t),tooltip:(0,P.jsx)(On,{content:"FormFieldPassword.copyButtonHint",fallback:or.copyButtonHint}),disabled:n()};let r;return r="function"==typeof i?i(a):(0,P.jsx)(Be,{...a}),(0,P.jsxs)(M.Fragment,{children:[" ",r]})}renderGenerateButton(e){let{setValue:t,isDisabled:n}=e;const{baseClassName:s,generateButton:i}=this.props,a={className:`${s}__button--generate`,onClick:()=>{t(["upper","upper","upper","lower","lower","lower","lower","lower","lower","lower","lower","number","number","number","special","special"].sort(((e,t)=>Math.floor(t.length*Math.random())-Math.floor(e.length*Math.random()))).map((e=>hr[e][Math.floor(hr[e].length*Math.random())])).join("")),this.setState({passwordGenerated:!0})},tooltip:(0,P.jsx)(On,{content:"FormFieldPassword.generateButtonHint",fallback:or.generateButtonHint}),disabled:n(),children:(0,P.jsx)(On,{content:"FormFieldPassword.generateButton",fallback:or.generateButton})};let r;return r="function"==typeof i?i(a):(0,P.jsx)(Be,{...a}),(0,P.jsxs)(M.Fragment,{children:[" ",r]})}render(){const{baseClassName:e,className:t,hideShowButton:n,copyButton:s,generateButton:i,hideCopyButton:a,hideGenerateButton:r,hidePasswordMeter:o,passwordMeterProps:l,size:c,autoFocus:u,autoComplete:d,...p}=this.props,{visible:h,passwordMeterVisible:m}=this.state;return(0,P.jsx)(Sa,{className:E()(e,t),...p,children:t=>{let{getId:s,getName:i,getValue:p,setValue:f,isDisabled:g}=t;const b=p(""),v=(0,P.jsx)(Ss,{id:s(),name:i(),type:h?"text":"password",value:b,onChange:e=>{f(e.target.value),this.setState({passwordMeterVisible:!0})},onBlur:this.handleBlur,autoFocus:u,autoComplete:d,className:`${e}__input`,size:c,suffix:n?null:(0,P.jsx)(Be,{className:`${e}__button--show`,onClick:this.handleToggleClick,icon:h?"visible":"invisible",tooltip:h?(0,P.jsx)(On,{content:"FormFieldPassword.hidePassword",fallback:or.hidePassword}):(0,P.jsx)(On,{content:"FormFieldPassword.showPassword",fallback:or.showPassword}),ghost:!0,disabled:g()}),disabled:g(),rootProps:{ref:this.targetRef}});return(0,P.jsxs)("div",{className:E()(`${e}__control`,`${e}__control--${c}`),children:[this.state.copyToastVisible&&(0,P.jsx)("div",{className:`${e}__toast`,children:(0,P.jsx)(rr,{autoClosable:!0,onClose:()=>this.setState({copyToastVisible:!1}),icon:"check-mark-circle-filled",intent:"success",message:(0,P.jsx)(On,{content:"FormFieldPassword.copySuccessToast",fallback:or.copySuccessToast})})}),(0,P.jsx)("div",{className:E()(`${e}__field`,`${e}__field--${c}`),children:o?v:(0,P.jsx)(pr,{value:b,targetRef:this.targetRef,visible:m&&""!==b,onClose:this.handleClosePasswordMeter,...l,children:v})}),r?null:this.renderGenerateButton({setValue:f,isDisabled:g}),a||!this.state.passwordGenerated?null:this.renderCopyButton({value:b,isDisabled:g})]})}})}}F(mr,"defaultProps",{hideShowButton:!1,copyButton:void 0,generateButton:void 0,hideCopyButton:!1,hideGenerateButton:!1,hidePasswordMeter:!1,passwordMeterProps:{},size:"md",autoFocus:void 0,autoComplete:void 0,className:void 0,baseClassName:`${R.CLS_PREFIX}form-field-password`});const fr=mr,gr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}form-field-radio-buttons`,className:n,options:s,autoFocus:i,...a}=e;return(0,P.jsx)(Sa,{className:E()(t,n),...a,children:e=>{let{getId:n,getName:a,getValue:r,setValue:o,isDisabled:l}=e;return s.map(((e,s)=>{let{value:c,label:u,description:d,disabled:p,indentFields:h=[]}=e;return(0,P.jsxs)("div",{className:`${t}__radio`,children:[(0,P.jsx)(Vi,{name:a(),checked:r()===c,onChange:e=>{e&&o(c)},disabled:l()||p,inputProps:{id:n()?`${n()}-${c}`:void 0,name:a(),value:c,autoFocus:!(0!==s||!i)||void 0},children:u||c}),d||h?(0,P.jsxs)("div",{className:`${t}__content`,children:[d&&(0,P.jsx)(ca,{component:"div",className:`${ga}__description`,children:d}),h.map((e=>l()||p||r()!==c?(0,M.cloneElement)(e,{disabled:!0}):e))]}):null]},c)}))}})},br=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],vr=new Map;let yr;const xr=new Set(["sm","md","lg","xl","fill"]),_r=e=>{let{baseClassName:t=`${R.CLS_PREFIX}textarea`,className:n,rows:s=4,size:i="md",autoheight:a=!1,onChange:r,style:o,...l}=e;const c=(0,M.useRef)(null),u=i&&xr.has(i),{minRows:d,maxRows:p}=(e=>"number"==typeof e?{minRows:e}:"object"==typeof e&&"number"==typeof e.min&&"number"==typeof e.max?{minRows:e.min,maxRows:e.max}:{})(s),[h,m]=(0,M.useState)(),f=(0,M.useCallback)((()=>{a&&c.current?m(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;yr||(yr=document.createElement("textarea"),document.body.appendChild(yr)),e.getAttribute("wrap")?yr.setAttribute("wrap",e.getAttribute("wrap")):yr.removeAttribute("wrap");const{paddingSize:i,borderSize:a,boxSizing:r,sizingStyle:o}=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t&&vr.has(e))return vr.get(e);const n=window.getComputedStyle(e),s=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),r={sizingStyle:br.map((e=>`${e}:${n.getPropertyValue(e)}`)).join(";"),paddingSize:i,borderSize:a,boxSizing:s};return t&&vr.set(e,r),r}(e,t);let l,c;yr.setAttribute("style",`${o};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),yr.value=e.value||e.placeholder||"";let u,d=yr.scrollHeight;if("border-box"===r?d+=a:"content-box"===r&&(d-=i),void 0!==n||void 0!==s){yr.value=" ";const e=yr.scrollHeight-i;void 0!==n&&(l=e*n,"border-box"===r&&(l=l+i+a),d=Math.max(l,d)),void 0!==s&&(c=e*s,"border-box"===r&&(c=c+i+a),u=d>c?void 0:"hidden",d=Math.min(c,d))}return{height:d,minHeight:l,maxHeight:c,overflowY:u}}(c.current,!1,d,p)):m(void 0)}),[a,p,d]);return(0,M.useLayoutEffect)((()=>{f()}),[f]),(0,P.jsx)("textarea",{ref:c,className:E()(t,{[`${t}--size-${i}`]:u},n),style:{...o,...h},onChange:e=>{a&&f(),"function"==typeof r&&r(e)},rows:d,...l})},Sr=e=>{const{baseClassName:t=`${R.CLS_PREFIX}form-field-text`,className:n,size:s,placeholder:i,rows:a=4,autoFocus:r,multiline:o=!1,autoComplete:l,autoheight:c=!1,inputProps:u,...d}=e;return(0,P.jsx)(Sa,{className:E()(t,{[`${t}--multiline`]:o},n),...d,children:n=>{let{getId:o,getName:u,getValue:d,setValue:p,isDisabled:h}=n;return e.multiline?(0,P.jsx)(_r,{id:o(),name:u(),value:d(""),onChange:e=>p(e.currentTarget.value),disabled:h(),size:s,rows:a,placeholder:i,autoFocus:r,autoComplete:l,autoheight:c,...e.inputProps??{}}):(0,P.jsx)(Ss,{id:o(),name:u(),className:`${t}__input`,value:d(""),onChange:e=>p(e.currentTarget.value),disabled:h(),size:s,placeholder:i,autoFocus:r,autoComplete:l,...e.inputProps??{}})}})},wr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}combobox-dropdown`,className:n,control:s,controlRef:i,opened:a,disabled:r,groups:o,options:l,onHighlightedIndexChange:c,onClose:u,value:d,highlightedIndex:p,onSelect:h,noOptions:m,emitter:f,...g}=e;const b=(0,M.useRef)(null),v=(0,M.useRef)(null),[y,x]=(0,M.useState)(0);(0,M.useLayoutEffect)((()=>{if(a&&b.current){const{width:e}=b.current.getBoundingClientRect();e!==y&&x(e)}}),[a,y]),(0,M.useEffect)((()=>{if(!a)return;const e=()=>{z(u)};return window.addEventListener("resize",e,{once:!0}),()=>window.removeEventListener("resize",e)}),[a,u]),(0,M.useEffect)((()=>{f&&f.on("focus",(e=>{if(v.current){const t=v.current.querySelector(`[data-index="${e}"]`);t&&X(t,{behavior:"instant",block:"nearest",boundary:v.current})}}))}),[f]);const _=(0,P.jsx)(ft,{onClose:()=>{setTimeout((()=>{z(u)}),0)},ignoreNodes:()=>[v.current],nodeRef:i,children:s});return(0,P.jsx)("div",{className:n,...g,ref:b,children:(0,P.jsx)(yn,{target:_,targetRef:i,show:a&&!r,className:`${t}__popper`,zIndex:R.Z_INDEX_DROPDOWN,children:(0,P.jsxs)(qs,{style:{minWidth:y},ref:v,className:`${t}__menu`,children:[o.reduce(((e,n)=>(n.label&&e.push((0,M.createElement)(oi,{...n.props,key:`group_${n.label}`},n.label)),n.options.forEach((n=>{const s=l.indexOf(n);let i,a,r;n.disabled||(i=e=>{e.preventDefault(),z(h,n.value)},a=()=>{z(c,s)},r=e=>{e.preventDefault()});const o={...n.props,active:d===n.value,className:E()(`${t}__option`,{[`${t}__option--selected`]:s===p}),disabled:n.disabled,onClick:i,onMouseOver:a,onMouseDown:r,"data-index":s};e.push((0,P.jsx)(Sn,{...o,children:n.children},`option_${n.value}`))})),e)),[]),0===l.length&&m&&(0,P.jsx)(Sn,{disabled:!0,className:`${t}__no-options`,children:m})]})})})},kr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}select-multi-value`,onRemove:n,children:s,...i}=e;return(0,P.jsx)("div",{className:E()(t),...i,children:(0,P.jsxs)("div",{className:`${t}__content`,children:[(0,P.jsx)("span",{className:`${t}__label`,children:s}),(0,P.jsx)(be,{className:`${t}__remove`,size:"12",onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),n()},children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",focusable:"false","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1 .704.704L6.704 6l2.15 2.15a.498.498 0 0 1-.704.704L6 6.704l-2.15 2.15z"})})})]})})};let jr;const Tr=(0,M.forwardRef)((function(e,t){let{baseClassName:n=`${R.CLS_PREFIX}select-control`,id:s,name:i,current:a,disabled:r,searchable:o,clearable:l,multiple:c,filterValue:u,onFilterChange:d,onHighlightChange:p,onHighlightConfirm:h,onHighlightSearch:m,onOpen:f,onClose:g,onClear:b,onValueRemove:v,placeholder:y,...x}=e;const _=(0,M.useRef)(null),S=(0,M.useRef)(""),w=(0,M.useRef)(0),[k,j]=(0,M.useState)(2),[T,C]=(0,M.useState)(!1),D=Pn();void 0===y&&(y=D("Select.placeholder",void 0,"Select..."));let O=[];Array.isArray(a)?O=a.map((e=>{let{value:t}=e;return t})):a&&(O=[a.value]);const I=O.length>0;(0,M.useLayoutEffect)((()=>{""===u&&j(2)}),[u]);const L=e=>{v(e)};return(0,P.jsxs)("div",{className:E()(n,{[`${n}--disabled`]:r,[`${n}--focused`]:T,[`${n}--multiple`]:c}),...x,onClick:()=>{r||(f(),_.current&&_.current.focus())},ref:t,children:[(0,P.jsxs)("span",{className:`${n}__value-container`,children:[Array.isArray(a)&&a.map((e=>{let{value:t,label:n}=e;return(0,P.jsx)(kr,{onRemove:()=>L(t),children:n},t)})),(0,P.jsx)("input",{id:s,className:`${n}__input`,value:u,type:"text",onChange:e=>{const t=(e=>{jr||(jr=document.createElement("pre"),document.body.appendChild(jr));const t=window.getComputedStyle(e);jr.style.fontFamily=t.fontFamily,jr.style.fontSize=t.fontSize,jr.style.padding="0",jr.style.display="inline-block",jr.style.width="auto",jr.style.position="absolute",jr.style.right="0",jr.style.top="-9999px",jr.style.visibility="hidden",jr.textContent=e.value;const{width:n}=jr.getBoundingClientRect();return n||2})(e.target);j(t),d(e.target.value)},onKeyDown:e=>{switch(e.key){case"ArrowUp":e.preventDefault(),p(-1);break;case"ArrowDown":e.preventDefault(),p(1);break;case"PageUp":e.preventDefault(),p(-10);break;case"PageDown":e.preventDefault(),p(10);break;case"Enter":e.preventDefault(),h();break;case"Escape":e.preventDefault(),d(""),g();break;case"Backspace":""===u&&(c||l)&&L();break;default:o||1!==e.key.length||(S.current+=e.key,m(S.current),window.clearTimeout(w.current),w.current=window.setTimeout((()=>{S.current=""}),1e3))}},onFocus:()=>{C(!0)},onBlur:()=>{C(!1)},onClick:e=>{0===e.detail&&e.stopPropagation()},readOnly:!o,disabled:r,ref:_,style:{width:k}}),!u&&(0,P.jsxs)(M.Fragment,{children:[!Array.isArray(a)&&a&&(0,P.jsx)("span",{className:`${n}__value`,children:a.children}),!I&&y&&(0,P.jsx)("span",{className:`${n}__placeholder`,children:y})]})]}),(0,P.jsxs)("span",{className:`${n}__indicators`,children:[l&&I&&(0,P.jsx)("button",{type:"button",className:E()(`${n}__indicator`,`${n}__indicator--clear`),tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),b()},children:(0,P.jsx)(be,{className:`${n}__indicator-icon`,children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-4 -4 16 16","aria-hidden":"true",focusable:"false",children:(0,P.jsx)("path",{d:"M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1 .704.704L4.704 4l3.15 3.15a.498.498 0 0 1-.704.704L4 4.704.85 7.854z"})})})}),(0,P.jsx)("button",{type:"button",className:E()(`${n}__indicator`,`${n}__indicator--dropdown`),tabIndex:-1,children:(0,P.jsx)(be,{className:`${n}__indicator-icon`,children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-4 -5 16 16","aria-hidden":"true",focusable:"false",children:(0,P.jsx)("path",{d:"M4 4.048L.847.895a.496.496 0 1 0-.702.702l3.452 3.451a.5.5 0 0 0 .806 0l3.452-3.451a.496.496 0 0 0-.702-.702L4 4.048z"})})})})]}),i&&O.map((e=>(0,P.jsx)("input",{type:"hidden",name:i,value:e},e)))]})}));Tr.displayName="SelectControl";const Cr=Tr,Dr=e=>null,Pr=e=>null,Or=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const s=[];return M.Children.forEach(e,(e=>{if(!(0,M.isValidElement)(e)||e.type!==Dr&&"optgroup"!==e.type){if((0,M.isValidElement)(e)&&(e.type===Pr||"option"===e.type)){let s,{value:i,label:a,disabled:r,children:o,...l}=e.props;if("string"!=typeof i&&"number"!=typeof i){if("string"!=typeof o||!o)throw new Error("The value can only be a number or a string.");i=o}if(a&&"string"==typeof a?({label:s}=e.props):"string"==typeof e.props.children&&(s=e.props.children),!s)throw new Error("The label can only be a string.");const c={value:i,label:s,children:o,disabled:Boolean(r),group:n,props:l};t.push(c),n&&n.options.push(c)}}else{const{label:n,children:i,...a}=e.props,r={label:String(n),options:[],props:a};s.push(r),Or(i,t,r)}})),0===s.length&&s.push({options:t}),{groups:s,options:t}},Ir=(e,t)=>Array.isArray(t)?[...t,e]:e,Mr=e=>{let{id:t,name:n,size:s,baseClassName:i=`${R.CLS_PREFIX}select`,className:a,children:r,defaultValue:o,value:l,onChange:c,disabled:u=!1,searchable:d=!1,clearable:p=!1,multiple:h=!1,placeholder:m,...f}=e;const[g,b]=(0,M.useState)(!1),v=(0,M.useRef)(null),y=(0,M.useRef)(new Q);let[x,_]=(0,M.useState)((()=>void 0===o?h?[]:void 0:o));void 0!==l&&(x=l,_=()=>{});const[S,w]=(0,M.useState)(""),[k,j]=(0,M.useState)(0);let T,{groups:C,options:D}=Or(r);if(Array.isArray(x)){const e=[];x.forEach((t=>{const n=D.find((e=>e.value===t));n&&e.push(n)})),T=e}else{const e=D.find((e=>e.value===x));T=e}const O=[],I=[];function L(e){return t=>e.every((e=>e(t)))}if(Array.isArray(x)&&x.length>0){const e=x;O.push((()=>!1)),I.push((t=>-1===e.indexOf(t.value)))}if(S){const e=S.toLowerCase();O.push((t=>!!t.label&&t.label.toLowerCase().includes(e))),I.push((t=>t.label.toLowerCase().includes(e)))}if(O.length||I.length){const e=L(O),t=L(I);D=[],C=C.filter((n=>e(n)?(D=[...D,...n.options],!0):(n.options=n.options.filter((e=>!!t(e)&&(D.push(e),!0))),n.options.length>0)))}k&&k>D.length-1&&j(0);const A=e=>{y.current.emit("focus",e)},U=e=>{if(!g&&void 0===e)return;const t=D[void 0===e?k:e];if(!t)return;if(t.disabled)return;const n=Ir(t.value,x);_(n),w(""),h||F(),z(c,n)},N=()=>{b(!0)},F=()=>{b(!1),j(0)},Y=(0,P.jsx)(Cr,{id:t,name:n,current:T,filterValue:S,searchable:d,clearable:p,multiple:h,disabled:u,onFilterChange:e=>{N(),w(e)},onHighlightChange:e=>{if(!g)return void N();const t=((e,t,n)=>{const s=n.length-1;let i=0;for(let a=e+t;i<n.length;a+=t)if(i+=1,a>s?a=0:a<0&&(a=s),n[a]&&!1===n[a].disabled)return a;return-1})(k,e,D);-1!==t&&(j(t),A(t))},onHighlightConfirm:U,onHighlightSearch:e=>{const t=e.toLowerCase(),n=D.findIndex((e=>!e.disabled&&e.label.toLowerCase().includes(t)));-1!==n&&(j(n),A(n),g||U(n))},onOpen:N,onClose:F,onClear:()=>{const e=Array.isArray(x)?[]:void 0;w(""),_(e),z(c,e)},onValueRemove:e=>{if(Array.isArray(x)){let t;void 0===e?(t=[...x],t.pop()):t=x.filter((t=>t!==e)),_(t),z(c,t)}else _(void 0),z(c,void 0)},placeholder:m,ref:v});return(0,P.jsx)(wr,{className:E()(i,a,{[`${i}--size-${s}`]:s}),control:Y,controlRef:v,opened:g&&!u,disabled:u,groups:C,options:D,onSelect:e=>{const t=Ir(e,x);_(t),w(""),h||F(),z(c,t)},highlightedIndex:k,onHighlightedIndexChange:e=>{j(e)},onClose:F,noOptions:(0,P.jsx)(On,{content:"Select.noOptions",fallback:"No options"}),emitter:y.current,value:x,...f})},Lr=e=>{let{size:t,baseClassName:n=`${R.CLS_PREFIX}form-field-select`,className:s,children:i,searchable:a,clearable:r,multiple:o,placeholder:l,...c}=e;return(0,P.jsx)(Sa,{className:E()(n,s),...c,children:e=>{let{getId:n,getName:s,setValue:c,getValue:u,isDisabled:d}=e;return(0,P.jsx)(Mr,{size:t,id:n(),name:s(),value:u(o?[]:void 0),onChange:c,disabled:d(),searchable:a,clearable:r,multiple:o,placeholder:l,children:i})}})},Ar=e=>{let{children:t,baseClassName:n=`${R.CLS_PREFIX}item`,component:s,view:i="simple",className:a,icon:r,title:o,description:l,footer:c,value:u,tooltip:d,disabled:p,hoverable:h,...m}=e;const f=s||"div";m.onClick&&(p?m.onClick=e=>e.preventDefault():(m.tabIndex=0,m.onKeyDown=q(m.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())}))));const g=(0,P.jsxs)(f,{className:E()(n,{[`${n}--card`]:"card"===i,[`${n}--disabled`]:p,[`${n}--hoverable`]:h},a),...m,children:[(0,P.jsxs)(hi,{image:r?"string"==typeof r?be.create({},{size:le,[-1===se.indexOf(r)?"src":"name"]:r}):be.create(r,{size:le}):null,title:(()=>{if(!o)return null;let e=!1;return"string"==typeof o?(o=(0,P.jsx)("span",{children:o}),e=!0):"object"!=typeof o||(0,M.isValidElement)(o)||(o=(0,P.jsx)("a",{...o}),e=!0),e&&"card"===i&&(o=(0,P.jsx)(Ds,{level:3,children:o})),(0,M.isValidElement)(o)&&(o=(0,M.cloneElement)(o,{className:E()(`${n}__title`,o.props.className)})),o})(),className:`${n}__media`,children:[l&&(0,P.jsx)("div",{className:`${n}__description`,children:l}),M.Children.toArray(t).length?(0,P.jsx)("div",{className:`${n}__content`,children:t}):null]}),c&&(0,P.jsx)("footer",{className:`${n}__footer`,children:c})]});return d?K((e=>(0,P.jsx)(Oe,{title:d,children:(0,M.cloneElement)(g,e)}))):g};class Er extends M.Component{constructor(e){super(e),F(this,"createItemProps",(e=>{const{baseClassName:t,selectable:n,onSelect:s,reorderable:i,hoverable:a}=this.props,r=[`${t}__item`],o={};if(n&&void 0!==e.props.value){const{value:i}=this.state,a=e.props.value;(Array.isArray(i)&&-1!==i.indexOf(a)||i===a)&&r.push(`${t}__item--selected`),o.onClick=t=>{z(e.props.onClick,t);const r=((e,t,n)=>Array.isArray(t)?-1!==t.indexOf(e)?n?t.filter((t=>t!==e)):t:[...t,e]:n&&t===e?null:e)(a,i,"toggleable"===n||"multiple"===n);this.setState({value:r}),z(s,r)}}return void 0===e.props.hoverable&&(o.hoverable=a&&this.canManageHoverableState()),i&&r.push(`${t}__item--reorderable`),r.push(e.props.className),o.className=E()(...r),o})),this.state={ReorderableGrid:null,ReorderableGridCol:null,value:void 0===e.defaultValue?null:e.defaultValue}}static getDerivedStateFromProps(e,t){let{selectable:n,value:s}=e;if(n){const e="multiple"===n,i=e?[]:null,a=void 0===s?t.value:s;return e&&!Array.isArray(a)?a?{value:[a]}:{value:i}:!e&&Array.isArray(a)?a[0]?{value:a[0]}:{value:i}:{value:a}}return null}componentDidMount(){const{reorderable:e}=this.props;e&&r.e(204).then(r.bind(r,80997)).then((e=>{let{sortableContainer:t,sortableElement:n}=e;this.setState({ReorderableGrid:t(ai),ReorderableGridCol:n(ri)})}))}renderNormal(e){let{baseClassName:t,children:n,onSelect:s,...i}=e;return(0,P.jsx)(ai,{...i,children:M.Children.map(n,(e=>(0,M.isValidElement)(e)?(0,P.jsx)(ri,{className:E()(`${t}__col`),children:(0,M.cloneElement)(e,this.createItemProps(e))}):null))})}someChild(e){let t=!1;return M.Children.forEach(this.props.children,(n=>{n&&e(n)&&(t=!0)})),t}canManageHoverableState(){const{reorderable:e,selectable:t}=this.props;return!e&&!t}isHoverable(){return!!this.canManageHoverableState()&&(this.props.hoverable||this.hasHoverableCard())}hasViewCard(){return this.someChild((e=>e.props&&"card"===e.props.view))}hasHoverableCard(){return this.someChild((e=>e.props&&!!e.props.hoverable))}renderReorderable(e){let{baseClassName:t,onReorderEnd:n,children:s,...i}=e;const{ReorderableGrid:a,ReorderableGridCol:r}=this.state;if(!a)return null;const o=E()({[`${t}__col--gap-xs`]:"xs"===i.gap,[`${t}__col--gap-sm`]:"sm"===i.gap,[`${t}__col--gap-md`]:"md"===i.gap,[`${t}__col--gap-lg`]:"lg"===i.gap,[`${t}__col--gap-xl`]:"xl"===i.gap});return(0,P.jsx)(a,{axis:"xy",helperClass:o,onSortEnd:n,disableAutoscroll:!0,...i,children:M.Children.map(s,((e,n)=>{if((0,M.isValidElement)(e)){const{disabled:s}=e.props;return(0,P.jsx)(r,{index:n,className:E()(`${t}__col`),disabled:s,children:(0,M.cloneElement)(e,this.createItemProps(e))})}return null}))})}render(){const{className:e,reorderable:t,hoverable:n,stretchable:s,selectable:i,onSelect:a,value:r,defaultValue:o,onReorderEnd:l,...c}=this.props;return(0,P.jsx)("div",{className:E()(this.props.baseClassName,{[`${this.props.baseClassName}--hoverable`]:this.isHoverable(),[`${this.props.baseClassName}--stretchable`]:s,[`${this.props.baseClassName}--selectable`]:i,[`${this.props.baseClassName}--cards`]:this.hasViewCard()},e),children:t?this.renderReorderable({onReorderEnd:l,...c}):this.renderNormal(c)})}}F(Er,"defaultProps",{hoverable:!0,stretchable:!1,reorderable:!1,selectable:!1,baseClassName:`${R.CLS_PREFIX}item-list`});const Rr=Er;var Ur=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Nr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((s=e[n])===(i=t[n])||Ur(s)&&Ur(i)))return!1;var s,i;return!0}function Fr(e,t){void 0===t&&(t=Nr);var n=null;function s(){for(var s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];if(n&&n.lastThis===this&&t(s,n.lastArgs))return n.lastResult;var a=e.apply(this,s);return n={lastResult:a,lastArgs:s,lastThis:this},a}return s.clear=function(){n=null},s}const Yr=(e,t,n)=>{void 0===t&&(t="filtered"===n?"/modules/wp-toolkit/images/filtered.png":"/modules/wp-toolkit/images/default.png");let s=t;return"string"==typeof t&&(s=(0,P.jsx)("img",{src:t,height:"192",alt:"banner"})),s?(0,P.jsx)("div",{className:`${e}__image`,children:s}):null},Hr=(e,t,n)=>(void 0===t&&(t="filtered"===n?(0,P.jsx)(On,{content:"ListEmptyView.filteredTitle",fallback:"Could not find any items matching the filter"}):(0,P.jsx)(On,{content:"ListEmptyView.emptyTitle",fallback:"Looks like there's nothing here"})),(0,P.jsx)(Ds,{level:3,className:`${e}__title`,children:t})),Br=(e,t,n)=>void 0!==t||n?(void 0===t&&"filtered"===n&&(t=(0,P.jsx)(On,{content:"ListEmptyView.filteredDescription",fallback:"Refine your query or remove some of the criteria from the filter and try again."})),(0,P.jsx)("div",{className:`${e}__description`,children:t})):null,Vr=Ee({defaultProps:{size:"lg"}}),$r=e=>{let{baseClassName:t=`${R.CLS_PREFIX}list-empty-view`,className:n,title:s,image:i,description:a,actions:r,reason:o,...l}=e;return(0,P.jsxs)("div",{className:E()(t,n),...l,children:[Yr(t,i,o),(0,P.jsxs)("div",{className:`${t}__body`,children:[Hr(t,s,o),Br(t,a,o),r&&(0,P.jsx)("div",{className:`${t}__actions`,children:(0,P.jsx)(Ae.Provider,{value:Vr,children:r})})]})]})};var Wr=M.createContext({hadKeyboardEvent:!0,isInitialized:!1});function zr(e){var t=(0,M.useState)(!0),n=t[0],s=t[1];return(0,M.useEffect)((function(){function e(){s(!1)}function t(e){var t,n=null==e?void 0:e.target;"html"!==(null==n||null===(t=n.nodeName)||void 0===t?void 0:t.toLowerCase())&&(s(!1),i())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function i(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function a(e){e.metaKey||e.altKey||e.ctrlKey||s(!0)}function r(e){"hidden"===document.visibilityState&&(s(!0),n())}return document.addEventListener("keydown",a,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",r,!0),n(),function(){document.removeEventListener("keydown",a,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",r,!0),i()}}),[s]),M.createElement(Wr.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},e.children)}function qr(e,t){const{rowKey:n}=t;return"function"==typeof n?n(e):e[n]}const Gr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}list__wrapper`,className:n,...s}=e;const{focusVisible:i,onFocus:a,onBlur:r}=(l=(o=(0,M.useState)(!1))[0],c=o[1],d=(u=(0,M.useContext)(Wr)).hadKeyboardEvent,{focusVisible:u.isInitialized?d&&l:l,onFocus:function(){c(!0)},onBlur:function(){c(!1)}});var o,l,c,u,d;return(0,P.jsx)("tbody",{...s,onFocus:q(s.onFocus,a),onBlur:q(s.onBlur,r),className:E()(n,{[`${t}--focus-visible`]:i})})},Kr=e=>{let t,{selectedRows:n,totalRows:s,allRowsSelected:i,translators:a}=e;t=i||0!==n?i||n===s?"selectedAllRows":"selectedRows":"totalRows";const r=e=>(0,P.jsx)(ei,{fontSize:"sm",children:e});switch(t){case"totalRows":return r((0,P.jsx)(On,{namespace:"List",content:"totalRows",fallback:"%%totalRows%% items total",params:{totalRows:s},translators:a}));case"selectedRows":return r((0,P.jsx)(On,{namespace:"List",content:"selectedRows",fallback:"%%selectedRows%% of %%totalRows%% items selected",params:{selectedRows:(0,P.jsx)(ei,{bold:!0,children:n}),totalRows:s},translators:a}));case"selectedAllRows":return r((0,P.jsx)(On,{namespace:"List",content:"selectedRows",fallback:"%%selectedRows%% of %%totalRows%% items selected",params:{selectedRows:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(On,{namespace:"List",content:"all",fallback:"All",translators:a})}),totalRows:s},translators:a}));default:return null}};class Xr extends M.Component{constructor(){super(...arguments),F(this,"state",{sortInPlace:!this.props.pagination,vertical:!1,expandedRows:this.props.expandedRows??[],ReorderableList:void 0,reorderableItemWidths:[],prevExpandedRows:this.props.expandedRows??[],sortColumn:void 0,prevSortColumn:void 0,sortDirection:void 0,prevSortDirection:void 0,selection:this.props.selection??[],prevSelection:this.props.selection??[],prevData:[],prevPagination:void 0}),F(this,"needScroll",!1),F(this,"anchorRef",(0,M.createRef)()),F(this,"flatData",(e=>e.reduce(((e,t)=>{const{data:n}=t,{virtual:s}=this.getRowProps(t);return s?[...e,...n?this.flatData(n):[]]:[...e,t,...n?this.flatData(n):[]]}),[]))),F(this,"handleRowSelectionChange",((e,t)=>{const{onAllRowsSelectedChange:n}=this.props;let s;e?(s=this.state.selection.slice(),s.push(t)):(s=this.state.selection.filter((e=>e!==t)),z(n,!1)),this.setSelection(s)})),F(this,"handleGlobalSelectionChange",(e=>{const{onAllRowsSelectedChange:t,data:n}=this.props,{selection:s}=this.state,i=[];this.flatData(n??[]).forEach((t=>{const n=qr(t,this.props);t.disabled||this.isRowLoading(t)?-1!==s.indexOf(n)&&i.push(n):e&&i.push(n)})),e||z(t,!1),this.setSelection(i)})),F(this,"handleResize",(e=>{let{bounds:t}=e;t&&this.props.vertical&&this.setState({vertical:"boolean"==typeof this.props.vertical?this.props.vertical:t.width<this.props.vertical})})),F(this,"isRowLoading",(e=>-1!==this.props.loadingRows?.indexOf(qr(e,this.props)))),F(this,"getRowTitle",(e=>{const{columns:t}=this.props,n=t.find((e=>"title"===e.type));if(n&&n.key)return e[n.key]})),F(this,"getRowProps",(e=>{const{rowProps:t}=this.props;return"function"==typeof t?{...t(e)}:{...t}})),F(this,"isAllRowsChecked",Fr(((e,t)=>{const n=this.flatData(e).filter((e=>!e.disabled));return n.length>0&&n.every((e=>{const n=qr(e,this.props);return-1!==t.indexOf(n)}))}))),F(this,"isAnyRowsExpanded",Fr(((e,t)=>this.flatData(e).some((e=>{const n=qr(e,this.props);return-1!==t.indexOf(n)}))))),F(this,"handleGlobalExpandingChange",(()=>{const{data:e}=this.props,{expandedRows:t}=this.state,n=this.isAnyRowsExpanded(e,t),s=[];this.flatData(e??[]).forEach((e=>{const i=qr(e,this.props);this.isRowExpandable(e)?n||s.push(i):-1!==t.indexOf(i)&&s.push(i)})),this.setExpandedRows(s)})),F(this,"createRowClickHandler",(e=>t=>{G(t)||this.isRowExpandable(e)&&this.handleRowExpandingChange(e)}))}static getDerivedStateFromProps(e,t){let{sortColumn:n,sortDirection:s,selection:i,expandedRows:a,notExpandableRows:r,renderRowBody:o,data:l,pagination:c,vertical:u,rowKey:d,totalRows:p,filtered:h}=e,{prevSortColumn:m,prevSortDirection:f,prevData:g,prevSelection:b,prevPagination:v,prevExpandedRows:y,...x}=t,_={};m===n&&f===s||(_={..._,sortColumn:n,sortDirection:s});const S=[];if(g!==l){const e=()=>l&&x.expandedRows.includes(qr(l[0],{rowKey:d}));if(o&&1===l?.length&&(!c||1===p)&&(!g||0===g?.length||e())&&(!h||e())){const e=qr(l[0],{rowKey:d});-1===r?.indexOf(e)&&S.push(e)}const t=(l??[]).map((e=>qr(e,{rowKey:d}))),n=x.selection.filter((e=>-1!==t.indexOf(e)));_={..._,selection:n}}return b!==i&&(_={..._,selection:i??[]}),(y!==a||S.length)&&(_={..._,expandedRows:[...a??[],...S]}),v!==c&&(_={..._,sortInPlace:!c}),"boolean"==typeof u&&(_.vertical=u),_.prevSortColumn=n,_.prevSortDirection=s,_.prevData=l,_.prevSelection=i,_.prevPagination=c,_.prevExpandedRows=a,_}componentDidMount(){this.props.reorderable&&this.applyReorderableList()}componentDidUpdate(e){const{data:t}=this.props,{data:n}=e;t!==n&&this.needScroll&&this.anchorRef.current&&(X(this.anchorRef.current,{scrollMode:"if-needed"}),this.needScroll=!1),e.reorderable!==this.props.reorderable&&this.props.reorderable&&this.applyReorderableList()}applyReorderableList(){r.e(213).then(r.t.bind(r,64171,23)).then((e=>{let{List:t}=e;this.setState({ReorderableList:t})}))}getData(){const{sortInPlace:e,sortColumn:t,sortDirection:n}=this.state,{data:s,columns:i}=this.props;if(!s)return[];if(!e)return s;const[a]=i.filter((e=>{let{key:n}=e;return n===t}));return a&&t?s.sort(((e,s)=>(a.sort?a.sort(e,s):((e,t)=>e>t?1:e<t?-1:0)(e[t],s[t]))*("ASC"===n?1:-1))):s}sort(e){const{sortInPlace:t}=this.state,{sortColumn:n,sortDirection:s}=this.state,i=n===e&&"ASC"===s?"DESC":"ASC",a=e;t&&this.setState({sortColumn:a,sortDirection:i}),this.props.onSortChange&&this.props.onSortChange({sortColumn:a,sortDirection:i})}isRowSelected(e){return-1!==this.state.selection.indexOf(qr(e,this.props))}setSelection(e){this.setState({selection:e}),this.props.onSelectionChange&&this.props.onSelectionChange(e.slice())}isRowExpanded(e){return-1!==this.state.expandedRows.indexOf(qr(e,this.props))}isRowExpandable(e){const{virtual:t}=this.getRowProps(e);return!t&&-1===this.props.notExpandableRows?.indexOf(qr(e,this.props))}handleRowExpandingChange(e){let t;const n=qr(e,this.props);this.isRowExpanded(e)?t=this.state.expandedRows.filter((e=>e!==n)):(t=this.state.expandedRows.slice(),t.push(n)),this.setExpandedRows(t)}setExpandedRows(e){this.setState({expandedRows:e}),z(this.props.onExpandedRowsChange,e.slice())}renderRow(e){let{row:t,index:n,hasTitle:s,realColumn:i,parent:a,isDragged:r,reorderableProps:o}=e;const{baseClassName:l,renderRowBody:c,reorderable:u}=this.props,{vertical:d,reorderableItemWidths:p}=this.state,h=i.some((e=>{let{type:t}=e;return"actions"===t})),{className:m,virtual:f,...g}=this.getRowProps(t);let b=0;const v=u&&!a?Gr:M.Fragment,y=(0,M.createElement)(v,{...v!==Gr||r?void 0:o,key:qr(t,this.props)},(0,P.jsx)("tr",{className:E()({"is-selected":this.isRowSelected(t),[`${l}__row--expanded`]:this.isRowExpanded(t),[`${l}__row--expandable`]:c&&this.isRowExpandable(t),[`${l}__row--parent`]:t.data,[`${l}__row--virtual`]:f,[`${l}__row--child`]:a,[`${l}__row--reorderable`]:u,[`${l}__row--${t.intent}`]:t.intent},m),...g,onClick:c?this.createRowClickHandler(t):void 0,children:i.map(((e,n)=>{let i,{key:o,title:c,render:u,width:m,cellProps:f,truncate:g,type:v}=e;if(b>0)return b-=1,null;s||!m||d||(i={width:m}),r&&p&&(i={width:p[n]});let y=u?u(t,{parent:a}):t[o];if(y&&y.children&&!(0,M.isValidElement)(y)){const{children:e,...t}=y;y=e,f={...f,...t},t.colSpan&&(b+=t.colSpan-1)}const x=!c&&!y;if(g&&(y=(0,P.jsx)("div",{className:`${l}__truncate`,children:(0,P.jsx)(ei,{truncate:!0,children:y})})),d){const e="internal"!==v&&"actions"!==v&&"title"!==v&&c;x||"internal"===v||(y=(0,P.jsxs)(P.Fragment,{children:[e&&(0,P.jsx)("div",{className:`${l}__cell-inner-title`,children:c}),(0,P.jsx)("div",{className:`${l}__cell-inner-content`,children:y})]})),"actions"===v&&(y=(0,P.jsx)(zi.Provider,{value:!0,children:y}))}return"reorderable"===o&&"internal"===v&&a&&(y=null),(0,P.jsx)("td",{style:i,...f,className:E()(f&&f.className,{[`${l}__cell-controls`]:"controls"===v,[`${l}__cell-actions`]:"actions"===v,[`${l}__cell-title`]:"title"===v,[`${l}__cell-has-actions`]:"title"===v&&h})||void 0,children:y},o)}))}),c&&!f&&this.renderRowBody({row:t,index:n,realColumn:i,parent:a}),t.data?t.data.map(((e,n)=>this.renderRow({row:e,index:n,hasTitle:s,realColumn:i,parent:t}))):null);return r?(0,P.jsx)("div",{className:E()(l,`${l}--dragged`),...o,children:(0,P.jsx)("table",{className:E()(`${l}__table`,`${l}__table--reorderable`,{[`${l}--expandable`]:c,[`${l}__table--vertical`]:d}),children:y})}):y}renderRowBody(e){let{row:t,index:n,realColumn:s,parent:i}=e;const{baseClassName:a,renderRowBody:r}=this.props,{vertical:o}=this.state;if(!r)return null;const l=s.find((e=>{let{key:t}=e;return"reorderable"===t})),c=s.find((e=>{let{key:t}=e;return"expander"===t})),u=this.isRowExpanded(t),d=(0,M.createRef)();return(0,P.jsx)(ct,{in:u,unmountOnExit:!0,timeout:{enter:0,exit:300},classNames:`${a}__row-body-`,nodeRef:d,children:e=>(0,P.jsxs)("tr",{className:`${a}__row-body`,ref:d,children:[l?(0,P.jsx)("td",{className:`${a}__cell-reorderable`}):null,c?(0,P.jsx)("td",{className:`${a}__cell-expander`}):null,(0,P.jsx)("td",{colSpan:s.length-(l?1:0)-(c?1:0),className:`${a}__cell-body`,children:(0,P.jsx)("div",{className:`${a}__row-body-content-wrapper`,children:(0,P.jsx)("div",{className:`${a}__row-body-content ${a}__row-body-content--${e}`,children:(0,P.jsx)(zi.Provider,{value:o,children:r(t,{index:n,parent:i})})})})})]})})}renderSelectAllButton(){const{allRowsSelected:e,totalRows:t,onAllRowsSelectedChange:n,onSelectionChange:s,locale:i}=this.props,{selection:a}=this.state;return e||a.length===t||!s?null:(0,P.jsx)(Be,{ghost:!0,onClick:()=>{this.handleGlobalSelectionChange(!0),z(n,!0)},children:(0,P.jsx)(On,{namespace:"List",content:"selectAll",fallback:"Select all",translators:i})})}renderDeselectAllButton(){const{allRowsSelected:e,onAllRowsSelectedChange:t,onSelectionChange:n,locale:s}=this.props,{selection:i}=this.state;return!e&&0===i.length||!n?null:(0,P.jsx)(Be,{ghost:!0,onClick:()=>{this.handleGlobalSelectionChange(!1),z(t,!1)},children:(0,P.jsx)(On,{namespace:"List",content:"deselectAll",fallback:"Deselect",translators:s})})}renderToolbar(){const{toolbar:e,allRowsSelected:t,totalRows:n,data:s,locale:i}=this.props,{selection:a}=this.state;let r;if(1===a.length){const e=this.flatData(s).find((e=>qr(e,this.props)===a[0]));e&&(r=this.getRowTitle(e))}if(!e)return null;const o={selectedRows:t?n||(0,P.jsx)(On,{namespace:"List",content:"all",fallback:"all",translators:i}):a.length,selectedRowTitle:r};return(0,P.jsx)(pi.Provider,{value:o,children:e})}shouldBePagination(){const{totalRows:e,pagination:t}=this.props;if(!t||!e)return!1;if(e&&(0,M.isValidElement)(t)){const{itemsPerPageOptions:n=ti}=t.props;if(Array.isArray(n)){const t=n.filter(Number);if(t.length&&e<=Math.min(...t))return!1}}return!0}renderHeader(){const{baseClassName:e,allRowsSelected:t,totalRows:n,locale:s}=this.props,{selection:i}=this.state,a=this.shouldBePagination();return void 0!==n||a?(0,P.jsxs)("div",{className:`${e}__header`,children:[void 0===n?(0,P.jsx)("span",{}):(0,P.jsxs)("span",{children:[(0,P.jsx)("span",{className:`${e}__header-text`,children:Kr({selectedRows:i.length,totalRows:n,allRowsSelected:t,translators:s})}),(0,P.jsxs)("span",{className:`${e}__header-buttons`,children:[this.renderSelectAllButton(),this.renderDeselectAllButton()]})]}),a&&(0,P.jsx)("div",{className:`${e}__header-text`,children:this.renderPagination("header")})]}):null}renderEmptyView(){const{emptyView:e,filtered:t}=this.props;return void 0===e?t?(0,P.jsx)($r,{reason:"filtered"}):(0,P.jsx)($r,{}):e}renderPagination(e){const{pagination:t,loading:n}=this.props;if(!t)return null;const s={loading:n};switch(e){case"header":s.view="popover";break;case"footer":s.onSelect=e=>{this.needScroll=!0,z(t.props.onSelect,e)},t.props.onItemsPerPageChange&&(s.onItemsPerPageChange=e=>{this.needScroll=!0,z(t.props.onItemsPerPageChange,e)})}return(0,M.cloneElement)(t,{...s})}render(){const{baseClassName:e,className:t,data:n,columns:s,sortColumn:i,sortDirection:a,onSortChange:r,selection:o,onSelectionChange:l,renderSelectionCheckbox:c,rowKey:u,renderRowBody:d,expandedRows:p,notExpandableRows:h,onExpandedRowsChange:m,loadingRows:f,pagination:g,totalRows:b,toolbar:v,allRowsSelected:y,onAllRowsSelectedChange:x,filtered:_,emptyView:S,emptyViewMode:w,sidebar:k,locale:j,vertical:T,loading:C,rowProps:D,reorderable:O,onReorderEnd:I,...M}=this.props,{vertical:L}=this.state;if(!(n&&n.length>0||_||"all"!==w))return this.renderEmptyView();const A=s.map(((t,n)=>{const s=[],i=[];if(0===n&&i.push(`${e}__cell-first`),t.align&&!L){const n=`${e}__cell-${t.align}`;s.push(n),i.push(n)}t.className&&(s.push(t.className),i.push(t.className));const a={...t};return s.length&&(a.className=E()(...s)),i.length&&(a.cellProps={className:E()(...i)}),a}));if(l){const t={checked:this.isAllRowsChecked(n,this.state.selection),onChange:this.handleGlobalSelectionChange};A.unshift({key:"selection",type:"internal",className:`${e}__cell-selection`,cellProps:{className:`${e}__cell-selection`},title:"function"==typeof c?c(t):(0,P.jsx)(ut,{...t}),render:t=>{const{virtual:n}=this.getRowProps(t);if(n)return null;if(this.isRowLoading(t))return(0,P.jsx)(ve,{className:`${e}__spinner`});const s={checked:this.isRowSelected(t),disabled:t.disabled,onChange:e=>this.handleRowSelectionChange(e,qr(t,this.props)),inputProps:{value:qr(t,this.props)}};return"function"==typeof c?c(s,t):(0,P.jsx)(ut,{...s})}})}d&&A.unshift({key:"expander",type:"internal",className:`${e}__cell-expander`,cellProps:{className:`${e}__cell-expander`},title:(0,P.jsx)(Be,{ghost:!0,className:`${e}__row-expander`,icon:(0,P.jsx)(be,{className:`${e}__row-expander-icon`,children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:(0,P.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.5 1.4L5 4.9l3.5-3.5M1.5 5.1L5 8.6l3.5-3.5"})})}),onClick:this.handleGlobalExpandingChange}),render:t=>this.isRowExpandable(t)&&(0,P.jsx)(Be,{ghost:!0,className:`${e}__row-expander`,icon:(0,P.jsx)(be,{className:`${e}__row-expander-icon`,children:(0,P.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:(0,P.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.5 3.2L5 6.7l3.5-3.5"})})}),onClick:()=>this.handleRowExpandingChange(t)})}),O&&A.unshift({key:"reorderable",type:"internal",className:`${e}__cell-reorderable`,cellProps:{className:`${e}__cell-reorderable`},title:null,render:()=>(0,P.jsx)("span",{className:`${e}__cell-reorderable-indicator`,"data-movable-handle":!0,children:(0,P.jsx)("svg",{width:"6",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M0 0h2v2H0zM0 4h2v2H0zM0 8h2v2H0zM0 12h2v2H0zM4 0h2v2H4zM4 4h2v2H4zM4 8h2v2H4zM4 12h2v2H4z",fill:"currentColor"})})})});const R=!L&&s.some((e=>e.title));let U;if(n&&n.length>0||!_&&"items"!==w){const t=t=>{let{children:s,props:i}=t;return(0,P.jsx)(zr,{children:(0,P.jsxs)("table",{className:E()(`${e}__table`,{[`${e}--expandable`]:d,[`${e}__table--vertical`]:L,[`${e}__table--reorderable`]:O}),...i,children:[R&&(0,P.jsx)("thead",{children:(0,P.jsx)("tr",{className:E()(`${e}__table-thead`,{[`${e}__row--expanded`]:this.isAnyRowsExpanded(n,this.state.expandedRows)}),children:A.map((e=>{let{key:t,title:n,sortable:s,sort:i,width:a,render:r,truncate:o,type:l,cellProps:c,...u}=e;return s&&(n=(0,P.jsx)("div",{className:"th__action",children:n}),u.className=E()({"is-sortable":s,"is-sorted is-sorted--up":this.state.sortColumn===t&&"ASC"===this.state.sortDirection,"is-sorted is-sorted--down":this.state.sortColumn===t&&"DESC"===this.state.sortDirection},u.className),u.onClick=()=>this.sort(t)),a&&(u.style={...u.style,width:a}),(0,P.jsx)("th",{...u,children:n},t)}))})}),O?s:(0,P.jsx)("tbody",{children:s})]})})},s=e=>{let{value:{row:t},index:n,props:s,isDragged:i}=e;return this.renderRow({row:t,index:n,hasTitle:R,realColumn:A,reorderableProps:s,isDragged:i})};if(O&&this.state.ReorderableList){const{ReorderableList:e}=this.state;U=(0,P.jsx)(e,{beforeDrag:e=>{let{elements:t,index:n}=e;const s=Array.from(t[n].firstElementChild.children).map((e=>window.getComputedStyle(e).width));this.setState({reorderableItemWidths:s})},onChange:e=>{let{oldIndex:t,newIndex:n}=e;z(I,{oldIndex:t,newIndex:n})},values:this.getData().map((e=>({row:e}))),renderList:t,renderItem:s,lockVertically:!0,hooks:{getChildren:e=>e.filter((e=>"THEAD"!==e.nodeName))},useDragHandle:!1})}else U=t({children:this.getData().map(((e,t)=>s({value:{row:e},index:t})))})}else U=this.renderEmptyView();U=(0,P.jsx)("div",{className:E()(`${e}__table-container`,{[`${e}__table-container--loading`]:C}),children:U}),k&&(U=(0,P.jsxs)(qi,{gap:"md",className:E()(`${e}__content`,{[`${e}__content--vertical`]:L}),children:[(0,P.jsx)(Ki,{fill:!0,children:U}),(0,P.jsx)(Ki,{className:`${e}__sidebar`,children:k})]}));const N=this.shouldBePagination(),F=n=>(0,P.jsxs)("div",{ref:n,className:E()(e,t),...M,children:[this.renderHeader(),this.renderToolbar(),N&&(0,P.jsx)("span",{ref:this.anchorRef}),U,N&&(0,P.jsx)("div",{className:`${e}__footer`,children:this.renderPagination("footer")})]});return"number"==typeof T?(0,P.jsx)(_s,{bounds:!0,onResize:this.handleResize,children:e=>{let{measureRef:t}=e;return F(t)}}):F()}}F(Xr,"defaultProps",{data:[],sortColumn:void 0,sortDirection:"ASC",onSortChange:void 0,onSelectionChange:void 0,selection:[],renderSelectionCheckbox:void 0,rowKey:"key",renderRowBody:void 0,expandedRows:[],notExpandableRows:[],onExpandedRowsChange:void 0,loadingRows:[],className:"",baseClassName:`${R.CLS_PREFIX}list`,pagination:void 0,totalRows:void 0,toolbar:void 0,allRowsSelected:!1,onAllRowsSelectedChange:void 0,filtered:!1,emptyView:void 0,emptyViewMode:"all",sidebar:void 0,locale:void 0,vertical:$i,loading:!1,rowProps:void 0,reorderable:!1,onReorderEnd:void 0});const Qr=Xr,Jr=e=>{let{primary:t,children:n,tooltip:s,...i}=e;const a=e=>t?(0,P.jsx)(Be,{ghost:!0,tooltip:e,...i}):(0,P.jsx)(Sn,{tooltip:s,...i,children:e});return"function"==typeof n?n({wrap:e=>a(e)}):a(n)},Zr=e=>{let{baseClassName:t=`${R.CLS_PREFIX}list-actions`,className:n,children:s,locale:i,...a}=e;const[r,o]=(0,M.useState)(!1),l=(0,M.useContext)(zi);(0,M.useEffect)((()=>{const e=e=>{let{matches:t}=e;o(!t)},t=window.matchMedia("(min-width: 768px)");return e(t),t.addListener(e),()=>{t.removeListener(e)}}),[]);const c=[],u=[];let d,p=0;return M.Children.toArray(s).forEach(((e,n)=>{if((0,M.isValidElement)(e)&&e.type===Jr){const{primary:s,hidden:i}=e.props,a=n.toString();s&&!l?c.push(i?(0,P.jsx)("div",{className:`${t}__hidden-action`},a):e):(p++,i||u.push((0,M.cloneElement)(e,{primary:!1})))}else p++,u.push(e)})),u.length>0?d=(0,P.jsx)(Mn,{className:`${t}__menu`,menu:(0,P.jsx)(qs,{children:u}),menuPlacement:"bottom-end",overlay:r,locale:i,children:(0,P.jsx)(Be,{ghost:!0,icon:"kebab"})}):p&&(d=(0,P.jsx)("div",{className:`${t}__menu ${t}__hidden-action`})),(0,P.jsxs)("div",{className:E()(t,n),...a,children:[c,d]})};let eo={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function to(e){eo=e}const no={exec:()=>null};function so(e,t=""){let n="string"==typeof e?e:e.source;const s={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(io.caret,"$1"),n=n.replace(e,i),s},getRegex:()=>new RegExp(n,t)};return s}const io={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},ao=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ro=/(?:[*+-]|\d{1,9}[.)])/,oo=so(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ro).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),lo=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,co=/(?!\s*\])(?:\\.|[^\[\]\\])+/,uo=so(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",co).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),po=so(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ro).getRegex(),ho="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mo=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,fo=so("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",mo).replace("tag",ho).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),go=so(lo).replace("hr",ao).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),bo={blockquote:so(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",go).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:uo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ao,html:fo,lheading:oo,list:po,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:go,table:no,text:/^[^\n]+/},vo=so("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ao).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex(),yo={...bo,table:vo,paragraph:so(lo).replace("hr",ao).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ho).getRegex()},xo={...bo,html:so("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",mo).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:no,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:so(lo).replace("hr",ao).replace("heading"," *#{1,6} *[^\n]").replace("lheading",oo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},_o=/^( {2,}|\\)\n(?!\s*$)/,So=/[\p{P}\p{S}]/u,wo=/[\s\p{P}\p{S}]/u,ko=/[^\s\p{P}\p{S}]/u,jo=so(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wo).getRegex(),To=/(?!~)[\p{P}\p{S}]/u,Co=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Do=so(Co,"u").replace(/punct/g,So).getRegex(),Po=so(Co,"u").replace(/punct/g,To).getRegex(),Oo="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Io=so(Oo,"gu").replace(/notPunctSpace/g,ko).replace(/punctSpace/g,wo).replace(/punct/g,So).getRegex(),Mo=so(Oo,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,To).getRegex(),Lo=so("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ko).replace(/punctSpace/g,wo).replace(/punct/g,So).getRegex(),Ao=so(/\\(punct)/,"gu").replace(/punct/g,So).getRegex(),Eo=so(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ro=so(mo).replace("(?:--\x3e|$)","--\x3e").getRegex(),Uo=so("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ro).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),No=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Fo=so(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",No).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Yo=so(/^!?\[(label)\]\[(ref)\]/).replace("label",No).replace("ref",co).getRegex(),Ho=so(/^!?\[(ref)\](?:\[\])?/).replace("ref",co).getRegex(),Bo={_backpedal:no,anyPunctuation:Ao,autolink:Eo,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:_o,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:no,emStrongLDelim:Do,emStrongRDelimAst:Io,emStrongRDelimUnd:Lo,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:Fo,nolink:Ho,punctuation:jo,reflink:Yo,reflinkSearch:so("reflink|nolink(?!\\()","g").replace("reflink",Yo).replace("nolink",Ho).getRegex(),tag:Uo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:no},Vo={...Bo,link:so(/^!?\[(label)\]\((.*?)\)/).replace("label",No).getRegex(),reflink:so(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",No).getRegex()},$o={...Bo,emStrongRDelimAst:Mo,emStrongLDelim:Po,url:so(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Wo={...$o,br:so(_o).replace("{2,}","*").getRegex(),text:so($o.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},zo={normal:bo,gfm:yo,pedantic:xo},qo={normal:Bo,gfm:$o,breaks:Wo,pedantic:Vo},Go={"&":"&","<":"<",">":">",'"':""","'":"'"},Ko=e=>Go[e];function Xo(e,t){if(t){if(io.escapeTest.test(e))return e.replace(io.escapeReplace,Ko)}else if(io.escapeTestNoEncode.test(e))return e.replace(io.escapeReplaceNoEncode,Ko);return e}function Qo(e){try{e=encodeURI(e).replace(io.percentDecode,"%")}catch{return null}return e}function Jo(e,t){const n=e.replace(io.findPipe,((e,t,n)=>{let s=!1,i=t;for(;--i>=0&&"\\"===n[i];)s=!s;return s?"|":" |"})).split(io.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(io.slashPipe,"|");return n}function Zo(e,t,n){const s=e.length;if(0===s)return"";let i=0;for(;i<s&&e.charAt(s-i-1)===t;)i++;return e.slice(0,s-i)}function el(e,t,n,s,i){const a=t.href,r=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");if("!"!==e[0].charAt(0)){s.state.inLink=!0;const e={type:"link",raw:n,href:a,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,e}return{type:"image",raw:n,href:a,title:r,text:o}}class tl{options;rules;lexer;constructor(e){this.options=e||eo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Zo(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const s=e.match(n.other.indentCodeCompensation);if(null===s)return t;const i=s[1];return t.split("\n").map((e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[s]=t;return s.length>=i.length?e.slice(i.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=Zo(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Zo(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=Zo(t[0],"\n").split("\n"),n="",s="";const i=[];for(;e.length>0;){let t=!1;const a=[];let r;for(r=0;r<e.length;r++)if(this.rules.other.blockquoteStart.test(e[r]))a.push(e[r]),t=!0;else{if(t)break;a.push(e[r])}e=e.slice(r);const o=a.join("\n"),l=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${o}`:o,s=s?`${s}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;const u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){const t=u,a=t.raw+"\n"+e.join("\n"),r=this.blockquote(a);i[i.length-1]=r,n=n.substring(0,n.length-t.raw.length)+r.raw,s=s.substring(0,s.length-t.text.length)+r.text;break}if("list"!==u?.type);else{const t=u,a=t.raw+"\n"+e.join("\n"),r=this.list(a);i[i.length-1]=r,n=n.substring(0,n.length-u.raw.length)+r.raw,s=s.substring(0,s.length-t.raw.length)+r.raw,e=a.substring(i.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:i,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,i={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const a=this.rules.other.listItemRegex(n);let r=!1;for(;e;){let n=!1,s="",o="";if(!(t=a.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,o=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,o=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),r=this.rules.other.htmlBeginRegex(d);for(;e;){const p=e.split("\n",1)[0];let h;if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),i.test(c))break;if(a.test(c))break;if(r.test(c))break;if(t.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())o+="\n"+h.slice(d);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(i.test(l))break;if(a.test(l))break;if(n.test(l))break;o+="\n"+c}u||c.trim()||(u=!0),s+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}i.loose||(r?i.loose=!0:this.rules.other.doubleBlankLine.test(s)&&(r=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o),h&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,""))),i.items.push({type:"list_item",raw:s,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),i.raw+=s}const o=i.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){const t=i.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));i.loose=n}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=Jo(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(const e of i)a.rows.push(Jo(e,a.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]}))));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=Zo(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),el(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return el(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!s[1]&&!s[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...s[0]].length-1;let i,a,r=n,o=0;const l="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=l.exec(t));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(a=[...i].length,s[3]||s[4]){r+=a;continue}if((s[5]||s[6])&&n%3&&!((n+a)%3)){o+=a;continue}if(r-=a,r>0)continue;a=Math.min(a,a+r+o);const t=[...s[0]][0].length,l=e.slice(0,n+s.index+t+a);if(Math.min(n,a)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),s=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&s&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}}class nl{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eo,this.options.tokenizer=this.options.tokenizer||new tl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:io,block:zo.normal,inline:qo.normal};this.options.pedantic?(t.block=zo.pedantic,t.inline=qo.pedantic):this.options.gfm&&(t.block=zo.gfm,this.options.breaks?t.inline=qo.breaks:t.inline=qo.gfm),this.tokenizer.rules=t}static get rules(){return{block:zo,inline:qo}}static lex(e,t){return new nl(t).lex(e)}static lexInline(e,t){return new nl(t).inlineTokens(e)}lex(e){e=e.replace(io.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(io.tabCharGlobal," ").replace(io.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some((n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0))))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(i))){const a=t.at(-1);n&&"paragraph"===a?.type?(a.raw+="\n"+s.raw,a.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(s),n=i.length!==e.length,e=e.substring(s.raw.length)}else if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i=!1,a="";for(;e;){let s;if(i||(a=""),i=!1,this.options.extensions?.inline?.some((n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0))))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===s.type&&"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,n,a)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let r=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(s=this.tokenizer.inlineText(r)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(a=s.raw.slice(-1)),i=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}}class sl{options;parser;constructor(e){this.options=e||eo}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(io.notSpaceStart)?.[0],i=e.replace(io.endingNewline,"")+"\n";return s?'<pre><code class="language-'+Xo(s)+'">'+(n?i:Xo(i,!0))+"</code></pre>\n":"<pre><code>"+(n?i:Xo(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t];s+=this.listitem(n)}const i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+i+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+Xo(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let s="";for(let t=0;t<e.rows.length;t++){const i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Xo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),i=Qo(e);if(null===i)return s;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+Xo(t)+'"'),a+=">"+s+"</a>",a}image({href:e,title:t,text:n}){const s=Qo(e);if(null===s)return Xo(n);let i=`<img src="${e=s}" alt="${n}"`;return t&&(i+=` title="${Xo(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Xo(e.text)}}class il{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class al{options;renderer;textRenderer;constructor(e){this.options=e||eo,this.options.renderer=this.options.renderer||new sl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new il}static parse(e,t){return new al(t).parse(e)}static parseInline(e,t){return new al(t).parseInline(e)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const a=i;switch(a.type){case"space":n+=this.renderer.space(a);continue;case"hr":n+=this.renderer.hr(a);continue;case"heading":n+=this.renderer.heading(a);continue;case"code":n+=this.renderer.code(a);continue;case"table":n+=this.renderer.table(a);continue;case"blockquote":n+=this.renderer.blockquote(a);continue;case"list":n+=this.renderer.list(a);continue;case"html":n+=this.renderer.html(a);continue;case"paragraph":n+=this.renderer.paragraph(a);continue;case"text":{let i=a,r=this.renderer.text(i);for(;s+1<e.length&&"text"===e[s+1].type;)i=e[++s],r+="\n"+this.renderer.text(i);n+=t?this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):r;continue}default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const i=e[s];if(this.options.extensions?.renderers?.[i.type]){const e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}const a=i;switch(a.type){case"escape":case"text":n+=t.text(a);break;case"html":n+=t.html(a);break;case"link":n+=t.link(a);break;case"image":n+=t.image(a);break;case"strong":n+=t.strong(a);break;case"em":n+=t.em(a);break;case"codespan":n+=t.codespan(a);break;case"br":n+=t.br(a);break;case"del":n+=t.del(a);break;default:{const e='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}}class rl{options;block;constructor(e){this.options=e||eo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?nl.lex:nl.lexInline}provideParser(){return this.block?al.parse:al.parseInline}}const ol=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=al;Renderer=sl;TextRenderer=il;Lexer=nl;Tokenizer=tl;Hooks=rl;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const i=e[s].flat(1/0);n=n.concat(this.walkTokens(i,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new sl(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const s=n,i=e.renderer[s],a=t[s];t[s]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new tl(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,i=e.tokenizer[s],a=t[s];t[s]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new rl;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const s=n,i=e.hooks[s],a=t[s];rl.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(i.call(t,e)).then((e=>a.call(t,e)));const n=i.call(t,e);return a.call(t,n)}:t[s]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nl.lex(e,t??this.defaults)}parser(e,t){return al.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const s={...n},i={...this.defaults,...s},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===s.async)return a(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return a(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));i.hooks&&(i.hooks.options=i,i.hooks.block=e);const r=i.hooks?i.hooks.provideLexer():e?nl.lex:nl.lexInline,o=i.hooks?i.hooks.provideParser():e?al.parse:al.parseInline;if(i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(t):t).then((e=>r(e,i))).then((e=>i.hooks?i.hooks.processAllTokens(e):e)).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>o(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let e=r(t,i);i.hooks&&(e=i.hooks.processAllTokens(e)),i.walkTokens&&this.walkTokens(e,i.walkTokens);let n=o(e,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+Xo(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ll(e,t){return ol.parse(e,t)}ll.options=ll.setOptions=function(e){return ol.setOptions(e),ll.defaults=ol.defaults,to(ll.defaults),ll},ll.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},ll.defaults=eo,ll.use=function(...e){return ol.use(...e),ll.defaults=ol.defaults,to(ll.defaults),ll},ll.walkTokens=function(e,t){return ol.walkTokens(e,t)},ll.parseInline=ol.parseInline,ll.Parser=al,ll.parser=al.parse,ll.Renderer=sl,ll.TextRenderer=il,ll.Lexer=nl,ll.lexer=nl.lex,ll.Tokenizer=tl,ll.Hooks=rl,ll.parse=ll,ll.options,ll.setOptions,ll.use,ll.walkTokens,ll.parseInline,al.parse,nl.lex;const cl=e=>{let{baseClassName:t=`${R.CLS_PREFIX}markdown`,className:n,compact:s=!1,children:i,...a}=e;return(0,P.jsx)("div",{className:E()(t,{[`${t}--compact`]:s},n),dangerouslySetInnerHTML:{__html:ll(i)},...a})},ul=e=>{let{className:t,children:n,baseClassName:s=`${R.CLS_PREFIX}media-section`,...i}=e;return(0,P.jsx)("div",{className:E()(s,t),...i,children:n})},dl=e=>{let{baseClassName:t=`${R.CLS_PREFIX}panel`,className:n,title:s,collapsible:i=!1,collapsed:a,onToggle:r,children:o,extra:l,...c}=e;const u=(0,M.useRef)(null),d=void 0!==a,[p,h]=(0,M.useState)(!1),m=d?a:p,f=e=>{i&&!G(e)&&(d||h(!m),r?.(!m))};return(0,P.jsx)(ct,{classNames:`${t}-`,in:!m,timeout:300,nodeRef:u,children:(0,P.jsxs)("div",{className:E()(t,{[`${t}--collapsible`]:i,[`${t}--collapsed`]:m,[`${t}--expanded`]:!m},n),...c,ref:u,children:[s&&(0,P.jsxs)("div",{className:`${t}__header`,onClick:f,children:[Ps(s)?(0,P.jsx)(Ds,{component:"div",level:4,className:`${t}__title`,children:s}):s,(l||i)&&(0,P.jsxs)("div",{className:`${t}__extra`,children:[l,i&&(0,P.jsx)(Be,{ghost:!0,className:`${t}__control-button`,icon:{name:"chevron-up",flipVertical:m},onClick:f})]})]}),(0,P.jsx)("div",{className:`${t}__content`,children:o})]})})},pl=e=>{let t=5*Math.ceil(20*e/5);return t%20==5?t+=2:t%20==15&&(t-=2),t},hl=e=>{let{baseClassName:t=`${R.CLS_PREFIX}rating`,className:n,value:s=0,small:i=!1,...a}=e;return(0,P.jsx)("div",{className:E()(t,n,{[`${t}--static`]:!0,[`${t}--small`]:i}),...a,children:(0,P.jsx)("div",{className:`${t}__rates`,style:{width:`${pl(s)}%`}})})},ml=e=>{let{baseClassName:t=`${R.CLS_PREFIX}status-message`,className:n,intent:s,children:i,...a}=e;return(0,P.jsxs)(xe,{className:E()(t,[`${t}--${s}`],n),intent:s,...a,children:[(0,P.jsx)(be,{name:Ua[s],intent:s,className:`${t}__icon`}),i]})},fl=e=>{let{className:t,children:n,onChange:s,tooltip:i,intent:a,checked:r,defaultChecked:o,baseClassName:l=`${R.CLS_PREFIX}switch`,disabled:c=!1,loading:u=!1,...d}=e;const p=(0,P.jsxs)("label",{className:E()(l,{[`${l}--${a}`]:a,[`${l}--loading`]:u},t),...d,children:[n?(0,P.jsx)("span",{className:`${l}__label`,children:n}):null,(0,P.jsx)("input",{type:"checkbox",onChange:e=>{!c&&s&&s(e.target.checked)},checked:r,defaultChecked:null==r?o:void 0,disabled:c||u}),(0,P.jsx)("span",{className:`${l}__indicator`})]});return i?(0,P.jsx)(Oe,{title:i,children:p}):p},gl=e=>{let{children:t}=e;return(0,P.jsx)("div",{children:t})};class bl extends M.Component{constructor(){super(...arguments),F(this,"state",{active:this.props.active||1,collapsedLength:0,compact:!1,searching:!1,monospacedWidth:0}),F(this,"widths",void 0),F(this,"addon",void 0),F(this,"tabsnavRef",void 0),F(this,"moreTabsRef",null),F(this,"checkAdaptive",(()=>{let{compact:e,searching:t,collapsedLength:n}=this.state;const{addonMinWidth:s,search:i,monospaced:a}=this.props,{widths:r,addon:o}=this;let l=0;const c=()=>l;if(!r)return;const u=5+(s||(i?.props.minWidth??150)),d=e&&i?65:0,{more:p,container:h,margin:m}=r;let f=r.tabs.slice();const g=f.length;let b=g-1-n;a&&(l=Math.max(...f.slice(0,b+1)),f=f.map(c));const v=()=>{let e=a?m*Math.max(0,g-1-Math.max(0,n-1)):0;for(let t=0;t<=b;++t)e+=f[t];return n&&(e+=p),e};let y=h-v();o&&!n&&!e&&y<=u&&(e=!0);let x=y-d;if(x<=0)for(let e=b;e>=0;--e){let t=f[e];if(a&&r.tabs[e]===l&&(l=r.tabs.slice(0,b).reduce(((e,t)=>t>e?t:e),0),f=f.map(c),t+=(r.tabs[e]-l)*b),0===n&&(t-=p),x+=t,++n,--b,x>0)break}else for(let e=b+1;e<g;++e){let t=f[e];if(a&&r.tabs[e]>l&&(l=r.tabs[e],f=f.map(c),t=l+(l-t)*(b+1)),1===n&&(t-=p),x<=t)break;x-=t,--n,++b}(n||e)&&(y=h-v(),n?e=!0:y>=u&&(e=!1,t=!1));const _={compact:e,searching:t,collapsedLength:n,monospacedWidth:l};for(const e of Object.keys(_))JSON.stringify(_[e])===JSON.stringify(this.state[e])&&delete _[e];Object.keys(_).length&&this.setState(_,(()=>{void 0!==_.collapsedLength&&this.state.collapsedLength!==_.collapsedLength&&this.checkAdaptive()}))})),F(this,"handleStartSearching",(()=>{this.setState({searching:!0})})),F(this,"handleCancelSearching",(()=>{this.setState({searching:!1},this.checkAdaptive)})),F(this,"handleResize",(()=>{const{baseClassName:e}=this.props;if(this.tabsnavRef){const t=this.tabsnavRef.querySelectorAll(`.${e}__tab-list--fake .${e}__tab`),n=t[t.length-1],s=Array.prototype.slice.call(t,0,-1).map((e=>e.offsetWidth));this.widths={tabs:s,more:n.offsetWidth,container:this.tabsnavRef.offsetWidth,margin:n.offsetWidth-(n.querySelector(`.${e}__link`)?.offsetWidth??0)}}this.checkAdaptive()})),F(this,"handleAddonResize",(e=>{this.addon=e.bounds,this.checkAdaptive()})),F(this,"renderTabItem",((e,t,n)=>{const{baseClassName:s}=this.props,{monospacedWidth:i,active:a}=this.state;if(!e||e.type!==gl)return null;const{title:r,label:o,icon:l,onActivate:c,onClose:u,component:d="a",...p}=e.props,h=t+1===a,m=t.toString(),f=be.create(l,{size:re,className:`${s}__tab-icon`}),g=this.renderTabLabel(n,o),b=this.renderTabClose(n,u),v=()=>this.onClick(t+1);return p.tabIndex=p.tabIndex||0,p.onKeyDown=q(p.onKeyDown,(e=>{"Enter"===e.key&&e.currentTarget.click()})),"menu-item"===n?(0,P.jsx)(Sn,{icon:f,label:(0,P.jsxs)(M.Fragment,{children:[g,b]}),active:h,onClick:v,className:`${s}__menu-item`,component:d,...p,children:r},m):(0,P.jsx)("li",{className:E()(`${s}__tab`,h&&`${s}__tab--selected`,b&&`${s}__tab--closable`),role:"presentation",children:(0,P.jsxs)(d,{className:`${s}__link`,role:"tab","aria-selected":h||void 0,style:{width:i||void 0},onClick:v,...p,children:[f,(0,P.jsx)("span",{className:`${s}__tab-title`,children:r}),g,b]})},m)}))}static getDerivedStateFromProps(e,t){const{active:n}=e,{prevActive:s}=t,i={};return n&&n!==s&&(i.active=n),i.prevActive=n,i}componentDidUpdate(){this.widths&&M.Children.count(this.props.children)===this.widths.tabs.length||setTimeout((()=>this.handleResize()))}onClick(e){this.setState({active:e});const t=Array.isArray(this.props.children)?this.props.children[e-1]:this.props.children;t?.props?.onActivate?.()}renderTabLabel(e,t){const{baseClassName:n}=this.props;return"string"==typeof t?(0,P.jsx)(we,{className:`${n}__${e}-label`,intent:"danger",children:t}):(0,M.isValidElement)(t)?(0,M.cloneElement)(t,{className:E()(`${n}__${e}-label`,t.props.className)}):null}renderTabClose(e,t){const{baseClassName:n}=this.props;return"function"==typeof t?(0,P.jsx)("button",{className:`${n}__${e}-close`,type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),t(e)},children:(0,P.jsx)(be,{className:`${n}__${e}-close-icon`,name:"cross-mark"})}):null}renderFakeTabs(){const{baseClassName:e,children:t}=this.props;return M.Children.count(t)&&t?(0,P.jsxs)("ul",{className:E()(`${e}__tab-list`,`${e}__tab-list--fake`),children:[M.Children.map(t,(t=>{if(!t||t.type!==gl)return null;const{title:n,label:s,icon:i,onActivate:a,onClose:r,...o}=t.props,l=be.create(i,{size:re,className:`${e}__tab-icon`}),c=this.renderTabClose("tab",r);return(0,P.jsxs)("li",{className:E()(`${e}__tab`,c&&`${e}__tab--closable`),children:[(0,P.jsxs)("a",{className:`${e}__link`,tabIndex:-1,style:o.style,children:[l,(0,P.jsx)("span",{className:`${e}__tab-title`,children:n}),this.renderTabLabel("tab",s)]}),c]},`${n}`)})),(0,P.jsx)("li",{className:E()(`${e}__tab`,`${e}__tab--more`),children:(0,P.jsx)("a",{className:`${e}__link`,tabIndex:-1,children:(0,P.jsx)(be,{name:"three-dots-horizontal"})})})]}):null}createTabItems(){const{children:e}=this.props,{collapsedLength:t}=this.state,n=[],s=[],i=M.Children.count(e)-1-t;return M.Children.forEach(e,((e,t)=>{const a=t>i,r=a?"menu-item":"tab",o=this.renderTabItem(e,t,r);o&&(a?s:n).push(o)})),{visibleItems:n,hiddenItems:s}}renderTabList(){const{baseClassName:e,children:t}=this.props,{active:n}=this.state;if(!M.Children.toArray(t).length)return null;const{visibleItems:s,hiddenItems:i}=this.createTabItems(),a=n>s.length;return(0,P.jsxs)("ul",{className:`${e}__tab-list`,role:"tablist",children:[s,i.length>0&&(0,P.jsx)("li",{ref:e=>this.moreTabsRef=e,className:E()(`${e}__tab`,a&&`${e}__tab--selected`,`${e}__tab--more`),role:"presentation","aria-selected":a||void 0,children:(0,P.jsx)(Mn,{className:`${e}__dropdown`,menu:(0,P.jsx)(qs,{children:i}),menuPlacement:"bottom-end",children:(0,P.jsx)("a",{className:`${e}__link`,role:"tab",tabIndex:0,"aria-selected":a||void 0,children:(0,P.jsx)(be,{name:"three-dots-horizontal"})})})})]})}renderSearchBar(e){const{baseClassName:t,search:n}=this.props;if(!n)return null;const{compact:s}=this.state,i=(0,M.cloneElement)(n,e);return s?(0,P.jsx)(Me.Provider,{value:!0,children:(0,P.jsx)("div",{className:`${t}__search`,children:i})}):i}render(){const{baseClassName:e,className:t,addon:n,placeholder:s,children:i,active:a,addonMinWidth:r,monospaced:o,search:l,...c}=this.props,{compact:u,searching:d}=this.state;if(!M.Children.count(i))return null;const p=n||s;let h=p;const m={};let f=null;if(l){const e={collapsable:u,onExpand:this.handleStartSearching,onCollapse:this.handleCancelSearching};u?(d?(e.maxWidth=void 0,e.minWidth=void 0,e.autoFocus=!0,e.responsive=!1):e.onSearch=this.handleStartSearching,f=this.renderSearchBar(e)):p?(e.key=1,h=(0,P.jsxs)(P.Fragment,{children:[this.renderSearchBar(e),(0,M.cloneElement)(p,{key:2})]})):(m.style={maxWidth:l.props.maxWidth},h=this.renderSearchBar(e))}return(0,P.jsxs)("div",{className:E()(e,t),...c,children:[(0,P.jsx)(_s,{onResize:this.handleResize,innerRef:e=>this.tabsnavRef=e,children:t=>{let{measureRef:n}=t;return(0,P.jsxs)("div",{className:E()(`${e}__nav`,u&&`${e}__nav--compact`,d&&`${e}__nav--searching`,l&&`${e}__nav--search`),ref:n,children:[this.renderTabList(),(0,P.jsx)(_s,{onResize:this.handleResize,children:e=>{let{measureRef:t}=e;const n=this.renderFakeTabs();return n?(0,M.cloneElement)(n,{ref:t}):null}}),f,h&&(0,P.jsx)(_s,{onResize:this.handleAddonResize,bounds:!0,children:t=>{let{measureRef:n}=t;return(0,P.jsx)("div",{className:`${e}__addon`,ref:n,...m,children:h})}})]})}}),(0,P.jsx)("div",{className:`${e}__tab-panel`,role:"tabpanel",children:M.Children.map(i,((e,t)=>t+1===this.state.active?e:null))})]})}}F(bl,"defaultProps",{baseClassName:`${R.CLS_PREFIX}tabs`});const vl=bl;class yl extends M.Component{constructor(){super(...arguments),F(this,"state",{focused:!1,overMenu:!1,value:`${this.props.inputProps?.value||""}`,highlightedValue:null}),F(this,"isFocusScheduled",!1),F(this,"search",void 0),F(this,"keyboardNavigation",(e=>{const{onItemSelect:t,results:n}=this.props,s=this.getHighlightedValue();if(!n||!t)return;const i=this.getResults(),a=i.indexOf(s);let r;r="ArrowUp"===e?Math.max(a-1,0):Math.min(a+1,i.length-1),this.setState({highlightedValue:-1===a?null:i[r]})})),F(this,"handleFocus",(()=>{this.setState({focused:!0}),this.search&&this.search.focus()})),F(this,"handleBlur",(()=>{this.setState({focused:!1}),this.search&&this.search.blur()})),F(this,"handleMenuMouseOver",(()=>{this.setState({overMenu:!0})})),F(this,"handleMenuMouseOut",(()=>{this.setState({overMenu:!1})})),F(this,"handleKeyDown",(e=>{const{onTyping:t}=this.props,{value:n}=e.currentTarget;-1===["Enter","Escape","ArrowUp","ArrowDown"].indexOf(e.key)?(this.setState({value:n}),t&&t(n,(()=>this.clearInput()))):this.checkKeys(e.key)})),F(this,"handleSearch",(()=>{const{onSearch:e,onTyping:t}=this.props,{value:n}=this.state;e?e(n,(()=>this.clearInput())):t&&t(n,(()=>this.clearInput()))})),F(this,"handleReset",(()=>{this.clearInput(),this.handleFocus()})),F(this,"handleSelect",(e=>()=>{const{onItemSelect:t}=this.props;this.setState({highlightedValue:null}),this.handleBlur(),t?t(e,(()=>this.clearInput())):this.clearInput()})),F(this,"handleExpand",(()=>{const{onExpand:e,distractionFreeMode:t}=this.props;this.isFocusScheduled=!0,z(e),t&&t.toggle()})),F(this,"handleCollapse",(()=>{const{onCollapse:e,distractionFreeMode:t}=this.props;z(e),t&&t.toggle()}))}static getDerivedStateFromProps(e,t){const{inputProps:{value:n}={}}=e,{prevInputProps:{value:s}={}}=t,i={};return n!==s&&(i.value=n??""),i.prevInputProps=e.inputProps,i}componentDidUpdate(){this.isFocusScheduled&&(this.handleFocus(),this.isFocusScheduled=!1)}isResponsive(){return this.props.responsive}getResults(e){const{results:t}=this.props;if(!t)return[];if("type"in t&&t.type===qs||e){let n=[];const s=e||t.props.children;if(!Array.isArray(s))return n;for(let e=0;e<s.length;e++){const t=s[e];t&&(M.Children.count(t)>1?n=n.concat(this.getResults(t)):t.type!==Sn&&t.type!==$s||!t.key||n.push(t.key.toString()))}return n}return t.map((e=>{let{value:t}=e;return t}))}getHighlightedValue(){return(this.state.highlightedValue||this.getResults()[0])??null}searchAction(){const{onItemSelect:e,results:t}=this.props,n=this.getHighlightedValue();e&&t?-1===this.getResults().indexOf(n)?this.handleSearch():this.handleSelect(n)():this.handleSearch()}checkKeys(e){"Enter"===e?this.searchAction():"Escape"===e?this.state.value?this.handleReset():(this.handleBlur(),this.handleMenuMouseOut()):"ArrowUp"!==e&&"ArrowDown"!==e||this.keyboardNavigation(e)}clearInput(){this.setState({value:""},this.handleSearch)}elementsIndexToKeyMapping(e){let t=[];if(!Array.isArray(e))return t;for(let n=0;n<e.length;n++){const s=e[n];s&&(Array.isArray(s)?t=t.concat(this.elementsIndexToKeyMapping(s)):t.push(s.key))}return t}renderResults(e){const{baseClassName:t}=this.props,{focused:n,overMenu:s}=this.state,i=this.getHighlightedValue();return(0,P.jsx)(qs,{className:E()(`${t}__results`,{[`${t}__results--hidden`]:!n&&!s}),onMouseOver:this.handleMenuMouseOver,onMouseOut:this.handleMenuMouseOut,children:e.map((e=>(0,P.jsx)(Sn,{active:e.value===i,onClick:this.handleSelect(e.value),children:e.title},e.value)))})}renderResultsMenu(e){const{baseClassName:t,onItemSelect:n}=this.props,{focused:s,overMenu:i}=this.state,a=this.getHighlightedValue();return(0,M.cloneElement)(e,{className:E()(`${t}__results`,{[`${t}__results--hidden`]:!s&&!i},e.props.className),onMouseOver:this.handleMenuMouseOver,onMouseOut:this.handleMenuMouseOut,onItemClick:(t,n)=>{const s=this.elementsIndexToKeyMapping(e.props.children);this.handleSelect(s[n])()},children:M.Children.map(e.props.children,(e=>n&&e&&"object"==typeof e&&"type"in e&&(e.type===Sn||e.type===$s)?(0,M.cloneElement)(e,{active:e.key===a}):e))})}render(){const{baseClassName:e,className:t,maxWidth:n,minWidth:s,loading:i,responsive:a,onSearch:r,onTyping:o,onItemSelect:l,collapsable:c,onCollapse:u,onExpand:d,results:p,inputProps:h,distractionFreeMode:m,...f}=this.props,{focused:g,value:b}=this.state,v=this.isResponsive(),y=Boolean(m&&m.enabled);return(0,P.jsx)("div",{className:E()(e,{[`${e}--focused`]:g},t),style:v||y?void 0:{maxWidth:n,minWidth:s},...f,children:!v||!c&&y?(0,P.jsxs)("div",{className:`${e}__group`,children:[(0,P.jsx)(Ss,{innerRef:e=>this.search=e,className:`${e}__input`,size:"fill",onChange:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,...h,value:b,prefix:(c&&!v||y)&&(0,P.jsx)(Be,{icon:{name:"chevron-right",flipHorizontal:dt()},ghost:!0,onClick:this.handleCollapse}),suffix:(0,P.jsxs)(P.Fragment,{children:[b&&(0,P.jsx)(Be,{icon:"remove",onClick:this.handleReset,ghost:!0}),(0,P.jsx)(Be,{icon:"search",onClick:this.handleSearch,state:i?"loading":void 0,ghost:!0})]})}),Array.isArray(p)&&this.renderResults(p),p&&!Array.isArray(p)&&p.type===qs&&this.renderResultsMenu(p)]}):(0,P.jsx)(ke,{intent:"info",hidden:!b,children:(0,P.jsx)(Be,{icon:"search",onClick:this.handleExpand})})})}}F(yl,"defaultProps",{baseClassName:`${R.CLS_PREFIX}search-bar`,maxWidth:500,minWidth:270,inputProps:{}});const xl=e=>{const t=(0,M.useContext)(ci);let n=(0,M.useContext)(Me);return n=void 0===e.responsive?n||!1:Boolean(e.responsive),(0,P.jsx)(yl,{...e,responsive:n,distractionFreeMode:t})};xl.displayName="SearchBar";const _l=xl;var Sl=r(5338);function wl(e,t){var n=Object.create(null);return e&&M.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,M.isValidElement)(e)?t(e):e}(e)})),n}function kl(e,t,n){return null!=n[t]?n[t]:e.props[t]}function jl(e,t,n){var s=wl(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var s,i=Object.create(null),a=[];for(var r in e)r in t?a.length&&(i[r]=a,a=[]):a.push(r);var o={};for(var l in t){if(i[l])for(s=0;s<i[l].length;s++){var c=i[l][s];o[i[l][s]]=n(c)}o[l]=n(l)}for(s=0;s<a.length;s++)o[a[s]]=n(a[s]);return o}(t,s);return Object.keys(i).forEach((function(a){var r=i[a];if((0,M.isValidElement)(r)){var o=a in t,l=a in s,c=t[a],u=(0,M.isValidElement)(c)&&!c.props.in;!l||o&&!u?l||!o||u?l&&o&&(0,M.isValidElement)(c)&&(i[a]=(0,M.cloneElement)(r,{onExited:n.bind(null,r),in:c.props.in,exit:kl(r,"exit",e),enter:kl(r,"enter",e)})):i[a]=(0,M.cloneElement)(r,{in:!1}):i[a]=(0,M.cloneElement)(r,{onExited:n.bind(null,r),in:!0,exit:kl(r,"exit",e),enter:kl(r,"enter",e)})}})),i}var Tl=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Cl=function(e){function t(t,n){var s,i=(s=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}Ke(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,s,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,s=a,wl(n.children,(function(e){return(0,M.cloneElement)(e,{onExited:s.bind(null,e),in:!0,appear:kl(e,"appear",n),enter:kl(e,"enter",n),exit:kl(e,"exit",n)})}))):jl(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=wl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ze({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,s=qe(e,["component","childFactory"]),i=this.state.contextValue,a=Tl(this.state.children).map(n);return delete s.appear,delete s.enter,delete s.exit,null===t?M.createElement(Qe.Provider,{value:i},a):M.createElement(Qe.Provider,{value:i},M.createElement(t,s,a))},t}(M.Component);Cl.propTypes={},Cl.defaultProps={component:"div",childFactory:function(e){return e}};const Dl=Cl,Pl=e=>{let{toasts:t,onToastClose:n,position:s,baseClassName:i}=e,a=t;return"bottom-end"===s&&(a=[...a],a.reverse()),(0,P.jsx)(Dl,{component:"span",className:i,children:a.map((e=>{let{key:t,...a}=e;const{intent:r}=a;let{autoClosable:o}=a;void 0===o&&"success"===r&&"top-end"===s&&(o=!0);const l=(0,M.createRef)();return(0,P.jsx)(ct,{classNames:`${i}__toast-`,timeout:{enter:300,exit:300},nodeRef:l,children:(0,P.jsx)(rr,{...a,autoClosable:o,onClose:()=>n({...a,key:t}),innerRef:l,className:E()(a.className,`${i}__toast`)})},t)}))})},Ol=e=>{let{group:t,onClose:n}=e;const{renderHeaderLabel:s,renderHeaderLabelTitle:i,closable:a=!1,renderHeaderLabelTooltip:r=(a?()=>"Close group":void 0),intent:o}=t;if(!s&&!i)return null;const l={intent:o,onClick:a?n:void 0,icon:a?"cross-mark":void 0,children:i?i(t):null,caps:!1,size:"md"};return s?s(t,l):(e=>{if(!r)return e;const n=r(t);return n?(0,P.jsx)(Oe,{title:n,children:e}):e})((0,P.jsx)(we,{...l}))},Il=e=>{let{toasts:t,onToastClose:n,onToastGroupClose:s,baseClassName:i,groupConfigs:a,isCollapsed:r,onCollapseStateChange:o}=e;const l=(e=>{let{toasts:t,groupConfigs:n=[]}=e;const s=new Map;t.forEach((e=>{const t=e.groupKey??e.intent;if(!t)return;s.has(t)||s.set(t,{count:0,keys:[]});const n=s.get(t);n&&(n.count+=1,n.keys.push(e.key))}));return n.map((e=>{const t=s.get(e.groupKey)??{count:0,keys:[]};return{...e,...t}}))})({toasts:t,groupConfigs:a}),c=l.filter((e=>{let{count:t}=e;return t>0})),u=(0,M.useRef)(null),d=(0,M.useRef)(null),p=r??!1,[h,m]=(0,M.useState)(t.length>1||p),f=0===t.length,g=1===t.length,b=1===t.length&&!(t[0].closable??1),v=()=>{o?.(!0),m(!0)};t.length>1&&!h&&m(!0),g&&!p&&h&&m(!1),f&&h&&m(!1),f&&p&&o?.(!1);const y=(0,P.jsx)(ct,{nodeRef:d,in:h,timeout:{enter:b?600:300,exit:300},classNames:`${i}__header`,unmountOnExit:!0,children:(0,P.jsxs)("div",{ref:d,className:`${i}__header`,style:{"--_pul-toaster--panel-header-enter-delay":b?"300ms":0,"--_pul-toaster--panel-header-exit-delay":f?"300ms":void 0},children:[(0,P.jsx)("div",{className:`${i}__header-labels`,children:c.map((e=>(0,P.jsx)(Ol,{group:e,onClose:()=>s?.(e.keys)},e.groupKey)))}),(0,P.jsx)(Be,{ghost:!0,icon:p?"chevron-up":"chevron-down",onClick:()=>o?.(!p),className:`${i}__header-collapse`,"aria-label":"Collapse"})]})}),x=(0,P.jsx)("div",{className:E()(`${i}__content-wrapper`,{[`${i}__content-wrapper--collapsed`]:p}),style:{"--_pul-toaster--panel-content-enter-delay":g||f?"300ms":void 0},children:(0,P.jsx)(Dl,{component:"div",className:`${i}__content`,children:t.map((e=>{let{key:s,...a}=e;const r=(0,M.createRef)(),o=`${i}__toast`;return(0,P.jsx)(ct,{classNames:`${o}__wrapper`,timeout:{enter:3e4,exit:300},nodeRef:r,enter:t.length>1,children:(0,P.jsx)("div",{className:`${o}__wrapper`,ref:r,children:(0,P.jsx)("div",{className:`${o}__sub-wrapper`,children:(0,P.jsx)(rr,{...a,onClose:()=>{n({key:s,...a})},className:E()(a.className,o,b&&`${o}--with-collapse`),message:(0,P.jsxs)(P.Fragment,{children:[a.message,b&&!h&&(0,P.jsx)(Be,{size:"md",ghost:!0,icon:{name:"chevron-down"},className:`${i}__toast-collapse`,onClick:v,"aria-label":"Collapse"})]})},s)})})},s)}))})});return(0,P.jsx)(ie.Provider,{value:!0,children:(0,P.jsx)("div",{className:`${i}__wrapper`,children:(0,P.jsx)(ct,{nodeRef:u,in:t.length>0,timeout:{enter:300,exit:300},classNames:i,unmountOnExit:!0,children:(0,P.jsxs)("div",{ref:u,className:E()(i,{[`${i}--empty`]:f}),children:[y,x]})})})})};let Ml=0;const Ll=(0,M.forwardRef)((function(e,t){let{baseClassName:n=`${R.CLS_PREFIX}toaster`,className:s,toasts:i,maxToastsNumber:a,position:r="top-end",view:o="toast",onToastClose:l,onToastGroupClose:c,groupConfigs:u,isPanelCollapsed:d,onPanelCollapseStateChange:p,...h}=e;const m=()=>(i??[]).slice(0,a),f=Boolean(i),[g,b]=(0,M.useState)(m),v=f?m():g,y=e=>{b((t=>t.filter((t=>t.key!==e))))};(0,M.useImperativeHandle)(t,(()=>({add(e){const t="toast-"+Ml++;return b((n=>[{key:t,...e},...n].slice(0,a))),t},update:(e,t)=>(b((n=>n.map((n=>n.key===e?{...t,key:e}:n)))),e),remove:y,clear(){b([])}})),[a]);const x=e=>{f||y(e.key),e.onClose?.(),l?.(e.key)};return(0,P.jsx)(De,{level:R.Z_INDEX_TOASTER,children:(0,P.jsx)("div",{className:E()(n,s,`${n}--${o}-view`,{[`${n}--${r}`]:"toast"===o}),...h,children:"toast"===o?(0,P.jsx)(Pl,{toasts:v,position:r,onToastClose:x,baseClassName:`${n}-toast-view`}):(0,P.jsx)(Il,{toasts:v,onToastClose:x,onToastGroupClose:e=>{f||b((t=>t.filter((t=>!e.includes(t.key))))),c?.(e)},baseClassName:`${n}-panel-view`,groupConfigs:u,isCollapsed:d,onCollapseStateChange:p})})})}));Ll.create=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;const n=document.createElement("div");t.appendChild(n);const s={};return(0,Sl.H)(n).render((0,P.jsx)(Ll,{ref:e=>Object.assign(s,e),...e})),s};const Al=Ll,El=e=>{let{width:t,maxWidth:n,height:s,style:i,component:a="span",className:r,baseClassName:o=`${R.CLS_PREFIX}skeleton`,...l}=e;const c={...i,width:ee(t),maxWidth:ee(n),height:ee(s)};return(0,P.jsx)(a,{className:E()(o,r),style:c,...l})},Rl=e=>{let{lines:t=3,component:n="span",className:s,baseClassName:i=`${R.CLS_PREFIX}skeleton-text`,lineProps:a={},...r}=e;return(0,P.jsx)(n,{className:E()(i,s),...r,children:Array.from({length:t}).map(((e,t)=>(0,P.jsx)(El,{...a,className:E()(`${i}__line`,a?.className)},t)))})};I()();var Ul=r(19888),Nl=r(69242);let Fl=function(e){e()};const Yl=()=>Fl,Hl=Symbol.for("react-redux-context"),Bl="undefined"!=typeof globalThis?globalThis:{};function Vl(){var e;if(!M.createContext)return{};const t=null!=(e=Bl[Hl])?e:Bl[Hl]=new Map;let n=t.get(M.createContext);return n||(n=M.createContext(null),t.set(M.createContext,n)),n}const $l=Vl();let Wl=null;function zl(){return zl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},zl.apply(this,arguments)}function ql(e,t){if(null==e)return{};var n,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}var Gl=r(4146),Kl=r.n(Gl),Xl=r(54737);const Ql=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Jl(e,t,n,s,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:r}){let o,l,c,u,d,p=!1;return function(h,m){return p?function(p,h){const m=!a(h,l),f=!i(p,o,h,l);return o=p,l=h,m&&f?(c=e(o,l),t.dependsOnOwnProps&&(u=t(s,l)),d=n(c,u,l),d):m?(e.dependsOnOwnProps&&(c=e(o,l)),t.dependsOnOwnProps&&(u=t(s,l)),d=n(c,u,l),d):f?function(){const t=e(o,l),s=!r(t,c);return c=t,s&&(d=n(c,u,l)),d}():d}(h,m):(o=h,l=m,c=e(o,l),u=t(s,l),d=n(c,u,l),p=!0,d)}}function Zl(e){return function(t){const n=e(t);function s(){return n}return s.dependsOnOwnProps=!1,s}}function ec(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function tc(e,t){return function(t,{displayName:n}){const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,n){s.mapToProps=e,s.dependsOnOwnProps=ec(e);let i=s(t,n);return"function"==typeof i&&(s.mapToProps=i,s.dependsOnOwnProps=ec(i),i=s(t,n)),i},s}}function nc(e,t){return(n,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function sc(e,t,n){return zl({},n,e,t)}const ic={notify(){},get:()=>[]};function ac(e,t){let n,s=ic,i=0,a=!1;function r(){c.onStateChange&&c.onStateChange()}function o(){i++,n||(n=t?t.addNestedSub(r):e.subscribe(r),s=function(){const e=Yl();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let s=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){s&&null!==t&&(s=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,s.clear(),s=ic)}const c={addNestedSub:function(e){o();const t=s.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){s.notify()},handleChangeWrapper:r,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,o())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>s};return c}const rc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?M.useLayoutEffect:M.useEffect;function oc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function lc(e,t){if(oc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let s=0;s<n.length;s++)if(!Object.prototype.hasOwnProperty.call(t,n[s])||!oc(e[n[s]],t[n[s]]))return!1;return!0}const cc=["reactReduxForwardedRef"];let uc=()=>{throw new Error("uSES not initialized!")};const dc=[null,null];function pc(e,t,n,s,i,a){e.current=s,n.current=!1,i.current&&(i.current=null,a())}function hc(e,t){return e===t}const mc=function(e,t,n,{pure:s,areStatesEqual:i=hc,areOwnPropsEqual:a=lc,areStatePropsEqual:r=lc,areMergedPropsEqual:o=lc,forwardRef:l=!1,context:c=$l}={}){const u=c,d=function(e){return e?"function"==typeof e?tc(e):nc(e,"mapStateToProps"):Zl((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?Zl((t=>function(e,t){const n={};for(const s in e){const i=e[s];"function"==typeof i&&(n[s]=(...e)=>t(i(...e)))}return n}(e,t))):e?"function"==typeof e?tc(e):nc(e,"mapDispatchToProps"):Zl((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:s}){let i,a=!1;return function(t,n,r){const o=e(t,n,r);return a?s(o,i)||(i=o):(a=!0,i=o),i}}}(e):nc(e,"mergeProps"):()=>sc}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,s={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:r,areOwnPropsEqual:a,areMergedPropsEqual:o};function c(t){const[n,i,a]=M.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=ql(t,cc);return[t.context,e,n]}),[t]),r=M.useMemo((()=>n&&n.Consumer&&(0,Xl.isContextConsumer)(M.createElement(n.Consumer,null))?n:u),[n,u]),o=M.useContext(r),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(o)&&Boolean(o.store),d=l?t.store:o.store,p=c?o.getServerState:d.getState,h=M.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:s,initMergeProps:i}=t,a=ql(t,Ql);return Jl(n(e,a),s(e,a),i(e,a),e,a)}(d.dispatch,s)),[d]),[f,g]=M.useMemo((()=>{if(!m)return dc;const e=ac(d,l?void 0:o.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,l,o]),b=M.useMemo((()=>l?o:zl({},o,{subscription:f})),[l,o,f]),v=M.useRef(),y=M.useRef(a),x=M.useRef(),_=M.useRef(!1),S=(M.useRef(!1),M.useRef(!1)),w=M.useRef();rc((()=>(S.current=!0,()=>{S.current=!1})),[]);const k=M.useMemo((()=>()=>x.current&&a===y.current?x.current:h(d.getState(),a)),[d,a]),j=M.useMemo((()=>e=>f?function(e,t,n,s,i,a,r,o,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!o.current)return;const e=t.getState();let n,h;try{n=s(e,i.current)}catch(e){h=e,p=e}h||(p=null),n===a.current?r.current||c():(a.current=n,l.current=n,r.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,d,f,h,y,v,_,S,x,g,e):()=>{}),[f]);var T,C;let D;T=pc,C=[y,v,_,a,x,g],rc((()=>T(...C)),undefined);try{D=uc(j,k,p?()=>h(p(),a):k)}catch(e){throw w.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${w.current.stack}\n\n`),e}rc((()=>{w.current=void 0,x.current=void 0,v.current=D}));const P=M.useMemo((()=>M.createElement(e,zl({},D,{ref:i}))),[i,e,D]);return M.useMemo((()=>m?M.createElement(r.Provider,{value:b},P):P),[r,P,b])}const f=M.memo(c);if(f.WrappedComponent=e,f.displayName=c.displayName=n,l){const t=M.forwardRef((function(e,t){return M.createElement(f,zl({},e,{reactReduxForwardedRef:t}))})),s=t;return s.displayName=n,s.WrappedComponent=e,Kl()(s,e)}return Kl()(f,e)}},fc=function({store:e,context:t,children:n,serverState:s,stabilityCheck:i="once",noopCheck:a="once"}){const r=M.useMemo((()=>{const t=ac(e);return{store:e,subscription:t,getServerState:s?()=>s:void 0,stabilityCheck:i,noopCheck:a}}),[e,s,i,a]),o=M.useMemo((()=>e.getState()),[e]);rc((()=>{const{subscription:t}=r;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[r,o]);const l=t||$l;return M.createElement(l.Provider,{value:r},n)};var gc;Wl=Nl.useSyncExternalStoreWithSelector,(e=>{uc=e})(Ul.useSyncExternalStore),gc=je.unstable_batchedUpdates,Fl=gc;var bc=r(50925),vc=r.n(bc);function yc(e,t){return yc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yc(e,t)}function xc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,yc(e,t)}var _c=r(76523),Sc=r.n(_c);function wc(){return wc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},wc.apply(null,arguments)}var kc=r(8505),jc=r.n(kc);function Tc(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}r(44363);var Cc=1073741823,Dc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},Pc=M.createContext||function(e,t){var n,s,i,a="__create-react-context-"+((Dc[i="__global_unique_id__"]=(Dc[i]||0)+1)+"__"),r=function(e){function n(){for(var t,n,s,i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).emitter=(n=t.props.value,s=[],{on:function(e){s.push(e)},off:function(e){s=s.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,s.forEach((function(e){return e(n,t)}))}}),t}xc(n,e);var s=n.prototype;return s.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},s.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,s=this.props.value,i=e.value;((a=s)===(r=i)?0!==a||1/a==1/r:a!=a&&r!=r)?n=0:(n="function"==typeof t?t(s,i):Cc,0!=(n|=0)&&this.emitter.set(e.value,n))}var a,r},s.render=function(){return this.props.children},n}(M.Component);r.childContextTypes=((n={})[a]=Sc().object.isRequired,n);var o=function(t){function n(){for(var e,n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return(e=t.call.apply(t,[this].concat(s))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){e.observedBits&n&&e.setState({value:e.getValue()})},e}xc(n,t);var s=n.prototype;return s.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?Cc:t},s.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?Cc:e},s.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},s.getValue=function(){return this.context[a]?this.context[a].get():e},s.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(M.Component);return o.contextTypes=((s={})[a]=Sc().object,s),{Provider:r,Consumer:o}},Oc=function(e){var t=Pc();return t.displayName=e,t},Ic=Oc("Router-History"),Mc=Oc("Router"),Lc=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}xc(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return M.createElement(Mc.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},M.createElement(Ic.Provider,{children:this.props.children||null,value:this.props.history}))},t}(M.Component);M.Component,M.Component;var Ac={},Ec=0;function Rc(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,s=n.path,i=n.exact,a=void 0!==i&&i,r=n.strict,o=void 0!==r&&r,l=n.sensitive,c=void 0!==l&&l;return[].concat(s).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var s=function(e,t){var n=""+t.end+t.strict+t.sensitive,s=Ac[n]||(Ac[n]={});if(s[e])return s[e];var i=[],a={regexp:jc()(e,i,t),keys:i};return Ec<1e4&&(s[e]=a,Ec++),a}(n,{end:a,strict:o,sensitive:c}),i=s.regexp,r=s.keys,l=i.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return a&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:r.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var Uc=function(e){function t(){return e.apply(this,arguments)||this}return xc(t,e),t.prototype.render=function(){var e=this;return M.createElement(Mc.Consumer,null,(function(t){t||x(!1);var n=e.props.location||t.location,s=wc({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?Rc(n.pathname,e.props):t.match}),i=e.props,a=i.children,r=i.component,o=i.render;return Array.isArray(a)&&function(e){return 0===M.Children.count(e)}(a)&&(a=null),M.createElement(Mc.Provider,{value:s},s.match?a?"function"==typeof a?a(s):a:r?M.createElement(r,s):o?o(s):null:"function"==typeof a?a(s):null)}))},t}(M.Component);M.Component;var Nc=function(e){function t(){return e.apply(this,arguments)||this}return xc(t,e),t.prototype.render=function(){var e=this;return M.createElement(Mc.Consumer,null,(function(t){t||x(!1);var n,s,i=e.props.location||t.location;return M.Children.forEach(e.props.children,(function(e){if(null==s&&M.isValidElement(e)){n=e;var a=e.props.path||e.props.from;s=a?Rc(i.pathname,wc({},e.props,{path:a})):t.match}})),s?M.cloneElement(n,{location:i,computedMatch:s}):null}))},t}(M.Component);function Fc(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,s=Tc(t,["wrappedComponentRef"]);return M.createElement(Mc.Consumer,null,(function(t){return t||x(!1),M.createElement(e,wc({},s,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Kl()(n,e)}var Yc=M.useContext;function Hc(){return Yc(Ic)}var Bc=r(38514),Vc=r.n(Bc),$c="@@router/LOCATION_CHANGE",Wc="@@router/CALL_HISTORY_METHOD",zc=function(e){return function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return{type:Wc,payload:{method:e,args:n}}}},qc=zc("push");function Gc(e){return Gc="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},Gc(e)}zc("replace"),zc("go"),zc("goBack"),zc("goForward");const Kc=function(e){var t=e.getIn,n=e.toJS,s=function(e){var s,i=n(t(e,["router"]));if(null==(s=i)||"object"!==Gc(s)||!t(s,["location"])||!t(s,["action"]))throw'Could not find router reducer in state tree, it must be mounted under "router"';return i},i=function(e){return n(t(s(e),["location"]))};return{getLocation:i,getAction:function(e){return n(t(s(e),["action"]))},getRouter:s,getSearch:function(e){return n(t(s(e),["location","search"]))},getHash:function(e){return n(t(s(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(s){var a=(i(s)||{}).pathname;if(a===t)return n;t=a;var r=Rc(a,e);return r&&n&&r.url===n.url&&r.isExact===n.isExact||(n=r),n}}}};function Xc(e){return Xc="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},Xc(e)}function Qc(){return Qc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Qc.apply(this,arguments)}function Jc(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zc(e)}function eu(e,t){return eu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eu(e,t)}const tu=function(e){var t=Kc(e).getLocation,n=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&&eu(e,t)}(r,e);var n,s,i,a=(i=r,function(){var e,t=Zc(i);if(function(){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}}()){var n=Zc(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Xc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=a.call(this,e);var s=e.store,i=e.history,o=e.onLocationChanged,l=e.stateCompareFunction;n.inTimeTravelling=!1,n.unsubscribe=s.subscribe((function(){var a=!e.noTimeTravelDebugging,r=t(s.getState()),o=r.pathname,c=r.search,u=r.hash,d=r.state,p=i.location,h=p.pathname,m=p.search,f=p.hash,g=p.state;!a||"PUSH"!==e.history.action||h===o&&m===c&&f===u&&Vc()(d,g,l)||(n.inTimeTravelling=!0,i.push({pathname:o,search:c,hash:u,state:d}))}));var c=function(e,t){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.inTimeTravelling?n.inTimeTravelling=!1:o(e,t,s)};return n.unlisten=i.listen(c),e.noInitialPop||c(i.location,i.action,!0),n}return n=r,(s=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,s=e.children;return t?M.createElement(M.Fragment,null,s):M.createElement(Lc,{history:n},s)}}])&&Jc(n.prototype,s),r}(M.PureComponent);n.propTypes={store:vc().shape({getState:vc().func.isRequired,subscribe:vc().func.isRequired}).isRequired,history:vc().shape({action:vc().string.isRequired,listen:vc().func.isRequired,location:vc().object.isRequired,push:vc().func.isRequired}).isRequired,basename:vc().string,children:vc().oneOfType([vc().func,vc().node]),onLocationChanged:vc().func.isRequired,noInitialPop:vc().bool,noTimeTravelDebugging:vc().bool,stateCompareFunction:vc().func,omitRouter:vc().bool};var s=function(e){var t=e.context||$l;if(null==t)throw"Please upgrade to react-redux v6";return M.createElement(t.Consumer,null,(function(t){var s=t.store;return M.createElement(n,Qc({store:s},e))}))};return s.propTypes={context:vc().object},mc(null,(function(e){return{onLocationChanged:function(t,n,s){return e(function(e,t){return{type:$c,payload:{location:e,action:t,isFirstRendering:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}}(t,n,s))}}}))(s)};function nu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){au(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function au(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ru=function(e){if(e&&e.query)return e;var t=e&&e.search;if("string"!=typeof t||0===t.length)return iu({},e,{query:{}});var n=t.substring(1).split("&").reduce((function(e,t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],s=!0,i=!1,a=void 0;try{for(var r,o=e[Symbol.iterator]();!(s=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);s=!0);}catch(e){i=!0,a=e}finally{try{s||null==o.return||o.return()}finally{if(i)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return nu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("="),2);return iu({},e,au({},n[0],n[1]))}),{});return iu({},e,{query:n})};const ou=function(e){var t=e.fromJS,n=e.merge;return function(e){var s=t({location:ru(e.location),action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.type,r=i.payload;if(a===$c){var o=r.location,l=r.action;return r.isFirstRendering?e:n(e,{location:t(ru(o)),action:l})}return e}}};function lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uu={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var s=e,i=0;i<n&&s;++i)s=s[t[i]];return s}},merge:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lu(Object(n),!0).forEach((function(t){cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},toJS:function(e){return e}};const du=uu;var pu=tu(du),hu=ou(du),mu=Kc(du),fu=(mu.getLocation,mu.getAction,mu.getHash,mu.getRouter,mu.getSearch,mu.createMatchSelector,function(e,t){return fu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},fu(e,t)});function gu(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}fu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var bu=function(){return bu=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},bu.apply(this,arguments)};function vu(e,t,n,s){return new(n||(n=Promise))((function(i,a){function r(e){try{l(s.next(e))}catch(e){a(e)}}function o(e){try{l(s.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}l((s=s.apply(e,t||[])).next())}))}function yu(e,t,n){if(n||2===arguments.length)for(var s,i=0,a=t.length;i<a;i++)!s&&i in t||(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}function xu(e,t){var n=t&&t.cache?t.cache:Iu,s=t&&t.serializer?t.serializer:Pu;return(t&&t.strategy?t.strategy:ku)(e,{cache:n,serializer:s})}function _u(e,t,n,s){var i,a=null==(i=s)||"number"==typeof i||"boolean"==typeof i?s:n(s),r=t.get(a);return void 0===r&&(r=e.call(this,s),t.set(a,r)),r}function Su(e,t,n){var s=Array.prototype.slice.call(arguments,3),i=n(s),a=t.get(i);return void 0===a&&(a=e.apply(this,s),t.set(i,a)),a}function wu(e,t,n,s,i){return n.bind(t,e,s,i)}function ku(e,t){return wu(e,this,1===e.length?_u:Su,t.cache.create(),t.serializer)}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var ju,Tu,Cu,Du,Pu=function(){return JSON.stringify(arguments)},Ou=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),Iu={create:function(){return new Ou}},Mu={variadic:function(e,t){return wu(e,this,Su,t.cache.create(),t.serializer)},monadic:function(e,t){return wu(e,this,_u,t.cache.create(),t.serializer)}};function Lu(e){return e.type===Tu.literal}function Au(e){return e.type===Tu.argument}function Eu(e){return e.type===Tu.number}function Ru(e){return e.type===Tu.date}function Uu(e){return e.type===Tu.time}function Nu(e){return e.type===Tu.select}function Fu(e){return e.type===Tu.plural}function Yu(e){return e.type===Tu.pound}function Hu(e){return e.type===Tu.tag}function Bu(e){return!(!e||"object"!=typeof e||e.type!==Cu.number)}function Vu(e){return!(!e||"object"!=typeof e||e.type!==Cu.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(ju||(ju={})),(Du=Tu||(Tu={}))[Du.literal=0]="literal",Du[Du.argument=1]="argument",Du[Du.number=2]="number",Du[Du.date=3]="date",Du[Du.time=4]="time",Du[Du.select=5]="select",Du[Du.plural=6]="plural",Du[Du.pound=7]="pound",Du[Du.tag=8]="tag",function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}(Cu||(Cu={}));var $u=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wu=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function zu(e){var t={};return e.replace(Wu,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var qu=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Gu=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ku=/^(@+)?(\+|#+)?[rs]?$/g,Xu=/(\*)(0+)|(#+)(0+)|(0+)/g,Qu=/^(0+)$/;function Ju(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(Ku,(function(e,n,s){return"string"!=typeof s?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===s?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof s?s.length:0)),""})),t}function Zu(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function ed(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Qu.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function td(e){return Zu(e)||{}}function nd(e){for(var t={},n=0,s=e;n<s.length;n++){var i=s[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=bu(bu(bu({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return bu(bu({},e),td(t))}),{}));continue;case"engineering":t=bu(bu(bu({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return bu(bu({},e),td(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Xu,(function(e,n,s,i,a,r){if(n)t.minimumIntegerDigits=s.length;else{if(i&&a)throw new Error("We currently do not support maximum integer digits");if(r)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(Qu.test(i.stem))t.minimumIntegerDigits=i.stem.length;else if(Gu.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Gu,(function(e,n,s,i,a,r){return"*"===s?t.minimumFractionDigits=n.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:a&&r?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+r.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var a=i.options[0];"w"===a?t=bu(bu({},t),{trailingZeroDisplay:"stripIfInteger"}):a&&(t=bu(bu({},t),Ju(a)))}else if(Ku.test(i.stem))t=bu(bu({},t),Ju(i.stem));else{var r=Zu(i.stem);r&&(t=bu(bu({},t),r));var o=ed(i.stem);o&&(t=bu(bu({},t),o))}}return t}var sd,id={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function ad(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,s=e.language;return"root"!==s&&(n=e.maximize().region),(id[n||""]||id[s||""]||id["".concat(s,"-001")]||id["001"])[0]}var rd=new RegExp("^".concat($u.source,"*")),od=new RegExp("".concat($u.source,"*$"));function ld(e,t){return{start:e,end:t}}var cd=!!String.prototype.startsWith&&"_a".startsWith("a",1),ud=!!String.fromCodePoint,dd=!!Object.fromEntries,pd=!!String.prototype.codePointAt,hd=!!String.prototype.trimStart,md=!!String.prototype.trimEnd,fd=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},gd=!0;try{gd="a"===(null===(sd=kd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===sd?void 0:sd[0])}catch(e){gd=!1}var bd,vd=cd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},yd=ud?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,s="",i=e.length,a=0;i>a;){if((n=e[a++])>1114111)throw RangeError(n+" is not a valid code point");s+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return s},xd=dd?Object.fromEntries:function(e){for(var t={},n=0,s=e;n<s.length;n++){var i=s[n],a=i[0],r=i[1];t[a]=r}return t},_d=pd?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var s,i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?i:s-56320+(i-55296<<10)+65536}},Sd=hd?function(e){return e.trimStart()}:function(e){return e.replace(rd,"")},wd=md?function(e){return e.trimEnd()}:function(e){return e.replace(od,"")};function kd(e,t){return new RegExp(e,t)}if(gd){var jd=kd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");bd=function(e,t){var n;return jd.lastIndex=t,null!==(n=jd.exec(e)[1])&&void 0!==n?n:""}}else bd=function(e,t){for(var n=[];;){var s=_d(e,t);if(void 0===s||Pd(s)||Od(s))break;n.push(s),t+=s>=65536?2:1}return yd.apply(void 0,n)};var Td,Cd=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var s=[];!this.isEOF();){var i=this.char();if(123===i){if((a=this.parseArgument(e,n)).err)return a;s.push(a.val)}else{if(125===i&&e>0)break;if(35!==i||"plural"!==t&&"selectordinal"!==t){if(60===i&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(ju.UNMATCHED_CLOSING_TAG,ld(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&Dd(this.peek()||0)){if((a=this.parseTag(e,t)).err)return a;s.push(a.val)}else{var a;if((a=this.parseLiteral(e,t)).err)return a;s.push(a.val)}}else{var r=this.clonePosition();this.bump(),s.push({type:Tu.pound,location:ld(r,this.clonePosition())})}}}return{val:s,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Tu.literal,value:"<".concat(s,"/>"),location:ld(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,r=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Dd(this.char()))return this.error(ju.INVALID_TAG,ld(r,this.clonePosition()));var o=this.clonePosition();return s!==this.parseTagName()?this.error(ju.UNMATCHED_CLOSING_TAG,ld(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Tu.tag,value:s,children:a,location:ld(n,this.clonePosition())},err:null}:this.error(ju.INVALID_TAG,ld(r,this.clonePosition())))}return this.error(ju.UNCLOSED_TAG,ld(n,this.clonePosition()))}return this.error(ju.INVALID_TAG,ld(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),s="";;){var i=this.tryParseQuote(t);if(i)s+=i;else{var a=this.tryParseUnquoted(e,t);if(a)s+=a;else{var r=this.tryParseLeftAngleBracket();if(!r)break;s+=r}}}var o=ld(n,this.clonePosition());return{val:{type:Tu.literal,value:s,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Dd(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return yd.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),yd(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ju.EXPECT_ARGUMENT_CLOSING_BRACE,ld(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ju.EMPTY_ARGUMENT,ld(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(ju.MALFORMED_ARGUMENT,ld(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ju.EXPECT_ARGUMENT_CLOSING_BRACE,ld(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Tu.argument,value:s,location:ld(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ju.EXPECT_ARGUMENT_CLOSING_BRACE,ld(n,this.clonePosition())):this.parseArgumentOptions(e,t,s,n);default:return this.error(ju.MALFORMED_ARGUMENT,ld(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=bd(this.message,t),s=t+n.length;return this.bumpTo(s),{value:n,location:ld(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var i,a=this.clonePosition(),r=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(r){case"":return this.error(ju.EXPECT_ARGUMENT_TYPE,ld(a,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(h=wd(b.val)).length)return this.error(ju.EXPECT_ARGUMENT_STYLE,ld(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:ld(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(s)).err)return v;var u=ld(s,this.clonePosition());if(l&&vd(null==l?void 0:l.style,"::",0)){var d=Sd(l.style.slice(2));if("number"===r)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:Tu.number,value:n,location:u,style:b.val},err:null};if(0===d.length)return this.error(ju.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var n="",s=0;s<e.length;s++){var i=e.charAt(s);if("j"===i){for(var a=0;s+1<e.length&&e.charAt(s+1)===i;)a++,s++;var r=1+(1&a),o=a<2?1:3+(a>>1),l=ad(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)n+="a";for(;r-- >0;)n=l+n}else n+="J"===i?"H":i}return n}(d,this.locale));var h={type:Cu.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?zu(p):{}};return{val:{type:"date"===r?Tu.date:Tu.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===r?Tu.number:"date"===r?Tu.date:Tu.time,value:n,location:u,style:null!==(i=null==l?void 0:l.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ju.EXPECT_SELECT_ARGUMENT_OPTIONS,ld(m,bu({},m)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),g=0;if("select"!==r&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(ju.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ld(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(ju.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ju.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=b.val}var v,y=this.tryParsePluralOrSelectOptions(e,r,t,f);if(y.err)return y;if((v=this.tryParseArgumentClose(s)).err)return v;var x=ld(s,this.clonePosition());return"select"===r?{val:{type:Tu.select,value:n,options:xd(y.val),location:x},err:null}:{val:{type:Tu.plural,value:n,options:xd(y.val),offset:g,pluralType:"plural"===r?"cardinal":"ordinal",location:x},err:null};default:return this.error(ju.INVALID_ARGUMENT_TYPE,ld(a,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ju.EXPECT_ARGUMENT_CLOSING_BRACE,ld(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ju.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,ld(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,s=e.split(qu).filter((function(e){return e.length>0}));n<s.length;n++){var i=s[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var a=i[0],r=i.slice(1),o=0,l=r;o<l.length;o++)if(0===l[o].length)throw new Error("Invalid number skeleton");t.push({stem:a,options:r})}return t}(e)}catch(e){return this.error(ju.INVALID_NUMBER_SKELETON,t)}return{val:{type:Cu.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?nd(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,s){for(var i,a=!1,r=[],o=new Set,l=s.value,c=s.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(ju.EXPECT_PLURAL_ARGUMENT_SELECTOR,ju.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=ld(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(o.has(l))return this.error("select"===t?ju.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ju.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(a=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ju.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ju.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,ld(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(p);if(m.err)return m;r.push([l,{value:h.val,location:ld(p,this.clonePosition())}]),o.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===r.length?this.error("select"===t?ju.EXPECT_SELECT_ARGUMENT_SELECTOR:ju.EXPECT_PLURAL_ARGUMENT_SELECTOR,ld(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(ju.MISSING_OTHER_CLAUSE,ld(this.clonePosition(),this.clonePosition())):{val:r,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var r=this.char();if(!(r>=48&&r<=57))break;i=!0,a=10*a+(r-48),this.bump()}var o=ld(s,this.clonePosition());return i?fd(a*=n)?{val:a,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=_d(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(vd(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Pd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function Dd(e){return e>=97&&e<=122||e>=65&&e<=90}function Pd(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function Od(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Id(e){e.forEach((function(e){if(delete e.location,Nu(e)||Fu(e))for(var t in e.options)delete e.options[t].location,Id(e.options[t].value);else Eu(e)&&Bu(e.style)||(Ru(e)||Uu(e))&&Vu(e.style)?delete e.style.location:Hu(e)&&Id(e.children)}))}function Md(e,t){void 0===t&&(t={}),t=bu({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Cd(e,t).parse();if(n.err){var s=SyntaxError(ju[n.err.kind]);throw s.location=n.err.location,s.originalMessage=n.err.message,s}return(null==t?void 0:t.captureLocation)||Id(n.val),n.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Td||(Td={}));var Ld,Ad=function(e){function t(t,n,s){var i=e.call(this,t)||this;return i.code=n,i.originalMessage=s,i}return gu(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Ed=function(e){function t(t,n,s,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),Td.INVALID_VALUE,i)||this}return gu(t,e),t}(Ad),Rd=function(e){function t(t,n,s){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Td.INVALID_VALUE,s)||this}return gu(t,e),t}(Ad),Ud=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Td.MISSING_VALUE,n)||this}return gu(t,e),t}(Ad);function Nd(e){return"function"==typeof e}function Fd(e,t,n,s,i,a,r){if(1===e.length&&Lu(e[0]))return[{type:Ld.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Lu(u))o.push({type:Ld.literal,value:u.value});else if(Yu(u))"number"==typeof a&&o.push({type:Ld.literal,value:n.getNumberFormat(t).format(a)});else{var d=u.value;if(!i||!(d in i))throw new Ud(d,r);var p=i[d];if(Au(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),o.push({type:"string"==typeof p?Ld.literal:Ld.object,value:p});else if(Ru(u)){var h="string"==typeof u.style?s.date[u.style]:Vu(u.style)?u.style.parsedOptions:void 0;o.push({type:Ld.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(Uu(u))h="string"==typeof u.style?s.time[u.style]:Vu(u.style)?u.style.parsedOptions:s.time.medium,o.push({type:Ld.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(Eu(u))(h="string"==typeof u.style?s.number[u.style]:Bu(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),o.push({type:Ld.literal,value:n.getNumberFormat(t,h).format(p)});else{if(Hu(u)){var m=u.children,f=u.value,g=i[f];if(!Nd(g))throw new Rd(f,"function",r);var b=g(Fd(m,t,n,s,i,a).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),o.push.apply(o,b.map((function(e){return{type:"string"==typeof e?Ld.literal:Ld.object,value:e}})))}if(Nu(u)){if(!(v=u.options[p]||u.options.other))throw new Ed(u.value,p,Object.keys(u.options),r);o.push.apply(o,Fd(v.value,t,n,s,i))}else if(Fu(u)){var v;if(!(v=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Ad('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Td.MISSING_INTL_API,r);var y=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new Ed(u.value,p,Object.keys(u.options),r);o.push.apply(o,Fd(v.value,t,n,s,i,p-(u.offset||0)))}}}}return(x=o).length<2?x:x.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Ld.literal&&t.type===Ld.literal?n.value+=t.value:e.push(t),e}),[]);var x}function Yd(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Ld||(Ld={}));var Hd=function(){function e(t,n,s,i){void 0===n&&(n=e.defaultLocale);var a,r,o,l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Ld.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return Fd(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=i||{},u=(c.formatters,function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(c,["formatters"]));this.ast=e.__parse(t,bu(bu({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(r=e.formats,(o=s)?Object.keys(r).reduce((function(e,t){var n,s;return e[t]=(n=r[t],(s=o[t])?bu(bu(bu({},n||{}),s||{}),Object.keys(n).reduce((function(e,t){return e[t]=bu(bu({},n[t]),s[t]||{}),e}),{})):n),e}),bu({},r)):r),this.formatters=i&&i.formatters||(void 0===(a=this.formatterCache)&&(a={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,yu([void 0],t,!1)))}),{cache:Yd(a.number),strategy:Mu.variadic}),getDateTimeFormat:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,yu([void 0],t,!1)))}),{cache:Yd(a.dateTime),strategy:Mu.variadic}),getPluralRules:xu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,yu([void 0],t,!1)))}),{cache:Yd(a.pluralRules),strategy:Mu.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Md,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const Bd=Hd,Vd=(0,M.createContext)("en-US"),$d=(0,M.createContext)({}),Wd=({messages:e,localeCode:t,parameters:n,children:s})=>(0,P.jsx)(Vd.Provider,{value:t,children:(0,P.jsx)($d.Provider,{value:n,children:(0,P.jsx)(Dn,{messages:e,children:s})})}),zd=e=>{const t=Pn(e),n=(0,M.useContext)(Vd),s=(0,M.useContext)($d);return(0,M.useCallback)(((e,i,a)=>{const r=t(e,Object.assign(Object.assign({},s),i),a);if("string"!=typeof r)return r;try{const e=new Bd(r,n,void 0,{ignoreTag:!0}).format(Object.assign(Object.assign({},s),i));return Array.isArray(e)?M.Children.toArray(e):e}catch(e){return r}}),[t,n,e,s])};const qd=e=>{var{component:t,content:n,children:s,params:i,unsafe:a,fallback:r,namespace:o}=e,l=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["component","content","children","params","unsafe","fallback","namespace"]);const c=t||"span",u=zd(o)(n||s||"",i,r),d=Object.assign({},l);return a&&"string"==typeof u?d.dangerouslySetInnerHTML={__html:u}:d.children=u,(0,P.jsx)(c,Object.assign({},d))};var Gd=r(55373),Kd=r.n(Gd);const Xd=(e,t,...n)=>{e.preventDefault(),e.stopPropagation(),t&&(n?t(...n):t())},Qd=(e,...t)=>(...n)=>{const s={type:e};return t.forEach(((e,i)=>{s[t[i]]=n[i]})),s},Jd=({status:e,message:t,actionMessages:n})=>{const s=[];return e&&t&&t.length&&s.push({key:sp(4),status:e,message:t}),n&&n.length&&n.forEach((e=>{const{message:t}=e;t&&t.length>0&&s.push({key:sp(4),status:e.status,message:t})})),s},Zd=e=>{let t={};return e.steps.forEach((e=>{t=Object.assign(Object.assign({},t),{[e.code]:{title:e.title,status:e.status,progress:e.progress,icon:e.icon,hint:e.hint}})})),Object.assign(Object.assign({},e),{steps:t})},ep=e=>`${e.slug}-${e.instanceId}`,tp=e=>e.itemsIds.map((t=>`${t}-${e.instanceId}`)),np=(e,t,n)=>{const s=(t-1)*n;return{pages:Math.ceil(e.length/n),currentItems:e.slice(s,s+n)}},sp=e=>Math.random().toString(36).substr(2,e),ip=(e,t,n=null)=>e&&e.data&&e.data[t]?e.data[t]:n,ap=(e,t)=>e.reduce(((e,n)=>{const{key:s,value:i}=t(n);return e[s]=i,e}),{}),rp=(e,t)=>-1!==e.indexOf(t),op=(e,t,n)=>e&&e.hasOwnProperty(t)?e[t]:n,lp=(e,t,n="slug")=>{const s=t.filter((t=>e.includes(t[n])));return s.length===e.length?e:s.map((e=>e[n]))},cp=(e,...t)=>{"function"==typeof e&&e(...t)},up=(e,t)=>e.filter((e=>!t.includes(e)));var dp;!function(e){e.ASC="ASC",e.DESC="DESC"}(dp||(dp={}));const pp=(e,t,n=dp.ASC)=>{let s=0;return e<t&&(s=-1),e>t&&(s=1),(n===dp.ASC?1:-1)*s},hp=e=>{const t=e.path.replace(/\\/g,"/").replace(/\/\//g,"/").replace(/\/$/,"").split("/");return t[t.length-1]};var mp=r(6672);const fp="success",gp="error",bp="themes",vp="plugins",yp="success",xp="warning",_p="danger",Sp="clone",wp="sync",kp="secure",jp="smart_update",Tp="sets",Cp="update",Dp="wp_toolkit",Pp="multiple_sites_management",Op="vulnerability",Ip="initial",Mp="requested",Lp="submitted",Ap="loading_error",Ep="updated",Rp="wp-toolkit-",Up=`${Rp}disabled-form-styles`,Np=`${Rp}drawer-with-progress-states`,Fp=`${Rp}instance-ssl-status-popover`,Yp=mp.CLS_PREFIX,Hp=`${Rp}context`,Bp="app/ADD_APP_MESSAGE",Vp="app/CLEAR_APP_MESSAGE",$p="app/SET_SEARCH",Wp="app/DISABLE_SMART_UPDATE_PROMO_FOR_INSTANCES",zp="app/DISABLE_SMART_UPDATE_PROMO_FOR_UPDATES_SCREEN",qp="app/DISABLE_SMART_UPDATE_PROMO_FOR_MULTIPLE_SITES_UPDATES_SCREEN",Gp="app/GET_INITIAL_OPTIONS_FINISHED",Kp="app/SET_CHANGELOG",Xp="app/CLOSE_FLASH_MESSAGE",Qp="app/SET_PREMIUM_USERS",Jp="app/CLOSE_GLOBAL_ALERT",Zp="app/ADD_UP_VOTED_FEATURE",eh="app/LICENSE_INFO_UPDATED",th="mode",nh="domain";function sh(e,t){return function(){return e.apply(t,arguments)}}const{toString:ih}=Object.prototype,{getPrototypeOf:ah}=Object,rh=(dh=Object.create(null),e=>{const t=ih.call(e);return dh[t]||(dh[t]=t.slice(8,-1).toLowerCase())}),oh=e=>(e=e.toLowerCase(),t=>rh(t)===e),lh=e=>t=>typeof t===e,{isArray:ch}=Array,uh=lh("undefined");var dh;const ph=oh("ArrayBuffer"),hh=lh("string"),mh=lh("function"),fh=lh("number"),gh=e=>null!==e&&"object"==typeof e,bh=e=>{if("object"!==rh(e))return!1;const t=ah(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},vh=oh("Date"),yh=oh("File"),xh=oh("Blob"),_h=oh("FileList"),Sh=oh("URLSearchParams"),[wh,kh,jh,Th]=["ReadableStream","Request","Response","Headers"].map(oh);function Ch(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let s,i;if("object"!=typeof e&&(e=[e]),ch(e))for(s=0,i=e.length;s<i;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let r;for(s=0;s<a;s++)r=i[s],t.call(null,e[r],r,e)}}function Dh(e,t){t=t.toLowerCase();const n=Object.keys(e);let s,i=n.length;for(;i-- >0;)if(s=n[i],t===s.toLowerCase())return s;return null}const Ph="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Oh=e=>!uh(e)&&e!==Ph,Ih=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&ah(Uint8Array)),Mh=oh("HTMLFormElement"),Lh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ah=oh("RegExp"),Eh=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ch(n,((n,i)=>{let a;!1!==(a=t(n,i,e))&&(s[i]=a||n)})),Object.defineProperties(e,s)},Rh="abcdefghijklmnopqrstuvwxyz",Uh="0123456789",Nh={DIGIT:Uh,ALPHA:Rh,ALPHA_DIGIT:Rh+Rh.toUpperCase()+Uh},Fh=oh("AsyncFunction"),Yh=(Hh="function"==typeof setImmediate,Bh=mh(Ph.postMessage),Hh?setImmediate:Bh?((e,t)=>(Ph.addEventListener("message",(({source:n,data:s})=>{n===Ph&&s===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),Ph.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var Hh,Bh;const Vh="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ph):"undefined"!=typeof process&&process.nextTick||Yh,$h={isArray:ch,isArrayBuffer:ph,isBuffer:function(e){return null!==e&&!uh(e)&&null!==e.constructor&&!uh(e.constructor)&&mh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||mh(e.append)&&("formdata"===(t=rh(e))||"object"===t&&mh(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ph(e.buffer),t},isString:hh,isNumber:fh,isBoolean:e=>!0===e||!1===e,isObject:gh,isPlainObject:bh,isReadableStream:wh,isRequest:kh,isResponse:jh,isHeaders:Th,isUndefined:uh,isDate:vh,isFile:yh,isBlob:xh,isRegExp:Ah,isFunction:mh,isStream:e=>gh(e)&&mh(e.pipe),isURLSearchParams:Sh,isTypedArray:Ih,isFileList:_h,forEach:Ch,merge:function e(){const{caseless:t}=Oh(this)&&this||{},n={},s=(s,i)=>{const a=t&&Dh(n,i)||i;bh(n[a])&&bh(s)?n[a]=e(n[a],s):bh(s)?n[a]=e({},s):ch(s)?n[a]=s.slice():n[a]=s};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Ch(arguments[e],s);return n},extend:(e,t,n,{allOwnKeys:s}={})=>(Ch(t,((t,s)=>{n&&mh(t)?e[s]=sh(t,n):e[s]=t}),{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,s)=>{let i,a,r;const o={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)r=i[a],s&&!s(r,e,t)||o[r]||(t[r]=e[r],o[r]=!0);e=!1!==n&&ah(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:rh,kindOfTest:oh,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return-1!==s&&s===n},toArray:e=>{if(!e)return null;if(ch(e))return e;let t=e.length;if(!fh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const n=s.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const s=[];for(;null!==(n=e.exec(t));)s.push(n);return s},isHTMLForm:Mh,hasOwnProperty:Lh,hasOwnProp:Lh,reduceDescriptors:Eh,freezeMethods:e=>{Eh(e,((t,n)=>{if(mh(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const s=e[n];mh(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},s=e=>{e.forEach((e=>{n[e]=!0}))};return ch(e)?s(e):s(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Dh,global:Ph,isContextDefined:Oh,ALPHABET:Nh,generateString:(e=16,t=Nh.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n},isSpecCompliantForm:function(e){return!!(e&&mh(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,s)=>{if(gh(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[s]=e;const i=ch(e)?[]:{};return Ch(e,((e,t)=>{const a=n(e,s+1);!uh(a)&&(i[t]=a)})),t[s]=void 0,i}}return e};return n(e,0)},isAsyncFn:Fh,isThenable:e=>e&&(gh(e)||mh(e))&&mh(e.then)&&mh(e.catch),setImmediate:Yh,asap:Vh};function Wh(e,t,n,s,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),i&&(this.response=i,this.status=i.status?i.status:null)}$h.inherits(Wh,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$h.toJSONObject(this.config),code:this.code,status:this.status}}});const zh=Wh.prototype,qh={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{qh[e]={value:e}})),Object.defineProperties(Wh,qh),Object.defineProperty(zh,"isAxiosError",{value:!0}),Wh.from=(e,t,n,s,i,a)=>{const r=Object.create(zh);return $h.toFlatObject(e,r,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Wh.call(r,e.message,t,n,s,i),r.cause=e,r.name=e.name,a&&Object.assign(r,a),r};const Gh=Wh;function Kh(e){return $h.isPlainObject(e)||$h.isArray(e)}function Xh(e){return $h.endsWith(e,"[]")?e.slice(0,-2):e}function Qh(e,t,n){return e?e.concat(t).map((function(e,t){return e=Xh(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Jh=$h.toFlatObject($h,{},null,(function(e){return/^is[A-Z]/.test(e)})),Zh=function(e,t,n){if(!$h.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(n=$h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$h.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,a=n.dots,r=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$h.isSpecCompliantForm(t);if(!$h.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($h.isDate(e))return e.toISOString();if(!o&&$h.isBlob(e))throw new Gh("Blob is not supported. Use a Buffer instead.");return $h.isArrayBuffer(e)||$h.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let o=e;if(e&&!i&&"object"==typeof e)if($h.endsWith(n,"{}"))n=s?n:n.slice(0,-2),e=JSON.stringify(e);else if($h.isArray(e)&&function(e){return $h.isArray(e)&&!e.some(Kh)}(e)||($h.isFileList(e)||$h.endsWith(n,"[]"))&&(o=$h.toArray(e)))return n=Xh(n),o.forEach((function(e,s){!$h.isUndefined(e)&&null!==e&&t.append(!0===r?Qh([n],s,a):null===r?n:n+"[]",l(e))})),!1;return!!Kh(e)||(t.append(Qh(i,n,a),l(e)),!1)}const u=[],d=Object.assign(Jh,{defaultVisitor:c,convertValue:l,isVisitable:Kh});if(!$h.isObject(e))throw new TypeError("data must be an object");return function e(n,s){if(!$h.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+s.join("."));u.push(n),$h.forEach(n,(function(n,a){!0===(!($h.isUndefined(n)||null===n)&&i.call(t,n,$h.isString(a)?a.trim():a,s,d))&&e(n,s?s.concat(a):[a])})),u.pop()}}(e),t};function em(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function tm(e,t){this._pairs=[],e&&Zh(e,this,t)}const nm=tm.prototype;nm.append=function(e,t){this._pairs.push([e,t])},nm.toString=function(e){const t=e?function(t){return e.call(this,t,em)}:em;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const sm=tm;function im(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function am(e,t,n){if(!t)return e;const s=n&&n.encode||im;$h.isFunction(n)&&(n={serialize:n});const i=n&&n.serialize;let a;if(a=i?i(t,n):$h.isURLSearchParams(t)?t.toString():new sm(t,n).toString(s),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const rm=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){$h.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},om={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lm={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:sm,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},cm="undefined"!=typeof window&&"undefined"!=typeof document,um="object"==typeof navigator&&navigator||void 0,dm=cm&&(!um||["ReactNative","NativeScript","NS"].indexOf(um.product)<0),pm="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,hm=cm&&window.location.href||"http://localhost",mm={...e,...lm},fm=function(e){function t(e,n,s,i){let a=e[i++];if("__proto__"===a)return!0;const r=Number.isFinite(+a),o=i>=e.length;return a=!a&&$h.isArray(s)?s.length:a,o?($h.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!r):(s[a]&&$h.isObject(s[a])||(s[a]=[]),t(e,n,s[a],i)&&$h.isArray(s[a])&&(s[a]=function(e){const t={},n=Object.keys(e);let s;const i=n.length;let a;for(s=0;s<i;s++)a=n[s],t[a]=e[a];return t}(s[a])),!r)}if($h.isFormData(e)&&$h.isFunction(e.entries)){const n={};return $h.forEachEntry(e,((e,s)=>{t(function(e){return $h.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),s,n,0)})),n}return null},gm={transitional:om,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,i=$h.isObject(e);if(i&&$h.isHTMLForm(e)&&(e=new FormData(e)),$h.isFormData(e))return s?JSON.stringify(fm(e)):e;if($h.isArrayBuffer(e)||$h.isBuffer(e)||$h.isStream(e)||$h.isFile(e)||$h.isBlob(e)||$h.isReadableStream(e))return e;if($h.isArrayBufferView(e))return e.buffer;if($h.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Zh(e,new mm.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,s){return mm.isNode&&$h.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=$h.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Zh(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||s?(t.setContentType("application/json",!1),function(e){if($h.isString(e))try{return(0,JSON.parse)(e),$h.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||gm.transitional,n=t&&t.forcedJSONParsing,s="json"===this.responseType;if($h.isResponse(e)||$h.isReadableStream(e))return e;if(e&&$h.isString(e)&&(n&&!this.responseType||s)){const n=!(t&&t.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Gh.from(e,Gh.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:mm.classes.FormData,Blob:mm.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$h.forEach(["delete","get","head","post","put","patch"],(e=>{gm.headers[e]={}}));const bm=gm,vm=$h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ym=Symbol("internals");function xm(e){return e&&String(e).trim().toLowerCase()}function _m(e){return!1===e||null==e?e:$h.isArray(e)?e.map(_m):String(e)}function Sm(e,t,n,s,i){return $h.isFunction(s)?s.call(this,t,n):(i&&(t=n),$h.isString(t)?$h.isString(s)?-1!==t.indexOf(s):$h.isRegExp(s)?s.test(t):void 0:void 0)}class wm{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function i(e,t,n){const i=xm(t);if(!i)throw new Error("header name must be a non-empty string");const a=$h.findKey(s,i);(!a||void 0===s[a]||!0===n||void 0===n&&!1!==s[a])&&(s[a||t]=_m(e))}const a=(e,t)=>$h.forEach(e,((e,n)=>i(e,n,t)));if($h.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if($h.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,s,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),s=e.substring(i+1).trim(),!n||t[n]&&vm[n]||("set-cookie"===n?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)})),t})(e),t);else if($h.isHeaders(e))for(const[t,s]of e.entries())i(s,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=xm(e)){const n=$h.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}(e);if($h.isFunction(t))return t.call(this,e,n);if($h.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xm(e)){const n=$h.findKey(this,e);return!(!n||void 0===this[n]||t&&!Sm(0,this[n],n,t))}return!1}delete(e,t){const n=this;let s=!1;function i(e){if(e=xm(e)){const i=$h.findKey(n,e);!i||t&&!Sm(0,n[i],i,t)||(delete n[i],s=!0)}}return $h.isArray(e)?e.forEach(i):i(e),s}clear(e){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const i=t[n];e&&!Sm(0,this[i],i,e,!0)||(delete this[i],s=!0)}return s}normalize(e){const t=this,n={};return $h.forEach(this,((s,i)=>{const a=$h.findKey(n,i);if(a)return t[a]=_m(s),void delete t[i];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();r!==i&&delete t[i],t[r]=_m(s),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $h.forEach(this,((n,s)=>{null!=n&&!1!==n&&(t[s]=e&&$h.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ym]=this[ym]={accessors:{}}).accessors,n=this.prototype;function s(e){const s=xm(e);t[s]||(function(e,t){const n=$h.toCamelCase(" "+t);["get","set","has"].forEach((s=>{Object.defineProperty(e,s+n,{value:function(e,n,i){return this[s].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[s]=!0)}return $h.isArray(e)?e.forEach(s):s(e),this}}wm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$h.reduceDescriptors(wm.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),$h.freezeMethods(wm);const km=wm;function jm(e,t){const n=this||bm,s=t||n,i=km.from(s.headers);let a=s.data;return $h.forEach(e,(function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function Tm(e){return!(!e||!e.__CANCEL__)}function Cm(e,t,n){Gh.call(this,null==e?"canceled":e,Gh.ERR_CANCELED,t,n),this.name="CanceledError"}$h.inherits(Cm,Gh,{__CANCEL__:!0});const Dm=Cm;function Pm(e,t,n){const s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(new Gh("Request failed with status code "+n.status,[Gh.ERR_BAD_REQUEST,Gh.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Om=(e,t,n=3)=>{let s=0;const i=function(e,t){e=e||10;const n=new Array(e),s=new Array(e);let i,a=0,r=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=s[r];i||(i=l),n[a]=o,s[a]=l;let u=r,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===r&&(r=(r+1)%e),l-i<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,s,i=0,a=1e3/t;const r=(t,a=Date.now())=>{i=a,n=null,s&&(clearTimeout(s),s=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),o=t-i;o>=a?r(e,t):(n=e,s||(s=setTimeout((()=>{s=null,r(n)}),a-o)))},()=>n&&r(n)]}((n=>{const a=n.loaded,r=n.lengthComputable?n.total:void 0,o=a-s,l=i(o);s=a,e({loaded:a,total:r,progress:r?a/r:void 0,bytes:o,rate:l||void 0,estimated:l&&r&&a<=r?(r-a)/l:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})}),n)},Im=(e,t)=>{const n=null!=e;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Mm=e=>(...t)=>$h.asap((()=>e(...t))),Lm=mm.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,mm.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(mm.origin),mm.navigator&&/(msie|trident)/i.test(mm.navigator.userAgent)):()=>!0,Am=mm.hasStandardBrowserEnv?{write(e,t,n,s,i,a){const r=[e+"="+encodeURIComponent(t)];$h.isNumber(n)&&r.push("expires="+new Date(n).toGMTString()),$h.isString(s)&&r.push("path="+s),$h.isString(i)&&r.push("domain="+i),!0===a&&r.push("secure"),document.cookie=r.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Em(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Rm=e=>e instanceof km?{...e}:e;function Um(e,t){t=t||{};const n={};function s(e,t,n,s){return $h.isPlainObject(e)&&$h.isPlainObject(t)?$h.merge.call({caseless:s},e,t):$h.isPlainObject(t)?$h.merge({},t):$h.isArray(t)?t.slice():t}function i(e,t,n,i){return $h.isUndefined(t)?$h.isUndefined(e)?void 0:s(void 0,e,0,i):s(e,t,0,i)}function a(e,t){if(!$h.isUndefined(t))return s(void 0,t)}function r(e,t){return $h.isUndefined(t)?$h.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function o(n,i,a){return a in t?s(n,i):a in e?s(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:o,headers:(e,t,n)=>i(Rm(e),Rm(t),0,!0)};return $h.forEach(Object.keys(Object.assign({},e,t)),(function(s){const a=l[s]||i,r=a(e[s],t[s],s);$h.isUndefined(r)&&a!==o||(n[s]=r)})),n}const Nm=e=>{const t=Um({},e);let n,{data:s,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:r,headers:o,auth:l}=t;if(t.headers=o=km.from(o),t.url=am(Em(t.baseURL,t.url),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$h.isFormData(s))if(mm.hasStandardBrowserEnv||mm.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(!1!==(n=o.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];o.setContentType([e||"multipart/form-data",...t].join("; "))}if(mm.hasStandardBrowserEnv&&(i&&$h.isFunction(i)&&(i=i(t)),i||!1!==i&&Lm(t.url))){const e=a&&r&&Am.read(r);e&&o.set(a,e)}return t},Fm="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const s=Nm(e);let i=s.data;const a=km.from(s.headers).normalize();let r,o,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=s;function m(){c&&c(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(r),s.signal&&s.signal.removeEventListener("abort",r)}let f=new XMLHttpRequest;function g(){if(!f)return;const s=km.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Pm((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:s,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new Gh("Request aborted",Gh.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Gh("Network Error",Gh.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const i=s.transitional||om;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new Gh(t,i.clarifyTimeoutError?Gh.ETIMEDOUT:Gh.ECONNABORTED,e,f)),f=null},void 0===i&&a.setContentType(null),"setRequestHeader"in f&&$h.forEach(a.toJSON(),(function(e,t){f.setRequestHeader(t,e)})),$h.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),d&&"json"!==d&&(f.responseType=s.responseType),h&&([l,u]=Om(h,!0),f.addEventListener("progress",l)),p&&f.upload&&([o,c]=Om(p),f.upload.addEventListener("progress",o),f.upload.addEventListener("loadend",c)),(s.cancelToken||s.signal)&&(r=t=>{f&&(n(!t||t.type?new Dm(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(r),s.signal&&(s.signal.aborted?r():s.signal.addEventListener("abort",r)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);b&&-1===mm.protocols.indexOf(b)?n(new Gh("Unsupported protocol "+b+":",Gh.ERR_BAD_REQUEST,e)):f.send(i||null)}))},Ym=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,s=new AbortController;const i=function(e){if(!n){n=!0,r();const t=e instanceof Error?e:this.reason;s.abort(t instanceof Gh?t:new Dm(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new Gh(`timeout ${t} of ms exceeded`,Gh.ETIMEDOUT))}),t);const r=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:o}=s;return o.unsubscribe=()=>$h.asap(r),o}},Hm=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let s,i=0;for(;i<n;)s=i+t,yield e.slice(i,s),i=s},Bm=(e,t,n,s)=>{const i=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Hm(n,t)}(e,t);let a,r=0,o=e=>{a||(a=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await i.next();if(t)return o(),void e.close();let a=s.byteLength;if(n){let e=r+=a;n(e)}e.enqueue(new Uint8Array(s))}catch(e){throw o(e),e}},cancel:e=>(o(e),i.return())},{highWaterMark:2})},Vm="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,$m=Vm&&"function"==typeof ReadableStream,Wm=Vm&&("function"==typeof TextEncoder?(zm=new TextEncoder,e=>zm.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var zm;const qm=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Gm=$m&&qm((()=>{let e=!1;const t=new Request(mm.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Km=$m&&qm((()=>$h.isReadableStream(new Response("").body))),Xm={stream:Km&&(e=>e.body)};var Qm;Vm&&(Qm=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Xm[e]&&(Xm[e]=$h.isFunction(Qm[e])?t=>t[e]():(t,n)=>{throw new Gh(`Response type '${e}' is not supported`,Gh.ERR_NOT_SUPPORT,n)})})));const Jm={http:null,xhr:Fm,fetch:Vm&&(async e=>{let{url:t,method:n,data:s,signal:i,cancelToken:a,timeout:r,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Nm(e);c=c?(c+"").toLowerCase():"text";let h,m=Ym([i,a&&a.toAbortSignal()],r);const f=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Gm&&"get"!==n&&"head"!==n&&0!==(g=await(async(e,t)=>{const n=$h.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if($h.isBlob(e))return e.size;if($h.isSpecCompliantForm(e)){const t=new Request(mm.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $h.isArrayBufferView(e)||$h.isArrayBuffer(e)?e.byteLength:($h.isURLSearchParams(e)&&(e+=""),$h.isString(e)?(await Wm(e)).byteLength:void 0)})(t):n})(u,s))){let e,n=new Request(t,{method:"POST",body:s,duplex:"half"});if($h.isFormData(s)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Im(g,Om(Mm(l)));s=Bm(n.body,65536,e,t)}}$h.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;h=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:i?d:void 0});let a=await fetch(h);const r=Km&&("stream"===c||"response"===c);if(Km&&(o||r&&f)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=a[t]}));const t=$h.toFiniteNumber(a.headers.get("content-length")),[n,s]=o&&Im(t,Om(Mm(o),!0))||[];a=new Response(Bm(a.body,65536,n,(()=>{s&&s(),f&&f()})),e)}c=c||"text";let b=await Xm[$h.findKey(Xm,c)||"text"](a,e);return!r&&f&&f(),await new Promise(((t,n)=>{Pm(t,n,{data:b,headers:km.from(a.headers),status:a.status,statusText:a.statusText,config:e,request:h})}))}catch(t){if(f&&f(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new Gh("Network Error",Gh.ERR_NETWORK,e,h),{cause:t.cause||t});throw Gh.from(t,t&&t.code,e,h)}})};$h.forEach(Jm,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Zm=e=>`- ${e}`,ef=e=>$h.isFunction(e)||null===e||!1===e,tf=e=>{e=$h.isArray(e)?e:[e];const{length:t}=e;let n,s;const i={};for(let a=0;a<t;a++){let t;if(n=e[a],s=n,!ef(n)&&(s=Jm[(t=String(n)).toLowerCase()],void 0===s))throw new Gh(`Unknown adapter '${t}'`);if(s)break;i[t||"#"+a]=s}if(!s){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Zm).join("\n"):" "+Zm(e[0]):"as no adapter specified";throw new Gh("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return s};function nf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dm(null,e)}function sf(e){return nf(e),e.headers=km.from(e.headers),e.data=jm.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tf(e.adapter||bm.adapter)(e).then((function(t){return nf(e),t.data=jm.call(e,e.transformResponse,t),t.headers=km.from(t.headers),t}),(function(t){return Tm(t)||(nf(e),t&&t.response&&(t.response.data=jm.call(e,e.transformResponse,t.response),t.response.headers=km.from(t.response.headers))),Promise.reject(t)}))}const af={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{af[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const rf={};af.transitional=function(e,t,n){function s(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new Gh(s(i," has been removed"+(t?" in "+t:"")),Gh.ERR_DEPRECATED);return t&&!rf[i]&&(rf[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},af.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const of={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Gh("options must be an object",Gh.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let i=s.length;for(;i-- >0;){const a=s[i],r=t[a];if(r){const t=e[a],n=void 0===t||r(t,a,e);if(!0!==n)throw new Gh("option "+a+" must be "+n,Gh.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Gh("Unknown option "+a,Gh.ERR_BAD_OPTION)}},validators:af},lf=of.validators;class cf{constructor(e){this.defaults=e,this.interceptors={request:new rm,response:new rm}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Um(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:i}=t;void 0!==n&&of.assertOptions(n,{silentJSONParsing:lf.transitional(lf.boolean),forcedJSONParsing:lf.transitional(lf.boolean),clarifyTimeoutError:lf.transitional(lf.boolean)},!1),null!=s&&($h.isFunction(s)?t.paramsSerializer={serialize:s}:of.assertOptions(s,{encode:lf.function,serialize:lf.function},!0)),of.assertOptions(t,{baseUrl:lf.spelling("baseURL"),withXsrfToken:lf.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&$h.merge(i.common,i[t.method]);i&&$h.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=km.concat(a,i);const r=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!o){const e=[sf.bind(this),void 0];for(e.unshift.apply(e,r),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=r.length;let p=t;for(d=0;d<u;){const e=r[d++],t=r[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=sf.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return am(Em((e=Um(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}$h.forEach(["delete","get","head","options"],(function(e){cf.prototype[e]=function(t,n){return this.request(Um(n||{},{method:e,url:t,data:(n||{}).data}))}})),$h.forEach(["post","put","patch"],(function(e){function t(t){return function(n,s,i){return this.request(Um(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}cf.prototype[e]=t(),cf.prototype[e+"Form"]=t(!0)}));const uf=cf;class df{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const s=new Promise((e=>{n.subscribe(e),t=e})).then(e);return s.cancel=function(){n.unsubscribe(t)},s},e((function(e,s,i){n.reason||(n.reason=new Dm(e,s,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new df((function(t){e=t})),cancel:e}}}const pf=df,hf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(hf).forEach((([e,t])=>{hf[t]=e}));const mf=hf,ff=function e(t){const n=new uf(t),s=sh(uf.prototype.request,n);return $h.extend(s,uf.prototype,n,{allOwnKeys:!0}),$h.extend(s,n,null,{allOwnKeys:!0}),s.create=function(n){return e(Um(t,n))},s}(bm);ff.Axios=uf,ff.CanceledError=Dm,ff.CancelToken=pf,ff.isCancel=Tm,ff.VERSION="1.7.9",ff.toFormData=Zh,ff.AxiosError=Gh,ff.Cancel=ff.CanceledError,ff.all=function(e){return Promise.all(e)},ff.spread=function(e){return function(t){return e.apply(null,t)}},ff.isAxiosError=function(e){return $h.isObject(e)&&!0===e.isAxiosError},ff.mergeConfig=Um,ff.AxiosHeaders=km,ff.formToJSON=e=>fm($h.isHTMLForm(e)?new FormData(e):e),ff.getAdapter=tf,ff.HttpStatusCode=mf,ff.default=ff;const gf=ff,bf=e=>{const t=new Date;return e.performanceTesting={startTime:t.getTime()/1e3},e.headers=Object.assign(Object.assign({},e.headers),{"X-Performance-Testing-Start-Time":e.performanceTesting.startTime}),e},vf={Accept:"application/json","Cache-Control":"no-cache",Credentials:"same-origin"},yf=e=>(!1===e.includes("http")&&(e=`${window.location.protocol}//${window.location.host}${e}`),e),xf=(e={})=>Object.assign(Object.assign(Object.assign({},e),vf),{"X-Wpt-Ui":"true"}),_f=e=>!!(e&&e.data&&e.data.formErrors),Sf=e=>!!(e&&e.data&&e.data.meta),wf=(e,t)=>`${e}/v1/installations/${t}/features/updates/smart/result`,kf=(e,t)=>`${e}/v1/installations/${t}/features/updates/php/result`,{Cancel:jf}=gf,Tf=e=>{if(-1!==e.request.responseURL.indexOf("login_up.php")||-1!==e.request.responseURL.indexOf("login.php"))throw location.reload(),new Error("Unauthorized");return e},Cf=(e,t)=>{if(Sf(t.response))return Promise.reject(t);const n=t&&t.message?t.message:"unknown";return t&&t instanceof jf||e((0,P.jsx)(qd,{content:"api.service.internalServerError",params:{errorMessage:n}})),Promise.reject(t)};let Df=null,Pf="/",Of=()=>{};const If=e=>{Pf=yf(e)},Mf=e=>{Of=e},Lf=e=>{const t=gf.create({baseURL:Pf,headers:xf()});if(t.interceptors.response.use((e=>Tf(e)),(e=>Cf(Of,e))),null!==e&&e.endpoint&&e.key&&e.type&&e.hasOwnProperty("initialInstancesCount")){const n=gf.create({baseURL:e.endpoint,headers:Object.assign(Object.assign({},vf),{"X-Api-Key":e.key,"Content-type":"application/json"})});t.interceptors.request.use(bf,(e=>e)),t.interceptors.response.use((t=>((e,t,n)=>{const s=new Date;return e.config.performanceTesting=Object.assign(Object.assign({},e.config.performanceTesting),{endTime:s.getTime()/1e3,action:e.config.url.replace(e.config.baseURL,"")}),t.post("/put-metrics",JSON.stringify([{MetricName:"actionTime",Timestamp:e.config.performanceTesting.startTime,Value:e.config.performanceTesting.endTime-e.config.performanceTesting.startTime,Unit:"Seconds",StorageResolution:1,Dimensions:[{Name:"backendAction",Value:`/${e.config.performanceTesting.action.split("/")[1]}`},{Name:"type",Value:n.type},{Name:"initialInstancesCount",Value:n.hasOwnProperty("initialInstancesCount")?n.initialInstancesCount:0}]}]),{crossdomain:!0}).then((()=>e))})(t,n,e)),(e=>e))}Df=t},Af={disableSmartUpdatePromoForInstances:()=>Df.post("/disable-smart-update-promo-for-instances-screen",{disable:!0}),disableSmartUpdatePromoForUpdatesScreen:e=>Df.post("/disable-smart-update-promo-for-updates-screen",e),disableSmartUpdatePromoForMultipleSitesUpdatesScreen:e=>Df.post("/disable-smart-update-promo-for-multiple-sites-updates-screen",e),getInitialData:()=>Df.get("/get-initial-data"),getPremiumUsers:()=>Df.get("/get-premium-users"),sendMainPagePerfStat:(e,t)=>{const n=new FormData;return n.append("pageLoadTime",`${e}`),n.append("pageAccessTime",`${t}`),Df.post("/set-main-page-perf-stat",n)},getWhmcsUpsellLink:e=>{let t="/get-whmcs-upsell-link";return e&&(t=`${t}/instanceId/${e}`),Df.get(t)}},Ef={refresh:e=>Df.get(`/clear-cache/id/${e}`),switchPhpHandler:(e,t)=>Df.post(`/switch-php-handler/id/${e}/php-handler-id/${t}`),refreshScreenshot:e=>Df.get(`/refresh-screenshot/id/${e}`),remove:e=>Df.post("/remove",e),detach:e=>Df.post("/detach",e),getDbSettings:e=>Df.get(`/get-db-settings/id/${e}`),setDbSettings:(e,t)=>{const n=new FormData;return n.append("dbUserName",t.dbUserName),n.append("dbUserPassword",t.dbUserPassword),Df.post(`/set-db-settings/id/${e}`,n)},customizeMaintenanceTemplate:e=>Df.get(`/maintenance-customize/id/${e}`),restoreSnapshot:e=>Df.post(`/restore-snapshot/id/${e}`),deleteSnapshot:e=>Df.post(`/delete-snapshot/id/${e}`),getAdminSettings:e=>Df.get(`/account/id/${e}`),setInstanceName:(e,t)=>Df.post(`/name/id/${e}`,t),updateRemoteInstanceProperties:(e,t)=>Df.post(`/update-remote-instance-properties/id/${e}`,t),updateRemoteAgentInstanceProperties:(e,t)=>Df.post(`/update-remote-agent-instance-properties/id/${e}`,t),redetectRemoteInstanceProperties:(e,t)=>Df.post(`/redetect-remote-instance-properties/id/${e}`,t),connectRemoteAgentInstance:e=>Df.post("/connect-remote-agent-instance",e),synchronizeSiteUrl:e=>Df.post(`/synchronize-site-url/id/${e}`),synchronizeSiteUrlSync:e=>Df.post(`/synchronize-site-url-sync/id/${e}`),getSynchronizeSiteUrlParams:e=>Df.get(`/get-synchronize-site-url-params/id/${e}`)},Rf=(e,t)=>{e.forEach(((e,n)=>t.append(`instances[${n}]`,`${e}`)))},Uf=(e,t,n)=>{t.forEach(((t,s)=>{n.append(`${e}[${s}][name]`,t.name),void 0!==t.version&&null!==t.version&&n.append(`${e}[${s}][version]`,t.version),void 0!==t.isUploaded&&n.append(`${e}[${s}][isUploaded]`,`${t.isUploaded}`),void 0!==t.ownerGuid&&null!==t.ownerGuid&&n.append(`${e}[${s}][ownerGuid]`,t.ownerGuid)}))},Nf=(e,t)=>{void 0!==e&&t.append("activateAfterInstallation",`${e}`)},Ff=(e,t)=>{Uf("plugins",e,t)},Yf=e=>{const t=new FormData;return Ff(e,t),t},Hf={getPluginsList:()=>Df.get("/list-plugins"),remove:e=>Df.post("/uninstall-plugins",e),searchPlugins:e=>{const t=new FormData;return t.append("term",e),Df.post("/search-plugins",t)},installPlugins:(e,t,n)=>Df.post("/install-plugins",((e,t,n)=>{const s=((e,t)=>{const n=new FormData;return Ff(e,n),Rf(t,n),n})(e,t);return Nf(n,s),s})(e,t,n)),activatePlugins:e=>Df.post("/activate-plugins-on-all-instances",Yf(e)),deactivatePlugins:e=>Df.post("/deactivate-plugins-on-all-instances",Yf(e)),uninstallPlugins:e=>Df.post("/uninstall-plugins-on-all-instances",Yf(e)),removePlugins:e=>Df.post("/remove-plugins-on-all-instances",Yf(e)),updatePlugins:e=>Df.post("/update-plugins-on-all-instances",Yf(e)),uploadPluginToStorage:(e,t)=>{const n=new FormData;return n.append("fileUpload",e),null!==t&&n.append("setId",`${t}`),Df.post("/upload-plugin-to-storage",n)},uploadAndInstallPlugin:(e,t,n)=>{const s=new FormData;return s.append("fileUpload",e),Rf(t,s),Nf(n,s),Df.post("/upload-and-install-plugin",s)},loadPluginsData:e=>Df.post("/load-plugins-data",Yf(e))},Bf=(e,t)=>{Uf("themes",e,t)},Vf=e=>{const t=new FormData;return Bf(e,t),t},$f={getThemesList:()=>Df.get("/list-themes"),remove:e=>Df.post("/uninstall-themes",e),loadThemesData:e=>Df.post("/load-themes-data",Vf(e)),searchThemes:e=>{const t=new FormData;return t.append("term",e),Df.post("/search-themes",t)},installThemes:(e,t,n)=>Df.post("/install-themes",((e,t,n)=>{const s=((e,t)=>{const n=new FormData;return Bf(e,n),Rf(t,n),n})(e,t);return Nf(n,s),s})(e,t,n)),uninstallThemes:e=>Df.post("/uninstall-themes-on-all-instances",Vf(e)),removeThemes:e=>Df.post("/remove-themes-on-all-instances",Vf(e)),updateThemes:e=>Df.post("/update-themes-on-all-instances",Vf(e)),uploadThemeToStorage:(e,t)=>{const n=new FormData;return n.append("fileUpload",e),null!==t&&n.append("setId",`${t}`),Df.post("/upload-theme-to-storage",n)},uploadAndInstallTheme:(e,t,n)=>{const s=new FormData;return s.append("fileUpload",e),Rf(t,s),Nf(n,s),Df.post("/upload-and-install-theme",s)},activateThemeOnAllInstances:e=>Df.post("/activate-theme-on-all-instances",(e=>{const t=new FormData;return((e,t)=>{((e,t,n)=>{n.append(`${e}[name]`,t.name),void 0!==t.version&&null!==t.version&&n.append(`${e}[version]`,t.version),void 0!==t.isUploaded&&n.append(`${e}[isUploaded]`,t.isUploaded),void 0!==t.ownerGuid&&null!==t.ownerGuid&&n.append(`${e}[ownerGuid]`,t.ownerGuid)})("theme",e,t)})(e,t),t})(e))},Wf={getSetsList:()=>Df.get("/list-sets"),addSet:e=>{const t=new FormData;return t.append("name",e),Df.post("/add-set",t)},removeSets:e=>{const t=new FormData;return e.forEach((e=>t.append("setIds[]",`${e}`))),Df.post("/remove-sets",t)},renameSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("newName",t),Df.post("/rename-set",n)},setPluginActivationState:(e,t,n)=>{const s=new FormData;return s.append("setId",`${e}`),s.append("assetId",`${t}`),s.append("active",n?"1":"0"),s.append("assetType","plugin"),Df.post("set-asset-activation-state",s)},setThemeActivationState:(e,t,n)=>{const s=new FormData;return s.append("setId",`${e}`),s.append("assetId",`${t}`),s.append("active",n?"1":"0"),s.append("assetType","theme"),Df.post("set-asset-activation-state",s)},addPluginsToSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{e.id&&n.append(`plugins[${t}][id]`,`${e.id}`),e.name&&n.append(`plugins[${t}][name]`,e.name),e.title&&n.append(`plugins[${t}][title]`,e.title),n.append(`plugins[${t}][isUploaded]`,`${e.isUploaded}`)})),Df.post("add-plugins-to-set",n)},addThemesToSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{e.id&&n.append(`themes[${t}][id]`,`${e.id}`),e.name&&n.append(`themes[${t}][name]`,e.name),e.title&&n.append(`themes[${t}][title]`,e.title),n.append(`themes[${t}][isUploaded]`,`${e.isUploaded}`)})),Df.post("add-themes-to-set",n)},removeSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Df.post("/remove-set",t)},removePluginFromSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("pluginId",`${t}`),Df.post("remove-plugin-from-set",n)},removeThemeFromSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("themeId",`${t}`),Df.post("remove-theme-from-set",n)},removeAllPluginsFromSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Df.post("/remove-all-plugins-from-set",t)},removeAllThemesFromSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Df.post("/remove-all-themes-from-set",t)},installInto:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{n.append(`instanceIds[${t}]`,`${e}`)})),Df.post("/install-set-into-instances",n)},searchPlugins:e=>{const t=new FormData;return t.append("term",e),Df.post("/search-plugins-for-set",t)},searchThemes:e=>{const t=new FormData;return t.append("term",e),Df.post("/search-themes-for-set",t)},getPluginDescription:e=>{const t=new FormData;return t.append("pluginId",`${e}`),Df.post("/get-plugin-description",t)},getThemeDescription:e=>{const t=new FormData;return t.append("themeId",`${e}`),Df.post("/get-theme-description",t)}},zf={getTaskData:e=>{const t=new FormData;return t.append("id",`${e.id}`),t.append("code",e.code),Df.post("/get-background-task-data",t)},getTasksData:e=>{const t=new FormData;return e.forEach(((e,n)=>{t.append(`tasks[${n}][id]`,`${e.id}`),t.append(`tasks[${n}][code]`,e.code)})),Df.post("/get-background-tasks-data",t)},removeTask:e=>{const t=new FormData;return t.append("id",`${e.id}`),t.append("code",e.code),Df.post("/remove-background-task",t)},removeTasks:e=>{const t=new FormData;return e.forEach(((e,n)=>{t.append(`tasks[${n}][id]`,`${e.id}`),t.append(`tasks[${n}][code]`,e.code)})),Df.post("/remove-background-tasks",t)}},qf={getInstanceActionLogRecords:(e,t)=>{let n=`/get-instance-action-log-records/id/${e}/`;return null!==t&&(n=`${n}lastRecordHashSum/${t}/`),Df.get(n)},onOpenActionLogBrowser:e=>Df.post(`/on-open-action-log-browser/id/${e}`,{opened:!0}),onEnableRealTimeUpdates:e=>Df.post(`/on-enable-real-time-updates/id/${e}`,{enabled:!0}),getInstanceActionLogRotationSettings:e=>Df.get(`/get-instance-action-log-rotation-settings/id/${e}`),saveInstanceActionLogRotationSettings:(e,t)=>{const n=new FormData;return n.append("instanceId",`${e}`),n.append("enabled",`${t.enabled}`),n.append("rotateCount",`${t.rotateCount}`),n.append("size",`${t.size}`),n.append("timePeriod",`${t.timePeriod}`),n.append("type",`${t.type}`),n.append("compress",`${t.compress}`),Df.post("/save-instance-action-log-rotation-settings",n)}},Gf={verifyChecksums:e=>Df.post(`/verify-checksums/id/${e}`,{verify:!0}),reinstallCore:e=>Df.post(`/reinstall-core/id/${e}`,{reinstall:!0})},Kf=Af,Xf=Ef,Qf=Hf,Jf=$f,Zf=Wf,eg={addServer:e=>Df.post("/add-server",e),scanServers:e=>Df.post("/scan-servers",e),detachServers:e=>Df.post("/detach-servers",e),getServersList:()=>Df.get("/get-servers-list"),getServer:e=>Df.get(`/get-server/id/${e}`),acceptFingerprint:e=>Df.get(`/accept-fingerprint/id/${e}`),disableBetaDialog:()=>Df.get("/disable-remote-wpt-beta-dialog"),getInstancesLog:e=>Df.get(`/get-instances-log/id/${e}`)},tg={check:()=>Df.get("/check-session")},ng={load:()=>Df.get("/get-global-settings"),update:e=>Df.post("/update-global-settings",e)},sg={getSyncSettings:e=>Df.get(`/get-sync-settings/id/${e}`),syncInstance:e=>Df.post("/sync",e)},ig=zf,ag=qf,rg=Gf,og="https://example.com/api/modules/wp-toolkit".replace(/\/+$/,"");class lg{constructor(e,t=og,n=gf){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class cg extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const ug="https://example.com",dg=function(e,t,n){if(null==n)throw new cg(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},pg=function(e,t,n){return s=this,i=void 0,r=function*(){if(n&&n.apiKey){const s="function"==typeof n.apiKey?yield n.apiKey(t):yield n.apiKey;e[t]=s}},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{l(r.next(e))}catch(e){t(e)}}function o(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof a?s:new a((function(e){e(s)}))).then(n,o)}l((r=r.apply(s,i||[])).next())}));var s,i,a,r},hg=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},mg=function(e,...t){const n=new URLSearchParams(e.search);for(const e of t)for(const t in e)if(Array.isArray(e[t])){n.delete(t);for(const s of e[t])n.append(t,s)}else n.set(t,e[t]);e.search=n.toString()},fg=function(e,t,n){const s="string"!=typeof e;return(s&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},gg=function(e){return e.pathname+e.search+e.hash},bg=function(e,t,n,s){return(i=t,a=n)=>{const r=Object.assign(Object.assign({},e.options),{url:((null==s?void 0:s.basePath)||a)+e.url});return i.request(r)}};var vg=function(e,t,n,s){return new(n||(n=Promise))((function(i,a){function r(e){try{l(s.next(e))}catch(e){a(e)}}function o(e){try{l(s.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}l((s=s.apply(e,t||[])).next())}))};const yg="private",xg="notExist",_g="disabledForDomain",Sg="wpToolkitDeluxeDisabled",wg={Active:"active",Expired:"expired",Suspended:"suspended",Terminated:"terminated"},kg="low",jg="medium",Tg="high",Cg="critical",Dg="securityMeasure",Pg="virtualPatch",Og="update",Ig="deactivateAsset",Mg="wordfence",Lg=function(e){const t=function(e){return{acceptSmartPhpUpdate:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("acceptSmartPhpUpdate","installationId",t);const i="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),activateVirtualPatchesSubscription:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("activateVirtualPatchesSubscription","installationId",t),dg("activateVirtualPatchesSubscription","virtualPatchesActivatorRequest",n);const i="/v1/installations/{installationId}/features/virtual-patches/subscription/activator".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),addLicense:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("addLicense","licenseRequest",t);const s=new URL("/v1/license",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),addPluginsToSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("addPluginsToSet","setId",t),dg("addPluginsToSet","pluginAssetDetails",n);const i="/v1/sets/{setId}/plugins".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),addThemesToSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("addThemesToSet","setId",t),dg("addThemesToSet","themeAssetDetails",n);const i="/v1/sets/{setId}/themes".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),applySmartUpdate:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("applySmartUpdate","installationId",t);const i="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),appyVirtualPatches:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("appyVirtualPatches","virtualPatchesApplyRequest",t);const s=new URL("/v1/agent/virtual-patches-applier",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),calculateVulnerabilityProtectionUsageStatistics:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/features/virtual-patches/statistics/calculator",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),cancelBackgroundTask:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("cancelBackgroundTask","taskId",t),dg("cancelBackgroundTask","taskCode",n);const i="/v1/background-tasks/{taskCode}/{taskId}".replace("{taskId}",encodeURIComponent(String(t))).replace("{taskCode}",encodeURIComponent(String(n))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:gg(a),options:o}})),checkInstallationsVulnerability:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("checkInstallationsVulnerability","checkVulnerabilityRequest",t);const s=new URL("/v1/vulnerabilities-checker",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),checkSecurity:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("checkSecurity","securityMeasuresCheckSecurityRequest",t);const s=new URL("/v1/security-measures/checker",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),cleanInstallationCache:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("cleanInstallationCache","cacheCleanerRequest",t);const s=new URL("/v1/cache-cleaner",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),cloneInstallation:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("cloneInstallation","installationCloneRequest",t);const s=new URL("/v1/cloner",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),closeGlobalAlert:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("closeGlobalAlert","closeGlobalAlertRequest",t);const s=new URL("/v1/global-alerts",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"DELETE"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),createInstallation:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("createInstallation","installationRequest",t);const s=new URL("/v1/installations",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),createInstallationBackup:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("createInstallationBackup","backupCreatorRequest",t);const s=new URL("/v1/features/backups/creator",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),createInstallationWpUser:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("createInstallationWpUser","installationId",t),dg("createInstallationWpUser","installationWpUserRequest",n);const i="/v1/installations/{installationId}/users".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),createMaintenancePreview:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("createMaintenancePreview","installationId",t),dg("createMaintenancePreview","maintenancePreviewRequest",n);const i="/v1/installations/{installationId}/features/maintenance/preview".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),createSet:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("createSet","createSetRequest",t);const s=new URL("/v1/sets",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),deleteLicense:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("deleteLicense","licenseRequest",t);const s=new URL("/v1/license",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"DELETE"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),deleteSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("deleteSet","setId",t);const i="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),detachInstallations:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("detachInstallations","detachInstallationsRequest",t);const s=new URL("/v1/detacher",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),detachVirtualPatchesSubscription:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("detachVirtualPatchesSubscription","installationId",t),dg("detachVirtualPatchesSubscription","basicConfirmationRequest",n);const i="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),disableVirtualPatches:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("disableVirtualPatches","virtualPatchesDisableRequest",t);const s=new URL("/v1/agent/virtual-patches-applier",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"DELETE"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),discardSmartPhpUpdate:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("discardSmartPhpUpdate","installationId",t);const i="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),discardSmartUpdate:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("discardSmartUpdate","installationId",t);const i="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),executeWpCliCommand:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("executeWpCliCommand","installationId",t),dg("executeWpCliCommand","commandExecutionRequest",n);const i="/v1/installations/{installationId}/features/wp-cli".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),featureVulnerabilityStatsUpdate:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("featureVulnerabilityStatsUpdate","buttonClicksStats",t);const s=new URL("/v1/features/vulnerability/stats",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),fetchAvailableAutoUpdateSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/agent/installations-auto-update-settings-getter",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),fetchAvailableInstallationsAutoUpdateSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/installations-auto-update-settings-getter",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),fetchAvailableUpdates:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){const r=new URL("/v1/updates-checker",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),{url:gg(r),options:l}})),fetchInstallationsVulnerabilityStatuses:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){const r=new URL("/v1/vulnerabilities-checker",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),{url:gg(r),options:l}})),fetchInstallationsVulnerabilityStatusesShort:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){const r=new URL("/v1/agent/vulnerabilities-checker",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),{url:gg(r),options:l}})),forgotPlatfromApiKey:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/agent/api-key",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"DELETE"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getAutoUpdateSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getAutoUpdateSettings","installationId",t);const s="/v1/installations/{installationId}/features/updates/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getAvailablePhpHandlers:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getAvailablePhpHandlers","installationId",t);const s="/v1/installations/{installationId}/features/php/handlers".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getBackgroundTask:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("getBackgroundTask","taskId",t),dg("getBackgroundTask","taskCode",n);const i="/v1/background-tasks/{taskCode}/{taskId}".replace("{taskId}",encodeURIComponent(String(t))).replace("{taskCode}",encodeURIComponent(String(n))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:gg(a),options:o}})),getBackgroundTasksList:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("getBackgroundTasksList","installationId",t);const i="/v1/installations/{installationId}/background-tasks".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={},c={};hg(o,e),yield pg(l,"X-API-Key",e),n&&(c["codes[]"]=n),mg(a,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),s.headers),{url:gg(a),options:o}})),getChangelogs:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/changelogs",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getCloneStub:(t,n,s,i,a,r,o,l={})=>vg(this,void 0,void 0,(function*(){dg("getCloneStub","installationId",t);const c="/v1/installations/{installationId}/features/clone/stub".replace("{installationId}",encodeURIComponent(String(t))),u=new URL(c,ug);let d;e&&(d=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},d),l),h={},m={};hg(p,e),yield pg(h,"X-API-Key",e),void 0!==n&&(m["database[name]"]=n),void 0!==s&&(m["database[server]"]=s),void 0!==i&&(m["domain[existing]"]=i),void 0!==a&&(m["domain[newSubdomain][name]"]=a),void 0!==r&&(m["domain[newSubdomain][parentDomain]"]=r),void 0!==o&&(m.installationPath=o),mg(u,m);let f=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),f),l.headers),{url:gg(u),options:p}})),getHealthStatus:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/health",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getHotlinkProtectionSettingsMeta:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getHotlinkProtectionSettingsMeta","installationId",t);const s="/v1/installations/{installationId}/features/hotlink-protection/settings/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallation:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallation","installationId",t);const s="/v1/installations/{installationId}".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationBackupsInfo:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationBackupsInfo","installationId",t);const i="/v1/installations/{installationId}/backups".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={},c={};hg(o,e),yield pg(l,"X-API-Key",e),n&&(c["files[]"]=n),mg(a,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),s.headers),{url:gg(a),options:o}})),getInstallationBackupsMeta:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationBackupsMeta","installationId",t);const s="/v1/installations/{installationId}/backups/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationLabelsMeta:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationLabelsMeta","installationId",t);const s="/v1/installations/{installationId}/labels/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationPlugins:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationPlugins","installationId",t);const s="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationSecurityPolicies:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationSecurityPolicies","installationId",t);const s="/v1/installations/{installationId}/features/vulnerability/security-policies".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationStub:(t,n,s={})=>vg(this,void 0,void 0,(function*(){const i=new URL("/v1/installer/installation-stub",ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),s),o={},l={};hg(r,e),yield pg(o,"X-API-Key",e),void 0!==t&&(l.domain=t),void 0!==n&&(l.version=n),mg(i,l);let c=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),c),s.headers),{url:gg(i),options:r}})),getInstallationThemes:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationThemes","installationId",t);const s="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallationWpUserStub:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationWpUserStub","installationId",t);const s="/v1/installations/{installationId}/users/stub".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getInstallations:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){const a=new URL("/v1/installations",ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),i),l={},c={};hg(o,e),yield pg(l,"X-API-Key",e),t&&(c["installationsIds[]"]=t),void 0!==n&&(c.sortBy=n),void 0!==s&&(c.sortOrder=s),mg(a,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),i.headers),{url:gg(a),options:o}})),getInstallationsPlugins:(t,n,s,i,a,r,o,l,c={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationsPlugins","installationId",t),dg("getInstallationsPlugins","page",n),dg("getInstallationsPlugins","pageSize",s);const u="/v1/installations/{installationId}/features/catalog/plugins".replace("{installationId}",encodeURIComponent(String(t))),d=new URL(u,ug);let p;e&&(p=e.baseOptions);const h=Object.assign(Object.assign({method:"GET"},p),c),m={},f={};hg(h,e),yield pg(m,"X-API-Key",e),void 0!==i&&(f.compatible=i),void 0!==a&&(f.downloadCount=a),void 0!==r&&(f.lastUpdatedAt=r),void 0!==n&&(f.page=n),void 0!==s&&(f.pageSize=s),void 0!==o&&(f.rating=o),void 0!==l&&(f.term=l),mg(d,f);let g=p&&p.headers?p.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},m),g),c.headers),{url:gg(d),options:h}})),getInstallationsRemoveConfirmation:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/remover/confirmation",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},i),n),r={},o={};hg(a,e),yield pg(r,"X-API-Key",e),t&&(o["installationsIds[]"]=t),mg(s,o);let l=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),l),n.headers),{url:gg(s),options:a}})),getInstallationsThemes:(t,n,s,i,a,r,o,l,c={})=>vg(this,void 0,void 0,(function*(){dg("getInstallationsThemes","installationId",t),dg("getInstallationsThemes","page",n),dg("getInstallationsThemes","pageSize",s);const u="/v1/installations/{installationId}/features/catalog/themes".replace("{installationId}",encodeURIComponent(String(t))),d=new URL(u,ug);let p;e&&(p=e.baseOptions);const h=Object.assign(Object.assign({method:"GET"},p),c),m={},f={};hg(h,e),yield pg(m,"X-API-Key",e),void 0!==i&&(f.compatible=i),void 0!==a&&(f.downloadCount=a),void 0!==r&&(f.lastUpdatedAt=r),void 0!==n&&(f.page=n),void 0!==s&&(f.pageSize=s),void 0!==o&&(f.rating=o),void 0!==l&&(f.term=l),mg(d,f);let g=p&&p.headers?p.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},m),g),c.headers),{url:gg(d),options:h}})),getIntegrity:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getIntegrity","installationId",t);const s="/v1/installations/{installationId}/features/integrity".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getLicenseInfo:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/license-info",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getMaintenanceSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getMaintenanceSettings","installationId",t);const s="/v1/installations/{installationId}/features/maintenance/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getMaintenanceTemplateCustomizationUrl:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getMaintenanceTemplateCustomizationUrl","installationId",t);const s="/v1/installations/{installationId}/features/maintenance/template-customization-url".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getPasswordProtection:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getPasswordProtection","installationId",t);const s="/v1/installations/{installationId}/features/password-protection".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getRemoteAgentInstallationProperties:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getRemoteAgentInstallationProperties","installationId",t);const s="/v1/installations/{installationId}/features/remote-management/remote-agent/properties".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getRemoteServerInstallationProperties:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getRemoteServerInstallationProperties","installationId",t);const s="/v1/installations/{installationId}/features/remote-management/remote-server/properties".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getScannerLogs:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/agent/scanner/logs",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getSecurityMeasures:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/security-measures",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getSecurityMeasuresPerInstallations:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){const r=new URL("/v1/security-measures/checker",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),{url:gg(r),options:l}})),getServerInfo:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/server-info",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getSetDetails:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSetDetails","setId",t);const s="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getSetsList:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/sets",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),getSetupDrawerSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSetupDrawerSettings","installationId",t);const s="/v1/installations/{installationId}/account".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getSmartPhpUpdateResult:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSmartPhpUpdateResult","installationId",t);const s="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getSmartPhpUpdateStub:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSmartPhpUpdateStub","installationId",t);const s="/v1/installations/{installationId}/features/updates/php/stub".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getSmartUpdateResult:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSmartUpdateResult","installationId",t);const s="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getSpecification:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getSpecification","specificationType",t);const s="/v1/specification/{specificationType}".replace("{specificationType}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getTaskSchedule:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getTaskSchedule","scheduledTaskId",t);const s="/v1/scheduled-tasks/{scheduledTaskId}".replace("{scheduledTaskId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getVirtualPatchesSubscriptionGuid:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getVirtualPatchesSubscriptionGuid","installationId",t);const s="/v1/installations/{installationId}/features/virtual-patches/subscription/guid".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getVirtualPatchesSubscriptionInfo:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getVirtualPatchesSubscriptionInfo","installationId",t);const s="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getVirtualPatchesSubscriptionPurchaseUrl:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("getVirtualPatchesSubscriptionPurchaseUrl","installationId",t);const i="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),getWordPressDebugSettings:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getWordPressDebugSettings","installationId",t);const s="/v1/installations/{installationId}/features/debug/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getWordPressDebugSettingsMeta:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getWordPressDebugSettingsMeta","installationId",t);const s="/v1/installations/{installationId}/features/debug/settings/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getWpCliCommandsList:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getWpCliCommandsList","installationId",t);const s="/v1/installations/{installationId}/features/wp-cli/commands".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getWpCredentials:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getWpCredentials","installationId",t);const s="/v1/installations/{installationId}/credentials".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),getWpCronTakeoverMeta:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("getWpCronTakeoverMeta","installationId",t);const s="/v1/installations/{installationId}/features/wp-cron-takeover/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(s,ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},a),n),o={};hg(r,e),yield pg(o,"X-API-Key",e),mg(i,{});let l=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:gg(i),options:r}})),handleWordPressEvents:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("handleWordPressEvents","installationId",t),dg("handleWordPressEvents","handleWordPressEvent",n);const i="/v1/installations/{installationId}/wordpress/events".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),instalationsPluginsActivateDeactivate:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("instalationsPluginsActivateDeactivate","installationId",t),dg("instalationsPluginsActivateDeactivate","slug",n),dg("instalationsPluginsActivateDeactivate","statusRequest",s);const a="/v1/installations/{installationId}/plugins/{slug}/status".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"PUT"},o),i),c={};hg(l,e),yield pg(c,"X-API-Key",e),c["Content-Type"]="application/json",mg(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),instalationsPluginsInfo:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("instalationsPluginsInfo","installationId",t),dg("instalationsPluginsInfo","slug",n);const i="/v1/installations/{installationId}/features/catalog/plugins/{slug}".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:gg(a),options:o}})),instalationsPluginsInstall:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("instalationsPluginsInstall","installationId",t),dg("instalationsPluginsInstall","installationAssetInstallRequest",n);const i="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),instalationsPluginsUninstall:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("instalationsPluginsUninstall","installationId",t),dg("instalationsPluginsUninstall","requestBody",n);const i="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),instalationsPluginsUploadAndInstall:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("instalationsPluginsUploadAndInstall","installationId",t),dg("instalationsPluginsUploadAndInstall","file",n),dg("instalationsPluginsUploadAndInstall","status",s);const a="/v1/installations/{installationId}/features/uploader/plugins".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u=new(e&&e.formDataCtor||FormData);hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",mg(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=u,{url:gg(r),options:l}})),instalationsThemesActivate:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("instalationsThemesActivate","installationId",t),dg("instalationsThemesActivate","slug",n),dg("instalationsThemesActivate","statusRequest",s);const a="/v1/installations/{installationId}/themes/{slug}/status".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"PUT"},o),i),c={};hg(l,e),yield pg(c,"X-API-Key",e),c["Content-Type"]="application/json",mg(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),instalationsThemesInstall:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("instalationsThemesInstall","installationId",t),dg("instalationsThemesInstall","installationAssetInstallRequest",n);const i="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),instalationsThemesUninstall:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("instalationsThemesUninstall","installationId",t),dg("instalationsThemesUninstall","requestBody",n);const i="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),instalationsThemesUploadAndInstall:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("instalationsThemesUploadAndInstall","installationId",t),dg("instalationsThemesUploadAndInstall","file",n),dg("instalationsThemesUploadAndInstall","status",s);const a="/v1/installations/{installationId}/features/uploader/themes".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u=new(e&&e.formDataCtor||FormData);hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",mg(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=u,{url:gg(r),options:l}})),installSet:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("installSet","installSetRequest",t);const s=new URL("/v1/sets-installer",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),launchUpdate:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){dg("launchUpdate","launchInstallationUpdate",t);const r=new URL("/v1/updater",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=fg(t,l,e),{url:gg(r),options:l}})),loginInstallation:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("loginInstallation","installationId",t);const a="/v1/installations/{installationId}/login".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&(u.login=n),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),massUpdateInstallationsAutoUpdatesSettings:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){dg("massUpdateInstallationsAutoUpdatesSettings","installationsAutoUpdateListItemRequest",t);const r=new URL("/v2/features/updates/mass-settings",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=fg(t,l,e),{url:gg(r),options:l}})),mitigateVulnerabilities:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("mitigateVulnerabilities","vulnerabilitiesMitigation",t);const s=new URL("/v1/features/vulnerability/mitigator",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),receiveHelloFromAgent:(t={})=>vg(this,void 0,void 0,(function*(){const n=new URL("/v1/agent/hello",ug);let s;e&&(s=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},s),t),a={};hg(i,e),yield pg(a,"X-API-Key",e),mg(n,{});let r=s&&s.headers?s.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},a),r),t.headers),{url:gg(n),options:i}})),refreshAvailableUpdates:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/updates-checker",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),removeInstallationBackups:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("removeInstallationBackups","installationId",t),dg("removeInstallationBackups","files",n);const a="/v1/installations/{installationId}/backups".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),i),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),n&&(u["files[]"]=n),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),removePluginFromSet:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("removePluginFromSet","setId",t),dg("removePluginFromSet","pluginSlug",n);const a="/v1/sets/{setId}/plugins/{pluginSlug}".replace("{setId}",encodeURIComponent(String(t))).replace("{pluginSlug}",encodeURIComponent(String(n))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),i),c={};hg(l,e),yield pg(c,"X-API-Key",e),c["Content-Type"]="application/json",mg(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),removeThemeFromSet:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("removeThemeFromSet","setId",t),dg("removeThemeFromSet","themeSlug",n);const a="/v1/sets/{setId}/themes/{themeSlug}".replace("{setId}",encodeURIComponent(String(t))).replace("{themeSlug}",encodeURIComponent(String(n))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),i),c={};hg(l,e),yield pg(c,"X-API-Key",e),c["Content-Type"]="application/json",mg(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),i.headers),l.data=fg(s,l,e),{url:gg(r),options:l}})),resetHotlinkProtectionSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("resetHotlinkProtectionSettings","installationId",t);const i="/v1/installations/{installationId}/features/hotlink-protection/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),resolveSecurityMeasures:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("resolveSecurityMeasures","securityMeasuresResolveRequest",t);const s=new URL("/v1/security-measures/resolver",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),restoreInstallationBackup:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("restoreInstallationBackup","backupRestorerRequest",t);const s=new URL("/v1/features/backups/restorer",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),restoreMaintenanceTemplate:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("restoreMaintenanceTemplate","installationId",t);const i="/v1/installations/{installationId}/features/maintenance/template".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),revertSecurityMeasures:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("revertSecurityMeasures","securityMeasuresRevertRequest",t);const s=new URL("/v1/security-measures/reverter",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),runSmartPhpUpdate:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("runSmartPhpUpdate","runSmartPhpUpdateRequest",t);const s=new URL("/v1/smart-php-updater",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),scanInstallations:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("scanInstallations","basicConfirmationRequest",t);const s=new URL("/v1/scanner",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),setPluginsToSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("setPluginsToSet","setId",t),dg("setPluginsToSet","pluginAssetDetails",n);const i="/v1/sets/{setId}/plugins".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),setTaskSchedule:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("setTaskSchedule","scheduledTaskId",t),dg("setTaskSchedule","scheduledTimeApplyRequest",n);const i="/v1/scheduled-tasks/{scheduledTaskId}".replace("{scheduledTaskId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),setThemesToSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("setThemesToSet","setId",t),dg("setThemesToSet","themeAssetDetails",n);const i="/v1/sets/{setId}/themes".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),statsHireDeveloperTransition:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("statsHireDeveloperTransition","transitionStats",t);const s=new URL("/v1/stats/hire-developer-transition",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),upVoteForFeature:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("upVoteForFeature","upVoteForFeatureRequest",t);const s=new URL("/v1/features/up-votes",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),updateAutoUpdateSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateAutoUpdateSettings","installationId",t),dg("updateAutoUpdateSettings","installationAutoUpdateRequest",n);const i="/v1/installations/{installationId}/features/updates/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateHotlinkProtectionSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateHotlinkProtectionSettings","installationId",t),dg("updateHotlinkProtectionSettings","hotlinkProtectionSettingsRequest",n);const i="/v1/installations/{installationId}/features/hotlink-protection/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateHotlinkProtectionStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateHotlinkProtectionStatus","installationId",t),dg("updateHotlinkProtectionStatus","hotlinkProtectionStatusRequest",n);const i="/v1/installations/{installationId}/features/hotlink-protection/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateIndexingStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateIndexingStatus","installationId",t),dg("updateIndexingStatus","statusRequest",n);const i="/v1/installations/{installationId}/features/indexing/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateInstallationLabels:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationLabels","installationId",t),dg("updateInstallationLabels","installationLabel",n);const i="/v1/installations/{installationId}/labels".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateInstallationSecurityPolicies:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationSecurityPolicies","installationId",t),dg("updateInstallationSecurityPolicies","installationSecurityPoliciesUpdateRequest",n);const i="/v1/installations/{installationId}/features/vulnerability/security-policies".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateInstallationsAutoUpdatesSettings:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationsAutoUpdatesSettings","installationsAutoUpdateRequest",t);const r=new URL("/v1/features/updates/settings",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=fg(t,l,e),{url:gg(r),options:l}})),updateInstallationsAutoUpdatesSettingsV2:(t,n,s,i,a={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationsAutoUpdatesSettingsV2","installationsAutoUpdateRequest",t);const r=new URL("/v2/features/updates/settings",ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u={};hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==i&&(u.skipUnsupportedInstallations=i),c["Content-Type"]="application/json",mg(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=fg(t,l,e),{url:gg(r),options:l}})),updateInstallationsPlugins:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationsPlugins","installationId",t),dg("updateInstallationsPlugins","installationAssetUpdateRequest",n);const i="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateInstallationsThemes:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateInstallationsThemes","installationId",t),dg("updateInstallationsThemes","installationAssetUpdateRequest",n);const i="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateLicenseInfo:(t,n={})=>vg(this,void 0,void 0,(function*(){const s=new URL("/v1/license-info/updater",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}})),updateMaintenanceSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateMaintenanceSettings","installationId",t),dg("updateMaintenanceSettings","maintenanceSettingsRequest",n);const i="/v1/installations/{installationId}/features/maintenance/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateMaintenanceStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateMaintenanceStatus","installationId",t),dg("updateMaintenanceStatus","statusRequest",n);const i="/v1/installations/{installationId}/features/maintenance/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateNginxCachingStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateNginxCachingStatus","installationId",t),dg("updateNginxCachingStatus","statusRequest",n);const i="/v1/installations/{installationId}/features/nginx-caching/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updatePasswordProtection:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updatePasswordProtection","installationId",t),dg("updatePasswordProtection","passwordProtectionRequest",n);const i="/v1/installations/{installationId}/features/password-protection".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateSet:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateSet","setId",t),dg("updateSet","updateSetRequest",n);const i="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateSetupDrawerSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateSetupDrawerSettings","installationId",t),dg("updateSetupDrawerSettings","setupDrawerSettingsRequest",n);const i="/v1/installations/{installationId}/account".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateSmartUpdatesStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateSmartUpdatesStatus","installationId",t),dg("updateSmartUpdatesStatus","statusRequest",n);const i="/v1/installations/{installationId}/features/updates/smart/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateVirtualPatchesProtectionStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateVirtualPatchesProtectionStatus","virtualPatchesProtectorRequest",t);const i=new URL("/v1/features/virtual-patches/protector",ug);let a;e&&(a=e.baseOptions);const r=Object.assign(Object.assign({method:"POST"},a),s),o={},l={};hg(r,e),yield pg(o,"X-API-Key",e),void 0!==n&&(l["dry-run"]=n),o["Content-Type"]="application/json",mg(i,l);let c=a&&a.headers?a.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),c),s.headers),r.data=fg(t,r,e),{url:gg(i),options:r}})),updateVulnerabilityFiltering:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateVulnerabilityFiltering","installationId",t),dg("updateVulnerabilityFiltering","vulnerabilityFilteringRequest",n);const i="/v1/installations/{installationId}/features/vulnerability/filtering".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateWordPressDebugSettings:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateWordPressDebugSettings","installationId",t),dg("updateWordPressDebugSettings","wordPressDebugSettingsRequest",n);const i="/v1/installations/{installationId}/features/debug/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateWordPressDebugStatus:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateWordPressDebugStatus","installationId",t),dg("updateWordPressDebugStatus","wordPressDebugStatusRequest",n);const i="/v1/installations/{installationId}/features/debug/status".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),updateWpCronTakeover:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("updateWpCronTakeover","installationId",t),dg("updateWpCronTakeover","wpCronTakeoverInstanceRequest",n);const i="/v1/installations/{installationId}/features/wp-cron-takeover".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),uploadPluginToSet:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("uploadPluginToSet","setId",t),dg("uploadPluginToSet","file",n),dg("uploadPluginToSet","status",s);const a="/v1/sets/{setId}/features/uploader/plugins".replace("{setId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u=new(e&&e.formDataCtor||FormData);hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",mg(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=u,{url:gg(r),options:l}})),uploadThemeToSet:(t,n,s,i={})=>vg(this,void 0,void 0,(function*(){dg("uploadThemeToSet","setId",t),dg("uploadThemeToSet","file",n),dg("uploadThemeToSet","status",s);const a="/v1/sets/{setId}/features/uploader/themes".replace("{setId}",encodeURIComponent(String(t))),r=new URL(a,ug);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u=new(e&&e.formDataCtor||FormData);hg(l,e),yield pg(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",mg(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=u,{url:gg(r),options:l}})),validateClonePath:(t,n,s={})=>vg(this,void 0,void 0,(function*(){dg("validateClonePath","installationId",t),dg("validateClonePath","clonePathValidatorRequest",n);const i="/v1/installations/{installationId}/features/clone/path-validator".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(i,ug);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};hg(o,e),yield pg(l,"X-API-Key",e),l["Content-Type"]="application/json",mg(a,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=fg(n,o,e),{url:gg(a),options:o}})),validateInstallationPath:(t,n={})=>vg(this,void 0,void 0,(function*(){dg("validateInstallationPath","installationPathValidatorRequest",t);const s=new URL("/v1/installer/path-validator",ug);let i;e&&(i=e.baseOptions);const a=Object.assign(Object.assign({method:"POST"},i),n),r={};hg(a,e),yield pg(r,"X-API-Key",e),r["Content-Type"]="application/json",mg(s,{});let o=i&&i.headers?i.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),a.data=fg(t,a,e),{url:gg(s),options:a}}))}}(e);return{acceptSmartPhpUpdate(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.acceptSmartPhpUpdate(n,s,i);return bg(a,gf,og,e)}))},activateVirtualPatchesSubscription(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.activateVirtualPatchesSubscription(n,s,i);return bg(a,gf,og,e)}))},addLicense(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.addLicense(n,s);return bg(i,gf,og,e)}))},addPluginsToSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.addPluginsToSet(n,s,i);return bg(a,gf,og,e)}))},addThemesToSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.addThemesToSet(n,s,i);return bg(a,gf,og,e)}))},applySmartUpdate(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.applySmartUpdate(n,s,i);return bg(a,gf,og,e)}))},appyVirtualPatches(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.appyVirtualPatches(n,s);return bg(i,gf,og,e)}))},calculateVulnerabilityProtectionUsageStatistics(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.calculateVulnerabilityProtectionUsageStatistics(n,s);return bg(i,gf,og,e)}))},cancelBackgroundTask(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.cancelBackgroundTask(n,s,i);return bg(a,gf,og,e)}))},checkInstallationsVulnerability(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.checkInstallationsVulnerability(n,s);return bg(i,gf,og,e)}))},checkSecurity(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.checkSecurity(n,s);return bg(i,gf,og,e)}))},cleanInstallationCache(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.cleanInstallationCache(n,s);return bg(i,gf,og,e)}))},cloneInstallation(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.cloneInstallation(n,s);return bg(i,gf,og,e)}))},closeGlobalAlert(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.closeGlobalAlert(n,s);return bg(i,gf,og,e)}))},createInstallation(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.createInstallation(n,s);return bg(i,gf,og,e)}))},createInstallationBackup(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.createInstallationBackup(n,s);return bg(i,gf,og,e)}))},createInstallationWpUser(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.createInstallationWpUser(n,s,i);return bg(a,gf,og,e)}))},createMaintenancePreview(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.createMaintenancePreview(n,s,i);return bg(a,gf,og,e)}))},createSet(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.createSet(n,s);return bg(i,gf,og,e)}))},deleteLicense(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.deleteLicense(n,s);return bg(i,gf,og,e)}))},deleteSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.deleteSet(n,s,i);return bg(a,gf,og,e)}))},detachInstallations(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.detachInstallations(n,s);return bg(i,gf,og,e)}))},detachVirtualPatchesSubscription(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.detachVirtualPatchesSubscription(n,s,i);return bg(a,gf,og,e)}))},disableVirtualPatches(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.disableVirtualPatches(n,s);return bg(i,gf,og,e)}))},discardSmartPhpUpdate(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.discardSmartPhpUpdate(n,s,i);return bg(a,gf,og,e)}))},discardSmartUpdate(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.discardSmartUpdate(n,s,i);return bg(a,gf,og,e)}))},executeWpCliCommand(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.executeWpCliCommand(n,s,i);return bg(a,gf,og,e)}))},featureVulnerabilityStatsUpdate(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.featureVulnerabilityStatsUpdate(n,s);return bg(i,gf,og,e)}))},fetchAvailableAutoUpdateSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.fetchAvailableAutoUpdateSettings(n,s);return bg(i,gf,og,e)}))},fetchAvailableInstallationsAutoUpdateSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.fetchAvailableInstallationsAutoUpdateSettings(n,s);return bg(i,gf,og,e)}))},fetchAvailableUpdates(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.fetchAvailableUpdates(n,s,i,a,r);return bg(o,gf,og,e)}))},fetchInstallationsVulnerabilityStatuses(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.fetchInstallationsVulnerabilityStatuses(n,s,i,a,r);return bg(o,gf,og,e)}))},fetchInstallationsVulnerabilityStatusesShort(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.fetchInstallationsVulnerabilityStatusesShort(n,s,i,a,r);return bg(o,gf,og,e)}))},forgotPlatfromApiKey(n){return vg(this,void 0,void 0,(function*(){const s=yield t.forgotPlatfromApiKey(n);return bg(s,gf,og,e)}))},getAutoUpdateSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getAutoUpdateSettings(n,s);return bg(i,gf,og,e)}))},getAvailablePhpHandlers(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getAvailablePhpHandlers(n,s);return bg(i,gf,og,e)}))},getBackgroundTask(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.getBackgroundTask(n,s,i);return bg(a,gf,og,e)}))},getBackgroundTasksList(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.getBackgroundTasksList(n,s,i);return bg(a,gf,og,e)}))},getChangelogs(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getChangelogs(n);return bg(s,gf,og,e)}))},getCloneStub(n,s,i,a,r,o,l,c){return vg(this,void 0,void 0,(function*(){const u=yield t.getCloneStub(n,s,i,a,r,o,l,c);return bg(u,gf,og,e)}))},getHealthStatus(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getHealthStatus(n);return bg(s,gf,og,e)}))},getHotlinkProtectionSettingsMeta(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getHotlinkProtectionSettingsMeta(n,s);return bg(i,gf,og,e)}))},getInstallation(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallation(n,s);return bg(i,gf,og,e)}))},getInstallationBackupsInfo(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.getInstallationBackupsInfo(n,s,i);return bg(a,gf,og,e)}))},getInstallationBackupsMeta(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationBackupsMeta(n,s);return bg(i,gf,og,e)}))},getInstallationLabelsMeta(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationLabelsMeta(n,s);return bg(i,gf,og,e)}))},getInstallationPlugins(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationPlugins(n,s);return bg(i,gf,og,e)}))},getInstallationSecurityPolicies(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationSecurityPolicies(n,s);return bg(i,gf,og,e)}))},getInstallationStub(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.getInstallationStub(n,s,i);return bg(a,gf,og,e)}))},getInstallationThemes(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationThemes(n,s);return bg(i,gf,og,e)}))},getInstallationWpUserStub(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationWpUserStub(n,s);return bg(i,gf,og,e)}))},getInstallations(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.getInstallations(n,s,i,a);return bg(r,gf,og,e)}))},getInstallationsPlugins(n,s,i,a,r,o,l,c,u){return vg(this,void 0,void 0,(function*(){const d=yield t.getInstallationsPlugins(n,s,i,a,r,o,l,c,u);return bg(d,gf,og,e)}))},getInstallationsRemoveConfirmation(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getInstallationsRemoveConfirmation(n,s);return bg(i,gf,og,e)}))},getInstallationsThemes(n,s,i,a,r,o,l,c,u){return vg(this,void 0,void 0,(function*(){const d=yield t.getInstallationsThemes(n,s,i,a,r,o,l,c,u);return bg(d,gf,og,e)}))},getIntegrity(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getIntegrity(n,s);return bg(i,gf,og,e)}))},getLicenseInfo(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getLicenseInfo(n);return bg(s,gf,og,e)}))},getMaintenanceSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getMaintenanceSettings(n,s);return bg(i,gf,og,e)}))},getMaintenanceTemplateCustomizationUrl(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getMaintenanceTemplateCustomizationUrl(n,s);return bg(i,gf,og,e)}))},getPasswordProtection(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getPasswordProtection(n,s);return bg(i,gf,og,e)}))},getRemoteAgentInstallationProperties(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getRemoteAgentInstallationProperties(n,s);return bg(i,gf,og,e)}))},getRemoteServerInstallationProperties(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getRemoteServerInstallationProperties(n,s);return bg(i,gf,og,e)}))},getScannerLogs(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getScannerLogs(n);return bg(s,gf,og,e)}))},getSecurityMeasures(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getSecurityMeasures(n);return bg(s,gf,og,e)}))},getSecurityMeasuresPerInstallations(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.getSecurityMeasuresPerInstallations(n,s,i,a,r);return bg(o,gf,og,e)}))},getServerInfo(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getServerInfo(n);return bg(s,gf,og,e)}))},getSetDetails(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSetDetails(n,s);return bg(i,gf,og,e)}))},getSetsList(n){return vg(this,void 0,void 0,(function*(){const s=yield t.getSetsList(n);return bg(s,gf,og,e)}))},getSetupDrawerSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSetupDrawerSettings(n,s);return bg(i,gf,og,e)}))},getSmartPhpUpdateResult(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSmartPhpUpdateResult(n,s);return bg(i,gf,og,e)}))},getSmartPhpUpdateStub(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSmartPhpUpdateStub(n,s);return bg(i,gf,og,e)}))},getSmartUpdateResult(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSmartUpdateResult(n,s);return bg(i,gf,og,e)}))},getSpecification(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getSpecification(n,s);return bg(i,gf,og,e)}))},getTaskSchedule(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getTaskSchedule(n,s);return bg(i,gf,og,e)}))},getVirtualPatchesSubscriptionGuid(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getVirtualPatchesSubscriptionGuid(n,s);return bg(i,gf,og,e)}))},getVirtualPatchesSubscriptionInfo(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getVirtualPatchesSubscriptionInfo(n,s);return bg(i,gf,og,e)}))},getVirtualPatchesSubscriptionPurchaseUrl(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.getVirtualPatchesSubscriptionPurchaseUrl(n,s,i);return bg(a,gf,og,e)}))},getWordPressDebugSettings(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getWordPressDebugSettings(n,s);return bg(i,gf,og,e)}))},getWordPressDebugSettingsMeta(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getWordPressDebugSettingsMeta(n,s);return bg(i,gf,og,e)}))},getWpCliCommandsList(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getWpCliCommandsList(n,s);return bg(i,gf,og,e)}))},getWpCredentials(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getWpCredentials(n,s);return bg(i,gf,og,e)}))},getWpCronTakeoverMeta(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.getWpCronTakeoverMeta(n,s);return bg(i,gf,og,e)}))},handleWordPressEvents(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.handleWordPressEvents(n,s,i);return bg(a,gf,og,e)}))},instalationsPluginsActivateDeactivate(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.instalationsPluginsActivateDeactivate(n,s,i,a);return bg(r,gf,og,e)}))},instalationsPluginsInfo(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.instalationsPluginsInfo(n,s,i);return bg(a,gf,og,e)}))},instalationsPluginsInstall(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.instalationsPluginsInstall(n,s,i);return bg(a,gf,og,e)}))},instalationsPluginsUninstall(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.instalationsPluginsUninstall(n,s,i);return bg(a,gf,og,e)}))},instalationsPluginsUploadAndInstall(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.instalationsPluginsUploadAndInstall(n,s,i,a);return bg(r,gf,og,e)}))},instalationsThemesActivate(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.instalationsThemesActivate(n,s,i,a);return bg(r,gf,og,e)}))},instalationsThemesInstall(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.instalationsThemesInstall(n,s,i);return bg(a,gf,og,e)}))},instalationsThemesUninstall(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.instalationsThemesUninstall(n,s,i);return bg(a,gf,og,e)}))},instalationsThemesUploadAndInstall(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.instalationsThemesUploadAndInstall(n,s,i,a);return bg(r,gf,og,e)}))},installSet(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.installSet(n,s);return bg(i,gf,og,e)}))},launchUpdate(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.launchUpdate(n,s,i,a,r);return bg(o,gf,og,e)}))},loginInstallation(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.loginInstallation(n,s,i,a);return bg(r,gf,og,e)}))},massUpdateInstallationsAutoUpdatesSettings(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.massUpdateInstallationsAutoUpdatesSettings(n,s,i,a,r);return bg(o,gf,og,e)}))},mitigateVulnerabilities(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.mitigateVulnerabilities(n,s);return bg(i,gf,og,e)}))},receiveHelloFromAgent(n){return vg(this,void 0,void 0,(function*(){const s=yield t.receiveHelloFromAgent(n);return bg(s,gf,og,e)}))},refreshAvailableUpdates(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.refreshAvailableUpdates(n,s);return bg(i,gf,og,e)}))},removeInstallationBackups(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.removeInstallationBackups(n,s,i,a);return bg(r,gf,og,e)}))},removePluginFromSet(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.removePluginFromSet(n,s,i,a);return bg(r,gf,og,e)}))},removeThemeFromSet(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.removeThemeFromSet(n,s,i,a);return bg(r,gf,og,e)}))},resetHotlinkProtectionSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.resetHotlinkProtectionSettings(n,s,i);return bg(a,gf,og,e)}))},resolveSecurityMeasures(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.resolveSecurityMeasures(n,s);return bg(i,gf,og,e)}))},restoreInstallationBackup(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.restoreInstallationBackup(n,s);return bg(i,gf,og,e)}))},restoreMaintenanceTemplate(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.restoreMaintenanceTemplate(n,s,i);return bg(a,gf,og,e)}))},revertSecurityMeasures(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.revertSecurityMeasures(n,s);return bg(i,gf,og,e)}))},runSmartPhpUpdate(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.runSmartPhpUpdate(n,s);return bg(i,gf,og,e)}))},scanInstallations(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.scanInstallations(n,s);return bg(i,gf,og,e)}))},setPluginsToSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.setPluginsToSet(n,s,i);return bg(a,gf,og,e)}))},setTaskSchedule(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.setTaskSchedule(n,s,i);return bg(a,gf,og,e)}))},setThemesToSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.setThemesToSet(n,s,i);return bg(a,gf,og,e)}))},statsHireDeveloperTransition(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.statsHireDeveloperTransition(n,s);return bg(i,gf,og,e)}))},upVoteForFeature(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.upVoteForFeature(n,s);return bg(i,gf,og,e)}))},updateAutoUpdateSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateAutoUpdateSettings(n,s,i);return bg(a,gf,og,e)}))},updateHotlinkProtectionSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateHotlinkProtectionSettings(n,s,i);return bg(a,gf,og,e)}))},updateHotlinkProtectionStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateHotlinkProtectionStatus(n,s,i);return bg(a,gf,og,e)}))},updateIndexingStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateIndexingStatus(n,s,i);return bg(a,gf,og,e)}))},updateInstallationLabels(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateInstallationLabels(n,s,i);return bg(a,gf,og,e)}))},updateInstallationSecurityPolicies(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateInstallationSecurityPolicies(n,s,i);return bg(a,gf,og,e)}))},updateInstallationsAutoUpdatesSettings(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.updateInstallationsAutoUpdatesSettings(n,s,i,a,r);return bg(o,gf,og,e)}))},updateInstallationsAutoUpdatesSettingsV2(n,s,i,a,r){return vg(this,void 0,void 0,(function*(){const o=yield t.updateInstallationsAutoUpdatesSettingsV2(n,s,i,a,r);return bg(o,gf,og,e)}))},updateInstallationsPlugins(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateInstallationsPlugins(n,s,i);return bg(a,gf,og,e)}))},updateInstallationsThemes(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateInstallationsThemes(n,s,i);return bg(a,gf,og,e)}))},updateLicenseInfo(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.updateLicenseInfo(n,s);return bg(i,gf,og,e)}))},updateMaintenanceSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateMaintenanceSettings(n,s,i);return bg(a,gf,og,e)}))},updateMaintenanceStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateMaintenanceStatus(n,s,i);return bg(a,gf,og,e)}))},updateNginxCachingStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateNginxCachingStatus(n,s,i);return bg(a,gf,og,e)}))},updatePasswordProtection(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updatePasswordProtection(n,s,i);return bg(a,gf,og,e)}))},updateSet(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateSet(n,s,i);return bg(a,gf,og,e)}))},updateSetupDrawerSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateSetupDrawerSettings(n,s,i);return bg(a,gf,og,e)}))},updateSmartUpdatesStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateSmartUpdatesStatus(n,s,i);return bg(a,gf,og,e)}))},updateVirtualPatchesProtectionStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateVirtualPatchesProtectionStatus(n,s,i);return bg(a,gf,og,e)}))},updateVulnerabilityFiltering(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateVulnerabilityFiltering(n,s,i);return bg(a,gf,og,e)}))},updateWordPressDebugSettings(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateWordPressDebugSettings(n,s,i);return bg(a,gf,og,e)}))},updateWordPressDebugStatus(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateWordPressDebugStatus(n,s,i);return bg(a,gf,og,e)}))},updateWpCronTakeover(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.updateWpCronTakeover(n,s,i);return bg(a,gf,og,e)}))},uploadPluginToSet(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.uploadPluginToSet(n,s,i,a);return bg(r,gf,og,e)}))},uploadThemeToSet(n,s,i,a){return vg(this,void 0,void 0,(function*(){const r=yield t.uploadThemeToSet(n,s,i,a);return bg(r,gf,og,e)}))},validateClonePath(n,s,i){return vg(this,void 0,void 0,(function*(){const a=yield t.validateClonePath(n,s,i);return bg(a,gf,og,e)}))},validateInstallationPath(n,s){return vg(this,void 0,void 0,(function*(){const i=yield t.validateInstallationPath(n,s);return bg(i,gf,og,e)}))}}};class Ag extends lg{acceptSmartPhpUpdate(e,t,n){return Lg(this.configuration).acceptSmartPhpUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}activateVirtualPatchesSubscription(e,t,n){return Lg(this.configuration).activateVirtualPatchesSubscription(e,t,n).then((e=>e(this.axios,this.basePath)))}addLicense(e,t){return Lg(this.configuration).addLicense(e,t).then((e=>e(this.axios,this.basePath)))}addPluginsToSet(e,t,n){return Lg(this.configuration).addPluginsToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}addThemesToSet(e,t,n){return Lg(this.configuration).addThemesToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}applySmartUpdate(e,t,n){return Lg(this.configuration).applySmartUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}appyVirtualPatches(e,t){return Lg(this.configuration).appyVirtualPatches(e,t).then((e=>e(this.axios,this.basePath)))}calculateVulnerabilityProtectionUsageStatistics(e,t){return Lg(this.configuration).calculateVulnerabilityProtectionUsageStatistics(e,t).then((e=>e(this.axios,this.basePath)))}cancelBackgroundTask(e,t,n){return Lg(this.configuration).cancelBackgroundTask(e,t,n).then((e=>e(this.axios,this.basePath)))}checkInstallationsVulnerability(e,t){return Lg(this.configuration).checkInstallationsVulnerability(e,t).then((e=>e(this.axios,this.basePath)))}checkSecurity(e,t){return Lg(this.configuration).checkSecurity(e,t).then((e=>e(this.axios,this.basePath)))}cleanInstallationCache(e,t){return Lg(this.configuration).cleanInstallationCache(e,t).then((e=>e(this.axios,this.basePath)))}cloneInstallation(e,t){return Lg(this.configuration).cloneInstallation(e,t).then((e=>e(this.axios,this.basePath)))}closeGlobalAlert(e,t){return Lg(this.configuration).closeGlobalAlert(e,t).then((e=>e(this.axios,this.basePath)))}createInstallation(e,t){return Lg(this.configuration).createInstallation(e,t).then((e=>e(this.axios,this.basePath)))}createInstallationBackup(e,t){return Lg(this.configuration).createInstallationBackup(e,t).then((e=>e(this.axios,this.basePath)))}createInstallationWpUser(e,t,n){return Lg(this.configuration).createInstallationWpUser(e,t,n).then((e=>e(this.axios,this.basePath)))}createMaintenancePreview(e,t,n){return Lg(this.configuration).createMaintenancePreview(e,t,n).then((e=>e(this.axios,this.basePath)))}createSet(e,t){return Lg(this.configuration).createSet(e,t).then((e=>e(this.axios,this.basePath)))}deleteLicense(e,t){return Lg(this.configuration).deleteLicense(e,t).then((e=>e(this.axios,this.basePath)))}deleteSet(e,t,n){return Lg(this.configuration).deleteSet(e,t,n).then((e=>e(this.axios,this.basePath)))}detachInstallations(e,t){return Lg(this.configuration).detachInstallations(e,t).then((e=>e(this.axios,this.basePath)))}detachVirtualPatchesSubscription(e,t,n){return Lg(this.configuration).detachVirtualPatchesSubscription(e,t,n).then((e=>e(this.axios,this.basePath)))}disableVirtualPatches(e,t){return Lg(this.configuration).disableVirtualPatches(e,t).then((e=>e(this.axios,this.basePath)))}discardSmartPhpUpdate(e,t,n){return Lg(this.configuration).discardSmartPhpUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}discardSmartUpdate(e,t,n){return Lg(this.configuration).discardSmartUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}executeWpCliCommand(e,t,n){return Lg(this.configuration).executeWpCliCommand(e,t,n).then((e=>e(this.axios,this.basePath)))}featureVulnerabilityStatsUpdate(e,t){return Lg(this.configuration).featureVulnerabilityStatsUpdate(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableAutoUpdateSettings(e,t){return Lg(this.configuration).fetchAvailableAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableInstallationsAutoUpdateSettings(e,t){return Lg(this.configuration).fetchAvailableInstallationsAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableUpdates(e,t,n,s,i){return Lg(this.configuration).fetchAvailableUpdates(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}fetchInstallationsVulnerabilityStatuses(e,t,n,s,i){return Lg(this.configuration).fetchInstallationsVulnerabilityStatuses(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}fetchInstallationsVulnerabilityStatusesShort(e,t,n,s,i){return Lg(this.configuration).fetchInstallationsVulnerabilityStatusesShort(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}forgotPlatfromApiKey(e){return Lg(this.configuration).forgotPlatfromApiKey(e).then((e=>e(this.axios,this.basePath)))}getAutoUpdateSettings(e,t){return Lg(this.configuration).getAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}getAvailablePhpHandlers(e,t){return Lg(this.configuration).getAvailablePhpHandlers(e,t).then((e=>e(this.axios,this.basePath)))}getBackgroundTask(e,t,n){return Lg(this.configuration).getBackgroundTask(e,t,n).then((e=>e(this.axios,this.basePath)))}getBackgroundTasksList(e,t,n){return Lg(this.configuration).getBackgroundTasksList(e,t,n).then((e=>e(this.axios,this.basePath)))}getChangelogs(e){return Lg(this.configuration).getChangelogs(e).then((e=>e(this.axios,this.basePath)))}getCloneStub(e,t,n,s,i,a,r,o){return Lg(this.configuration).getCloneStub(e,t,n,s,i,a,r,o).then((e=>e(this.axios,this.basePath)))}getHealthStatus(e){return Lg(this.configuration).getHealthStatus(e).then((e=>e(this.axios,this.basePath)))}getHotlinkProtectionSettingsMeta(e,t){return Lg(this.configuration).getHotlinkProtectionSettingsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getInstallation(e,t){return Lg(this.configuration).getInstallation(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationBackupsInfo(e,t,n){return Lg(this.configuration).getInstallationBackupsInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}getInstallationBackupsMeta(e,t){return Lg(this.configuration).getInstallationBackupsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationLabelsMeta(e,t){return Lg(this.configuration).getInstallationLabelsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationPlugins(e,t){return Lg(this.configuration).getInstallationPlugins(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationSecurityPolicies(e,t){return Lg(this.configuration).getInstallationSecurityPolicies(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationStub(e,t,n){return Lg(this.configuration).getInstallationStub(e,t,n).then((e=>e(this.axios,this.basePath)))}getInstallationThemes(e,t){return Lg(this.configuration).getInstallationThemes(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationWpUserStub(e,t){return Lg(this.configuration).getInstallationWpUserStub(e,t).then((e=>e(this.axios,this.basePath)))}getInstallations(e,t,n,s){return Lg(this.configuration).getInstallations(e,t,n,s).then((e=>e(this.axios,this.basePath)))}getInstallationsPlugins(e,t,n,s,i,a,r,o,l){return Lg(this.configuration).getInstallationsPlugins(e,t,n,s,i,a,r,o,l).then((e=>e(this.axios,this.basePath)))}getInstallationsRemoveConfirmation(e,t){return Lg(this.configuration).getInstallationsRemoveConfirmation(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationsThemes(e,t,n,s,i,a,r,o,l){return Lg(this.configuration).getInstallationsThemes(e,t,n,s,i,a,r,o,l).then((e=>e(this.axios,this.basePath)))}getIntegrity(e,t){return Lg(this.configuration).getIntegrity(e,t).then((e=>e(this.axios,this.basePath)))}getLicenseInfo(e){return Lg(this.configuration).getLicenseInfo(e).then((e=>e(this.axios,this.basePath)))}getMaintenanceSettings(e,t){return Lg(this.configuration).getMaintenanceSettings(e,t).then((e=>e(this.axios,this.basePath)))}getMaintenanceTemplateCustomizationUrl(e,t){return Lg(this.configuration).getMaintenanceTemplateCustomizationUrl(e,t).then((e=>e(this.axios,this.basePath)))}getPasswordProtection(e,t){return Lg(this.configuration).getPasswordProtection(e,t).then((e=>e(this.axios,this.basePath)))}getRemoteAgentInstallationProperties(e,t){return Lg(this.configuration).getRemoteAgentInstallationProperties(e,t).then((e=>e(this.axios,this.basePath)))}getRemoteServerInstallationProperties(e,t){return Lg(this.configuration).getRemoteServerInstallationProperties(e,t).then((e=>e(this.axios,this.basePath)))}getScannerLogs(e){return Lg(this.configuration).getScannerLogs(e).then((e=>e(this.axios,this.basePath)))}getSecurityMeasures(e){return Lg(this.configuration).getSecurityMeasures(e).then((e=>e(this.axios,this.basePath)))}getSecurityMeasuresPerInstallations(e,t,n,s,i){return Lg(this.configuration).getSecurityMeasuresPerInstallations(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}getServerInfo(e){return Lg(this.configuration).getServerInfo(e).then((e=>e(this.axios,this.basePath)))}getSetDetails(e,t){return Lg(this.configuration).getSetDetails(e,t).then((e=>e(this.axios,this.basePath)))}getSetsList(e){return Lg(this.configuration).getSetsList(e).then((e=>e(this.axios,this.basePath)))}getSetupDrawerSettings(e,t){return Lg(this.configuration).getSetupDrawerSettings(e,t).then((e=>e(this.axios,this.basePath)))}getSmartPhpUpdateResult(e,t){return Lg(this.configuration).getSmartPhpUpdateResult(e,t).then((e=>e(this.axios,this.basePath)))}getSmartPhpUpdateStub(e,t){return Lg(this.configuration).getSmartPhpUpdateStub(e,t).then((e=>e(this.axios,this.basePath)))}getSmartUpdateResult(e,t){return Lg(this.configuration).getSmartUpdateResult(e,t).then((e=>e(this.axios,this.basePath)))}getSpecification(e,t){return Lg(this.configuration).getSpecification(e,t).then((e=>e(this.axios,this.basePath)))}getTaskSchedule(e,t){return Lg(this.configuration).getTaskSchedule(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionGuid(e,t){return Lg(this.configuration).getVirtualPatchesSubscriptionGuid(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionInfo(e,t){return Lg(this.configuration).getVirtualPatchesSubscriptionInfo(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionPurchaseUrl(e,t,n){return Lg(this.configuration).getVirtualPatchesSubscriptionPurchaseUrl(e,t,n).then((e=>e(this.axios,this.basePath)))}getWordPressDebugSettings(e,t){return Lg(this.configuration).getWordPressDebugSettings(e,t).then((e=>e(this.axios,this.basePath)))}getWordPressDebugSettingsMeta(e,t){return Lg(this.configuration).getWordPressDebugSettingsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getWpCliCommandsList(e,t){return Lg(this.configuration).getWpCliCommandsList(e,t).then((e=>e(this.axios,this.basePath)))}getWpCredentials(e,t){return Lg(this.configuration).getWpCredentials(e,t).then((e=>e(this.axios,this.basePath)))}getWpCronTakeoverMeta(e,t){return Lg(this.configuration).getWpCronTakeoverMeta(e,t).then((e=>e(this.axios,this.basePath)))}handleWordPressEvents(e,t,n){return Lg(this.configuration).handleWordPressEvents(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsActivateDeactivate(e,t,n,s){return Lg(this.configuration).instalationsPluginsActivateDeactivate(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsPluginsInfo(e,t,n){return Lg(this.configuration).instalationsPluginsInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsInstall(e,t,n){return Lg(this.configuration).instalationsPluginsInstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsUninstall(e,t,n){return Lg(this.configuration).instalationsPluginsUninstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsUploadAndInstall(e,t,n,s){return Lg(this.configuration).instalationsPluginsUploadAndInstall(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsThemesActivate(e,t,n,s){return Lg(this.configuration).instalationsThemesActivate(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsThemesInstall(e,t,n){return Lg(this.configuration).instalationsThemesInstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsThemesUninstall(e,t,n){return Lg(this.configuration).instalationsThemesUninstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsThemesUploadAndInstall(e,t,n,s){return Lg(this.configuration).instalationsThemesUploadAndInstall(e,t,n,s).then((e=>e(this.axios,this.basePath)))}installSet(e,t){return Lg(this.configuration).installSet(e,t).then((e=>e(this.axios,this.basePath)))}launchUpdate(e,t,n,s,i){return Lg(this.configuration).launchUpdate(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}loginInstallation(e,t,n,s){return Lg(this.configuration).loginInstallation(e,t,n,s).then((e=>e(this.axios,this.basePath)))}massUpdateInstallationsAutoUpdatesSettings(e,t,n,s,i){return Lg(this.configuration).massUpdateInstallationsAutoUpdatesSettings(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}mitigateVulnerabilities(e,t){return Lg(this.configuration).mitigateVulnerabilities(e,t).then((e=>e(this.axios,this.basePath)))}receiveHelloFromAgent(e){return Lg(this.configuration).receiveHelloFromAgent(e).then((e=>e(this.axios,this.basePath)))}refreshAvailableUpdates(e,t){return Lg(this.configuration).refreshAvailableUpdates(e,t).then((e=>e(this.axios,this.basePath)))}removeInstallationBackups(e,t,n,s){return Lg(this.configuration).removeInstallationBackups(e,t,n,s).then((e=>e(this.axios,this.basePath)))}removePluginFromSet(e,t,n,s){return Lg(this.configuration).removePluginFromSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}removeThemeFromSet(e,t,n,s){return Lg(this.configuration).removeThemeFromSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}resetHotlinkProtectionSettings(e,t,n){return Lg(this.configuration).resetHotlinkProtectionSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}resolveSecurityMeasures(e,t){return Lg(this.configuration).resolveSecurityMeasures(e,t).then((e=>e(this.axios,this.basePath)))}restoreInstallationBackup(e,t){return Lg(this.configuration).restoreInstallationBackup(e,t).then((e=>e(this.axios,this.basePath)))}restoreMaintenanceTemplate(e,t,n){return Lg(this.configuration).restoreMaintenanceTemplate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertSecurityMeasures(e,t){return Lg(this.configuration).revertSecurityMeasures(e,t).then((e=>e(this.axios,this.basePath)))}runSmartPhpUpdate(e,t){return Lg(this.configuration).runSmartPhpUpdate(e,t).then((e=>e(this.axios,this.basePath)))}scanInstallations(e,t){return Lg(this.configuration).scanInstallations(e,t).then((e=>e(this.axios,this.basePath)))}setPluginsToSet(e,t,n){return Lg(this.configuration).setPluginsToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}setTaskSchedule(e,t,n){return Lg(this.configuration).setTaskSchedule(e,t,n).then((e=>e(this.axios,this.basePath)))}setThemesToSet(e,t,n){return Lg(this.configuration).setThemesToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}statsHireDeveloperTransition(e,t){return Lg(this.configuration).statsHireDeveloperTransition(e,t).then((e=>e(this.axios,this.basePath)))}upVoteForFeature(e,t){return Lg(this.configuration).upVoteForFeature(e,t).then((e=>e(this.axios,this.basePath)))}updateAutoUpdateSettings(e,t,n){return Lg(this.configuration).updateAutoUpdateSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateHotlinkProtectionSettings(e,t,n){return Lg(this.configuration).updateHotlinkProtectionSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateHotlinkProtectionStatus(e,t,n){return Lg(this.configuration).updateHotlinkProtectionStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateIndexingStatus(e,t,n){return Lg(this.configuration).updateIndexingStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationLabels(e,t,n){return Lg(this.configuration).updateInstallationLabels(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationSecurityPolicies(e,t,n){return Lg(this.configuration).updateInstallationSecurityPolicies(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationsAutoUpdatesSettings(e,t,n,s,i){return Lg(this.configuration).updateInstallationsAutoUpdatesSettings(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}updateInstallationsAutoUpdatesSettingsV2(e,t,n,s,i){return Lg(this.configuration).updateInstallationsAutoUpdatesSettingsV2(e,t,n,s,i).then((e=>e(this.axios,this.basePath)))}updateInstallationsPlugins(e,t,n){return Lg(this.configuration).updateInstallationsPlugins(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationsThemes(e,t,n){return Lg(this.configuration).updateInstallationsThemes(e,t,n).then((e=>e(this.axios,this.basePath)))}updateLicenseInfo(e,t){return Lg(this.configuration).updateLicenseInfo(e,t).then((e=>e(this.axios,this.basePath)))}updateMaintenanceSettings(e,t,n){return Lg(this.configuration).updateMaintenanceSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateMaintenanceStatus(e,t,n){return Lg(this.configuration).updateMaintenanceStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateNginxCachingStatus(e,t,n){return Lg(this.configuration).updateNginxCachingStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updatePasswordProtection(e,t,n){return Lg(this.configuration).updatePasswordProtection(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSet(e,t,n){return Lg(this.configuration).updateSet(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSetupDrawerSettings(e,t,n){return Lg(this.configuration).updateSetupDrawerSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSmartUpdatesStatus(e,t,n){return Lg(this.configuration).updateSmartUpdatesStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateVirtualPatchesProtectionStatus(e,t,n){return Lg(this.configuration).updateVirtualPatchesProtectionStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateVulnerabilityFiltering(e,t,n){return Lg(this.configuration).updateVulnerabilityFiltering(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWordPressDebugSettings(e,t,n){return Lg(this.configuration).updateWordPressDebugSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWordPressDebugStatus(e,t,n){return Lg(this.configuration).updateWordPressDebugStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWpCronTakeover(e,t,n){return Lg(this.configuration).updateWpCronTakeover(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadPluginToSet(e,t,n,s){return Lg(this.configuration).uploadPluginToSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}uploadThemeToSet(e,t,n,s){return Lg(this.configuration).uploadThemeToSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}validateClonePath(e,t,n){return Lg(this.configuration).validateClonePath(e,t,n).then((e=>e(this.axios,this.basePath)))}validateInstallationPath(e,t){return Lg(this.configuration).validateInstallationPath(e,t).then((e=>e(this.axios,this.basePath)))}}class Eg{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}let Rg=null,Ug=null,Ng="/",Fg=e=>{};const Yg=(e,t,n=!1)=>{Ng=yf(e),Fg=t,Rg=gf.create({baseURL:Ng,headers:xf({"Is-Webspace-Context":n.toString()})}),Rg.interceptors.response.use((e=>Tf(e)),(e=>Cf(Fg,e)));const s=new Eg({basePath:Ng});Ug=new Ag(s,void 0,Rg)},Hg=e=>t=>{if(!_f(e.response))return;const n=(s=e.response,_f(s)&&(null==s?void 0:s.data.formErrors)||null);var s;if(!n||0===Object.keys(n).length)return;const i=e=>{"string"==typeof e?t(Kg("error",e)):Array.isArray(e)&&e.filter((e=>!!e)).forEach((e=>t(Kg("error",e))))};Object.values(n).forEach((e=>{Object.values(e).forEach((e=>{"string"==typeof e||Array.isArray(e)?i(e):Object.values(e).forEach((e=>{i(e)}))}))}))},Bg=e=>t=>{if(!Sf(e.response))return;const n=(s=e.response,Sf(s)&&(null==s?void 0:s.data.meta)||null);var s;(null==n?void 0:n.message)&&t(Kg("error",n.message))},Vg=(e,t,n)=>s=>{switch(Jd(e).forEach((({status:e,message:t})=>s(Kg(e,t)))),e.status){case fp:if(t)return Promise.resolve(t()).then((()=>e));break;case gp:if(n)return Promise.resolve(n()).then((()=>e))}return Promise.resolve(e)},$g=()=>()=>tg.check(),Wg=e=>t=>t(Kg(yp,e)),zg=e=>t=>t(Kg("info",e)),qg=e=>t=>t(Kg(_p,e)),Gg=e=>t=>t(Kg(xp,e)),Kg=Qd(Bp,"intent","message"),Xg=Qd(Vp),Qg=Qd($p,"search"),Jg=Qd(Gp,"options","urls"),Zg=()=>e=>Kf.disableSmartUpdatePromoForInstances().then((({data:t})=>{e(Vg(t,(()=>e({type:Wp}))))})),eb=e=>t=>Kf.disableSmartUpdatePromoForUpdatesScreen(Kd().stringify(e)).then((({data:e})=>{t(Vg(e,(()=>t({type:zp}))))})),tb=e=>t=>Kf.disableSmartUpdatePromoForMultipleSitesUpdatesScreen(Kd().stringify(e)).then((({data:e})=>{t(Vg(e,(()=>t({type:qp}))))})),nb=()=>e=>Kf.getInitialData().then((({data:t})=>{e(Vg(t,(()=>e(Jg(t.data.options,t.data.urls)))))})),sb=e=>t=>t({type:Xp,index:e}),ib=e=>t=>{Ug.closeGlobalAlert({alertId:e}).catch(),t({type:Jp,alertId:e})},ab=()=>e=>(e(rb(null)),Ug.getChangelogs().then((({data:t})=>(e(rb(t.changelog)),t.changelog))).catch((t=>(e(Bg(t)),Promise.reject())))),rb=Qd(Kp,"changelog"),ob=()=>e=>(e(cb(null)),Kf.getPremiumUsers().then((({data:t})=>(e(Vg(t,(()=>e(cb(t.data.premiumUsers))))),t)))),lb=e=>t=>Kf.getWhmcsUpsellLink(e).then((({data:e})=>(t(Vg(e)),e))),cb=Qd(Qp,"premiumUsers"),ub=e=>t=>Ug.upVoteForFeature({featureName:e}).then((()=>{t({type:Zp,featureName:e})})),db=()=>e=>Ug.getLicenseInfo().then((({data:t})=>{e({type:eh,info:t})})),pb=()=>e=>Ug.updateLicenseInfo().then((({data:t})=>(e({type:eh,info:t}),t))).catch((t=>(e(Bg(t)),Promise.reject()))),hb=e=>{const t=`${e}/get-initial-data`;return gf.get(t,{headers:{Accept:"application/json","Cache-Control":"no-cache",Credentials:"same-origin"}}).then((({data:e})=>{if("error"===e.status)throw new Error(e.message);if(void 0===e.data||void 0===e.data.urls||void 0===e.data.options||void 0===e.data.unpaidFeatures||void 0===e.data.buildMeta)throw new Error("Initial data load error: some required fields are not provided");return e.data}))};let mb=!1;const fb=()=>{if(!mb){const e=Date.now();if(!(window&&window.performance&&window.performance.timing&&window.performance.timing.connectStart))return;if("/"!==window.WPT_INITIAL_ROUTE_PATHNAME&&"/list"!==window.WPT_INITIAL_ROUTE_PATHNAME)return;const t=window.performance.timing.connectStart,n=e-t;mb=!0,setTimeout((()=>Kf.sendMainPagePerfStat(n,Math.floor(t/1e3)).catch((e=>window.console.warn(`Failed to record page load statistics ${e}`)))),2e3)}};function gb(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bb=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),vb=()=>Math.random().toString(36).substring(7).split("").join("."),yb={INIT:`@@redux/INIT${vb()}`,REPLACE:`@@redux/REPLACE${vb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vb()}`};function xb(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function _b(e,t,n){if("function"!=typeof e)throw new Error(gb(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(gb(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(gb(1));return n(_b)(e,t)}let s=e,i=t,a=new Map,r=a,o=0,l=!1;function c(){r===a&&(r=new Map,a.forEach(((e,t)=>{r.set(t,e)})))}function u(){if(l)throw new Error(gb(3));return i}function d(e){if("function"!=typeof e)throw new Error(gb(4));if(l)throw new Error(gb(5));let t=!0;c();const n=o++;return r.set(n,e),function(){if(t){if(l)throw new Error(gb(6));t=!1,c(),r.delete(n),a=null}}}function p(e){if(!xb(e))throw new Error(gb(7));if(void 0===e.type)throw new Error(gb(8));if("string"!=typeof e.type)throw new Error(gb(17));if(l)throw new Error(gb(9));try{l=!0,i=s(i,e)}finally{l=!1}return(a=r).forEach((e=>{e()})),e}return p({type:yb.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(gb(10));s=e,p({type:yb.REPLACE})},[bb]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(gb(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[bb](){return this}}}}}function Sb(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const i=t[s];"function"==typeof e[i]&&(n[i]=e[i])}const s=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:yb.INIT}))throw new Error(gb(12));if(void 0===n(void 0,{type:yb.PROBE_UNKNOWN_ACTION()}))throw new Error(gb(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const r={};for(let i=0;i<s.length;i++){const o=s[i],l=n[o],c=e[o],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(gb(14));r[o]=u,a=a||u!==c}return a=a||s.length!==Object.keys(e).length,a?r:e}}function wb(e,t){return function(...n){return t(e.apply(this,n))}}function kb(e,t){if("function"==typeof e)return wb(e,t);if("object"!=typeof e||null===e)throw new Error(gb(16));const n={};for(const s in e){const i=e[s];"function"==typeof i&&(n[s]=wb(i,t))}return n}function jb(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}const Tb="checkbox",Cb="settings/OPEN_DRAWER",Db="settings/CLOSE_DRAWER",Pb="settings/SETTINGS_REQUESTED",Ob="settings/SETTINGS_LOADED",Ib="settings/SETTINGS_LOADING_ERROR",Mb="settings/SETTINGS_SUBMITTED",Lb="settings/SETTINGS_UPDATED",Ab="settings/SETTINGS_UPDATE_ERROR",Eb=()=>(e,t)=>{t().settings.status===Ip&&e(Rb())},Rb=()=>e=>(ng.load().then((({data:t})=>{const n=Jd(t);if(t.status===gp)return void e(Bb(n));const s=ip(t,"settings");s&&e(Hb(s,n))})),e(Yb())),Ub=e=>t=>(t(Vb()),ng.update(Kd().stringify(e)).then((({data:e})=>{const n=Jd(e);if(e.status===gp)return void t(Wb(n,e.formErrors));const s=ip(e,"settings");t($b(s,n))}))),Nb=Qd(Cb),Fb=Qd(Db),Yb=Qd(Pb),Hb=Qd(Ob,"settings","messages"),Bb=Qd(Ib,"messages"),Vb=Qd(Mb),$b=Qd(Lb,"settings","messages"),Wb=Qd(Ab,"messages","formErrors"),zb="instance-remove-confirmation-button-yes",qb="instance-detach-confirmation-button-yes",Gb="instances-dialog",Kb="instance-remove",Xb="instance-check-security",Qb="instance-detach",Jb="remote-instance-properties",Zb="remote-server-drawer",ev="remote-agent-instance-properties",tv="instance-tab-list",nv="instance-database-settings-phpmyadmin-link",sv="update-button",iv="update-button-with-confirmation",av="update-settings-submit-button",rv="btn-upgrade",ov="virtual-patches-switcher-prompt-submit-button",lv="refresh-button",cv="btn-send",uv="instance-link-files",dv="clone-path",pv="toolbar-activate-button",hv="install-drawer-search-input",mv="install-drawer-search-button",fv="found-assets-list",gv="instance-backups-drawer-remove-backup",bv="instance-security-vulnerabilities-virtual-patches-disabled-widget",vv="instances-security-sites-button",yv="instances-security-vulnerabilities-button",xv="instances-security-vulnerabilities-apply-virtual-patches-button",_v="instances-security-vulnerabilities-virtual-patches-apply-confirm-button",Sv="instances-security-vulnerabilities-mitigated-by-virtual-patches-label",wv="instances-security-vulnerabilities-mitigated-by-deactivate-asset-label",kv="instances-security-vulnerabilities-mitigated-unused-theme-label",jv="instances-security-vulnerabilities-mitigated-by-security-measures-label",Tv="instances-security-vulnerabilities-mitigated-by-multiply-types-label",Cv="instances-security-vulnerabilities-ignored-label",Dv="instances-security-vulnerabilities-theme-advise",Pv="wpt-virtual-patching-upsell-dialog-buy-button",Ov="wpt-security-widgets",Iv="blocked-relative-date",Mv="vulnerability-protection-widget",Lv="looks-good",Av="virtual-patches-shield-button",Ev="virtual-patches-shield-apply-confirm-button",Rv=(e,t={})=>{let n;try{n=Jsw&&Jsw.UAT}catch(e){}n&&n.dispatchAction(e,t)},Uv=e=>{let t;try{t=Jsw&&Jsw.UAT}catch(e){}if(!t||!t.getConfig())return e;const n=new URL(e,window.location.href),s=new URLSearchParams(n.search),{instanceId:i,accountId:a,sessionId:r}=t.getConfig();return s.set("ux",`${i}.${a}.${r}`),n.search=s.toString(),n.toString()},Nv=mc((e=>({useWhmcsUpsellLinks:e.app.options.useWhmcsUpsellLinks})),{getWhmcsUpsellLink:lb})((({purchaseLicenseUrl:e,getWhmcsUpsellLink:t,onTogglePopover:n,uatAction:s,children:i,useWhmcsUpsellLinks:a,installationId:r,featureType:o,onClick:l,intent:c="success"})=>{const u=zd();return a&&!o?(0,P.jsx)(Be,{intent:c,onClick:()=>(s&&Rv(s),(({installationId:e,getWhmcsUpsellLink:t,translate:n,purchaseLicenseUrl:s})=>{const i=window.open("","_blank");i&&(i.document.body.innerText=n("general-ui.loadingUpgradePage"),t(e).then((({data:{url:e}={}})=>{const t=e||s;t||i.close(),i.location=t})))})({installationId:r,getWhmcsUpsellLink:t,translate:u,purchaseLicenseUrl:e}),null==l||l(),cp(n)),icon:"lock-open","data-test-id":rv,children:i}):(0,P.jsx)(Be,{component:"a",href:e,target:"_blank",intent:c,onClick:()=>(s&&Rv(s),null==l||l(),cp(n)),icon:"lock-open","data-test-id":rv,children:i})})),Fv=({purchaseLicenseUrl:e,premiumFeaturesUrl:t,onTogglePopover:n,children:s,baseClassName:i=`${Rp}paid-feature-desc`,uatAction:a,installationId:r})=>(0,P.jsxs)(tr,{className:i,"data-test-id":"license-warning",children:[(0,P.jsxs)(ir,{children:[(0,P.jsx)(be,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"paidFeatureDesc.title"})})]}),(0,P.jsx)(sr,{children:s}),(0,P.jsxs)(nr,{children:[(0,P.jsx)(Nv,{purchaseLicenseUrl:e,uatAction:a,onTogglePopover:n,installationId:r,children:(0,P.jsx)(qd,{content:"paidFeatureDesc.buttonPurchase"})}),t&&(0,P.jsx)(Be,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,P.jsx)(qd,{content:"paidFeatureDesc.buttonDiscoverAllPremiumFeatures"})})]})]});class Yv extends M.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.props.isAbleToClick&&this.setState((e=>({showPopover:!e.showPopover}))),this.getPopover=()=>{const{upgradeUrl:e,premiumFeaturesUrl:t,description:n,uatAction:s,installationId:i}=this.props,{showPopover:a}=this.state;return(0,P.jsx)(Fs,{visible:a,width:"xs",onClose:this.handleTogglePopover,target:(0,P.jsx)(ye,{onClick:this.handleTogglePopover,icon:"lock-closed"}),children:(0,P.jsx)(Fv,{uatAction:s,purchaseLicenseUrl:e,premiumFeaturesUrl:t,onTogglePopover:this.handleTogglePopover,installationId:i,children:n})})},this.state={isUnpaid:!!e.unpaidFeatures[e.featureName],showPopover:!1}}render(){const{className:e,baseClassName:t,children:n,isInstanceFeatureDisabled:s}=this.props,{isUnpaid:i}=this.state;let a=!1;return null!=s&&(a=s),i||a?(0,P.jsxs)("span",{className:E()(t,e),children:[this.getPopover()," ",n]}):(0,P.jsx)("span",{className:E()(t,e),children:n})}}Yv.defaultProps={children:void 0,isAbleToClick:!0,className:void 0,uatAction:void 0,baseClassName:`${Rp}paid-feature`,isInstanceFeatureDisabled:void 0};const Hv=mc(((e,t)=>({upgradeUrl:e.app.urls.featuresBuyLinks[t.featureName],unpaidFeatures:e.app.unpaidFeatures,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),null,null,{forwardRef:!0})(Yv),Bv=({link:e,inNewWindow:t,goToUri:n,accountUsername:s})=>Wv()?{onClick:t=>Xd(t,(()=>n(e,s)))}:{href:`${Vv()}/${e}`,target:t?"_blank":"_self"},Vv=()=>`${window.location.origin}${zv()}`,$v={2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",frontend:"cpanel",webmail:"webmail"},Wv=()=>{const e=location.pathname.match(/((?:\/cpsess\d+)?)(?:\/([^/]+))?/)||[],t=$v[location.port]||$v[e[2]]||"whostmgr";return/wh/i.test(t)||!1},zv=()=>(location.pathname.match(/((?:\/cpsess\d+)?)(?:\/([^/]+))?/)||[])[1]||"",qv="SHOW_INSTANCES_SMART_UPDATE_PROMO",Gv="CLICK_EXT_BUY_FROM_MULTIPLE_UPDATE_FORM",Kv="CLICK_EXT_BUY_FROM_INSTANCE_CARD",Xv="CLICK_EXT_BUY_FROM_INSTANCES_LIST",Qv="CLICK_EXT_BUY_FROM_INSTANCE_SECURITY",Jv="CLICK_EXT_BUY_FROM_INSTANCES_SECURITY",Zv="instances/SET_FILTER",ey="instances/REMOVE_INSTALLATIONS",ty="instances/SET_INSTALLATION_NAME",ny="instances/INSTANCE_PASSWORD_PROTECTION_UPDATED",sy="instances/ADD_ASSETS_TO_REMOVAL",iy="instances/REMOVE_ASSETS_FROM_REMOVAL",ay="instances/ADD_ASSET_TO_CHANGING_STATUS",ry="instances/REMOVE_ASSET_FROM_CHANGING_STATUS",oy="instances/TOGGLE_DEBUG",ly="instances/TOGGLE_INDEXING",cy="instances/NGINX_CACHING_INSTALLATION_UPDATE",uy="instances/SMART_UPDATES_INSTALLATION_UPDATE",dy="instances/WP_CRON_TAKEOVER_UPDATED",py="instances/WP_CRON_TASK_REPLACEMENT_UPDATED",hy="instances/TOGGLE_HOTLINK_PROTECTION",my="instances/SET_MAINTENANCE_STATUS",fy="instances/UPDATE_ITEMS_STARTED",gy="instances/SET_AUTO_UPDATES_SETTINGS_FINISHED_SUCCESSFULLY",by="instances/SMART_UPDATES_STARTED",vy="instances/DISCARD_SMART_UPDATES",yy="instances/APPLY_SMART_UPDATES_STARTED",xy="instances/SET_SCREENSHOT",_y="instances/SET_IS_SCREENSHOT_LOADING",Sy="instances/RESTORE_SNAPSHOT_STARTED",wy="instances/DELETE_SNAPSHOT",ky="instances/SET_IS_NEED_TO_UPDATE_INSTANCES_LIST",jy="instances/SET_IS_NEED_TO_UPDATE_INSTANCES_FILTER",Ty="instances/RESET_INSTANCES_LIST",Cy="instances/CONNECT_REMOTE_AGENT_INSTANCE_STARTED",Dy="instances/SCAN_STARTED",Py="instances/SET_SELECTED_INSTANCE_ID",Oy="instances/SET_EXPANDED_INSTANCE_ID",Iy="instances/SET_KEPT_EXPANDED_INSTANCE_IDS",My="instances/SET_LAST_INSTALLED_INSTANCE_ID",Ly="instances/MASS_CHECK_UPDATES_STARTED",Ay="instances/UPDATE_STORES_ON_MASS_UPDATES_RECEIVED",Ey="instances/SET_INSTANCE_ACTIVE_TAB",Ry="instances/INSTALLATIONS_LOADED",Uy="instances/INSTALLATIONS_RELOADED",Ny="instances/SET_INSTALLATION_LABELS",Fy="instances/INSTALLATION_STARTED",Yy="instances/SET_INSTALLATION_AFTER_INSTANCE_INSTALL_STARTED",Hy="instances/LOGIN_TO_INSTANCE",By="instances/LOGIN_TO_INSTANCE_PERFORMED",Vy="instances/SYNCHRONIZE_SITE_URL",$y="instances/SET_ADMIN_SETTINGS_FINISHED",Wy="instances/SET_MAINTENANCE_FULL_MODE",zy="instances/UPDATE_INSTALLATIONS_VULNERABILITY_STATUSES",qy="instances/CHECK_INSTALLATIONS_VULNERABILITY_FINISHED",Gy="instances/CHECK_INSTALLATIONS_VULNERABILITY_STARTED",Ky="instances/SET_INSTALLATION_PHP_HANDLER",Xy="instances/SMART_PHP_UPDATE_STARTED",Qy="instances/SMART_PHP_UPDATE_TASK_STATUS_UPDATED",Jy="installations/INTEGRITY_RECEIVED",Zy="installations/VULNERABILITY_FILTERING_SETTINGS_UPDATED",ex="installations/APPEND_DOMAIN_INSTALLATION_IDS",tx="installations/VIRTUAL_PATCHING_SUBSCRIPTION_UPDATED",nx=null,sx="core",ix="plugins",ax="themes",rx="updates/MASS_UPDATES_RECEIVED",ox="updates/CLEAN_UP_STORE";class lx extends Error{constructor(...e){super(e)}}const cx=(e,t)=>n=>e().then((e=>(n(Vg(e.data,(()=>t(n,e.data)))),e.data))),ux=(e,t)=>cx(e,((e,n)=>e(t(n)))),dx="cpanel/goto-uri",px="cpanel/reset-goto-cpanel",hx=(e,t)=>n=>n({type:dx,applicationUri:e,accountUsername:t}),mx="wpt-storage-",fx="expanded-instances",gx=e=>{try{const t=localStorage.getItem(mx+e);if(null===t)return;return JSON.parse(t)}catch(e){return void console.error(e)}},bx=(e,t)=>{try{const n=JSON.stringify(t);localStorage.setItem(mx+e,n)}catch(e){console.error(e)}},vx=()=>{const e=gx(fx);return e&&e instanceof Object?e:{}},yx=e=>{e instanceof Object&&bx(fx,e)};var xx=r(95093),_x=r.n(xx);const Sx="plugins/REMOVE_PLUGINS",wx="plugins/SET_PLUGIN_STATUS",kx="plugins/SET_PLUGINS_AUTO_UPDATES",jx="plugins/SET_INSTALLATION_PLUGINS",Tx="plugins/ADD_INSTALLATION_PLUGINS",Cx="plugins/UPDATE_PLUGINS_VULNERABILITY_STATUSES",Dx="vulnerabilities/INSTALLATIONS_VULNERABILITY_STATUSES_LOADED_FROM_API",Px="vulnerabilities/INSTALLATIONS_VULNERABILITY_STATUSES_RELOADED_FROM_API",Ox="vulnerabilities/TOGGLE_VULNERABILITIES_MITIGATIONS",Ix="vulnerabilities/TOGGLE_VULNERABILITIES_MITIGATIONS_FINISHED",Mx="vulnerabilities/UPDATE_VIRTUAL_PATCHES_STATUS_STARTED",Lx="vulnerabilities/UPDATE_VIRTUAL_PATCHES_STATUS_FINISHED",Ax="critical",Ex="custom",Rx="securityMeasures/LIST_LOADED_FROM_API",Ux="securityMeasures/INSTALLATIONS_SECURITY_MEASURES_LOADED_FROM_API",Nx="securityMeasures/INSTALLATIONS_SECURITY_MEASURES_RELOADED_FROM_API",Fx="securityMeasures/CHECK_SECURITY_INITIATED",Yx="securityMeasures/RESOLVE_SECURITY_INITIATED",Hx="securityMeasures/REVERT_SECURITY_INITIATED",Bx="installations/UPDATE_SECURITY_STATUS",Vx=Qd(Bx,"installationSecurityStatuses"),$x=Qd(Rx,"securityMeasures"),Wx=()=>e=>Ug.getSecurityMeasures().then((({data:t})=>(e($x(t)),t))).catch((t=>(e(Bg(t)),Promise.reject()))),zx=Qd(Ux,"securityMeasuresInstallationStatuses"),qx=Qd(Nx,"securityMeasuresInstallationStatuses"),Gx=e=>e.map((e=>({id:e.id,securityStatus:e.securityStatus,vulnerable:e.vulnerable}))),Kx=e=>t=>Ug.getSecurityMeasuresPerInstallations(e,!0,!0,!0).then((({data:e})=>(t(zx(e)),t(Vx(Gx(e))),e))).catch((e=>(t(Bg(e)),Promise.reject()))),Xx=e=>t=>Ug.getSecurityMeasuresPerInstallations(e).then((({data:e})=>(t(qx(e)),t(Vx(Gx(e))),e))).catch((e=>(t(Bg(e)),Promise.reject()))),Qx=e=>t=>Ug.checkSecurity({installationsIds:e,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:n}})=>{const s=Zd(n);return t({type:Fx,task:s,installationsIds:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()):Promise.reject(e))),Jx=(e,t)=>n=>Ug.resolveSecurityMeasures({installationsIds:e,securityMeasures:t}).then((({data:{task:t}})=>{const s=Zd(t);return n({type:Yx,task:s,installationsIds:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()):Promise.reject(e))),Zx=(e,t)=>n=>Ug.revertSecurityMeasures({installationsIds:e,securityMeasures:t}).then((({data:{task:t}})=>{const s=Zd(t);return n({type:Hx,task:s,installationsIds:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()):Promise.reject(e))),e_="themes/REMOVE_THEMES",t_="themes/THEME_ACTIVATED",n_="plugins/SET_THEMES_AUTO_UPDATES",s_="themes/SET_INSTALLATION_THEMES",i_="plugins/ADD_INSTALLATION_THEMES",a_="themes/UPDATE_THEMES_VULNERABILITY_STATUSES",r_=(e,t=[])=>e.some((e=>!e.mitigations.some((e=>!t.includes(e.type)&&e.applied)))),o_=(e,t,n=[])=>{const s=t.find((t=>t.slug===e));return!!s&&r_(s.vulnerabilities,n)},l_=Qd(Dx,"installationsVulnerabilityStatuses"),c_=Qd(Px,"installationsVulnerabilityStatuses"),u_=e=>t=>{t({type:zy,vulnerabilityStatuses:e.reduce(((e,t)=>{const n=t.plugins.filter((e=>e.availableVersion)).length,s=t.themes.filter((e=>e.availableVersion)).length;return e[`${t.id}`]={vulnerable:t.vulnerable,version:t.core.version,availableVersion:t.core.availableVersion,amountOfPluginsWithUpdates:n,amountOfThemesWithUpdates:s},e}),{})}),t({type:Cx,pluginsVulnerabilityStatuses:e.reduce(((e,t)=>(e[`${t.id}`]=t.plugins.reduce(((e,t)=>(e[t.slug]={vulnerable:t.status&&r_(t.vulnerabilities),version:t.version,availableVersion:t.availableVersion},e)),{}),e)),{})}),t({type:a_,themesVulnerabilityStatuses:e.reduce(((e,t)=>(e[`${t.id}`]=t.themes.reduce(((e,t)=>(e[t.slug]={vulnerable:t.status&&r_(t.vulnerabilities),version:t.version,availableVersion:t.availableVersion},e)),{}),e)),{})})},d_=e=>t=>Ug.fetchInstallationsVulnerabilityStatuses(e,!0,!0,!0).then((({data:e})=>(t(l_(e)),t(u_(e)),Promise.resolve(e)))).catch((e=>(t(Bg(e)),Promise.reject()))),p_=e=>t=>Ug.fetchInstallationsVulnerabilityStatuses(e,!0,!0,!0).then((({data:e})=>(t(c_(e)),t(u_(e)),Promise.resolve(e)))).catch((e=>(t(Bg(e)),Promise.reject()))),h_=e=>t=>Ug.fetchInstallationsVulnerabilityStatuses(e,!0,!0,!0).then((({data:e})=>(t(c_(e)),Promise.resolve(e)))).catch((e=>(t(Bg(e)),Promise.reject()))),m_=(e,t,n,s)=>i=>{const a=new Map;if(t.flatMap((e=>e.mitigations)).forEach((e=>{a.set(`${e.type}:${e.id}`,e)})),[...a.values()].some((e=>e.type===Dg))){const t=n.length?Promise.resolve():i(Wx()),a=s?Promise.resolve():i(Xx(e));return Promise.all([t,a])}return Promise.resolve()},f_=e=>t=>{const n=e.map((e=>e.installationsIds.map((t=>({installationId:t,mitigations:e.mitigations}))))).flat();return Ug.mitigateVulnerabilities(n).then((({data:{task:n}})=>{const s=Zd(n);return t({type:Ox,task:s,vulnerabilities:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()):Promise.reject(e)))},g_=(e,t)=>n=>Ug.updateVirtualPatchesProtectionStatus(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:s})=>(t||n({type:Mx,installationIds:e.installationsIds,task:s.task}),s))),b_=Qd(ay,"slug","instanceId"),v_=Qd(ry,"slug","instanceId"),y_=Qd(sy,"instanceId","itemsIds"),x_=Qd(iy,"instanceId","itemsIds"),__=Qd(wx,"slug","installationId","status"),S_=Qd(Sx,"installationId","slugs"),w_=(e,t)=>n=>{n(b_(e.slug,e.instanceId));const s={status:t};return Ug.instalationsPluginsActivateDeactivate(e.instanceId,e.slug,s).then((({data:t})=>(n(__(e.slug,e.instanceId,t.status)),n(v_(e.slug,e.instanceId)),t.status))).catch((e=>(n(Bg(e)),Promise.reject())))},k_=(e,t)=>n=>(n(y_(e,t)),Ug.instalationsPluginsUninstall(e,t).then((()=>(n(S_(e,t)),n(x_(e,t)),n(p_([e]))))).catch((e=>(n(Bg(e)),Promise.reject())))),j_=(e,t,n)=>s=>{const i=t.map((e=>({slug:e.slug,autoUpdates:n}))),a=t.map((e=>e.slug));return Ug.updateInstallationsPlugins(e,i).then((({data:t})=>(s({type:kx,installationId:e,pluginsSlugs:a,value:n}),t))).catch((e=>(s(Bg(e)),Promise.reject())))},T_=e=>t=>Ug.getInstallationPlugins(e).then((({data:n})=>(t({type:jx,installationId:e,data:n}),n))).catch((e=>(t(Bg(e)),Promise.reject()))),C_=e=>t=>Ug.instalationsPluginsInfo(e.instanceId,e.slug).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),D_=Qd(ay,"slug","instanceId"),P_=Qd(ry,"slug","instanceId"),O_=Qd(sy,"instanceId","itemsIds"),I_=Qd(iy,"instanceId","itemsIds"),M_=Qd(t_,"slug","installationId"),L_=Qd(e_,"installationId","slugs"),A_=e=>t=>(t(D_(e.slug,e.instanceId)),Ug.instalationsThemesActivate(e.instanceId,e.slug,{status:!0}).then((({data:n})=>(n.status&&(t(M_(e.slug,e.instanceId)),t(AS(e.instanceId))),t(P_(e.slug,e.instanceId)),n.status))).catch((e=>(t(Bg(e)),Promise.reject())))),E_=(e,t)=>n=>(n(O_(e,t)),Ug.instalationsThemesUninstall(e,t).then((()=>{n(L_(e,t)),n(I_(e,t))})).catch((e=>(n(Bg(e)),Promise.reject())))),R_=(e,t,n)=>s=>{const i=t.map((e=>e.slug)),a=t.map((e=>({slug:e.slug,autoUpdates:n})));return Ug.updateInstallationsThemes(e,a).then((({data:t})=>(s({type:n_,installationId:e,themesSlugs:i,value:n}),t))).catch((e=>(s(Bg(e)),Promise.reject())))},U_=e=>t=>Ug.getInstallationThemes(e).then((({data:n})=>(t({type:s_,installationId:e,data:n}),n))).catch((e=>(t(Bg(e)),Promise.reject()))),N_="install-theme",F_="uninstall-theme",Y_="update-theme",H_="activate-theme",B_="remove-theme",V_="install-plugin",$_="uninstall-plugin",W_="update-plugin",z_="activate-plugin",q_="deactivate-plugin",G_="remove-plugin",K_="install-custom-plugin-from-plugins-tab",X_="install-custom-theme-from-themes-tab",Q_="task_install",J_="synchronize-site-url",Z_="task\\installset",eS="clone-instance",tS="reinstall-core",nS="update-instance",sS="task\\updateitems",iS="smart-php-update-instance",aS="check-vulnerability",rS="mass-check-updates",oS="smart-update-instance",lS="vulnerability-mitigation",cS="apply-virtual-patches",uS="disable-virtual-patches",dS={delete:!0},pS={confirm:!0};const hS=e=>t=>Promise.all([t(XS(e)),t(T_(e)),t(U_(e)),t(AS(e))]),mS=e=>t=>Xf.refresh(e).then((({data:n})=>t(Vg(n,(()=>Promise.all([t(XS(e)),t(T_(e)),t(U_(e)),t(AS(e))])))))),fS=(e,t)=>n=>Xf.switchPhpHandler(e,t).then((({data:t})=>n(Vg(t,(()=>n(XS(e))))))),gS=e=>t=>Ug.getAvailablePhpHandlers(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),bS=(e,t={removeDb:!1,removeUser:!1,removeActionLog:!1,checkShared:!1})=>n=>{const s=new FormData;return s.append("removeDb",""+(t.removeDb?1:0)),s.append("removeDbUser",""+(t.removeUser?1:0)),s.append("removeActionLog",""+(t.removeActionLog?1:0)),s.append("checkShared",""+(t.checkShared?1:0)),e.length&&e.forEach(((e,t)=>s.append(`ids[${t}]`,`${e}`))),Xf.remove(s).then((({data:t})=>(n(Vg(t,(()=>n(NS(e))))),t)))},vS=(e,t)=>n=>Ug.createMaintenancePreview(e,t).then((({data:e})=>(e.url&&window.open(e.url,"_blank"),e))).catch((e=>(n(Bg(e)),Promise.reject()))),yS=(e,t)=>n=>n({type:Wy,instanceId:e,value:t}),xS=(e,t)=>t=>Ug.getMaintenanceTemplateCustomizationUrl(e).then((({data:e})=>{e.url&&window.open(e.url,"_blank")})).catch((e=>(t(Bg(e)),Promise.reject()))),_S=e=>t=>{const n=new FormData;return e.length&&e.forEach(((e,t)=>n.append(`ids[${t}]`,`${e}`))),Xf.detach(n).then((({data:e})=>(t(Vg(e,(()=>t(NS(e.data.detachedInstances))))),e))).finally((()=>t(SS())))},SS=Qd("instances/INSTANCES_DETACH_FINISHED"),wS=(e,t)=>n=>Ug.updateIndexingStatus(e,{status:t}).then((({data:{status:t}})=>(n(Qd(ly,"installationId","status")(e,t)),t))).catch((e=>(n(Bg(e)),Promise.reject()))),kS=(e,t)=>n=>Ug.updateWpCronTakeover(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:t})=>{var s;return n(Qd(dy,"installationId","values")(e,{status:t.status})),null!==(s=t.status)&&void 0!==s?s:Promise.reject()})),jS=(e,t)=>n=>Ug.updateWpCronTakeover(e,{taskReplacementStatus:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:s})=>{var i;return n(Qd(py,"installationId","values")(e,{taskReplacementStatus:t})),null!==(i=s.taskReplacementStatus)&&void 0!==i?i:Promise.reject()})),TS=e=>t=>Ug.getWpCronTakeoverMeta(e).catch((e=>422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))).then((({data:e})=>e)),CS=(e,t)=>n=>Ug.updateHotlinkProtectionStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:{status:t}})=>(n(Qd(hy,"installationId","status")(e,t)),t))),DS=e=>t=>Ug.getHotlinkProtectionSettingsMeta(e).catch((e=>(t(Bg(e)),Promise.reject()))).then((({data:e})=>e)),PS=(e,t)=>n=>Ug.updateHotlinkProtectionSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:e})=>e)),OS=Qd(my,"instanceId","status"),IS=(e,t,n)=>s=>Ug.updateMaintenanceStatus(e,{status:t}).then((({data:i})=>(i.status!==n&&(s(OS(e,t)),s(AS(e))),i))).catch((e=>(s(Bg(e)),Promise.reject()))),MS=Qd(uy,"instanceId","values"),LS=(e,t)=>n=>Ug.updateSmartUpdatesStatus(e,{status:t}).catch((e=>(n(Bg(e)),Promise.reject()))).then((({data:t})=>(n(MS(e,t)),t))),AS=e=>t=>(t(RS(e,!0)),Xf.refreshScreenshot(e).then((({data:n})=>(t(Vg(n,(()=>t(ES(e,{createdAt:n.data.screenshotDateTime,url:n.data.screenshotUrl}))))),n))).finally((()=>{t(RS(e,!1))}))),ES=Qd(xy,"instanceId","screenshot"),RS=Qd(_y,"instanceId","isScreenShotLoading"),US=e=>t=>Ug.getInstallationsRemoveConfirmation(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),NS=Qd(ey,"installationsIds"),FS=()=>e=>Ug.scanInstallations(pS).catch((t=>(e(Bg(t)),Promise.reject()))).then((({data:t})=>(e(YS(t.task)),t))),YS=e=>t=>t({type:Dy,task:e}),HS=()=>e=>e({type:"instances/SCAN_FINISHED"}),BS=e=>t=>Ug.refreshAvailableUpdates({installationsIds:e,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:e}})=>(t({type:Ly,task:e}),e))).catch((e=>{var n;return 422===(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status)?Promise.reject(e):(t(Bg(e)),Promise.reject())})),VS=e=>t=>Ug.fetchAvailableUpdates(e,!0,!0,!0).then((({data:e})=>(t({type:rx,updates:e}),t({type:Ay,updates:e}),e))).catch((e=>e.response&&e.response.status&&422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),$S=()=>e=>e({type:ox}),WS=e=>t=>Xf.restoreSnapshot(e).then((({data:e})=>(t(Vg(e,(()=>t(zS(e.data.task))))),e))),zS=e=>t=>t({type:Sy,task:e}),qS=e=>t=>t(JS({instancesIds:[e]})).then((()=>{t({type:"instances/RESTORE_SNAPSHOT_FINISHED",instanceId:e})})),GS=e=>t=>Xf.deleteSnapshot(e).then((({data:n})=>(t(Vg(n,(()=>t(KS(e))))),n))),KS=Qd(wy,"installationId"),XS=e=>t=>Ug.getInstallation(e).then((({data:n})=>(t({type:Uy,installations:[n],installationsIds:[e]}),n))).catch((e=>(t(Bg(e)),Promise.reject()))),QS={instancesIds:[],skipUpdateInstanceList:!1},JS=(e=QS)=>t=>{const n=Object.assign(Object.assign({},QS),e);return Ug.getInstallations(n.instancesIds).then((({data:e})=>(t({type:Uy,installations:e,installationsIds:n.instancesIds}),n.skipUpdateInstanceList||t(Nw(!0)),e))).catch((e=>(t(Bg(e)),Promise.reject())))},ZS=e=>t=>Xf.getDbSettings(e).then((({data:e})=>(t(Vg(e)),e))),ew=(e,t)=>n=>Xf.setDbSettings(e,t).then((({data:e})=>(n(Vg(e)),e))),tw=e=>t=>Ug.getSmartPhpUpdateStub(e).then((({data:n})=>(t(jk(e,n.meta.taskStatus)),n))).catch((e=>400===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),nw=e=>t=>Ug.getSmartPhpUpdateResult(e).then((({data:e})=>e)).catch((e=>404===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),sw=e=>t=>Ug.acceptSmartPhpUpdate(e,pS).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),iw=e=>t=>Ug.discardSmartPhpUpdate(e,dS).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),aw=(e,t)=>n=>Ug.updateMaintenanceSettings(e,t).then((({data:e})=>e)).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))),rw=e=>t=>Ug.restoreMaintenanceTemplate(e,dS).catch((e=>(t(Bg(e)),Promise.reject()))),ow=Qd(Zv,"filter"),lw=e=>t=>Ug.launchUpdate(e).then((({data:{task:e}})=>{if(t({type:fy,task:e}),e.code===oS){const{currentlyUpdatingInstallationId:n}=e.publicParams;t({type:by,installationId:n})}return e})).catch((e=>422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),cw=e=>t=>Ug.applySmartUpdate(e,pS).then((({data:{task:e}})=>(t({type:yy,task:e}),e))).catch((e=>(t(Bg(e)),Promise.reject()))),uw=e=>t=>Ug.discardSmartUpdate(e,dS).then((()=>(t({type:vy,installationId:e}),Promise.resolve(void 0)))).catch((e=>(t(Bg(e)),Promise.reject()))),dw=e=>t=>Ug.getSmartUpdateResult(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),pw=e=>t=>Ug.getSetupDrawerSettings(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),hw=(e,t)=>n=>Ug.updateSetupDrawerSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:t})=>{const s=null!==t.currentLogin&&null!==t.currentPassword;return n(mw(e,s)),t})),mw=Qd($y,"instanceId","hasAdminCredentials"),fw=e=>t=>Ug.getInstallationWpUserStub(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),gw=(e,t)=>n=>Ug.createInstallationWpUser(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:t})=>{const s=null!==t.login&&null!==t.password;return n(mw(e,s)),t})),bw=Qd(cy,"installationId","status"),vw=(e,t)=>n=>Ug.updateNginxCachingStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:t})=>(n(bw(e,t.status)),t))),yw=(e,t)=>n=>Ug.updateWordPressDebugSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:e})=>e)),xw=(e,t)=>n=>Ug.updateWordPressDebugStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))).then((({data:t})=>(n(Qd(oy,"installationId","status")(e,t.status)),t.status))),_w=(e,t)=>n=>Ug.updateAutoUpdateSettings(e,t).then((({data:t})=>(n({type:gy,settings:[Object.assign(Object.assign({},t),{id:+e})]}),Promise.all([n(T_(e)),n(U_(e))]).catch((()=>{})),t))).catch((e=>(n(Bg(e)),Promise.reject()))),Sw=(e,t)=>n=>Ug.updateInstallationsAutoUpdatesSettings({installationsIds:e,autoUpdate:t}).then((({data:e})=>(n({type:gy,settings:e}),e))).catch((e=>(n(Bg(e)),Promise.reject()))),ww=e=>t=>Ug.getAutoUpdateSettings(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),kw=Qd("instances/SAVE_REMOTE_INSTANCE_PROPERTIES_FINISHED"),jw=Qd("instances/SAVE_REMOTE_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),Tw=Qd("instances/SAVE_REMOTE_AGENT_INSTANCE_PROPERTIES_FINISHED"),Cw=Qd("instances/SAVE_REMOTE_AGENT_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),Dw=(e,t)=>n=>{const s=new FormData;return s.append("remoteInstanceIp",`${t.remoteInstanceIp}`),s.append("remoteInstanceSystemUser",`${t.remoteInstanceSystemUser}`),s.append("remoteInstancePhpBin",`${t.remoteInstancePhpBin}`),s.append("remoteInstancePhpIni",`${t.remoteInstancePhpIni}`),Xf.updateRemoteInstanceProperties(e,s).then((({data:t})=>t.status===fp?n(mS(e)).then((()=>t)).finally((()=>n(kw()))):(n(jw()),Promise.resolve(t))))},Pw=(e,t)=>n=>{const s=new FormData;return s.append("pluginUrl",`${t.pluginUrl}`),s.append("token",`${t.token}`),s.append("ip",`${t.ip}`),Xf.updateRemoteAgentInstanceProperties(e,s).then((({data:t})=>t.status===fp?n(mS(e)).then((()=>t)).finally((()=>n(Tw()))):(n(Cw()),Promise.resolve(t))))},Ow=Qd("instances/REDETECT_REMOTE_INSTANCE_PROPERTIES_FINISHED"),Iw=Qd("instances/REDETECT_REMOTE_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),Mw=e=>t=>Xf.redetectRemoteInstanceProperties(e).then((({data:n})=>n.status===fp?t(mS(e)).then((()=>n)).finally((()=>t(Ow()))):(t(Iw()),Promise.resolve(n)))),Lw=(e,t)=>n=>{const s=new FormData;return s.append("name",t),Xf.setInstanceName(e,s).then((({data:s})=>(n(Vg(s,(()=>n(Aw(e,t))))),s)))},Aw=Qd(ty,"installationId","name"),Ew=e=>t=>Ug.getPasswordProtection(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),Rw=(e,t)=>n=>Ug.updatePasswordProtection(e,t).catch((e=>422===e.response.status?Promise.reject(e.response.data):(n(Bg(e)),Promise.reject()))).then((({data:t})=>(n(Qd(ny,"installationId","values")(e,t)),t))),Uw=(e,t)=>n=>Rw(e,{status:t})(n).then((({status:e})=>e)),Nw=Qd(ky,"value"),Fw=Qd(jy,"value"),Yw=Qd(Fy,"task"),Hw=e=>t=>Ug.createInstallation(e).then((({data:e})=>Ug.getBackgroundTask(e.task.id,e.task.code).then((({data:e})=>{const n=Zd(e);return t(Yw(n)),n})).catch((e=>Promise.reject(new lx(e)))))).catch((e=>Promise.reject(e))),Bw=Qd(Yy,"task"),Vw=Qd(Ty),$w=()=>e=>Ug.getInstallations().then((({data:t})=>(e({type:Ry,installations:t}),t))).catch((t=>(e(Bg(t)),Promise.reject()))),Ww=Qd(Py,"value"),zw=Qd(Oy,"value"),qw=Qd(ex,"domainId","installationId"),Gw=e=>t=>{const n=vx();n[e]=_x()().unix(),yx(n),t({type:Iy,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},Kw=e=>t=>{const n=vx();delete n[e],yx(n),t({type:Iy,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},Xw=e=>t=>{const n=vx();if(e&&Array.isArray(e)&&e.length>0){const t=_x()().unix();Object.entries(n).forEach((([s,i])=>{e.includes(parseInt(s))?n[+s]=t:i+7776e3<t&&delete n[+s]}))}yx(n),t({type:Iy,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},Qw=Qd(My,"value"),Jw=Qd("instances/INSTANCE_UPDATE_FINISHED"),Zw=Qd("instances/INSTANCE_UPDATE_FAILED"),ek=Qd("instances/INSTANCES_MASS_UPDATE_FINISHED"),tk=Qd("instances/INSTANCES_MASS_UPDATE_FAILED"),nk=Qd("instances/INSTANCES_CHECK_UPDATES_FINISHED"),sk=Qd("instances/INSTANCES_CHECK_UPDATES_FAILED"),ik=(e,t)=>n=>n({type:Ey,installationId:e,activeTab:t}),ak=e=>()=>Ug.getInstallationLabelsMeta(e),rk=(e,t)=>n=>Ug.updateInstallationLabels(e,t).then((({data:t})=>(n({type:Ny,id:e,labels:t}),n(Nw(!0)),t))),ok=(e,t,n,s)=>i=>i({type:Hy,instanceId:`${e}_${sp(10)}`,loginUrl:t,credentials:n,windowTarget:s}),lk=()=>e=>e({type:By}),ck=e=>ux((()=>Xf.synchronizeSiteUrl(e)),(e=>dk(e.data.task))),uk=e=>t=>Xf.synchronizeSiteUrlSync(e).then((({data:n})=>(t(Vg(n,(()=>{t(XS(e))}))),n))),dk=Qd(Vy,"task"),pk=Qd("instances/SYNCHRONIZE_SITE_URL_FINISHED"),hk=e=>t=>Xf.getSynchronizeSiteUrlParams(e).then((({data:e})=>(t(Vg(e)),e))),mk=e=>t=>Ug.getWpCredentials(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),fk=e=>t=>Ug.getMaintenanceSettings(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),gk=e=>t=>Ug.featureVulnerabilityStatsUpdate({buttonClicked:e}).catch((e=>{t(Bg(e))})),bk=(e,t)=>n=>Ug.validateInstallationPath({domain:e,installationPath:t}).then((e=>204===e.status?Promise.resolve(void 0):Promise.resolve(e.data))).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))),vk=(e,t)=>n=>Ug.getInstallationStub(e,t).then((({data:e})=>e)).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))),yk=e=>t=>Ug.getSetDetails(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),xk=e=>t=>Ug.getWordPressDebugSettingsMeta(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),_k=e=>t=>Ug.checkInstallationsVulnerability({installationsIds:e,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:n}})=>(t({type:Gy,installationsIds:e,task:n}),n))).catch((e=>(t(Bg(e)),Promise.reject()))),Sk=e=>t=>Ug.runSmartPhpUpdate(e).then((({data:n})=>{const s=Zd(n.task);return t(kk(e.installationId,s)),s})).catch((e=>422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),wk=(e,t)=>n=>{n({type:Ky,installationId:e,phpHandler:t})},kk=(e,t)=>n=>n({type:Xy,installationId:e,task:t}),jk=(e,t)=>n=>n({type:Qy,installationId:e,taskStatus:t}),Tk=(e,t)=>n=>n({type:"instances/SMART_PHP_UPDATE_FINISHED",installationId:e,task:t}),Ck=e=>t=>t({type:"instances/SMART_PHP_UPDATE_RESULT_APPLIED",installationId:e}),Dk=e=>t=>t({type:"instances/SMART_PHP_UPDATE_RESULT_DISCARDED",installationId:e}),Pk=e=>t=>t({type:"instances/SMART_PHP_UPDATE_STUB_LOADED",installationId:e}),Ok=e=>t=>Ug.getRemoteServerInstallationProperties(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),Ik=e=>t=>Ug.getRemoteAgentInstallationProperties(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),Mk=e=>t=>Ug.statsHireDeveloperTransition({installationId:e}).catch((e=>(t(Bg(e)),Promise.reject()))),Lk=(e,t)=>n=>Ug.updateVulnerabilityFiltering(e,t).then((t=>{var s=t.data,{available:i}=s,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(s,["available"]);return n(Object.assign({type:Zy,installationId:e},a)),Xx([e])(n)})).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))),Ak=e=>()=>Ug.getVirtualPatchesSubscriptionInfo(e).then((({data:e})=>e)),Ek=e=>()=>Ug.getVirtualPatchesSubscriptionGuid(e).then((({data:e})=>e)).catch((e=>Promise.reject(e))),Rk=e=>t=>Ug.getVirtualPatchesSubscriptionPurchaseUrl(e).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),Uk=Qd(tx,"installationId","subscriptionInfo"),Nk=(e,t)=>n=>Ug.activateVirtualPatchesSubscription(e,{subscriptionGuid:t}).then((({data:t})=>(n(Uk(e,t)),t))).catch((e=>Promise.reject(e))),Fk=e=>t=>Ug.detachVirtualPatchesSubscription(e,{confirm:!0}).then((()=>{t(Uk(e,null))})).catch((e=>(t(Bg(e)),Promise.reject()))),Yk=e=>t=>Ug.calculateVulnerabilityProtectionUsageStatistics(e?{installationsIds:e}:void 0).then((({data:e})=>e)).catch((e=>(t(Bg(e)),Promise.reject()))),Hk=e=>t=>Ug.getWpCliCommandsList(e).then((({data:e})=>(t({type:"instances/INSTANCES_WP_CLI_COMMANDS_LOADED"}),e))).catch((e=>(t(Bg(e)),Promise.reject()))),Bk=(e,t)=>n=>Ug.executeWpCliCommand(e,t).then((({data:e})=>(n({type:"instances/INSTANCES_WP_CLI_COMMAND_EXECUTED"}),e))).catch((e=>(n(Bg(e)),Promise.reject()))),Vk=mc((e=>({meta:e.app.buildMeta})),(e=>({loadChangelog:kb(ab,e)})))((e=>{const{meta:t,isOpen:n,onClose:s,loadChangelog:i}=e,[a,r]=(0,M.useState)();return(0,M.useEffect)((()=>{n&&!a&&i().then((e=>{r(e)})).catch((()=>{s()}))}),[n,i,a,s]),(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"general-ui.changelog.drawerTitle"}),subtitle:(0,P.jsx)(qd,{content:"general-ui.wptk-version",params:t}),onClose:s,"data-type":"changelog",size:"md",isOpen:n,children:[!a&&(0,P.jsx)(Rn,{}),a&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{tabIndex:0,className:"wpt-pul-alert wpt-pul-alert--info wpt-pul-status-message wpt-pul-status-message--info",children:(0,P.jsx)(Fa,{intent:"info",children:(0,P.jsx)(qd,{content:"general-ui.changelog.availableOnInEnglish"})})}),(0,P.jsx)(cl,{children:a})]})]})})),$k=mc((e=>({premiumUsers:e.app.premiumUsers})),(e=>({getPremiumUsers:kb(ob,e)})))((e=>{const{isOpen:t,onClose:n,premiumUsers:s,getPremiumUsers:i}=e;(0,M.useEffect)((()=>{t&&i().then((e=>{e.status&&e.status===gp&&n()}))}),[i,t,n]);const a=[{key:"userName",title:(0,P.jsx)(qd,{content:"premiumUsersDrawer.columns.userName"})}],r=s?s.map(((e,t)=>({key:`premium-user-${t}`,userName:e.userName}))):[];return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"premiumUsersDrawer.drawerTitle"}),onClose:n,"data-type":"premiumUsers",size:"md",isOpen:t,children:[!s&&(0,P.jsx)(Rn,{}),s&&(0,P.jsx)(Qr,{columns:a,data:r})]})}));class Wk extends M.Component{constructor(){super(...arguments),this.state={exception:null},this.getError=()=>{const{exception:e}=this.state;return(0,P.jsx)("p",{children:null==e?void 0:e.message})},this.handleRefresh=()=>{this.setState({exception:null}),this.props.onRefresh&&this.props.onRefresh()}}componentDidCatch(e){this.setState({exception:e})}render(){return this.state.exception?(0,P.jsxs)("div",{children:[(0,P.jsx)("h1",{children:(0,P.jsx)(qd,{content:"general-ui.react-js-error.commonText"})}),this.getError(),(0,P.jsx)("p",{children:(0,P.jsx)(Be,{intent:"primary",onClick:this.handleRefresh,children:(0,P.jsx)(qd,{content:"general-ui.react-js-error.refresh"})})})]}):this.props.children}}const zk=Wk,qk=(0,M.lazy)((()=>Promise.all([r.e(345),r.e(394)]).then(r.bind(r,15345)))),Gk=mc((e=>({restApiUrl:e.app.urls.restApiUrl})))((e=>{const{isOpen:t,onClose:n,restApiUrl:s}=e;return(0,P.jsx)(er,{title:(0,P.jsx)(qd,{content:"api.swaggerUi.drawerTitle"}),"data-type":"swagger-ui",size:"lg",onClose:n,isOpen:t,children:(0,P.jsx)(zk,{onRefresh:()=>window.location.reload(),children:(0,P.jsx)(M.Suspense,{fallback:(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"api.swaggerUi.loadingSwaggerLibrary"})}),children:(0,P.jsx)(qk,{url:`${s}/v1/specification/public`})})})})})),Kk=mc((e=>({settings:e.settings.settings,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})))((e=>{const{isOpen:t,isSubmitted:n,onClose:s,formValues:i,onChangeFormField:a,settings:r,vulnerabilityFeatureEnabled:o,baseClassName:l=`${Rp}settings-notifications`}=e;if(!r||!i)return null;const c=e=>{const t="general";return(0,P.jsx)(ut,{name:`${t}[${e}]`,tooltip:(0,P.jsx)(qd,{content:`settings.notifications.table.data.${e}.tooltip`}),checked:i[t][e],disabled:n,onChange:n=>a(t,e,Number(n)),"data-test-id":`${t}-${e}`})},u=(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.row.autoUpdates"})}),(0,P.jsx)("td",{children:c("cpanelAdminAutoUpdatesNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelResellerAutoUpdatesNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelClientAutoUpdatesNotificationEnabled")})]}),d=(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.row.quarantine"})}),(0,P.jsx)("td",{children:c("cpanelAdminSuspiciousInstanceNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelResellerSuspiciousInstanceNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelClientSuspiciousInstanceNotificationEnabled")})]}),p=(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.row.vulnerabilityFound"})}),(0,P.jsx)("td",{children:c("cpanelAdminVulnerabilityFoundNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelResellerVulnerabilityFoundNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelClientVulnerabilityFoundNotificationEnabled")})]}),h=(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.row.blacklisted"})}),(0,P.jsx)("td",{children:c("cpanelAdminBlocklistedPluginDeactivatedNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelResellerBlocklistedPluginDeactivatedNotificationEnabled")}),(0,P.jsx)("td",{children:c("cpanelClientBlocklistedPluginDeactivatedNotificationEnabled")})]});return(0,P.jsx)(er,{className:l,title:(0,P.jsx)(qd,{content:"settings.notifications.drawerTitle"}),onClose:s,size:"sm","data-type":"settings",isOpen:t,children:(0,P.jsxs)("table",{children:[(0,P.jsx)("caption",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.caption"})}),(0,P.jsx)("thead",{children:(0,P.jsxs)("tr",{children:[(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.head.columnHead.event"})}),(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.head.columnHead.administrator"})}),(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.head.columnHead.reseller"})}),(0,P.jsx)("th",{children:(0,P.jsx)(qd,{content:"settings.notifications.table.head.columnHead.client"})})]})}),(0,P.jsxs)("tbody",{children:[u,d,h,o&&p]})]})})}));class Xk extends M.Component{constructor(e){super(e),this.componentDidUpdate=e=>{e.isOpen!==this.props.isOpen&&this.props.isOpen&&(this.props.actions.loadSettingsIfFirstOpen(),this.updateFormValues(),this.updateLicenseInfoState()),e.messages!==this.props.messages&&this.setMessages(this.props.messages),e.settings!==this.props.settings&&this.setFormValues()},this.setMessages=e=>this.setState({messages:e}),this.updateFormValues=()=>this.props.isLoaded&&this.setFormValues(),this.updateLicenseInfoState=()=>{const{getLicenseInfo:e}=this.props.appActions;this.setState({isLicenseInfoLoading:!0}),e().finally((()=>{this.setState({isLicenseInfoLoading:!1})}))},this.handleUpdateLicense=()=>{var e;const{appActions:{updateLicenseInfo:t},instancesActions:{getInstancesData:n}}=this.props,s=null===(e=this.props.virtualPatchesLicenseInfo)||void 0===e?void 0:e.installationsLimit;this.setState({isLicenseInfoLoading:!0}),t().then((e=>{var t;(null===(t=e.virtualPatches)||void 0===t?void 0:t.installationsLimit)!==s&&n().catch((()=>{}))})).catch((()=>{})).finally((()=>{this.setState({isLicenseInfoLoading:!1})}))},this.setFormValues=()=>this.props.settings&&this.setState({formValues:Object.keys(this.props.settings).reduce(((e,t)=>{const n=this.props.settings[t];return e[t]=Object.keys(n).reduce(((e,t)=>(e[t]=n[t].type===Tb?Number(n[t].value):n[t].value,e)),{}),e}),{})}),this.isFormFieldDisabled=({disabledWhenChecked:e})=>!!e&&Object.values(this.state.formValues).some((t=>t.hasOwnProperty(e)&&!!t[e])),this.deleteMessage=e=>{this.setState((t=>({messages:t.messages.filter((({key:t})=>t!==e))})))},this.handleFormSubmit=()=>this.props.actions.updateSettings(this.state.formValues).finally((()=>{const{isUpdated:e,actions:{closeDrawer:t},appActions:{addSuccessMessage:n,addWarningMessage:s,getInitialOptions:i}}=this.props,{messages:a}=this.state;e&&(t(),i(),a&&a.length&&a.forEach((({status:e,message:t})=>{e!==fp?s(t):n(t)})))})),this.handleChangeFormField=(e,t,n)=>this.setState((s=>{const i=Object.assign({},s.formValues);return i[e][t]=n,{formValues:i}})),this.getPaidFeatureDescription=e=>{switch(e){case Sp:return(0,P.jsx)(qd,{content:"paidFeature.cloneFeatureDescription"});case wp:return(0,P.jsx)(qd,{content:"paidFeature.copyDataFeatureDescription"});default:return null}},this.renderFormFieldLabel=(e,t)=>t.isFeaturePreview?(0,P.jsx)(Hv,{uatAction:"CLICK_EXT_BUY_FROM_SETTINGS",featureName:t.paidFeatureName,description:this.getPaidFeatureDescription(t.paidFeatureName),children:(0,P.jsx)(qd,{content:`settings.${e}`})}):(0,P.jsx)(qd,{content:`settings.${e}`}),this.renderDropdownControl=({value:e,options:t,onChange:n,size:s,disabled:i=!1})=>(0,P.jsx)(Mr,{value:e,onChange:n,disabled:i,size:s,children:t?Object.keys(t).map((e=>(0,P.jsx)(Pr,{value:e,children:t[e]},e))):[]}),this.renderForm=()=>{const{baseClassName:e,settings:t,isSubmitted:n,isNotificationFeatureEnabled:s}=this.props,{formValues:i}=this.state;return t&&i?(0,P.jsxs)("div",{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"settings.title"})}),(0,P.jsxs)(mi,{children:[(0,P.jsx)("span",{className:`${e}__required`,children:"*"})," - ",(0,P.jsx)(qd,{content:"settings.requiredAsteriskDescription"})]}),Object.keys(t).map((a=>{const r=t[a],o=Object.keys(r).filter((e=>"text"===r[e].type)),l=Object.keys(r).filter((e=>r[e].type===Tb&&!r[e].isHidden)),c=Object.keys(r).filter((e=>"select"===r[e].type));return 0===o.length&&0===l.length&&0===c.length?null:(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:`settings.${a}Section`}),className:`${e}__form-section`,children:[s&&"general"===a&&!1,"general"===a&&this.renderHireDeveloperForm(),o.map((e=>{const t=r[e];return(0,P.jsxs)(Sa,{name:`${a}[${e}]`,label:this.renderFormFieldLabel(e,t),required:t.required&&!t.isFeaturePreview,description:t.hint&&(0,P.jsx)(qd,{content:`settings.${e}Hint`}),children:[(0,P.jsx)(Ss,{type:"text",disabled:n||t.isFeaturePreview||this.isFormFieldDisabled(t),size:t.size?t.size:"md",value:i[a][e],onChange:t=>this.handleChangeFormField(a,e,t.target.value)}),t.description&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),children:(0,P.jsx)(qd,{content:`settings.${e}Description`})})]},`${a}-${e}`)})),c.map((e=>{const t=r[e];return(0,P.jsxs)(Sa,{name:`${a}[${e}]`,label:this.renderFormFieldLabel(e,t),required:t.required&&!t.isFeaturePreview,children:[this.renderDropdownControl({options:t.options,disabled:n||t.isFeaturePreview,value:i[a][e],onChange:t=>this.handleChangeFormField(a,e,t),size:t.size}),t.description&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),children:(0,P.jsx)(qd,{content:`settings.${e}Description`})})]},`${a}-${e}`)})),0!==l.length&&(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:`settings.${a}SectionCheckboxGroupLabel`}),className:"wpt-mgt-10",children:l.map((e=>{const t=r[e];return(0,P.jsxs)("div",{className:"wpt-mgb-10",children:[(0,P.jsx)(ut,{name:`${a}[${e}]`,checked:i[a][e],disabled:n||t.isFeaturePreview,onChange:t=>this.handleChangeFormField(a,e,Number(t)),"data-test-id":`${a}-${e}`,children:this.renderFormFieldLabel(e,t)}),t.description&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),children:(0,P.jsx)(qd,{content:`settings.${e}Description`})})]},`${a}-${e}`)}))})]},a)}))]}):null},this.renderChangelogLink=()=>{const{isAdmin:e}=this.props;return e?(0,P.jsx)(ye,{onClick:this.handleOpenChangelog,style:{marginLeft:"16px"},children:(0,P.jsx)(qd,{content:"general-ui.changelog.open"})}):null},this.renderHireDeveloperForm=()=>{if(!this.props.hireDeveloperFeatureEnabled)return null;const{formValues:e}=this.state;return(0,P.jsx)(La,{values:null==e?void 0:e.general,onFieldChange:(e,t)=>this.handleChangeFormField("general",e,t),cancelButton:!1,submitButton:!1,applyButton:!1,vertical:!0,children:(0,P.jsx)(gr,{label:(0,P.jsx)(qd,{content:"general-ui.hireDeveloper.label"}),name:"hireDeveloperFeatureSource",options:[{value:"none",label:(0,P.jsx)(qd,{content:"general-ui.hireDeveloper.source.none"})},{value:"codeable",label:(0,P.jsx)(qd,{content:"general-ui.hireDeveloper.source.codeable"})},{value:"custom",label:(0,P.jsx)(qd,{content:"general-ui.hireDeveloper.source.custom"}),indentFields:[(0,P.jsx)(Sr,{name:"hireDeveloperFeatureHref",label:null,required:!0},"uri")]}]})})},this.handleOpenNotificationsDrawer=()=>this.setState({isNotificationsDrawerOpened:!0}),this.handleCloseNotificationDrawer=()=>this.setState({isNotificationsDrawerOpened:!1}),this.handleOpenChangelog=()=>this.setState({isChangelogOpened:!0}),this.handleCloseChangelog=()=>this.setState({isChangelogOpened:!1}),this.handleOpenPremiumUsersDrawer=()=>this.setState({showPremiumUsersDrawer:!0}),this.handleClosePremiumUsersDrawer=()=>this.setState({showPremiumUsersDrawer:!1}),this.handleOpenSwagger=()=>this.setState({isSwaggerUiVisible:!0}),this.handleCloseSwagger=()=>this.setState({isSwaggerUiVisible:!1}),this.state={messages:null,formValues:null,isChangelogOpened:!1,showPremiumUsersDrawer:!1,isNotificationsDrawerOpened:!1,isSwaggerUiVisible:!1,isLicenseInfoLoading:!1}}renderMessages(){const{isUpdated:e}=this.props,{messages:t}=this.state;return t?e?null:t.map((({key:e,status:t,message:n})=>{const s=t===gp?_p:t;return(0,P.jsx)(xe,{intent:s,onClose:()=>this.deleteMessage(e),children:n},e)})):null}renderPremiumUsersUsage(){const{premiumUsersUsedTotal:e,baseClassName:t}=this.props;return Wv()&&null!==e?(0,P.jsxs)(ml,{intent:"info",children:[(0,P.jsx)(qd,{content:"general-ui.wptk-license-used-unlimited",params:{usedTotal:e}}),e>0&&(0,P.jsxs)(M.Fragment,{children:[" ",(0,P.jsx)(Cs,{onClick:this.handleOpenPremiumUsersDrawer,className:`${t}__premium-users-link`,children:(0,P.jsx)(qd,{content:"settings.viewCpanelPremiumUsersLink"})})]})]}):null}renderSwaggerLink(){return Wv()?(0,P.jsxs)(ml,{intent:"info",children:[(0,P.jsx)(qd,{content:"api.swaggerUi.description"})," ",(0,P.jsx)(Cs,{onClick:this.handleOpenSwagger,children:(0,P.jsx)(qd,{content:"api.swaggerUi.openDrawer"})})]}):null}renderLicenseUsage(){const{virtualPatchesLicenseInfo:e,virtualPatchesFeatureEnabled:t,isWpgLicense:n}=this.props;if(!t)return null;const s=e&&(0!==(null==e?void 0:e.installationsLimit)||n);if(!s)return null;const i=-1===e.installationsLimit;let a="info";!s||i?a="info":e.installationsActive>e.installationsLimit||n&&0===e.installationsLimit?a="danger":e.installationsActive>=.8*e.installationsLimit&&(a="warning");let r="general-ui.virtual-patching.licenseUsed";return n&&-1===e.installationsLimit?r="general-ui.virtual-patching.externalLicenseUnlimited":n&&0===e.installationsLimit?r="general-ui.virtual-patching.externalLicenseLimitReached":n?r="general-ui.virtual-patching.externalLicenseUsed":-1===e.installationsLimit&&(r="general-ui.virtual-patching.licenseUnlimited"),this.state.isLicenseInfoLoading?(0,P.jsx)(Rn,{}):(0,P.jsxs)(ml,{intent:a,children:[s&&(0,P.jsx)("span",{"data-test-id":"license-usage-display",children:(0,P.jsx)(qd,{content:r,params:e})}),!1]})}render(){const{meta:e,baseClassName:t,isOpen:n,actions:{closeDrawer:s},isRequested:i,formErrors:a,isLoadingError:r,isSubmitted:o,isNotificationFeatureEnabled:l,options:{showSwaggerUiOnCpanel:c}}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"settings.drawerTitle"}),isOpen:n,onClose:s,size:"sm","data-type":"settings","data-test-id":"global-settings-drawer",form:!i&&{onSubmit:this.handleFormSubmit,hideRequiredLegend:!0,errors:a||{},state:o?"submit":void 0,submitButton:{children:o?(0,P.jsx)(qd,{content:"settings.submittingButton"}):(0,P.jsx)(qd,{content:"settings.submitButton"}),disabled:r,"data-test-id":"save-button"},applyButton:!1,cancelButton:{onClick:s,children:(0,P.jsx)(qd,{content:"settings.cancelButton"}),"data-test-id":"cancel-button"},vertical:!0},children:[i&&(0,P.jsx)(Rn,{}),!i&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("div",{className:"wpt-pul-alert wpt-pul-alert--info wpt-pul-status-message wpt-pul-status-message--info",children:(0,P.jsxs)(Fa,{intent:"info",children:[(0,P.jsx)(qd,{content:"general-ui.wptk-version",params:e}),this.renderChangelogLink()]})}),this.renderPremiumUsersUsage(),this.renderLicenseUsage(),c&&this.renderSwaggerLink(),(0,P.jsxs)("div",{className:t,children:[this.renderMessages(),this.renderForm()]})]})]}),(0,P.jsx)(Vk,{isOpen:this.state.isChangelogOpened,onClose:this.handleCloseChangelog}),(0,P.jsx)($k,{isOpen:this.state.showPremiumUsersDrawer,onClose:this.handleClosePremiumUsersDrawer}),l&&(0,P.jsx)(Kk,{isOpen:this.state.isNotificationsDrawerOpened,isSubmitted:this.props.isSubmitted,onClose:this.handleCloseNotificationDrawer,onChangeFormField:this.handleChangeFormField,formValues:this.state.formValues}),(0,P.jsx)(Gk,{isOpen:this.state.isSwaggerUiVisible,onClose:this.handleCloseSwagger})]})}}Xk.propTypes={meta:We().shape({version:We().string.isRequired,revision:We().string.isRequired}).isRequired,premiumUsersUsedTotal:We().number,isOpen:We().bool.isRequired,isLoaded:We().bool.isRequired,isLoadingError:We().bool.isRequired,isSubmitted:We().bool.isRequired,isRequested:We().bool.isRequired,isUpdated:We().bool.isRequired,settings:We().object,messages:We().array,formErrors:We().bool,actions:We().shape({closeDrawer:We().func.isRequired,loadSettingsIfFirstOpen:We().func.isRequired,updateSettings:We().func.isRequired}).isRequired,appActions:We().shape({addWarningMessage:We().func.isRequired,addSuccessMessage:We().func.isRequired,getPremiumUsers:We().func.isRequired,getInitialOptions:We().func.isRequired,getLicenseInfo:We().func.isRequired,updateLicenseInfo:We().func.isRequired}).isRequired,instancesActions:We().shape({getInstancesData:We().func.isRequired}).isRequired,baseClassName:We().string,isAdmin:We().bool.isRequired,isNotificationFeatureEnabled:We().bool.isRequired,virtualPatchesFeatureEnabled:We().bool.isRequired,virtualPatchesLicenseInfo:We().shape({installationsLimit:We().number.isRequired,installationsActive:We().number.isRequired}),options:We().shape({showSwaggerUiOnCpanel:We().bool.isRequired}).isRequired},Xk.defaultProps={premiumUsersUsedTotal:null,settings:null,messages:[],formErrors:[],baseClassName:`${Rp}settings`,virtualPatchesLicenseInfo:null};const Qk=mc((e=>({meta:e.app.buildMeta,premiumUsersUsedTotal:e.app.options.premiumUsersUsedTotal,isOpen:e.settings.drawerIsOpen,isLoaded:e.settings.status!==Ip,isLoadingError:e.settings.status===Ap,isRequested:e.settings.status===Mp,isSubmitted:e.settings.status===Lp,isUpdated:e.settings.status===Ep,messages:e.settings.messages,formErrors:e.settings.formErrors,settings:e.settings.settings,changelog:e.app.options.changelog,isAdmin:e.app.options.isAdmin,premiumUsers:e.app.premiumUsers,isNotificationFeatureEnabled:e.app.options.isNotificationFeatureEnabled,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,hireDeveloperFeatureEnabled:e.app.options.hireDeveloperFeature,virtualPatchesLicenseInfo:e.app.licenseInfo.virtualPatches,options:e.app.options,isWpgLicense:e.app.options.isWpgLicense})),(e=>({actions:kb(n,e),appActions:kb(t,e),instancesActions:kb({getInstancesData:JS},e)})))(Xk);class Jk extends M.Component{constructor(){super(...arguments),this.state={loginUrl:"",credentials:{login:"",password:""},windowTarget:void 0},this.componentDidUpdate=e=>{e.loginToInstanceId!==this.props.loginToInstanceId&&this.handleLogin()},this.formRef=null,this.handleLogin=()=>{var e;if(this.props.installation&&!(null===(e=this.props.installation.features.credentials)||void 0===e?void 0:e.available)||!this.props.loginUrl||!this.props.loginCredentials)return;const{loginUrl:t,loginCredentials:{login:n,password:s},windowTarget:i,loginToInstancePerformed:a,addWarningMessage:r,seemsLikePopupBlockerIsEnabledTranslateKey:o}=this.props;this.setState({loginUrl:t,credentials:{login:n,password:s},windowTarget:i},(()=>{try{this.formRef&&this.formRef.submit(),this.setState({loginUrl:"",credentials:{login:"",password:""}}),a()}catch(e){r((0,P.jsx)(qd,{content:o}))}}))}}render(){if(!this.props.loginToInstanceId)return null;const{loginUrl:e,credentials:{login:t,password:n},windowTarget:s}=this.state;return(0,P.jsxs)("form",{target:s,ref:e=>this.formRef=e,method:"POST",action:e,style:{display:"none"},children:[(0,P.jsx)("input",{type:"hidden",name:"log",value:t}),(0,P.jsx)("input",{type:"hidden",name:"pwd",value:n})]})}}Jk.defaultProps={loginToInstanceId:null,installation:null,loginUrl:null,loginCredentials:null,windowTarget:null,seemsLikePopupBlockerIsEnabledTranslateKey:"loginToInstance.seemsLikePopupBlockerIsEnabled"};const Zk=Jk,ej=e=>(0,P.jsx)(Zk,{loginToInstanceId:e.loginToInstanceId,installation:e.installation,loginUrl:e.loginUrl,loginCredentials:e.loginCredentials,windowTarget:e.windowTarget,loginToInstancePerformed:e.loginToInstancePerformed,addWarningMessage:e.addWarningMessage});ej.propTypes={loginToInstanceId:We().string,installation:We().shape({features:We().shape({credentials:We().shape({available:We().bool.isRequired})}).isRequired,id:We().number.isRequired}),loginUrl:We().string,loginCredentials:We().shape({login:We().string.isRequired,password:We().string.isRequired}),windowTarget:We().string,loginToInstancePerformed:We().func.isRequired,addWarningMessage:We().func.isRequired},ej.defaultProps={loginToInstanceId:null,loginUrl:null,installation:null,loginCredentials:null,windowTarget:null};const tj=mc((e=>{const{loginToInstanceId:t,installations:n,loginUrl:s,loginCredentials:i,windowTarget:a}=e.instances,r=t&&n?n.find((e=>e.id===parseInt(t.split("_").shift()))):null;return{loginToInstanceId:t,installation:r,loginUrl:s,loginCredentials:i,windowTarget:a}}),{loginToInstancePerformed:lk,addWarningMessage:Gg})(ej),nj="instances",sj="plugins",ij="themes",aj="sets",rj="servers";class oj extends M.Component{constructor(){super(...arguments),this.resetSearch=()=>this.props.setSearch(""),this.handleTyping=e=>{clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>this.props.setSearch(e)),500)},this.getTabs=()=>{const{isAdmin:e,isRemoteWptAvailable:t,isSetsManagementAvailable:n}=this.props,s=t&&e,i=[];return i.push(this.getInstancesTab()),i.push(this.getPluginsTab()),i.push(this.getThemesTab()),n&&i.push(this.getSetsTab()),s&&i.push(this.getServersTab()),i},this.hasBlockedPluginInSets=()=>{const{listOfSets:e,blockedPlugins:t}=this.props;if(e&&t.length){const n=new Set(e.reduce(((e,t)=>e.concat(t.plugins.map((e=>e.name)))),[]));return t.some((e=>n.has(e)))}return!1}}componentDidMount(){this.resetSearch()}go(e){const{baseUrl:t}=this.props;window.location.href=t+e}push(e){const{history:t}=this.props;this.resetSearch(),t.push(e)}getInstancesTab(){return{handleActivate:()=>this.push("/list"),title:(0,P.jsx)(qd,{content:"general-ui.tabs.instances"}),"data-test-id":"tab-instances",key:nj}}getPluginsTab(){return{handleActivate:()=>this.push("/plugins"),title:(0,P.jsx)(qd,{content:"general-ui.tabs.plugins"}),"data-test-id":"tab-plugins",key:sj}}getThemesTab(){return{handleActivate:()=>this.push("/themes"),title:(0,P.jsx)(qd,{content:"general-ui.tabs.themes"}),"data-test-id":"tab-themes",key:ij}}getSetsTab(){let e=(0,P.jsx)(qd,{content:"general-ui.tabs.sets"});return this.hasBlockedPluginInSets()&&(e=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"general-ui.tabs.sets"})," ",(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"general-ui.tabs.sets.haveBlockedPlugin"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning"})})]})),{handleActivate:()=>this.push("/sets"),title:e,icon:this.props.isSetsUnpaid?(0,P.jsx)(be,{name:"lock-closed"}):null,"data-test-id":"tab-sets",key:aj}}getServersTab(){return{handleActivate:()=>this.push("/servers"),title:(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"general-ui.tabs.remoteServersTooltip"}),children:(0,P.jsx)(qd,{content:"general-ui.tabs.remoteServers"})}),"data-test-id":"tab-remote-servers",key:rj}}getHeading(){const{isAdmin:e,baseClassName:t,cpanelWptHelpButtonUrl:n,settingsActions:{openDrawer:s},isUnpaid:i,upgradeUrl:a}=this.props;return(0,P.jsxs)("div",{className:`${t}__heading`,children:[(0,P.jsx)("div",{className:`${t}__heading__title`,children:(0,P.jsx)("h2",{children:(0,P.jsx)(qd,{content:"general-ui.title"})})}),(0,P.jsxs)("div",{className:`${t}__heading__toolbar`,children:[i&&(0,P.jsx)("div",{className:`${t}__heading__toolbar__element`,children:(0,P.jsx)(Nv,{uatAction:"CLICK_EXT_BUY_FROM_HEADER",purchaseLicenseUrl:a,children:(0,P.jsx)(qd,{content:"general-ui.buttonUpgrade"})})}),e&&(0,P.jsx)("div",{className:`${t}__heading__toolbar__element`,children:(0,P.jsx)(ye,{icon:"sliders",onClick:s,"data-test-id":"global-settings-button",children:(0,P.jsx)(qd,{content:"general-ui.settings"})})}),!1]})]})}render(){const{baseClassName:e}=this.props,t=this.getTabs(),n=t.map((e=>e.key)).indexOf(this.props.activeTab)+1;return(0,P.jsxs)("div",{className:e,children:[this.getHeading(),(0,P.jsx)(vl,{search:(0,P.jsx)(_l,{onTyping:this.handleTyping}),active:n,children:t.map((e=>(0,P.jsx)(gl,{onActivate:e.handleActivate,title:e.title,"data-test-id":e["data-test-id"],children:this.props.children},e.key)))}),(0,P.jsx)(Qk,{}),(0,P.jsx)(tj,{})]})}}oj.defaultProps={baseClassName:`${Rp}layout`,listOfSets:null};const lj=mc((e=>({baseUrl:e.app.urls.baseUrl,isAdmin:e.app.options.isAdmin,isSetsManagementAvailable:e.app.options.isSetsManagementAvailable,isRemoteWptAvailable:e.app.options.isRemoteWptAvailable,cpanelWptHelpButtonUrl:e.app.options.cpanelWptHelpButtonUrl,isUnpaid:e.app.unpaidFeatures[Dp],upgradeUrl:e.app.urls.featuresBuyLinks[Dp],isSetsUnpaid:e.app.unpaidFeatures[Tp],listOfSets:e.sets.list,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({settingsActions:kb({openDrawer:Nb},e),setSearch:kb(Qg,e)})))(Fc(oj));var cj,uj={},dj=function(){if(cj)return uj;cj=1,uj.parse=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var s={},i=e.length;if(i<2)return s;var a=n&&n.decode||l,u=0,d=0,p=0;do{if(-1===(d=e.indexOf("=",u)))break;if(-1===(p=e.indexOf(";",u)))p=i;else if(d>p){u=e.lastIndexOf(";",d-1)+1;continue}var h=r(e,u,d),m=o(e,d,h),f=e.slice(h,m);if(!t.call(s,f)){var g=r(e,d+1,p),b=o(e,p,g);34===e.charCodeAt(g)&&34===e.charCodeAt(b-1)&&(g++,b--);var v=e.slice(g,b);s[f]=c(v,a)}u=p+1}while(u<i);return s},uj.serialize=function(t,r,o){var l=o&&o.encode||encodeURIComponent;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!n.test(t))throw new TypeError("argument name is invalid");var c=l(r);if(!s.test(c))throw new TypeError("argument val is invalid");var u=t+"="+c;if(!o)return u;if(null!=o.maxAge){var d=Math.floor(o.maxAge);if(!isFinite(d))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+d}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!a.test(o.path))throw new TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(t){return"[object Date]"===e.call(t)}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+p.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.partitioned&&(u+="; Partitioned"),o.priority)switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return u};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,s=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,a=/^[\u0020-\u003A\u003D-\u007E]*$/;function r(e,t,n){do{var s=e.charCodeAt(t);if(32!==s&&9!==s)return t}while(++t<n);return n}function o(e,t,n){for(;t>n;){var s=e.charCodeAt(--t);if(32!==s&&9!==s)return t+1}return n}function l(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function c(e,t){try{return t(e)}catch(t){return e}}return uj}();function pj(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class hj{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=dj.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?dj.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e="undefined"==typeof global?void 0:global.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:pj(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),pj(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=pj(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const s="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=dj.serialize(e,s,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=dj.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const mj=M.createContext(new hj),{Provider:fj,Consumer:gj}=mj;class bj extends M.Component{constructor(e){super(e),e.cookies?this.cookies=e.cookies:this.cookies=new hj(void 0,e.defaultSetOptions)}render(){return M.createElement(fj,{value:this.cookies},this.props.children)}}function vj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var yj,xj,_j,Sj,wj={exports:{}},kj={};function jj(){return xj||(xj=1,wj.exports=function(){if(yj)return kj;yj=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,r=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case s:case a:case i:case d:return e;default:switch(e=e&&e.$$typeof){case o:case u:case m:case h:case r:return e;default:return p}}case n:return p}}}function x(e){return y(e)===c}return kj.AsyncMode=l,kj.ConcurrentMode=c,kj.ContextConsumer=o,kj.ContextProvider=r,kj.Element=t,kj.ForwardRef=u,kj.Fragment=s,kj.Lazy=m,kj.Memo=h,kj.Portal=n,kj.Profiler=a,kj.StrictMode=i,kj.Suspense=d,kj.isAsyncMode=function(e){return x(e)||y(e)===l},kj.isConcurrentMode=x,kj.isContextConsumer=function(e){return y(e)===o},kj.isContextProvider=function(e){return y(e)===r},kj.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kj.isForwardRef=function(e){return y(e)===u},kj.isFragment=function(e){return y(e)===s},kj.isLazy=function(e){return y(e)===m},kj.isMemo=function(e){return y(e)===h},kj.isPortal=function(e){return y(e)===n},kj.isProfiler=function(e){return y(e)===a},kj.isStrictMode=function(e){return y(e)===i},kj.isSuspense=function(e){return y(e)===d},kj.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===c||e===a||e===i||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===r||e.$$typeof===o||e.$$typeof===u||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===f)},kj.typeOf=y,kj}()),wj.exports}var Tj=function(){if(Sj)return _j;Sj=1;var e=jj(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function a(n){return e.isMemo(n)?s:i[n.$$typeof]||t}i[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[e.Memo]=s;var r=Object.defineProperty,o=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return _j=function e(t,s,i){if("string"!=typeof s){if(d){var p=u(s);p&&p!==d&&e(t,p,i)}var h=o(s);l&&(h=h.concat(l(s)));for(var m=a(t),f=a(s),g=0;g<h.length;++g){var b=h[g];if(!(n[b]||i&&i[b]||f&&f[b]||m&&m[b])){var v=c(s,b);try{r(t,b,v)}catch(e){}}}}return t},_j}(),Cj=vj(Tj);function Dj(e){const t=e.displayName||e.name;class n extends M.Component{constructor(){super(...arguments),this.onChange=()=>{this.forceUpdate()}}listen(){this.props.cookies.addChangeListener(this.onChange)}unlisten(e){(e||this.props.cookies).removeChangeListener(this.onChange)}componentDidMount(){this.listen()}componentDidUpdate(e){e.cookies!==this.props.cookies&&(this.unlisten(e.cookies),this.listen())}componentWillUnmount(){this.unlisten()}render(){const t=this.props,{forwardedRef:n,cookies:s}=t,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(t,["forwardedRef","cookies"]),a=s.getAll({doNotUpdate:!0});return M.createElement(e,Object.assign({},i,{ref:n,cookies:s,allCookies:a}))}}n.displayName=`withCookies(${t})`,n.WrappedComponent=e;const s=M.forwardRef(((e,t)=>M.createElement(gj,null,(s=>M.createElement(n,Object.assign({cookies:s},e,{forwardedRef:t}))))));return s.displayName=n.displayName,s.WrappedComponent=n.WrappedComponent,Cj(s,e)}const Pj="plugins/UPDATE_PLUGINS_PAGE",Oj="plugins/RESET_PLUGINS_PAGE",Ij="plugins/RELOAD_PLUGINS_FINISHED",Mj="plugins/INSTALL_PLUGINS_STARTED",Lj="plugins/ACTIVATE_PLUGINS_STARTED",Aj="plugins/DEACTIVATE_PLUGINS_STARTED",Ej="plugins/UNINSTALL_PLUGINS_STARTED",Rj="plugins/REMOVE_PLUGINS_STARTED",Uj="plugins/UPDATE_PLUGINS_STARTED",Nj="plugins/UPLOAD_AND_INSTALL_PLUGIN_TASK_STARTED",Fj=Qd(Pj,"plugins","instances","sets"),Yj=()=>ux(Qf.getPluginsList,(e=>Fj(e.data.plugins,e.data.instances,e.data.sets))),Hj=Qd(Oj),Bj=Qd(Ij,"pluginsToUpdate","newPluginsData"),Vj=(e,t)=>cx((()=>Qf.loadPluginsData(e)),((n,s)=>{n(Bj(e,s.data.plugins)),t&&t()})),$j=Qd("plugins/SEARCH_PLUGINS_FINISHED"),Wj=e=>ux((()=>Qf.searchPlugins(e)),$j),zj=Qd(Mj,"task"),qj=Qd("plugins/INSTALL_PLUGINS_FINISHED"),Gj=(e,t,n)=>ux((()=>Qf.installPlugins(e,t,n)),(e=>zj(e.data.task))),Kj=Qd("plugins/UPLOAD_PLUGIN_TO_STORAGE_FINISHED","pluginInfo"),Xj=(e,t)=>ux((()=>Qf.uploadPluginToStorage(e,t)),(e=>Kj(e.data))),Qj=Qd("plugins/UPLOAD_AND_INSTALL_PLUGIN_TASK_FINISHED"),Jj=Qd(Nj,"task"),Zj=(e,t,n)=>ux((()=>Qf.uploadAndInstallPlugin(e,t,n)),(e=>Jj(e.data.task))),eT=Qd(Lj,"task"),tT=Qd("plugins/ACTIVATE_PLUGINS_FINISHED"),nT=e=>ux((()=>Qf.activatePlugins(e)),(e=>eT(e.data.task))),sT=Qd(Aj,"task"),iT=Qd("plugins/DEACTIVATE_PLUGINS_FINISHED"),aT=e=>t=>Qf.deactivatePlugins(e).then((({data:e})=>(t(Vg(e,(()=>t(sT(e.data.task))))),e))),rT=Qd(Ej,"task"),oT=Qd("plugins/UNINSTALL_PLUGINS_FINISHED"),lT=e=>ux((()=>Qf.uninstallPlugins(e)),(e=>rT(e.data.task))),cT=Qd(Rj,"task"),uT=Qd("plugins/REMOVE_PLUGINS_FINISHED"),dT=e=>ux((()=>Qf.removePlugins(e)),(e=>cT(e.data.task))),pT=Qd(Uj,"task"),hT=Qd("plugins/UPDATE_PLUGINS_FINISHED"),mT=e=>ux((()=>Qf.updatePlugins(e)),(e=>pT(e.data.task))),fT=(e,t)=>e.reduce(((e,n)=>(0,P.jsxs)(M.Fragment,{children:[e,t,n]}))),gT="/list",bT=mc(null,(e=>({pushUrl:t=>e(qc(t))})))((({id:e,name:t,pushUrl:n})=>(0,P.jsx)("a",{onClick:()=>n(`${gT}/id/${e}`),children:t}))),vT=({url:e})=>(0,P.jsx)(ye,{href:e,target:"_blank",children:e});class yT extends M.Component{constructor(e){super(e),this.handleInstancesSelectionChange=e=>{this.setState({selectedInstances:e})},this.handleActivateAfterInstallationChange=e=>{this.setState({activateAfterInstallation:e})},this.handleSubmitInstall=()=>{const{onSubmitInstall:e}=this.props,{selectedInstances:t,activateAfterInstallation:n,isInstalling:s}=this.state;s||(this.setState({isInstalling:!0}),e(t.map((e=>parseInt(e))),n).finally((()=>this.setState({isInstalling:!1}))))},this.state={selectedInstances:[],activateAfterInstallation:!0,isInstalling:!1}}render(){const{selectInstancesText:e,backButton:t,drawerTitle:n,asset:s,instances:i,onCloseDrawer:a,showActivateAfterInstallation:r,activateAfterInstallationText:o,instanceNameListTitle:l,instanceUrlListTitle:c}=this.props,{selectedInstances:u,activateAfterInstallation:d,isInstalling:p}=this.state,h=s?s.instances.map((e=>e.id)):[],m=i.filter((e=>!rp(h,e.id))).map((e=>({id:e.id,key:`${e.id}`,name:e.name,url:e.url}))),f={onSubmit:this.handleSubmitInstall,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"list.assets.installButton"}),"data-test-id":"select-websites-drawer-install-button",disabled:0===u.length||p,state:p?"loading":"active"},cancelButton:{disabled:p}};return(0,P.jsxs)(er,{title:n,"data-type":"select-instances",onClose:a,backButton:t,isOpen:!0,size:"sm",form:f,children:[(0,P.jsx)(mi,{children:e}),(0,P.jsx)(Qr,{columns:[{key:"name",title:l,render:e=>(0,P.jsx)(bT,{id:e.id,name:e.name})},{key:"url",title:c,render:e=>(0,P.jsx)(vT,{url:e.url})}],data:m,selection:u,onSelectionChange:this.handleInstancesSelectionChange,"data-test-id":"available-websites-list"}),r&&(0,P.jsx)("div",{style:{paddingTop:"20px"},children:(0,P.jsx)(ar,{label:o,value:d,onChange:this.handleActivateAfterInstallationChange,"data-test-id":"activate-after-installation-checkbox"})})]})}}yT.defaultProps={asset:null,backButton:!1,activateAfterInstallationText:null,showActivateAfterInstallation:!1};const xT=yT;class _T extends M.Component{constructor(e){super(e),this.handleSearchTermChange=e=>{this.setState({searchTerm:e.target.value})},this.handleSearchKeyDown=e=>{"Enter"===e.key&&this.isSearchCanBeSubmitted()&&this.handleSearch()},this.handleSearch=()=>{const{onSearchAssets:e}=this.props,{searchTerm:t}=this.state;this.setState({isSearching:!0,availableAssets:null,selectedAssets:[]},(()=>{e(t).then((e=>{this.setState({availableAssets:e})})).finally((()=>{this.setState({isSearching:!1})}))}))},this.handleInstallSelectionChange=e=>{this.setState({selectedAssets:e})},this.handleSubmitInstall=(e,t)=>{const{onInstall:n}=this.props,{selectedAssets:s}=this.state;return n(s,e,t)},this.handleSelectInstances=()=>{this.setState({isSelectingInstances:!0})},this.handleCloseSelectInstances=()=>{this.setState({isSelectingInstances:!1})},this.renderAvailableAssetsList=()=>{const{availableAssets:e}=this.state;return(null==e?void 0:e.length)?this.renderAvailableAssetsListWithItems():this.renderAvailableAssetsEmptyList()},this.state={availableAssets:null,selectedAssets:[],isSearching:!1,isSelectingInstances:!1,searchTerm:""}}normalizeRating(e){return e/100*5}renderAvailableAssetsListWithItems(){const{availableAssets:e,selectedAssets:t}=this.state,{tableTitleTitle:n,tableVersionTitle:s,tableRatingTitle:i,blockedPlugins:a}=this.props,r=[{key:"title",title:n,render:e=>(0,P.jsxs)(P.Fragment,{children:[a.includes(e.key)&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})},{key:"version",title:s},{key:"rating",title:i}],o=null==e?void 0:e.map((e=>({key:e.name,title:e.title,version:e.version,rating:(0,P.jsx)(hl,{value:this.normalizeRating(e.rating)}),disabled:a.includes(e.name)})));return(0,P.jsx)(Qr,{columns:r,data:o,selection:t,onSelectionChange:this.handleInstallSelectionChange,"data-test-id":fv})}renderAvailableAssetsEmptyList(){const{nothingFoundText:e}=this.props;return(0,P.jsx)(mi,{children:e})}isSearchCanBeSubmitted(){const{isSearching:e}=this.state;return!e&&this.isSearchFieldValid()}isSearchFieldValid(){const{searchTerm:e}=this.state;return e.trim().length>=3}renderSearchingProgress(){return(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list.assets.loading"})})}renderSelectInstancesDrawer(){const{instances:e,selectInstancesText:t,showActivateAfterInstallation:n,activateAfterInstallationText:s,instanceNameListTitle:i,instanceUrlListTitle:a}=this.props;return(0,P.jsx)(xT,{onCloseDrawer:this.handleCloseSelectInstances,instances:e,onSubmitInstall:this.handleSubmitInstall,selectInstancesText:t,instanceNameListTitle:i,instanceUrlListTitle:a,drawerTitle:(0,P.jsx)(qd,{content:"list.assets.selectInstancesDrawerTitle"}),showActivateAfterInstallation:n,activateAfterInstallationText:s,backButton:!0})}render(){const{availableAssets:e,searchTerm:t,isSearching:n,isSelectingInstances:s,selectedAssets:i}=this.state,{drawerTitle:a,headDescription:r,searchDescription:o,onClose:l}=this.props;let c;return e&&e.length>0&&(c={onSubmit:this.handleSelectInstances,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"list.assets.selectInstancesButton"}),"data-test-id":"install-drawer-select-websites-button",disabled:0===i.length}}),(0,P.jsxs)(er,{title:a,"data-type":"install-asset",onClose:l,form:c,isOpen:!0,children:[(0,P.jsx)(mi,{children:r}),(0,P.jsxs)(mi,{children:[(0,P.jsx)(Ss,{value:t,onChange:this.handleSearchTermChange,onKeyDown:this.handleSearchKeyDown,"data-test-id":hv})," ",(0,P.jsx)(Be,{disabled:!this.isSearchCanBeSubmitted(),icon:"search",onClick:this.handleSearch,"data-test-id":mv}),(0,P.jsx)("br",{}),(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"list.sets.minAssetSearchLength",params:{count:3}})})]}),(0,P.jsx)(mi,{children:o}),n&&this.renderSearchingProgress(),e&&this.renderAvailableAssetsList(),s&&this.renderSelectInstancesDrawer()]})}}_T.defaultProps={activateAfterInstallationText:null,showActivateAfterInstallation:!1};const ST=mc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(_T),wT=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function kT(e,t,n){const s=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const n=t.split(".").pop().toLowerCase(),s=wT.get(n);s&&Object.defineProperty(e,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:i}=e,a="string"==typeof t?t:"string"==typeof i&&i.length>0?i:`./${e.name}`;return"string"!=typeof s.path&&jT(s,"path",a),void 0!==n&&Object.defineProperty(s,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),jT(s,"relativePath",a),s}function jT(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const TT=[".DS_Store","Thumbs.db"];function CT(e){return"object"==typeof e&&null!==e}function DT(e){return e.filter((e=>-1===TT.indexOf(e.name)))}function PT(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const s=e[n];t.push(s)}return t}function OT(e){if("function"!=typeof e.webkitGetAsEntry)return MT(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?AT(t):MT(e,t)}function IT(e){return e.reduce(((e,t)=>[...e,...Array.isArray(t)?IT(t):[t]]),[])}function MT(e,t){return vu(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,kT(e)}}const s=e.getAsFile();if(!s)throw new Error(`${e} is not a File`);return kT(s,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)}))}function LT(e){return vu(this,void 0,void 0,(function*(){return e.isDirectory?AT(e):function(e){return vu(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{e.file((n=>{const s=kT(n,e.fullPath);t(s)}),(e=>{n(e)}))}))}))}(e)}))}function AT(e){const t=e.createReader();return new Promise(((e,n)=>{const s=[];!function i(){t.readEntries((t=>vu(this,void 0,void 0,(function*(){if(t.length){const e=Promise.all(t.map(LT));s.push(e),i()}else try{const t=yield Promise.all(s);e(t)}catch(e){n(e)}}))),(e=>{n(e)}))}()}))}var ET=r(9455);function RT(e){return function(e){if(Array.isArray(e))return BT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||HT(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 UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function NT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UT(Object(n),!0).forEach((function(t){FT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,i,a=[],r=!0,o=!1;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(o)throw i}}return a}}(e,t)||HT(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function HT(e,t){if(e){if("string"==typeof e)return BT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?BT(e,t):void 0}}function BT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var VT="function"==typeof ET.A?ET.A:ET.A.default,$T=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(t)}},WT=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},zT=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},qT={code:"too-many-files",message:"Too many files"};function GT(e,t){var n="application/x-moz-file"===e.type||VT(e,t);return[n,n?null:$T(t)]}function KT(e,t,n){if(XT(e.size))if(XT(t)&&XT(n)){if(e.size>n)return[!1,WT(n)];if(e.size<t)return[!1,zT(t)]}else{if(XT(t)&&e.size<t)return[!1,zT(t)];if(XT(n)&&e.size>n)return[!1,WT(n)]}return[!0,null]}function XT(e){return null!=e}function QT(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function JT(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function ZT(e){e.preventDefault()}function eC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return t.some((function(t){return!QT(e)&&t&&t.apply(void 0,[e].concat(s)),QT(e)}))}}function tC(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function nC(e){return/^.*\.[\w]+$/.test(e)}var sC=["children"],iC=["open"],aC=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],rC=["refKey","onChange","onClick"];function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,i,a=[],r=!0,o=!1;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(a.push(s.value),!t||a.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(o)throw i}}return a}}(e,t)||lC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lC(e,t){if(e){if("string"==typeof e)return cC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cC(e,t):void 0}}function cC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function dC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uC(Object(n),!0).forEach((function(t){pC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hC(e,t){if(null==e)return{};var n,s,i=function(e,t){if(null==e)return{};var n,s,i={},a=Object.keys(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var mC=(0,M.forwardRef)((function(e,t){var n=e.children,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=dC(dC({},fC),e),n=t.accept,s=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,r=t.minSize,o=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,f=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,v=t.autoFocus,y=t.preventDropOnDocument,x=t.noClick,_=t.noKeyboard,S=t.noDrag,w=t.noDragEventsBubbling,k=t.onError,j=t.validator,T=(0,M.useMemo)((function(){return function(e){if(XT(e))return Object.entries(e).reduce((function(e,t){var n=YT(t,2),s=n[0],i=n[1];return[].concat(RT(e),[s],RT(i))}),[]).filter((function(e){return tC(e)||nC(e)})).join(",")}(n)}),[n]),C=(0,M.useMemo)((function(){return function(e){if(XT(e)){var t=Object.entries(e).filter((function(e){var t=YT(e,2),n=t[0],s=t[1],i=!0;return tC(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),Array.isArray(s)&&s.every(nC)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),i=!1),i})).reduce((function(e,t){var n=YT(t,2),s=n[0],i=n[1];return NT(NT({},e),{},FT({},s,i))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),D=(0,M.useMemo)((function(){return"function"==typeof g?g:yC}),[g]),P=(0,M.useMemo)((function(){return"function"==typeof f?f:yC}),[f]),O=(0,M.useRef)(null),I=(0,M.useRef)(null),L=oC((0,M.useReducer)(vC,bC),2),A=L[0],E=L[1],R=A.isFocused,U=A.isFileDialogActive,N=(0,M.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),F=function(){!N.current&&U&&setTimeout((function(){I.current&&(I.current.files.length||(E({type:"closeDialog"}),P()))}),300)};(0,M.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[I,U,P,N]);var Y=(0,M.useRef)([]),H=function(e){O.current&&O.current.contains(e.target)||(e.preventDefault(),Y.current=[])};(0,M.useEffect)((function(){return y&&(document.addEventListener("dragover",ZT,!1),document.addEventListener("drop",H,!1)),function(){y&&(document.removeEventListener("dragover",ZT),document.removeEventListener("drop",H))}}),[O,y]),(0,M.useEffect)((function(){return!s&&v&&O.current&&O.current.focus(),function(){}}),[O,v,s]);var B=(0,M.useCallback)((function(e){k?k(e):console.error(e)}),[k]),V=(0,M.useCallback)((function(e){var t;e.preventDefault(),e.persist(),ne(e),Y.current=[].concat(function(e){if(Array.isArray(e))return cC(e)}(t=Y.current)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||lC(t)||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.")}(),[e.target]),JT(e)&&Promise.resolve(i(e)).then((function(t){if(!QT(e)||w){var n=t.length,s=n>0&&function(e){var t=e.files,n=e.accept,s=e.minSize,i=e.maxSize,a=e.multiple,r=e.maxFiles,o=e.validator;return!(!a&&t.length>1||a&&r>=1&&t.length>r)&&t.every((function(e){var t=YT(GT(e,n),1)[0],a=YT(KT(e,s,i),1)[0],r=o?o(e):null;return t&&a&&!r}))}({files:t,accept:T,minSize:r,maxSize:a,multiple:o,maxFiles:l,validator:j});E({isDragAccept:s,isDragReject:n>0&&!s,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}})).catch((function(e){return B(e)}))}),[i,c,B,w,T,r,a,o,l,j]),$=(0,M.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=JT(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,w]),W=(0,M.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e);var t=Y.current.filter((function(e){return O.current&&O.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),Y.current=t,t.length>0||(E({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),JT(e)&&u&&u(e))}),[O,u,w]),z=(0,M.useCallback)((function(e,t){var n=[],s=[];e.forEach((function(e){var t=oC(GT(e,T),2),i=t[0],o=t[1],l=oC(KT(e,r,a),2),c=l[0],u=l[1],d=j?j(e):null;if(i&&c&&!d)n.push(e);else{var p=[o,u];d&&(p=p.concat(d)),s.push({file:e,errors:p.filter((function(e){return e}))})}})),(!o&&n.length>1||o&&l>=1&&n.length>l)&&(n.forEach((function(e){s.push({file:e,errors:[qT]})})),n.splice(0)),E({acceptedFiles:n,fileRejections:s,isDragReject:s.length>0,type:"setFiles"}),p&&p(n,s,t),s.length>0&&m&&m(s,t),n.length>0&&h&&h(n,t)}),[E,o,T,r,a,l,p,h,m,j]),q=(0,M.useCallback)((function(e){e.preventDefault(),e.persist(),ne(e),Y.current=[],JT(e)&&Promise.resolve(i(e)).then((function(t){QT(e)&&!w||z(t,e)})).catch((function(e){return B(e)})),E({type:"reset"})}),[i,z,B,w]),G=(0,M.useCallback)((function(){if(N.current){E({type:"openDialog"}),D();var e={multiple:o,types:C};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){z(e,null),E({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(P(e),E({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(N.current=!1,I.current?(I.current.value=null,I.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(e)}))}else I.current&&(E({type:"openDialog"}),D(),I.current.value=null,I.current.click())}),[E,D,P,b,z,B,C,o]),K=(0,M.useCallback)((function(e){O.current&&O.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),G()))}),[O,G]),X=(0,M.useCallback)((function(){E({type:"focus"})}),[]),Q=(0,M.useCallback)((function(){E({type:"blur"})}),[]),J=(0,M.useCallback)((function(){x||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(G,0):G())}),[x,G]),Z=function(e){return s?null:e},ee=function(e){return _?null:Z(e)},te=function(e){return S?null:Z(e)},ne=function(e){w&&e.stopPropagation()},se=(0,M.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,i=e.role,a=e.onKeyDown,r=e.onFocus,o=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,h=hC(e,aC);return dC(dC(pC({onKeyDown:ee(eC(a,K)),onFocus:ee(eC(r,X)),onBlur:ee(eC(o,Q)),onClick:Z(eC(l,J)),onDragEnter:te(eC(c,V)),onDragOver:te(eC(u,$)),onDragLeave:te(eC(d,W)),onDrop:te(eC(p,q)),role:"string"==typeof i&&""!==i?i:"presentation"},n,O),s||_?{}:{tabIndex:0}),h)}}),[O,K,X,Q,J,V,$,W,q,_,S,s]),ie=(0,M.useCallback)((function(e){e.stopPropagation()}),[]),ae=(0,M.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,s=e.onChange,i=e.onClick,a=hC(e,rC);return dC(dC({},pC({accept:T,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:Z(eC(s,q)),onClick:Z(eC(i,ie)),tabIndex:-1},n,I)),a)}}),[I,n,o,q,s]);return dC(dC({},A),{},{isFocused:R&&!s,getRootProps:se,getInputProps:ae,rootRef:O,inputRef:I,open:Z(G)})}(hC(e,sC)),i=s.open,a=hC(s,iC);return(0,M.useImperativeHandle)(t,(function(){return{open:i}}),[i]),M.createElement(M.Fragment,null,n(dC(dC({},a),{},{open:i})))}));mC.displayName="Dropzone";var fC={disabled:!1,getFilesFromEvent:function(e){return vu(this,void 0,void 0,(function*(){return CT(e)&&CT(e.dataTransfer)?function(e,t){return vu(this,void 0,void 0,(function*(){if(e.items){const n=PT(e.items).filter((e=>"file"===e.kind));return"drop"!==t?n:DT(IT(yield Promise.all(n.map(OT))))}return DT(PT(e.files).map((e=>kT(e))))}))}(e.dataTransfer,e.type):CT(t=e)&&CT(t.target)?function(e){return PT(e.target.files).map((e=>kT(e)))}(e):Array.isArray(e)&&e.every((e=>"getFile"in e&&"function"==typeof e.getFile))?function(e){return vu(this,void 0,void 0,(function*(){return(yield Promise.all(e.map((e=>e.getFile())))).map((e=>kT(e)))}))}(e):[];var t}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};mC.defaultProps=fC,mC.propTypes={children:We().func,accept:We().objectOf(We().arrayOf(We().string)),multiple:We().bool,preventDropOnDocument:We().bool,noClick:We().bool,noKeyboard:We().bool,noDrag:We().bool,noDragEventsBubbling:We().bool,minSize:We().number,maxSize:We().number,maxFiles:We().number,disabled:We().bool,getFilesFromEvent:We().func,onFileDialogCancel:We().func,onFileDialogOpen:We().func,useFsAccessApi:We().bool,autoFocus:We().bool,onDragEnter:We().func,onDragLeave:We().func,onDragOver:We().func,onDrop:We().func,onDropAccepted:We().func,onDropRejected:We().func,onError:We().func,validator:We().func};const gC=mC;var bC={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function vC(e,t){switch(t.type){case"focus":return dC(dC({},e),{},{isFocused:!0});case"blur":return dC(dC({},e),{},{isFocused:!1});case"openDialog":return dC(dC({},bC),{},{isFileDialogActive:!0});case"closeDialog":return dC(dC({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return dC(dC({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return dC(dC({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return dC({},bC);default:return e}}function yC(){}class xC extends M.Component{constructor(e){super(e),this.validateForm=()=>{const{noInstancesSelectedErrorMessage:e}=this.props,{uploadFile:t,selectedInstanceIds:n}=this.state,s={};return t||(s.fileUpload={noFile:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.errorEmptyArchive"})}),this.isInstancesSelectionAvailable()&&0===n.length&&(s.instances={noInstances:e}),s},this.handleSubmitUpload=()=>{const{onUpload:e}=this.props,{uploadFile:t,selectedSetId:n,selectedInstanceIds:s,isActivateAfterInstallation:i,isUploading:a}=this.state;if(a)return;const r=this.validateForm();Object.keys(r).length>0?this.setState({formErrors:r}):(this.setState({isUploading:!0,formErrors:null}),e({uploadFile:t,setId:""===n?null:n,instanceIds:s.map((e=>parseInt(e))),isActivateAfterInstallation:i}).then((e=>{e.status===gp&&e.formErrors&&this.setState({formErrors:e.formErrors})})).finally((()=>this.setState({isUploading:!1}))))},this.handleAcceptUploadFiles=e=>{this.setState({uploadFile:e[0]})},this.handleSelectedSetChange=e=>{this.setState({selectedSetId:e.target.value})},this.handleInstancesSelectionChange=e=>{this.setState({selectedInstanceIds:e})},this.handleActivateAfterInstallationChange=e=>{this.setState({isActivateAfterInstallation:e})},this.state={uploadFile:null,selectedSetId:"",isUploading:!1,selectedInstanceIds:[],isActivateAfterInstallation:!1,formErrors:null}}isInstancesSelectionAvailable(){const{instances:e}=this.props;return null!=e&&e.length>0}getUploadFileHint(){const{uploadFile:e}=this.state;return e?e.name:(0,P.jsx)(qd,{content:"list.assets.uploadNoFileSelected"})}renderSetsSelector(){const{sets:e,uploadHintForSet:t}=this.props;if(0===(null==e?void 0:e.length))return null;const{selectedSetId:n}=this.state;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:t}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectSet"}),children:(0,P.jsxs)("select",{value:n,onChange:this.handleSelectedSetChange,children:[(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.notSelectedSet",component:"option",value:""}),null==e?void 0:e.map((e=>(0,P.jsx)("option",{value:e.id,children:e.name},e.id)))]})})]})}renderInstancesSelector(){const{instances:e,activateAfterInstallationLabel:t,uploadHintForInstances:n}=this.props,{selectedInstanceIds:s,isActivateAfterInstallation:i,formErrors:a}=this.state;if(!this.isInstancesSelectionAvailable())return null;const r=[{key:"name",title:(0,P.jsx)(qd,{content:"list.instances.url"}),render:e=>(0,P.jsx)(bT,{id:e.id,name:e.name})},{key:"url",title:(0,P.jsx)(qd,{content:"list.instances.version"}),render:e=>(0,P.jsx)(vT,{url:e.url})}],o=null==e?void 0:e.map((e=>({id:e.id,key:`${e.id}`,name:e.name,url:e.url})));return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Sa,{errors:a&&a.hasOwnProperty("instances")?a.instances:void 0,label:(0,P.jsx)(qd,{content:"list.assets.selectInstancesLabel"}),description:n,required:!0,children:(0,P.jsx)(Qr,{columns:r,data:o,selection:s,onSelectionChange:this.handleInstancesSelectionChange})}),(0,P.jsx)("div",{style:{paddingTop:"20px"},children:(0,P.jsx)(ar,{label:t,value:i,onChange:this.handleActivateAfterInstallationChange})})]})}renderFileSelector(){const{selectLabel:e,baseClassName:t}=this.props,{formErrors:n}=this.state;return(0,P.jsx)(Sa,{label:e,description:this.getUploadFileHint(),errors:n&&n.hasOwnProperty("fileUpload")?n.fileUpload:void 0,required:!0,children:(0,P.jsx)(gC,{onDrop:this.handleAcceptUploadFiles,multiple:!1,children:({getRootProps:e,getInputProps:n})=>(0,P.jsxs)("div",Object.assign({},e(),{className:`${t}__dropzone`,children:[(0,P.jsx)("input",Object.assign({},n())),(0,P.jsx)(Be,{children:(0,P.jsx)(qd,{content:"list.assets.uploadBrowseButton"})})]}))})})}render(){const{isUploading:e}=this.state,{drawerTitle:t,onClose:n,baseClassName:s}=this.props,i={onSubmit:this.handleSubmitUpload,applyButton:!1,submitButton:{state:e?"loading":"active",disabled:e},cancelButton:{disabled:e}};return(0,P.jsxs)(er,{title:t,"data-type":"upload-asset",onClose:n,form:i,isOpen:!0,size:this.isInstancesSelectionAvailable()?"md":"sm",className:s,children:[this.renderFileSelector(),this.renderSetsSelector(),this.renderInstancesSelector()]})}}xC.defaultProps={sets:[],instances:null,baseClassName:`${Rp}upload-asset-drawer`};const _C=xC;var SC=r(74728),wC=r.n(SC);const kC=e=>{const t=e.displayName||e.name||"Component",n=t=>{const n=(()=>{const[e,t]=(0,M.useState)([]),n=(0,M.useCallback)((()=>t([])),[]),s=(0,M.useCallback)((n=>{t(e.filter((({key:e})=>e!==n)))}),[e]),i=(0,M.useCallback)((n=>{n=[...n];const s=e.map((e=>e.key));e.forEach((e=>{s.length&&-1===s.indexOf(e.key)&&n.push(e)})),t(n)}),[e]),a=(0,M.useCallback)(((e,t,n=sp(4))=>{i([{key:n,status:yp,message:e,isTranslate:t}])}),[i]),r=(0,M.useCallback)(((e,t,n=sp(4))=>{i([{key:n,status:_p,message:e,isTranslate:t}])}),[i]),o=(0,M.useCallback)(((e,t,n=sp(4))=>{i([{key:n,status:xp,message:e,isTranslate:t}])}),[i]),l=(0,M.useCallback)((()=>e&&e.length?e.map((({key:e,status:t,message:n,icon:i=null,isTranslate:a=!1})=>{if(!t||!n)return null;const r=a?(0,P.jsx)(qd,{content:n}):(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(n,Object.assign(Object.assign({},SC.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),o=t===gp?_p:t;return(0,P.jsxs)(xe,{intent:o,className:"wpt-drawer-alert",onClose:()=>s(e),children:[i&&(0,P.jsxs)(P.Fragment,{children:[i," "]}),r]},sp(4))})):null),[e,s]);return{onSetDrawerMessages:i,onClearDrawerMessages:n,onAddDrawerSuccessMessage:a,onAddDrawerErrorMessage:r,onAddDrawerWarningMessage:o,renderDrawerMessages:l}})();return(0,P.jsx)(e,Object.assign({},n,t))};return n.displayName=`withDrawerMessages(${t})`,n},jC="servers/ADD_SERVER_STARTED",TC="servers/ADD_SERVER",CC="servers/UPDATE_SERVER",DC="servers/SCAN_SERVERS_STARTED",PC="server/SCAN_FINISHED",OC="servers/MARK_SCANNING_SERVERS",IC="servers/UPDATE_SERVERS_LIST",MC="servers/DISABLE_BETA_DIALOG",LC="servers/RESET_SERVERS_LIST",AC="servers/REMOVE_SERVERS",EC="server/FILTERS_ALL",RC="server/FILTERS_ACTIVE",UC="servers/SET_INSTANCES_LOG",NC="servers/RESET_INSTANCES_LOG",FC="success",YC="path",HC="plain",BC="password",VC="autodetect",$C="paths",WC="clone/CLONE_STARTED",zC="sync/SYNC_STARTED",qC="asset/GET_AVAILABLE_ASSETS",GC="asset/SET_ASSET_TO_INSTALLING",KC="asset/REMOVE_ASSET_FROM_INSTALLING",XC="asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE",QC="asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE_FINISHED",JC="themes/UPDATE_THEMES_PAGE",ZC="themes/RESET_THEMES_PAGE",eD="themes/RELOAD_THEMES_FINISHED",tD="themes/INSTALL_THEMES_STARTED",nD="themes/UPDATE_THEMES_STARTED",sD="themes/UNINSTALL_THEMES_STARTED",iD="themes/REMOVE_THEMES_STARTED",aD="themes/ACTIVATE_THEME_STARTED",rD="plugins/UPLOAD_AND_INSTALL_THEME_TASK_STARTED",oD="backup/SET_INSTANCE_BACKUPS_LIST",lD="backup/REMOVE_INSTANCE_BACKUPS",cD="backup/BACKUP_CREATION_STARTED",uD="backup/BACKUP_RESTORING_STARTED",dD="checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_STARTED",pD="mass-security-operation",hD="mass-check-updates",mD=[jC,DC,Dy,Sy,fy,yy,Cy,Ly,WC,zC,XC,Mj,Lj,Aj,Ej,Rj,Uj,tD,nD,sD,iD,aD,Nj,rD,Fy,Yy,Vy,cD,uD,dD,Fx,Yx,Hx,Xy,Gy,Ox,Mx],fD=({className:e="",text:t=""})=>t?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("span",{className:`loading-spinner ${e}`})," ",t]}):(0,P.jsx)("span",{className:`loading-spinner ${e}`});class gD extends M.Component{constructor(){super(...arguments),this.renderPopover=()=>this.props.checkers.map((e=>(0,P.jsxs)("div",{className:"wpt-instances-security-form-list_col-popover_issue",children:[e.title," ",e.description&&e.description.length>0&&(0,P.jsx)(Oe,{className:"maximum-z-index",title:e.description,children:(0,P.jsx)(be,{name:"info-circle"})})]},e.id)))}render(){const{checkers:e}=this.props,t=e.length;return 0===t?(0,P.jsx)(Fa,{icon:"circle-check-mark",intent:"success"}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{icon:"circle-exclamation-mark",intent:"danger"}),placement:"top-left",children:(0,P.jsx)("div",{className:"wpt-instances-security-form-list_col-popover",children:this.renderPopover()})}),` ${t}`]})}}const bD=gD;class vD extends M.Component{constructor(){super(...arguments),this.renderPopover=()=>this.props.checkers.map((e=>(0,P.jsxs)("div",{className:"wpt-instances-security-form-list_col-popover_issue",children:[e.title," ",e.description&&e.description.length>0&&(0,P.jsx)(Oe,{className:"maximum-z-index",title:e.description,children:(0,P.jsx)(be,{name:"info-circle"})})]},e.id)))}render(){const{checkers:e}=this.props,t=e.length;return 0===t?(0,P.jsx)(Fa,{icon:"circle-check-mark",intent:"success"}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{icon:"triangle-exclamation-mark",intent:"warning"}),placement:"top-left",children:(0,P.jsx)("div",{className:"wpt-instances-security-form-list_col-popover",children:this.renderPopover()})}),` ${t}`]})}}const yD=vD;class xD{constructor(e){this.getCriticalSecurityMeasuresIds=()=>this.securityMeasures.filter((e=>e.critical)).map((e=>e.id)),this.getRecommendedSecurityMeasuresIds=()=>this.securityMeasures.filter((e=>!e.critical)).map((e=>e.id)),this.getUnresolvedCriticalSecurityMeasures=e=>e.securityMeasures.filter((e=>e.available&&!e.status&&this.getCriticalSecurityMeasuresIds().includes(e.id))),this.getUnresolvedRecommendedSecurityMeasures=e=>e.securityMeasures.filter((e=>e.available&&!e.status&&this.getRecommendedSecurityMeasuresIds().includes(e.id))),this.hasUnresolvedCriticalSecurityMeasures=e=>this.getUnresolvedCriticalSecurityMeasures(e).length>0,this.hasUnresolvedRecommendedSecurityMeasures=e=>this.getUnresolvedRecommendedSecurityMeasures(e).length>0,this.getSecurityMeasuresByIds=e=>this.securityMeasures.filter((t=>e.includes(t.id))),this.isSecurityMeasureResolvedForInstallation=(e,t)=>t.securityMeasures.some((t=>t.id===e&&t.status)),this.getUnresolvedSecurityMeasureAvailableForResolve=e=>e.filter((e=>e.available&&!e.status)),this.getResolvedSecurityMeasureAvailableForRevert=e=>e.filter((e=>{if(!e.available||!e.status)return!1;const t=this.securityMeasures.find((t=>t.id===e.id));return!!t&&t.rollbackAvailable})),this.isSecurityMeasureAvailable=(e,t)=>t.some((t=>t.id===e&&t.available)),this.securityMeasures=e}}const _D=["all",Ax,Ex];class SD extends M.Component{constructor(){super(...arguments),this.state={isLoading:!1,securityCheckersSelection:{}},this.setSecurityCheckersSelection=()=>this.props.setSecurityCheckersSelection(Object.keys(this.state.securityCheckersSelection).filter((e=>this.state.securityCheckersSelection[e]))),this.handleChangeSecurityOption=e=>this.setState((t=>{const{securityMeasures:n,securityMeasuresForResolving:s}=this.props,i=new xD(n);let a=Object.assign({},t.securityCheckersSelection);switch(e){case"all":a=ap(s,(e=>({key:e.id,value:!0})));break;case Ax:a=ap(s,(e=>({key:e.id,value:i.getCriticalSecurityMeasuresIds().includes(e.id)})))}return{securityOption:e,securityCheckersSelection:a}}),this.setSecurityCheckersSelection),this.handleChangeSecurityChecker=(e,t)=>this.setState((n=>{const s=Object.assign({},n.securityCheckersSelection);return s[e]=t,{securityCheckersSelection:s,securityOption:Ex}}),this.setSecurityCheckersSelection),this.getSecurityCheckersControl=()=>{const{securityMeasuresForResolving:e}=this.props,{securityCheckersSelection:t}=this.state;return(0,P.jsx)("div",{className:"wpt-mgl-20",children:e.map((e=>(0,P.jsxs)("div",{className:"wpt-instances-security_resolve-security-checkers-form_item",children:[(0,P.jsx)(ar,{label:e.title,className:"pull-left",value:t[e.id],onChange:t=>this.handleChangeSecurityChecker(e.id,t)}),e.description&&e.description.length>0&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-instances-security_resolve-security-checkers-form_item-info"}),placement:"top-right",children:e.description}),e.rollbackAvailable&&(0,P.jsxs)(ei,{className:"wpt-mgl-5",children:["(",(0,P.jsx)(qd,{content:"list-ui.instances.forms.resolveSecurityCheckers.hasRollback"}),")"]})]},e.id)))})},this.getSecurityOptions=()=>_D.map((e=>({label:(0,P.jsx)(qd,{content:`list-ui.instances.forms.resolveSecurityCheckers.${e}`}),value:String(e)})))}componentWillMount(){this.handleChangeSecurityOption(Ax)}render(){const{isLoading:e,securityOption:t}=this.state;return e?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instances.forms.resolveSecurityCheckers.loading"})]}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.resolveSecurityCheckers.description"})}),(0,P.jsx)(gr,{name:"securityOption",label:null,value:t,options:this.getSecurityOptions(),onChange:this.handleChangeSecurityOption}),this.getSecurityCheckersControl()]})}}SD.propTypes={securityMeasuresForResolving:We().array.isRequired,securityMeasures:We().array.isRequired,setSecurityCheckersSelection:We().func.isRequired};const wD=mc((e=>({securityMeasures:e.securityMeasures.securityMeasures})),{})(SD);class kD extends M.Component{constructor(){super(...arguments),this.state={isLoading:!1,securityCheckersSelection:{}},this.handleChangeSecurityChecker=(e,t)=>this.setState((n=>{const s=Object.assign({},n.securityCheckersSelection);return s[e]=t,{securityCheckersSelection:s}}),(()=>this.props.setSecurityCheckersSelection(Object.keys(this.state.securityCheckersSelection).filter((e=>this.state.securityCheckersSelection[e])))))}render(){if(this.state.isLoading)return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instances.forms.revertSecurityCheckers.loading"})]});const{securityMeasuresForReverting:e}=this.props;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.revertSecurityCheckers.description"})}),e.map((e=>(0,P.jsxs)("div",{className:"wpt-instances-security_revert-security-checkers-form_item",children:[(0,P.jsx)(ar,{label:e.title,className:"pull-left",value:this.state.securityCheckersSelection[e.id],onChange:t=>this.handleChangeSecurityChecker(e.id,t)}),e.description&&e.description.length>0&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-instances-security_revert-security-checkers-form_item-info"}),placement:"top-right",children:e.description})]},e.id)))]})}}kD.propTypes={securityMeasuresForReverting:We().array.isRequired,setSecurityCheckersSelection:We().func.isRequired};const jD=kD;function TD(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function CD(e,t,n){return t=MD(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,AD()?Reflect.construct(t,n||[],MD(e).constructor):t.apply(e,n))}function DD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PD(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,ND(s.key),s)}}function OD(e,t,n){return t&&PD(e.prototype,t),n&&PD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ID(e,t,n){return(t=ND(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MD(e){return MD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MD(e)}function LD(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UD(e,t)}function AD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(AD=function(){return!!e})()}function ED(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function RD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ED(Object(n),!0).forEach((function(t){ID(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ED(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UD(e,t){return UD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UD(e,t)}function ND(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var FD={NOT_STARTED:"not_started",STARTED:"started",RUNNING:"running",CANCELED:"canceled",ERROR:"error",DONE:"done"},YD={NOT_STARTED:"not_started",STARTED:"started",RUNNING:"running",CANCELED:"canceled",ERROR:"error",DONE:"done"},HD="backgroundTask/ADD",BD="backgroundTask/UPDATE",VD="backgroundTask/POLL",$D="backgroundTask/REMOVE",WD="error",zD="background-tasks-",qD=function(e){return e&&[FD.CANCELED,FD.ERROR,FD.DONE].includes(e.status)},GD=function(e){return e&&e.status===FD.DONE},KD=function(e){return e&&e.status===FD.ERROR},XD=function(e,t){return t.find((function(t){return t.id===e}))},QD=function(e){return e.status===FD.ERROR?"danger":"warning"},JD=function(e,t,n){return function(s,i){return e({id:t,code:n}).then((function(e){var t=e.data;if(t.status===WD)return null;var n=t.data.task;return i().backgroundTasks.tasks.some((function(e){return e.id===n.id}))||s({type:VD,task:n}),n})).catch((function(){return null}))}},ZD=function(e,t){return function(n,s){return e(t).then((function(e){var t=e.data;if(t.status===WD)return[];var i=t.data.tasks,a=s().backgroundTasks.tasks;return i.forEach((function(e){a.some((function(t){return t.id===e.id}))||n({type:VD,task:e})})),i})).catch((function(){return[]}))}},eP=function(e){return function(t){return e.forEach((function(e){qD(e)||t({type:VD,task:e})}))}},tP=function(e){function t(){var e;DD(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return ID(e=CD(this,t,[].concat(s)),"renderStatusIcon",(function(e){return qD(e)?KD(e)?(0,M.createElement)(be,{name:"cross-mark-circle-filled",intent:"danger"}):e.errors.length>0?(0,M.createElement)(be,{name:"check-mark-circle-filled",intent:"warning"}):(0,M.createElement)(be,{name:"check-mark-circle-filled",intent:"success"}):(0,M.createElement)(be,{name:"reload",animation:"spin",intent:"info"})})),ID(e,"renderDetails",(function(t){var n=e.props,s=n.baseClassName,i=n.onShowDetails;if(!qD(t)){var a=Object.keys(t.steps).length>0;return(0,M.createElement)(M.Fragment,null,t.title,(0,M.createElement)(Ga,{className:"".concat(s,"__progress-bar"),progress:t.progress,status:t.status}),(0,M.createElement)("div",{className:"".concat(s,"__progress-footer")},a&&(0,M.createElement)("div",{className:"".concat(s,"__progress-control")},(0,M.createElement)(ye,{onClick:function(){return i(t)}},(0,M.createElement)(On,{content:"backgroundTasks.showDetails",fallback:"show details"}))),(0,M.createElement)(On,{content:"backgroundTasks.completedProgress",params:{progress:t.progress},fallback:"%%progress%%% completed"})))}return GD(t)&&0===t.errors.length?t.title:(0,M.createElement)(M.Fragment,null,(0,M.createElement)(ei,null,t.title),(0,M.createElement)("br",null),(0,M.createElement)(ei,{className:"".concat(s,"__errors")},t.errors.map((function(e){return(0,M.createElement)("span",{key:e},e,(0,M.createElement)("br",null))}))))})),ID(e,"renderAction",(function(t){if(!qD(t))return null;var n=e.props.onClose;return(0,M.createElement)(ye,{icon:"cross-mark",onClick:function(){return n(t)}})})),e}return LD(t,e),OD(t,[{key:"render",value:function(){var e=this.props,t=e.task,n=e.baseClassName;return qD(t)?(0,M.createElement)("div",{className:n},(0,M.createElement)(ai,{xs:3},(0,M.createElement)(ri,{xs:1},this.renderStatusIcon(t)),(0,M.createElement)(ri,{xs:10},this.renderDetails(t)),(0,M.createElement)(ri,{xs:1,className:"".concat(n,"__action")},this.renderAction(t)))):(0,M.createElement)("div",{className:n},(0,M.createElement)(ai,{xs:1},(0,M.createElement)(ri,{xs:12},this.renderDetails(t))))}}])}(M.Component);tP.propTypes={task:We().object.isRequired,onClose:We().func.isRequired,onShowDetails:We().func.isRequired,baseClassName:We().string},tP.defaultProps={baseClassName:"".concat(zD,"background-task-item")};var nP=function(e){function t(){var e;DD(this,t);for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return ID(e=CD(this,t,[].concat(s)),"isErrorsVisible",(function(){var t=e.props.task;return qD(t)&&t.errors.length>0})),e}return LD(t,e),OD(t,[{key:"render",value:function(){var e=this.props,t=e.task,n=e.onClose,s=e.baseClassName,i=[];return Object.keys(t.steps).forEach((function(e){var n=t.steps[e];if(n){var s=(0,M.createElement)(Ga,{key:e,title:n.title,status:n.status,progress:n.progress},!1===qD(t)&&n.hint);i.push(s)}})),(0,M.createElement)(Ea,{actions:[(0,M.createElement)(ye,{key:"minimize",onClick:n},(0,M.createElement)(On,{content:"backgroundTasks.minimizeDetails",fallback:"minimize"}))],className:s,title:t.title,size:"xs",onClose:n,closable:!1,isOpen:!0},(0,M.createElement)(Xa,{className:"".concat(s,"__content")},i),this.isErrorsVisible()&&(0,M.createElement)(xe,{className:"".concat(s,"__errors"),intent:QD(t)},t.errors.map((function(e){return(0,M.createElement)("span",{key:e},e,(0,M.createElement)("br",null))}))))}}])}(M.Component);nP.propTypes={task:We().object.isRequired,onClose:We().func.isRequired,baseClassName:We().string},nP.defaultProps={baseClassName:"".concat(zD,"background-task-details")};var sP=function(e){function t(e){var n;return DD(this,t),ID(n=CD(this,t,[e]),"isNeedToRender",(function(){return n.props.tasks.length>0})),ID(n,"handleToggleCollaps",(function(){return n.setState((function(e){return{isCollapsed:!e.isCollapsed}}))})),ID(n,"hasSeveralStatusesOrTasks",(function(e,t,n,s){return[e,t,n,s].reduce((function(e,t){return t<=0||((e.wasOneMoreThanZero||t>1)&&(e.hasSeveralStatusesOrTasks=!0),e.wasOneMoreThanZero=!0),e}),{hasSeveralStatusesOrTasks:!1,wasOneMoreThanZero:!1}).hasSeveralStatusesOrTasks})),ID(n,"handleCloseItem",(function(e){return n.props.removeBackgroundTask(n.props.removeTaskApi,e.id,e.code)})),ID(n,"handleOpenDetails",(function(e){return n.setState({showDetailsTaskId:e.id})})),ID(n,"handleCloseDetails",(function(){return n.setState({showDetailsTaskId:null})})),ID(n,"renderHideCompletedAction",(function(e){if(!e)return null;var t=n.props,s=t.baseClassName,i=t.removeCompletedBackgroundTasks,a=t.removeTasksApi;return(0,M.createElement)(ye,{className:"".concat(s,"__hide-completed"),onClick:function(){return i(a)}},(0,M.createElement)(On,{content:"backgroundTasks.hideCompleted",fallback:"Hide completed"}))})),ID(n,"renderTitle",(function(){var e=n.props,t=e.baseClassName,s=e.tasks,i=s.filter((function(e){return!1===qD(e)})).length,a=s.filter((function(e){return GD(e)&&0===e.errors.length})).length,r=s.filter((function(e){return GD(e)&&e.errors.length>0})).length,o=s.filter((function(e){return KD(e)})).length,l=null;i>0&&(l=(0,M.createElement)(M.Fragment,null,(0,M.createElement)(be,{className:"".concat(t,"__title__icon"),name:"reload",animation:"spin",intent:"info"}),(0,M.createElement)(On,{content:"backgroundTasks.tasksInProgress",params:{count:i},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks in progress"}),(0,M.createElement)("span",{className:"".concat(t,"__title__count")},i)));var c=null;a>0&&(c=(0,M.createElement)(M.Fragment,null,(0,M.createElement)(be,{className:"".concat(t,"__title__icon"),name:"check-mark-circle-filled",intent:"success"}),(0,M.createElement)(On,{content:"backgroundTasks.tasksDone",params:{count:a},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks were successfully completed"}),(0,M.createElement)("span",{className:"".concat(t,"__title__count")},a)));var u=null;r>0&&(u=(0,M.createElement)(M.Fragment,null,(0,M.createElement)(be,{className:"".concat(t,"__title__icon"),name:"check-mark-circle-filled",intent:"warning"}),(0,M.createElement)(On,{content:"backgroundTasks.tasksWarning",params:{count:r},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks was performed with errors"}),(0,M.createElement)("span",{className:"".concat(t,"__title__count")},r)));var d=null;o>0&&(d=(0,M.createElement)(M.Fragment,null,(0,M.createElement)(be,{className:"".concat(t,"__title__icon"),name:"cross-mark-circle-filled",intent:"danger"}),(0,M.createElement)(On,{content:"backgroundTasks.tasksFailed",params:{count:o},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks failed"}),(0,M.createElement)("span",{className:"".concat(t,"__title__count")},o)));var p=n.hasSeveralStatusesOrTasks(i,a,r,o);return(0,M.createElement)("div",{className:E()("".concat(t,"__title"),ID({},"".concat(t,"__title--several-statuses"),p))},l,c,u,d,n.renderHideCompletedAction(p))})),ID(n,"renderTaskDetails",(function(){var e=n.state.showDetailsTaskId;if(!e)return null;var t=n.props.tasks,s=XD(e,t);return s?(0,M.createElement)(nP,{task:s,onClose:n.handleCloseDetails}):null})),n.state={isCollapsed:!1,showDetailsTaskId:null},n}return LD(t,e),OD(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.tasks,n=e.pollBackgroundTasks;if(0!==t.length){var s=t.filter((function(e){return!qD(e)}));0!==s.length&&n(s)}}},{key:"render",value:function(){var e=this;if(!this.isNeedToRender())return null;var t=this.props,n=t.baseClassName,s=t.tasks,i=this.state.isCollapsed;return(0,M.createElement)("div",{className:E()("".concat(n,"__container"),ID({},"".concat(n,"__container--collapsed"),i))},(0,M.createElement)("div",{className:"".concat(n,"__wrapper")},(0,M.createElement)("div",{className:"".concat(n,"__header"),onClick:this.handleToggleCollaps},(0,M.createElement)("div",{className:"".concat(n,"__control")},i?(0,M.createElement)(be,{name:"chevron-up",intent:"info"}):(0,M.createElement)(be,{name:"chevron-down",intent:"info"})),this.renderTitle()),(0,M.createElement)("div",{className:"".concat(n,"__body")},(0,M.createElement)("ul",{className:"".concat(n,"__list")},s.sort((function(e,t){return e.id>t.id?-1:1})).map((function(t){return(0,M.createElement)("li",{key:t.id,className:"".concat(n,"__item")},(0,M.createElement)(tP,{task:t,onClose:e.handleCloseItem,onShowDetails:e.handleOpenDetails}))}))))),this.renderTaskDetails())}}])}(M.Component);sP.propTypes={tasks:We().arrayOf(We().shape({id:We().number,code:We().string,title:We().string,status:We().oneOf(Object.keys(FD).map((function(e){return FD[e]}))),progress:We().number,errors:We().arrayOf(We().string),steps:We().oneOf([We().arrayOf(We().shape({title:We().string,icon:We().string,progress:We().number,status:We().oneOf(Object.keys(YD).map((function(e){return YD[e]}))),hint:We().string})),We().objectOf(We().shape({title:We().string,icon:We().string,progress:We().number,status:We().oneOf(Object.keys(YD).map((function(e){return YD[e]}))),hint:We().string}))]),publicParams:We().oneOfType([We().object,We().array])})),removeTaskApi:We().func.isRequired,removeTasksApi:We().func.isRequired,removeBackgroundTask:We().func.isRequired,removeCompletedBackgroundTasks:We().func.isRequired,pollBackgroundTasks:We().func.isRequired,baseClassName:We().string},sP.defaultProps={tasks:[],baseClassName:"".concat(zD,"background-tasks")};var iP=(mc((function(e){return{tasks:e.backgroundTasks.tasks}}),{removeBackgroundTask:function(e,t,n){return function(s){return s({type:$D,taskId:t}),e({id:t,code:n})}},removeCompletedBackgroundTasks:function(e){return function(t,n){var s=n().backgroundTasks.tasks,i=[];return s.forEach((function(e){qD(e)&&(i.push(e),t({type:$D,taskId:e.id}))})),e(i)}},pollBackgroundTasks:eP})(sP),OD((function e(t,n,s,i){var a=this;if(DD(this,e),ID(this,"startPolling",(function(e){setTimeout((function(){return a.addTask(e)})),qD(e)||(a.polling.some((function(t){return t===e.id}))||(a.polling=a.polling.concat(e.id)),a.isPollingActive||(a.isPollingActive=!0,a.schedulePolling()))})),ID(this,"schedulePolling",(function(){a.isPollingActive&&(a.timerId=setTimeout((function(){a.timerId=null,a.poll()}),2e3))})),ID(this,"stopPolling",(function(){a.isPollingActive=!1,clearTimeout(a.timerId)})),ID(this,"poll",(function(){var e=a.getTasks().filter((function(e){return a.polling.some((function(t){return e.id===t}))}));0!==e.length?a.getTasksData(e).then((function(e){var t=e.data;t.status!==WD?(t.data.tasks.forEach((function(e){a.updateTask(e),qD(e)&&(a.polling=a.polling.filter((function(t){return t!==e.id})))})),a.schedulePolling()):a.stopPolling()})):a.stopPolling()})),e.instance)return e.instance;this.getTasks=t,this.addTask=n,this.updateTask=s,this.getTasksData=i,this.polling=[],this.isPollingActive=!1,this.timerId=null,e.instance=this})));ID(iP,"instance",void 0);var aP,rP=Object.prototype.toString,oP=function(e){var t=rP.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===rP.call(e.callee)),n};if(!Object.keys){var lP=Object.prototype.hasOwnProperty,cP=Object.prototype.toString,uP=oP,dP=Object.prototype.propertyIsEnumerable,pP=!dP.call({toString:null},"toString"),hP=dP.call((function(){}),"prototype"),mP=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],fP=function(e){var t=e.constructor;return t&&t.prototype===e},gP={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},bP=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!gP["$"+e]&&lP.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{fP(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();aP=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===cP.call(e),s=uP(e),i=t&&"[object String]"===cP.call(e),a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var r=hP&&n;if(i&&e.length>0&&!lP.call(e,0))for(var o=0;o<e.length;++o)a.push(String(o));if(s&&e.length>0)for(var l=0;l<e.length;++l)a.push(String(l));else for(var c in e)r&&"prototype"===c||!lP.call(e,c)||a.push(String(c));if(pP)for(var u=function(e){if("undefined"==typeof window||!bP)return fP(e);try{return fP(e)}catch(e){return!1}}(e),d=0;d<mP.length;++d)u&&"constructor"===mP[d]||!lP.call(e,mP[d])||a.push(mP[d]);return a}}var vP=aP,yP=Array.prototype.slice,xP=Object.keys,_P=xP?function(e){return xP(e)}:vP,SP=Object.keys;_P.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return oP(e)?SP(yP.call(e)):SP(e)})}else Object.keys=_P;return Object.keys||_P};var wP,kP=_P,jP=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var s=Object.getOwnPropertySymbols(e);if(1!==s.length||s[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},TP=function(){return jP()&&!!Symbol.toStringTag},CP=Error,DP=EvalError,PP=RangeError,OP=ReferenceError,IP=SyntaxError,MP=TypeError,LP=URIError,AP="undefined"!=typeof Symbol&&Symbol,EP={__proto__:null,foo:{}},RP=Object,UP=Object.prototype.toString,NP=Math.max,FP=function(e,t){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},YP=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==UP.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,s=function(e){for(var t=[],n=1,s=0;n<e.length;n+=1,s+=1)t[s]=e[n];return t}(arguments),i=NP(0,t.length-s.length),a=[],r=0;r<i;r++)a[r]="$"+r;if(n=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(a)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var i=t.apply(this,FP(s,arguments));return Object(i)===i?i:this}return t.apply(e,FP(s,arguments))})),t.prototype){var o=function(){};o.prototype=t.prototype,n.prototype=new o,o.prototype=null}return n},HP=Function.prototype.call,BP=Object.prototype.hasOwnProperty,VP=YP.call(HP,BP),$P=Function,WP=function(e){try{return $P('"use strict"; return ('+e+").constructor;")()}catch(e){}},zP=Object.getOwnPropertyDescriptor;if(zP)try{zP({},"")}catch(H){zP=null}var qP=function(){throw new MP},GP=zP?function(){try{return qP}catch(e){try{return zP(arguments,"callee").get}catch(e){return qP}}}():qP,KP="function"==typeof AP&&"function"==typeof Symbol&&"symbol"==typeof AP("foo")&&"symbol"==typeof Symbol("bar")&&jP(),XP={__proto__:EP}.foo===EP.foo&&!(EP instanceof RP),QP=Object.getPrototypeOf||(XP?function(e){return e.__proto__}:null),JP={},ZP="undefined"!=typeof Uint8Array&&QP?QP(Uint8Array):wP,eO={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?wP:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?wP:ArrayBuffer,"%ArrayIteratorPrototype%":KP&&QP?QP([][Symbol.iterator]()):wP,"%AsyncFromSyncIteratorPrototype%":wP,"%AsyncFunction%":JP,"%AsyncGenerator%":JP,"%AsyncGeneratorFunction%":JP,"%AsyncIteratorPrototype%":JP,"%Atomics%":"undefined"==typeof Atomics?wP:Atomics,"%BigInt%":"undefined"==typeof BigInt?wP:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?wP:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?wP:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?wP:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":CP,"%eval%":eval,"%EvalError%":DP,"%Float32Array%":"undefined"==typeof Float32Array?wP:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?wP:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?wP:FinalizationRegistry,"%Function%":$P,"%GeneratorFunction%":JP,"%Int8Array%":"undefined"==typeof Int8Array?wP:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?wP:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?wP:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":KP&&QP?QP(QP([][Symbol.iterator]())):wP,"%JSON%":"object"==typeof JSON?JSON:wP,"%Map%":"undefined"==typeof Map?wP:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&KP&&QP?QP((new Map)[Symbol.iterator]()):wP,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?wP:Promise,"%Proxy%":"undefined"==typeof Proxy?wP:Proxy,"%RangeError%":PP,"%ReferenceError%":OP,"%Reflect%":"undefined"==typeof Reflect?wP:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?wP:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&KP&&QP?QP((new Set)[Symbol.iterator]()):wP,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?wP:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":KP&&QP?QP(""[Symbol.iterator]()):wP,"%Symbol%":KP?Symbol:wP,"%SyntaxError%":IP,"%ThrowTypeError%":GP,"%TypedArray%":ZP,"%TypeError%":MP,"%Uint8Array%":"undefined"==typeof Uint8Array?wP:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?wP:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?wP:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?wP:Uint32Array,"%URIError%":LP,"%WeakMap%":"undefined"==typeof WeakMap?wP:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?wP:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?wP:WeakSet};if(QP)try{null.error}catch(H){var tO=QP(QP(H));eO["%Error.prototype%"]=tO}var nO=function e(t){var n;if("%AsyncFunction%"===t)n=WP("async function () {}");else if("%GeneratorFunction%"===t)n=WP("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=WP("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&QP&&(n=QP(i.prototype))}return eO[t]=n,n},sO={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},iO=YP.call(Function.call,Array.prototype.concat),aO=YP.call(Function.apply,Array.prototype.splice),rO=YP.call(Function.call,String.prototype.replace),oO=YP.call(Function.call,String.prototype.slice),lO=YP.call(Function.call,RegExp.prototype.exec),cO=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,uO=/\\(\\)?/g,dO=function(e,t){var n,s=e;if(VP(sO,s)&&(s="%"+(n=sO[s])[0]+"%"),VP(eO,s)){var i=eO[s];if(i===JP&&(i=nO(s)),void 0===i&&!t)throw new MP("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:s,value:i}}throw new IP("intrinsic "+e+" does not exist!")},pO=function(e,t){if("string"!=typeof e||0===e.length)throw new MP("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new MP('"allowMissing" argument must be a boolean');if(null===lO(/^%?[^%]*%?$/,e))throw new IP("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=oO(e,0,1),n=oO(e,-1);if("%"===t&&"%"!==n)throw new IP("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new IP("invalid intrinsic syntax, expected opening `%`");var s=[];return rO(e,cO,(function(e,t,n,i){s[s.length]=n?rO(i,uO,"$1"):t||e})),s}(e),s=n.length>0?n[0]:"",i=dO("%"+s+"%",t),a=i.name,r=i.value,o=!1,l=i.alias;l&&(s=l[0],aO(n,iO([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var d=n[c],p=oO(d,0,1),h=oO(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new IP("property names with quotes must have matching quotes");if("constructor"!==d&&u||(o=!0),VP(eO,a="%"+(s+="."+d)+"%"))r=eO[a];else if(null!=r){if(!(d in r)){if(!t)throw new MP("base intrinsic for "+e+" exists, but the property is not available.");return}if(zP&&c+1>=n.length){var m=zP(r,d);r=(u=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:r[d]}else u=VP(r,d),r=r[d];u&&!o&&(eO[a]=r)}}return r},hO=pO("%Object.defineProperty%",!0)||!1;if(hO)try{hO({},"a",{value:1})}catch(H){hO=!1}var mO=hO,fO=pO("%Object.getOwnPropertyDescriptor%",!0);if(fO)try{fO([],"length")}catch(H){fO=null}var gO=fO,bO=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new MP("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new MP("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new MP("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new MP("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new MP("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new MP("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,r=arguments.length>6&&arguments[6],o=!!gO&&gO(e,t);if(mO)mO(e,t,{configurable:null===a&&o?o.configurable:!a,enumerable:null===s&&o?o.enumerable:!s,value:n,writable:null===i&&o?o.writable:!i});else{if(!r&&(s||i||a))throw new IP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}},vO=function(){return!!mO};vO.hasArrayLengthDefineBug=function(){if(!mO)return null;try{return 1!==mO([],"length",{value:1}).length}catch(e){return!0}};var yO,xO=vO,_O=xO(),SO=pO("%Math.floor%"),wO=(function(e){var t=pO("%Function.prototype.apply%"),n=pO("%Function.prototype.call%"),s=pO("%Reflect.apply%",!0)||YP.call(n,t),i=pO("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new MP("a function is required");return function(e,t){if("function"!=typeof e)throw new MP("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||SO(t)!==t)throw new MP("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],s=!0,i=!0;if("length"in e&&gO){var a=gO(e,"length");a&&!a.configurable&&(s=!1),a&&!a.writable&&(i=!1)}return(s||i||!n)&&(_O?bO(e,"length",t,!0,!0):bO(e,"length",t)),e}(s(YP,n,arguments),1+i(0,e.length-(arguments.length-1)),!0)};var a=function(){return s(YP,t,arguments)};mO?mO(e.exports,"apply",{value:a}):e.exports.apply=a}(yO={exports:{}}),yO.exports);wO.apply;var kO=wO(pO("String.prototype.indexOf")),jO=function(e,t){var n=pO(e,!!t);return"function"==typeof n&&kO(e,".prototype.")>-1?wO(n):n},TO=TP(),CO=jO("Object.prototype.toString"),DO=function(e){return!(TO&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===CO(e)},PO=function(e){return!!DO(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==CO(e)&&"[object Function]"===CO(e.callee)},OO=function(){return DO(arguments)}();DO.isLegacyArguments=PO;var IO=OO?DO:PO,MO="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),LO=Object.prototype.toString,AO=Array.prototype.concat,EO=xO(),RO=function(e,t,n,s){if(t in e)if(!0===s){if(e[t]===n)return}else if(!function(e){return"function"==typeof e&&"[object Function]"===LO.call(e)}(s)||!s())return;EO?bO(e,t,n,!0):bO(e,t,n)},UO=function(e,t){var n=arguments.length>2?arguments[2]:{},s=kP(t);MO&&(s=AO.call(s,Object.getOwnPropertySymbols(t)));for(var i=0;i<s.length;i+=1)RO(e,s[i],t[s[i]],n[s[i]])};UO.supportsDescriptors=!!EO;var NO=UO,FO=function(e){return e!=e},YO=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!FO(e)||!FO(t))},HO=function(){return"function"==typeof Object.is?Object.is:YO},BO=wO(HO(),Object);NO(BO,{getPolyfill:HO,implementation:YO,shim:function(){var e=HO();return NO(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var VO,$O,WO,zO,qO=BO,GO=TP();if(GO){VO=jO("Object.prototype.hasOwnProperty"),$O=jO("RegExp.prototype.exec"),WO={};var KO=function(){throw WO};zO={toString:KO,valueOf:KO},"symbol"==typeof Symbol.toPrimitive&&(zO[Symbol.toPrimitive]=KO)}var XO=jO("Object.prototype.toString"),QO=Object.getOwnPropertyDescriptor,JO=GO?function(e){if(!e||"object"!=typeof e)return!1;var t=QO(e,"lastIndex");if(!t||!VO(t,"value"))return!1;try{$O(e,zO)}catch(e){return e===WO}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===XO(e)},ZO=function(){return"string"==typeof function(){}.name},eI=Object.getOwnPropertyDescriptor;if(eI)try{eI([],"length")}catch(H){eI=null}ZO.functionsHaveConfigurableNames=function(){if(!ZO()||!eI)return!1;var e=eI((function(){}),"name");return!!e&&!!e.configurable};var tI=Function.prototype.bind;ZO.boundFunctionsHaveNames=function(){return ZO()&&"function"==typeof tI&&""!==function(){}.bind().name};var nI=ZO,sI=xO(),iI=nI.functionsHaveConfigurableNames(),aI=Object,rI=function(e,t){if("function"!=typeof e)throw new MP("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!iI||(sI?bO(e,"name",t,!0,!0):bO(e,"name",t)),e}((function(){if(null==this||this!==aI(this))throw new MP("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0),oI=NO.supportsDescriptors,lI=Object.getOwnPropertyDescriptor,cI=function(){if(oI&&"gim"===/a/gim.flags){var e=lI(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),"dy"===t)return e.get}}return rI},uI=NO.supportsDescriptors,dI=Object.getOwnPropertyDescriptor,pI=Object.defineProperty,hI=TypeError,mI=Object.getPrototypeOf,fI=/a/,gI=wO(cI());NO(gI,{getPolyfill:cI,implementation:rI,shim:function(){if(!uI||!mI)throw new hI("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=cI(),t=mI(fI),n=dI(t,"flags");return n&&n.get===e||pI(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var bI=gI,vI=Date.prototype.getDay,yI=Object.prototype.toString,xI=TP(),_I=function(e){return"object"==typeof e&&null!==e&&(xI?function(e){try{return vI.call(e),!0}catch(e){return!1}}(e):"[object Date]"===yI.call(e))},SI=Date.prototype.getTime;function wI(e){return null==e}function kI(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}var jI=function e(t,n,s){var i=s||{};return!!(i.strict?qO(t,n):t===n)||(!t||!n||"object"!=typeof t&&"object"!=typeof n?i.strict?qO(t,n):t==n:function(t,n,s){var i,a;if(typeof t!=typeof n)return!1;if(wI(t)||wI(n))return!1;if(t.prototype!==n.prototype)return!1;if(IO(t)!==IO(n))return!1;var r=JO(t),o=JO(n);if(r!==o)return!1;if(r||o)return t.source===n.source&&bI(t)===bI(n);if(_I(t)&&_I(n))return SI.call(t)===SI.call(n);var l=kI(t),c=kI(n);if(l!==c)return!1;if(l||c){if(t.length!==n.length)return!1;for(i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}if(typeof t!=typeof n)return!1;try{var u=kP(t),d=kP(n)}catch(e){return!1}if(u.length!==d.length)return!1;for(u.sort(),d.sort(),i=u.length-1;i>=0;i--)if(u[i]!=d[i])return!1;for(i=u.length-1;i>=0;i--)if(!e(t[a=u[i]],n[a],s))return!1;return!0}(t,n,i))},TI=function(e){var t,n={tasks:[]};return void 0!==e.tasks&&(n.tasks=function(e){if(Array.isArray(e))return TD(e)}(t=e.tasks)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return TD(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?TD(e,t):void 0}}(t)||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(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case HD:return XD(t.task.id,e.tasks)?e:RD(RD({},e),{},{tasks:e.tasks.concat(t.task)});case BD:var s=XD(t.task.id,e.tasks);return jI(s,t.task,!0)?e:RD(RD({},e),{},{tasks:e.tasks.map((function(e){return e.id!==t.task.id?e:t.task}))});case $D:return XD(t.taskId,e.tasks)?RD(RD({},e),{},{tasks:e.tasks.filter((function(e){return e.id!==t.taskId}))}):e;default:return e}}};const CI="all",DI="critical",PI="recommended";class OI extends M.Component{constructor(e){super(e),this.getInstallationsWithCriticalUnresolvedMeasuresCount=e=>{const t=new xD(this.props.securityMeasures);return e.filter((e=>t.hasUnresolvedCriticalSecurityMeasures(e))).length},this.getInstallationsWithRecommendedUnresolvedMeasuresCount=e=>{const t=new xD(this.props.securityMeasures);return e.filter((e=>t.hasUnresolvedRecommendedSecurityMeasures(e))).length},this.loadSecurityMeasuresPerInstallations=()=>{const{getSecurityMeasuresPerInstallations:e}=this.props,{selection:t}=this.state;return e(t).catch((()=>{this.setState({filteredSecurityMeasuresInstallationStatuses:[],unableToLoad:!0})})).finally((()=>{this.setState({isLoading:!1})}))},this.reloadSecurityMeasuresPerInstallations=(e=[])=>{const{reloadSecurityMeasuresPerInstallations:t}=this.props;return t(e)},this.filterSecurityMeasures=e=>{const{search:t,filter:n}=this.state,s=t.toLowerCase(),i=e.filter((e=>!s||-1!==e.displayTitle.toLowerCase().indexOf(s)));if(n===CI)return i;const{securityMeasures:a}=this.props,r=new xD(a);return i.filter((e=>{switch(n){case DI:return r.hasUnresolvedCriticalSecurityMeasures(e);case PI:return r.hasUnresolvedRecommendedSecurityMeasures(e);default:return!1}}))},this.handleRunningTasks=()=>{const e=this.getSecuringInstancesTasks().concat(this.getRevertingInstancesTasks()).filter(((e,t,n)=>n.indexOf(e)===t)),t=this.getCheckSecurityInstancesTasks();let n=!1;if(t.length>0){const e=this.getInstancesWithCheckSecurityTasks();this.setIsCheckingSecurity(!0),this.setState({checkSecurityInstancesIds:e.map((e=>e.id))});const s=t.filter((e=>e&&+e>0));this.props.fetchBackgroundTasks(ig.getTasksData,s.map((e=>({id:e,code:pD})))).then((e=>{0!==e.length?(n=!0,this.setState({checkSecurityBackgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnReceiveCheckSecurityBackgroundTask(e)))):this.setIsCheckingSecurity(!1)}))}if(e.length>0){const t=this.getInstancesWithSecuringOrRevertingTasks();this.disableList(),this.setIsSecuringInstances(!0),this.setIsRevertingInstances(!0),this.setState({securingInstancesIds:t.map((e=>e.id))});const s=e.filter((e=>e&&+e>0));this.props.fetchBackgroundTasks(ig.getTasksData,s.map((e=>({id:e,code:pD})))).then((e=>{if(0===e.length)return this.setIsSecuringInstances(!1),this.setIsRevertingInstances(!1),void this.enableList();n=!0,this.setState({backgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateBackgroundTasks(e)))}))}const s=this.getNeedToCheckForSecurityInstancesIds();!n&&s.length>0&&this.handleCheckSecurity()},this.disableList=()=>this.setState({isListDisabled:!0}),this.enableList=()=>this.setState({isListDisabled:!1}),this.setIsCheckingSecurity=e=>this.setState({isCheckingSecurity:e}),this.setIsSecuringInstances=e=>this.setState({isSecuring:e}),this.setIsRevertingInstances=e=>this.setState({isReverting:e}),this.getInstancesWithSecuringOrRevertingTasks=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>e.resolveSecurityTaskId||e.revertSecurityTaskId)),this.getInstancesWithCheckSecurityTasks=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>e.checkSecurityTaskId)),this.getSecuringInstancesTasks=()=>this.getInstancesWithSecuringOrRevertingTasks().filter((e=>e.resolveSecurityTaskId)).map((e=>e.resolveSecurityTaskId)),this.getRevertingInstancesTasks=()=>this.getInstancesWithSecuringOrRevertingTasks().filter((e=>e.revertSecurityTaskId)).map((e=>e.revertSecurityTaskId)),this.getCheckSecurityInstancesTasks=()=>this.getInstancesWithCheckSecurityTasks().map((e=>e.checkSecurityTaskId)),this.handleOnUpdateBackgroundTasks=e=>{const{backgroundTaskIds:t,securingInstancesIds:n}=this.state,s=this.getInstancesWithSecuringOrRevertingTasks();let i=!1,a=!1,r=[];const o=[];t.forEach((t=>{const n=XD(t,e);if(!n)return;qD(n)&&(n.errors.length>0&&(this.props.addErrorMessage(n.errors.join("\n")),this.setState({hasErrors:!0})),this.setState((e=>({backgroundTaskIds:e.backgroundTaskIds.filter((e=>e!==n.id))})))),this.getRevertingInstancesTasks().includes(+n.id)?a=!0:i=!0;const l=s.filter((e=>e.resolveSecurityTaskId&&+e.resolveSecurityTaskId==+n.id||e.revertSecurityTaskId&&+e.revertSecurityTaskId==+n.id));l.length>0&&l.forEach((e=>{qD(n)&&!o.includes(e.id)&&o.push(e.id),qD(n)||r.includes(e.id)||(r=r.concat(e.id))}))})),s.filter((e=>!r.includes(e.id))).forEach((e=>{e.resolveSecurityTaskId&&t.includes(e.resolveSecurityTaskId)||e.revertSecurityTaskId&&t.includes(e.revertSecurityTaskId)?r=r.concat(e.id):o.includes(e.id)||o.push(e.id)})),this.setIsSecuringInstances(i),this.setIsRevertingInstances(a),n!==r&&this.setState({securingInstancesIds:r}),o.length&&this.reloadSecurityMeasuresPerInstallations(o).then((()=>{this.setState((e=>({securingInstancesIds:up(e.securingInstancesIds,o)})),this.handleOnAllInstancesSecured)})).catch((()=>{}))},this.handleOnReceiveCheckSecurityBackgroundTask=e=>{const{checkSecurityBackgroundTaskIds:t}=this.state,n=this.getInstancesWithCheckSecurityTasks();let s=[];const i=[];t.forEach((t=>{const a=XD(t,e);if(!a)return;qD(a)&&(a.errors.length>0&&(this.props.addErrorMessage(a.errors.join("\n")),this.setState({hasErrors:!0})),this.setState((e=>({checkSecurityBackgroundTaskIds:e.checkSecurityBackgroundTaskIds.filter((e=>+e!=+a.id))}))));const r=n.filter((e=>e.checkSecurityTaskId&&+e.checkSecurityTaskId==+a.id));r.length>0&&r.forEach((e=>{qD(a)&&!i.includes(e.id)&&i.push(e.id),qD(a)||s.includes(e.id)||(s=s.concat(e.id))}))})),n.filter((e=>!s.includes(e.id))).forEach((e=>{e.checkSecurityTaskId&&t.includes(e.checkSecurityTaskId)&&(s=s.concat(e.id)),i.includes(e.id)||i.push(e.id)})),0===s.length?this.setIsCheckingSecurity(!1):this.setIsCheckingSecurity(!0),this.setState({checkSecurityInstancesIds:s}),i.length&&this.reloadSecurityMeasuresPerInstallations(i).then((()=>{this.setState((e=>({checkSecurityInstancesIds:up(e.checkSecurityInstancesIds,i)})),this.handleAllInstancesChecked)})).catch((()=>{}))},this.handleOnAllInstancesSecured=()=>{const{isReverting:e}=this.state;this.state.securingInstancesIds.length>0||(this.state.hasErrors||this.props.addSuccessMessage(e?"list-ui.instances.forms.instancesSecurity.revertSuccess":"list-ui.instances.forms.instancesSecurity.resolveSuccess",!0,"instancesSecurity"),this.setIsSecuringInstances(!1),this.setIsRevertingInstances(!1),this.clearSelection(),this.enableList(),this.setState({hasErrors:!1}))},this.handleAllInstancesChecked=()=>{this.state.checkSecurityInstancesIds.length>0||(this.setIsCheckingSecurity(!1),this.clearSelection(),this.setState({hasErrors:!1}))},this.getNeedToCheckForSecurityInstancesIds=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>"unknown"===e.securityStatus)).map((e=>e.id)),this.setSecurityCheckersSelection=e=>this.setState({securityCheckersSelection:e}),this.clearSelection=()=>{this.setState({selection:[]})},this.handleSearch=e=>this.setState({search:e},this.callbackAfterSearchAndFilter),this.handleFilter=e=>this.setState({filter:e},this.callbackAfterSearchAndFilter),this.callbackAfterSearchAndFilter=()=>this.setState({selection:[],filteredSecurityMeasuresInstallationStatuses:this.filterSecurityMeasures(this.props.securityMeasuresInstallationStatuses)}),this.handleSecure=()=>{const{selection:e,securityCheckersSelection:t}=this.state,{clearMessages:n,resolveSecurityCheckers:s}=this.props,i=e;return n(),this.disableList(),this.setIsSecuringInstances(!0),s(i,t).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.enableList(),this.setIsSecuringInstances(!1)}))},this.handleRevert=()=>{const{selection:e,securityCheckersSelection:t}=this.state,{clearMessages:n,revertSecurityCheckers:s}=this.props,i=e;return n(),this.disableList(),this.setIsRevertingInstances(!0),s(i,t).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.enableList(),this.setIsRevertingInstances(!1)}))},this.handleCheckSecurity=()=>{const{clearMessages:e,checkSecurity:t}=this.props,{filteredSecurityMeasuresInstallationStatuses:n,selection:s}=this.state;return e(),this.setIsCheckingSecurity(!0),t(s.length?s:n.map((e=>e.id))).then((e=>{this.setState((t=>({checkSecurityBackgroundTaskIds:t.checkSecurityBackgroundTaskIds.concat(e.id)})))})).catch((()=>{this.setIsCheckingSecurity(!1)}))},this.handleToggleResolveSecurityCheckersDialog=()=>this.setState((e=>({showResolveSecurityCheckersDialog:!e.showResolveSecurityCheckersDialog}))),this.handleToggleRevertSecurityCheckersDialog=()=>this.setState((e=>({showRevertSecurityCheckersDialog:!e.showRevertSecurityCheckersDialog})),(()=>{this.state.showRevertSecurityCheckersDialog&&this.setSecurityCheckersSelection([])})),this.handleOpenInstanceSecurityDrawer=e=>{this.props.clearMessages(),this.props.onOpenInstanceSecurityDrawer(e)},this.getListColumns=()=>{const{securityMeasures:e}=this.props,t=new xD(e);return[{key:"name",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.name"}),render:e=>this.props.isUnpaid||!e.resolveAndRevertAvailable?(0,P.jsx)(Hv,{uatAction:Jv,featureName:kp,description:(0,P.jsx)(qd,{content:"paidFeature.secureFeatureDescription"}),isInstanceFeatureDisabled:!e.resolveAndRevertAvailable,installationId:e.id,children:(0,P.jsx)("span",{children:e.displayTitle})}):(0,P.jsx)("span",{children:e.displayTitle})},{key:"critical",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.critical"}),render:e=>{const n=t.getUnresolvedCriticalSecurityMeasures(e).map((e=>e.id)),s=t.getSecurityMeasuresByIds(n);return(0,P.jsx)(bD,{checkers:s})}},{key:"recommended",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.recommended"}),render:e=>{const n=t.getUnresolvedRecommendedSecurityMeasures(e).map((e=>e.id)),s=t.getSecurityMeasuresByIds(n);return(0,P.jsx)(yD,{checkers:s})}},{key:"details",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.details"}),render:e=>(0,P.jsx)(ye,{icon:"chevron-right",onClick:()=>this.handleOpenInstanceSecurityDrawer(e.id)})}]},this.hasAnyInstallationWithDisabledFeature=()=>this.props.securityMeasuresInstallationStatuses.some((e=>!e.resolveAndRevertAvailable)),this.hasUnresolvedInstallationSecurityMeasure=e=>e.some((e=>e.available&&!e.status)),this.hasRevertableInstallationSecurityMeasure=e=>e.some((e=>{if(!e.available||!e.status)return!1;const{securityMeasures:t}=this.props,n=t.find((t=>t.id===e.id));return!!n&&n.rollbackAvailable})),this.hasAnySecurityMeasureToBeResolved=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state;return e.filter((e=>t.some((t=>t===e.id)))).some((e=>this.hasUnresolvedInstallationSecurityMeasure(e.securityMeasures)))},this.hasAnySecurityMeasureToBeReverted=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state;return e.filter((e=>t.some((t=>t===e.id)))).some((e=>this.hasRevertableInstallationSecurityMeasure(e.securityMeasures)))},this.getListData=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,isListDisabled:t}=this.state,{isUnpaid:n}=this.props;return e.map((e=>Object.assign(Object.assign({},e),{disabled:n||t||!e.resolveAndRevertAvailable})))},this.getAvailableSecurityMeasuresForResolving=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state,{securityMeasures:n}=this.props,s=e.filter((e=>t.some((t=>t===e.id))));return n.filter((e=>s.some((t=>t.securityMeasures.some((t=>t.available&&!t.status&&e.id===t.id))))))},this.getAvailableSecurityMeasuresForReverting=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state,{securityMeasures:n}=this.props,s=e.filter((e=>t.some((t=>t===e.id))));return n.filter((e=>e.rollbackAvailable&&s.some((t=>t.securityMeasures.some((t=>t.available&&t.status&&e.id===t.id))))))},this.state={securityCheckersSelection:[],showResolveSecurityCheckersDialog:!1,showRevertSecurityCheckersDialog:!1,backgroundTaskIds:[],checkSecurityBackgroundTaskIds:[],securingInstancesIds:[],checkSecurityInstancesIds:[],hasErrors:!1,selection:e.selectedInstallationsIds,search:"",filter:CI,isLoading:!0,isListDisabled:!1,isCheckingSecurity:!1,isSecuring:!1,isReverting:!1,filteredSecurityMeasuresInstallationStatuses:[],installationsWithCriticalUnresolvedMeasuresCount:0,installationsWithRecommendedUnresolvedMeasuresCount:0,unableToLoad:!1}}componentDidMount(){this.loadSecurityMeasuresPerInstallations().finally(this.handleRunningTasks)}componentWillReceiveProps(e){e.tasks!==this.props.tasks&&(this.handleOnUpdateBackgroundTasks(e.tasks),this.handleOnReceiveCheckSecurityBackgroundTask(e.tasks)),e.securityMeasuresInstallationStatuses!==this.props.securityMeasuresInstallationStatuses&&this.setState({filteredSecurityMeasuresInstallationStatuses:this.filterSecurityMeasures(e.securityMeasuresInstallationStatuses),installationsWithCriticalUnresolvedMeasuresCount:this.getInstallationsWithCriticalUnresolvedMeasuresCount(e.securityMeasuresInstallationStatuses),installationsWithRecommendedUnresolvedMeasuresCount:this.getInstallationsWithRecommendedUnresolvedMeasuresCount(e.securityMeasuresInstallationStatuses)})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,currentInstallationId:s}=this.props;return e||this.hasAnyInstallationWithDisabledFeature()?(0,P.jsx)(Fv,{uatAction:Jv,purchaseLicenseUrl:t,premiumFeaturesUrl:n,installationId:s,children:(0,P.jsx)(qd,{content:"paidFeature.secureFeatureDescription"})}):null}renderToolbar(){const{isUnpaid:e,securityMeasuresInstallationStatuses:t}=this.props,{isCheckingSecurity:n,isSecuring:s,isReverting:i,selection:a,filter:r,filteredSecurityMeasuresInstallationStatuses:o,installationsWithCriticalUnresolvedMeasuresCount:l,installationsWithRecommendedUnresolvedMeasuresCount:c}=this.state,u=e||n||i||0===o.length||0===a.length||!this.hasAnySecurityMeasureToBeResolved(),d=s||i||n||0===o.length,p=e||s||n||0===o.length||0===a.length||!this.hasAnySecurityMeasureToBeReverted();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Mi,{className:"wpt-mgt-10",children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{intent:"primary",state:s?"loading":void 0,disabled:u,onClick:this.handleToggleResolveSecurityCheckersDialog,tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.hintButtonSecure"}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonSecure"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"refresh",state:n?"loading":void 0,disabled:d,onClick:this.handleCheckSecurity,tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.hintButtonCheckSecurity"}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonCheckSecurity"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"reload",state:i?"loading":void 0,disabled:p,onClick:this.handleToggleRevertSecurityCheckersDialog,tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.hintButtonRevert"}),"data-test-id":"mass-security-revert-submit",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonRevert"})})}),(0,P.jsx)(ui,{}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(_l,{onTyping:this.handleSearch})})]}),(0,P.jsxs)(Mi,{className:"wpt-mgt-10 wpt-mgb-10",children:[(0,P.jsx)(ui,{},"toolbarExpander"),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Zs,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.filterByLabel"}),labelPlacement:"left",buttons:[{value:CI,title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonShowAll",params:{count:t.length}}),disabled:0===t.length},{value:DI,title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonShowCritical",params:{count:l}}),disabled:0===l},{value:PI,title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonShowRecommended",params:{count:c}}),disabled:0===c}],selected:r,onChange:this.handleFilter})},"toolbarShowInstances")]})]})}renderLastSecurityCheckDatePanel(){const{isCheckingSecurity:e}=this.state,{securityMeasuresInstallationStatuses:t}=this.props;if(e)return null;const n=t.reduce(((e,t)=>(t.lastSecurityCheckTimestamp&&e.push(t.lastSecurityCheckTimestamp),e)),[]);if(0===n.length)return(0,P.jsx)(dl,{children:(0,P.jsx)(ei,{className:"wpt-instances-security_last-security-check-date",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.lastSecurityCheckDateIsUnknown"})})});const s=new Date(1e3*Math.min(...n));return(0,P.jsx)(dl,{children:(0,P.jsx)(ei,{className:"wpt-instances-security_last-security-check-date",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.lastSecurityCheckDate",params:{lastSecurityCheckDate:s.toLocaleString()}})})})}renderInstancesList(){const{selection:e,isListDisabled:t,isCheckingSecurity:n}=this.state,s=this.getListData();return n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.checkingForSecurity"})]}):0===s.length?(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.noInstancesYet"}):(0,P.jsx)(Qr,{className:t?"hided-mass-checkbox wpt-mgt-15":"wpt-mgt-15",columns:this.getListColumns(),data:s,selection:e,rowKey:"id",onSelectionChange:e=>this.setState({selection:e})})}renderResolveSecurityCheckersDialog(){const{showResolveSecurityCheckersDialog:e}=this.state;return e?(0,P.jsx)(Ea,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.resolveSecurityCheckers.dialogTitle"}),size:"sm",isOpen:e,onClose:this.handleToggleResolveSecurityCheckersDialog,buttons:(0,P.jsx)(Be,{onClick:()=>{this.handleSecure(),this.handleToggleResolveSecurityCheckersDialog()},disabled:0===this.state.securityCheckersSelection.length,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonSecure"})}),children:(0,P.jsx)(wD,{securityMeasuresForResolving:this.getAvailableSecurityMeasuresForResolving(),setSecurityCheckersSelection:this.setSecurityCheckersSelection})}):null}renderRevertSecurityCheckersDialog(){const{showRevertSecurityCheckersDialog:e}=this.state;return e?(0,P.jsx)(Ea,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.revertSecurityCheckers.dialogTitle"}),size:"sm",isOpen:e,onClose:this.handleToggleRevertSecurityCheckersDialog,buttons:(0,P.jsx)(Be,{onClick:()=>{this.handleRevert(),this.handleToggleRevertSecurityCheckersDialog()},disabled:0===this.state.securityCheckersSelection.length,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.buttonRevert"})}),children:(0,P.jsx)(jD,{securityMeasuresForReverting:this.getAvailableSecurityMeasuresForReverting(),setSecurityCheckersSelection:this.setSecurityCheckersSelection})}):null}render(){return this.state.isLoading?(0,P.jsx)(Rn,{}):this.state.unableToLoad?(0,P.jsx)(xe,{intent:"danger",children:(0,P.jsx)(qd,{content:"api.securityMeasures.failedToLoadPerInstance"})}):(0,P.jsxs)(P.Fragment,{children:[this.renderPaidFeatureDesc(),(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.headDescription"}),this.renderToolbar(),this.renderLastSecurityCheckDatePanel(),this.renderInstancesList(),this.renderResolveSecurityCheckersDialog(),this.renderRevertSecurityCheckersDialog()]})}}const II=mc((e=>({securityMeasures:e.securityMeasures.securityMeasures,securityMeasuresInstallationStatuses:e.securityMeasures.securityMeasuresInstallationStatuses,tasks:e.backgroundTasks.tasks,isUnpaid:!!e.app.unpaidFeatures[kp],upgradeUrl:e.app.urls.featuresBuyLinks[kp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),(e=>({checkSecurity:kb(Qx,e),resolveSecurityCheckers:kb(Jx,e),revertSecurityCheckers:kb(Zx,e),fetchBackgroundTasks:kb(ZD,e),getSecurityMeasuresPerInstallations:kb(Kx,e),reloadSecurityMeasuresPerInstallations:kb(Xx,e)})))(OI),MI="sites",LI="vulnerabilities";class AI extends M.Component{constructor(e){super(e),this.loadSecurityMeasures=()=>{this.props.securityMeasures&&this.props.securityMeasures.length>0?this.setState({isLoading:!1}):this.props.loadSecurityMeasures().catch((()=>{this.setState({unableToLoad:!0})})).finally((()=>{this.setState({isLoading:!1})}))},this.handleRefresh=()=>{this.setState({isLoading:!0,unableToLoad:!1},this.loadSecurityMeasures)},this.state={isLoading:!0,unableToLoad:!1}}componentDidMount(){this.loadSecurityMeasures()}render(){return this.state.isLoading?(0,P.jsx)(Rn,{}):this.state.unableToLoad?(0,P.jsxs)("div",{children:[(0,P.jsx)("h3",{children:(0,P.jsx)(qd,{content:"api.securityMeasures.failedToLoad"})}),(0,P.jsx)("p",{children:(0,P.jsx)(Be,{intent:"primary",onClick:this.handleRefresh,children:(0,P.jsx)(qd,{content:"general-ui.react-js-error.refresh"})})})]}):this.props.children}}const EI=mc((e=>({securityMeasures:e.securityMeasures.securityMeasures})),(e=>({loadSecurityMeasures:kb(Wx,e)})))(AI),RI="wordpress",UI="plugin",NI="theme",FI=e=>{const{deactivateButtonContent:t,target:n,onDeactivate:s,isOpen:i,onClose:a,children:r}=e;return(0,P.jsxs)(Fs,{target:n,visible:i,onClose:a,placement:"top",children:[(0,P.jsx)(mi,{children:r}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{intent:"danger",onClick:()=>{s(),null==a||a()},"data-test-id":"instances-security-vulnerabilities-deactivate-confirmation-deactivate-button",children:t}),(0,P.jsx)(Be,{onClick:a,ghost:!0,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.deactivateConfirmation.cancelButton"})})]})]})},YI=e=>{const{target:t,onUpdate:n,isOpen:s,onClose:i,children:a,updateButtonContent:r}=e;return(0,P.jsxs)(Fs,{target:t,visible:s,onClose:i,placement:"top",children:[(0,P.jsx)(mi,{children:a}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{onClick:()=>{n(),null==i||i()},"data-test-id":"instances-security-vulnerabilities-update-confirmation-update-button",children:r}),(0,P.jsx)(Be,{onClick:i,ghost:!0,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.cancelButton"})})]})]})},HI=({progressDescription:e,progress:t,button:n,baseClassName:s=`${Rp}progress-with-action`})=>(0,P.jsxs)("div",{className:s,children:[(0,P.jsxs)("div",{className:`${s}__progress`,children:[(0,P.jsxs)("div",{className:`${s}__progress__description`,children:[(0,P.jsx)(be,{name:"web",size:"16",className:`${s}__progress-description-icon`}),(0,P.jsx)(Oe,{title:e,children:e})]}),(0,P.jsx)(Ha,{intent:"success",progress:t,className:`${s}__progress__bar`})]}),(0,P.jsx)("div",{className:`${s}__button`,children:n})]});const BI=e=>{var{baseClassName:t=`${Rp}button-with-adaptive-content`,children:n,tooltip:s=null}=e,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["baseClassName","children","tooltip"]);return(0,P.jsx)(Be,Object.assign({className:t,tooltip:null!=s?s:n},i,{children:n}))},VI=mc(((e,t)=>{const{vulnerabilities:n}=t,s=n.map((e=>e.id)),i=e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.filter((e=>s.includes(e.vulnerabilityId)));return{securityMeasures:e.securityMeasures.securityMeasures,vulnerabilityMitigationsUpdatingStatuses:i}}),(e=>({mitigateVulnerabilities:kb(f_,e)})))((({target:e,vulnerabilities:t,placement:n="top",popoverComment:s,baseClassName:i=`${Rp}vuln-mitigations-popover`,securityMeasures:a,mitigateVulnerabilities:r,vulnerabilityMitigationsUpdatingStatuses:o})=>{const l=zd(),[c,u]=(0,M.useState)(new Set),d=(0,M.useMemo)((()=>{const e=new Set;return o.forEach((t=>{t.mitigations.forEach((t=>{t.type===Dg&&e.add(t.id)}))})),e}),[o]),[p,h]=(0,M.useMemo)((()=>{let e=new Set;const n=new Map;return t.forEach((t=>{const s=t.mitigations.filter((e=>e.type===Dg));e=new Set([...e.values(),...t.installations.map((e=>e.id))]),s.forEach((e=>{var s,i;const a=null!==(s=n.get(e.id))&&void 0!==s?s:{vulnerabilities:new Map,installationsIdsAffected:new Set,installationsIdsApplied:new Set},r=null!==(i=a.vulnerabilities.get(t.id))&&void 0!==i?i:{vulnerabilityId:t.id,installationsIds:[],mitigations:[]};r.installationsIds=[...new Set([...r.installationsIds,...t.installations.map((e=>e.id))]).values()],a.vulnerabilities.set(t.id,r),a.installationsIdsAffected=new Set([...a.installationsIdsAffected.values(),...t.installations.map((e=>e.id))]),a.installationsIdsApplied=new Set([...a.installationsIdsApplied.values(),...t.installations.filter((t=>t.securityMeasuresApplied.includes(e.id))).map((e=>e.id))]),n.set(e.id,a)}))})),[e,n]}),[t]),m=e=>a.find((t=>t.id===e)),f=(e,t)=>{const n=h.get(e);if(!n)throw new Error(`Unable to find security measure by id ${e}`);const s=[];n.vulnerabilities.forEach((n=>{const i=structuredClone(n);i.mitigations.push({type:Dg,id:e,applied:t}),s.push(i)}));const i=new Set(c);i.add(e),u(i),r(s).catch((()=>{})).finally((()=>{const t=new Set(c);t.delete(e),u(t)}))},g=e=>c.has(e)||d.has(e),b=()=>c.size>0||d.size>0;return(0,P.jsxs)(Fs,{target:e,placement:n,className:E()(i),width:"xs",children:[s&&(0,P.jsx)(Pa,{children:s}),(()=>{const e=[];return h.forEach(((t,n)=>{const s=p.size>1?((e,t)=>{const n=m(e),s=100*t.installationsIdsApplied.size/t.installationsIdsAffected.size,a=!(null==n?void 0:n.rollbackAvailable)||0===s;return n&&(0,P.jsxs)(la,{className:`${i}__section-item`,children:[(0,P.jsxs)("div",{className:`${i}__measure-title`,children:[(0,P.jsx)(ei,{bold:!0,children:n.title}),(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),placement:"top-right",children:n.description}),n.rollbackAvailable&&(0,P.jsxs)(ei,{className:"wpt-mgl-5",children:["(",(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]}),(0,P.jsx)(HI,{progressDescription:g(e)?(0,P.jsx)(qd,{content:"list-ui.instances.forms.securityMeasuresPopover.progress.undefined"}):(0,P.jsx)(qd,{content:"list-ui.instances.forms.securityMeasuresPopover.progress.sitesCounter",params:{total:t.installationsIdsAffected.size,current:t.installationsIdsApplied.size}}),progress:g(e)?-1:s,button:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(BI,{onClick:()=>{f(e,!0)},disabled:100===s||b(),state:g(e)?"loading":void 0,intent:"primary",children:l("list-ui.instances.forms.securityMeasuresPopover.button.enableAll")})," ",(0,P.jsx)(BI,{onClick:()=>{f(e,!1)},disabled:a||b(),state:g(e)?"loading":void 0,children:l("list-ui.instances.forms.securityMeasuresPopover.button.disableAll")})]})})]},n.id)})(n,t):((e,t)=>{const n=m(e);return n&&(0,P.jsxs)(la,{className:`${i}__section-item`,title:((e,t)=>{const n=!e.rollbackAvailable,s=!!t&&n;return(0,P.jsx)(fl,{loading:g(e.id),checked:t,disabled:s||b(),onChange:t=>{f(e.id,t)}})})(n,[...t.installationsIdsAffected.values()].every((e=>t.installationsIdsApplied.has(e)))),children:[n.title,(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),placement:"top-right",children:n.description}),n.rollbackAvailable&&(0,P.jsxs)(ei,{className:"wpt-mgl-5",children:["(",(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]},n.id)})(n,t);s&&e.push(s)})),0===e.length?(0,P.jsx)("div",{className:"wpt-mgt-10",children:(0,P.jsx)(Rn,{})}):(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.securityTabTitle"}),children:e})})()]})}));class $I extends M.Component{constructor(){super(...arguments),this.getActionText=()=>{const{vulnerability:e,isLoading:t,updatingMitigations:n}=this.props;return n.length>0||t?(0,P.jsx)(fD,{text:(0,P.jsx)(qd,{content:"instanceVulnerabilities.mitigations.loading"})}):this.isMitigated(e)?(0,P.jsx)(qd,{content:"instanceVulnerabilities.mitigations.mitigated"}):(0,P.jsx)(qd,{content:"instanceVulnerabilities.mitigations.mitigate"})},this.getMitigateButtonIcon=()=>{const{vulnerability:e}=this.props;return this.isMitigated(e)?"power":"arrow-up-circle"}}isMitigated(e){return e.mitigations.some((e=>e.type===Dg&&this.isSecurityMeasureApplied(e.id)))}isSecurityMeasureApplied(e){const{vulnerability:t}=this.props,n=t.mitigations.find((t=>t.id===e));return void 0!==n&&n.applied}render(){const{children:e,popoverClassName:t,vulnerability:n}=this.props;return n.mitigations.some((e=>e.type===Dg))?(0,P.jsx)(VI,{target:(0,P.jsx)(ye,{ghost:!0,icon:this.getMitigateButtonIcon(),className:`${t}__action-text`,children:this.getActionText()}),popoverComment:(0,P.jsx)(qd,{content:"instanceVulnerabilities.mitigations.mitigationAvailableText"}),vulnerabilities:[n]}):e}}$I.defaultProps={popoverClassName:`${Rp}vuln-mitigations-popover`};const WI=mc(((e,t)=>{const{vulnerability:n}=t;return{updatingMitigations:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.filter((e=>e.vulnerabilityId===n.id)).map((e=>e.mitigations)).flat()}}))($I);var zI;!function(e){e.Comma="comma-separator",e.Space="space-separator"}(zI||(zI={}));const qI=({separator:e,children:t,baseClassName:n=`${Rp}separator`})=>(0,P.jsx)("span",{className:`${n}__${e}`,children:t}),GI=mc((e=>({publicUrl:e.app.urls.publicUrl})))((({publicUrl:e,baseClassName:t=`${Rp}patchstack`})=>(0,P.jsx)("img",{className:`${t}__logo-color`,src:`${e}images/patchstack.svg`,alt:"Patchstack"}))),KI=mc((e=>({publicUrl:e.app.urls.publicUrl})))((({publicUrl:e})=>(0,P.jsx)("img",{src:`${e}images/wordfence.svg`,alt:"Wordfence"}))),XI=()=>(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.poweredBy",params:{providerLogo:(0,P.jsx)(Cs,{target:"_blank",href:"https://patchstack.com",children:(0,P.jsx)(GI,{})})}}),QI=e=>{const{dataTestId:t,localeKey:n,popoverLocaleKey:s,intent:i="success",caps:a=!0,icon:r,baseClassName:o=`${Rp}mitigated-by-label`}=e;return s?(0,P.jsx)("div",{className:o,children:(0,P.jsx)(Fs,{target:(0,P.jsx)(we,{caps:a,view:"outline",intent:i,icon:r,"data-test-id":t,children:(0,P.jsx)(qd,{content:n})}),children:(0,P.jsx)(qd,{content:s,params:{textWithLogoPoweredByPatchstack:(0,P.jsx)("div",{children:(0,P.jsx)(XI,{})})}})})}):(0,P.jsx)("div",{className:o,children:(0,P.jsx)(we,{caps:a,view:"outline",intent:i,icon:r,"data-test-id":t,children:(0,P.jsx)(qd,{content:n})})})},JI=({text:e,shortTextLength:t})=>{const[n,s]=(0,M.useState)(e.length<=t),i=n?e:e.slice(0,t).trim();return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ei,{children:i}),!n&&(0,P.jsxs)(P.Fragment,{children:["... ",(0,P.jsx)(Cs,{onClick:()=>s(!0),children:(0,P.jsx)(qd,{content:"cuttableText.showMoreLink"})})]})]})},ZI=({onHandleApplyVirtualPatches:e,isDisabled:t=!1,renderManagingComponent:n,Consent:s})=>{const[i,a]=(0,M.useState)(!1),[r,o]=(0,M.useState)(void 0),[l,c]=(0,M.useState)(!1),u=n(t,l,(()=>{c(!0),o(void 0),e(!0).catch((e=>{var t,n,s;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&(o(null===(s=null===(n=e.response.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message),a(!0))})).then((()=>{a(!0)})).finally((()=>{c(!1)}))}));return t||l?u:(0,P.jsx)(Fs,{visible:i,onClose:()=>a(!1),target:u,children:r?(0,P.jsx)("div",{style:{textAlign:"justify"},children:r}):(0,P.jsx)(s,{isButtonDisabled:t,isButtonLoading:l,onSubmit:()=>{c(!0),a(!1),e().finally((()=>c(!1)))},dataTestId:_v})})},eM=mc(null,(e=>({instancesActions:kb({updateVulnerabilityFilteringSettings:Lk},e)})))((({installation:e,instancesActions:{updateVulnerabilityFilteringSettings:t}})=>{const[n,s]=(0,M.useState)(!1),i=(0,M.useCallback)((n=>{s(!0),t(e.id,{status:n}).catch((()=>{})).finally((()=>s(!1)))}),[e.id,t]);return(0,P.jsxs)(ei,{children:[(0,P.jsx)(qd,{content:"vulnerabilityFilteringSettings.featureEnabled"})," ",(0,P.jsx)(fl,{checked:e.features.vulnerabilityFiltering.status||!1,onChange:i,disabled:n,tooltip:(0,P.jsx)(qd,{content:"vulnerabilityFilteringSettings.featureEnabled.hint"})})]})})),tM=({onSubmit:e,dataTestId:t,isButtonDisabled:n=!1,isButtonLoading:s=!1,baseClassName:i=`${Rp}virtual-patches-consent`})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:`${i}__popover-content`,children:[(0,P.jsx)(qd,{component:mi,content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.consentForm.description"}),(0,P.jsx)("div",{className:`${i}__popover-content-item`,children:(0,P.jsx)(XI,{})})]}),(0,P.jsx)(Be,{id:ov,"data-test-id":t,disabled:n,state:s?"loading":void 0,onClick:e,icon:"shield",size:"md",intent:"primary",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.consentForm.button"})})]}),nM=({features:{virtualPatches:e}},t,n)=>{const s=null!==e.subscription&&[wg.Active,wg.Suspended].includes(e.subscription.status),i=!e.restrictions.includes("licenseAbsent"),a=!e.restrictions.includes(Sg),r=!n&&e.restrictions.includes(_g)&&t;return i&&a&&!r||s},sM=(e,t,n)=>e.includes("featureDisabled")||e.includes(_g)&&!t&&!n,iM=mc((e=>({showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller})),(e=>({displayErrorMessageFromMeta:kb(Bg,e)})))((({installation:e,baseClassName:t,hasActiveVirtualPatchesTasks:n,onHandleApplyVirtualPatches:s,onOpenUpsellDialog:i,displayErrorMessageFromMeta:a,showVirtualPatchesUpsellWhenRestrictedViaPlans:r,isAdmin:o})=>{const[l,c]=(0,M.useState)(!1),[u,d]=M.useState(!1),p=nM(e,r,o);return(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{ghost:!0,icon:p?"shield":"lock-closed",onClick:p?()=>c(!0):()=>i(Qv),className:`${t}__action-container`,progress:u||n,"data-test-id":"instances-security-vulnerabilities-virtual-patches-available-action",children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.virtualPatches.availableForPatches"})}),visible:l,onClose:()=>c(!1),children:(0,P.jsx)(tM,{onSubmit:()=>{c(!1),d(!0),s([e.id]).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&a(e)})).finally((()=>d(!1)))},isButtonDisabled:u||n,isButtonLoading:n,dataTestId:_v})})}));class aM extends M.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.setState((e=>({showPopover:!e.showPopover}))),this.getPopoverContent=()=>{const{isPermissionDenied:e,wordPressToolkitLiteEdition:t,purchaseDeluxeGuardianUrl:n,purchaseWordPressToolkitUrl:s,upgradePleskUrl:i,uatAction:a}=this.props;return e?(0,P.jsx)(qd,{content:"paidGuardianDeluxe.permissionDenied"}):t?(0,P.jsx)(qd,{content:"paidGuardianDeluxe.wordPressToolkitFullVersionAndDeluxeGuardianLicenseRequired",params:{purchaseDeluxeGuardianLicenseLink:(0,P.jsx)(Cs,{href:n,target:"_blank",onClick:()=>Rv(a),children:(0,P.jsx)(qd,{content:"paidGuardianDeluxe.purchaseDeluxeGuardianLicenseLink"})}),purchaseWordPressToolkitLink:(0,P.jsx)(Cs,{href:s,target:"_blank",onClick:()=>Rv(a),children:(0,P.jsx)(qd,{content:"paidGuardianDeluxe.purchaseWordPressToolkitLink"})}),upgradePleskLink:(0,P.jsx)(Cs,{href:i,target:"_blank",children:(0,P.jsx)(qd,{content:"paidGuardianDeluxe.upgradePleskLink"})})}}):(0,P.jsx)(qd,{content:"paidGuardianDeluxe.descriptionForPlesk"})},this.getPopoverActions=()=>{const{purchaseDeluxeGuardianUrl:e,premiumFeaturesUrl:t,uatAction:n,wordPressToolkitLiteEdition:s,upgradePleskUrl:i,installationId:a}=this.props,r=s?i:e;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Nv,{purchaseLicenseUrl:r,uatAction:n,onTogglePopover:this.handleTogglePopover,featureType:"virtualPatches",installationId:a,children:(0,P.jsx)(qd,{content:"paidGuardianDeluxe.purchaseButton"})}),t&&(0,P.jsx)(Be,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,P.jsx)(qd,{content:"paidGuardianDeluxe.discoverAllPremiumFeaturesButton"})})]})},this.getPopover=()=>{const{renderManagingComponent:e,baseClassName:t}=this.props,{showPopover:n}=this.state;return(0,P.jsx)(Fs,{visible:n,width:"xs",onClose:this.handleTogglePopover,target:e((0,P.jsx)(ye,{onClick:this.handleTogglePopover,icon:"lock-closed"}),this.handleTogglePopover),children:(0,P.jsxs)(tr,{className:`${t}__popover-content`,children:[(0,P.jsxs)(ir,{children:[(0,P.jsx)(be,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"premiumFeature.title"})})]}),(0,P.jsx)(sr,{children:this.getPopoverContent()}),(0,P.jsx)(nr,{children:this.getPopoverActions()})]})})},this.state={showPopover:!1}}render(){const{isPaid:e,renderManagingComponent:t,baseClassName:n,className:s}=this.props;return e?t():this.getPopover()}}aM.defaultProps={baseClassName:`${Rp}paid-guardian-deluxe`};const rM=mc((e=>({purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl,purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isPermissionDenied:!e.app.options.isAdmin||e.app.options.isReseller})))(aM),oM="exploited",lM="mitigated",cM="core",uM="plugin",dM="theme",pM="low-score",hM=({onTyping:e})=>{const t=zd()("instancesVulnerabilities.instancesVulnerabilitiesList.searchBarPlaceholder");return(0,P.jsx)(_l,{onTyping:e,inputProps:{placeholder:t}})},mM=({baseClassName:e,value:t,inactive:n})=>{const s=zd("instancesVulnerabilities.instancesVulnerabilitiesList.riskRankColumn");let i;return i=n?`${e}__label-inactive`:t===Cg?`${e}__label-danger`:t===Tg?`${e}__label-danger-light`:`${e}__label-warning`,(0,P.jsx)(we,{intent:"info",className:`${e}__label ${i}`,children:s(t)})};class fM extends M.Component{constructor(e){super(e),this.initListData=()=>{var e;const{installationsVulnerabilityStatuses:t,loadMitigationsStatuses:n,vulnerabilitiesList:{frankyVulnerabilities:s},securityMeasures:i,securityMeasuresInstallationStatuses:a}=this.props,r=null!==(e=null==t?void 0:t.map((e=>e.id)))&&void 0!==e?e:[];r.length>0&&null!==s&&(this.setState({isMitigationsDataLoading:!0}),n(r,s,i,a).catch((()=>{})).finally((()=>{this.setState({isMitigationsDataLoading:!1})}))),this.setState({listData:s},this.updateShowedListData)},this.initUpdatingState=()=>{this.setState({isUpdating:this.props.isUpdating})},this.initDeactivatingState=()=>{this.setState({isDeactivatingAsset:this.props.isDeactivatingAsset})},this.updateShowedListData=()=>{this.applyFilters(this.state.filters)},this.handleFilterClear=()=>{this.applyFilters([])},this.toggleFilter=e=>{const{filters:t}=this.state,n=t.includes(e)?t.filter((t=>t!==e)):[e,...t];this.setState({filters:n,showFilters:!0})},this.applyFilters=e=>{var t,n,s;const{listData:i,search:a}=this.state;let r=i;const o=a.toLowerCase();r=(null==r?void 0:r.filter((e=>!o||-1!==e.title.toLowerCase().indexOf(o))))||[],r=null==r?void 0:r.filter((t=>e.includes(oM)&&t.exploited||e.includes(lM)&&t.mitigations.length>0&&t.mitigations.some((e=>e.applied))||e.includes(cM)&&t.assetType===RI||e.includes(uM)&&t.assetType===UI||e.includes(dM)&&t.assetType===NI||0===e.length)),(null===(s=null===(n=null===(t=this.props.installation)||void 0===t?void 0:t.features)||void 0===n?void 0:n.vulnerabilityFiltering)||void 0===s?void 0:s.status)&&0!==e.length&&(r=null==r?void 0:r.filter((t=>e.includes(pM)||t.riskRank!==kg))),this.setState({showedListData:r.map((e=>Object.assign(Object.assign({},e),{labels:this.getVulnerabilityLabels(e)})))||null,showFilters:!1,filters:e})},this.getSelectedVulnerabilitiesForAssetsUpdate=()=>{const{listData:e,selection:t}=this.state;return(null==e?void 0:e.filter((e=>(!t.length||t.includes(e.id))&&e.assets.some((e=>e.hasUpdates)))))||[]},this.handleCheckVulnerability=()=>{var e;const{instancesActions:{checkInstallationsVulnerability:t},installationsVulnerabilityStatuses:n}=this.props,s=null!==(e=null==n?void 0:n.map((e=>e.id)))&&void 0!==e?e:[];this.setState({isCheckingVulnerability:!0,instancesIdsForVulnerabilityStatusesUpdate:s}),t(s).then((e=>{this.setState({checkInstallationsVulnerabilityBackgroundTaskId:e.id})})).catch((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData=e=>{const{onRefreshInstallationsVulnerabilityStatuses:t}=this.props,{checkInstallationsVulnerabilityBackgroundTaskId:n,instancesIdsForVulnerabilityStatusesUpdate:s}=this.state;if(!n)return;const i=XD(n,e);i&&qD(i)&&t(s).finally((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnCompleteCheckInstallationsVulnerability=()=>{this.setState({isCheckingVulnerability:!1,checkInstallationsVulnerabilityBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]})},this.handleUpdateAll=()=>{this.handleMitigate(this.getSelectedVulnerabilitiesForAssetsUpdate(),Og)},this.handleMitigate=(e,t)=>{if(this.state.isUpdating||this.state.isDeactivatingAsset)return;const{mitigateVulnerabilities:n}=this.props,s=[];e.forEach((e=>{const n=e.mitigations.filter((e=>e.type===t&&!e.applied)).map((e=>({applied:!0,type:e.type,id:e.id})));n.length>0&&s.push({vulnerabilityId:e.id,installationsIds:e.installations.map((e=>e.id)),mitigations:n})})),0!==s.length&&(this.setState({isUpdating:t===Og,isDeactivatingAsset:t===Ig}),n(s).catch((()=>this.setState({isUpdating:!1,isDeactivatingAsset:!1}))))},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleSearch=e=>this.setState({search:e},this.updateShowedListData),this.handleOpenUpdateConfirmation=e=>{this.setState({showUpdateConfirmation:!0,updateConfirmationRowId:e})},this.handleCloseUpdateConfirmation=()=>{this.setState({showUpdateConfirmation:!1,updateConfirmationRowId:null})},this.handleOpenDeactivateConfirmation=e=>{this.setState({showDeactivateConfirmation:!0,deactivateConfirmationRowId:e})},this.handleCloseDeactivateConfirmation=()=>{this.setState({showDeactivateConfirmation:!1,deactivateConfirmationRowId:null})},this.handleFilterShowToggle=()=>{const{showFilters:e}=this.state;this.setState({showFilters:!e})},this.getFilterCheckBoxes=()=>{var e,t,n;const{listData:s,filters:i}=this.state,a=null==s?void 0:s.filter((e=>e.exploited)).length,r=null==s?void 0:s.filter((e=>e.assetType===RI)).length,o=null==s?void 0:s.filter((e=>e.assetType===UI)).length,l=null==s?void 0:s.filter((e=>e.assetType===NI)).length,c=null==s?void 0:s.filter((e=>e.mitigations.length>0&&e.mitigations.some((e=>e.applied)))).length,u=[{name:oM,count:a,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.exploitedFilter"},{name:lM,count:c,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.mitigatedFilter"},{name:cM,count:r,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.coreFilter"},{name:uM,count:o,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.pluginFilter"},{name:dM,count:l,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.themeFilter"}];if(null===(n=null===(t=null===(e=this.props.installation)||void 0===e?void 0:e.features)||void 0===t?void 0:t.vulnerabilityFiltering)||void 0===n?void 0:n.status){const e=null==s?void 0:s.filter((e=>e.riskRank===kg)).length;u.push({name:pM,count:e,translate:"instancesVulnerabilities.instancesVulnerabilitiesList.lowScoreFilter"})}return u.map((e=>(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:e.translate,params:{count:e.count}}),onChange:()=>this.toggleFilter(e.name),value:i.includes(e.name)},e.name)))},this.getFilterForm=()=>{const{filters:e}=this.state;return(0,P.jsx)(dl,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.filterTitle"}),extra:[(0,P.jsx)(Be,{ghost:!0,icon:"clean",onClick:this.handleFilterClear,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.clearFilter"})},"button")],children:(0,P.jsx)(La,{applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.applyFilter"}),fill:!0},onSubmit:()=>this.applyFilters(e),cancelButton:!1,children:this.getFilterCheckBoxes()})})},this.getToolbar=()=>{var e,t,n,s;const{isCheckingVulnerability:i,showFilters:a,filters:r,isUpdating:o,isDeactivatingAsset:l}=this.state,{onChangeListView:c,isVulnerabilityFeatureUnpaid:u,isVirtualPatchesFeatureEnabled:d,installation:p,vulnerabilitiesList:{installationsWithoutRestrictionsForVirtualPatches:h},isAdmin:m}=this.props,f=null===(e=this.props.installation)||void 0===e?void 0:e.id,g=this.getSelectedVulnerabilitiesForAssetsUpdate(),b=d&&!(null==p?void 0:p.id)&&!!(null==h?void 0:h.length);return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateTitle"}),children:(0,P.jsx)(bi,{noSelectionText:(0,P.jsx)(qd,{content:"instancesVulnerabilities.noSelectionText"}),actionButtonText:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonUpdateAll"}),children:(0,P.jsx)(Be,{intent:"primary",state:o?"loading":void 0,disabled:u||i||o||l||!g.length,onClick:this.handleUpdateAll,"data-test-id":"instances-security-vulnerabilities-update-button",children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonUpdate"})})})}),b&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.applyPatchesTitle"}),children:this.getVirtualPatchesToolbarButton()}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.checkVulnerabilityTitle"}),children:(0,P.jsx)(Be,{icon:"refresh",state:i?"loading":void 0,disabled:o||l,onClick:this.handleCheckVulnerability,"data-test-id":"instances-security-vulnerabilities-scan-button",tooltip:this.getLastVulnerabilityCheckDate()})}),(0,P.jsx)(ui,{}),void 0===f&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.viewsTitle"}),children:(0,P.jsx)(Zs,{buttons:[{value:LI,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonVulnerabilities"}),"data-test-id":yv},{value:MI,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonSites"}),"data-test-id":vv}],selected:LI,onChange:c})}),(null===(s=null===(n=null===(t=this.props.installation)||void 0===t?void 0:t.features)||void 0===n?void 0:n.vulnerabilityFiltering)||void 0===s?void 0:s.available)&&(0,P.jsx)(Ii,{title:"Settings",children:(0,P.jsx)(eM,{installation:this.props.installation})}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.filterTitle"}),children:(0,P.jsx)(ke,{intent:"info",hidden:0===r.length,children:(0,P.jsx)(Be,{icon:"filter",tooltip:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.filterTitle"}),onClick:this.handleFilterShowToggle,state:a?"active":void 0})})}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.search"}),children:(0,P.jsx)(hM,{onTyping:this.handleSearch})})]})},this.getVirtualPatchesToolbarButton=()=>{const{selection:e,listData:t}=this.state,{isProtectionPaid:n}=this.props,s=(null==t?void 0:t.filter((t=>!e.length||e.includes(t.id))))||[],{unprotectedInstallationIds:i}=this.getInstallationIdsForVulnerabilitiesRelatedToVirtualPatches(s),a=!!i.length,r=null==t?void 0:t.some((e=>e.hasActiveVirtualPatchesTasks));return(0,P.jsx)(rM,{renderManagingComponent:(e,t)=>e?(0,P.jsx)(Be,{icon:e?"lock-closed":void 0,intent:"secondary",onClick:e?t:void 0,"data-test-id":xv,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.ApplyVirtualPatchesButton"})}):this.buildVirtualPatchesWidget(i,r||!a,((e,t,n)=>(0,P.jsx)(Be,{intent:"secondary",disabled:e,state:t?"loading":void 0,onClick:n,"data-test-id":xv,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.ApplyVirtualPatchesButton"})}))),isPaid:!!n,uatAction:Jv})},this.getHowToFixTheme=e=>{const{isVulnerabilityFeatureUnpaid:t,baseClassName:n,installation:s}=this.props,{showUpdateConfirmation:i,updateConfirmationRowId:a}=this.state,r=e.assets.some((e=>e.isActive)),o=[];return e.mitigations.some((e=>e.type===Og))&&o.push((0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(YI,{target:(0,P.jsx)(ye,{icon:t?"lock-closed":"arrow-up-circle",onClick:t?void 0:()=>{this.handleOpenUpdateConfirmation(e.id)},className:`${n}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-theme-update-all-button",children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.themeUpdateButton",params:{updateVersion:e.assetUpdateVersion}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})}),onUpdate:()=>this.handleMitigate([e],Og),isOpen:i&&a===e.id,onClose:this.handleCloseUpdateConfirmation,updateButtonContent:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.themeOnSite",params:{updateVersion:e.assetUpdateVersion,themeSlug:e.assetSlug,siteSlug:s.displayTitle}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.themeOnAllSites",params:{updateVersion:e.assetUpdateVersion,themeSlug:e.assetSlug}})},`key-how-to-fix-mitigate-theme-${e.id}`)},`key-how-to-fix-update-${e.id}`)),o.length?(o.push(this.virtualPatchesStatusElement(e)),o.push(this.getVirtualPatchesWidget(e)),o):(o.push(this.virtualPatchesStatusElement(e)),o.push(this.getVirtualPatchesWidget(e)),r?(o.push((0,P.jsxs)("div",{children:[(0,P.jsx)(qd,{"data-test-vulnerability-how-to-fix":Dv,content:"instancesVulnerabilities.instancesVulnerabilitiesList.noUpdatesAvailable"})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(be,{name:"question-mark-circle"}),children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noActionsAvailableForTheme"})})]},`key-how-to-fix-no-actions-available-theme-${e.id}`)),o):(o.push((0,P.jsxs)("div",{children:[(0,P.jsx)(qd,{"data-test-vulnerability-how-to-fix":Dv,content:"instancesVulnerabilities.instancesVulnerabilitiesList.noUpdatesAvailable"})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(be,{name:"question-mark-circle"}),children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noActionsAvailableForDeactivatedTheme"})})]},`key-how-to-fix-no-update-available-theme-${e.id}`)),o))},this.getHowToFixWordPressCore=e=>{const{isVulnerabilityFeatureUnpaid:t,baseClassName:n,installation:s}=this.props,{isMitigationsDataLoading:i,showUpdateConfirmation:a,updateConfirmationRowId:r}=this.state,o=[];return e.mitigations.some((e=>e.type===Og))&&o.push((0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(YI,{target:(0,P.jsx)(ye,{icon:t?"lock-closed":"arrow-up-circle",onClick:t?void 0:()=>{this.handleOpenUpdateConfirmation(e.id)},className:`${n}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-wordpress-core-update-all-button",children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.coreUpdateButton",params:{updateVersion:e.assetUpdateVersion}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})}),onUpdate:()=>this.handleMitigate([e],Og),isOpen:a&&r===e.id,onClose:this.handleCloseUpdateConfirmation,updateButtonContent:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.wordPressCoreOnSite",params:{siteSlug:s.displayTitle,updateVersion:e.assetUpdateVersion}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.wordPressCoreOnAllSites",params:{updateVersion:e.assetUpdateVersion}})},`key-how-to-fix-core-${e.id}`)},`key-how-to-fix-update-${e.id}`)),o.length?(o.push(this.virtualPatchesStatusElement(e)),o.push(this.getVirtualPatchesWidget(e)),o):(o.push(this.virtualPatchesStatusElement(e)),o.push(this.getVirtualPatchesWidget(e)),o.push((0,P.jsxs)(WI,{vulnerability:e,isLoading:i,children:[(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noUpdatesAvailable"})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(be,{name:"question-mark-circle"}),children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noActionsAvailableForWordPress"})})]},`key-how-to-fix-core-not-available-actions-${e.id}`)),o)},this.getHowToFixPlugin=e=>{const{isVulnerabilityFeatureUnpaid:t,baseClassName:n,installation:s}=this.props,{showUpdateConfirmation:i,updateConfirmationRowId:a,showDeactivateConfirmation:r,deactivateConfirmationRowId:o}=this.state,l=e.mitigations.some((e=>e.type===Og)),c=e.mitigations.some((e=>e.type===Ig&&!1===e.applied)),u=[];return l&&u.push((0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(YI,{target:(0,P.jsx)(ye,{icon:t?"lock-closed":"arrow-up-circle",onClick:t?void 0:()=>{this.handleOpenUpdateConfirmation(e.id)},className:`${n}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-plugin-update-all-button",children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.pluginUpdateButton",params:{updateVersion:e.assetUpdateVersion}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})}),onUpdate:()=>this.handleMitigate([e],Og),isOpen:i&&a===e.id,onClose:this.handleCloseUpdateConfirmation,updateButtonContent:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.pluginOnSite",params:{updateVersion:e.assetUpdateVersion,pluginSlug:e.assetSlug,siteSlug:s.displayTitle}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.updateConfirmation.pluginOnAllSites",params:{updateVersion:e.assetUpdateVersion,pluginSlug:e.assetSlug}})})},`key-how-to-fix-update-${e.id}`)),u.push(this.virtualPatchesStatusElement(e)),u.push(this.getVirtualPatchesWidget(e)),c&&u.push((0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(FI,{target:(0,P.jsx)(ye,{ghost:!0,icon:"power",onClick:()=>{this.handleOpenDeactivateConfirmation(e.id)},className:`${n}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-plugin-deactivate-all-button",children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateButton"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateButtonAll"})}),deactivateButtonContent:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.deactivateConfirmation.deactivateButton"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.deactivateConfirmation.deactivateAllButton"}),onDeactivate:()=>this.handleMitigate([e],Ig),isOpen:r&&o===e.id,onClose:this.handleCloseDeactivateConfirmation,children:s?(0,P.jsx)(qd,{content:"instancesVulnerabilities.deactivateConfirmation.pluginOnSite",params:{siteSlug:s.displayTitle,pluginSlug:e.assetSlug}}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.deactivateConfirmation.pluginOnAllSites",params:{pluginSlug:e.assetSlug}})})},`key-how-to-fix-deactivate-${e.id}`)),l||c||u.push((0,P.jsx)(Fa,{intent:"inactive","data-test-id":"instances-security-vulnerabilities-plugin-deactivated-status",children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivatedAllStatus"})},`key-how-to-fix-deactivated-all-status-${e.id}`)),u},this.virtualPatchesStatusElement=e=>{if(!this.props.installation)return null;const{onOpenVirtualPatchingUpsellDialog:t,baseClassName:n,showVirtualPatchesUpsellWhenRestrictedViaPlans:s}=this.props,i=e.mitigations.find((e=>e.type===Pg)),{features:{virtualPatches:{restrictions:a}}}=this.props.installation;return sM(a,this.props.isAdmin,s)||!i||i.applied?null:(0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(iM,{installation:this.props.installation,baseClassName:n,hasActiveVirtualPatchesTasks:e.hasActiveVirtualPatchesTasks,onHandleApplyVirtualPatches:this.handleApplyVirtualPatches,onOpenUpsellDialog:t},`key-how-to-fix-virtual-patches-status-${e.id}`)},`key-how-to-fix-virtual-patches-widget-${e.id}`)},this.getInstallationIdsForVulnerabilitiesRelatedToVirtualPatches=e=>{const t=new Set,n=new Set;e.forEach((e=>{e.installations.filter((e=>!0===e.virtualPatchAvailable)).forEach((e=>t.add(e.id))),e.installations.filter((e=>!0===e.virtualPatchApplied)).forEach((e=>n.add(e.id)))}));const s=Array.from(t),i=Array.from(n),a=s.filter((e=>!i.includes(e)));return{availableInstallationIds:s,appliedInstallationIds:i,unprotectedInstallationIds:a}},this.getVirtualPatchesWidget=e=>{const{isProtectionPaid:t,baseClassName:n}=this.props;if(void 0!==this.props.installation)return null;if(!e.mitigations.some((e=>e.type===Pg)))return null;const{availableInstallationIds:s,appliedInstallationIds:i,unprotectedInstallationIds:a}=this.getInstallationIdsForVulnerabilitiesRelatedToVirtualPatches([e]);if(0===a.length)return null;const r=this.props.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.some((e=>s.includes(e)))));return(0,P.jsx)(rM,{renderManagingComponent:(t,o)=>t?(0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:(0,P.jsx)(ye,{onClick:t?o:void 0,ghost:!0,className:`${n}__how-to-fix-action`,intent:"primary",icon:t?"lock-closed":"shield",progress:r,"data-test-id":bv,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.button",params:{protectedInstancesCount:i.length,totalInstancesCount:s.length}})})},`key-how-to-fix-virtual-patches-widget-${e.id}`):(0,P.jsx)("div",{className:`${n}__how-to-fix-action-block`,children:this.buildVirtualPatchesWidget(a,!1,((e,t,a)=>(0,P.jsx)(ye,{onClick:a,ghost:!0,className:`${n}__how-to-fix-action`,intent:"primary",icon:"shield",progress:r||t,"data-test-id":bv,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.button",params:{protectedInstancesCount:i.length,totalInstancesCount:s.length}})})))},`key-how-to-fix-virtual-patches-widget-${e.id}`),isPaid:!!t,uatAction:Jv})},this.buildVirtualPatchesWidget=(e,t,n)=>(0,P.jsx)(ZI,{onHandleApplyVirtualPatches:t=>this.handleApplyVirtualPatches(e,t),isDisabled:t,renderManagingComponent:n,Consent:tM}),this.handleApplyVirtualPatches=(e,t)=>{const{vulnerabilitiesActions:n}=this.props;return n.updateVirtualPatchesProtectionStatus({installationsIds:e,status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0},t)},this.getHowToFix=e=>{const t=[];return e.assetType===RI?t.push(...this.getHowToFixWordPressCore(e)):e.assetType===NI?t.push(...this.getHowToFixTheme(e)):e.assetType===UI&&t.push(...this.getHowToFixPlugin(e)),(0,P.jsxs)(P.Fragment,{children:[e.labels.length>0?(0,P.jsx)("div",{className:`${this.props.baseClassName}__mitigation-labels`,children:e.labels}):void 0,t.length>0?(0,P.jsx)("div",{className:`${this.props.baseClassName}__how-to-fix-elements`,children:t}):void 0]})},this.handleSitesClick=e=>{const{onChangeSiteViewInstallationsIds:t,onChangeListView:n}=this.props;n&&n(MI),t&&t(e.installations.map((e=>e.id)))},this.getVulnerabilityType=e=>{var t,n;const{baseClassName:s}=this.props,i=null===(t=this.props.installation)||void 0===t?void 0:t.id,a=e.installations.length>1?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.sites"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.site"}),r=null!==(n={[RI]:{icon:"wordpress",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypeCore"},[UI]:{icon:"puzzle",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypePlugin"},[NI]:{icon:"monitoring",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypeTheme"}}[e.assetType])&&void 0!==n?n:null;return null===r?null:(0,P.jsxs)("div",{className:`${s}__type-items`,children:[(0,P.jsxs)("div",{children:[(0,P.jsx)(be,{name:r.icon})," ",(0,P.jsx)(qd,{content:r.translate})]}),void 0===i&&(0,P.jsxs)("div",{children:[(0,P.jsx)(be,{name:"site-page"})," ",(0,P.jsxs)(Cs,{onClick:()=>this.handleSitesClick(e),"data-test-id":"instances-security-vulnerabilities-sites-link",children:[e.installations.length," ",a]})]})]})},this.getMitigatedByLabels=({id:e,assetType:t,installations:n})=>{const s=[];let i=0,a=0,r=0,o=0;const l=n.length;return n.forEach((e=>{t!==UI||e.assetIsActive||i++,t!==NI||e.assetIsActive||a++,e.securityMeasuresApplied.length>0&&r++,e.virtualPatchApplied&&o++})),o===l&&s.push((0,P.jsx)(QI,{dataTestId:Sv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.virtualPatches.labelMitigatedBy",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.virtualPatches.PopoverMitigatedBy",icon:"shield-filled"},`${e}-${Sv}`)),r===l&&s.push((0,P.jsx)(QI,{dataTestId:jv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.securityMeasure.labelMitigatedBy",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.securityMeasure.PopoverMitigatedBy"},`${e}-${jv}`)),i===l&&s.push((0,P.jsx)(QI,{dataTestId:wv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateAsset.labelMitigatedBy",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateAsset.PopoverMitigatedBy"},`${e}-${wv}`)),a===l&&s.push((0,P.jsx)(QI,{dataTestId:kv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.unusedTheme.labelMitigatedBy",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.unusedTheme.PopoverMitigatedBy"},`${e}-${kv}`)),n.every((e=>!e.assetIsActive||e.securityMeasuresApplied.length>0||e.virtualPatchApplied))&&!s.length&&s.push((0,P.jsx)(QI,{dataTestId:Tv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.multiplyMitigation.labelMitigatedBy",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.multiplyMitigation.PopoverMitigatedBy"},`${e}-${Tv}`)),s},this.getVulnerabilityInfo=e=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ei,{bold:!0,children:e.title}),(0,P.jsx)("br",{}),this.getVulnerabilityDescription(e)]}),this.getVulnerabilityRiskRank=e=>{const{baseClassName:t}=this.props;return(0,P.jsx)(mM,{baseClassName:t,value:e.riskRank,inactive:e.labels.length>0||e.assetType===NI&&e.installations.every((e=>!e.assetIsActive))||!1})},this.sortRows=(e,t)=>this.sortRowsByVulnerabilityActivity(e,t)||this.sortRowsByRiskRank(t,e)||this.sortRowsByCvss(t,e)||this.sortRowsByTitle(e,t),this.sortRowsByVulnerabilityActivity=(e,t)=>{const n=e.labels.length>0||e.assetType===NI&&e.installations.every((e=>!e.assetIsActive));return n===(t.labels.length>0||t.assetType===NI&&t.installations.every((e=>!e.assetIsActive)))?0:n?1:-1},this.sortRowsByRiskRank=(e,t)=>{const n={[Cg]:4,[Tg]:3,[jg]:2,[kg]:1};return e.riskRank===t.riskRank?0:n[e.riskRank]<n[t.riskRank]?-1:1},this.sortRowsByCvss=(e,t)=>e.cvssScore===t.cvssScore?0:(e.cvssScore||0)<(t.cvssScore||0)?-1:1,this.sortRowsByTitle=(e,t)=>{const n=e.title.localeCompare(t.title);return 0===n?0:n>0?1:-1},this.getColumns=()=>[{key:"riskRank",width:"65px",style:{minWidth:"65px"},title:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.riskRankColumn"})," ",(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.riskRankColumnTooltip"}),children:(0,P.jsx)(be,{name:"question-mark-circle",size:"16"})})]}),render:e=>this.getVulnerabilityRiskRank(e),sort:(e,t)=>this.sortRows(e,t)},{key:"title",width:"55%",title:"",render:e=>this.getVulnerabilityInfo(e)},{key:"where",width:"10%",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.whereColumn"}),render:e=>this.getVulnerabilityType(e)},{key:"howToFix",width:"40%",align:"left",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.howToFixColumn"}),render:e=>this.getHowToFix(e)}],this.state={isCheckingVulnerability:!1,isMitigationsDataLoading:!1,selection:[],search:"",listData:null,showedListData:null,showUpdateConfirmation:!1,updateConfirmationRowId:null,showDeactivateConfirmation:!1,deactivateConfirmationRowId:null,instancesIdsForVulnerabilityStatusesUpdate:[],checkInstallationsVulnerabilityBackgroundTaskId:null,showFilters:!1,filters:[],isUpdating:e.isUpdating,isDeactivatingAsset:e.isDeactivatingAsset}}componentDidMount(){this.initListData()}componentDidUpdate(e){var t,n,s,i;e.tasks!==this.props.tasks&&this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData(this.props.tasks),e.vulnerabilitiesList.frankyVulnerabilities!==this.props.vulnerabilitiesList.frankyVulnerabilities&&this.initListData(),(null===(n=null===(t=this.props.installation)||void 0===t?void 0:t.features)||void 0===n?void 0:n.vulnerabilityFiltering)!==(null===(i=null===(s=e.installation)||void 0===s?void 0:s.features)||void 0===i?void 0:i.vulnerabilityFiltering)&&this.applyFilters(this.state.filters),e.isUpdating!==this.props.isUpdating&&this.initUpdatingState(),e.isDeactivatingAsset!==this.props.isDeactivatingAsset&&this.initDeactivatingState()}getVulnerabilityLabels(e){var t,n,s;const i=this.getMitigatedByLabels(e);return(null===(s=null===(n=null===(t=this.props.installation)||void 0===t?void 0:t.features)||void 0===n?void 0:n.vulnerabilityFiltering)||void 0===s?void 0:s.status)&&e.riskRank===kg&&i.push((0,P.jsx)(QI,{dataTestId:Cv,localeKey:"instancesVulnerabilities.instancesVulnerabilitiesList.labels.ignored",popoverLocaleKey:"instancesVulnerabilities.instancesVulnerabilitiesList.popovers.ignored",intent:"inactive"},`${e.id}-${Cv}`)),i}getVulnerabilityDescription({description:e,providers:t,disclosedAt:n,id:s,installations:i,riskRank:a}){var r,o;const{baseClassName:l}=this.props,c=(null===(r=t[0])||void 0===r?void 0:r.provider)===Mg,u=c?null===(o=t[0])||void 0===o?void 0:o.directUrl:"",d=t.map((e=>(0,P.jsx)(qI,{separator:zI.Space,children:(0,P.jsx)(Cs,{href:e.directUrl,target:"_blank",className:`${l}__provider-link`,children:e.provider===Mg?(0,P.jsx)(KI,{}):(0,P.jsx)(GI,{})})},e.provider)));return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(JI,{text:e,shortTextLength:100}),c&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("br",{}),(0,P.jsxs)(Fs,{target:(0,P.jsx)(ei,{fontSize:"sm",children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceCopyrightMessage"})}),placement:"top-right",children:[(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceCopyrightText"})," ",(0,P.jsx)(Cs,{target:"_blank",href:u,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceReadMore"})})]})]}),(0,P.jsx)("br",{}),(0,P.jsxs)(ei,{fontSize:"sm",bold:!0,children:[(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.date"}),": ",n&&_x()(new Date(n)).format("DD.MM.YYYY")," | ",(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.source"}),": ",d]})]})}getLastVulnerabilityCheckDate(){var e;const{installationsVulnerabilityStatuses:t}=this.props,n=null!==(e=null==t?void 0:t.reduce(((e,t)=>(t.lastVulnerabilityCheckTimestamp&&e.push(t.lastVulnerabilityCheckTimestamp),e)),[]))&&void 0!==e?e:[];if(0===n.length)return(0,P.jsx)(qd,{content:"instancesVulnerabilities.lastVulnerabilityCheckDateIsUnknown"});const s=new Date(1e3*Math.min(...n)).toLocaleString();return(0,P.jsx)(qd,{content:"instancesVulnerabilities.lastVulnerabilityCheckDate",params:{lastVulnerabilityCheckDate:s}})}render(){const{selection:e,isCheckingVulnerability:t,showedListData:n,showFilters:s,isUpdating:i,isDeactivatingAsset:a}=this.state,{vulnerabilitiesList:{isLoading:r}}=this.props;return r||!n?(0,P.jsx)(Rn,{}):(0,P.jsx)(Qr,{loading:i||a||t,columns:this.getColumns(),data:n,rowKey:"id",rowProps:e=>{var t;const n=e.assetType===RI?{"data-test-vulnerability-product-type":e.assetType}:{"data-test-vulnerability-product-type":e.assetType,"data-test-vulnerability-product-slug":null===(t=e.assetSlug)||void 0===t?void 0:t.toLowerCase()};return(e.labels.length>0||e.assetType===NI&&e.installations.every((e=>!1===e.assetIsActive)))&&(n.className=`${this.props.baseClassName}__ignored-vulnerability`),n["data-vulnerability-id"]=e.id,n},emptyView:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noVulnerabilities"}),toolbar:this.getToolbar(),selection:e,onSelectionChange:this.handleSelectionChange,filtered:!0,sidebar:s?this.getFilterForm():void 0,sortColumn:"riskRank",sortDirection:"ASC",totalRows:n.length})}}fM.defaultProps={baseClassName:`${Rp}instances-vulnerabilities-list`};const gM=mc((e=>({installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses,isVirtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Op],securityMeasures:e.securityMeasures.securityMeasures,securityMeasuresInstallationStatuses:e.securityMeasures.securityMeasuresInstallationStatuses,tasks:e.backgroundTasks.tasks,virtualPatchesUpdatingStatuses:e.vulnerabilities.virtualPatchesUpdatingStatuses,vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses,isUpdating:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.some((e=>e.mitigations.some((e=>e.type===Og)))),isDeactivatingAsset:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.some((e=>e.mitigations.some((e=>e.type===Ig)))),isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,isClient:!e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans})),(e=>({mitigateVulnerabilities:kb(f_,e),instancesActions:kb({checkInstallationsVulnerability:_k},e),loadMitigationsStatuses:kb(m_,e),vulnerabilitiesActions:kb({updateVirtualPatchesProtectionStatus:g_},e)})))(fM),bM=e=>{switch(e){case"remove":return"recycle";case"circle-info":return"info-circle";default:return e}},vM=Qd(oD,"backups","limits"),yM=e=>t=>Ug.getInstallationBackupsMeta(e).then((e=>{const n=e.data.value.map((({value:e})=>({fileName:e.fileName.value,fileSize:e.fileSize.value,createDate:e.createdAt.value})));return t({type:oD,backups:n,limits:{backupsLimit:e.data.meta.limit,backupsCount:n.length}}),e})),xM=()=>e=>e(vM([],void 0)),_M=(e,t)=>n=>Ug.removeInstallationBackups(e,t).then((()=>(n({type:lD,fileNames:t}),t))),SM=e=>t=>Ug.createInstallationBackup({installationId:e}).then((({data:e})=>(t(wM(e.task)),e))),wM=e=>t=>t({type:cD,task:e}),kM=()=>e=>e({type:"backup/BACKUP_CREATION_FINISHED_WITH_ERRORS"}),jM=e=>t=>{t(yM(e)).finally((()=>t({type:"backup/BACKUP_CREATION_FINISHED"})))},TM=(e,t,n=!0)=>s=>Ug.restoreInstallationBackup({installationId:e,fileName:t,clobber:n}).then((({data:e})=>(s(CM(e.task)),e))),CM=e=>t=>t({type:uD,task:e}),DM=()=>e=>e({type:"backup/BACKUP_RESTORING_FINISHED_WITH_ERRORS"}),PM=e=>t=>hS(e)(t).finally((()=>t({type:"backup/BACKUP_RESTORING_FINISHED"}))),OM="localCpanel",IM="remoteCpanel",MM="localPleskLinux",LM="localPleskWindows",AM="remoteGeneric",EM="managedByPlugin",RM=e=>e===OM,UM=e=>NM(e)||FM(e),NM=e=>e===MM,FM=e=>e===LM,YM=e=>(e=>e===IM)(e)||e===AM,HM=e=>RM(e)||UM(e),BM=e=>e===EM;class VM extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}},inNewWindow:t}=this.props;return e.backupManagerUrl?(0,P.jsx)("a",{href:e.backupManagerUrl,target:t?"_blank":"_self",children:(0,P.jsx)(qd,{content:"backupManagerLink.text"})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n,inNewWindow:s}=this.props;if(!e.backupManagerUrl)return null;const i=Bv({link:e.backupManagerUrl,inNewWindow:s,goToUri:n,accountUsername:t.login});return(0,P.jsx)("a",Object.assign({},i,{children:(0,P.jsx)(qd,{content:"backupManagerLink.text"})}))}}render(){const{installation:{features:{backups:e},installationType:t}}=this.props;return e.panelBackupsAvailable?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}VM.propTypes={installation:We().shape({features:We().shape({backups:We().shape({backupManagerUrl:We().string,panelBackupsAvailable:We().bool.isRequired})}).isRequired,installationType:We().string.isRequired,owner:We().shape({login:We().string.isRequired})}).isRequired,goToUri:We().func.isRequired,inNewWindow:We().bool},VM.defaultProps={inNewWindow:!1};const $M=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(VM);class WM extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{backupsUrl:e,backupsDirName:t,inNewWindow:n}=this.props;return e&&t?(0,P.jsx)("a",{href:e,target:n?"_blank":"_self",children:t}):null},this.renderCpanel=()=>{const{goToUri:e,installation:{owner:t},backupsUrl:n,backupsDirName:s,inNewWindow:i}=this.props;if(!n||!s)return null;const a=Bv({link:n,inNewWindow:i,goToUri:e,accountUsername:null==t?void 0:t.login});return(0,P.jsx)("a",Object.assign({},a,{children:s}))}}render(){const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}WM.propTypes={installation:We().shape({features:We().shape({fileManager:We().shape({available:We().bool.isRequired})}).isRequired,installationType:We().string.isRequired,owner:We().shape({login:We().string.isRequired})}).isRequired,backupsUrl:We().string.isRequired,backupsDirName:We().string.isRequired,goToUri:We().func.isRequired,inNewWindow:We().bool},WM.defaultProps={inNewWindow:!1};const zM=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(WM);r(20181);var qM="undefined"!=typeof window?M.useLayoutEffect:M.useEffect;function GM(e,t,n,s){const i=(0,M.useRef)(t);qM((()=>{i.current=t}),[t]),(0,M.useEffect)((()=>{const t=(null==n?void 0:n.current)??window;if(!t||!t.addEventListener)return;const a=e=>{i.current(e)};return t.addEventListener(e,a,s),()=>{t.removeEventListener(e,a,s)}}),[e,n,s])}function KM(e){const t=(0,M.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return qM((()=>{t.current=e}),[e]),(0,M.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[t])}var XM="undefined"==typeof window;function QM(e,t,n={}){const{initializeWithValue:s=!0}=n,i=(0,M.useCallback)((e=>n.serializer?n.serializer(e):JSON.stringify(e)),[n]),a=(0,M.useCallback)((e=>{if(n.deserializer)return n.deserializer(e);if("undefined"===e)return;const s=t instanceof Function?t():t;let i;try{i=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),s}return i}),[n,t]),r=(0,M.useCallback)((()=>{const n=t instanceof Function?t():t;if(XM)return n;try{const t=window.localStorage.getItem(e);return t?a(t):n}catch(t){return console.warn(`Error reading localStorage key “${e}”:`,t),n}}),[t,e,a]),[o,l]=(0,M.useState)((()=>s?r():t instanceof Function?t():t)),c=KM((t=>{XM&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const n=t instanceof Function?t(r()):t;window.localStorage.setItem(e,i(n)),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(t){console.warn(`Error setting localStorage key “${e}”:`,t)}})),u=KM((()=>{XM&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const n=t instanceof Function?t():t;window.localStorage.removeItem(e),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}));(0,M.useEffect)((()=>{l(r())}),[e]);const d=(0,M.useCallback)((t=>{t.key&&t.key!==e||l(r())}),[e,r]);return GM("storage",d),GM("local-storage",d),[o,c,u]}const JM=({id:e,children:t,ttl:n=2592e3,showSince:s,showUntil:i,forciblyHidden:a})=>{const[r,o]=QM("wpt-shown-items",{}),l=new Date,c=Date.now(),u=(()=>{var t,a;return!((null!==(t=r[e])&&void 0!==t?t:c)<0||c>(null!==(a=r[e])&&void 0!==a?a:c)+1e3*n||s&&l<s||i&&l>i)})();return(0,M.useEffect)((()=>{u&&a?o((t=>Object.assign(Object.assign({},t),{[e]:-1}))):u&&!r.hasOwnProperty(e)&&o((t=>Object.assign(Object.assign({},t),{[e]:c})))}),[r,e,o,c,u,a]),u?(0,P.jsx)(P.Fragment,{children:t}):null},ZM=({code:e,interacted:t,className:n="",baseClassName:s=`${Rp}new-feature-label`})=>(0,P.jsx)(JM,{id:e,forciblyHidden:t,children:(0,P.jsx)(we,{className:`${n} ${s}__label`,intent:"success",view:"light",size:"sm",icon:(0,P.jsx)(be,{name:"check-mark-circle-filled",intent:"success"}),children:(0,P.jsx)(qd,{content:"common.label.new"})})}),eL="backup-clobbers";class tL extends M.Component{constructor(e){super(e),this.getPleskBackupDownloadUrl=()=>{const{instance:{id:e},apiUrl:t,backup:{fileName:n}}=this.props,s=new URL(`${t}/download-instance-backups`,window.location.href),i=new URLSearchParams;return i.set("id",e),i.append("fileNames[]",n),s.search=i.toString(),s.toString()},this.getCpanelBackupDownloadUrl=()=>{const{installation:{id:e},apiUrl:t,backup:{fileName:n}}=this.props,s=new URL(t),i=new URLSearchParams;i.set("id",e),i.append("fileNames[]",n);const a=new URLSearchParams(s.search);return a.set("request",`/download-instance-backups?${i.toString()}`),s.search=a.toString(),s.toString()},this.getBackupDownloadUrl=()=>{const{installation:{installationType:e}}=this.props;return UM(e)?this.getPleskBackupDownloadUrl():RM(e)?this.getCpanelBackupDownloadUrl():null},this.handleToggleRestoreBackupConfirmationPopup=()=>this.setState((e=>({showRestoreBackupConfirmation:!e.showRestoreBackupConfirmation}))),this.handleToggleRemoveBackupConfirmationPopup=()=>this.setState((e=>({showRemoveBackupConfirmation:!e.showRemoveBackupConfirmation}))),this.renderPleskBackupsDownloadButton=()=>{const{disabled:e,backupsUrl:t}=this.props;return t?(0,P.jsx)(Be,{icon:"arrow-down-tray",component:"a",href:t,disabled:e,tooltip:(0,P.jsx)(qd,{content:"backupActions.tooltip.download"}),ghost:!0}):null},this.renderCpanelBackupsDownloadButton=()=>{const{disabled:e,goToUri:t,installation:{owner:n},backupsUrl:s}=this.props;if(!s)return null;const i=Bv({link:s,inNewWindow:!1,goToUri:t,accountUsername:null==n?void 0:n.login});return(0,P.jsx)(Be,Object.assign({icon:"arrow-down-tray",component:"a",href:s,disabled:e,tooltip:(0,P.jsx)(qd,{content:"backupActions.tooltip.download"}),ghost:!0},i))},this.renderBackupsDownloadButton=()=>{const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available?UM(t)?this.renderPleskBackupsDownloadButton():RM(t)?this.renderCpanelBackupsDownloadButton():null:null};const t=gx(eL)||{};this.state={showRestoreBackupConfirmation:!1,clobber:!(e.installation.id in t)||t[e.installation.id],isClobberInteracted:!1}}renderRestoreBackupConfirmationPopup(){const{backup:{createDate:e},onCreateBackup:t,onRestoreBackup:n,disabled:s,baseClassName:i}=this.props,{showRestoreBackupConfirmation:a,clobber:r,isClobberInteracted:o}=this.state;return(0,P.jsxs)(Fs,{visible:a,target:(0,P.jsx)(Be,{"data-test-id":"instance-backups-drawer-restore-backup",icon:"reload",onClick:this.handleToggleRestoreBackupConfirmationPopup,disabled:s,tooltip:(0,P.jsx)(qd,{content:"backupActions.tooltip.restore"}),ghost:!0}),onClose:this.handleToggleRestoreBackupConfirmationPopup,children:[(0,P.jsx)(Ds,{level:4,children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{params:{createDate:e},content:"backupActions.restoreBackupConfirmationPopup.title"})})}),(0,P.jsx)(mi,{className:`${i}__restore-backup-confirmation__desc`,children:(0,P.jsx)(qd,{params:{link:(0,P.jsx)("a",{onClick:()=>{t(),this.handleToggleRestoreBackupConfirmationPopup()},children:(0,P.jsx)(qd,{content:"backupActions.restoreBackupConfirmationPopup.createBackupLink"})})},content:"backupActions.restoreBackupConfirmationPopup.description"})}),(0,P.jsxs)(mi,{children:[(0,P.jsx)(ut,{checked:r,onChange:e=>{bx(eL,Object.assign(Object.assign({},gx(eL)),{[this.props.installation.id]:e})),this.setState({clobber:e,isClobberInteracted:!0})},children:(0,P.jsx)(qd,{content:"backupActions.tooltip.restore.clobber"})})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(be,{name:"info-circle"}),placement:"top",children:(0,P.jsx)(qd,{content:"backupActions.tooltip.restore.clobber.hint"})}),(0,P.jsx)(ZM,{code:"backup-clobbering",interacted:o})]}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{"data-test-id":"instance-backups-drawer-restore-backup-confirm",intent:"danger",size:"md",onClick:()=>{this.setState({isClobberInteracted:!0}),n(this.props.backup,r),this.handleToggleRestoreBackupConfirmationPopup()},children:(0,P.jsx)(qd,{content:"backupActions.restoreBackupConfirmationPopup.buttonRestore"})}),(0,P.jsx)(Be,{onClick:this.handleToggleRestoreBackupConfirmationPopup,size:"md",ghost:!0,className:`${i}__restore-backup-confirmation__button-cancel`,children:(0,P.jsx)(qd,{content:"backupActions.restoreBackupConfirmationPopup.buttonCancel"})})]})]})}renderRemoveBackupConfirmationPopup(){const{backup:{fileName:e},onRemoveBackup:t,disabled:n,baseClassName:s}=this.props,{showRemoveBackupConfirmation:i}=this.state;return(0,P.jsxs)(Fs,{visible:i,target:(0,P.jsx)(Be,{icon:bM("remove"),"data-test-id":gv,onClick:this.handleToggleRemoveBackupConfirmationPopup,disabled:n,tooltip:(0,P.jsx)(qd,{content:"backupActions.tooltip.delete"}),ghost:!0}),onClose:this.handleToggleRemoveBackupConfirmationPopup,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"backupActions.removeBackupConfirmationPopup.text"})}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{"data-test-id":"instance-backups-drawer-remove-backup-confirm",intent:"danger",size:"md",onClick:()=>{t([e]),this.handleToggleRemoveBackupConfirmationPopup()},children:(0,P.jsx)(qd,{content:"backupActions.removeBackupConfirmationPopup.buttonRemove"})}),(0,P.jsx)(Be,{onClick:this.handleToggleRemoveBackupConfirmationPopup,size:"md",ghost:!0,className:`${s}__remove-backup-confirmation__button-cancel`,children:(0,P.jsx)(qd,{content:"backupActions.removeBackupConfirmationPopup.buttonCancel"})})]})]})}render(){return(0,P.jsxs)(M.Fragment,{children:[this.renderRestoreBackupConfirmationPopup(),this.renderBackupsDownloadButton(),this.renderRemoveBackupConfirmationPopup()]})}}tL.propTypes={installation:We().shape({features:We().shape({fileManager:We().shape({available:We().bool.isRequired})}).isRequired,id:We().number.isRequired,installationType:We().string.isRequired,owner:We().shape({login:We().string.isRequired})}).isRequired,backup:We().shape({fileName:We().string.isRequired,createDate:We().string.isRequired}).isRequired,disabled:We().bool,onCreateBackup:We().func.isRequired,onRestoreBackup:We().func.isRequired,onRemoveBackup:We().func.isRequired,apiUrl:We().string.isRequired,goToUri:We().func.isRequired,baseClassName:We().string,backupsUrl:We().string.isRequired},tL.defaultProps={disabled:!1,baseClassName:`${Rp}backup-actions`};const nL=mc((e=>({apiUrl:e.app.urls.apiUrl})),(e=>({goToUri:(t,n)=>e(hx(t,n))})))(tL),sL=e=>{const{columns:t,data:n,selection:s,onSelectionChange:i,onSortChange:a,sortColumn:r,sortDirection:o,className:l,rowProps:c,dataTestId:u}=e;return 0===n.length?(0,P.jsx)(mi,{style:{"padding-top":"10px"},children:(0,P.jsx)(ei,{intent:"muted",children:(0,P.jsx)(qd,{content:"CardList.notFound"})})}):(0,P.jsx)(Qr,{columns:t,data:n,selection:s,onSelectionChange:i,onSortChange:a,sortColumn:r,sortDirection:o,className:l,rowProps:c,"data-test-id":u})},iL=(e,t)=>(null==e?void 0:e.code)===t,aL="not_started",rL="running",oL="done",lL="error",cL=(e,t="danger")=>e.map((e=>(0,P.jsx)(ei,{intent:t,children:e},e))),uL=(e,t,n="danger")=>{if(!e.errors||e.errors.length<1)return t;let s=!1;if(t=t.map((t=>(s||t.status!==lL||(s=!0,t=Object.assign(Object.assign({},t),{children:cL(e.errors,n)})),t))),s)return t;let i=!1;if(t=t.map((t=>(i||t.status===oL||(i=!0,t=Object.assign(Object.assign({},t),{children:cL(e.errors,n)})),t))),i)return t;const a=t.pop();return a?(t.push(Object.assign(Object.assign({},a),{children:cL(e.errors,n)})),t):t},dL=(e,t,n=[])=>null===e?null:(KD(e)&&n.push((0,P.jsx)(Be,{intent:"secondary",onClick:t,children:(0,P.jsx)(qd,{content:"forms.backToFormButton"})},"backToFormButton")),{title:e.title,steps:hL(e),autoCloseTimeout:3e3,cancelable:!1,buttons:qD(e)?n:[]}),pL=e=>{switch(e){case"running":case"started":return rL;case"canceled":return"canceled";case"done":return oL;case"error":return lL;default:return aL}},hL=e=>{if(null===e)return[];let t=(n=e,Array.isArray(n.steps)?n.steps:Object.values(n.steps));var n;if(0===t.length&&t.push({title:e.title,status:pL(e.status),progress:e.progress||-1}),t=(e=>e.map((e=>{let t={title:e.title,status:e.status,progress:e.progress};const n=t.status===rL;return n&&e.hint&&(t=Object.assign(Object.assign({},t),{children:(0,P.jsx)(ei,{children:e.hint})})),n&&t.progress&&parseFloat(`${t.progress}`)>0&&(t=Object.assign(Object.assign({},t),{statusText:`${t.progress}%`})),t})))(t),(e=>e.length===e.filter((e=>e.status===aL)).length)(t)){let e=t.shift();e=Object.assign(Object.assign({},e),{status:rL}),t.unshift(e)}return KD(e)?t=uL(e,t,"danger"):qD(e)&&(t=uL(e,t,"warning")),t},mL="createBackup",fL="restoreBackup",gL={backupCreationBackgroundTaskId:null,backupCreationBackgroundTask:null,showBackupCreationBackgroundTaskDetails:!1,isBackupCreationBackgroundTaskProcessing:!1},bL={backupRestoringBackgroundTaskId:null,backupRestoringBackgroundTask:null,showBackupRestoringBackgroundTaskDetails:!1,isBackupRestoringBackgroundTaskProcessing:!1};class vL extends M.Component{constructor(e){super(e),this.setListData=()=>{this.setState({listData:this.props.backups.map((e=>{return{key:e.fileName,createDate:(t=e.createDate,_x().parseZone(t).format("YYYY-MM-DD HH:mm:ss")),fileSize:e.fileSize,fileName:e.fileName};var t}))})},this.getTotalSizeOfBackups=()=>{const{listData:e}=this.state,t=e.reduce(((e,t)=>e+Number(t.fileSize)),0);return this.formatBackupFileSize(t)},this.formatBackupFileSize=e=>`${Math.round(e/1048576)} MB`,this.isToolbarControlsDisabled=()=>this.state.isBackupCreationBackgroundTaskProcessing||this.state.isBackupRestoringBackgroundTaskProcessing,this.isBackupActionsDisabled=()=>this.state.isBackupCreationBackgroundTaskProcessing||this.state.isBackupRestoringBackgroundTaskProcessing,this.isBackupCreateActionDisabled=()=>this.props.limits.backupsLimitExceeded,this.handleUpdateBackupCreationBackgroundTaskOnFinish=()=>{const{backupCreationBackgroundTask:{steps:e,errors:t}}=this.state,n=Object.assign({},e);t&&0!==t.length?n[mL]=Object.assign(Object.assign({},n[mL]),{title:(0,P.jsx)(qd,{content:"backupList.backupCreationProgress.taskIsFailed"})}):n[mL]=Object.assign(Object.assign({},n[mL]),{title:(0,P.jsx)(qd,{content:"backupList.backupCreationProgress.taskIsFinished"})}),this.setState((e=>({backupCreationBackgroundTask:Object.assign(Object.assign({},e.backupCreationBackgroundTask),{steps:n})})))},this.handleOnReceiveBackupCreationBackgroundTaskData=()=>{const{backupCreationBackgroundTaskId:e,backupCreationBackgroundTask:t}=this.state,{installation:{id:n},tasks:s,backupActions:{instanceBackupCreationFinished:i,instanceBackupCreationFinishedWithError:a}}=this.props;if(!e)return;const r=XD(e,s);r&&t!==r&&this.setState({backupCreationBackgroundTask:r},(()=>{qD(r)&&(this.setState({isBackupCreationBackgroundTaskProcessing:!1}),this.handleUpdateBackupCreationBackgroundTaskOnFinish()),GD(r)?(this.setState({showBackupCreationBackgroundTaskDetails:!1}),i(n)):KD(r)&&a()}))},this.handleCreateBackup=()=>{const{isBackupCreationBackgroundTaskProcessing:e}=this.state,{backupActions:{createInstanceBackup:t},appActions:{addErrorMessage:n},installation:{id:s}}=this.props;e||(this.setState({isBackupCreationBackgroundTaskProcessing:!0}),t(s).then((e=>{if(!e)return;if(e.message)return void n(e.message);const{task:t}=e;t&&this.setState({showBackupCreationBackgroundTaskDetails:!0,backupCreationBackgroundTask:null,backupCreationBackgroundTaskId:t.id})})).catch((()=>{this.setState({isBackupCreationBackgroundTaskProcessing:!1})})))},this.handleUpdateBackupRestoringBackgroundTaskOnFinish=()=>{const{backupRestoringBackgroundTask:{steps:e,errors:t}}=this.state,n=Object.assign({},e);t&&0!==t.length?n[fL]=Object.assign(Object.assign({},n[fL]),{title:(0,P.jsx)(qd,{content:"backupList.backupRestoringProgress.taskIsFailed"})}):n[fL]=Object.assign(Object.assign({},n[fL]),{title:(0,P.jsx)(qd,{content:"backupList.backupRestoringProgress.taskIsFinished"})}),this.setState((e=>({backupRestoringBackgroundTask:Object.assign(Object.assign({},e.backupRestoringBackgroundTask),{steps:n})})))},this.handleOnReceiveBackupRestoringBackgroundTaskData=()=>{const{backupRestoringBackgroundTaskId:e,backupRestoringBackgroundTask:t}=this.state,{installation:{id:n},tasks:s,backupActions:{instanceBackupRestoringFinished:i,instanceBackupRestoringFinishedWithError:a}}=this.props;if(!e)return;const r=XD(e,s);r&&t!==r&&this.setState({backupRestoringBackgroundTask:r},(()=>{qD(r)&&(this.setState({isBackupRestoringBackgroundTaskProcessing:!1}),this.handleUpdateBackupRestoringBackgroundTaskOnFinish()),GD(r)?(this.setState({showBackupRestoringBackgroundTaskDetails:!1}),i(n).catch((()=>{}))):KD(r)&&a()}))},this.handleRestoreBackup=(e,t)=>{const{isBackupRestoringBackgroundTaskProcessing:n}=this.state,{backupActions:{restoreInstanceBackup:s},appActions:{addErrorMessage:i},installation:{id:a}}=this.props;n||(this.setState({isBackupRestoringBackgroundTaskProcessing:!0}),s(a,e.fileName,t).then((e=>{if(!e)return;if(e.message)return void i(e.message);const{task:t}=e;t&&this.setState({showBackupRestoringBackgroundTaskDetails:!0,backupRestoringBackgroundTask:null,backupRestoringBackgroundTaskId:t.id})})).catch((()=>{this.setState({isBackupRestoringBackgroundTaskProcessing:!1})})))},this.handleLoadInstanceBackupList=()=>{const{backupActions:{loadInstanceBackupsMetaData:e},installation:{id:t}}=this.props;this.setState({isBackupListLoading:!0}),e(t).then((({data:e})=>{this.setState({backupsDirName:e.meta.dirName,backupsUrl:e.meta.fileManagerUrl}),this.setListData()})).finally((()=>{this.setState({isBackupListLoading:!1})}))},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleRemoveBackup=e=>{const{backupActions:{removeInstanceBackups:t},installation:{id:n}}=this.props;t(n,e).then((()=>{this.handleLoadInstanceBackupList()}))},this.handleToggleRemoveBackupConfirmationPopup=()=>this.setState((e=>({showRemoveBackupConfirmation:!e.showRemoveBackupConfirmation}))),this.getColumns=()=>[{key:"createDate",title:(0,P.jsx)(qd,{content:"backupList.columns.createDate"}),width:"25%"},{key:"fileSize",title:(0,P.jsx)(qd,{content:"backupList.columns.fileSize"}),width:"10%",render:e=>this.formatBackupFileSize(e.fileSize)},{key:"fileName",truncate:!0,title:(0,P.jsx)(qd,{content:"backupList.columns.fileName"}),width:"50%",render:({fileName:e})=>(0,P.jsx)("span",{"data-test-id":"instance-backups-drawer-filename",children:e})},{key:"actions",width:"15%",align:"right",render:e=>(0,P.jsx)(nL,{backupsUrl:this.state.backupsUrl,installation:this.props.installation,backup:e,onCreateBackup:this.handleCreateBackup,onRestoreBackup:this.handleRestoreBackup,onRemoveBackup:this.handleRemoveBackup,disabled:this.isBackupActionsDisabled()})}],this.renderToolbar=()=>{const{showRemoveBackupConfirmation:e,selection:t}=this.state,{baseClassName:n}=this.props;return(0,P.jsxs)(Mi,{className:`${n}__toolbar`,children:[(0,P.jsx)(Ii,{title:"Create Backup",children:(0,P.jsx)(Be,{"data-test-id":"instance-backups-drawer-create-backup-button",intent:"primary",icon:bM("backup"),onClick:this.handleCreateBackup,disabled:this.isToolbarControlsDisabled()||this.isBackupCreateActionDisabled(),children:(0,P.jsx)(qd,{content:"backupList.toolbar.buttonCreate"})})}),(0,P.jsx)(Ii,{title:"Actions",children:(0,P.jsx)(Fs,{visible:e,target:(0,P.jsx)(Be,{onClick:this.handleToggleRemoveBackupConfirmationPopup,disabled:this.isToolbarControlsDisabled(),className:`${n}__toolbar__button-remove`,"data-test-id":gv,children:(0,P.jsx)(qd,{content:"backupList.toolbar.buttonRemove"})}),onClose:this.handleToggleRemoveBackupConfirmationPopup,placement:"top",children:0===t.length?(0,P.jsx)(Fa,{intent:"info",children:(0,P.jsx)(qd,{content:"backupList.removeBackupConfirmation.noBackupsToRemove"})}):(0,P.jsxs)("div",{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"backupList.removeBackupConfirmation.text"})}),(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{"data-test-id":"instance-backups-drawer-mass-remove-backup-confirm",intent:"danger",size:"md",onClick:()=>{this.handleRemoveBackup(t),this.handleToggleRemoveBackupConfirmationPopup()},children:(0,P.jsx)(qd,{content:"backupList.removeBackupConfirmation.buttonRemove"})}),(0,P.jsx)(Be,{onClick:this.handleToggleRemoveBackupConfirmationPopup,size:"md",ghost:!0,className:`${n}__remove-backup-confirmation__button-cancel`,children:(0,P.jsx)(qd,{content:"backupList.removeBackupConfirmation.buttonCancel"})})]})]})})})]})},this.renderBackupList=()=>{const{listData:e,selection:t,isBackupListLoading:n}=this.state,{baseClassName:s}=this.props;return n?(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"backupList.backupListLoading"})}):0===e.length?(0,P.jsx)(qd,{content:"backupList.noBackupsYet"}):(0,P.jsx)(sL,{columns:this.getColumns(),data:e,selection:t,onSelectionChange:this.handleSelectionChange,className:`${s}__list`,rowProps:e=>({"data-test-id":"instance-backups-drawer-item","data-test-filename":e.fileName})})},this.renderBackupInfo=()=>{const{installation:{features:{backups:e,fileManager:t},title:n},limits:{backupsLimit:s,backupsCount:i},baseClassName:a}=this.props,{backupsUrl:r,backupsDirName:o}=this.state;return(0,P.jsxs)("div",{children:[this.isBackupCreateActionDisabled()&&(0,P.jsx)(ml,{intent:"warning",children:(0,P.jsx)(qd,{params:{count:i,limit:s},content:"common.siteBackupsLimitExceeded"})}),e.panelBackupsAvailable&&(0,P.jsxs)(hi,{image:(0,P.jsx)(be,{name:bM("circle-info")}),children:[(0,P.jsx)(qd,{params:{siteName:n},content:"backupList.description"})," ",e.backupManagerUrl&&(0,P.jsx)(qd,{params:{link:(0,P.jsx)($M,{installation:this.props.installation})},content:"backupList.descriptionPanelBackups"})]}),(0,P.jsxs)(Pa,{className:`${a}__section`,children:[t.available&&r&&o&&(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"backupList.sectionItems.backupLocation.title"}),children:(0,P.jsx)(qd,{content:"backupList.sectionItems.backupLocation.content",params:{link:(0,P.jsx)(zM,{backupsUrl:this.state.backupsUrl,backupsDirName:this.state.backupsDirName,installation:this.props.installation})}})}),(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"backupList.sectionItems.totalSizeOfBackups"}),children:this.getTotalSizeOfBackups()})]})]})},this.state=Object.assign(Object.assign({backupsDirName:"",backupsUrl:"",listData:[],selection:[],showRemoveBackupConfirmation:!1,isBackupListLoading:!1},gL),bL)}componentDidMount(){this.props.isOpen&&this.handleLoadInstanceBackupList()}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadInstanceBackupList(),e.isOpen&&!this.props.isOpen&&this.props.backupActions.resetInstanceBackupList(),e.tasks!==this.props.tasks&&(this.handleOnReceiveBackupCreationBackgroundTaskData(),this.handleOnReceiveBackupRestoringBackgroundTaskData()),e.backups!==this.props.backups&&this.setListData()}render(){const{installation:{title:e},onClose:t,isOpen:n}=this.props,{backupCreationBackgroundTask:s,showBackupCreationBackgroundTaskDetails:i,backupRestoringBackgroundTask:a,showBackupRestoringBackgroundTaskDetails:r}=this.state;let o=null;return i&&s?o=s:r&&a&&(o=a),(0,P.jsx)(er,{title:(0,P.jsx)(qd,{content:"backupList.drawerTitle"}),subtitle:e,progress:dL(o,(()=>{this.setState({backupCreationBackgroundTask:null,backupRestoringBackgroundTask:null})})),hideButton:!1,"data-test-id":"instance-backups-drawer","data-type":"instance-backup",onClose:t,size:"lg",isOpen:n,children:(0,P.jsxs)("div",{children:[this.renderBackupInfo(),this.renderToolbar(),this.renderBackupList()]})})}}vL.propTypes={installation:We().shape({features:We().shape({backups:We().shape({backupManagerUrl:We().string,panelBackupsAvailable:We().bool.isRequired}),fileManager:We().shape({available:We().bool.isRequired})}).isRequired,id:We().number.isRequired,title:We().string.isRequired}).isRequired,onClose:We().func.isRequired,backupActions:We().shape({loadInstanceBackupsMetaData:We().func.isRequired,resetInstanceBackupList:We().func.isRequired,createInstanceBackup:We().func.isRequired,instanceBackupCreationFinished:We().func.isRequired,instanceBackupCreationFinishedWithError:We().func.isRequired,restoreInstanceBackup:We().func.isRequired,instanceBackupRestoringFinished:We().func.isRequired,instanceBackupRestoringFinishedWithError:We().func.isRequired,removeInstanceBackups:We().func.isRequired}).isRequired,appActions:We().shape({addErrorMessage:We().func.isRequired}).isRequired,tasks:We().array,backups:We().arrayOf(We().shape({createDate:We().string.isRequired,fileSize:We().number.isRequired,fileName:We().string.isRequired})).isRequired,limits:We().shape({backupsLimit:We().number,backupsCount:We().number.isRequired,backupsLimitExceeded:We().bool.isRequired}).isRequired,baseClassName:We().string,isOpen:We().bool.isRequired},vL.defaultProps={tasks:[],baseClassName:`${Rp}backup-list`};const yL=mc((e=>({tasks:e.backgroundTasks.tasks,backups:e.backup.list,limits:e.backup.limits})),(e=>({backupActions:kb(c,e),appActions:kb(t,e)})))(vL);class xL extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:{backupManagerUrl:e}}}}=this.props;return e?(0,P.jsx)("a",{href:e,target:"_blank",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.backupLink"})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:{backupManagerUrl:e}},owner:{login:t}},goToUri:n}=this.props;if(!e)return null;const s=Bv({link:e,inNewWindow:!0,goToUri:n,accountUsername:t});return(0,P.jsx)("a",Object.assign({},s,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.backupLink"})}))}}render(){const{installation:{features:{backups:{panelBackupsAvailable:e,backupManagerUrl:t}},installationType:n}}=this.props;return e&&t?UM(n)?this.renderPlesk():RM(n)?this.renderCpanel():null:null}}const _L=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(xL);class SL extends M.Component{constructor(e){super(e),this.handleDataLoaded=()=>{const{securityMeasuresInstallationStatus:e,fetchBackgroundTasks:t}=this.props;if(!e)return;const{checkSecurityTaskId:n,resolveSecurityTaskId:s,revertSecurityTaskId:i}=e;this.setState({securityCheckBackgroundTaskId:n,isCheckingSecurity:!!n,resolveCheckerBackgroundTaskId:s,isSecuring:!!s,revertCheckerBackgroundTaskId:i,isReverting:!!i}),this.setListData(),this.setDefaultSelection();let a=!1;if(n||s||i){const e=[];n&&e.push(n),s&&e.push(s),i&&e.push(i),t(ig.getTasksData,e.map((e=>({id:e,code:pD})))).then((e=>{0!==e.length?(a=!0,n&&this.handleOnReceiveSecurityCheckBackgroundTask(e),s&&this.handleOnReceiveResolveCheckerBackgroundTask(e),i&&this.handleOnReceiveRollbackCheckerBackgroundTask(e)):this.setState({isCheckingSecurity:!1,isSecuring:!1,isReverting:!1})}))}n||a||!this.isLastSecurityCheckTimestampInvalid()||this.handleCheckSecurity()},this.loadSecurityMeasuresInstallationStatus=()=>{const{reloadSecurityMeasuresPerInstallations:e,installation:{id:t}}=this.props;return e([t]).then((()=>{this.handleDataLoaded()})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.reloadInstallationSecurityMeasures=()=>{const{reloadSecurityMeasuresPerInstallations:e,installation:{id:t}}=this.props;return e([t])},this.handleOnReceiveSecurityCheckBackgroundTask=e=>{const{securityCheckBackgroundTaskId:t}=this.state;if(!t)return;const n=XD(t,e);n&&(qD(n)&&this.setState({selection:[],isCheckingSecurity:!1,securityCheckBackgroundTaskId:void 0},(()=>{this.reloadInstallationSecurityMeasures().finally(this.setDefaultSelection)})),GD(n)&&n.errors.length&&this.props.addErrorMessage(n.errors.join("\n")))},this.handleOnReceiveRollbackCheckerBackgroundTask=e=>{const{revertCheckerBackgroundTaskId:t}=this.state,{addSuccessMessage:n}=this.props;if(!t)return;const s=XD(t,e);s&&(qD(s)&&this.setState({selection:[],isReverting:!1,revertCheckerBackgroundTaskId:void 0},this.reloadInstallationSecurityMeasures),GD(s)&&(s.errors.length?this.props.addErrorMessage(s.errors.join("\n")):n("list-ui.instances.forms.security.revertSuccess",!0,"instanceSecurity")))},this.handleOnReceiveResolveCheckerBackgroundTask=e=>{const{resolveCheckerBackgroundTaskId:t}=this.state,{addSuccessMessage:n}=this.props;if(!t)return;const s=XD(t,e);s&&(qD(s)&&this.setState({selection:[],isSecuring:!1,resolveCheckerBackgroundTaskId:void 0},this.reloadInstallationSecurityMeasures),GD(s)&&(s.errors.length?this.props.addErrorMessage(s.errors.join("\n")):n("list-ui.instances.forms.security.resolveSuccess",!0,"instanceSecurity")))},this.setListData=()=>{const{isSecuring:e,isReverting:t}=this.state,{securityMeasures:n,securityMeasuresInstallationStatus:s}=this.props;if(!s)return;const i=new xD(n),a=[];n.forEach((n=>{i.isSecurityMeasureAvailable(n.id,s.securityMeasures)&&a.push(Object.assign(Object.assign({},n),{status:i.isSecurityMeasureResolvedForInstallation(n.id,s),key:n.id,disabled:e||t}))})),this.setState({listData:a})},this.setDefaultSelection=()=>{const{securityMeasures:e,securityMeasuresInstallationStatus:t}=this.props;if(!t)return;const n=new xD(e);this.setState({selection:n.getUnresolvedCriticalSecurityMeasures(t).map((e=>e.id))})},this.clearSelection=()=>{this.setState({selection:[]})},this.handleRevert=()=>{const{installation:e,revertSecurityCheckers:t,clearMessages:n}=this.props,{selection:s}=this.state;n(),this.setState({isReverting:!0}),t([e.id],s).then((e=>{this.setState({revertCheckerBackgroundTaskId:e.id})})).catch((()=>{this.setState({isReverting:!1})}))},this.handleSecure=()=>{const{installation:e,resolveSecurityCheckers:t,clearMessages:n}=this.props,{selection:s}=this.state;n(),this.setState({isSecuring:!0}),t([e.id],s).then((e=>{this.setState({resolveCheckerBackgroundTaskId:e.id})})).catch((()=>{this.setState({isSecuring:!1})}))},this.handleCheckSecurity=()=>{const{installation:e,checkSecurity:t,clearMessages:n}=this.props;n(),this.setState({isCheckingSecurity:!0}),t([e.id]).then((e=>{this.setState({securityCheckBackgroundTaskId:e.id})})).catch((()=>{this.setState({isCheckingSecurity:!1})}))},this.handleToggleBackupDrawer=()=>this.setState((e=>({showBackupDrawer:!e.showBackupDrawer}))),this.getAvailableInstallationSecurityMeasures=()=>{const{securityMeasuresInstallationStatus:e}=this.props;return e?e.securityMeasures.filter((e=>e.available)):[]},this.getListColumns=()=>[{key:"title",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.securityMeasuresList.columns.title"}),render:e=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("span",{children:e.title}),e.description&&e.description.length>0&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-instance-security_security-form_item-info wpt-mgl-5"}),placement:"top-right",children:e.description}),e.rollbackAvailable&&(0,P.jsxs)(ei,{className:"wpt-mgl-5",children:["(",(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]})},{key:"status",title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.securityMeasuresList.columns.status"}),sortable:!0,sort:(e,t)=>{const n=this.getListStatusColumnWeight(e),s=this.getListStatusColumnWeight(t);return n>s?1:n<s?-1:e.id>t.id?1:-1},render:this.getStatusColumn}],this.getListStatusColumnWeight=e=>{let t=e.status?0:1;return 1===t&&e.critical&&(t=2),t},this.getStatusColumn=e=>e.status?(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{icon:"circle-check-mark",intent:"success"}),placement:"top-left",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.alreadyResolved"})}):e.critical?(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{icon:"circle-exclamation-mark",intent:"danger"}),placement:"top-left",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.requiredToResolve"})}):(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{icon:"triangle-exclamation-mark",intent:"warning"}),placement:"top-left",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.recommendedToResolve"})}),this.state={securityCheckBackgroundTaskId:void 0,resolveCheckerBackgroundTaskId:void 0,revertCheckerBackgroundTaskId:void 0,listData:[],selection:[],isCheckingSecurity:!1,isSecuring:!1,isReverting:!1,isLoading:!0,showBackupDrawer:!1}}componentDidMount(){this.loadSecurityMeasuresInstallationStatus()}componentDidUpdate(e){e.securityMeasuresInstallationStatus!==this.props.securityMeasuresInstallationStatus&&this.setListData(),e.tasks!==this.props.tasks&&(this.handleOnReceiveSecurityCheckBackgroundTask(this.props.tasks),this.handleOnReceiveResolveCheckerBackgroundTask(this.props.tasks),this.handleOnReceiveRollbackCheckerBackgroundTask(this.props.tasks))}isLastSecurityCheckTimestampInvalid(){const{securityMeasuresInstallationStatus:e}=this.props;if(!e)return!0;const t=1e3*e.lastSecurityCheckTimestamp;return"unknown"===e.securityStatus||(new Date).getTime()-t>36e5||0===this.getAvailableInstallationSecurityMeasures().length}renderToolbar(){const{isUnpaid:e,securityMeasures:t,securityMeasuresInstallationStatus:n}=this.props;if(!n)return null;const{isSecuring:s,isReverting:i,isCheckingSecurity:a,selection:r}=this.state,o=n&&!n.resolveAndRevertAvailable,l=new xD(t),c=l.getUnresolvedSecurityMeasureAvailableForResolve(n.securityMeasures).some((e=>r.includes(e.id))),u=l.getResolvedSecurityMeasureAvailableForRevert(n.securityMeasures).some((e=>r.includes(e.id))),d=e||o||a||i||s||0===r.length||!c,p=s||i,h=e||o||a||s||i||0===r.length||!u;return(0,P.jsxs)(Mi,{className:"wpt-mgt-10 wpt-mgb-10",children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{intent:"primary",state:s?"loading":void 0,disabled:d,onClick:this.handleSecure,"data-test-id":"security-check-submit",tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hintButtonSecure"}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.buttonSecure"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"refresh",state:a?"loading":void 0,disabled:p,onClick:this.handleCheckSecurity,tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hintButtonCheckSecurity"}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.buttonCheckSecurity"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{state:i?"loading":void 0,disabled:h,"data-test-id":"security-revert-submit",onClick:this.handleRevert,tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.hintButtonRevert"}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.buttonRevert"})})})]})}renderLastSecurityCheckDatePanel(){const{securityMeasuresInstallationStatus:e}=this.props,{isCheckingSecurity:t}=this.state;if(t)return null;if(!e||!e.lastSecurityCheckTimestamp)return(0,P.jsx)(dl,{children:(0,P.jsx)(ei,{className:"wpt-instances-security_last-security-check-date",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.lastSecurityCheckDateIsUnknown"})})});const n=new Date(1e3*e.lastSecurityCheckTimestamp).toLocaleString();return(0,P.jsx)(dl,{children:(0,P.jsx)(ei,{className:"wpt-instances-security_last-security-check-date",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.lastSecurityCheckDate",params:{lastSecurityCheckDate:n}})})})}renderSecurityMeasuresList(){const{listData:e,selection:t,isCheckingSecurity:n,isSecuring:s,isReverting:i}=this.state,a=s||i;return n?(0,P.jsxs)("div",{className:"wpt-mgt-15",children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.checkingForSecurity"})]}):0===e.length?(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.noSecurityMeasures"}):(0,P.jsx)(Qr,{"data-test-id":"security-settings-list",className:a?"hided-mass-checkbox wpt-mgt-15":"wpt-mgt-15",columns:this.getListColumns(),data:e,selection:t,onSelectionChange:e=>this.setState({selection:e}),sortColumn:"status",sortDirection:"DESC"})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,installation:{id:n},premiumFeaturesUrl:s,securityMeasuresInstallationStatus:i}=this.props,a=i&&!i.resolveAndRevertAvailable;return e||a?(0,P.jsx)(Fv,{uatAction:Qv,purchaseLicenseUrl:t,premiumFeaturesUrl:s,installationId:n,children:(0,P.jsx)(qd,{content:"paidFeature.secureFeatureDescription"})}):null}renderBackupLink(){const{installation:{features:{backups:e}}}=this.props;return e.wptBackupsAvailable?(0,P.jsx)("a",{onClick:this.handleToggleBackupDrawer,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.backupLink"})}):e.panelBackupsAvailable?(0,P.jsx)(_L,{installation:this.props.installation}):(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.backupLink"})}render(){const{isCheckingSecurity:e,showBackupDrawer:t,isLoading:n}=this.state;return n?(0,P.jsx)(Rn,{}):(0,P.jsxs)(P.Fragment,{children:[this.renderPaidFeatureDesc(),(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.headDescription"}),this.renderToolbar(),this.renderLastSecurityCheckDatePanel(),!e&&(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.securityMeasuresListDescription",params:{link:this.renderBackupLink()}}),this.renderSecurityMeasuresList(),(0,P.jsx)(yL,{installation:this.props.installation,onClose:this.handleToggleBackupDrawer,isOpen:t})]})}}const wL=mc(((e,t)=>{const n=e.securityMeasures.securityMeasuresInstallationStatuses.find((e=>+e.id==+t.installation.id));return{securityMeasures:e.securityMeasures.securityMeasures,tasks:e.backgroundTasks.tasks,isUnpaid:!!e.app.unpaidFeatures[kp],upgradeUrl:e.app.urls.featuresBuyLinks[kp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,securityMeasuresInstallationStatus:n}}),(e=>({checkSecurity:kb(Qx,e),resolveSecurityCheckers:kb(Jx,e),revertSecurityCheckers:kb(Zx,e),fetchBackgroundTasks:kb(ZD,e),reloadSecurityMeasuresPerInstallations:kb(Xx,e)})))(SL),kL=mc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller}}),(e=>({updateVirtualPatchesProtectionStatus:kb(g_,e),displayErrorMessageFromMeta:kb(Bg,e)})))((({installation:e,hasActiveTasks:t,updateVirtualPatchesProtectionStatus:n,displayErrorMessageFromMeta:s,onOpenUpsellDialog:i,showVirtualPatchesUpsellWhenRestrictedViaPlans:a,isAdmin:r,baseClassName:o=`${Rp}virtual-patches-banner`})=>{const[l,c]=M.useState(!1),u=nM(e,a,r);return(0,P.jsxs)(ml,{intent:"info","data-test-id":"instance-security-vulnerabilities-virtual-patches-disabled-banner",children:[(0,P.jsx)(ei,{bold:!0,component:"div",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.title"})}),(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.message",params:{providerLogo:(0,P.jsx)(GI,{})}})}),(0,P.jsx)("br",{}),(0,P.jsx)(Be,{icon:u?"shield":"lock-closed",className:`${o}__top-margin10`,intent:"primary",onClick:u?()=>{c(!0),n({installationsIds:[e.id],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&s(e)})).finally((()=>c(!1)))}:()=>i(Qv),state:l||t?"loading":void 0,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.patchBtn"})})]})})),jL=()=>(0,P.jsx)(we,{icon:"shield",intent:"success",view:"light",size:"lg","data-test-id":"instance-security-vulnerabilities-virtual-patches-enabled-banner",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.popover.enabled.title",params:{providerLogo:(0,P.jsx)(GI,{})}})}),TL=[{key:"noPatch",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.noPatch.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.noPatch.description"},{key:"unlikelyExploited",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.unlikelyExploited.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.unlikelyExploited.description"},{key:"dbMatch",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.dbMatch.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.dbMatch.description"}],CL=({target:e,baseClassName:t=`${Rp}protect-info-popover`})=>(0,P.jsxs)(Fs,{target:e,placement:"bottom-right",width:"xs",children:[(0,P.jsx)(tr,{intent:"success",className:`${t}__message`,children:(0,P.jsxs)("div",{className:`${t}__messageBody`,children:[(0,P.jsx)(be,{name:"shield",size:"48",intent:"success",className:`${t}__messageIcon`}),(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.message"})]})}),TL.map((e=>(0,P.jsxs)("div",{className:`${t}__section`,children:[(0,P.jsx)(Ds,{level:5,children:(0,P.jsx)(qd,{content:e.title})}),(0,P.jsx)(ei,{fontSize:"sm",children:(0,P.jsx)(qd,{content:e.description})})]},e.key))),(0,P.jsx)("div",{children:(0,P.jsx)(XI,{})})]}),DL=({status:e,installation:t,onOpenVirtualPatchingUpsellDialog:n,baseClassName:s=`${Rp}virtual-patches`})=>e?(0,P.jsxs)("div",{className:`${s}__protected-container`,children:[(0,P.jsx)(jL,{}),(0,P.jsx)(CL,{target:(0,P.jsx)(we,{intent:"inactive",icon:"question-mark-circle-filled",size:"lg",view:"outline",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.title"})})})]}):(0,P.jsx)(kL,{installation:t,onOpenUpsellDialog:n}),PL=({contentLines:e=6,baseClassName:t=`${Rp}security-drawer-widget`})=>(0,P.jsx)(Ar,{className:E()(t,`${t}-loading`),view:"card",title:(0,P.jsxs)("div",{className:`${t}__header`,children:[(0,P.jsx)(Ds,{level:4,children:(0,P.jsx)(El,{width:"90%"})}),(0,P.jsx)(El,{width:24,height:24})]}),children:(0,P.jsx)(Rl,{lines:e})});const OL=e=>{var{title:t,titleIconProps:n,description:s,children:i,footer:a,itemCssClasses:r=[],baseClassName:o=`${Rp}security-drawer-widget`}=e,l=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["title","titleIconProps","description","children","footer","itemCssClasses","baseClassName"]);return(0,P.jsx)(Ar,Object.assign({className:E()(o,r),title:(0,P.jsxs)("div",{className:`${o}__header`,children:[(0,P.jsx)(Ds,{level:4,children:t}),(0,P.jsx)(be,Object.assign({size:"24"},n))]}),view:"card",description:s,footer:a},l,{children:(0,P.jsx)("div",{className:`${o}__body`,children:i})}))},IL=({items:e})=>{var t;return e.size>1?(0,P.jsx)("ul",{children:[...e.entries()].map((([e,t])=>t&&(0,P.jsx)("li",{children:t},e)))}):null!==(t=[...e.values()].shift())&&void 0!==t?t:null},ML=({installation:e,vulnerabilitiesList:{frankyVulnerabilities:t,relatedInstallationsIds:n,isLoading:s},baseClassName:i=`${Rp}widget-active-vulnerabilities`})=>{var a,r,o;const l=zd();if(s)return(0,P.jsxs)("div",{className:`${i}__wrapper`,children:[(0,P.jsx)(PL,{contentLines:6}),(0,P.jsx)(be,{name:"chevron-right",size:"32"})]});if(!n.length)return null;const c=null!==(o=null===(r=null===(a=null==e?void 0:e.features)||void 0===a?void 0:a.vulnerabilityFiltering)||void 0===r?void 0:r.status)&&void 0!==o&&o;let u=0,d=0,p=0,h=0,m=0,f=0;const g=new Map;t.forEach((e=>{if(!e.installations.length)return;e.installations.forEach((e=>{g.set(e.id,!0)}));let t=0;e.installations.forEach((e=>{e.virtualPatchApplied?m++:e.securityMeasuresApplied.length||!1===e.assetIsActive?f++:t++})),0!==t&&(c&&e.riskRank===kg?h+=e.installations.length:(u+=t,e.riskRank===Cg&&(d+=t),e.riskRank!==Cg&&e.riskRank!==Tg||(p+=t)))}));const b=new Map;return m>0&&b.set("addressedByProtection",(0,P.jsx)(mi,{children:l("drawer.security.widget.activeVulnerabilities.content.vulnerabilitiesAddressedByProtection",{vulnerabilitiesCount:m})})),f>0&&b.set("addressedByOtherMeans",(0,P.jsx)(mi,{children:l("drawer.security.widget.activeVulnerabilities.content.vulnerabilitiesAddressedByOtherMeans",{vulnerabilitiesCount:f})})),h>0&&b.set("ignored",(0,P.jsx)(mi,{children:l("drawer.security.widget.activeVulnerabilities.content.vulnerabilitiesIgnored",{vulnerabilitiesCount:h})})),(0,P.jsxs)("div",{className:`${i}__wrapper`,children:[(0,P.jsx)(OL,{title:l("drawer.security.widget.activeVulnerabilities.title",{vulnerabilitiesActive:u}),titleIconProps:u>0?{name:"exclamation-mark-circle-filled",intent:"danger"}:{name:"check-mark-circle-filled",intent:"success"},itemCssClasses:{[`${i}-danger`]:p>0,[`${i}-warning`]:p<1&&u>0,[`${i}-success`]:u<1},description:u<1||m>0||f>0?null:(0,P.jsx)(qd,{content:"drawer.security.widget.activeVulnerabilities.description"}),footer:(()=>{if(u<1)return e?(0,P.jsx)(qd,{content:"drawer.security.widget.activeVulnerabilities.footer.allGood.single","data-test-id":Lv}):(0,P.jsx)(qd,{content:"drawer.security.widget.activeVulnerabilities.footer.allGood.multiple","data-test-id":Lv});const t=[];return d>0&&t.push((0,P.jsxs)("span",{className:`${i}__footer_item`,children:[(0,P.jsx)(be,{name:"flag",intent:"danger"})," ",l("drawer.security.widget.activeVulnerabilities.footer.criticalVulnerabilitiesCounter",{vulnerabilitiesCount:d})]},"critical-counter")),!e&&g.size>0&&t.push((0,P.jsxs)("span",{className:`${i}__footer_item`,children:[(0,P.jsx)(be,{name:"globe"})," ",l("drawer.security.widget.activeVulnerabilities.footer.sitesCounter",{sitesCount:g.size})]},"sites-counter")),t.length?(0,P.jsx)("div",{children:t}):null})(),children:(0,P.jsx)(IL,{items:b})}),(0,P.jsx)(be,{name:"chevron-right",size:"32"})]})},LL=e=>{const t={vulnerabilities:[],vulnerabilitiesIds:new Set,idsOfInstallationsWithUpdatableComponents:new Set};return t.vulnerabilities=e.filter((e=>{const n=e.mitigations.some((e=>e.type===Og));return n&&(t.vulnerabilitiesIds.add(e.id),e.installations.forEach((e=>{t.idsOfInstallationsWithUpdatableComponents.add(e.id)}))),n})),t},AL=(e,t,n)=>(0,P.jsx)(OL,{title:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.title"}),titleIconProps:{name:"arrow-up-circle"},footer:e(),"data-test-id":"updates-widget",children:t>0?(0,P.jsx)(mi,{children:n("drawer.security.widget.updates.content.vulnerabilitiesCanBeEliminatedCounter",{vulnerabilitiesCount:t})}):(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.content.noUpdates"})})}),EL=(e,t,n=!0)=>(0,P.jsx)(BI,{state:e?"loading":void 0,onClick:t,icon:e?null:"refresh",tooltip:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.recheck"}),"data-test-id":"recheck",children:n&&(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.recheck"})}),RL=e=>e.reduce(((e,t)=>e+t.installations.length),0),UL=({isLoading:e,buttonIcon:t=null,buttonContent:n=null,buttonTooltip:s=null,buttonDataTestId:i,onPopoverShow:a=()=>Promise.resolve(),popoverTitle:r=null,popoverContent:o,popoverClassName:l="",confirmationButtonIntent:c,confirmationButtonContent:u,onConfirm:d})=>{const[p,h]=(0,M.useState)(!1);return(0,P.jsxs)(Fs,{title:r,visible:p,onClose:()=>{h(!1)},className:l,target:(0,P.jsx)(BI,Object.assign({state:e?"loading":void 0,icon:e?null:t,tooltip:s,onClick:()=>{a().then((()=>{h(!0)})).catch((()=>{}))}},i?{"data-test-id":i}:{},{children:n})),"data-test-id":"popover-with-confirmation",children:[o,(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{intent:c,onClick:()=>{h(!1),d()},"data-test-id":"submit",children:u})," ",(0,P.jsx)(Be,{onClick:()=>{h(!1)},ghost:!0,"data-test-id":"cancel",children:(0,P.jsx)(qd,{content:"drawer.security.widget.popover.button.cancel"})})]})]})},NL="true",FL="false",YL="disabledWithUpdates",HL="true",BL="false",VL="disabledWithUpdates";class $L extends M.Component{constructor(e){super(e),this.handleLoadData=()=>{const{installationId:e,getAutoUpdateSettings:t}=this.props;this.setState({isLoading:!0}),t(e).then((e=>{const{plugins:{forceUpdates:t,updateVulnerable:n,deactivateVulnerable:s},themes:{forceUpdates:i,updateVulnerable:a}}=e;this.setState(Object.assign(Object.assign({},e),{plugins:Object.assign(Object.assign({},e.plugins),{forceUpdates:t||!n&&!s?t.toString():YL}),themes:Object.assign(Object.assign({},e.themes),{forceUpdates:!i&&a?VL:i.toString()})}))})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.handleSubmit=({core:e,plugins:t,themes:n})=>{if(this.state.isProcessing)return;const{installationId:s,updateAutoUpdateSettings:i,onClose:a,addSuccessMessage:r,onClearDrawerMessages:o}=this.props;o(),this.setState({isProcessing:!0});const l={core:e,plugins:Object.assign(Object.assign({},t),{updateVulnerable:!1}),themes:Object.assign(Object.assign({},n),{updateVulnerable:!1})};t.forceUpdates===YL&&(l.plugins.forceUpdates=FL,l.plugins.updateVulnerable=!0),n.forceUpdates===VL&&(l.themes.forceUpdates=BL,l.themes.updateVulnerable=!0),t.forceUpdates===FL&&(l.plugins.deactivateVulnerable=!1),l.plugins.forceUpdates=l.plugins.forceUpdates===NL,l.themes.forceUpdates=l.themes.forceUpdates===HL,i(s,l).then((()=>{r("autoUpdatesSettings.autoUpdatesSettingsUpdatedSuccessfully",!0,"autoUpdatesSettingsUpdatedSuccessfully"),a()})).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1})}))},this.getFormParams=()=>{const{core:e,plugins:t,themes:n,isProcessing:s,isLoading:i}=this.state;return i?null:{onSubmit:this.handleSubmit,requiredMark:!1,values:{core:e,plugins:t,themes:n},state:s?"submit":void 0,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":av}}},this.renderPluginsFormFields=()=>{const{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,P.jsx)(gr,{name:"plugins[forceUpdates]",label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionLabel"}),value:FL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},s?{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:YL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates"),(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]}:null,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionLabel"}),value:NL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{forceUpdates:e})})))})},this.renderThemesFormFields=()=>{const{themes:{forceUpdates:e,newlyInstalledUpdates:t}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,P.jsx)(gr,{name:"themes[forceUpdates]",label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionLabel"}),value:BL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},n?{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:VL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]}:null,{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionLabel"}),value:HL,description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{forceUpdates:e})})))})},this.renderCoreFormFields=()=>(0,P.jsx)(gr,{name:"core",label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdatesLabel"}),value:this.state.core,options:[{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionLabel"}),value:"disabled",description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionDescription"})},{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionLabel"}),value:"minor",description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionDescription"})},{label:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionLabel"}),value:"major",description:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState({core:e})}),this.renderFormFields=()=>{const{isLoading:e}=this.state;return e?(0,P.jsx)(Rn,{}):(0,P.jsxs)(M.Fragment,{children:[this.renderCoreFormFields(),this.renderPluginsFormFields(),this.renderThemesFormFields()]})},this.state={core:"",plugins:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1},isProcessing:!1,isLoading:!1}}componentDidMount(){this.props.isOpen&&this.handleLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}render(){const{title:e,subtitle:t,isOpen:n,onClose:s,renderDrawerMessages:i}=this.props;return(0,P.jsxs)(er,{title:e,subtitle:t,isOpen:n,onClose:s,"data-type":"update-settings",form:this.getFormParams(),children:[i(),this.renderFormFields()]})}}$L.propTypes={installationId:We().number.isRequired,onClose:We().func.isRequired,addSuccessMessage:We().func.isRequired,getAutoUpdateSettings:We().func.isRequired,updateAutoUpdateSettings:We().func.isRequired,title:We().oneOfType([We().string,We().object]).isRequired,subtitle:We().oneOfType([We().string,We().object]).isRequired,isOpen:We().bool.isRequired,vulnerabilityFeatureEnabled:We().bool.isRequired,onClearDrawerMessages:We().func.isRequired,renderDrawerMessages:We().func.isRequired};const WL=mc((e=>({vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),(e=>({getAutoUpdateSettings:kb(ww,e),updateAutoUpdateSettings:kb(_w,e)})))(kC($L)),zL=({installation:e,baseClassName:t=`${Rp}auto-updates-popover`})=>{const[n,s]=(0,M.useState)(!1),[i,a]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(BI,{state:n?"loading":void 0,icon:n?null:"sliders",tooltip:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.updateSettings"}),onClick:()=>{a(!0)},"data-test-id":"settings-single",children:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.updateSettings"})}),(0,P.jsx)(WL,{title:e.displayTitle,subtitle:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.title"}),isOpen:i,installationId:e.id,onClose:()=>{a(!1)},addSuccessMessage:()=>{}})]})},qL=mc((e=>({vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses,runningCheckVulnerabilitiesTasks:e.vulnerabilities.runningCheckVulnerabilitiesTasks})),(e=>({checkInstallationsVulnerability:kb(_k,e),mitigateVulnerabilities:kb(f_,e)})))((({installation:e,checkInstallationsVulnerability:t,mitigateVulnerabilities:n,vulnerabilityMitigationsUpdatingStatuses:s,runningCheckVulnerabilitiesTasks:i,vulnerabilitiesList:{frankyVulnerabilities:a,relatedInstallationsIds:r,isLoading:o}})=>{const[l,c]=(0,M.useState)(!1),u=zd();if(o)return(0,P.jsx)(PL,{contentLines:3});if(!r.length)return null;const d=LL(a);return AL((()=>{const a=i.some((t=>t.installationsIds.includes(e.id)))||s.some((t=>d.vulnerabilitiesIds.has(t.vulnerabilityId)&&t.installationIds.includes(e.id))),r=new Map,o=[];d.vulnerabilities.forEach((t=>{var n,s,i;if(!t.assetUpdateVersion)return;const a=null!==(n=t.assetSlug)&&void 0!==n?n:"wordpress",l=`${t.assetType}:${a}`,c=null!==(s=r.get(l))&&void 0!==s?s:{componentType:t.assetType,title:null!==(i=t.assetTitle)&&void 0!==i?i:"",currentVersion:t.assetCurrentVersion,newVersion:t.assetUpdateVersion,vulnerabilitiesCounter:0};o.push({vulnerabilityId:t.id,installationsIds:[e.id],mitigations:[{type:Og,id:t.id,applied:!0}]}),c.vulnerabilitiesCounter++,r.set(l,c)}));const p=l||a;return(0,P.jsxs)(P.Fragment,{children:[d.vulnerabilities.length>0?(0,P.jsx)(UL,{isLoading:p,buttonIcon:"arrow-up-circle",buttonContent:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.reviewUpdates"}),buttonDataTestId:"review-single",popoverContent:(()=>{const e=[];return r.forEach(((t,n)=>{let s;switch(t.componentType){case RI:s=u("drawer.security.widget.updates.single.popover.coreRow",{currentVersion:t.currentVersion,newVersion:t.newVersion,vulnerabilitiesCount:t.vulnerabilitiesCounter});break;case UI:s=u("drawer.security.widget.updates.single.popover.pluginRow",{plugin:t.title,currentVersion:t.currentVersion,newVersion:t.newVersion,vulnerabilitiesCount:t.vulnerabilitiesCounter});break;case NI:s=u("drawer.security.widget.updates.single.popover.themeRow",{theme:t.title,currentVersion:t.currentVersion,newVersion:t.newVersion,vulnerabilitiesCount:t.vulnerabilitiesCounter})}e.push((0,P.jsx)("li",{children:s},n))})),(0,P.jsx)("ul",{children:e})})(),confirmationButtonIntent:"primary",confirmationButtonContent:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.popover.button.update"}),onConfirm:()=>{(e=>{c(!0),n(e).catch((()=>{})).finally((()=>{c(!1)}))})(o)}}):EL(p,(()=>{var n;n=[e.id],c(!0),t(n).catch((()=>{})).finally((()=>{c(!1)}))}))," ",(0,P.jsx)(zL,{installation:e})]})}),RL(d.vulnerabilities),u)})),GL="doNotChange",KL="true",XL="false",QL="disabledWithUpdates",JL="true",ZL="false";class eA extends M.Component{constructor(e){super(e),this.getPluginsAutoUpdateSettings=e=>{if(e.forceUpdates===GL)return null;const t=Object.assign(Object.assign({},e),{updateVulnerable:!1});return e.forceUpdates===QL&&(t.forceUpdates=XL,t.updateVulnerable=!0),e.forceUpdates===XL&&(t.deactivateVulnerable=!1),t.forceUpdates=e.forceUpdates===KL,t},this.getThemesAutoUpdateSettings=e=>{if(e.forceUpdates===GL)return null;const t=Object.assign(Object.assign({},e),{updateVulnerable:!1});return e.forceUpdates===QL&&(t.forceUpdates=XL,t.updateVulnerable=!0),t.forceUpdates=e.forceUpdates===JL,t},this.handleSubmit=({core:e,plugins:t,themes:n})=>{if(this.state.isProcessing)return;const{updates:s,updateInstallationsAutoUpdatesSettings:i,onClose:a,addSuccessMessage:r,onClearDrawerMessages:o}=this.props;if(e===GL&&t.forceUpdates===GL&&n.forceUpdates===GL)return void a();const l={};e!==GL&&(l.core=e);const c=this.getPluginsAutoUpdateSettings(t);null!==c&&(l.plugins=c);const u=this.getThemesAutoUpdateSettings(n);null!==u&&(l.themes=u);const d=s.map((e=>e.id));o(),this.setState({isProcessing:!0}),i(d,l).then((()=>{r("autoUpdatesSettings.autoUpdatesSettingsUpdatedSuccessfully",!0,"autoUpdatesSettingsUpdatedSuccessfully"),a()})).catch((()=>{this.setState({isProcessing:!1})}))},this.isUpdateFeatureDisabled=()=>{const{isUnpaid:e,updates:t}=this.props;return!(!t||!t.length||!e&&t.some((e=>e.autoUpdate.available)))},this.renderPaidFeatureDesc=()=>{const{upgradeUrl:e,premiumFeaturesUrl:t}=this.props;return this.isUpdateFeatureDisabled()?(0,P.jsx)(Fv,{uatAction:"CLICK_EXT_BUY_FROM_UPDATE_SETTINGS_FORM",purchaseLicenseUrl:e,premiumFeaturesUrl:t,children:(0,P.jsx)(qd,{content:"paidFeature.updateFeatureDescription"})}):null},this.getFormParams=()=>{const{core:e,plugins:t,themes:n,isProcessing:s}=this.state;return{onSubmit:this.handleSubmit,requiredMark:!1,values:{core:e,plugins:t,themes:n},state:s?"submit":void 0,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":av,disabled:this.isUpdateFeatureDisabled()}}},this.renderPluginsFormFields=()=>{const{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,P.jsx)(gr,{name:"plugins[forceUpdates]",label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.doNotChangeOptionLabel"}),value:GL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.doNotChangeOptionDescription"})},{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionLabel"}),value:XL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},s?{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:QL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates"),(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]}:null,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionLabel"}),value:KL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{forceUpdates:e})})))})},this.renderThemesFormFields=()=>{const{themes:{forceUpdates:e,newlyInstalledUpdates:t}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,P.jsx)(gr,{name:"themes[forceUpdates]",label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.doNotChangeOptionLabel"}),value:GL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.doNotChangeOptionDescription"})},{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionLabel"}),value:ZL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},n?{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:"disabledWithUpdates",description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]}:null,{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionLabel"}),value:JL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{forceUpdates:e})})))})},this.renderCoreFormFields=()=>{const{core:e}=this.state;return(0,P.jsx)(gr,{name:"core",label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.doNotChangeOptionLabel"}),value:GL,description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.doNotChangeOptionDescription"})},{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionLabel"}),value:"disabled",description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionDescription"})},{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionLabel"}),value:"minor",description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionDescription"})},{label:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionLabel"}),value:"major",description:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState({core:e})})},this.state={isProcessing:!1,core:GL,plugins:{forceUpdates:GL,newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:GL,newlyInstalledUpdates:!1,updateVulnerable:!1}}}render(){const{title:e,subtitle:t,isOpen:n,onClose:s,renderDrawerMessages:i}=this.props;return(0,P.jsxs)(er,{title:e,subtitle:t,isOpen:n,onClose:s,"data-type":"update-settings",form:this.getFormParams(),children:[this.renderPaidFeatureDesc(),i(),this.renderCoreFormFields(),this.renderPluginsFormFields(),this.renderThemesFormFields()]})}}eA.propTypes={updates:We().arrayOf(We().shape({id:We().number.isRequired,autoUpdate:We().shape({available:We().bool.isRequired}).isRequired})),onClose:We().func.isRequired,addSuccessMessage:We().func.isRequired,updateInstallationsAutoUpdatesSettings:We().func.isRequired,isUnpaid:We().bool.isRequired,upgradeUrl:We().string.isRequired,premiumFeaturesUrl:We().string,title:We().oneOfType([We().string,We().object]).isRequired,subtitle:We().oneOfType([We().string,We().object]).isRequired,isOpen:We().bool.isRequired,onClearDrawerMessages:We().func.isRequired,renderDrawerMessages:We().func.isRequired,vulnerabilityFeatureEnabled:We().bool},eA.defaultProps={updates:[],premiumFeaturesUrl:null,vulnerabilityFeatureEnabled:!1};const tA=mc((e=>({isUnpaid:e.app.unpaidFeatures[Cp],upgradeUrl:e.app.urls.featuresBuyLinks[Cp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),(e=>({updateInstallationsAutoUpdatesSettings:kb(Sw,e)})))(kC(eA)),nA=mc(((e,{installationsIds:t})=>({updates:t?e.updates.filter((e=>rp(t,e.id))):[]})))((({installationsIds:e,updates:t,onFetchInstallationsUpdates:n,baseClassName:s=`${Rp}auto-updates-popover`})=>{const[i,a]=(0,M.useState)(!1),[r,o]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(BI,{state:i?"loading":void 0,icon:i?null:"sliders",tooltip:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.updateSettings"}),onClick:()=>{a(!0),n().then((()=>{o(!0)})).catch((()=>{})).finally((()=>{a(!1)}))},"data-test-id":"settings-mass"}),(0,P.jsx)(tA,{title:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.title",params:{sitesCount:null==e?void 0:e.length}}),subtitle:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.subtitle"}),isOpen:r,updates:t,onClose:()=>{o(!1)},addSuccessMessage:()=>{}})]})})),sA=mc((e=>({vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses,runningCheckVulnerabilitiesTasks:e.vulnerabilities.runningCheckVulnerabilitiesTasks})),(e=>({checkInstallationsVulnerability:kb(_k,e),mitigateVulnerabilities:kb(f_,e)})))((({checkInstallationsVulnerability:e,mitigateVulnerabilities:t,vulnerabilityMitigationsUpdatingStatuses:n,runningCheckVulnerabilitiesTasks:s,vulnerabilitiesList:{relatedInstallationsIds:i,frankyVulnerabilities:a,isLoading:r},onFetchInstallationsUpdates:o})=>{const[l,c]=(0,M.useState)(!1),u=zd();if(r)return(0,P.jsx)(PL,{contentLines:3});if(!i.length)return null;const d=LL(a);return AL((()=>{const a=s.some((e=>e.installationsIds.some((e=>d.idsOfInstallationsWithUpdatableComponents.has(e)))))||n.some((e=>d.vulnerabilitiesIds.has(e.vulnerabilityId)&&e.installationIds.some((e=>d.idsOfInstallationsWithUpdatableComponents.has(e))))),r={cores:new Set,coresVulnerabilities:0,plugins:new Set,pluginsVulnerabilities:0,themes:new Set,themesVulnerabilities:0},p=[];d.vulnerabilities.forEach((e=>{e.assetUpdateVersion&&(e.installations.forEach((t=>{const n=`${t.id}:${e.assetType}:${e.assetSlug}`;switch(e.assetType){case RI:r.cores.add(t.id),r.coresVulnerabilities++;break;case UI:r.plugins.add(n),r.pluginsVulnerabilities++;break;case NI:r.themes.add(n),r.themesVulnerabilities++}})),p.push({vulnerabilityId:e.id,installationsIds:e.installations.map((e=>e.id)),mitigations:[{type:Og,id:e.id,applied:!0}]}))}));const h=100-d.idsOfInstallationsWithUpdatableComponents.size/i.length*100,m=i.length-d.idsOfInstallationsWithUpdatableComponents.size;return(0,P.jsx)(HI,{progressDescription:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.multi.footer.upToDateSitesCounter",params:{total:i.length,current:m}}),progress:l||a?-1:h,button:(0,P.jsxs)(P.Fragment,{children:[d.idsOfInstallationsWithUpdatableComponents.size>0?(0,P.jsx)(UL,{isLoading:l||a,buttonTooltip:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.button.reviewUpdates"}),buttonIcon:"arrow-up-circle",buttonDataTestId:"review-mass",popoverContent:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"drawer.security.widget.updates.multi.popover.summary"}),(0,P.jsxs)("ul",{children:[r.cores.size>0&&(0,P.jsx)("li",{children:u("drawer.security.widget.updates.multi.popover.coresCounter",{coresCounter:r.cores.size,vulnerabilitiesCounter:r.coresVulnerabilities})}),r.plugins.size>0&&(0,P.jsx)("li",{children:u("drawer.security.widget.updates.multi.popover.pluginsCounter",{pluginsCounter:r.plugins.size,vulnerabilitiesCounter:r.pluginsVulnerabilities})}),r.themes.size>0&&(0,P.jsx)("li",{children:u("drawer.security.widget.updates.multi.popover.themesCounter",{themesCounter:r.themes.size,vulnerabilitiesCounter:r.themesVulnerabilities})})]})]}),confirmationButtonIntent:"primary",confirmationButtonContent:(0,P.jsx)(qd,{content:"drawer.security.widget.updates.popover.button.update"}),onConfirm:()=>{(e=>{c(!0),t(e).catch((()=>{})).finally((()=>{c(!1)}))})(p)}}):EL(l||a,(()=>{var t;t=[...i],c(!0),e(t).catch((()=>{})).finally((()=>{c(!1)}))}),!1)," ",(0,P.jsx)(nA,{installationsIds:i,onFetchInstallationsUpdates:o})]})})}),RL(d.vulnerabilities),u)})),iA=e=>{const t=new Map;if(!e)return t;const{daysSinceFirstProtection:n,thirtyDays:s,total:i}=e;return null!==n&&(n>=30?t.set("thirtyDaysStats",(0,P.jsx)(mi,{"data-test-id":Iv,children:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.neutralized.thirtyDays",params:{vulnerabilitiesCount:s}})})):t.set("relativeDaysStats",(0,P.jsx)(mi,{"data-test-id":Iv,children:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.neutralized.relativeDays",params:{vulnerabilitiesCount:s,daysCount:n}})}))),i>s&&t.set("totalStats",(0,P.jsx)(mi,{"data-test-id":"blocked-all-time",children:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.neutralized.allTime",params:{vulnerabilitiesCount:i}})})),t},aA=({installation:e,onOpenVirtualPatchingUpsellDialog:t,hasActiveTasks:n,numberOfCanBeNeutralizedVulnerabilities:s,usageStatistics:i,showVirtualPatchesUpsellWhenRestrictedViaPlans:a,isAdmin:r})=>{const o=zd("drawer.security.widget.vulnerabilityProtection"),l=iA(i);if(e.features.virtualPatches.status)return(0,P.jsxs)(OL,{title:o("title.protectionEnabled.singleSite"),titleIconProps:{name:"shield-filled",intent:"success"},footer:(0,P.jsx)(lA,{buttonText:o("button.disable"),installationIds:[e.id],protectionStatus:!1,hasActiveTasks:n}),"data-test-id":Mv,children:[(0,P.jsx)(IL,{items:l}),(0,P.jsx)(hA,{})]});const c=nM(e,a,r)?(0,P.jsx)(lA,{buttonText:o("button.enable"),installationIds:[e.id],protectionStatus:!0,hasActiveTasks:n}):(0,P.jsx)(Be,{icon:"lock-closed",intent:"primary",state:n?"loading":void 0,onClick:()=>t(Qv),children:o("button.enable")});let u=l;return u.set("canBeNeutralized",(0,P.jsx)(pA,{number:s})),u=new Map([...u,...l]),(0,P.jsxs)(OL,{title:o("title.disabled"),titleIconProps:{name:"shield",intent:"inactive"},footer:c,"data-test-id":Mv,children:[(0,P.jsx)(dA,{}),(0,P.jsx)(IL,{items:u})]})},rA=({installationsIdsWithInactiveProtection:e,installationsIdsWithActiveProtection:t,numberOfCanBeNeutralizedVulnerabilities:n,isProtectionPaid:s,hasActiveTasks:i,usageStatistics:a})=>{const r=zd(),o=t.length,l=e.length,c=o+l,u=c>0?o/c*100:0,d=iA(a);if(l>0){const t=()=>(0,P.jsx)(rM,{renderManagingComponent:(t,n)=>t?(0,P.jsx)(BI,{icon:"lock-closed",state:i?"loading":void 0,onClick:t?n:void 0,disabled:i,children:r("drawer.security.widget.vulnerabilityProtection.button.enableAll")}):(0,P.jsx)(lA,{buttonText:r("drawer.security.widget.vulnerabilityProtection.button.enableAll"),installationIds:e,protectionStatus:!0,hasActiveTasks:i}),isPaid:s,uatAction:Jv});let a=new Map;return a.set("canBeNeutralized",(0,P.jsx)(pA,{number:n})),a=new Map([...a,...d]),(0,P.jsxs)(OL,{title:r("drawer.security.widget.vulnerabilityProtection.title.disabled"),titleIconProps:{name:"shield",intent:"inactive"},footer:(0,P.jsx)(HI,{progressDescription:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.sitesProtected",params:{total:c,current:o}}),progress:u,button:t()}),"data-test-id":Mv,children:[0===o&&(0,P.jsx)(dA,{}),(0,P.jsx)(IL,{items:a}),o>0&&(0,P.jsx)(hA,{})]})}return(0,P.jsxs)(OL,{title:r("drawer.security.widget.vulnerabilityProtection.title.protectionEnabled.multipleSites"),titleIconProps:{name:"shield-filled",intent:"success"},footer:(0,P.jsx)(HI,{progressDescription:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.sitesProtected",params:{total:c,current:o}}),progress:u,button:(0,P.jsx)(lA,{buttonText:r("drawer.security.widget.vulnerabilityProtection.button.disableAll"),installationIds:t,protectionStatus:!1,hasActiveTasks:i})}),"data-test-id":Mv,children:[(0,P.jsx)(IL,{items:d}),(0,P.jsx)(hA,{})]})},oA=({onSubmit:e,dataTestId:t,isButtonDisabled:n=!1,isButtonLoading:s=!1,baseClassName:i=`${Rp}virtual-patches-consent`})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:`${i}__popover-content`,children:[(0,P.jsx)(qd,{component:mi,content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.disablingConsentForm.description"}),(0,P.jsx)("div",{className:`${i}__popover-content-item`,children:(0,P.jsx)(XI,{})})]}),(0,P.jsx)(Be,{id:ov,"data-test-id":t,disabled:n,state:s?"loading":void 0,onClick:e,size:"md",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.disablingConsentForm.button"})})]}),lA=mc(void 0,(e=>({updateVirtualPatchesProtectionStatus:kb(g_,e)})))((({buttonText:e,protectionStatus:t,installationIds:n,hasActiveTasks:s,updateVirtualPatchesProtectionStatus:i})=>(0,P.jsx)(ZI,{onHandleApplyVirtualPatches:e=>i({installationsIds:n,status:t,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0},e),renderManagingComponent:(t,n,i)=>(0,P.jsx)(BI,{state:s||n?"loading":void 0,onClick:i,disabled:t,children:e}),Consent:t?tM:oA}))),cA=e=>{const{baseClassName:t=`${Rp}vpatches-description`}=e;return zd(),(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:`${t}-description`,children:(0,P.jsxs)("ul",{children:[(0,P.jsx)("li",{children:(0,P.jsx)(qd,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description1"})}),(0,P.jsx)("li",{children:(0,P.jsx)(qd,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description2"})}),(0,P.jsx)("li",{children:(0,P.jsx)(qd,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description3"})})]})}),(0,P.jsx)("div",{className:`${t}-poweredBy`,children:(0,P.jsx)(XI,{})})]})},uA=e=>{const{target:t,baseClassName:n=`${Rp}virtual-patches-info-popover`}=e;return(0,P.jsx)(Fs,{title:(0,P.jsx)(qd,{unsafe:!0,content:"controllers.index.detail.virtualPatches.popoverTitle"}),target:t,children:(0,P.jsx)("div",{className:`${n}__content-item`,children:(0,P.jsx)(cA,{})})})},dA=()=>(0,P.jsxs)(mi,{children:[(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.description"})," ",(0,P.jsx)(uA,{target:(0,P.jsx)(Cs,{children:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.description.activeText"})})})]}),pA=({number:e})=>{const t=zd();return(0,P.jsx)(mi,{"data-test-id":"can-block",children:t("drawer.security.widget.vulnerabilityProtection.canBeNeutralized",{number:e})})},hA=()=>(0,P.jsx)(mi,{children:(0,P.jsx)(CL,{target:(0,P.jsx)(Cs,{children:(0,P.jsx)(qd,{content:"drawer.security.widget.vulnerabilityProtection.somethingsNotNeutralized"})})})}),mA=mc((e=>({showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller})),(e=>({calculateVulnerabilityProtectionUsageStatistics:kb(Yk,e)})))((e=>{const{installation:t,installationsIdsWithInactiveProtection:n,installationsIdsWithActiveProtection:s,onOpenVirtualPatchingUpsellDialog:i,isProtectionPaid:a,calculateVulnerabilityProtectionUsageStatistics:r,vulnerabilitiesList:{frankyVulnerabilities:o,relatedInstallationsIds:l,isLoading:c},showVirtualPatchesUpsellWhenRestrictedViaPlans:u,isAdmin:d}=e,[p,h]=(0,M.useState)(!1),[m,f]=(0,M.useState)(void 0);if((0,M.useEffect)((()=>{!c&&l.length&&(h(!0),r(l).then((e=>{f(e)})).catch((()=>{f(void 0)})).finally((()=>{h(!1)})))}),[c,r,l]),c||p)return(0,P.jsx)(PL,{contentLines:8});if(!l.length)return null;const g=o.flatMap((e=>e.installations.filter((e=>e.virtualPatchAvailable&&!e.virtualPatchApplied)))).length,b=o.some((e=>e.hasActiveVirtualPatchesTasks));return t?(0,P.jsx)(aA,{installation:t,onOpenVirtualPatchingUpsellDialog:i,numberOfCanBeNeutralizedVulnerabilities:g,hasActiveTasks:b,usageStatistics:m,showVirtualPatchesUpsellWhenRestrictedViaPlans:u,isAdmin:d}):(0,P.jsx)(rA,{installationsIdsWithInactiveProtection:n,installationsIdsWithActiveProtection:s,numberOfCanBeNeutralizedVulnerabilities:g,hasActiveTasks:b,isProtectionPaid:a,usageStatistics:m})}));var fA=r(36246),gA=r.n(fA);const bA=e=>{var t;const{installationsVulnerabilityStatuses:n,virtualPatchesUpdatingStatuses:s,installationsWithoutRestrictionsForVirtualPatches:i}=e,a=null===(t=e.installation)||void 0===t?void 0:t.id;return(0,M.useMemo)((()=>{const e=[],t=[];return n.forEach((n=>{if(void 0!==a&&a!==n.id)return;const s={installationId:n.id,instanceDisplayTitle:n.displayTitle};e.push(s.installationId),t.push(...n.core.vulnerabilities.map((e=>Object.assign({id:e.id,title:e.title,description:e.description,cvssScore:e.cvssScore,riskRank:e.riskRank,providers:e.providers,disclosedAt:e.disclosedAt,exploited:e.exploited,directUrl:e.directUrl,mitigations:e.mitigations.map((e=>Object.assign({},e))),assetType:RI,assetId:n.id,assetSlug:null,assetTitle:null,assetVersion:n.core.version,assetHasUpdates:!!n.core.availableMinorVersion,assetUpdateVersion:n.core.availableMinorVersion,assetIsActive:!0},s)))),n.plugins.forEach((e=>{e.vulnerabilities.length>0&&t.push(...e.vulnerabilities.map((t=>Object.assign({id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations.map((e=>Object.assign({},e))),assetType:UI,assetId:e.slug,assetSlug:e.slug,assetTitle:e.title,assetVersion:e.version,assetHasUpdates:!!e.availableVersion,assetUpdateVersion:e.availableVersion,assetIsActive:e.status},s))))})),n.themes.forEach((e=>{e.vulnerabilities.length>0&&t.push(...e.vulnerabilities.map((t=>Object.assign({id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations.map((e=>Object.assign({},e))),assetType:NI,assetId:e.slug,assetSlug:e.slug,assetTitle:e.title,assetVersion:e.version,assetHasUpdates:!!e.availableVersion,assetUpdateVersion:e.availableVersion,assetIsActive:e.status},s))))}))})),Object.values(t.reduce(((e,t)=>{if(Object.keys(e).includes(t.id)){const n=e[t.id];if(!n.installations.find((e=>e.id===t.installationId))){const e=t.mitigations.filter((e=>!0===e.applied)),s=e.filter((e=>e.type===Dg));n.installations.push({id:t.installationId,displayTitle:t.instanceDisplayTitle,assetIsActive:t.assetIsActive,virtualPatchApplied:e.some((e=>e.type===Pg)),securityMeasuresApplied:s.map((e=>e.id)),virtualPatchAvailable:t.mitigations.some((e=>e.type===Pg))&&(null==i?void 0:i.includes(t.installationId))})}n.hasActiveVirtualPatchesTasks=s.some((e=>e.installationIds.filter((e=>n.installations.map((e=>e.id)).includes(e))))),n.assets.find((e=>e.id===t.assetId))||n.assets.push({id:t.assetId,slug:t.assetSlug,title:t.assetTitle,version:t.assetVersion,hasUpdates:t.assetHasUpdates,isActive:t.assetIsActive,type:t.assetType,installationId:t.installationId}),t.assetHasUpdates&&n.assetUpdateVersion&&t.assetUpdateVersion&&1===gA()(t.assetUpdateVersion,n.assetUpdateVersion)&&(n.assetUpdateVersion=t.assetUpdateVersion),t.mitigations.forEach((e=>{if(!e.applied){const t=n.mitigations.find((t=>t.id===e.id&&e.type===t.type));t&&(t.applied=!1)}}))}else{const n=t.mitigations.filter((e=>!0===e.applied)),a=n.filter((e=>e.type===Dg));e[t.id]={id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations,assetType:t.assetType,assetSlug:t.assetSlug,assetTitle:t.assetTitle,assetUpdateVersion:t.assetUpdateVersion?t.assetUpdateVersion:null,assetCurrentVersion:t.assetVersion,assets:[{id:t.assetId,slug:t.assetSlug,title:t.assetTitle,version:t.assetVersion,hasUpdates:t.assetHasUpdates,isActive:t.assetIsActive,type:t.assetType,installationId:t.installationId}],installations:[{id:t.installationId,displayTitle:t.instanceDisplayTitle,assetIsActive:t.assetIsActive,virtualPatchApplied:n.some((e=>e.type===Pg)),securityMeasuresApplied:a.map((e=>e.id)),virtualPatchAvailable:t.mitigations.some((e=>e.type===Pg))&&(null==i?void 0:i.includes(t.installationId))}],hasActiveVirtualPatchesTasks:s.some((e=>e.installationIds.filter((e=>t.installationId===e))))}}return e}),{}))}),[n,s,i,a])},vA=e=>(0,M.useMemo)((()=>e.map((e=>e.id))),[e]),yA=(e,{installation:t,installationsIds:n})=>{var s;return{installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses,installationsWithoutRestrictionsForVirtualPatches:(null===(s=e.instances.installations)||void 0===s?void 0:s.filter((e=>t?e.id===t.id:!n.length||n.includes(e.id))).filter((({features:{virtualPatches:{restrictions:t}}})=>!sM(t,e.app.options.isAdmin&&!e.app.options.isReseller,e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans))).map((e=>e.id)))||[],virtualPatchesUpdatingStatuses:e.vulnerabilities.virtualPatchesUpdatingStatuses}},xA=e=>({fetchInstallationsVulnerabilityStatuses:kb(d_,e)}),_A=e=>{const t=e.displayName||e.name||"Component",n=t=>{const{installationsVulnerabilityStatuses:n,virtualPatchesUpdatingStatuses:s,fetchInstallationsVulnerabilityStatuses:i,installationsWithoutRestrictionsForVirtualPatches:a}=t,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(t,["installationsVulnerabilityStatuses","virtualPatchesUpdatingStatuses","fetchInstallationsVulnerabilityStatuses","installationsWithoutRestrictionsForVirtualPatches"]),[o,l]=(0,M.useState)(!0),c={vulnerabilitiesList:{frankyVulnerabilities:bA(t),relatedInstallationsIds:vA(n),isLoading:o,onLoad:e=>(l(!0),i(e).catch((()=>{})).finally((()=>{l(!1)}))),installationsWithoutRestrictionsForVirtualPatches:a}};return(0,P.jsx)(e,Object.assign({},c,r))};return n.displayName=`withVulnerabilitiesList(${t})`,mc(yA,xA)(n)};class SA extends M.Component{constructor(e){super(e),this.handleClose=()=>{this.props.onClose()},this.setActiveTab=e=>this.setState({activeTab:e}),this.handleRefreshInstallationsVulnerabilityStatuses=e=>{const{reloadInstallationsVulnerabilityStatuses:t}=this.props;return t(e).catch((()=>{}))},this.renderSecurityForm=()=>{const{installation:e,onClearDrawerMessages:t,onAddDrawerErrorMessage:n,onAddDrawerSuccessMessage:s}=this.props;return(0,P.jsx)(EI,{children:(0,P.jsx)(wL,{installation:e,clearMessages:t,addSuccessMessage:s,addErrorMessage:n})})},this.renderVulnerabilityProtectionHeader=()=>{const{installation:e,onOpenVirtualPatchingUpsellDialog:t,showWidgetsInVulnerabilitiesDrawer:n,vulnerabilitiesList:s,isAdmin:i,virtualPatchesFeatureEnabled:a}=this.props,{features:{virtualPatches:{restrictions:r}}}=e,o=a&&s.installationsWithoutRestrictionsForVirtualPatches.includes(e.id);return n?(0,P.jsxs)(Rr,{sm:3,gap:"xs",stretchable:!0,hoverable:!1,"data-test-id":Ov,children:[(0,P.jsx)(ML,{vulnerabilitiesList:s,installation:e}),o?(0,P.jsx)(mA,{vulnerabilitiesList:s,onOpenVirtualPatchingUpsellDialog:t,installation:e}):null,(0,P.jsx)(qL,{vulnerabilitiesList:s,installation:e})]}):o?(0,P.jsx)(DL,{status:e.features.virtualPatches.status||!1,installation:e,onOpenVirtualPatchingUpsellDialog:t}):null},this.getContent=()=>{const{installation:e,vulnerabilityFeatureEnabled:t,onOpenVirtualPatchingUpsellDialog:n,vulnerabilitiesList:s}=this.props,{activeTab:i}=this.state;return t?(0,P.jsxs)(P.Fragment,{children:[this.renderVulnerabilityProtectionHeader(),(0,P.jsxs)(vl,{active:i,children:[(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.vulnerabilityTabTitle"}),onActivate:()=>this.setActiveTab(1),"data-test-id":"instance-security-tab-vulnerabilities",children:(0,P.jsx)(gM,{vulnerabilitiesList:s,onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,installation:e,onOpenVirtualPatchingUpsellDialog:n})}),(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.securityTabTitle"}),onActivate:()=>this.setActiveTab(2),children:this.renderSecurityForm()})]})]}):this.renderSecurityForm()},this.state={activeTab:e.activeTab?e.activeTab:2}}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData()}handleOpenAndLoadData(){this.setActiveTab(this.props.activeTab?this.props.activeTab:2),this.props.vulnerabilitiesList.onLoad([this.props.installation.id]).catch((()=>{}))}render(){const{isOpen:e,renderDrawerMessages:t,title:n,subtitle:s,baseClassName:i}=this.props;return(0,P.jsxs)(er,{title:n,subtitle:s,isOpen:e,onClose:this.handleClose,"data-test-id":"security-check","data-type":"instance-security",size:"lg",className:i,children:[t(),this.getContent()]})}}SA.defaultProps={activeTab:2,baseClassName:`${Rp}security-drawer`};const wA=mc((e=>({installations:e.instances.installations,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showWidgetsInVulnerabilitiesDrawer:e.app.options.showWidgetsInVulnerabilitiesDrawer,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature})),(e=>({reloadInstallationsVulnerabilityStatuses:kb(p_,e)})))(_A(kC(SA))),kA="activeVulnerable",jA="inactiveVulnerable";class TA extends M.Component{constructor(e){super(e),this.initListData=()=>{this.setState({listData:this.getListData()},this.updateShowedListData)},this.updateShowedListData=()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedListData:t})},this.applyFilter=()=>{const{listData:e,filter:t}=this.state;return(e||[]).filter((e=>{switch(t){case kA:return e.vulnerable;case jA:return!e.vulnerable&&(e.inactiveVulnerablePlugins.length>0||e.inactiveVulnerableThemes.length>0);default:return!0}}))},this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({listData:e}=this.state),(e||[]).filter((e=>!n||-1!==e.websiteUrl.toLowerCase().indexOf(n)))},this.getSelectedInstancesForUpdate=()=>{const{showedListData:e,selection:t}=this.state;return(e||[]).filter((e=>(!t.length||t.includes(e.id))&&(e.hasUpdates||e.vulnerablePlugins.some((e=>!!e.availableVersion))||e.vulnerableThemes.some((e=>!!e.availableVersion)))&&e.applicable))},this.handleUpdate=()=>{const{instancesActions:{updateItems:e,vulnerabilityCheckerStatsUpdate:t}}=this.props,{isUpdating:n}=this.state;if(n)return;const s=this.getSelectedInstancesForUpdate();if(!s.length)return;const i=s.map((e=>({installationId:+e.id,core:{update:e.hasUpdates,restorePoint:!1},plugins:e.vulnerablePlugins.filter((e=>!!e.availableVersion)).map((e=>e.slug)),themes:e.vulnerableThemes.filter((e=>!!e.availableVersion)).map((e=>e.slug))})));t("update"),this.setState({isUpdating:!0,instancesIdsForVulnerabilityStatusesUpdate:s.map((e=>e.id))}),e(i).then((e=>{this.setState({updateBackgroundTaskId:e.id})})).catch(this.handleOnCompleteUpdate)},this.handleOnReceiveUpdateBackgroundTaskData=e=>{const{onRefreshInstallationsVulnerabilityStatuses:t}=this.props,{updateBackgroundTaskId:n,instancesIdsForVulnerabilityStatusesUpdate:s}=this.state;if(!n)return;const i=XD(n,e);i&&qD(i)&&t(s).finally((()=>this.handleOnCompleteUpdate()))},this.handleOnCompleteUpdate=()=>{this.setState({isUpdating:!1,updateBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]})},this.handleCheckVulnerability=()=>{const{instancesActions:{checkInstallationsVulnerability:e}}=this.props,{showedListData:t,selection:n}=this.state,s=n.length?n:(t||[]).map((e=>e.id));this.setState({isCheckingVulnerability:!0,instancesIdsForVulnerabilityStatusesUpdate:s}),e(s).then((e=>{this.setState({checkInstallationsVulnerabilityBackgroundTaskId:e.id})})).catch((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData=e=>{const{onRefreshInstallationsVulnerabilityStatuses:t}=this.props,{checkInstallationsVulnerabilityBackgroundTaskId:n,instancesIdsForVulnerabilityStatusesUpdate:s}=this.state;if(!n)return;const i=XD(n,e);i&&qD(i)&&t(s).finally((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnCompleteCheckInstallationsVulnerability=()=>{this.setState({isCheckingVulnerability:!1,checkInstallationsVulnerabilityBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]})},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleSearch=e=>this.setState({search:e},this.updateShowedListData),this.handleFilter=e=>this.setState({filter:e},this.updateShowedListData),this.getListData=()=>{const{installationsVulnerabilityStatuses:e}=this.props;return e.map((e=>{const t=[],n=[],s=[];e.plugins.forEach((e=>{e.vulnerabilities.length>0&&t.push(e),e.vulnerabilities.length>0&&e.status&&n.push(e),e.vulnerabilities.length>0&&!e.status&&s.push(e)}));const i=[],a=[],r=[];return e.themes.forEach((e=>{e.vulnerabilities.length>0&&i.push(e),e.vulnerabilities.length>0&&e.status&&a.push(e),e.vulnerabilities.length>0&&!e.status&&r.push(e)})),{id:e.id,websiteUrl:e.displayTitle,vulnerable:e.vulnerable,vulnerabilities:e.core.vulnerabilities,hasUpdates:!!e.core.availableVersion,applicable:e.applicable,vulnerablePlugins:t,activeVulnerablePlugins:n,inactiveVulnerablePlugins:s,vulnerableThemes:i,activeVulnerableThemes:a,inactiveVulnerableThemes:r}}))},this.getToolbar=()=>{const{isUpdating:e,isCheckingVulnerability:t,listData:n,filter:s}=this.state,{onChangeListView:i,isVulnerabilityFeatureUnpaid:a,isSitesFilterEnabled:r,onClearSitesFilter:o}=this.props,l=(n||[]).filter((e=>e.vulnerable)).length,c=(n||[]).filter((e=>!e.vulnerable&&(e.inactiveVulnerablePlugins.length>0||e.inactiveVulnerableThemes.length>0))).length,u=this.getSelectedInstancesForUpdate(),d=l>1?(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.sites"}):(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.site"});return(0,P.jsxs)(P.Fragment,{children:[r&&(0,P.jsxs)(ei,{component:"h2",children:[null==n?void 0:n.length," ",d," ",(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.affected"}),(0,P.jsx)(Be,{ghost:!0,icon:"filter",onClick:o,children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.showAll"})},"button")]}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"Update",children:(0,P.jsx)(bi,{noSelectionText:(0,P.jsx)(qd,{content:"instancesVulnerabilities.noSelectionText"}),actionButtonText:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonUpdateAll"}),children:(0,P.jsx)(Be,{intent:"primary",state:e?"loading":void 0,disabled:a||t||!u.length,onClick:this.handleUpdate,"data-test-id":"instances-security-sites-update-button",children:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonUpdate"})})})}),(0,P.jsx)(Ii,{title:"Check Vulnerability",children:(0,P.jsx)(Be,{icon:"refresh",state:t?"loading":void 0,disabled:e,onClick:this.handleCheckVulnerability,"data-test-id":"instances-security-sites-scan-button",tooltip:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonCheckVulnerability"})})}),(0,P.jsx)(ui,{}),(0,P.jsx)(Ii,{title:"Views",children:(0,P.jsx)(Zs,{multiple:!1,buttons:[{value:LI,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonVulnerabilities"}),"data-test-id":yv},{value:MI,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.buttonSites"}),"data-test-id":vv}],selected:MI,onChange:i})}),(0,P.jsx)(Ii,{title:"Search",children:(0,P.jsx)(_l,{onTyping:this.handleSearch})})]}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(ui,{}),(0,P.jsx)(Ii,{title:"Filter",children:(0,P.jsx)(Zs,{label:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.filterByLabel"}),labelPlacement:"left",buttons:[{value:"all",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.filter.showAllButton",params:{count:(null==n?void 0:n.length)||0}}),"data-test-id":"instances-security-sites-filter-all",disabled:!(null==n?void 0:n.length)},{value:kA,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.filter.activeVulnerableButton",params:{count:l}}),"data-test-id":"instances-security-sites-filter-active-vulnerable",disabled:0===l},{value:jA,title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.filter.inactiveVulnerableButton",params:{count:c}}),"data-test-id":"instances-security-sites-filter-inactive-vulnerable",disabled:0===c}],selected:s,onChange:this.handleFilter})})]})]})},this.getColumns=()=>[{key:"websiteUrl",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.websiteUrlColumn"})},{key:"wordPressCore",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.wordPressCoreColumn"}),render:e=>e.vulnerabilities.length>0?(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:"danger","data-test-id":"instances-security-vulnerable-wordpress-core-icon"}):(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.noWordPressCoreVulnerabilities"}),children:(0,P.jsx)(be,{name:"check-mark-circle",intent:"success"})})},{key:"plugins",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.pluginsColumn"}),render:e=>{const t=e.vulnerablePlugins.length,n=e.activeVulnerablePlugins.length,s=e.inactiveVulnerablePlugins.length;return t>0?(0,P.jsxs)(P.Fragment,{children:[n>0&&(0,P.jsx)("span",{"data-test-id":"instances-security-active-vulnerable-plugins-status",children:(0,P.jsx)(Fa,{intent:"danger",children:n})}),s>0&&(0,P.jsx)("span",{"data-test-id":"instances-security-inactive-vulnerable-plugins-status",children:(0,P.jsx)(Fa,{intent:"warning",children:s})})]}):(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerablePlugins"}),children:(0,P.jsx)(be,{name:"check-mark-circle",intent:"success"})})}},{key:"themes",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.themesColumn"}),render:e=>{const t=e.vulnerableThemes.length,n=e.activeVulnerableThemes.length,s=e.inactiveVulnerableThemes.length;return t>0?(0,P.jsxs)(P.Fragment,{children:[n>0&&(0,P.jsx)("span",{"data-test-id":"instances-security-active-vulnerable-themes-status",children:(0,P.jsx)(Fa,{intent:"danger",children:n})}),s>0&&(0,P.jsx)("span",{"data-test-id":"instances-security-inactive-vulnerable-themes-status",children:(0,P.jsx)(Fa,{intent:"warning",children:s})})]}):(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerableThemes"}),children:(0,P.jsx)(be,{name:"check-mark-circle",intent:"success"})})}},{key:"details",title:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.detailsColumn"}),render:e=>(0,P.jsx)(ye,{icon:"chevron-right",onClick:()=>this.props.onOpenInstanceSecurityDrawer(e.id,1)})}],this.state={isUpdating:!1,isCheckingVulnerability:!1,selection:[],search:"",filter:"all",listData:null,showedListData:null,updateBackgroundTaskId:null,checkInstallationsVulnerabilityBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]}}componentDidMount(){this.initListData()}componentDidUpdate(e){e.tasks!==this.props.tasks&&(this.handleOnReceiveUpdateBackgroundTaskData(this.props.tasks),this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData(this.props.tasks)),e.installationsVulnerabilityStatuses!==this.props.installationsVulnerabilityStatuses&&this.initListData()}render(){const{selection:e,showedListData:t,isUpdating:n,isCheckingVulnerability:s}=this.state;return t?(0,P.jsx)(Qr,{loading:n||s,columns:this.getColumns(),data:t,rowKey:"id",rowProps:e=>({"data-test-vulnerable-instance-id":e.id}),emptyView:(0,P.jsx)(qd,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerableWebsites"}),toolbar:this.getToolbar(),selection:e,onSelectionChange:this.handleSelectionChange,sortColumn:"websiteUrl",filtered:!0,"data-test-id":"instances-security-vulnerability-instances"}):(0,P.jsx)(Rn,{})}}TA.defaultProps={tasks:[]};const CA=mc((e=>({isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Op],tasks:e.backgroundTasks.tasks})),(e=>({instancesActions:kb(a,e)})))(TA);class DA extends M.Component{constructor(e){super(e),this.handleChangeListView=e=>this.setState({listView:e,shownInstallationsForSitesView:[]}),this.handleRefreshInstallationsVulnerabilityStatuses=e=>{const{reloadInstallationsVulnerabilityStatuses:t}=this.props;return t(e).catch((()=>{}))},this.getPaidFeatureDesc=()=>{const{isVulnerabilityFeatureUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n}=this.props;return e?(0,P.jsx)(Fv,{purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,P.jsx)(qd,{content:"paidFeature.vulnerabilityFeatureDescription"})}):null},this.handleChangeSiteViewInstallationsIds=e=>{this.setState({shownInstallationsForSitesView:e})},this.handleClearSitesFilter=()=>{this.setState({shownInstallationsForSitesView:[]})},this.getList=()=>{var e,t;const{onOpenInstanceSecurityDrawer:n,installationsVulnerabilityStatuses:s,isProtectionPaid:i,vulnerabilitiesList:a}=this.props,{shownInstallationsForSitesView:r}=this.state;return this.state.listView===LI?(0,P.jsx)(gM,{vulnerabilitiesList:a,onChangeListView:this.handleChangeListView,onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,onChangeSiteViewInstallationsIds:this.handleChangeSiteViewInstallationsIds,isProtectionPaid:i}):(0,P.jsx)(CA,{onChangeListView:this.handleChangeListView,onOpenInstanceSecurityDrawer:n,onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,installationsVulnerabilityStatuses:r.length>0?null!==(e=null==s?void 0:s.filter((e=>r.includes(e.id))))&&void 0!==e?e:[]:null!=s?s:[],isSitesFilterEnabled:r.length>0&&r.length<(null!==(t=null==s?void 0:s.length)&&void 0!==t?t:0),onClearSitesFilter:this.handleClearSitesFilter})},this.state={listView:e.instancesVulnerabilitiesListView||LI,shownInstallationsForSitesView:[]}}render(){return this.props.vulnerabilitiesList.isLoading?(0,P.jsx)(Rn,{}):(0,P.jsxs)(P.Fragment,{children:[this.getPaidFeatureDesc(),this.getList()]})}}DA.defaultProps={baseClassName:`${Rp}instances-vulnerabilities`};const PA=mc((e=>({instancesVulnerabilitiesListView:e.app.options.vulnerabilityFeatureSettings.instancesVulnerabilitiesListView,isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Op],upgradeUrl:e.app.urls.featuresBuyLinks[Op],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses})),(e=>({reloadInstallationsVulnerabilityStatuses:kb(p_,e)})))(DA);class OA extends M.Component{constructor(e){super(e),this.initializeVulnerabilities=()=>{this.props.vulnerabilitiesList.onLoad(this.props.installationsIds).catch((()=>{}))},this.setActiveTab=e=>this.setState({activeTab:e}),this.getInstallationById=e=>{var t;return null===(t=this.props.installations)||void 0===t?void 0:t.find((t=>t.id===e))},this.handleOpenInstanceSecurityDrawer=(e,t=void 0)=>{this.setState({showInstanceSecurityDrawerForInstanceId:e,showInstanceSecurityForm:!0,securityDrawerActiveTab:t})},this.handleCloseInstanceSecurityDrawer=()=>{this.initializeVulnerabilities(),this.setState({showInstanceSecurityForm:!1,securityDrawerActiveTab:void 0})},this.getInstanceSecurityDrawer=()=>{const{showInstanceSecurityDrawerForInstanceId:e,showInstanceSecurityForm:t,securityDrawerActiveTab:n}=this.state;if(!e)return null;const s=this.getInstallationById(e);return s?(0,P.jsx)(wA,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.instanceSecurityDrawerSubTitle"}),subtitle:s.title,installation:s,isOpen:t,onClose:this.handleCloseInstanceSecurityDrawer,activeTab:n,onOpenVirtualPatchingUpsellDialog:e=>this.props.onOpenVirtualPatchingUpsellDialog(s.id,e)}):null},this.renderInstancesSecurityForm=()=>{const{installationsIds:e,onClearDrawerMessages:t,onAddDrawerSuccessMessage:n,onAddDrawerErrorMessage:s}=this.props,{showInstanceSecurityDrawerForInstanceId:i}=this.state;return(0,P.jsx)(EI,{children:(0,P.jsx)(II,{selectedInstallationsIds:e,clearMessages:t,addSuccessMessage:n,addErrorMessage:s,currentInstallationId:i||void 0,onOpenInstanceSecurityDrawer:this.handleOpenInstanceSecurityDrawer})})},this.getContent=()=>{var e;const{vulnerabilityFeatureEnabled:t,showWidgetsInVulnerabilitiesDrawer:n,virtualPatchesFeatureEnabled:s,virtualPatchesLicenseInfo:i,isAdmin:a,showVirtualPatchesUpsellWhenRestrictedViaPlans:r,vulnerabilitiesList:o}=this.props,{activeTab:l}=this.state,c=(null===(e=this.props.installations)||void 0===e?void 0:e.filter((e=>o.relatedInstallationsIds.includes(e.id))))||[],u=!(({installations:e,virtualPatchesLicenseInfo:t,isAdmin:n,showVirtualPatchesUpsellWhenRestrictedViaPlans:s})=>{const i=e.some((e=>e.features.virtualPatches.restrictions.includes(Sg)))||!1,a=e.filter((e=>null!==e.features.virtualPatches.subscription&&[wg.Active,wg.Suspended].includes(e.features.virtualPatches.subscription.status))).map((e=>e.id))||[],r=e.every((({features:{virtualPatches:{restrictions:e}}})=>e.includes(_g)));return!(a.length>0)&&(!t||0===(null==t?void 0:t.installationsLimit)||!n&&(i||r&&s))})({installations:c,virtualPatchesLicenseInfo:i,isAdmin:a,showVirtualPatchesUpsellWhenRestrictedViaPlans:r}),d=s&&!!o.installationsWithoutRestrictionsForVirtualPatches.length,p=c.filter((e=>e.features.virtualPatches.status)).filter((e=>o.installationsWithoutRestrictionsForVirtualPatches.includes(e.id))).map((e=>e.id)),h=c.filter((e=>!e.features.virtualPatches.status)).filter((e=>o.installationsWithoutRestrictionsForVirtualPatches.includes(e.id))).map((e=>e.id));if(t){const{fetchAvailableUpdates:e,installationsIds:t}=this.props,s=()=>e(t);return(0,P.jsxs)(P.Fragment,{children:[n&&(0,P.jsxs)(Rr,{sm:3,gap:"xs",stretchable:!0,hoverable:!1,"data-test-id":Ov,children:[(0,P.jsx)(ML,{vulnerabilitiesList:o}),d?(0,P.jsx)(mA,{vulnerabilitiesList:o,installationsIdsWithActiveProtection:p,installationsIdsWithInactiveProtection:h,isProtectionPaid:u}):null,(0,P.jsx)(sA,{vulnerabilitiesList:o,onFetchInstallationsUpdates:s})]}),(0,P.jsxs)(vl,{active:l,children:[(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.vulnerabilityTabTitle"}),onActivate:()=>this.setActiveTab(1),"data-test-id":"instances-security-tab-vulnerabilities",children:(0,P.jsx)(PA,{vulnerabilitiesList:o,onOpenInstanceSecurityDrawer:this.handleOpenInstanceSecurityDrawer,isProtectionPaid:u})}),(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.securityTabTitle"}),onActivate:()=>this.setActiveTab(2),children:this.renderInstancesSecurityForm()})]})]})}return this.renderInstancesSecurityForm()},this.state={showInstanceSecurityForm:!1,showInstanceSecurityDrawerForInstanceId:null,activeTab:e.activeTab?e.activeTab:2,securityDrawerActiveTab:void 0}}componentDidMount(){this.props.isOpen&&this.initializeVulnerabilities()}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&(this.setActiveTab(this.props.activeTab?this.props.activeTab:2),this.initializeVulnerabilities())}render(){const{isOpen:e,onClose:t,renderDrawerMessages:n,baseClassName:s}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.drawerTitle"}),subtitle:(0,P.jsx)(qd,{content:"list-ui.instances.forms.instancesSecurity.drawerSubTitle"}),isOpen:e,size:"lg",onClose:t,"data-type":"instances-security",className:s,children:[n(),this.getContent()]}),this.getInstanceSecurityDrawer()]})}}OA.defaultProps={activeTab:2,baseClassName:`${Rp}instances-security-drawer`};const IA=mc((e=>({installations:e.instances.installations,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,virtualPatchesLicenseInfo:e.app.licenseInfo.virtualPatches,showWidgetsInVulnerabilitiesDrawer:e.app.options.showWidgetsInVulnerabilitiesDrawer,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans})),(e=>({fetchAvailableUpdates:kb(VS,e)})))(_A(kC(OA)));class MA extends M.Component{renderAssetUpdateVersion(){const{asset:e,updateAvailableTitle:t,handleUpdateAsset:n,blocked:s,baseClassName:i}=this.props;return!e.updateVersion||s?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("br",{}),(0,P.jsx)(Fa,{intent:"warning"})," ",t,(0,P.jsx)("br",{}),(0,P.jsxs)("div",{className:`${i}__action_wrapper`,children:[" [",(0,P.jsx)(ye,{onClick:()=>n(e),children:(0,P.jsx)(qd,{content:"list.assets.linkUpdateToVersion",params:{version:e.updateVersion}})}),"]"]}),e.updateDetailsUrl&&(0,P.jsxs)(P.Fragment,{children:[" [",(0,P.jsx)("a",{href:e.updateDetailsUrl,target:"_blank",children:(0,P.jsx)(qd,{content:"list.assets.linkUpdatesDetails"})}),"]"]})]})}render(){const{asset:e,publicUrl:t,uploadedTitle:n,onOpenSecurityDialog:s}=this.props,i=e.instances.map((e=>e.id)),a=e.instances.some((e=>e.isAssetActive));return(0,P.jsxs)(P.Fragment,{children:[e.isUploaded&&(0,P.jsx)(Oe,{title:n,children:(0,P.jsx)("img",{src:`${t}images/uploaded.png`,style:{marginRight:"5px"}})}),`${e.title} ${e.version}`,this.renderAssetUpdateVersion(),e.isVulnerable&&(0,P.jsx)("div",{children:i.length>0&&a?(0,P.jsx)(ye,{icon:(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:"danger",size:"16"}),onClick:()=>s(i,1),children:(0,P.jsx)(qd,{content:"titleListColumn.vulnerableLink"})}):(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{intent:"danger",children:(0,P.jsx)(qd,{content:"titleListColumn.vulnerableStatus"})}),children:e.vulnerabilities.map((e=>(0,P.jsxs)("p",{children:[e.title," ",(0,P.jsx)(Oe,{title:e.description,children:(0,P.jsx)(be,{name:"info-circle"})})]},e.id)))})})]})}}MA.defaultProps={blocked:!1,baseClassName:`${Rp}asset-name-column`};const LA=mc((e=>({publicUrl:e.app.urls.publicUrl})))(MA);class AA extends M.Component{constructor(e){super(e),this.handleInstallClick=()=>{this.setState({showInstallDrawer:!0})},this.handleCloseInstallDrawer=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitInstall=(e,t)=>{const{onSubmitInstall:n}=this.props;return this.setState({showInstallDrawer:!1}),n(e,t)},this.state={showInstallDrawer:!1}}render(){const{asset:e,instances:t,selectInstancesText:n,activateAfterInstallationText:s,instanceNameListTitle:i,instanceUrlListTitle:a,tooltip:r,disabled:o}=this.props,{showInstallDrawer:l}=this.state;return!e.isUploaded||e.instances.length>0?null:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Be,{onClick:this.handleInstallClick,tooltip:r,disabled:o,children:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"})}),l&&(0,P.jsx)(xT,{selectInstancesText:n,instanceNameListTitle:i,instanceUrlListTitle:a,showActivateAfterInstallation:!0,activateAfterInstallationText:s,drawerTitle:(0,P.jsx)(qd,{content:"list.assets.selectInstancesDrawerTitle"}),asset:e,instances:t,onCloseDrawer:this.handleCloseInstallDrawer,onSubmitInstall:this.handleSubmitInstall})]})}}AA.defaultProps={tooltip:null,disabled:!1};const EA=AA,RA=e=>{const{menu:t}=e;return(0,P.jsx)(Mn,{menu:t,menuPlacement:"bottom-end",children:(0,P.jsx)(ye,{icon:{name:"three-dots-horizontal",size:"24"}})})};class UA extends M.Component{constructor(e){super(e),this.handleInstallClick=()=>{this.setState({showInstallDrawer:!0})},this.handleUninstallClick=()=>{this.setState({showUninstallConfirmationDialog:!0})},this.handleRemoveClick=()=>{this.setState({showRemoveConfirmationDialog:!0})},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleCloseRemoveConfirmation=()=>{this.setState({showRemoveConfirmationDialog:!1})},this.handleCloseInstallDrawer=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitInstall=(e,t)=>{const{onSubmitInstall:n}=this.props;return this.setState({showInstallDrawer:!1}),n(e,t)},this.handleSubmitUninstall=()=>{const{onSubmitUninstall:e}=this.props;this.setState({showUninstallConfirmationDialog:!1}),e()},this.handleSubmitRemove=()=>{const{onSubmitRemove:e}=this.props;this.setState({showRemoveConfirmationDialog:!1}),e()},this.state={showInstallDrawer:!1,showUninstallConfirmationDialog:!1,showRemoveConfirmationDialog:!1}}renderInstallDrawer(){const{asset:e,instances:t,selectInstancesText:n,activateAfterInstallationText:s,instanceNameListTitle:i,instanceUrlListTitle:a}=this.props;return(0,P.jsx)(xT,{selectInstancesText:n,instanceNameListTitle:i,instanceUrlListTitle:a,showActivateAfterInstallation:!0,activateAfterInstallationText:s,drawerTitle:(0,P.jsx)(qd,{content:"list.assets.selectInstancesDrawerTitle"}),asset:e,instances:t,onCloseDrawer:this.handleCloseInstallDrawer,onSubmitInstall:this.handleSubmitInstall})}renderUninstallConfirmationDialog(){const{uninstallDialogConfirmationText:e,uninstallDialogYesButtonText:t,uninstallDialogNoButtonText:n}=this.props;return(0,P.jsx)(Ea,{isOpen:!0,buttons:(0,P.jsx)(Be,{onClick:this.handleSubmitUninstall,children:t}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:n,children:e})}renderRemoveConfirmationDialog(){const{removeDialogConfirmationText:e,removeDialogYesButtonText:t,removeDialogNoButtonText:n}=this.props;return(0,P.jsx)(Ea,{isOpen:!0,buttons:(0,P.jsx)(Be,{onClick:this.handleSubmitRemove,children:t}),size:"sm",onClose:this.handleCloseRemoveConfirmation,cancelTitle:n,children:e})}render(){const{asset:e,instances:t,disableInstalling:n}=this.props,{showInstallDrawer:s,showUninstallConfirmationDialog:i,showRemoveConfirmationDialog:a}=this.state;if(!e||!e.isUploaded)return null;const r=[];if(e.instances.length<t.length&&!n&&r.push((0,P.jsx)(Sn,{onClick:this.handleInstallClick,children:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"})})),e.instances.length>0&&r.push((0,P.jsx)(Sn,{onClick:this.handleUninstallClick,children:(0,P.jsx)(qd,{content:"list.assets.buttonUninstall"})})),e.isAllowedToManage&&r.push((0,P.jsx)(Sn,{onClick:this.handleRemoveClick,children:(0,P.jsx)(qd,{content:"list.assets.buttonRemove"})})),0===r.length)return null;const o=(0,P.jsx)(qs,{children:r});return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(RA,{menu:o}),s&&this.renderInstallDrawer(),i&&this.renderUninstallConfirmationDialog(),a&&this.renderRemoveConfirmationDialog()]})}}UA.defaultProps={disableInstalling:!1};const NA=UA,FA=e=>({name:e.name,version:e.version,isUploaded:e.isUploaded,ownerGuid:e.ownerGuid});const YA=e=>{var{target:t,onActivate:n,isOpen:s,onClose:i,children:a}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["target","onActivate","isOpen","onClose","children"]);return(0,P.jsxs)(Fs,Object.assign({target:t,visible:s,onClose:i,placement:"top"},r,{children:[a,(0,P.jsxs)("div",{children:[(0,P.jsx)(Be,{onClick:()=>{n(),null==i||i()},"data-test-id":"activate-vulnerable-asset-confirmation-activate-button",children:(0,P.jsx)(qd,{content:"activateVulnerableAssetConfirmation.activateButton"})}),(0,P.jsx)(Be,{onClick:i,ghost:!0,children:(0,P.jsx)(qd,{content:"activateVulnerableAssetConfirmation.cancelButton"})})]})]}))};class HA extends M.Component{constructor(e){super(e),this.handleRefresh=()=>{const{pluginsActions:{getPluginsList:e}}=this.props;this.setState({isPluginsListLoading:!0}),e().finally((()=>{this.setState({isPluginsListLoading:!1})}))},this.onUpdatePlugin=e=>{const{pluginsActions:{updatePlugins:t}}=this.props;t([FA(e)])},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.handleOpenSecurityDialog=(e,t=null)=>{const{pushUrl:n}=this.props;n(`${gT}/instancesIds/${e.join(",")}/checkSecurity/1${t?`/activeTab/${t}`:""}`)},this.handleOpenActivateVulnerablePluginsConfirmation=()=>{this.setState({showActivateVulnerablePluginsConfirmation:!0})},this.handleCloseActivateVulnerablePluginsConfirmation=()=>{this.setState({showActivateVulnerablePluginsConfirmation:!1})},this.renderActivateButton=()=>{const{isSelectedOnlyBlockedPlugins:e,showActivateVulnerablePluginsConfirmation:t}=this.state,{baseClassName:n}=this.props,s=this.getSelectedPlugins(),i=s?s.filter((e=>e.isVulnerable)):[];return i.length?(0,P.jsxs)(YA,{target:(0,P.jsx)(Be,{onClick:this.handleOpenActivateVulnerablePluginsConfirmation,"data-test-id":pv,disabled:e,className:`${n}__activate-button`,children:(0,P.jsx)(qd,{content:"list.assets.buttonActivate"})}),onActivate:this.handleActivate,isOpen:t,onClose:this.handleCloseActivateVulnerablePluginsConfirmation,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateVulnerablePluginsOnAllInstancesConfirmation"})}),(0,P.jsx)("ul",{className:`${n}__activate-vulnerable-plugins-confirmation__plugins-list`,children:i.map((e=>(0,P.jsx)("li",{children:`${e.title} ${e.version}`},this.getRowKey(e))))})]}):(0,P.jsx)(Be,{onClick:this.handleActivate,"data-test-id":pv,disabled:e,children:(0,P.jsx)(qd,{content:"list.assets.buttonActivate"})})},this.renderToolbar=()=>{const{instances:e,isAdmin:t,isReseller:n}=this.props,{isSelectedOnlyBlockedPlugins:s}=this.state;return(0,P.jsxs)(Mi,{children:[e.length>0&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"}),children:(0,P.jsx)(Be,{onClick:this.handleOpenInstall,"data-test-id":"toolbar-install-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"})})}),(t||n||e.length>0)&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.pluginsUpload"}),children:(0,P.jsx)(Be,{onClick:this.handleOpenUploadPlugin,"data-test-id":"toolbar-upload-button",children:(0,P.jsx)(qd,{content:"list.assets.pluginsUpload"})})}),e.length>0&&(0,P.jsxs)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.buttonActions"}),children:[this.renderActivateButton(),(0,P.jsx)(Be,{onClick:this.handleDeactivate,"data-test-id":"toolbar-deactivate-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonDeactivate"})}),(0,P.jsx)(Be,{onClick:this.handleUninstall,"data-test-id":"toolbar-uninstall-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonUninstall"})}),(0,P.jsx)(Be,{onClick:this.handleUpdate,"data-test-id":"toolbar-update-button",disabled:s,children:(0,P.jsx)(qd,{content:"list.assets.buttonUpdate"})})]})]})},this.handleSubmitInstall=(e,t,n)=>{const{pluginsActions:{installPlugins:s}}=this.props;return s(e.map((e=>({name:e,version:null,isUploaded:!1}))),t,n).then((e=>(e.status===fp&&this.setState({showInstallDrawer:!1}),e)))},this.handleSubmitUpload=({uploadFile:e,setId:t,instanceIds:n,isActivateAfterInstallation:s})=>{const{pluginsActions:{uploadPluginToStorage:i,uploadAndInstallPlugin:a,reloadPlugins:r},appActions:{addSuccessMessage:o},isAdmin:l,isReseller:c}=this.props;return l||c?i(e,t).then((e=>(e.status===fp&&e.data&&e.data.assetName&&e.data.assetVersion&&(r([{name:e.data.assetName,version:e.data.assetVersion}]).finally((()=>o((0,P.jsx)(qd,{content:"controllers.index.manage-plugins.uploadSuccess"})))),this.setState({showUploadDrawer:!1})),e))):a(e,n,s).then((e=>(e.status===fp&&this.setState({showUploadDrawer:!1}),e)))},this.renderUploadPluginDrawer=()=>{const{isAdmin:e,isReseller:t,sets:n,instances:s}=this.props;return(0,P.jsx)(_C,{onClose:this.handleCloseUpload,onUpload:this.handleSubmitUpload,selectLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectLabel"}),drawerTitle:(0,P.jsx)(qd,{content:"list.assets.pluginsUpload"}),activateAfterInstallationLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateAfterInstall"}),noInstancesSelectedErrorMessage:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.errorNoInstancesSelectedToUpload"}),uploadHintForSet:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectSetDescription"}),uploadHintForInstances:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.uploadSelectedInstances"}),sets:e?n:[],instances:e||t?[]:s})},this.handleSearchPlugins=e=>{const{pluginsActions:{searchPlugins:t}}=this.props;return t(e).then((({data:e})=>e&&e.plugins?e.plugins:null))},this.handleActivate=()=>{const{pluginsActions:{activatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleDeactivate=()=>{const{pluginsActions:{deactivatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleUninstall=()=>{this.getSelectedPluginsForAction()&&this.setState({showUninstallConfirmationDialog:!0})},this.handleSubmitUninstall=()=>{const{pluginsActions:{uninstallPlugins:e}}=this.props;this.setState({showUninstallConfirmationDialog:!1},(()=>{const t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)}))},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleUpdate=()=>{const{pluginsActions:{updatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleOpenUploadPlugin=()=>{this.setState({showUploadDrawer:!0})},this.handleCloseUpload=()=>{this.setState({showUploadDrawer:!1})},this.handleOpenInstall=()=>{this.setState({showInstallDrawer:!0})},this.handleCloseInstall=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitUploadedAssetInstall=(e,t,n)=>{const{pluginsActions:{installPlugins:s}}=this.props;return s([FA(e)],t,n)},this.handleSubmitUninstallUploadedAsset=e=>{const{pluginsActions:{uninstallPlugins:t}}=this.props;t([FA(e)])},this.handleSubmitRemoveUploadedAsset=e=>{const{pluginsActions:{removePlugins:t}}=this.props;t([FA(e)])},this.handleSelectionChange=e=>{const{blockedPlugins:t}=this.props;this.setState({selectedPluginsKeys:e},(()=>{const e=this.getSelectedPlugins(),n=!!e&&!e.some((e=>!t.includes(e.name)));this.setState({isSelectedOnlyBlockedPlugins:n})}))},this.resetSelection=()=>{this.setState({selectedPluginsKeys:[]})},this.getRowKey=e=>`${e.name}-${e.version}-${e.isUploaded}-${e.ownerGuid}`,this.state={selectedPluginsKeys:[],isPluginsListLoading:!1,showInstallDrawer:!1,showUploadDrawer:!1,showUninstallConfirmationDialog:!1,sortColumn:null,sortDirection:"ASC",isSelectedOnlyBlockedPlugins:!1,showActivateVulnerablePluginsConfirmation:!1}}componentWillMount(){const{plugins:e,instances:t}=this.props;null!==e&&null!==t||this.handleRefresh()}componentWillUnmount(){const{pluginsActions:{resetPluginsList:e}}=this.props;e()}filterPlugins(e){const{search:t}=this.props;if(!t||""===t.trim())return e;const n=t.trim().toLowerCase();return e.filter((e=>-1!==e.name.toLowerCase().indexOf(n)||-1!==e.title.toLowerCase().indexOf(n)))}getSelectedPlugins(){const{selectedPluginsKeys:e}=this.state,{plugins:t}=this.props;return 0===e.length?null:t.filter((t=>rp(e,this.getRowKey(t))))}getSelectedPluginsForAction(){const{appActions:{addWarningMessage:e}}=this.props,t=this.getSelectedPlugins();return t?t.map((e=>FA(e))):(e((0,P.jsx)(qd,{content:"lists.noItemsSelectedToast"})),null)}renderPluginsList(){const{plugins:e,blockedPlugins:t}=this.props,{selectedPluginsKeys:n,showInstallDrawer:s,showUploadDrawer:i,showUninstallConfirmationDialog:a,sortColumn:r,sortDirection:o}=this.state,l=[{key:"title",title:(0,P.jsx)(qd,{content:"list.assets.name"}),width:"20%",sortable:!0,sort:(e,t)=>{const n=`${e.name} ${e.version}`,s=`${t.name} ${t.version}`;return n.localeCompare(s)},render:e=>{const n=t.includes(e.name);return(0,P.jsxs)(M.Fragment,{children:[n&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",(0,P.jsx)(LA,{asset:e,updateAvailableTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.updateAvailable"}),uploadedTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.custom"}),handleUpdateAsset:this.onUpdatePlugin,blocked:n,onOpenSecurityDialog:this.handleOpenSecurityDialog})]})}},{key:"instances",width:"80%",title:(0,P.jsx)(qd,{content:"list.assets.installedAt"}),render:e=>this.renderInstancesColumn(e)},{key:"menu",title:"",render:e=>this.renderUploadedAssetMenu(e)}],c=this.filterPlugins(e.filter((e=>!e.isMustUse))).map((e=>Object.assign(Object.assign({},e),{key:this.getRowKey(e)})));return(0,P.jsxs)(M.Fragment,{children:[s&&this.renderInstallDrawer(),i&&this.renderUploadPluginDrawer(),a&&this.renderUninstallConfirmationDialog(),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.plugins-list.hint"})}),this.renderToolbar(),(0,P.jsx)(sL,{columns:l,data:c,selection:n,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:r,sortDirection:o,dataTestId:"found-plugins-list"})]})}renderUninstallConfirmationDialog(){return(0,P.jsx)(Ea,{isOpen:!0,buttons:(0,P.jsx)(Be,{onClick:this.handleSubmitUninstall,children:(0,P.jsx)(qd,{content:"list.assets.UninstallPluginConfirmationYes"})}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:(0,P.jsx)(qd,{content:"list.assets.UninstallPluginConfirmationNo"}),children:(0,P.jsx)(qd,{content:"list.assets.pluginsConfirmOnUninstall"})})}renderInstallDrawer(){const{instances:e}=this.props;return(0,P.jsx)(ST,{onClose:this.handleCloseInstall,onSearchAssets:this.handleSearchPlugins,onInstall:this.handleSubmitInstall,drawerTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.installTitleAll"}),headDescription:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.installHeadDescription"}),searchDescription:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.tryToSearch"}),tableTitleTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldName"}),tableVersionTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldVersion"}),tableRatingTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldRating"}),nothingFoundText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.nothingFound"}),selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectInstancesHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldUrl"}),showActivateAfterInstallation:!0,activateAfterInstallationText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateAfterInstall"}),instances:e})}renderUploadedAssetInstallButton(e){const{instances:t,blockedPlugins:n}=this.props;return 0===t.length?null:(0,P.jsx)(EA,{asset:e,instances:t,disabled:n.includes(e.name),tooltip:n.includes(e.name)&&(0,P.jsx)(qd,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.installPopupHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldUrl"}),activateAfterInstallationText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n)})}renderInstancesColumn(e){return(0,P.jsxs)(M.Fragment,{children:[this.renderUploadedAssetInstallButton(e),this.renderInstancesList(e.instances)]})}renderUploadedAssetMenu(e){const{instances:t,blockedPlugins:n}=this.props;return(0,P.jsx)(NA,{asset:e,instances:t,disableInstalling:n.includes(e.name),selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldUrl"}),uninstallDialogConfirmationText:(0,P.jsx)(qd,{content:"list.assets.UninstallPluginConfirmationDescription"}),uninstallDialogYesButtonText:(0,P.jsx)(qd,{content:"list.assets.UninstallPluginConfirmationYes"}),uninstallDialogNoButtonText:(0,P.jsx)(qd,{content:"list.assets.UninstallPluginConfirmationNo"}),removeDialogConfirmationText:(0,P.jsx)(qd,{content:"list.assets.RemovePluginConfirmationDescription"}),removeDialogYesButtonText:(0,P.jsx)(qd,{content:"list.assets.RemovePluginConfirmationYes"}),removeDialogNoButtonText:(0,P.jsx)(qd,{content:"list.assets.RemovePluginConfirmationNo"}),activateAfterInstallationText:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n),onSubmitUninstall:()=>this.handleSubmitUninstallUploadedAsset(e),onSubmitRemove:()=>this.handleSubmitRemoveUploadedAsset(e)})}renderInstancesList(e){return 0===e.length?"":fT(e.map((e=>this.renderInstance(e))),", ")}renderInstance(e){return e.isAssetActive?(0,P.jsx)("a",{onClick:()=>this.props.pushUrl(`${gT}/id/${e.id}`),children:e.name}):(0,P.jsxs)(ei,{intent:"muted",children:[(0,P.jsx)("a",{onClick:()=>this.props.pushUrl(`${gT}/id/${e.id}`),children:(0,P.jsx)(ei,{intent:"muted",children:e.name})})," ",(0,P.jsx)(qd,{content:"list.assets.inactive"})]})}render(){const{isPluginsListLoading:e}=this.state;return(0,P.jsxs)(lj,{activeTab:sj,children:[e&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.listLoading"})}),!e&&this.renderPluginsList()]})}}HA.propTypes={search:We().string,plugins:We().array,instances:We().array,sets:We().array,pluginsActions:We().shape({resetPluginsList:We().func.isRequired,getPluginsList:We().func.isRequired,searchPlugins:We().func.isRequired,installPlugins:We().func.isRequired,activatePlugins:We().func.isRequired,deactivatePlugins:We().func.isRequired,uninstallPlugins:We().func.isRequired,removePlugins:We().func.isRequired,updatePlugins:We().func.isRequired,uploadPluginToStorage:We().func.isRequired,uploadAndInstallPlugin:We().func.isRequired,reloadPlugins:We().func.isRequired}).isRequired,appActions:We().shape({addSuccessMessage:We().func.isRequired,addWarningMessage:We().func.isRequired}).isRequired,isAdmin:We().bool,isReseller:We().bool,pushUrl:We().func.isRequired,blockedPlugins:We().array.isRequired,baseClassName:We().string},HA.defaultProps={search:"",plugins:null,instances:null,sets:[],isAdmin:!0,isReseller:!1,baseClassName:`${Rp}plugins-page`};const BA=mc((e=>({search:e.app.search,plugins:e.plugins.list,instances:e.plugins.instances,sets:e.plugins.sets,isAdmin:e.app.options.isAdmin,isReseller:e.app.options.isReseller,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({pluginsActions:kb(l,e),appActions:kb(t,e),pushUrl:t=>e(qc(t))})))(Dj(HA)),VA=Qd(JC,"themes","instances","sets"),$A=()=>ux(Jf.getThemesList,(e=>VA(e.data.themes,e.data.instances,e.data.sets))),WA=Qd(ZC),zA=Qd(eD,"themesToUpdate","newThemesData"),qA=(e,t)=>cx((()=>Jf.loadThemesData(e)),((n,s)=>{n(zA(e,s.data.themes)),t&&t()})),GA=Qd("themes/SEARCH_THEMES_FINISHED"),KA=e=>ux((()=>Jf.searchThemes(e)),GA),XA=Qd(tD,"task"),QA=Qd("themes/INSTALL_THEMES_FINISHED"),JA=(e,t,n)=>ux((()=>Jf.installThemes(e,t,n)),(e=>XA(e.data.task))),ZA=Qd("themes/UPLOAD_THEME_TO_STORAGE_FINISHED","data"),eE=(e,t)=>ux((()=>Jf.uploadThemeToStorage(e,t)),(e=>ZA(e.data))),tE=Qd("plugins/UPLOAD_AND_INSTALL_THEME_TASK_FINISHED"),nE=Qd(rD,"task"),sE=(e,t,n)=>ux((()=>Jf.uploadAndInstallTheme(e,t,n)),(e=>nE(e.data.task))),iE=Qd(sD,"task"),aE=Qd("themes/UNINSTALL_THEMES_FINISHED"),rE=e=>ux((()=>Jf.uninstallThemes(e)),(e=>iE(e.data.task))),oE=Qd(iD,"task"),lE=Qd("themes/REMOVE_THEMES_FINISHED"),cE=e=>ux((()=>Jf.removeThemes(e)),(e=>oE(e.data.task))),uE=Qd(nD,"task"),dE=Qd("themes/UPDATE_THEMES_FINISHED"),pE=e=>ux((()=>Jf.updateThemes(e)),(e=>uE(e.data.task))),hE=Qd(aD,"task"),mE=Qd("themes/ACTIVATE_THEME_FINISHED"),fE=e=>ux((()=>Jf.activateThemeOnAllInstances(e)),(e=>hE(e.data.task)));class gE extends M.Component{constructor(e){super(e),this.handleRefresh=()=>{const{themesActions:{getThemesList:e}}=this.props;this.setState({isThemesListLoading:!0}),e().finally((()=>{this.setState({isThemesListLoading:!1})}))},this.handleSelectionChange=e=>{this.setState({selectedThemesKeys:e})},this.handleOpenInstall=()=>{this.setState({showInstallDrawer:!0})},this.handleSearchThemes=e=>{const{themesActions:{searchThemes:t}}=this.props;return t(e).then((({data:e})=>e&&e.themes?e.themes:[]))},this.handleSubmitInstall=(e,t)=>{const{themesActions:{installThemes:n}}=this.props;return n(e.map((e=>({name:e,version:null,isUploaded:!1}))),t).then((e=>(e.status===fp&&this.setState({showInstallDrawer:!1}),e)))},this.handleCloseInstall=()=>{this.setState({showInstallDrawer:!1})},this.handleOpenUpload=()=>{this.setState({showUploadDrawer:!0})},this.handleCloseUpload=()=>{this.setState({showUploadDrawer:!1})},this.handleUninstall=()=>{this.getSelectedThemesForAction()&&this.setState({showUninstallConfirmationDialog:!0})},this.handleSubmitUninstall=()=>{const{themesActions:{uninstallThemes:e}}=this.props;this.setState({showUninstallConfirmationDialog:!1},(()=>{const t=this.getSelectedThemesForAction();this.resetSelection(),t&&e(t)}))},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleUpdate=()=>{const{themesActions:{updateThemes:e}}=this.props,t=this.getSelectedThemesForAction();this.resetSelection(),t&&e(t)},this.handleSubmitUpload=({uploadFile:e,setId:t,instanceIds:n,isActivateAfterInstallation:s})=>{const{themesActions:{uploadThemeToStorage:i,uploadAndInstallTheme:a,reloadThemes:r},appActions:{addSuccessMessage:o},isAdmin:l,isReseller:c}=this.props;return l||c?i(e,t).then((e=>(e.status===fp&&e.data&&e.data.assetName&&e.data.assetVersion&&(r([{name:e.data.assetName,version:e.data.assetVersion}]).finally((()=>o((0,P.jsx)(qd,{content:"controllers.index.manage-themes.uploadSuccess"})))),this.setState({showUploadDrawer:!1})),e))):a(e,n,s).then((e=>(e.status===fp&&this.setState({showUploadDrawer:!1}),e)))},this.handleActivateTheme=e=>{const{themesActions:{activateThemeOnAllInstances:t}}=this.props;t(FA(e))},this.onUpdateTheme=e=>{const{themesActions:{updateThemes:t}}=this.props;t([FA(e)])},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.renderUploadThemeDrawer=()=>{const{isAdmin:e,isReseller:t,sets:n,instances:s}=this.props;return(0,P.jsx)(_C,{onClose:this.handleCloseUpload,onUpload:this.handleSubmitUpload,selectLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.selectLabel"}),drawerTitle:(0,P.jsx)(qd,{content:"list.assets.themesUpload"}),uploadHintForSet:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.selectSetDescription"}),uploadHintForInstances:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.uploadSelectedInstances"}),activateAfterInstallationLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.activateAfterInstall"}),noInstancesSelectedErrorMessage:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.errorNoInstancesSelectedToUpload"}),sets:e?n:[],instances:e||t?[]:s})},this.handleSubmitUploadedAssetInstall=(e,t,n)=>{const{themesActions:{installThemes:s}}=this.props;return s([FA(e)],t,n)},this.handleSubmitUninstallUploadedAsset=e=>{const{themesActions:{uninstallThemes:t}}=this.props;t([FA(e)])},this.handleSubmitRemoveUploadedAsset=e=>{const{themesActions:{removeThemes:t}}=this.props;t([FA(e)])},this.handleOpenSecurityDialog=(e,t=null)=>{const{pushUrl:n}=this.props;n(`${gT}/instancesIds/${e.join(",")}/checkSecurity/1${t?`/activeTab/${t}`:""}`)},this.handleOpenActivateVulnerableThemeConfirmation=e=>{this.setState({showActivateVulnerableThemeConfirmation:!0,activateVulnerableThemeConfirmationThemeId:e})},this.handleCloseActivateVulnerableThemeConfirmation=()=>{this.setState({showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null})},this.renderToolbar=()=>{const{instances:e,isAdmin:t,isReseller:n}=this.props;return(0,P.jsxs)(Mi,{children:[e.length>0&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"}),children:(0,P.jsx)(Be,{onClick:this.handleOpenInstall,"data-test-id":"toolbar-install-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonInstall"})})}),(t||n||e.length>0)&&(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.themesUpload"}),children:(0,P.jsx)(Be,{onClick:this.handleOpenUpload,"data-test-id":"toolbar-upload-button",children:(0,P.jsx)(qd,{content:"list.assets.themesUpload"})})}),e.length>0&&(0,P.jsxs)(Ii,{title:(0,P.jsx)(qd,{content:"list.assets.buttonActions"}),children:[(0,P.jsx)(Be,{onClick:this.handleUninstall,"data-test-id":"toolbar-uninstall-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonUninstall"})}),(0,P.jsx)(Be,{onClick:this.handleUpdate,"data-test-id":"toolbar-update-button",children:(0,P.jsx)(qd,{content:"list.assets.buttonUpdate"})})]})]})},this.resetSelection=()=>{this.setState({selectedThemesKeys:[]})},this.getRowKey=e=>`${e.name}-${e.version}-${e.isUploaded}-${e.ownerGuid}`,this.state={selectedThemesKeys:[],isThemesListLoading:!1,showInstallDrawer:!1,showUploadDrawer:!1,showUninstallConfirmationDialog:!1,sortColumn:null,sortDirection:"ASC",showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null}}componentWillMount(){const{themes:e,instances:t}=this.props;null!==e&&null!==t||this.handleRefresh()}componentWillUnmount(){const{themesActions:{resetThemesList:e}}=this.props;e()}filterThemes(e){const{search:t}=this.props;if(!t||""===t.trim())return e;const n=t.trim().toLowerCase();return e.filter((e=>-1!==e.name.toLowerCase().indexOf(n)||-1!==e.title.toLowerCase().indexOf(n)))}getSelectedThemesForAction(){const{selectedThemesKeys:e}=this.state,{themes:t,appActions:{addWarningMessage:n}}=this.props;return 0===e.length?(n((0,P.jsx)(qd,{content:"lists.noItemsSelectedToast"})),null):t.filter((t=>rp(e,this.getRowKey(t)))).map((e=>FA(e)))}renderUninstallConfirmationDialog(){return(0,P.jsx)(Ea,{isOpen:!0,buttons:(0,P.jsx)(Be,{onClick:this.handleSubmitUninstall,children:(0,P.jsx)(qd,{content:"list.assets.UninstallThemeConfirmationYes"})}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:(0,P.jsx)(qd,{content:"list.assets.UninstallThemeConfirmationNo"}),children:(0,P.jsx)(qd,{content:"list.assets.themesConfirmOnUninstall"})})}renderInstallDrawer(){const{instances:e}=this.props;return(0,P.jsx)(ST,{onClose:this.handleCloseInstall,onSearchAssets:this.handleSearchThemes,onInstall:this.handleSubmitInstall,drawerTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.installTitleAll"}),headDescription:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.installHeadDescription"}),searchDescription:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.tryToSearch"}),tableTitleTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldName"}),tableVersionTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldVersion"}),tableRatingTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldRating"}),nothingFoundText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.nothingFound"}),selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.selectInstancesHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldUrl"}),instances:e})}renderInstance(e){return e.isAssetActive?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("a",{onClick:()=>this.props.pushUrl(`${gT}/id/${e.id}`),children:e.name})," ",(0,P.jsx)(qd,{content:"list.assets.active"})]}):(0,P.jsx)("a",{onClick:()=>this.props.pushUrl(`${gT}/id/${e.id}`),children:(0,P.jsx)(ei,{intent:"muted",children:e.name})})}renderInstancesColumn(e){return(0,P.jsxs)(M.Fragment,{children:[this.renderUploadedAssetInstallButton(e),this.renderInstancesList(e.instances)]})}renderUploadedAssetInstallButton(e){const{instances:t}=this.props;return 0===t.length?null:(0,P.jsx)(EA,{asset:e,instances:t,selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldUrl"}),activateAfterInstallationText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n)})}renderUploadedAssetMenu(e){const{instances:t}=this.props;return(0,P.jsx)(NA,{asset:e,instances:t,selectInstancesText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldUrl"}),uninstallDialogConfirmationText:(0,P.jsx)(qd,{content:"list.assets.UninstallThemeConfirmationDescription"}),uninstallDialogYesButtonText:(0,P.jsx)(qd,{content:"list.assets.UninstallThemeConfirmationYes"}),uninstallDialogNoButtonText:(0,P.jsx)(qd,{content:"list.assets.UninstallThemeConfirmationNo"}),removeDialogConfirmationText:(0,P.jsx)(qd,{content:"list.assets.RemoveThemeConfirmationDescription"}),removeDialogYesButtonText:(0,P.jsx)(qd,{content:"list.assets.RemoveThemeConfirmationYes"}),removeDialogNoButtonText:(0,P.jsx)(qd,{content:"list.assets.RemoveThemeConfirmationNo"}),activateAfterInstallationText:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n),onSubmitUninstall:()=>this.handleSubmitUninstallUploadedAsset(e),onSubmitRemove:()=>this.handleSubmitRemoveUploadedAsset(e)})}renderInstancesList(e){return 0===e.length?"":fT(e.map((e=>this.renderInstance(e))),", ")}renderActivateAction(e){const{publicUrl:t}=this.props,{showActivateVulnerableThemeConfirmation:n,activateVulnerableThemeConfirmationThemeId:s}=this.state;return 0===e.instances.length?null:e.isVulnerable?(0,P.jsx)(YA,{target:(0,P.jsx)(ye,{icon:(0,P.jsx)("img",{src:`${t}images/activate.png`,alt:"Activate",style:{maxWidth:16,maxHeight:16}}),onClick:()=>this.handleOpenActivateVulnerableThemeConfirmation(e.id),children:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldActivate"})}),onActivate:()=>this.handleActivateTheme(e),isOpen:n&&s===e.id,onClose:this.handleCloseActivateVulnerableThemeConfirmation,children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.activateVulnerableThemeOnAllInstancesConfirmation",params:{themeName:`${e.title} ${e.version}`}})})}):(0,P.jsx)(ye,{icon:(0,P.jsx)("img",{src:`${t}images/activate.png`,alt:"Activate",style:{maxWidth:16,maxHeight:16}}),onClick:()=>this.handleActivateTheme(e),children:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldActivate"})})}renderThemesList(){const{themes:e}=this.props,{selectedThemesKeys:t,showInstallDrawer:n,showUploadDrawer:s,showUninstallConfirmationDialog:i,sortColumn:a,sortDirection:r}=this.state,o=[{key:"title",title:(0,P.jsx)(qd,{content:"list.assets.name"}),width:"20%",sortable:!0,sort:(e,t)=>{const n=`${e.name} ${e.version}`,s=`${t.name} ${t.version}`;return n.localeCompare(s)},render:e=>(0,P.jsx)(LA,{asset:e,updateAvailableTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.updateAvailable"}),uploadedTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.custom"}),handleUpdateAsset:this.onUpdateTheme,onOpenSecurityDialog:this.handleOpenSecurityDialog})},{key:"instances",title:(0,P.jsx)(qd,{content:"list.assets.installedAt"}),width:"60%",render:e=>this.renderInstancesColumn(e)},{key:"actions",width:"20%",title:"",render:e=>this.renderActivateAction(e)},{key:"menu",title:"",render:e=>this.renderUploadedAssetMenu(e)}],l=this.filterThemes(e).map((e=>{const t=this.getRowKey(e);return Object.assign(Object.assign({},e),{key:t,id:t})}));return(0,P.jsxs)(M.Fragment,{children:[n&&this.renderInstallDrawer(),s&&this.renderUploadThemeDrawer(),i&&this.renderUninstallConfirmationDialog(),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.themes-list.hint"})}),this.renderToolbar(),(0,P.jsx)(sL,{columns:o,data:l,selection:t,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:a,sortDirection:r})]})}render(){const{isThemesListLoading:e}=this.state;return(0,P.jsxs)(lj,{activeTab:ij,children:[e&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.listLoading"})}),!e&&this.renderThemesList()]})}}gE.propTypes={search:We().string,themes:We().array,instances:We().array,sets:We().array,themesActions:We().shape({resetThemesList:We().func.isRequired,reloadThemes:We().func.isRequired,getThemesList:We().func.isRequired,searchThemes:We().func.isRequired,installThemes:We().func.isRequired,uninstallThemes:We().func.isRequired,removeThemes:We().func.isRequired,updateThemes:We().func.isRequired,uploadThemeToStorage:We().func.isRequired,uploadAndInstallTheme:We().func.isRequired,activateThemeOnAllInstances:We().func.isRequired,installThemesFinished:We().func.isRequired}).isRequired,appActions:We().shape({addSuccessMessage:We().func.isRequired,addWarningMessage:We().func.isRequired}).isRequired,publicUrl:We().string.isRequired,isAdmin:We().bool,isReseller:We().bool,pushUrl:We().func.isRequired},gE.defaultProps={search:"",themes:null,instances:null,sets:[],isAdmin:!0,isReseller:!1};const bE=mc((e=>({search:e.app.search,themes:e.themes.list,instances:e.themes.instances,sets:e.themes.sets,publicUrl:e.app.urls.publicUrl,isAdmin:e.app.options.isAdmin,isReseller:e.app.options.isReseller})),(e=>({themesActions:kb(d,e),appActions:kb(t,e),pushUrl:t=>e(qc(t))})))(Dj(gE)),vE="sets/UPDATE_SETS_PAGE",yE="sets/RESET_SETS_PAGE",xE="sets/ADD_SET",_E="sets/REMOVE_SETS",SE="sets/RENAME_SET",wE="sets/CHANGE_PLUGIN_ACTIVATION_STATE_STARTED",kE="sets/CHANGE_PLUGIN_ACTIVATION_STATE_FINISHED",jE="sets/CHANGE_THEME_ACTIVATION_STATE_STARTED",TE="sets/CHANGE_THEME_ACTIVATION_STATE_FINISHED",CE="sets/ADD_PLUGINS_TO_SET",DE="sets/ADD_THEMES_TO_SET",PE="sets/UPLOAD_PLUGIN_TO_SET",OE="sets/UPLOAD_THEME_TO_SET",IE="sets/REMOVE_PLUGIN_FROM_SET",ME="sets/REMOVE_THEME_FROM_SET",LE="sets/REMOVE_SET_FINISHED",AE="sets/REMOVE_ALL_PLUGINS_FROM_SET_FINISHED",EE="sets/REMOVE_ALL_THEMES_FROM_SET_FINISHED",RE=Qd(vE,"sets","instances"),UE=()=>ux(Zf.getSetsList,(e=>RE(e.data.sets,e.data.instances))),NE=Qd(yE),FE=Qd(xE,"addedSet"),YE=e=>ux((()=>Zf.addSet(e)),(e=>FE(e.data.addedSet))),HE=Qd(_E,"removedSetIds"),BE=e=>ux((()=>Zf.removeSets(e)),(e=>HE(e.data.removedSetIds))),VE=Qd(SE,"setId","newName"),$E=(e,t)=>ux((()=>Zf.renameSet(e,t)),(e=>VE(e.data.setId,e.data.newName))),WE=Qd(CE,"setId","plugins"),zE=(e,t)=>ux((()=>Zf.addPluginsToSet(e,t)),(e=>WE(e.data.setId,e.data.plugins))),qE=Qd(wE,"setId","assetId"),GE=Qd(kE,"setId","assetId","active"),KE=Qd(jE,"setId","assetId"),XE=Qd(TE,"setId","assetId","active"),QE=(e,t,n)=>s=>(s(qE(e,t)),ux((()=>Zf.setPluginActivationState(e,t,n)),(e=>GE(e.data.setId,t,n)))(s)),JE=(e,t,n)=>s=>(s(KE(e,t)),ux((()=>Zf.setThemeActivationState(e,t,n)),(e=>XE(e.data.setId,t,n)))(s)),ZE=Qd(DE,"setId","themes"),eR=(e,t)=>ux((()=>Zf.addThemesToSet(e,t)),(e=>ZE(e.data.setId,e.data.themes))),tR=Qd(IE,"setId","pluginId"),nR=(e,t)=>ux((()=>Zf.removePluginFromSet(e,t)),(e=>tR(e.data.setId,e.data.pluginId))),sR=Qd(ME,"setId","themeId"),iR=(e,t)=>ux((()=>Zf.removeThemeFromSet(e,t)),(e=>sR(e.data.setId,e.data.themeId))),aR=Qd(PE,"setId","pluginId","pluginTitle","pluginName"),rR=(e,t)=>ux((()=>Qf.uploadPluginToStorage(e,t)),(e=>aR(e.data.setId,e.data.assetId,e.data.assetTitle,e.data.assetName))),oR=Qd(OE,"setId","themeId","themeTitle","themeName"),lR=(e,t)=>ux((()=>Jf.uploadThemeToStorage(e,t)),(e=>oR(e.data.setId,e.data.assetId,e.data.assetTitle,e.data.assetName))),cR=(e,t)=>ux((()=>Zf.installInto(e,t)),(e=>eP(e.data.tasks))),uR=Qd("sets/SEARCH_PLUGINS_FINISHED"),dR=e=>ux((()=>Zf.searchPlugins(e)),(()=>uR())),pR=Qd("sets/SEARCH_THEMES_FINISHED"),hR=e=>ux((()=>Zf.searchThemes(e)),(()=>pR())),mR=Qd(LE,"setId"),fR=e=>ux((()=>Zf.removeSet(e)),(e=>mR(e.data.setId))),gR=Qd(AE,"setId"),bR=e=>ux((()=>Zf.removeAllPluginsFromSet(e)),(e=>gR(e.data.setId))),vR=Qd(EE,"setId"),yR=e=>ux((()=>Zf.removeAllThemesFromSet(e)),(e=>vR(e.data.setId))),xR=Qd("sets/GET_PLUGIN_DESCRIPTION_FINISHED"),_R=e=>ux((()=>Zf.getPluginDescription(e)),(()=>xR())),SR=Qd("sets/GET_THEME_DESCRIPTION_FINISHED"),wR=e=>ux((()=>Zf.getThemeDescription(e)),(()=>SR())),kR=()=>e=>e({type:"sets/INSTALL_SET_FINISHED"}),jR=mc((e=>({publicUrl:e.app.urls.publicUrl})))((e=>{const{publicUrl:t,uploadedTitle:n,asset:s}=e;return(0,P.jsxs)(P.Fragment,{children:[s.isUploaded&&(0,P.jsx)(Oe,{title:n,children:(0,P.jsx)("img",{alt:"Icon for manually uploaded asset",src:`${t}images/uploaded.png`,style:{marginRight:"5px"}})}),s.title]})}));class TR extends M.Component{constructor(e){super(e),this.handleSearchTermChange=e=>{this.setState({searchTerm:e.currentTarget.value})},this.handleSearchKeyDown=e=>{"Enter"===e.key&&this.isSearchCanBeSubmitted()&&this.handleSearch()},this.handleSearch=()=>{const{onSearchAssets:e,onSelectedAssetsChange:t}=this.props,{searchTerm:n}=this.state;t([]),this.setState({isSearching:!0,availableAssets:null},(()=>{e(n).then((e=>{this.setState({availableAssets:e})})).finally((()=>{this.setState({isSearching:!1})}))}))},this.handleSelectionChange=e=>{const{onSelectedAssetsChange:t}=this.props,{availableAssets:n}=this.state;t((null==n?void 0:n.filter(((t,n)=>rp(e,n.toString()))))||[]),this.setState({selectedAssetIndexes:e})},this.renderAvailableAssetsList=()=>{const{availableAssets:e}=this.state;return e&&e.length>0?this.renderAvailableAssetsListWithItems():this.renderAvailableAssetsEmptyList()},this.state={availableAssets:null,selectedAssetIndexes:[],isSearching:!1,searchTerm:""}}renderRatingColumn(e){return null===e.rating||void 0===e.rating?null:(0,P.jsx)(hl,{value:this.normalizeRating(e.rating)})}normalizeRating(e){return e/100*5}renderTitleColumn(e){const{uploadedTitle:t,alreadyPresentedAssets:n}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(jR,{asset:e,uploadedTitle:t})," ",rp(n,e.name)&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"manage-sets.duplicateItemHint"})})," "]}),e.description&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info"}),children:e.description})]})}renderAvailableAssetsListWithItems(){const{availableAssets:e,selectedAssetIndexes:t}=this.state,{alreadyPresentedAssets:n,tableTitleTitle:s,tableRatingTitle:i,blockedPlugins:a}=this.props,r=[];r.push({key:"title",title:s,render:e=>(0,P.jsxs)(P.Fragment,{children:[a.includes(e.name)&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})}),r.push({key:"rating",title:i});const o=null==e?void 0:e.map(((e,t)=>({key:t.toString(),name:e.name,disabled:rp(n,e.name)||a.includes(e.name),title:this.renderTitleColumn(e),rating:this.renderRatingColumn(e)})));return(0,P.jsx)(Qr,{columns:r,data:o,selection:t,onSelectionChange:this.handleSelectionChange,"data-test-id":fv})}renderAvailableAssetsEmptyList(){const{nothingFoundText:e}=this.props;return(0,P.jsx)(mi,{children:e})}isSearchCanBeSubmitted(){const{isSearching:e}=this.state;return!e&&this.isSearchFieldValid()}isSearchFieldValid(){const{searchTerm:e}=this.state;return e.trim().length>=3}renderSearchingProgress(){return(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list.assets.loading"})})}render(){const{availableAssets:e,searchTerm:t,isSearching:n}=this.state,{searchDescription:s}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(mi,{children:[(0,P.jsx)(Ss,{value:t,onChange:this.handleSearchTermChange,onKeyDown:this.handleSearchKeyDown,"data-test-id":hv})," ",(0,P.jsx)(Be,{disabled:!this.isSearchCanBeSubmitted(),icon:"search",onClick:this.handleSearch,"data-test-id":mv}),(0,P.jsx)("br",{}),(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"list.sets.minAssetSearchLength",params:{count:3}})})]}),(0,P.jsx)(mi,{children:s}),n&&this.renderSearchingProgress(),e&&this.renderAvailableAssetsList()]})}}const CR=mc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(TR);class DR extends M.Component{constructor(e){super(e),this.handleSelectedAssetsChange=e=>{this.setState({selectedAssets:e})},this.handleSubmitAdd=()=>{const{onAddAssets:e}=this.props,{selectedAssets:t,isAdding:n}=this.state;n||(this.setState({isAdding:!0}),e(t).finally((()=>this.setState({isAdding:!1}))))},this.state={selectedAssets:[],isAdding:!1}}render(){const{selectedAssets:e,isAdding:t}=this.state,{drawerTitle:n,hint:s,onClose:i,dataType:a,onSearchAssets:r,searchDescription:o,tableTitleTitle:l,tableRatingTitle:c,nothingFoundText:u,alreadyPresentedAssets:d,uploadedTitle:p}=this.props,h={onSubmit:e.length>0?this.handleSubmitAdd:void 0,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"manage-sets.buttonInstall"}),"data-test-id":"add-asset-drawer-add-button",disabled:0===e.length||t,state:t?"loading":"active"},cancelButton:{disabled:t,"data-test-id":"add-asset-drawer-cancel-button"}};return(0,P.jsxs)(er,{title:n,onClose:i,"data-type":a,isOpen:!0,backButton:!0,form:h,size:"sm",children:[(0,P.jsx)(mi,{children:s}),(0,P.jsx)(CR,{onSearchAssets:r,searchDescription:o,tableTitleTitle:l,tableRatingTitle:c,nothingFoundText:u,onSelectedAssetsChange:this.handleSelectedAssetsChange,alreadyPresentedAssets:d,uploadedTitle:p})]})}}const PR=DR;class OR extends M.Component{constructor(e){super(e),this.handleAcceptUploadFiles=e=>{this.setState({uploadFile:e[0]})},this.handleSubmitUpload=()=>{const{onUpload:e}=this.props,{uploadFile:t,isUploading:n}=this.state;n||(t?(this.setState({isUploading:!0,formErrors:void 0}),e(t).then((e=>{e.status===gp&&e.formErrors&&this.setState({formErrors:{fileUpload:e.formErrors}})})).finally((()=>this.setState({isUploading:!1})))):this.setState({formErrors:{fileUpload:{noFile:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.errorEmptyArchive"})}}}))},this.state={uploadFile:null,isUploading:!1,formErrors:void 0}}getUploadFileHint(){const{uploadFile:e}=this.state;return e?e.name:(0,P.jsx)(qd,{content:"list.assets.uploadNoFileSelected"})}render(){const{isUploading:e,formErrors:t}=this.state,{drawerTitle:n,hint:s,uploadButtonTitle:i,selectLabel:a,onClose:r,dataType:o,baseClassName:l}=this.props,c={onSubmit:this.handleSubmitUpload,applyButton:!1,submitButton:{children:i,state:e?"loading":"active",disabled:e},cancelButton:{disabled:e}};return(0,P.jsx)(er,{title:n,onClose:r,"data-type":o,isOpen:!0,backButton:!0,form:c,size:"sm",children:(0,P.jsxs)(mi,{children:[(0,P.jsx)(Sa,{label:a,description:this.getUploadFileHint(),errors:t&&t.hasOwnProperty("fileUpload")?t.fileUpload:void 0,children:(0,P.jsx)(gC,{onDrop:this.handleAcceptUploadFiles,multiple:!1,children:({getRootProps:e,getInputProps:t})=>(0,P.jsxs)("div",Object.assign({},e(),{className:`${l}__dropzone`,children:[(0,P.jsx)("input",Object.assign({},t())),(0,P.jsx)(Be,{children:(0,P.jsx)(qd,{content:"list.assets.uploadBrowseButton"})})]}))})}),(0,P.jsx)(mi,{children:s})]})})}}OR.defaultProps={baseClassName:`${Rp}upload-asset-drawer`};const IR=OR;class MR extends M.Component{constructor(e){super(e),this.handleOpenAddCatalogAssetDrawer=()=>{this.setState({isShowAddCatalogAssetDrawer:!0})},this.handleOpenUploadAssetDrawer=()=>{this.setState({isShowUploadAssetDrawer:!0})},this.handleAddAssets=e=>{const{onAddAssets:t}=this.props;return t(e.map((e=>({id:e.id,name:e.name,title:e.title,isUploaded:e.isUploaded})))).then((e=>(e.status===fp&&this.setState({isShowAddCatalogAssetDrawer:!1}),e)))},this.handleUploadAsset=e=>{const{onUpload:t}=this.props;return t(e).then((e=>(e.status===fp&&this.setState({isShowUploadAssetDrawer:!1}),e)))},this.handleCloseAddCatalogAssetDrawer=()=>{this.setState({isShowAddCatalogAssetDrawer:!1})},this.handleCloseUploadAssetDrawer=()=>{this.setState({isShowUploadAssetDrawer:!1})},this.handleLoadAssetInfo=e=>{const{getAssetDescription:t}=this.props,{assetDescriptions:n}=this.state;this.setState({assetIdOfOpenedDescriptionHint:e},(()=>{void 0===n[e]&&t(e).then((t=>{t.data.description&&this.setState((n=>({assetDescriptions:Object.assign(Object.assign({},n.assetDescriptions),{[e]:t.data.description})})))}))}))},this.handleCloseAssetDescriptionHint=()=>{this.setState({assetIdOfOpenedDescriptionHint:null})},this.state={isShowAddCatalogAssetDrawer:!1,isShowUploadAssetDrawer:!1,assetDescriptions:{},assetIdOfOpenedDescriptionHint:null}}renderAddAssetDrawer(){const{assetsList:e,addAssetFromCatalogDrawerTitle:t,addAssetFromCatalogDrawerHint:n,addAssetFromCatalogDrawerDataType:s,onSearchAssets:i,addAssetFromCatalogDrawerSearchDescription:a,addAssetFromCatalogDrawerTableTitleTitle:r,addAssetFromCatalogDrawerTableRatingTitle:o,addAssetFromCatalogDrawerNothingFoundText:l,uploadedTitle:c}=this.props,u=e.map((e=>e.name));return(0,P.jsx)(PR,{drawerTitle:t,hint:n,onClose:this.handleCloseAddCatalogAssetDrawer,dataType:s,onSearchAssets:i,searchDescription:a,tableTitleTitle:r,tableRatingTitle:o,nothingFoundText:l,onAddAssets:this.handleAddAssets,alreadyPresentedAssets:u,uploadedTitle:c})}renderUploadAssetDrawer(){const{uploadAssetDrawerTitle:e,uploadAssetDrawerHint:t,uploadAssetSelectLabel:n,uploadAssetDrawerDataType:s,uploadAssetDrawerUploadButtonTitle:i}=this.props;return(0,P.jsx)(IR,{drawerTitle:e,hint:t,selectLabel:n,uploadButtonTitle:i,onUpload:this.handleUploadAsset,onClose:this.handleCloseUploadAssetDrawer,dataType:s})}renderToolbar(){const{addButtonTitle:e,uploadButtonTitle:t}=this.props;return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:e,children:(0,P.jsx)(Be,{onClick:this.handleOpenAddCatalogAssetDrawer,"data-test-id":"asset-drawer-add-asset-button",children:e})}),(0,P.jsx)(Ii,{title:t,children:(0,P.jsx)(Be,{onClick:this.handleOpenUploadAssetDrawer,"data-test-id":"asset-drawer-upload-asset-button",children:t})})]})}renderDrawerContents(){const{headText:e}=this.props;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(mi,{children:e}),this.renderToolbar(),this.renderAssetsList()]})}renderTitleColumn(e){const{uploadedTitle:t}=this.props,{assetDescriptions:n,assetIdOfOpenedDescriptionHint:s}=this.state,i=n[e.id];return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(jR,{asset:e,uploadedTitle:t}),!e.isUploaded&&(0,P.jsxs)(M.Fragment,{children:[" ",(0,P.jsxs)(Fs,{visible:e.id===s,target:(0,P.jsx)(ye,{icon:"circle-info",onClick:()=>this.handleLoadAssetInfo(e.id)}),onClose:this.handleCloseAssetDescriptionHint,children:[void 0===i&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"manage-sets.loadingAssetDescription"})}),void 0!==i&&(0,P.jsx)(ei,{children:i})]})]})]})}renderAssetsList(){const{assetsList:e,isAssetProcessing:t,onRemoveAsset:n,onChangeAssetActivationStatus:s,blockedPlugins:i}=this.props;if(0===e.length)return(0,P.jsxs)(mi,{children:[(0,P.jsx)("br",{}),(0,P.jsx)(qd,{content:"manage-sets.noItems"})]});const a=[{key:"title",title:(0,P.jsx)(qd,{content:"list.sets.assetName"}),render:e=>(0,P.jsxs)(M.Fragment,{children:[e.isBlocked&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",e.title]})},{key:"state",title:"State",render:e=>e.isBlocked?(0,P.jsx)(qd,{content:"list.sets.blocked-plugin-state"}):(0,P.jsx)(fl,{checked:e.asset.active,"data-test-id":"toggle-asset-activation-status","data-asset-name":e.asset.name,onChange:t=>s(e.asset.id,t),loading:t(e.asset.id)})},{key:"remove",title:"",width:"24px"}],r=e.map((e=>({asset:e,title:this.renderTitleColumn(e),remove:(0,P.jsx)(ye,{icon:"cross-mark",onClick:()=>n(e.id)}),isBlocked:i.includes(e.name)})));return(0,P.jsx)(Qr,{columns:a,data:r})}render(){const{drawerTitle:e,onClose:t,dataType:n}=this.props,{isShowAddCatalogAssetDrawer:s,isShowUploadAssetDrawer:i}=this.state;return(0,P.jsxs)(er,{title:e,onClose:t,"data-type":n,isOpen:!0,children:[this.renderDrawerContents(),s&&this.renderAddAssetDrawer(),i&&this.renderUploadAssetDrawer()]})}}MR.propTypes={assetsList:We().array.isRequired,drawerTitle:We().string.isRequired,onClose:We().func.isRequired,dataType:We().string.isRequired,headText:We().string.isRequired,addButtonTitle:We().string.isRequired,uploadButtonTitle:We().string.isRequired,addAssetFromCatalogDrawerTitle:We().node.isRequired,addAssetFromCatalogDrawerHint:We().node.isRequired,addAssetFromCatalogDrawerDataType:We().string.isRequired,isAssetProcessing:We().func.isRequired,onChangeAssetActivationStatus:We().func.isRequired,onSearchAssets:We().func.isRequired,onRemoveAsset:We().func.isRequired,onAddAssets:We().func.isRequired,addAssetFromCatalogDrawerSearchDescription:We().node.isRequired,addAssetFromCatalogDrawerTableTitleTitle:We().node.isRequired,addAssetFromCatalogDrawerTableRatingTitle:We().node.isRequired,addAssetFromCatalogDrawerNothingFoundText:We().node.isRequired,uploadAssetDrawerTitle:We().node.isRequired,uploadAssetDrawerHint:We().node.isRequired,uploadAssetSelectLabel:We().node.isRequired,uploadAssetDrawerUploadButtonTitle:We().node.isRequired,uploadAssetDrawerDataType:We().string.isRequired,onUpload:We().func.isRequired,getAssetDescription:We().func.isRequired,uploadedTitle:We().node.isRequired,blockedPlugins:We().array.isRequired};const LR=mc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(MR);class AR extends M.Component{constructor(e){super(e),this.handleOpenAddDrawer=()=>this.setState({isShowAddDrawer:!0}),this.handleRemoveAsset=e=>this.props.onRemoveAsset(e),this.handleCloseAddDrawer=()=>{this.setState({isShowAddDrawer:!1})},this.state={isShowAddDrawer:!1}}renderAddAssetDrawer(){const{addAssetDrawerDataType:e,addAssetDrawerTitle:t,addAssetDrawerHeadText:n,addAssetDrawerAddButtonTitle:s,addAssetDrawerUploadButtonTitle:i,assetsList:a,addAssetFromCatalogDrawerTitle:r,addAssetFromCatalogDrawerHint:o,addAssetFromCatalogDrawerDataType:l,onSearchAssets:c,onAddAssets:u,isAssetProcessing:d,onChangeAssetActivationStatus:p,addAssetFromCatalogDrawerSearchDescription:h,addAssetFromCatalogDrawerTableTitleTitle:m,addAssetFromCatalogDrawerTableRatingTitle:f,addAssetFromCatalogDrawerNothingFoundText:g,uploadAssetDrawerTitle:b,uploadAssetDrawerHint:v,uploadAssetSelectLabel:y,uploadAssetDrawerUploadButtonTitle:x,uploadAssetDrawerDataType:_,onUpload:S,getAssetDescription:w,uploadedTitle:k}=this.props;return(0,P.jsx)(LR,{drawerTitle:t,headText:n,addButtonTitle:s,uploadButtonTitle:i,onClose:this.handleCloseAddDrawer,dataType:e,assetsList:a,addAssetFromCatalogDrawerTitle:r,addAssetFromCatalogDrawerHint:o,addAssetFromCatalogDrawerDataType:l,onSearchAssets:c,onRemoveAsset:this.handleRemoveAsset,onAddAssets:u,isAssetProcessing:d,onChangeAssetActivationStatus:p,addAssetFromCatalogDrawerSearchDescription:h,addAssetFromCatalogDrawerTableTitleTitle:m,addAssetFromCatalogDrawerTableRatingTitle:f,addAssetFromCatalogDrawerNothingFoundText:g,uploadAssetDrawerTitle:b,uploadAssetDrawerHint:v,uploadAssetSelectLabel:y,uploadAssetDrawerUploadButtonTitle:x,uploadAssetDrawerDataType:_,onUpload:S,getAssetDescription:w,uploadedTitle:k})}renderAddAssetAction(){const{setId:e,setType:t,addActionTitle:n,isUnpaid:s}=this.props;return(0,P.jsx)(Cs,{onClick:this.handleOpenAddDrawer,"data-test-set-id":e,"data-test-set-type":t,"data-test-set-action":"button-add-asset",disabled:s,children:n})}renderAssetTitle(e){const{uploadedTitle:t}=this.props;return e.isUploaded?(0,P.jsx)(jR,{asset:e,uploadedTitle:t}):e.title}renderAssetsList(e){const{isUnpaid:t,blockedPlugins:n}=this.props,s=[{key:"title",title:(0,P.jsx)(qd,{content:"list.sets.assetName"}),render:e=>(0,P.jsxs)(M.Fragment,{children:[e.isBlocked&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})},{key:"remove",title:"",width:"24px"}],i=e.map((e=>({key:e.id,isBlocked:n.includes(e.name),title:this.renderAssetTitle(e),remove:(0,P.jsx)(Be,{ghost:!0,icon:"cross-mark",onClick:()=>this.handleRemoveAsset(e.id),disabled:t})})));return(0,P.jsx)(Qr,{columns:s,data:i,vertical:!1})}renderAssetColumn(){const{assetsList:e,isExpanded:t,onToggleExpanded:n}=this.props;return 1===e.length?(0,P.jsxs)(M.Fragment,{children:[e[0].title," [",this.renderAddAssetAction()," ]"]}):e.length>1?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(ye,{onClick:n,children:(0,P.jsx)(qd,{content:"list.sets.itemsSetCount",params:{total:e.length}})})," [",this.renderAddAssetAction()," ]",t&&this.renderAssetsList(e)]}):this.renderAddAssetAction()}render(){const{isShowAddDrawer:e}=this.state;return(0,P.jsxs)(M.Fragment,{children:[e&&this.renderAddAssetDrawer(),this.renderAssetColumn()]})}}AR.propTypes={setId:We().number.isRequired,setType:We().string.isRequired,assetsList:We().array.isRequired,isExpanded:We().bool,onToggleExpanded:We().func.isRequired,addActionTitle:We().node.isRequired,addAssetDrawerDataType:We().node.isRequired,addAssetDrawerTitle:We().node.isRequired,addAssetDrawerHeadText:We().node.isRequired,addAssetDrawerAddButtonTitle:We().node.isRequired,addAssetDrawerUploadButtonTitle:We().node.isRequired,addAssetFromCatalogDrawerHint:We().node.isRequired,addAssetFromCatalogDrawerTitle:We().node.isRequired,isAssetProcessing:We().func.isRequired,onChangeAssetActivationStatus:We().func.isRequired,addAssetFromCatalogDrawerDataType:We().string.isRequired,onSearchAssets:We().func.isRequired,onAddAssets:We().func.isRequired,onRemoveAsset:We().func.isRequired,addAssetFromCatalogDrawerSearchDescription:We().node.isRequired,addAssetFromCatalogDrawerTableTitleTitle:We().node.isRequired,addAssetFromCatalogDrawerTableRatingTitle:We().node.isRequired,addAssetFromCatalogDrawerNothingFoundText:We().node.isRequired,uploadAssetDrawerTitle:We().node.isRequired,uploadAssetDrawerHint:We().node.isRequired,uploadAssetSelectLabel:We().node.isRequired,uploadAssetDrawerUploadButtonTitle:We().node.isRequired,uploadAssetDrawerDataType:We().string.isRequired,onUpload:We().func.isRequired,getAssetDescription:We().func.isRequired,isUnpaid:We().bool.isRequired,uploadedTitle:We().node.isRequired,blockedPlugins:We().array},AR.defaultProps={isExpanded:!1,blockedPlugins:[]};const ER=AR,RR=e=>{const{onSubmitRemove:t,onCancelRemove:n,buttonSubmitTitle:s,buttonCancelTitle:i,confirmationText:a}=e;return(0,P.jsx)(Ea,{isOpen:!0,buttons:(0,P.jsx)(Be,{onClick:t,children:s}),size:"sm",onClose:n,cancelTitle:i,children:a})};class UR extends M.Component{constructor(e){super(e),this.handleRemoveSetClick=()=>this.setState({showRemoveSetConfirmation:!0}),this.handleCloseRemoveSetConfirmation=()=>{this.setState({showRemoveSetConfirmation:!1})},this.handleRemoveAllPluginsClick=()=>this.setState({showRemoveAllPluginsConfirmation:!0}),this.handleCloseRemoveAllPluginsConfirmation=()=>{this.setState({showRemoveAllPluginsConfirmation:!1})},this.handleRemoveAllThemesClick=()=>this.setState({showRemoveAllThemesConfirmation:!0}),this.handleCloseRemoveAllThemesConfirmation=()=>{this.setState({showRemoveAllThemesConfirmation:!1})},this.handleSubmitRemoveSet=()=>{const{onSubmitRemoveSet:e}=this.props;this.setState({showRemoveSetConfirmation:!1}),e()},this.handleSubmitRemoveAllPlugins=()=>{const{onSubmitRemoveAllPlugins:e}=this.props;this.setState({showRemoveAllPluginsConfirmation:!1}),e()},this.handleSubmitRemoveAllThemes=()=>{const{onSubmitRemoveAllThemes:e}=this.props;this.setState({showRemoveAllThemesConfirmation:!1}),e()},this.state={showRemoveSetConfirmation:!1,showRemoveAllPluginsConfirmation:!1,showRemoveAllThemesConfirmation:!1}}renderRemoveSetConfirmationDialog(){return(0,P.jsx)(RR,{onSubmitRemove:this.handleSubmitRemoveSet,onCancelRemove:this.handleCloseRemoveSetConfirmation,buttonSubmitTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveSetConfirmationYes"}),buttonCancelTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveSetConfirmationNo"}),confirmationText:(0,P.jsx)(qd,{content:"list.sets.RemoveSetConfirmationDescription"})})}renderRemoveAllPluginsConfirmationDialog(){return(0,P.jsx)(RR,{onSubmitRemove:this.handleSubmitRemoveAllPlugins,onCancelRemove:this.handleCloseRemoveAllPluginsConfirmation,buttonSubmitTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveAllPluginsConfirmationYes"}),buttonCancelTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveAllPluginsConfirmationNo"}),confirmationText:(0,P.jsx)(qd,{content:"list.sets.RemoveAllPluginsConfirmationDescription"})})}renderRemoveAllThemesConfirmationDialog(){return(0,P.jsx)(RR,{onSubmitRemove:this.handleSubmitRemoveAllThemes,onCancelRemove:this.handleCloseRemoveAllThemesConfirmation,buttonSubmitTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveAllThemesConfirmationYes"}),buttonCancelTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveAllThemesConfirmationNo"}),confirmationText:(0,P.jsx)(qd,{content:"list.sets.RemoveAllThemesConfirmationDescription"})})}render(){const{set:e,instances:t,onInstallSetInto:n,isUnpaid:s}=this.props,{showRemoveSetConfirmation:i,showRemoveAllPluginsConfirmation:a,showRemoveAllThemesConfirmation:r}=this.state,o=[];t.length>0&&(e.plugins.length>0||e.themes.length>0)&&(o.push((0,P.jsx)(Sn,{onClick:()=>n(),children:(0,P.jsx)(qd,{content:"list.sets.installInto"})},"installInto")),o.push((0,P.jsx)(xn,{},"divider-1")));const l=e.plugins.length>0,c=e.themes.length>0;(l||c)&&(l&&o.push((0,P.jsx)(Sn,{onClick:this.handleRemoveAllPluginsClick,disabled:s,children:(0,P.jsx)(qd,{content:"list.sets.removeAllPlugins"})},"removeAllPlugins")),c&&o.push((0,P.jsx)(Sn,{onClick:this.handleRemoveAllThemesClick,disabled:s,children:(0,P.jsx)(qd,{content:"list.sets.removeAllThemes"})},"removeAllThemes")),o.push((0,P.jsx)(xn,{},"divider-2"))),o.push((0,P.jsx)(Sn,{onClick:this.handleRemoveSetClick,disabled:s,children:(0,P.jsx)(qd,{content:"list.sets.removeSet"})},"removeSet"));const u=(0,P.jsx)(qs,{children:o});return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(RA,{menu:u}),i&&this.renderRemoveSetConfirmationDialog(),a&&this.renderRemoveAllPluginsConfirmationDialog(),r&&this.renderRemoveAllThemesConfirmationDialog()]})}}UR.propTypes={set:We().shape({plugins:We().array,themes:We().array}).isRequired,instances:We().array,onInstallSetInto:We().func.isRequired,onSubmitRemoveSet:We().func.isRequired,onSubmitRemoveAllThemes:We().func.isRequired,onSubmitRemoveAllPlugins:We().func.isRequired,isUnpaid:We().bool.isRequired},UR.defaultProps={instances:[]};const NR=mc((e=>({instances:e.sets.instances})),null)(UR);class FR extends M.Component{constructor(e){super(e),this.handleRefresh=()=>{const{sets:e,setsActions:{getSetsList:t}}=this.props;e||this.setState({isSetsListLoading:!0}),t().finally((()=>{this.setState({isSetsListLoading:!1})}))},this.handleShowRemoveSetsConfirmation=()=>{this.setState({isShowRemoveSetsConfirmation:!0})},this.handleCloseRemoveSetsConfirmation=()=>{this.setState({isShowRemoveSetsConfirmation:!1})},this.handleSubmitRemoveSets=()=>{const{setsActions:{removeSets:e},appActions:{addSuccessMessage:t}}=this.props,n=this.getSelectedSetIdsForAction();null!==n&&e(n).then((()=>t((0,P.jsx)(qd,{content:"controllers.index.remove-set.removeSuccess"})))).finally((()=>{this.resetSelection(),this.handleCloseRemoveSetsConfirmation()}))},this.handleRemove=()=>{null!==this.getSelectedSetIdsForAction()&&this.handleShowRemoveSetsConfirmation()},this.handleAdd=()=>{this.setState({isShowCreateSetDrawer:!0,addSetName:""})},this.handleAddSetNameChange=e=>{this.setState({addSetName:e})},this.handleCloseAddDrawer=()=>{this.setState({isShowCreateSetDrawer:!1,formErrors:null})},this.handleSubmitAdd=()=>{const{setsActions:{addSet:e},appActions:{addSuccessMessage:t}}=this.props,{addSetName:n,isAdding:s}=this.state;s||this.setState({formErrors:null,isAdding:!0},(()=>{e(n).then((e=>{e.status===gp&&e.data&&e.data.formErrors?this.setState({formErrors:e.data.formErrors}):e.status===fp&&(t((0,P.jsx)(qd,{content:"controllers.index.add-set.addSuccess"})),this.setState({isShowCreateSetDrawer:!1}))})).finally((()=>this.setState({isAdding:!1})))}))},this.handleSelectionChange=e=>{this.setState({selectedSetIds:e})},this.resetSelection=()=>{this.setState({selectedSetIds:[]})},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.renderToolbar=()=>(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.sets.buttonAdd"}),children:(0,P.jsx)(Be,{onClick:this.handleAdd,"data-test-id":"toolbar-create-button",disabled:this.props.isUnpaid,children:(0,P.jsx)(qd,{content:"list.sets.buttonAdd"})})}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"list.sets.buttonRemove"}),children:(0,P.jsx)(Be,{onClick:this.handleRemove,"data-test-id":"toolbar-remove-button",disabled:this.props.isUnpaid,children:(0,P.jsx)(qd,{content:"list.sets.buttonRemove"})})})]}),this.handleInPlaceRenameSetNameChanged=e=>{this.setState({inPlaceRenameSetName:e.target.value})},this.handleCloseInPlaceRename=()=>{this.setState({inPlaceRenameOpenedSetId:null,inPlaceRenameSetName:""})},this.handleInPlaceRename=()=>{const{sets:e,setsActions:{renameSet:t},appActions:{addSuccessMessage:n}}=this.props,{inPlaceRenameOpenedSetId:s,inPlaceRenameSetName:i}=this.state;e.find((e=>e.id===s)).name.trim()===i.trim()?this.handleCloseInPlaceRename():t(s,i).then((e=>{e.status===fp&&(this.handleCloseInPlaceRename(),n((0,P.jsx)(qd,{content:"manage-sets.setRenamedSuccessfully"})))}))},this.handleInPlaceRenameKeyDown=e=>{"Enter"===e.key&&this.isInPlaceRenameCanBeSubmitted()?this.handleInPlaceRename():"Escape"===e.key&&this.handleInPlaceRenameCancel()},this.handleSearchPlugins=e=>{const{setsActions:{searchPlugins:t}}=this.props;return t(e).then((e=>e&&e.data&&e.data.plugins?e.data.plugins:null))},this.handleSearchThemes=e=>{const{setsActions:{searchThemes:t}}=this.props;return t(e).then((e=>e&&e.data&&e.data.themes?e.data.themes:null))},this.handleAddPlugins=(e,t)=>{const{setsActions:{addPluginsToSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.pluginAddedToSet"})),e)))},this.handleChangePluginActivationStatus=(e,t,n)=>{const{setsActions:{setPluginActivationState:s},appActions:{addSuccessMessage:i}}=this.props;return s(e,t,n).then((e=>(e.status===fp&&i(n?(0,P.jsx)(qd,{content:"manage-sets.pluginWasActivatedByDefaultForSet"}):(0,P.jsx)(qd,{content:"manage-sets.pluginWasDeactivatedByDefaultForSet"})),e)))},this.handleChangeThemeActivationStatus=(e,t,n)=>{const{setsActions:{setThemeActivationState:s},appActions:{addSuccessMessage:i}}=this.props;return s(e,t,n).then((e=>(e.status===fp&&i(n?(0,P.jsx)(qd,{content:"manage-sets.themeWasActivatedByDefaultForSet"}):(0,P.jsx)(qd,{content:"manage-sets.themeWasDeactivatedByDefaultForSet"})),e)))},this.handleAddThemes=(e,t)=>{const{setsActions:{addThemesToSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.themeAddedToSet"})),e)))},this.handleSubmitUploadPlugin=(e,t)=>{const{setsActions:{uploadPlugin:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.pluginUploadedToSet"})),e)))},this.handleSubmitUploadTheme=(e,t)=>{const{setsActions:{uploadTheme:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.themeUploadedToSet"})),e)))},this.handleRemovePlugin=(e,t)=>{const{setsActions:{removePluginFromSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.pluginRemovedFromSet"})),e)))},this.handleRemoveTheme=(e,t)=>{const{setsActions:{removeThemeFromSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===fp&&s((0,P.jsx)(qd,{content:"manage-sets.themeRemovedFromSet"})),e)))},this.handleRemoveSet=e=>{const{setsActions:{removeSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===fp&&n((0,P.jsx)(qd,{content:"manage-sets.setRemoved",params:{setName:e.name}}))}))},this.handleRemoveAllPlugins=e=>{const{setsActions:{removeAllPluginsFromSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===fp&&n((0,P.jsx)(qd,{content:"manage-sets.allPluginsRemovedFromSet",params:{setName:e.name}}))}))},this.handleRemoveAllThemes=e=>{const{setsActions:{removeAllThemesFromSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===fp&&n((0,P.jsx)(qd,{content:"manage-sets.allThemesRemovedFromSet",params:{setName:e.name}}))}))},this.renderMenu=e=>(0,P.jsx)(NR,{set:e,onInstallSetInto:()=>this.setState({showSelectInstances:!0,selectedSet:e}),onSubmitRemoveSet:()=>this.handleRemoveSet(e),onSubmitRemoveAllPlugins:()=>this.handleRemoveAllPlugins(e),onSubmitRemoveAllThemes:()=>this.handleRemoveAllThemes(e),isUnpaid:this.props.isUnpaid}),this.handleSubmitInstall=e=>(this.setState({showSelectInstances:!1}),this.props.setsActions.installSetInto(this.state.selectedSet.id,e)),this.state={isSetsListLoading:!1,isShowCreateSetDrawer:!1,isShowRemoveSetsConfirmation:!1,formErrors:null,addSetName:"",selectedSetIds:[],expandedPlugins:{},expandedThemes:{},inPlaceRenameOpenedSetId:null,inPlaceRenameSetName:"",sortColumn:null,sortDirection:"ASC",showSelectInstances:!1,selectedSet:null,isAdding:!1}}componentWillMount(){this.handleRefresh()}getSelectedSetIdsForAction(){const{appActions:{addWarningMessage:e}}=this.props,{selectedSetIds:t}=this.state;return 0===t.length?(e((0,P.jsx)(qd,{content:"lists.noItemsSelectedToast"})),null):t}renderAddDrawer(){const{addSetName:e,formErrors:t,isAdding:n}=this.state,s={onSubmit:this.handleSubmitAdd,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"manage-sets.buttonCreate"}),"data-test-id":"create-set-drawer-create-button",state:n?"loading":"active",disabled:n},cancelButton:{disabled:n}};return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"manage-sets.titleCreateSet"}),"data-type":"select-instances",onClose:this.handleCloseAddDrawer,isOpen:!0,form:s,children:[(0,P.jsxs)(mi,{children:[!1,(0,P.jsx)(qd,{content:"manage-sets.hintCreateSet"})]}),(0,P.jsx)(Sr,{"data-test-id":"create-set-drawer-name-input",label:(0,P.jsx)(qd,{content:"manage-sets.name"}),value:e,errors:t&&t.hasOwnProperty("name")?t.name:void 0,required:!0,size:"lg",onChange:this.handleAddSetNameChange})]})}openInPlaceSetNameEdit(e){this.setState({inPlaceRenameOpenedSetId:e.id,inPlaceRenameSetName:e.name})}handleInPlaceRenameCancel(){this.handleCloseInPlaceRename()}isInPlaceRenameCanBeSubmitted(){const{inPlaceRenameSetName:e}=this.state;return e.trim().length>0}renderSetNameColumn(e){const{isUnpaid:t}=this.props,{inPlaceRenameOpenedSetId:n,inPlaceRenameSetName:s}=this.state;return e.id===n?(0,P.jsxs)("div",{style:{whiteSpace:"nowrap"},children:[(0,P.jsx)(Ss,{value:s,onChange:this.handleInPlaceRenameSetNameChanged,onKeyDown:this.handleInPlaceRenameKeyDown})," ",(0,P.jsx)(Be,{icon:"check-mark",disabled:!this.isInPlaceRenameCanBeSubmitted(),onClick:this.handleInPlaceRename})]}):(0,P.jsx)(Cs,{onClick:()=>this.openInPlaceSetNameEdit(e),"data-test-set-id":e.id,disabled:t,children:(0,P.jsx)("span",{style:{borderBottom:"1px dashed"},children:e.name})})}toggleExpandedPlugins(e){this.setState((t=>({expandedPlugins:Object.assign(Object.assign({},t.expandedPlugins),{[e]:!t.expandedPlugins[e]})})))}toggleExpandedThemes(e){this.setState((t=>({expandedThemes:Object.assign(Object.assign({},t.expandedThemes),{[e]:!t.expandedThemes[e]})})))}renderRemoveSetsConfirmation(){return(0,P.jsx)(RR,{onSubmitRemove:this.handleSubmitRemoveSets,onCancelRemove:this.handleCloseRemoveSetsConfirmation,buttonSubmitTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveSetConfirmationYes"}),buttonCancelTitle:(0,P.jsx)(qd,{content:"list.sets.RemoveSetConfirmationNo"}),confirmationText:(0,P.jsx)(qd,{content:"list.sets.ConfirmRemove"})})}filterSets(e){const{search:t}=this.props;if(!t||""===t.trim())return e;const n=t.trim().toLowerCase();return e.filter((e=>-1!==e.name.toLowerCase().indexOf(n)))}renderSetsList(){const{sets:e,setsActions:{getPluginDescription:t,getThemeDescription:n},isUnpaid:s,blockedPlugins:i}=this.props,{isShowRemoveSetsConfirmation:a,isShowCreateSetDrawer:r,selectedSetIds:o,expandedPlugins:l,expandedThemes:c,sortColumn:u,sortDirection:d,showSelectInstances:p}=this.state,h=[{key:"name",title:(0,P.jsx)(qd,{content:"list.sets.sets"}),width:"20%",sortable:!0,sort:(e,t)=>e.rawName.localeCompare(t.rawName),render:e=>(0,P.jsxs)(M.Fragment,{children:[e.containsBlockedAsset&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"list.sets.hasBlockedPlugin"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",e.name]})},{key:"plugins",title:(0,P.jsx)(qd,{content:"list.sets.plugins"}),width:"40%"},{key:"themes",title:(0,P.jsx)(qd,{content:"list.sets.themes"}),width:"40%"},{key:"menu",title:""}],m=e=>e.plugins.map((e=>e.name)).filter((e=>i.includes(e))).length>0,f=this.filterSets(e).map((e=>({key:e.id,rawName:e.name,name:this.renderSetNameColumn(e),containsBlockedAsset:m(e),plugins:(0,P.jsx)(ER,{setId:parseInt(e.id),setType:"plugin",assetsList:e.plugins,isExpanded:l[e.id],onToggleExpanded:()=>this.toggleExpandedPlugins(e.id),isAssetProcessing:t=>e.plugins.some((({id:e,isProcessing:n})=>e===t&&n)),addActionTitle:(0,P.jsx)(qd,{content:"list.sets.buttonAddPlugin"}),addAssetDrawerDataType:"add-plugin-drawer",addAssetDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.managePluginsTitle",params:{name:e.name}}),addAssetDrawerHeadText:(0,P.jsx)(qd,{content:"manage-sets.headDescriptionSetCurrentPlugins"}),addAssetDrawerAddButtonTitle:(0,P.jsx)(qd,{content:"manage-sets.addPlugin"}),addAssetDrawerUploadButtonTitle:(0,P.jsx)(qd,{content:"manage-sets.uploadPlugin"}),addAssetFromCatalogDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.titleAddPluginSet",params:{name:e.name}}),addAssetFromCatalogDrawerHint:(0,P.jsx)(qd,{content:"manage-sets.hintAddPluginSet"}),addAssetFromCatalogDrawerDataType:"add-plugin-from-catalog-drawer",onSearchAssets:e=>this.handleSearchPlugins(e),onAddAssets:t=>this.handleAddPlugins(e.id,t),onChangeAssetActivationStatus:(t,n)=>this.handleChangePluginActivationStatus(e.id,t,n),onRemoveAsset:t=>this.handleRemovePlugin(e.id,t),addAssetFromCatalogDrawerSearchDescription:(0,P.jsx)(qd,{content:"manage-sets.tryToSearchPlugins"}),addAssetFromCatalogDrawerTableTitleTitle:(0,P.jsx)(qd,{content:"manage-sets.fieldName"}),addAssetFromCatalogDrawerTableRatingTitle:(0,P.jsx)(qd,{content:"manage-sets.fieldRating"}),addAssetFromCatalogDrawerNothingFoundText:(0,P.jsx)(qd,{content:"manage-sets.noItems"}),uploadAssetDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.uploadPlugin"}),uploadAssetDrawerHint:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectSetDescription"}),uploadAssetSelectLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.selectLabel"}),uploadAssetDrawerUploadButtonTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.buttonUpload"}),uploadAssetDrawerDataType:"upload-asset",onUpload:t=>this.handleSubmitUploadPlugin(t,e.id),getAssetDescription:t,isUnpaid:s,uploadedTitle:(0,P.jsx)(qd,{content:"manage-sets.customPlugin"}),blockedPlugins:i}),themes:(0,P.jsx)(ER,{setId:parseInt(e.id),setType:"theme",assetsList:e.themes,isExpanded:c[e.id],isAssetProcessing:()=>e.themes.some((({isProcessing:e})=>e)),onToggleExpanded:()=>this.toggleExpandedThemes(e.id),addActionTitle:(0,P.jsx)(qd,{content:"list.sets.buttonAddTheme"}),addAssetDrawerDataType:"add-theme-drawer",addAssetDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.manageThemesTitle",params:{name:e.name}}),addAssetDrawerHeadText:(0,P.jsx)(qd,{content:"manage-sets.headDescriptionSetCurrentThemes"}),addAssetDrawerAddButtonTitle:(0,P.jsx)(qd,{content:"manage-sets.addTheme"}),addAssetDrawerUploadButtonTitle:(0,P.jsx)(qd,{content:"manage-sets.uploadTheme"}),addAssetFromCatalogDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.titleAddThemeSet",params:{name:e.name}}),addAssetFromCatalogDrawerHint:(0,P.jsx)(qd,{content:"manage-sets.hintAddThemeSet"}),addAssetFromCatalogDrawerDataType:"add-theme-from-catalog-drawer",onSearchAssets:e=>this.handleSearchThemes(e),onChangeAssetActivationStatus:(t,n)=>this.handleChangeThemeActivationStatus(e.id,t,n),onAddAssets:t=>this.handleAddThemes(e.id,t),onRemoveAsset:t=>this.handleRemoveTheme(e.id,t),addAssetFromCatalogDrawerSearchDescription:(0,P.jsx)(qd,{content:"manage-sets.tryToSearchThemes"}),addAssetFromCatalogDrawerTableTitleTitle:(0,P.jsx)(qd,{content:"manage-sets.fieldName"}),addAssetFromCatalogDrawerTableRatingTitle:(0,P.jsx)(qd,{content:"manage-sets.fieldRating"}),addAssetFromCatalogDrawerNothingFoundText:(0,P.jsx)(qd,{content:"manage-sets.noItems"}),uploadAssetDrawerTitle:(0,P.jsx)(qd,{content:"manage-sets.uploadTheme"}),uploadAssetDrawerHint:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.selectSetDescription"}),uploadAssetSelectLabel:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.selectLabel"}),uploadAssetDrawerUploadButtonTitle:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.buttonUpload"}),uploadAssetDrawerDataType:"upload-theme-drawer",onUpload:t=>this.handleSubmitUploadTheme(t,e.id),getAssetDescription:n,isUnpaid:s,uploadedTitle:(0,P.jsx)(qd,{content:"manage-sets.customTheme"})}),menu:this.renderMenu(e)})));return(0,P.jsxs)(M.Fragment,{children:[a&&this.renderRemoveSetsConfirmation(),r&&this.renderAddDrawer(),this.renderToolbar(),p&&this.renderShowSelectInstances(),(0,P.jsx)(sL,{columns:h,data:f,selection:o,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:u,sortDirection:d})]})}renderShowSelectInstances(){return(0,P.jsx)(xT,{onCloseDrawer:()=>this.setState({showSelectInstances:!1}),instances:this.props.instances,onSubmitInstall:this.handleSubmitInstall,selectInstancesText:(0,P.jsx)(qd,{content:"list.sets.selectInstancesHeadDescription"}),instanceNameListTitle:(0,P.jsx)(qd,{content:"list.sets.selectInstancesInstanceName"}),instanceUrlListTitle:(0,P.jsx)(qd,{content:"list.sets.selectInstancesInstanceUrl"}),drawerTitle:(0,P.jsx)(qd,{content:"list.sets.selectInstancesDrawerTitle"}),backButton:!0})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n}=this.props;return e?(0,P.jsx)(Fv,{uatAction:"CLICK_EXT_BUY_FROM_SETS",purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,P.jsx)(qd,{content:"paidFeature.setsFeatureDescription"})}):null}render(){const{isSetsListLoading:e}=this.state;return(0,P.jsxs)(lj,{activeTab:aj,children:[e&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"manage-sets.loading"})}),this.renderPaidFeatureDesc(),!e&&this.renderSetsList()]})}}FR.propTypes={search:We().string,sets:We().array,instances:We().array,setsActions:We().shape({resetSetsList:We().func.isRequired,getSetsList:We().func.isRequired,addSet:We().func.isRequired,installSetInto:We().func.isRequired,removeSets:We().func.isRequired,renameSet:We().func.isRequired,addPluginsToSet:We().func.isRequired,setPluginActivationState:We().func.isRequired,setThemeActivationState:We().func.isRequired,addThemesToSet:We().func.isRequired,removePluginFromSet:We().func.isRequired,removeThemeFromSet:We().func.isRequired,uploadPlugin:We().func.isRequired,uploadTheme:We().func.isRequired,searchPlugins:We().func.isRequired,searchThemes:We().func.isRequired,removeSet:We().func.isRequired,removeAllPluginsFromSet:We().func.isRequired,removeAllThemesFromSet:We().func.isRequired,getPluginDescription:We().func.isRequired,getThemeDescription:We().func.isRequired}).isRequired,appActions:We().shape({addSuccessMessage:We().func.isRequired,addWarningMessage:We().func.isRequired}).isRequired,isUnpaid:We().bool.isRequired,upgradeUrl:We().string.isRequired,premiumFeaturesUrl:We().string,blockedPlugins:We().array.isRequired},FR.defaultProps={search:"",sets:[],instances:[],premiumFeaturesUrl:null};const YR=mc((e=>({search:e.app.search,sets:e.sets.list,instances:e.sets.instances,isUnpaid:e.app.unpaidFeatures[Tp],upgradeUrl:e.app.urls.featuresBuyLinks[Tp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({setsActions:kb(p,e),appActions:kb(t,e),pluginsActions:kb(l,e),themesActions:kb(d,e)})))(Dj(FR)),HR=Qd(AC,"serverIds"),BR=Qd(OC,"scanningServers"),VR=Qd(IC,"servers"),$R=Qd(MC),WR=Qd("server/DETACH_FINISHED"),zR=Qd("servers/ACCEPT_FINGERPRINT_FINISHED"),qR=e=>t=>{const n=lU(e);return eg.detachServers(n).then((({data:e})=>(t(Vg(e,(()=>{t(HR(e.data.detachedServers)),t(WR())}))),e)))},GR=e=>t=>eg.getServer(e).then((({data:e})=>(t(Vg(e)),e))),KR=(e,t=!0)=>n=>eg.acceptFingerprint(e).then((({data:e})=>(t&&n(Vg(e)),n(zR()),e))),XR=e=>t=>{const n=lU(e);return t(BR(e)),eg.scanServers(n).then((({data:e})=>(t(Vg(e,(()=>t(QR(e.data.task))))),e)))},QR=e=>t=>t({type:DC,task:e}),JR=e=>t=>t({type:PC,updatedServers:e}),ZR=({host:e,login:t,authType:n,password:s="",sshKeyInputType:i="",keyPath:a="",keyPlainText:r="",port:o,pathType:l,path:c=[],scan:u,description:d="",directoriesWithPhpInterpreters:p=[],id:h})=>m=>{const f=new FormData;let g;return g="password"===n?"password":i===YC?"keyPath":"keyPlainText",f.append("pathType",l),c.forEach(((e,t)=>{f.append(`path[${t}]`,e)})),p.forEach(((e,t)=>{f.append(`directoriesWithPhpInterpreters[${t}]`,e)})),f.append("host",e),f.append("login",t),f.append("authType",g),f.append("password",s),f.append("keyPath",a),f.append("keyPlainText",r),f.append("port",`${o}`),f.append("scan",u),f.append("description",d),h&&f.append("id",`${h}`),eg.addServer(f).then((({data:e})=>(m(Vg(e,(()=>m(eU(e.data.task))))),e)))},eU=e=>t=>t({type:jC,task:e}),tU=e=>t=>t({type:TC,server:e}),nU=e=>t=>t({type:CC,server:e}),sU=()=>e=>e({type:"servers/ADD_SERVER_FINISHED"}),iU=()=>e=>e({type:"servers/ADD_SERVER_FINISHED_WITH_ERROR"}),aU=Qd(LC),rU=()=>e=>eg.getServersList().then((({data:t})=>(e(Vg(t,(()=>e(VR(t.data.servers))))),t))),oU=()=>e=>eg.disableBetaDialog().then((({data:t})=>(e(Vg(t,(()=>e($R())))),t))),lU=e=>{const t=new FormData;return e.length&&e.forEach(((e,n)=>t.append(`ids[${n}]`,`${e}`))),t},cU=e=>t=>eg.getInstancesLog(e).then((({data:n})=>(t(Vg(n,(()=>t(uU(e,n.data.instancesLog))))),n))),uU=Qd(UC,"serverId","remoteInstancesLog"),dU=Qd(NC,"serverId");class pU extends M.Component{constructor(){super(...arguments),this.setValueByIndex=(e,t)=>{const{values:n}=this.props;n[t]=e,this.setValues(n)},this.getInputName=()=>{const{name:e}=this.props;return e||(this.props.children.props.name?this.props.children.props.name:null)},this.removeFieldByIndex=e=>{let{values:t}=this.props;t=t.filter(((t,n)=>n!==e)),this.setValues(t)},this.getSingleField=({value:e,index:t})=>{const{baseClassName:n,size:s,disabled:i}=this.props;return(0,P.jsxs)("div",{className:E()(`${n}__single`),children:[(0,M.cloneElement)(this.props.children,{onChange:e=>this.setValueByIndex(e.target.value,t),name:`${this.getInputName()}[${t}]`,className:E()({[this.props.children.props.className]:this.props.children.props.className},`${n}--size-${s}`),value:e,size:s,disabled:i}),this.isSeveralFieldsExists()&&(0,P.jsx)(Be,{className:E()(`${n}__remove`),icon:"cross-mark",tooltip:(0,P.jsx)(qd,{content:"remote-servers.serverFormRemoveFieldPath"}),onClick:()=>this.removeFieldByIndex(t),disabled:i})]},t)},this.isAddMoreInactive=()=>{const{values:e,disabled:t}=this.props;return t||0===e.length||e.map((e=>`${e}`)).some((e=>""===e.trim()))},this.isSeveralFieldsExists=()=>this.props.values.length>1,this.addEmptyField=()=>{const{values:e}=this.props;e.push(""),this.setValues(e)},this.setValues=e=>this.props.onChange(e),this.getFields=()=>{const e=[];return this.props.values.forEach(((t,n)=>{e.push(this.getSingleField({value:t,index:n}))})),e.push((0,P.jsx)(ye,{onClick:()=>this.addEmptyField(),className:E()(`${this.props.baseClassName}__add-more`,{[`${this.props.baseClassName}__add-more-disabled`]:this.isAddMoreInactive()}),children:(0,P.jsx)("small",{children:(0,P.jsx)(qd,{content:"remote-servers.serverFormAddFieldPath"})})},"add-more")),e}}render(){const e=this.props,{baseClassName:t}=e,n=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["baseClassName"]);return(0,P.jsx)(Sa,Object.assign({},n,{children:this.getFields()}))}}pU.propTypes={children:We().node.isRequired,values:We().array,name:We().string,label:We().any,disabled:We().bool,size:We().oneOf(["md","lg","xl","fill"]),baseClassName:We().string,onChange:We().func.isRequired,errors:We().array},pU.defaultProps={values:null,name:null,label:void 0,disabled:!1,size:"md",baseClassName:`${Rp}form-field-multiple`,errors:[]};const hU=pU,mU=e=>{const{text:t}=e;if(!t)return null;let n="";return n=(0,M.isValidElement)(t)?t:t.split("\n").map((e=>(0,P.jsxs)("span",{children:[e,(0,P.jsx)("br",{})]},sp(4)))),(0,P.jsx)(mi,{children:n})},fU=e=>{const{id:t,text:n,type:s,onAcceptFingerprint:i}=e;return n?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(mU,{text:n}),"fingerprint"===s&&(0,P.jsx)(mi,{children:(0,P.jsx)(ye,{onClick:e=>i(e,t),"data-test-id":"remote-server-form-apply-fingerprint",children:(0,P.jsx)(qd,{content:"remote-servers.resetPreviousFingerprint"})})})]}):null};fU.propTypes={id:We().number,text:We().string,type:We().string,onAcceptFingerprint:We().func},fU.defaultProps={id:null,text:null,type:null,onAcceptFingerprint:()=>{}};const gU=fU;const bU=e=>{var{disabled:t=!1,className:n,baseClassName:s=`${Rp}form-field-password`}=e,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["disabled","className","baseClassName"]);return(0,P.jsx)(fr,Object.assign({},i,{className:E()(n,{[`${s}__disabled`]:t})}))},vU=e=>{const{name:t,label:n,"data-test-id":s=null,disabled:i=!1,rows:a=5,cols:r=46,onChange:o}=e;return(0,P.jsx)(Sa,{name:t,label:n,"data-test-id":s,disabled:i,onChange:o,children:({getId:e,getName:t,getValue:n,setValue:s})=>(0,P.jsx)("textarea",{id:e(),name:t(),value:n(),rows:a,cols:r,onChange:e=>s(e.target.value),disabled:i})})},yU="host",xU="description",_U="port",SU="login",wU="authType",kU="password",jU="sshKeyInputType",TU="keyPath",CU="keyPlainText",DU="pathType",PU="path",OU="scan",IU="directoriesWithPhpInterpreters";class MU extends M.Component{constructor(){super(...arguments),this.isAuthByPassword=()=>!this.props.values||this.props.values.authType===BC,this.isInstancePathsAutodetectEnabled=()=>!this.props.values||this.props.values.pathType===VC,this.getPasswordIndentField=()=>{if(!this.isAuthByPassword())return[];const{values:e,isFormSending:t,onFormFieldChange:n}=this.props,s=e&&e.privateKeyExist;return[(0,P.jsx)(bU,{name:kU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldSshPassword"}),hideShowButton:!0,hideGenerateButton:!0,hidePasswordMeter:!0,required:!s,size:"lg","data-test-id":"remote-server-form-field-password",disabled:t,onChange:e=>n(kU,e)},"password")]},this.getSshKeyInputTypeSelect=(e,t,n)=>{const{values:{sshKeyInputType:s},isFormSending:i}=this.props,a=[(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldKeyPathToKeyFile",component:"option",value:YC,selected:YC===s},YC),(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldKeyEnterKeyManually",component:"option",value:HC,selected:HC===s},HC)];return(0,P.jsx)("select",{id:e(),name:t(),onChange:e=>n(e.target.value),disabled:i,children:a})},this.getKeyIndentField=()=>{if(this.isAuthByPassword())return[];const{values:e,isAuthTypeByKeyPathDisabled:t,isFormSending:n,onFormFieldChange:s}=this.props,i=e&&e.privateKeyExist,a=[];return t||a.push((0,P.jsx)(Sa,{name:jU,"data-test-id":"remote-server-form-field-key-input-type",disabled:n,onChange:e=>s(jU,e),children:({getId:e,getName:t,setValue:n})=>this.getSshKeyInputTypeSelect(e,t,n)},jU)),e.sshKeyInputType===YC&&a.push((0,P.jsx)(Sr,{name:TU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldKeyPath"}),required:!i,"data-test-id":"remote-server-form-field-key-path",size:"lg",disabled:n,onChange:e=>s(TU,e)},TU)),e.sshKeyInputType===HC&&a.push((0,P.jsx)(vU,{name:CU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldKeyPlainText"}),required:!i,"data-test-id":"remote-server-form-field-key-contents",disabled:n,rows:5,cols:46,onChange:e=>s(CU,e)},CU)),a},this.getInstancePathsIndentField=()=>{if(this.isInstancePathsAutodetectEnabled())return[];const{isFormSending:e,onFormFieldChange:t,values:n,errors:s}=this.props;return[(0,P.jsx)(hU,{"data-test-id":"remote-server-form-field-paths",size:"lg",disabled:e,onChange:e=>t(PU,e),values:op(n,PU,[""]),errors:op(s,PU,[]),children:(0,P.jsx)(Ss,{name:PU})},PU)]},this.getBackgroundTaskErrors=e=>{if(!e||!e.publicParams||!e.publicParams.error)return[];const{onAcceptFingerprint:t,values:n}=this.props,{publicParams:{error:{text:s,type:i}}}=e;return[(0,P.jsx)(gU,{id:n.id,onAcceptFingerprint:t,text:s,type:i},i)]},this.getErrorBlock=()=>{const{isDataLoading:e,error:t,backgroundTask:n,values:s,onAcceptFingerprint:i}=this.props;return e||n&&0!==this.getBackgroundTaskErrors(n).length||!t||!t.text?null:(0,P.jsx)(xe,{intent:"danger","data-test-id":"remote-server-form-errors",children:(0,P.jsx)(gU,{id:s.id,text:t.text,type:t.type,onAcceptFingerprint:i})})},this.getSuccessBlock=()=>{const{isDataLoading:e,success:t}=this.props;return e||!t?null:(0,P.jsx)(xe,{intent:"success","data-test-id":"remote-server-form-success",children:t})}}render(){const{values:e,errors:t,isDataLoading:n,isEditServer:s,isFormVisible:i,isAdditionalParametersCollapsible:a,isFormSending:r,onFormFieldChange:o}=this.props,l=e&&e.privateKeyExist;return(0,P.jsxs)("div",{"data-test-id":"remote-server-form",className:Up,children:[n&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"remote-servers.serverEditLoading"})}),this.getErrorBlock(),this.getSuccessBlock(),i&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"remote-servers.serverFormSectionSettings"}),children:[(0,P.jsx)(Sr,{name:yU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldHost"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-host",disabled:r,onChange:e=>o(yU,e)}),(0,P.jsx)(vU,{name:xU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldDescription"}),"data-test-id":"remote-server-form-field-description",disabled:r,rows:5,cols:46,onChange:e=>o(xU,e)}),(0,P.jsx)(Sr,{name:_U,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldPort"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-port",disabled:r,onChange:e=>o(_U,e)}),(0,P.jsx)(Sr,{name:SU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldSshLogin"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-login",disabled:r,onChange:e=>o(SU,e)})]}),(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"remote-servers.serverFormSectionAuth"}),children:[(0,P.jsx)(mi,{children:(0,P.jsx)(ca,{children:l?(0,P.jsx)(qd,{content:"remote-servers.hintServerHasGeneratedSshKey"}):(0,P.jsx)(qd,{content:"remote-servers.hintSshKeyWillBeGenerated"})})}),(0,P.jsx)(gr,{name:wU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldAuthType"}),options:[{label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldAuthTypePassword","data-test-id":"remote-server-form-field-auth-password"}),value:BC,indentFields:this.getPasswordIndentField()},{label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldAuthTypeKey","data-test-id":"remote-server-form-field-auth-key"}),value:"key",indentFields:this.getKeyIndentField()}],onChange:e=>o(wU,e),disabled:r,value:e.authType})]}),(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"remote-servers.serverFormSectionInstances"}),children:[(0,P.jsx)(gr,{name:DU,label:" ",options:[{label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldPathTypeAutodetect","data-test-id":"remote-server-form-field-path-type-autodetect"}),value:VC},{label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldPathTypePaths","data-test-id":"remote-server-form-field-path-type-paths"}),value:$C,indentFields:this.getInstancePathsIndentField()}],onChange:e=>o(DU,e),"data-test-id":"remote-server-form-field-path-type",disabled:r,value:e.pathType}),(0,P.jsx)(ar,{name:OU,label:s?(0,P.jsx)(qd,{content:"remote-servers.serverFormScanImmediatelyAfterUpdate"}):(0,P.jsx)(qd,{content:"remote-servers.serverFormScanImmediatelyAfterAdd"}),checkedValue:"1",uncheckedValue:"0","data-test-id":"remote-server-form-field-scan",disabled:r,onChange:e=>o(OU,e)})]}),(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"remote-servers.serverFormAdditionalParameters"}),collapsible:a,collapsed:!0,children:(0,P.jsx)(hU,{name:IU,label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldDirectoriesWithPhpInterpreters"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-directories-with-php-interpreters",disabled:r,onChange:e=>o(IU,e),values:op(e,IU,[""]),errors:op(t,IU,[]),children:(0,P.jsx)(Ss,{name:IU})})}),s&&(0,P.jsx)(Sr,{name:"id",label:(0,P.jsx)(qd,{content:"remote-servers.serverFormFieldId"}),style:{display:"none"}})]})]})}}MU.propTypes={onAcceptFingerprint:We().func.isRequired,values:We().shape({id:We().string,host:We().string,login:We().string,authType:We().oneOf([BC,"key"]),pathType:We().oneOf([VC,$C]),password:We().string,keyPath:We().string,port:We().string,path:We().array,directoriesWithPhpInterpreters:We().array,scan:We().string,privateKeyExist:We().bool,sshKeyInputType:We().string}),errors:We().shape({path:We().array,directoriesWithPhpInterpreters:We().array}),error:We().shape({text:We().string,type:We().string}),success:We().string,isDataLoading:We().bool.isRequired,isEditServer:We().bool.isRequired,isFormVisible:We().bool.isRequired,isFormSending:We().bool.isRequired,isAdditionalParametersCollapsible:We().bool,backgroundTask:We().shape({title:We().string.isRequired,steps:We().object.isRequired}),isAuthTypeByKeyPathDisabled:We().bool.isRequired,onFormFieldChange:We().func.isRequired},MU.defaultProps={error:null,success:null,values:null,errors:null,backgroundTask:null,isAdditionalParametersCollapsible:!0};const LU=MU,AU=e=>{const{onSubmit:t,onCancel:n}=e;return(0,P.jsx)(Ea,{isOpen:!0,title:(0,P.jsx)(qd,{content:"remote-servers.detachServerDialogTitle"}),buttons:(0,P.jsx)(Be,{onClick:t,"data-test-id":"remote-server-confirm-detach-btn",children:(0,P.jsx)(qd,{content:"remote-servers.detachServerDialogDetachButton"})}),size:"sm",onClose:n,children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"remote-servers.detachServerDialogConfirmation"})})})};AU.propTypes={onSubmit:We().func.isRequired,onCancel:We().func.isRequired};const EU=AU,RU=e=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(be,{size:"16",children:(0,P.jsx)("svg",{height:"8",width:"8",children:(0,P.jsx)("circle",{cx:"8",cy:"8",r:"4",fill:e.iconFillColor})})})," ",e.text]}),UU=e=>{const{text:t,textDataTestId:n}=e,s=(0,P.jsx)("span",{style:{position:"relative",display:"block"},children:(0,P.jsx)("span",{"data-test-id":n,style:{position:"absolute",left:"0px",right:"0px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})});return(0,P.jsx)(Fs,{target:s,children:(0,P.jsx)("span",{style:{wordBreak:"break-word"},children:t})})};class NU extends M.Component{constructor(){super(...arguments),this.getColumnsList=()=>[{key:"host",width:"150px",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoHost"}),render:e=>(0,P.jsx)("span",{"data-test-id":"remote-server","data-test-server-id":e.id,"data-test-server-hostname":e.host,children:e.host})},{key:"status",width:"150px",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoStatus"}),render:e=>e.status===FC?(0,P.jsx)(RU,{iconFillColor:"green",text:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoStatusActive"})}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(RU,{iconFillColor:"red",text:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoStatusError"})})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{children:(0,P.jsx)(qd,{content:"remote-servers.openEditServerDialog"})}),intent:"danger",children:(0,P.jsx)(gU,{id:e.id,text:e.errorText,type:e.status,onAcceptFingerprint:this.props.onAcceptFingerprint})})]})},{key:"instances",width:"100px",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoInstances"}),render:e=>(0,P.jsx)("span",{"data-test-id":"remote-server-instances-counter",children:e.instances})},{key:"description",title:(0,P.jsx)(qd,{content:"remote-servers.serverCardGeneralInfoDescription"}),render:e=>(0,P.jsx)(UU,{text:e.description,textDataTestId:"remote-server-description"})},{key:"buttons",width:"20px",render:e=>(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"remote-servers.toolbarGroupEditServer"}),children:(0,P.jsx)(ye,{onClick:t=>this.props.onEditClick(t,e.id),"data-test-id":"remote-server-edit-btn",icon:"pencil"})})}],this.getServers=()=>{const{search:e,servers:t,selectedFilter:n}=this.props,s=e.toLowerCase();let i=t;return e&&(i=i.filter((({host:e,description:t})=>-1!==e.toLowerCase().indexOf(s)||-1!==t.toLowerCase().indexOf(s)))),i.filter((e=>n===EC||(n===RC?e.status===FC:e.status!==FC))).map((e=>Object.assign(Object.assign({},e),{key:e.id})))}}render(){const{selectedServerIds:e,onSelectionChange:t}=this.props,n=this.getServers();return 0===n.length?(0,P.jsx)(qd,{content:"list.remote-servers.notFound"}):(0,P.jsx)(Qr,{columns:this.getColumnsList(),data:n,selection:e,onSelectionChange:t,"data-test-id":"remote-servers-list"})}}NU.propTypes={search:We().string.isRequired,servers:We().array.isRequired,selectedServerIds:We().array.isRequired,selectedFilter:We().string.isRequired,onEditClick:We().func.isRequired,onSelectionChange:We().func.isRequired,onAcceptFingerprint:We().func.isRequired};const FU=NU;class YU extends M.Component{constructor(){super(...arguments),this.getFiltersList=()=>[{value:EC,title:(0,P.jsx)(qd,{content:"remote-servers.serversFilter.all"})},{value:RC,title:(0,P.jsx)(RU,{iconFillColor:"green",text:(0,P.jsx)(qd,{content:"remote-servers.serversFilter.active"})})},{value:"server/FILTERS_ERROR",title:(0,P.jsx)(RU,{iconFillColor:"red",text:(0,P.jsx)(qd,{content:"remote-servers.serversFilter.error"})})}]}render(){const{hasSelectedServers:e,selectedFilter:t,onAddServersClick:n,onScanClick:s,onRefreshClick:i,onDetachClick:a,onFilterChange:r}=this.props;return(0,P.jsxs)(Mi,{children:[(0,P.jsxs)(Ii,{title:(0,P.jsx)(qd,{content:"list.instances.collapsedToolbarActions"}),children:[(0,P.jsx)(Be,{onClick:n,"data-test-id":"add-remote-server-btn",children:(0,P.jsx)(qd,{content:"remote-servers.toolbarButtonAddServer"})}),(0,P.jsx)(Be,{onClick:i,"data-test-id":"refresh-remote-server-btn",icon:"refresh",children:(0,P.jsx)(qd,{content:"remote-servers.toolbarButtonRefreshServers"})}),(0,P.jsx)(Be,{onClick:s,disabled:!e,"data-test-id":"scan-remote-server-btn",icon:"search",children:(0,P.jsx)(qd,{content:"remote-servers.toolbarButtonScanServers"})}),(0,P.jsx)(Be,{onClick:a,disabled:!e,"data-test-id":"detach-remote-server-btn",children:(0,P.jsx)(qd,{content:"remote-servers.toolbarButtonDetachServers"})})]},"toolbar-group-add-server"),(0,P.jsx)(ui,{}),(0,P.jsx)(Zs,{buttons:this.getFiltersList(),selected:t,onChange:r})]})}}YU.propTypes={hasSelectedServers:We().bool.isRequired,selectedFilter:We().string.isRequired,onAddServersClick:We().func.isRequired,onScanClick:We().func.isRequired,onRefreshClick:We().func.isRequired,onDetachClick:We().func.isRequired,onFilterChange:We().func.isRequired};const HU=YU,BU="pending",VU="registered",$U="warning",WU="error",zU="any",qU="info",GU="success",KU="warning",XU="danger";class QU extends M.Component{constructor(){super(...arguments),this.getFiltersList=()=>{const{filterInstancesCount:e}=this.props;return[{value:zU,title:this.formatFilterTitle((0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.any"}),e[zU])},{value:BU,title:(0,P.jsx)(RU,{iconFillColor:"blue",text:this.formatFilterTitle((0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.pending"}),e[BU])})},{value:VU,title:(0,P.jsx)(RU,{iconFillColor:"green",text:this.formatFilterTitle((0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.registered"}),e[VU])})},{value:$U,title:(0,P.jsx)(RU,{iconFillColor:"orange",text:this.formatFilterTitle((0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.warning"}),e[$U])})},{value:WU,title:(0,P.jsx)(RU,{iconFillColor:"red",text:this.formatFilterTitle((0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.error"}),e[WU])})}]}}formatFilterTitle(e,t){return null!=t?(0,P.jsx)("span",{children:`${e} (${t})`}):(0,P.jsx)("span",{children:e})}render(){const{selectedFilter:e,onSearchChange:t,onFilterChange:n}=this.props;return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(_l,{maxWidth:270,onTyping:t,onSearch:t}),(0,P.jsx)(ui,{}),(0,P.jsx)(Zs,{buttons:this.getFiltersList(),selected:e,onChange:n})]})}}QU.propTypes={selectedFilter:We().string.isRequired,onSearchChange:We().func.isRequired,onFilterChange:We().func.isRequired,filterInstancesCount:We().object.isRequired};const JU=QU;class ZU extends M.Component{constructor(e){super(e),this.getColumnsList=()=>{const{expandedDetails:e}=this.state;return[{key:"path",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.logTablePath"}),render:e=>(0,P.jsx)("span",{children:(0,P.jsx)(UU,{text:e.path,textDataTestId:"remote-server-instance-path"})})},{key:"status",width:"150px",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.logTableStatus"}),render:e=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Fa,{intent:this.getIntent(e.status)})," ",(0,P.jsx)("span",{children:this.getStatusMessage(e.status)})]}),sort:(e,t)=>{const n=this.getSeverityLevel(t.status)-this.getSeverityLevel(e.status);return Math.sign(n)}},{key:"shortDetails",width:"250px",sortable:!0,title:(0,P.jsx)(qd,{content:"remote-servers.logTableDetails"}),render:t=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("div",{children:t.shortDetails}),e[t.id]&&(0,P.jsx)("div",{children:t.fullDetails})]})},{key:"expand",width:"30px",title:"",render:t=>t.fullDetails&&(0,P.jsx)("span",{children:(0,P.jsx)("a",{onClick:()=>this.toggleDetails(t),children:(0,P.jsx)(be,{name:e[t.id]?"chevron-up":"chevron-down",size:16})})})}]},this.handleFilterChange=e=>{this.setState({selectedFilter:e})},this.handleSearchChange=e=>{this.setState({search:e})},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.getListData=()=>{const{selectedFilter:e,search:t}=this.state;return this.getInstancesByFilter(e,t).map((e=>Object.assign(Object.assign({},e),{key:e.id})))},this.getFilterInstancesCount=()=>{const{search:e}=this.state;return ap([zU,BU,VU,$U,WU],(t=>({key:t,value:this.getInstancesByFilter(t,e).length})))},this.getInstancesByFilter=(e,t)=>{const{remoteInstancesLog:n,serverId:s}=this.props;return n[s]?n[s].filter((t=>e===zU||e===t.status)).filter((e=>{if(!t)return!0;const n=t.toLowerCase();return rp(e.path.toLowerCase(),n)||e.shortDetails&&rp(e.shortDetails.toLowerCase(),n)||e.fullDetails&&rp(e.fullDetails.toLowerCase(),n)})):[]},this.isLogMounted=!1,this.state={isLoading:!0,expandedDetails:null,selectedFilter:zU,search:null,timer:null,sortColumn:null,sortDirection:null}}componentWillMount(){this.isLogMounted=!0,this.startRefresh()}componentWillReceiveProps(e){const{remoteInstancesLog:t,serverId:n}=e;t[n]&&this.setState((e=>{const{expandedDetails:s}=e;return{isLoading:!1,expandedDetails:ap(t[n],(e=>({key:e.id,value:s&&s[e.id]})))}}))}componentWillUnmount(){const{serversActions:{resetInstancesLog:e},serverId:t}=this.props,{timer:n}=this.state;this.isLogMounted=!1,e(t),n&&clearTimeout(n)}schedulePeriodicRefresh(){this.isLogMounted&&this.setState({timer:setTimeout((()=>{this.doRefresh().finally((()=>this.schedulePeriodicRefresh()))}),5e3)})}doRefresh(){const{serversActions:{refreshInstancesLog:e},serverId:t}=this.props;return t?e(t):new Promise((e=>e()))}startRefresh(){this.doRefresh().finally((()=>{this.schedulePeriodicRefresh(),this.setState({isLoading:!1})}))}toggleDetails(e){this.setState((t=>{const{expandedDetails:n}=t;return{expandedDetails:Object.assign({},n,{[e.id]:!n[e.id]})}}))}getIntent(e){let t="inactive";switch(e){case BU:t=qU;break;case VU:t=GU;break;case $U:t=KU;break;case WU:t=XU}return t}getStatusMessage(e){let t=(0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.info"});switch(e){case BU:t=(0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.pending"});break;case VU:t=(0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.registered"});break;case $U:t=(0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.warning"});break;case WU:t=(0,P.jsx)(qd,{content:"remote-servers.instanceLogStatus.error"})}return t}getSeverityLevel(e){let t=2;switch(e){case BU:t=1;break;case VU:t=0;break;case $U:t=3;break;case WU:t=4}return t}renderLoading(){return(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"remote-servers.instancesLogLoading"})})}renderList(){const{selectedFilter:e,sortColumn:t,sortDirection:n}=this.state,s=this.getListData(),i=s&&s.length>0;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(JU,{selectedFilter:e,onFilterChange:this.handleFilterChange,onSearchChange:this.handleSearchChange,filterInstancesCount:this.getFilterInstancesCount()}),(0,P.jsx)("br",{}),i&&(0,P.jsx)(Qr,{columns:this.getColumnsList(),data:s,onSortChange:this.handleSortChange,sortColumn:t,sortDirection:n}),!i&&(0,P.jsx)(qd,{content:"remote-servers.instancesLogNoItemsFound"})]})}render(){const{isLoading:e}=this.state;return(0,P.jsxs)(M.Fragment,{children:[e&&this.renderLoading(),!e&&this.renderList()]})}}ZU.propTypes={serverId:We().string,remoteInstancesLog:We().object.isRequired,serversActions:We().shape({refreshInstancesLog:We().func.isRequired,resetInstancesLog:We().func.isRequired}).isRequired},ZU.defaultProps={serverId:null};const eN=mc((e=>({remoteInstancesLog:e.servers.remoteInstancesLog})),(e=>({serversActions:kb(h,e)})))(Dj(ZU)),tN={addUpdateBackgroundTaskId:null,addUpdateBackgroundTask:null,isAddUpdateTaskProcessing:!1,isAddUpdateTaskFinished:!1,isAddUpdateTaskFinishedWithError:!1};class nN extends M.Component{constructor(e){super(e),this.handleOnReceiveAddUpdateBackgroundTaskData=e=>{const{addUpdateBackgroundTaskId:t,addUpdateBackgroundTask:n}=this.state;if(!t)return;const s=XD(t,e);s&&n!==s&&this.setState({addUpdateBackgroundTask:s},(()=>{this.handleUpdateBackgroundTaskData(this.state.addUpdateBackgroundTask),GD(s)?this.handleConnectingServerSuccess(s):KD(s)&&this.handleConnectingServerFailed(s)}))},this.handleConnectingServerSuccess=e=>{if(this.setState({isAddUpdateTaskProcessing:!1,isAddUpdateTaskFinished:!0,isAddUpdateTaskFinishedWithError:!1}),e.publicParams.server&&e.publicParams.server.id){const t=e.publicParams.server.id;this.props.servers.some((e=>e.id===t))?this.props.serversActions.updateServerInList(e.publicParams.server):this.props.serversActions.addServerToList(e.publicParams.server),this.props.serversActions.addServerFinished()}},this.handleConnectingServerFailed=e=>{this.setState((t=>{let n=t.formValues;return e&&e.publicParams.server&&(n=Object.assign(Object.assign({},n),e.publicParams.server)),{formValues:n,isServerFormOpened:!0,isFormSending:!1,isServerFormLoading:!1,isAddUpdateTaskProcessing:!1,serverDialogSuccess:null}})),e.publicParams.server&&e.publicParams.server.id&&(this.props.servers.some((t=>t.id===e.publicParams.server.id))?this.props.serversActions.updateServerInList(e.publicParams.server):this.props.serversActions.addServerToList(e.publicParams.server),this.setState({isAddUpdateTaskFinished:!0,isAddUpdateTaskFinishedWithError:!0})),this.props.serversActions.addServerFinishedWithError()},this.handleAddServerErrors=e=>{const t=e&&e.data&&e.data.formErrors?e.data.formErrors:null;let n=e&&e.message?{text:e.message,type:"internal-error"}:null;t||n||(n={text:(0,P.jsx)(qd,{content:"remote-servers.addServerInternalError"}),type:"internal-error"}),this.setState((s=>{let i=s.formValues;return e&&e.data&&e.data.server&&(i=Object.assign(Object.assign({},i),e.data.server)),{formErrors:t,serverDialogError:n,formValues:i,isServerFormOpened:!0,isFormSending:!1,isServerFormLoading:!1,isAddUpdateTaskProcessing:!1,serverDialogSuccess:null}}))},this.getDefaultSshAuthType=()=>{const{isAuthTypeByKeyPathDisabled:e}=this.props;return e?HC:YC},this.handleFormFieldChange=(e,t)=>this.setState((n=>({formValues:Object.assign(Object.assign({},n.formValues),{[e]:t})}))),this.handleAddServer=()=>{this.setState({formValues:{host:"",login:"root",authType:BC,password:"",sshKeyInputType:this.getDefaultSshAuthType(),keyPath:"",keyPlainText:"",port:"22",pathType:VC,path:[""],scan:"1",privateKeyExist:!1,directoriesWithPhpInterpreters:["/opt","/usr"]},isFormSending:!1,isServerFormOpened:!0,activeTab:1,serverId:null,isServerSaved:!1})},this.handleEditServer=(e,t)=>{this.setState({serverId:t,isServerFormLoading:!0,isServerFormOpened:!0,activeTab:1,isServerSaved:!1});let n=t;if(!n){const{selectedServerIds:e}=this.state;n=e.pop()}const{serversActions:{getServer:s}}=this.props;s(n).then((e=>{const t=e.data;"error"===e.status?this.handleAddServerErrors(e):this.setState({formValues:Object.assign(Object.assign({},t.server),{authType:BC,sshKeyInputType:this.getDefaultSshAuthType(),pathType:t.server.path.length<1?VC:$C,scan:"1"}),formErrors:null,serverDialogError:{text:t.server.errorText,type:t.server.status},isFormSending:!1})})).finally((()=>{this.setState({isServerFormLoading:!1})}))},this.handleAcceptFingerprint=(e,t,n=!0)=>{const{serversActions:{acceptFingerprint:s,getServersList:i}}=this.props;return s(t,n).then((e=>(i(),e))).finally((e=>(this.resetBackgroundTaskData(),e)))},this.handleAcceptFingerprintAndOpenServerForm=(e,t)=>(this.setState({isServerFormLoading:!0}),this.handleAcceptFingerprint(e,t,!1).then((n=>(this.handleEditServer(e,t),n&&n.status===fp&&n.message&&this.setState({serverDialogSuccess:n.message}),n)))),this.resetBackgroundTaskData=()=>this.setState(Object.assign({},tN)),this.handleUpdateBackgroundTaskData=e=>{const{publicParams:t}=e;t.server&&t.server.id&&!this.state.serverId&&this.setState({serverId:t.server.id}),t.hasOwnProperty("isServerSaved")&&this.setState({isServerSaved:t.isServerSaved})},this.handleSubmitAddServerDialog=()=>{this.setState({isFormSending:!0});const{serversActions:{addServer:e}}=this.props,{formValues:t}=this.state;e(t).then((e=>{const{status:t,data:n}=e;if(t===fp){const{task:e}=n;this.setState({addUpdateBackgroundTaskId:e.id,formErrors:null,serverDialogError:null,serverDialogSuccess:null,isFormSending:!1,isAddUpdateTaskProcessing:!0})}else this.handleAddServerErrors(e)}))},this.handleCloseAddServerDialog=()=>{this.resetBackgroundTaskData(),this.setState({isServerFormOpened:!1,formErrors:null,serverDialogError:null,serverDialogSuccess:null,isFormSending:!1})},this.handleSelectionChange=e=>{this.setState({selectedServerIds:e})},this.handleFilterChange=e=>{this.setState({selectedFilter:e})},this.checkSelectionNotEmpty=e=>0!==e.length||(this.props.appActions.addWarningMessage((0,P.jsx)(qd,{content:"remote-servers.noItemsSelected"})),!1),this.handleOnReceiveScanBackgroundTaskData=e=>{const{scanBackgroundTasksIds:t}=this.state;t.length&&t.forEach((t=>{const n=XD(t,e);n&&qD(n)&&this.setState((e=>({scanBackgroundTasksIds:e.scanBackgroundTasksIds.filter((e=>e!==n.id))})),(()=>{let e=[];n.publicParams.servers&&(e=n.publicParams.servers),this.props.serversActions.scanServersFinished(e)}))}))},this.handleBulkScan=()=>{const{serversActions:{scanServers:e}}=this.props,{selectedServerIds:t}=this.state;this.checkSelectionNotEmpty(t)&&e(t).then((e=>{e.status===fp&&this.setState((t=>({scanBackgroundTasksIds:t.scanBackgroundTasksIds.concat(e.data.task.id)})))})).finally((()=>{this.setState({selectedServerIds:[]})}))},this.handleRefresh=()=>{const{serversActions:{getServersList:e}}=this.props;this.setState({isServersListLoading:!0}),e().finally((()=>{this.setState({isServersListLoading:!1})}))},this.handleBulkDetach=()=>{const{selectedServerIds:e}=this.state;this.checkSelectionNotEmpty(e)&&this.setState({isDetachConfirmDialogOpen:!0})},this.handleSubmitDetachConfirmDialog=()=>{const{serversActions:{detachServers:e}}=this.props,{selectedServerIds:t}=this.state;return this.setState({isDetachConfirmDialogOpen:!1,isServersListLoading:!0}),e(t).finally((()=>{this.setState({selectedServerIds:[],isServersListLoading:!1})}))},this.handleCloseDetachConfirmDialog=()=>{this.setState({isDetachConfirmDialogOpen:!1})},this.isFormVisible=()=>{const{formValues:e,isServerFormLoading:t}=this.state;return Boolean(!t&&e)},this.getSubmitButton=()=>{const{isFormSending:e,isAddUpdateTaskProcessing:t,isAddUpdateTaskFinished:n,isAddUpdateTaskFinishedWithError:s,formValues:i}=this.state;if(!this.isFormVisible()||n&&!s)return!1;let a=i.id?(0,P.jsx)(qd,{content:"remote-servers.serverFormButtonUpdate"}):(0,P.jsx)(qd,{content:"remote-servers.serverFormButtonStartAdding"});return s&&(a=(0,P.jsx)(qd,{content:"remote-servers.serverFormButtonRetry"})),{children:a,state:e||t?"loading":"active","data-test-id":"remote-server-form-submit-btn",onClick:e=>Xd(e,this.handleSubmitAddServerDialog)}},this.getCancelButton=()=>{const{isFormSending:e,isAddUpdateTaskProcessing:t,isAddUpdateTaskFinished:n,isServerSaved:s}=this.state;return{children:n&&s?(0,P.jsx)(qd,{content:"remote-servers.serverFormButtonClose"}):(0,P.jsx)(qd,{content:"remote-servers.serverFormButtonCancel"}),disabled:e||t}},this.isAdditionalParametersCollapsible=()=>{const{formErrors:e}=this.state;return!e||!e.directoriesWithPhpInterpreters},this.handleCloseBetaDialog=()=>this.props.serversActions.disableBetaDialog().finally((()=>{this.setState({showBetaDialog:!1})})),this.setActiveTab=e=>{this.setState({activeTab:e})},this.state=Object.assign({selectedServerIds:[],selectedFilter:EC,isServersListLoading:!1,isServerFormOpened:!1,isDetachConfirmDialogOpen:!1,formValues:null,formErrors:null,serverId:null,isFormSending:!1,serverDialogError:null,serverDialogSuccess:null,isServerFormLoading:!1,showBetaDialog:e.isRemoteWptBetaDialogVisible,activeTab:1,isServerSaved:!1,scanBackgroundTasksIds:[]},tN)}componentWillMount(){const{servers:e}=this.props;null===e&&this.handleRefresh()}componentWillReceiveProps(e){this.handleOnReceiveAddUpdateBackgroundTaskData(e.tasks),this.handleOnReceiveScanBackgroundTaskData(e.tasks)}componentWillUnmount(){const{serversActions:{resetServersList:e}}=this.props;e()}render(){const{search:e,servers:t,isAuthTypeByKeyPathDisabled:n,publicUrl:s}=this.props,{selectedServerIds:i,selectedFilter:a,isServerFormOpened:r,isDetachConfirmDialogOpen:o,formValues:l,formErrors:c,serverDialogError:u,serverDialogSuccess:d,isServerFormLoading:p,showBetaDialog:h,isFormSending:m,isAddUpdateTaskProcessing:f,serverId:g,activeTab:b,addUpdateBackgroundTask:v}=this.state,y=Boolean(l&&l.id)||p;let x=null;1===b&&(x={onSubmit:this.handleSubmitAddServerDialog,applyButton:!1,values:l,errors:c,vertical:!0,submitButton:this.getSubmitButton(),cancelButton:this.getCancelButton()});const _=[];x&&x.submitButton&&_.push((0,P.jsx)(Be,Object.assign({intent:"primary"},x.submitButton),"submit"));let S=v;if(S&&S.publicParams&&S.publicParams.error){const{publicParams:{error:{text:e,type:t}}}=S;S=Object.assign(Object.assign({},S),{errors:[(0,P.jsx)(gU,{id:l.id,onAcceptFingerprint:this.handleAcceptFingerprint,text:e,type:t},t)]})}return(0,P.jsxs)(lj,{activeTab:rj,children:[this.state.isServersListLoading&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"remote-servers.serverPageLoading"})}),!this.state.isServersListLoading&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(ai,{gap:"sm",children:(0,P.jsx)(ri,{children:(0,P.jsx)(HU,{hasSelectedServers:i.length>0,selectedFilter:a,onAddServersClick:this.handleAddServer,onScanClick:this.handleBulkScan,onRefreshClick:this.handleRefresh,onDetachClick:this.handleBulkDetach,onFilterChange:this.handleFilterChange})})}),(0,P.jsx)(ai,{gap:"sm",children:(0,P.jsx)(ri,{children:(0,P.jsx)(FU,{search:e,servers:t,selectedServerIds:i,selectedFilter:a,onEditClick:this.handleEditServer,onSelectionChange:this.handleSelectionChange,onAcceptFingerprint:this.handleAcceptFingerprint})})}),o&&(0,P.jsx)(EU,{onSubmit:this.handleSubmitDetachConfirmDialog,onCancel:this.handleCloseDetachConfirmDialog}),r&&(0,P.jsx)(er,{className:Np,title:y?(0,P.jsx)(qd,{content:"remote-servers.editServerDrawerTitle"}):(0,P.jsx)(qd,{content:"remote-servers.addServerDrawerTitle"}),onClose:this.handleCloseAddServerDialog,"data-test-id":Zb,"data-type":Zb,form:this.isFormVisible()?x:null,progress:dL(S,(()=>{this.setState({addUpdateBackgroundTask:null})}),_),hideButton:!1,isOpen:!0,children:(0,P.jsxs)(vl,{active:b,children:[(0,P.jsxs)(gl,{title:(0,P.jsx)(qd,{content:"remote-servers.settingsTabTitle"}),onActivate:()=>this.setActiveTab(1),children:[!y&&(0,P.jsxs)(xe,{intent:"info",children:[(0,P.jsx)(be,{name:"circle-exclamation-mark",size:"16"})," ",(0,P.jsx)(qd,{content:"remote-servers.addServerFirewallWarning"})]}),(0,P.jsx)(LU,{onAcceptFingerprint:this.handleAcceptFingerprintAndOpenServerForm,values:l,errors:c,error:u,success:d,isDataLoading:p,isEditServer:y,isFormVisible:this.isFormVisible(),isAdditionalParametersCollapsible:this.isAdditionalParametersCollapsible(),isAuthTypeByKeyPathDisabled:n,isFormSending:m||f,backgroundTask:v,onFormFieldChange:this.handleFormFieldChange})]}),(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"remote-servers.logTabTitle"}),onActivate:()=>this.setActiveTab(2),children:(0,P.jsx)(eN,{serverId:g})})]})})]}),h&&(0,P.jsx)(Ea,{size:"sm",banner:`${s}images/wptr-beta.png`,isOpen:!0,onClose:this.handleCloseBetaDialog,cancelTitle:(0,P.jsx)(qd,{content:"remote-servers.betaDialog.gotItButton"}),children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"remote-servers.betaDialog.description",unsafe:!0})})})]})}}nN.propTypes={search:We().string.isRequired,servers:We().array,serversActions:We().shape({getServersList:We().func.isRequired,detachServers:We().func.isRequired,scanServers:We().func.isRequired,scanServersFinished:We().func.isRequired,addServer:We().func.isRequired,resetServersList:We().func.isRequired,addServerToList:We().func.isRequired,updateServerInList:We().func.isRequired,addServerFinished:We().func.isRequired,addServerFinishedWithError:We().func.isRequired,disableBetaDialog:We().func.isRequired,getServer:We().func.isRequired,acceptFingerprint:We().func.isRequired}).isRequired,appActions:We().shape({addWarningMessage:We().func.isRequired}).isRequired,isAuthTypeByKeyPathDisabled:We().bool.isRequired,isRemoteWptBetaDialogVisible:We().bool.isRequired,publicUrl:We().string.isRequired,tasks:We().array},nN.defaultProps={servers:null,tasks:[]};const sN=mc((e=>({search:e.app.search,servers:e.servers.list,isAuthTypeByKeyPathDisabled:e.app.options.isAuthTypeByKeyPathDisabled,isRemoteWptBetaDialogVisible:e.app.options.isRemoteWptBetaDialogVisible,publicUrl:e.app.urls.publicUrl,tasks:e.backgroundTasks.tasks})),(e=>({serversActions:kb(h,e),appActions:kb(t,e)})))(Dj(nN)),iN="success",aN="warning",rN="failed",oN="notExist",lN=e=>[iN,aN,rN].includes(e),cN=(e,t)=>e.filter((e=>!t.includes(e))),uN="instance-change-remote-instance-properties",dN="instance-change-remote-agent-instance-properties",pN="restore-button",hN="link-wp-login",mN="instance-link-security",fN="instance-name",gN=e=>{const{children:t,handleLoginToInstance:n,installationId:s,onOpenAdminSettings:i,hasAdminCredentials:a=!0,tooltip:r=null,disabled:o=!1}=e,[l,c]=(0,M.useState)(!1);return(0,P.jsx)(Be,{icon:"key",intent:"primary",disabled:o,onClick:a?e=>((e,t)=>{c(!0),n(e,t).finally((()=>c(!1)))})(s,e):i,state:l?"loading":void 0,"data-test-id":hN,style:{whiteSpace:"normal"},tooltip:r,children:t})},bN=e=>{const{handleLoginToInstance:t,children:n,installationId:s,tooltip:i=null,disabled:a=!1}=e,[r,o]=(0,M.useState)(!1);if(r)return(0,P.jsxs)("span",{"data-test-id":hN,children:[n," ",(0,P.jsx)(fD,{})]});const l=(0,P.jsx)(Cs,{disabled:a,onClick:e=>((e,n)=>{o(!0),t(e,n).finally((()=>o(!1)))})(s,e),"data-test-id":hN,target:"_blank",children:n});return i?(0,P.jsx)(Oe,{title:i,children:l}):l},vN=e=>{const{loginToInstance:t,getAdminCredentials:n,children:s,onOpenAdminSettings:i,type:a="link",loadingTranslateKey:r="general-ui.login.windowPreloadMessage"}=e,o=zd()(r).toString(),l=(e,s)=>new Promise(((i,a)=>{s.persist();const r=s.timeStamp.toString(),l=window.open("",r);l&&(l.document.body.innerText=o),n(e).then((({credentials:n,loginUrl:s})=>{t(e,s,n,r),i()})).catch((()=>{l&&l.close(),a()}))}));return"button"===a&&void 0!==i?(0,P.jsx)(gN,Object.assign({},e,{handleLoginToInstance:l,onOpenAdminSettings:i,children:s})):(0,P.jsx)(bN,Object.assign({},e,{handleLoginToInstance:l,children:s}))},yN=mc(null,{loginToInstance:ok,getAdminCredentials:mk})((({disabled:e=!1,children:t,instanceId:n,loginToInstance:s,getAdminCredentials:i,type:a="link",hasAdminCredentials:r=!0,tooltip:o=null,onOpenAdminSettings:l=()=>{}})=>(0,P.jsx)(vN,{disabled:e,installationId:n,loginToInstance:s,getAdminCredentials:i,type:a,hasAdminCredentials:r,tooltip:o,onOpenAdminSettings:l,children:(0,P.jsx)(P.Fragment,{children:t})})));class xN extends M.Component{renderPlesk(){const{render:e,children:t,settingsData:{webAdminUrl:n}}=this.props;return e((0,P.jsx)(Cs,{href:n,target:"_blank",children:t}))}renderCpanel(){const{render:e,children:t,instance:{cpanelAccountUsername:n},settingsData:{webAdminUrl:s},goToUri:i}=this.props;if(!n||!s)return null;const a=Bv({link:s,inNewWindow:!0,goToUri:i,accountUsername:n});return e((0,P.jsx)(Cs,Object.assign({},a,{children:t})))}render(){const{instance:{instanceType:e},settingsData:{webAdminUrl:t}}=this.props;return t?UM(e)?this.renderPlesk():RM(e)?this.renderCpanel():null:null}}const _N=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(xN);class SN extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{render:e,children:t,instance:{filesUrl:n}}=this.props;return e((0,P.jsx)(Cs,{href:n,target:"_blank",children:t}))},this.renderCpanel=()=>{const{render:e,children:t,goToUri:n,instance:{filesUrl:s,cpanelAccountUsername:i}}=this.props;if(!i)return null;const a=Bv({link:s,inNewWindow:!1,goToUri:n,accountUsername:i});return e((0,P.jsx)(Cs,Object.assign({},a,{children:t})))}}render(){const{instance:{isFileManagerAvailable:e,instanceType:t,filesUrl:n}}=this.props;return e&&n?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}const wN=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(SN),kN=r(84193),jN=r(48379),TN=e=>e.replace("https://","").replace("http://",""),CN=e=>jN.toUnicode(e),DN=e=>jN.toASCII(e),PN=e=>{try{const t=new kN(e);return t.hostname(CN(t.hostname())),decodeURIComponent(t.toString())}catch(t){return console.error(t),e}};class ON extends M.Component{constructor(e){super(e),this.state={isLoading:!0,cpanelAccountUsername:null,isFileManagerAvailable:null,filesUrl:null,webAdminUrl:null,instanceType:null}}componentWillMount(){const{getDbSettings:e,getInstancesData:t,smartUpdatesCloneInstanceId:n}=this.props;this.setState({isLoading:!0}),Promise.all([e(n).then((e=>{if(e&&e.data){const{webAdminUrl:t}=e.data;this.setState({webAdminUrl:t})}})),t({instancesIds:[n],skipUpdateInstanceList:!0}).then((e=>{if(e&&e.length>0){const[t]=e;this.setState({cpanelAccountUsername:t.owner.login,isFileManagerAvailable:t.features.fileManager.available,filesUrl:t.features.fileManager.url,instanceType:t.installationType})}}))]).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}renderFileManagerLinkSection(){const{cpanelAccountUsername:e,isFileManagerAvailable:t,instanceType:n,filesUrl:s}=this.state;return e&&t&&n&&s?(0,P.jsx)(wN,{render:e=>(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.fileManager.title"}),children:e}),instance:{isFileManagerAvailable:t,instanceType:n,filesUrl:s,cpanelAccountUsername:e},children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.fileManager.action"})}):null}renderDatabaseLinkSection(){const{cpanelAccountUsername:e,instanceType:t,webAdminUrl:n}=this.state;return t&&n?(0,P.jsx)(_N,{render:e=>(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.database.title"}),children:e}),instance:{cpanelAccountUsername:e,instanceType:t},settingsData:{webAdminUrl:n},children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.database.action"})}):null}renderLoginLink(){const{smartUpdatesCloneInstanceId:e}=this.props;return(0,P.jsx)(yN,{instanceId:e,type:"link",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.wpAdminPanel.action"})})}renderLoginLinkSection(){return(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.wpAdminPanel.title"}),children:this.renderLoginLink()})}renderClonedSiteLinkSection(){const{smartUpdatesCloneUrl:e}=this.props;return(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.url.title"}),children:(0,P.jsx)(Cs,{href:e,target:"_blank",children:PN(e)})})}renderContent(){return(0,P.jsxs)(Pa,{children:[this.renderClonedSiteLinkSection(),this.renderLoginLinkSection(),this.renderDatabaseLinkSection(),this.renderFileManagerLinkSection()]})}renderLoader(){return(0,P.jsx)(Rn,{})}render(){const{isLoading:e}=this.state;return e?this.renderLoader():this.renderContent()}}const IN=mc(null,{getDbSettings:ZS,getInstancesData:JS})(ON);class MN extends M.Component{constructor(e){super(e),this.handlePageChange=e=>{this.setState({page:e})},this.handleItemsPerPageChange=e=>{this.setState({page:1,itemsPerPage:e})},this.CHECK_KEY_PAGE_TITLE_CHANGED="pageTitleChanged",this.CHECK_KEY_HTTP_CODE_SURVIVED="httpCodeSurvived",this.CHECK_KEY_HTTP_CODE_NEW="httpCodeNew",this.CHECK_KEY_PHP_ERRORS_SURVIVED="phpErrorsSurvived",this.CHECK_KEY_PHP_ERRORS_NEW="phpErrorsNew",this.CHECK_KEY_PHP_WARNINGS_SURVIVED="phpWarningsSurvived",this.CHECK_KEY_PHP_WARNINGS_NEW="phpWarningsNew",this.CHECK_KEY_PHP_NOTICES_SURVIVED="phpNoticesSurvived",this.CHECK_KEY_PHP_NOTICES_NEW="phpNoticesNew",this.CHECK_KEY_SHORTCODES_SURVIVED="shortcodesSurvived",this.CHECK_KEY_SHORTCODES_NEW="shortcodesNew",this.TAB_WEBSITE_SUMMARY=1,this.TAB_PAGE_ISSUES_REPORT=2,this.TAB_STAGING_WEBSITE_CREDENTIALS=3,this.handleChangeTab=e=>{this.setState({activeTab:e})},this.state={page:1,itemsPerPage:25,activeTab:1}}isBadHttpCode(e){return e<200||e>=400}renderPageIssuesReportTab(){const{smartUpdatesStatus:{details:e=[]},instanceUrl:t,smartUpdatesCloneUrl:n,baseClassName:s}=this.props,{page:i,itemsPerPage:a}=this.state,r=[{key:"check",title:"",width:"108px"},{key:"before",title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.mainList.beforeUpdate"}),width:""},{key:"after",title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.mainList.afterUpdate"}),width:""}],o=e.filter((e=>this.getPageIssues(e).length>0)).map((e=>{const s=n?e.pageUrl.replace(TN(t),TN(n)):null,i=s?`https://${s}`:null,a=e.pageUrl,r=`https://${e.pageUrl}`;return{key:e.pageUrl,check:"",before:(0,P.jsx)(Cs,{href:r,target:"_blank",children:a}),after:i&&s?(0,P.jsx)(Cs,{href:i,target:"_blank",children:s}):null,pageDetails:{before:e.before,after:e.after}}})),l="all"===a?o:o.slice((i-1)*a,i*a),c=o.map((e=>e.key)),u="all"===a?1:Math.ceil(o.length/a);return(0,P.jsx)(Qr,{data:l,columns:r,renderRowBody:e=>{const t=[{key:"check",title:(0,P.jsx)("strong",{children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.checkName"})}),width:"108px"},{key:"before",title:(0,P.jsx)("strong",{children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.beforeUpdate"})}),width:""},{key:"after",title:(0,P.jsx)("strong",{children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.afterUpdate"})}),width:""}];return this.getPageIssues(e.pageDetails).map((n=>{const i=[{key:n.key,check:n.check,before:n.before,after:n.after}];return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Qr,{columns:t,data:i,style:{tableLayout:"fixed"}}),(0,P.jsxs)("div",{className:`${s}__issue_alert_container`,children:[(0,P.jsx)("div",{className:`${s}__issue_alert_spacer`}),(0,P.jsx)("div",{className:`${s}__issue_alert_content`,children:(0,P.jsxs)(xe,{intent:n.alertIntent,children:[(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:n.alertIntent})," ",n.alertText]})})]})]},`${e.key}__${n.key}`)}))},expandedRows:c,style:{tableLayout:"fixed"},pagination:(0,P.jsx)(si,{current:i,total:u,onSelect:this.handlePageChange,itemsPerPageOptions:[25,100,"all"],itemsPerPage:a,onItemsPerPageChange:this.handleItemsPerPageChange}),totalRows:o.length})}getPageIssues(e){const t=[];return e.before.pageTitle!==e.after.pageTitle&&t.push({key:this.CHECK_KEY_PAGE_TITLE_CHANGED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.pageTitle.title"}),before:e.before.pageTitle,after:e.after.pageTitle,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.pageTitle.issueChanged"})}),this.isSurvivedBadHttpCode(e)&&t.push({key:this.CHECK_KEY_HTTP_CODE_SURVIVED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.title"}),before:e.before.httpStatus,after:e.after.httpStatus,alertIntent:KU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.issueSurvived"})}),this.isNewBadHttpCode(e)&&t.push({key:this.CHECK_KEY_HTTP_CODE_NEW,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.title"}),before:e.before.httpStatus,after:e.after.httpStatus,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.issueChanged"})}),this.areSurvivedPhpErrors(e)&&t.push({key:this.CHECK_KEY_PHP_ERRORS_SURVIVED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.title"}),before:e.before.phpErrors,after:e.after.phpErrors,alertIntent:KU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.issueSurvived"})}),this.areNewPhpErrors(e)&&t.push({key:this.CHECK_KEY_PHP_ERRORS_NEW,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.title"}),before:e.before.phpErrors,after:e.after.phpErrors,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.issueNew"})}),this.areSurvivedPhpWarnings(e)&&t.push({key:this.CHECK_KEY_PHP_WARNINGS_SURVIVED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.title"}),before:e.before.phpWarnings,after:e.after.phpWarnings,alertIntent:KU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.issueSurvived"})}),this.areNewPhpWarnings(e)&&t.push({key:this.CHECK_KEY_PHP_WARNINGS_NEW,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.title"}),before:e.before.phpWarnings,after:e.after.phpWarnings,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.issueNew"})}),this.areSurvivedPhpNotices(e)&&t.push({key:this.CHECK_KEY_PHP_NOTICES_SURVIVED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.title"}),before:e.before.phpNotices,after:e.after.phpNotices,alertIntent:KU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.issueSurvived"})}),this.areNewPhpNotices(e)&&t.push({key:this.CHECK_KEY_PHP_NOTICES_NEW,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.title"}),before:e.before.phpNotices,after:e.after.phpNotices,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.issueNew"})}),this.areSurvivedShortcodes(e)&&t.push({key:this.CHECK_KEY_SHORTCODES_SURVIVED,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.title"}),before:e.before.shortcodes,after:e.after.shortcodes,alertIntent:KU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.issueSurvived"})}),this.areNewShortcodes(e)&&t.push({key:this.CHECK_KEY_SHORTCODES_NEW,check:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.title"}),before:e.before.shortcodes,after:e.after.shortcodes,alertIntent:XU,alertText:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.issueNew"})}),t}renderDownloadSummaryButton(){const{downloadSummaryUrl:e}=this.props;return e?(0,P.jsx)(Be,{onClick:()=>{window.location.href=e},style:{marginBottom:"10px"},children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.buttonDownloadSummary"})}):null}renderNoChanges(){return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(be,{name:"check-mark",intent:GU})," ",(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.noChanges"})]})}renderChanges(e){return 0===e?this.renderNoChanges():(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.changes",params:{count:e}})})})}renderHttpResponseCodeChanges(e,t){return e>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.httpResponseCode",params:{count:e}})})}):t>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:KU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.httpResponseCode",params:{count:t}})})}):this.renderNoChanges()}renderPhpErrorChanges(e,t){return e>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpErrors",params:{count:e}})})}):t>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:KU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpErrors",params:{count:t}})})}):this.renderNoChanges()}renderPhpWarningChanges(e,t){return e>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpWarnings",params:{count:e}})})}):t>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:KU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpWarnings",params:{count:t}})})}):this.renderNoChanges()}renderPhpNoticeChanges(e,t){return e>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpNotices",params:{count:e}})})}):t>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:KU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.phpNotices",params:{count:t}})})}):this.renderNoChanges()}renderShortcodeChanges(e,t){return e>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:XU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.shortcodes",params:{count:e}})})}):t>0?(0,P.jsx)(ye,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,P.jsx)(we,{intent:KU,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.counts.shortcodes",params:{count:t}})})}):this.renderNoChanges()}isNewBadHttpCode(e){return!this.isBadHttpCode(e.before.httpStatus)&&this.isBadHttpCode(e.after.httpStatus)}isSurvivedBadHttpCode(e){return this.isBadHttpCode(e.before.httpStatus)&&this.isBadHttpCode(e.after.httpStatus)}areNewPhpIssues(e,t){return t.length>e.length}areSurvivedPhpIssues(e,t){return t.length>0&&!this.areNewPhpIssues(e,t)}areNewPhpErrors(e){return this.areNewPhpIssues(e.before.phpErrors,e.after.phpErrors)}areSurvivedPhpErrors(e){return this.areSurvivedPhpIssues(e.before.phpErrors,e.after.phpErrors)}areNewPhpWarnings(e){return this.areNewPhpIssues(e.before.phpWarnings,e.after.phpWarnings)}areSurvivedPhpWarnings(e){return this.areSurvivedPhpIssues(e.before.phpWarnings,e.after.phpWarnings)}areNewPhpNotices(e){return this.areNewPhpIssues(e.before.phpNotices,e.after.phpNotices)}areSurvivedPhpNotices(e){return this.areSurvivedPhpIssues(e.before.phpNotices,e.after.phpNotices)}areNewShortcodes(e){return cN(e.after.shortcodes,e.before.shortcodes).length>0}areSurvivedShortcodes(e){return e.after.shortcodes.length>0&&(t=e.before.shortcodes,n=e.after.shortcodes,0===cN(n,t).length);var t,n}renderWebsiteSummaryList(){const{smartUpdatesStatus:{details:e=[]}}=this.props,t=e,n=t.filter((e=>e.before.pageTitle!==e.after.pageTitle)).length,s=t.filter((e=>e.before.httpStatus!==e.after.httpStatus)).length,i=t.filter((e=>this.isBadHttpCode(e.before.httpStatus))).length,a=t.filter((e=>this.isNewBadHttpCode(e))).length,r=t.filter((e=>this.isSurvivedBadHttpCode(e))).length,o=t.filter((e=>e.before.phpErrors.length>0)).length,l=t.filter((e=>this.areNewPhpErrors(e))).length,c=t.filter((e=>this.areSurvivedPhpErrors(e))).length,u=t.filter((e=>e.before.phpWarnings.length>0)).length,d=t.filter((e=>this.areNewPhpWarnings(e))).length,p=t.filter((e=>this.areSurvivedPhpWarnings(e))).length,h=t.filter((e=>e.before.phpWarnings.length>0)).length,m=t.filter((e=>this.areNewPhpNotices(e))).length,f=t.filter((e=>this.areSurvivedPhpNotices(e))).length,g=t.filter((e=>e.before.shortcodes.length>0)).length,b=t.filter((e=>this.areNewShortcodes(e))).length,v=t.filter((e=>this.areSurvivedShortcodes(e))).length,y=[{key:"checkType",title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.checkType"})},{key:"beforeUpdate",title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.beforeUpdate"})},{key:"afterUpdate",title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.afterUpdate"})}],x=[{key:"pageTitleChanges",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.pageTitleChanges"}),beforeUpdate:(0,P.jsx)(be,{name:"minus"}),afterUpdate:this.renderChanges(n)},{key:"httpResponseCodeChanges",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.httpResponseCodeChanges"}),beforeUpdate:(0,P.jsx)(be,{name:"minus"}),afterUpdate:this.renderChanges(s)},{key:"httpResponseCodeErrors",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.httpResponseCodeErrors"}),beforeUpdate:i,afterUpdate:this.renderHttpResponseCodeChanges(a,r)},{key:"phpErrors",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpErrors"}),beforeUpdate:o,afterUpdate:this.renderPhpErrorChanges(l,c)},{key:"phpWarnings",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpWarnings"}),beforeUpdate:u,afterUpdate:this.renderPhpWarningChanges(d,p)},{key:"phpNotices",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpNotices"}),beforeUpdate:h,afterUpdate:this.renderPhpNoticeChanges(m,f)},{key:"shortcodes",checkType:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.websiteSummary.checkType.shortcodes"}),beforeUpdate:g,afterUpdate:this.renderShortcodeChanges(b,v)}];return(0,P.jsx)(Qr,{columns:y,data:x})}renderWebsiteSummaryTab(){const{isPublic:e}=this.props;return(0,P.jsxs)(M.Fragment,{children:[this.renderWebsiteSummaryList(),!e&&this.renderDownloadSummaryButton()]})}render(){const{smartUpdatesCloneInstanceId:e,smartUpdatesCloneUrl:t,isPublic:n}=this.props,{activeTab:s}=this.state;return(0,P.jsxs)(vl,{active:s,children:[(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.tab.websiteSummary"}),children:this.renderWebsiteSummaryTab()},this.TAB_WEBSITE_SUMMARY),(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.tab.pageIssuesReport"}),children:this.renderPageIssuesReportTab()},this.TAB_PAGE_ISSUES_REPORT),!n&&e&&t&&(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.tab.stagingWebsiteCredentials"}),children:(0,P.jsx)(IN,{smartUpdatesCloneInstanceId:e,smartUpdatesCloneUrl:t})},this.TAB_STAGING_WEBSITE_CREDENTIALS)]})}}MN.defaultProps={baseClassName:`${Rp}smart-update-result-tabs`,isPublic:!1};const LN=MN,AN=mc((e=>({restApiUrl:e.app.urls.restApiUrl})))((({instanceId:e,smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:i,isPublic:a,instanceLink:r=null,restApiUrl:o=""})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.header"})}),a&&r?(0,P.jsx)(Cs,{href:r,target:"_blank","data-test-id":"view-details",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.linkToPanel"})}):null,(()=>{if(!n||!i)return null;const e=TN(PN(i));return(0,P.jsxs)(xe,{intent:qU,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.topNotice.main",params:{originalSiteLink:(0,P.jsx)(Cs,{href:n,target:"_blank",children:TN(PN(n))}),stagingSiteLink:(0,P.jsx)(Cs,{href:i,target:"_blank",children:e})}})}),(0,P.jsxs)(mi,{children:[(0,P.jsx)("strong",{children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.topNotice.reviewStaging"})})," ",(0,P.jsx)(Cs,{href:i,target:"_blank",children:e})]})]})})(),(()=>{let e,n;switch(t.status){case iN:e=(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updatePrognosis.success"}),n=GU;break;case aN:e=(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updatePrognosis.warning"}),n=KU;break;case rN:e=(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updatePrognosis.failed"}),n=XU}return e?(0,P.jsxs)(xe,{intent:n,children:[(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:n})," ",e]}):null})(),(0,P.jsx)(LN,{instanceUrl:n,smartUpdatesStatus:t,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:i,isPublic:a,downloadSummaryUrl:wf(o,e)})]}))),EN=mc((e=>({smartUpdateResults:e.smartUpdateResultsPublic.smartUpdateResults,instanceId:e.smartUpdateResultsPublic.instanceId,instanceUrl:e.smartUpdateResultsPublic.instanceUrl,instanceLink:e.smartUpdateResultsPublic.instanceLink})))((({smartUpdateResults:e,instanceId:t,instanceUrl:n,instanceLink:s,baseClassName:i=`${Rp}smart-update-results-public`})=>(0,P.jsx)("div",{className:i,children:null!==e&&n&&t&&e.taskStatus&&lN(e.taskStatus)?(0,P.jsx)(AN,{smartUpdatesStatus:e,instanceUrl:n,instanceLink:s,smartUpdatesCloneInstanceId:null==e?void 0:e.clone.id,smartUpdatesCloneUrl:null==e?void 0:e.clone.url,instanceId:t,isPublic:!0}):(0,P.jsx)(qd,{content:"smartUpdateResultsPublic.pageNotFound"})}))),RN=()=>(0,P.jsx)(qd,{content:"general-ui.notFound"});class UN extends M.Component{constructor(){super(...arguments),this.toaster=null,this.setToasterRef=e=>{this.toaster=e}}componentWillReceiveProps(e){if(null===this.props.message&&e.message&&this.toaster){const{intent:t,message:n}=e.message,s=this.toaster.add({intent:"error"===t?"danger":t,message:"string"==typeof n?(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(n,Object.assign(Object.assign({},SC.defaults),{exclusiveFilter:e=>!("a"!==e.tag||e.text.trim()&&e.attribs.href.trim())})).replaceAll("\n","<br/><br/>")}}):n});t===fp&&setTimeout((()=>{var e;return null===(e=this.toaster)||void 0===e?void 0:e.remove(s)}),3e3),this.props.clearAppMessage()}}render(){return(0,P.jsx)(Al,{ref:this.setToasterRef,className:this.props.baseClassName})}}UN.defaultProps={message:void 0,baseClassName:`${Rp}toaster`};const NN=mc((e=>({message:e.app.message})),{clearAppMessage:Xg})(UN);class FN extends M.Component{constructor(e){super(e),this.componentDidUpdate=()=>{null!==this.props.applicationUri&&null!==this.props.accountUsername&&this.handleGotoUri(this.props.applicationUri,this.props.accountUsername)},this.formRef=null,this.handleGotoUri=(e,t)=>{const{resetGoToCpanel:n}=this.props;n(),this.setState({applicationUri:e,accountUsername:t},(()=>{const{applicationUri:e,accountUsername:t}=this.state;e&&t&&(Wv()?this.formRef&&this.formRef.submit():window.open(`${Vv()}/${e}`))}))},this.state={applicationUri:null,accountUsername:null}}render(){return null}}FN.defaultProps={applicationUri:null,accountUsername:null};const YN=mc((e=>({applicationUri:e.app.cpanel.applicationUri,accountUsername:e.app.cpanel.accountUsername})),(e=>({resetGoToCpanel:()=>e((e=>e({type:px})))})))(FN);class HN extends M.Component{constructor(e){super(e),this.handleChangeRemoveOptions=()=>{const{changeRemoveOptions:e}=this.props,{dbChecked:t,dbUserChecked:n,actionLogChecked:s}=this.state;e({Db:t,DbUser:n,ActionLog:s})},this.renderDatabaseOption=()=>{const{db:e,dbUser:t,installationId:n,isDatabaseWillBeRemovedAutomatically:s,isInstanceDatabaseDeletionAllowed:i}=this.props,{dbChecked:a}=this.state;return i&&e?e.sharedWithInstallationsIds.length?(0,P.jsx)(ri,{children:(0,P.jsx)(qd,{content:"remove-confirmation.warningDbUsed",params:{name:e.name}})}):(0,P.jsx)(ri,{children:(0,P.jsx)(ut,{checked:a,onChange:e=>{this.setState((n=>{let s=n.dbUserChecked;return t&&!t.sharedWithInstallationsIds.length&&this.isDatabaseUserWillBeRemovedWithDatabase(e)&&(s=!0),{dbChecked:e,dbUserChecked:s}}),this.handleChangeRemoveOptions)},disabled:s,children:(0,P.jsx)(qd,{content:"remove-confirmation.removeDb",params:{name:e.name}})})}):null},this.isDatabaseUserWillBeRemovedWithDatabase=(e=null)=>{const{db:t,dbUser:n}=this.props;let{dbChecked:s}=this.state;return null!==e&&(s=e),s&&n&&n.willBeRemovedAutomatically&&t&&!t.sharedWithInstallationsIds.length},this.renderDabaseUserRemovalHint=()=>{const{db:e,dbUser:t}=this.props;return t&&t.willBeRemovedAutomatically?e&&e.sharedWithInstallationsIds.length?null:(0,P.jsx)(qd,{content:"remove-confirmation.hintAssociatedDbUser"}):(0,P.jsx)(qd,{content:"remove-confirmation.hintDbUserMaybeUsedInAnotherApp"})},this.renderDatabaseUserOption=()=>{const{dbUser:e,installationId:t,isInstanceDatabaseDeletionAllowed:n}=this.props,{dbUserChecked:s}=this.state;return n&&e?e.sharedWithInstallationsIds.length?(0,P.jsx)(ri,{children:(0,P.jsx)(qd,{content:"remove-confirmation.warningDbUserUsed",params:{name:e.name}})}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ri,{children:(0,P.jsx)(ut,{checked:s,disabled:this.isDatabaseUserWillBeRemovedWithDatabase(),onChange:e=>{this.setState({dbUserChecked:e},this.handleChangeRemoveOptions)},children:(0,P.jsx)(qd,{content:"remove-confirmation.removeDbUser",params:{name:e.name}})})}),(0,P.jsx)(ri,{children:this.renderDabaseUserRemovalHint()})]}):null},this.renderActionLogOption=()=>{const{installationId:e}=this.props,{actionLogChecked:t}=this.state;return(0,P.jsx)(ri,{children:(0,P.jsx)(ut,{checked:t,onChange:e=>{this.setState({actionLogChecked:e},this.handleChangeRemoveOptions)},children:(0,P.jsx)(qd,{content:"remove-confirmation.removeActionLog"})})})},this.renderRemoveOptions=()=>{const{isActionLogAvailable:e}=this.props;return(0,P.jsxs)(P.Fragment,{children:[this.renderDatabaseOption(),this.renderDatabaseUserOption(),e&&this.renderActionLogOption()]})},this.state={dbChecked:!!e.db&&!e.db.sharedWithInstallationsIds.length,dbUserChecked:!!e.dbUser&&!e.dbUser.sharedWithInstallationsIds.length,actionLogChecked:!0}}render(){const{installationTitle:e,isInstanceDatabaseDeletionAllowed:t}=this.props,n=(0,P.jsx)(ei,{bold:!0,children:e}),s=t?(0,P.jsx)(qd,{content:"remove-confirmation.hintWillRemoveSuccess",params:{site:n}}):(0,P.jsx)(qd,{content:"remove-confirmation.hintWillRemoveSuccessRemote"});return(0,P.jsxs)(ai,{gap:"xs",children:[(0,P.jsx)(ri,{children:s}),this.renderRemoveOptions()]})}}HN.defaultProps={isInstanceDatabaseDeletionAllowed:!1};const BN=HN,VN=({installationId:e,assetsType:t,page:n,pageSize:s,term:i="",token:a,compatible:r=!1,rating:o=0,lastUpdated:l="all",numberOfInstallations:c=0})=>u=>(t===vp?Ug.getInstallationsPlugins(e,n,s,r,c,l,o,i,{cancelToken:a}):Ug.getInstallationsThemes(e,n,s,r,c,l,o,i,{cancelToken:a})).then((({data:e})=>(u($N(t,e.items)),e))).catch((e=>(u(Bg(e)),Promise.reject()))),$N=Qd(qC,"assetsType","items"),WN=(e,t,n)=>s=>(s(zN(t,[e.slug])),{[vp]:()=>Ug.instalationsPluginsInstall(t,{slug:e.slug,status:!0}).then((({data:n})=>(s(qN(t,e.slug)),s({type:Tx,installationId:t,data:n}),n))).catch((n=>(s(qN(t,e.slug)),s(Bg(n)),Promise.reject()))),[bp]:()=>Ug.instalationsThemesInstall(t,{slug:e.slug,status:!1}).then((({data:n})=>(s(qN(t,e.slug)),s({type:i_,installationId:t,data:n}),n))).catch((n=>(s(qN(t,e.slug)),s(Bg(n)),Promise.reject())))}[n]()),zN=Qd(GC,"instanceId","itemsIds"),qN=Qd(KC,"instanceId","slug"),GN=(e,t,n)=>s=>(t===vp?Ug.instalationsPluginsUploadAndInstall(e,n,!0):Ug.instalationsThemesUploadAndInstall(e,n,!1)).then((({data:e})=>(s(KN(e.task)),e))).catch((e=>422===e.response.status?(s(Hg(e)),Promise.reject(e)):(s(Bg(e)),Promise.reject()))),KN=e=>t=>t({type:XC,task:e}),XN=()=>e=>e({type:"asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE_FINISHED_WITH_ERRORS"}),QN=(e,t)=>n=>t===vp?n(JS({instancesIds:[e]})).then((()=>n(T_(e)))).finally((()=>n({type:QC}))):n(JS({instancesIds:[e]})).then((()=>n(U_(e)))).finally((()=>n({type:QC}))),JN=e=>{const t=Number(e);e=String(e);let n=null,s=null;return t>1e6?(n=Math.round(t/1e6),s=(0,P.jsx)(qd,{content:"general-ui.native-assets.numMillions"})):t>1e3&&(n=Math.round(t/1e3),s=(0,P.jsx)(qd,{content:"general-ui.native-assets.numThousands"})),n&&s&&(e=(0,P.jsx)(qd,{content:"general-ui.native-assets.downloaded",params:{number:n,word:s}})),e},ZN=(e,t)=>e.some((e=>!(t.name!==e.name||t.version&&e.version&&t.version!==e.version)));class eF extends M.Component{constructor(){super(...arguments),this.state={imageUrl:!1,showFullDescription:!1},this.isThemes=()=>this.props.type===bp,this.handleInstallAsset=()=>{const{item:e,installation:t,type:n,install:s,isInstalling:i}=this.props;i||s(e,t.id,n).then((e=>{const t=n===vp?"controllers.index.install-plugin.itemInstalled":"controllers.index.install-theme.itemInstalled",s=(0,P.jsx)(qd,{content:t,params:{title:e.title}});this.props.addSuccessMessage(s)})).catch((()=>{}))},this.getTitle=e=>{const t=JN(e.downloaded),{name:n,profile:s}=e.author;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(e.title)}}),children:(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(e.title)}})}),(0,P.jsx)("br",{}),(0,P.jsx)(hl,{value:e.rating.score})," ",(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"general-ui.native-assets.numberOfRatings",params:{numRatings:e.rating.amount}})}),(0,P.jsx)("br",{}),(0,P.jsxs)(ca,{children:[(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"general-ui.native-assets.tooltipDownloaded"}),children:(0,P.jsx)(be,{name:"arrow-down-tray"})})," ",t]}),(0,P.jsx)("br",{}),n&&s&&(0,P.jsxs)(ca,{className:"wpt-mgr-20",children:[(0,P.jsx)(be,{name:"user"})," ",(0,P.jsx)(ye,{target:"_blank",href:s,children:n})]})]})},this.getSiteHeader=(e,t)=>(0,P.jsx)(Yn,{image:this.state.imageUrl,children:e.previewUrl&&(0,P.jsx)(Be,{intent:"primary",component:"a",href:e.previewUrl,target:"_blank",children:(0,P.jsx)(qd,{content:`general-ui.native-${t}.previewUrl`})})}),this.getRowContent=(e,t,n)=>{const s=wC()(e.shortDescription),{showFullDescription:i}=this.state,a=(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:s}}),r=(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:s.substring(0,300)}}),{type:o,blockedPlugins:l}=this.props;let c=r;if(s.length>320&&(c=i?(0,P.jsxs)(M.Fragment,{children:[a," ",(0,P.jsx)(ye,{onClick:()=>this.setState({showFullDescription:!1}),children:(0,P.jsx)(qd,{content:"general-ui.native-assets.showLess"})})]}):(0,P.jsxs)(M.Fragment,{children:[r,"... ",(0,P.jsx)(ye,{onClick:()=>this.setState({showFullDescription:!0}),children:(0,P.jsx)(qd,{content:"general-ui.native-assets.showMore"})})]})),o===vp&&l.includes(e.slug)){const t=e.isInstalled||n&&n.find((t=>t.slug===e.slug));c=(0,P.jsx)(ei,{intent:"danger",children:(0,P.jsx)(qd,{content:t?"general-ui.native-assets.installedBlacklistedPluginHint":"general-ui.native-assets.blacklistedPluginHint"})})}return(0,P.jsxs)("div",{className:"wpt-display-flex",children:[(0,P.jsx)("div",{className:"list-assets-description",children:(0,P.jsx)(mi,{component:"div",children:c})}),(0,P.jsxs)("div",{className:"list-assets-actions",children:[this.getInstallActionContent(e,n),this.props.type===vp&&this.getDetailsActionContent(e),this.getRequiresActionContent(e)]})]})},this.getInstallActionContent=(e,t)=>{const{type:n,blockedPlugins:s}=this.props;return e.isInstalled||t&&t.find((t=>t.slug===e.slug))?(0,P.jsx)("div",{className:"list-assets-actions-item","data-test-id":"plugendio-asset-installed-label",children:(0,P.jsxs)(ei,{intent:"success",children:[(0,P.jsx)(be,{name:"circle-check-mark"})," ",(0,P.jsx)(qd,{content:"general-ui.native-assets.labelInstalled"})]})}):(0,P.jsx)("div",{className:"list-assets-actions-item",children:(0,P.jsx)(Be,{disabled:n===vp&&s.includes(e.slug),tooltip:n===vp&&s.includes(e.slug)&&(0,P.jsx)(qd,{content:"general-ui.native-assets.blacklistedPluginHint"}),state:this.props.isInstalling?"loading":void 0,onClick:this.handleInstallAsset,"data-test-id":"plugendio-install-button",children:(0,P.jsx)(qd,{content:this.props.isInstalling?"general-ui.native-assets.buttonInstalling":"general-ui.native-assets.buttonInstall"})})})},this.getDetailsActionContent=()=>(0,P.jsx)("div",{className:"list-assets-actions-item",children:(0,P.jsx)(ye,{onClick:this.props.handleDetailsClick,"data-test-id":"plugendio-details-link",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.buttonDetails"})})}),this.getRequiresActionContent=e=>e.requires&&(0,P.jsxs)("div",{className:"list-assets-actions-item",children:[(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"general-ui.native-assets.tooltipVersion",params:{version:e.requires}}),children:(0,P.jsx)(be,{src:e.logoUrl})})," ",e.requires]})}componentWillMount(){if(this.isThemes())return void this.setState({imageUrl:this.props.item.screenshotUrl});this.setState({imageUrl:this.props.urls.defaultAssetImageUrl});const e=new Image;e.src=this.props.item.screenshotUrl,e.onerror=()=>{const t=new Image;t.src=e.src.replace(".png",".jpg"),t.onload=()=>this.setState({imageUrl:t.src})},e.onload=()=>this.setState({imageUrl:e.src})}componentDidMount(){try{const e=document.querySelector("#native-assets-list");e&&e.querySelectorAll(`.${Yp}card__buttons`).forEach((e=>{e.style.display="none"}))}catch(e){}}render(){const{item:e,installation:t,type:n,installedAssets:s}=this.props;return(0,P.jsx)(Wn,{view:"row",title:this.getTitle(e),className:`native-asset-${t.id}-${e.slug} ${this.props.className}`,sideHeader:this.getSiteHeader(e,n),rowContent:this.getRowContent(e,t.id,s)})}}eF.propTypes={type:We().oneOf([vp,bp]).isRequired,installation:We().shape({id:We().number.isRequired}).isRequired,className:We().string,install:We().func.isRequired,item:We().shape({author:We().shape({name:We().string.isRequired,profile:We().string.isRequired}),downloaded:We().number.isRequired,installed:We().bool.isRequired,logoUrl:We().string.isRequired,previewUrl:We().string.isRequired,rating:We().shape({amount:We().number.isRequired,score:We().number.isRequired}),requires:We().string.isRequired,screenshotUrl:We().string.isRequired,shortDescription:We().string.isRequired,slug:We().string.isRequired,tested:We().string.isRequired,title:We().string.isRequired,updated:We().string.isRequired,version:We().string.isRequired}),isInstalling:We().bool.isRequired,handleDetailsClick:We().func.isRequired,installedAssets:We().array,urls:We().shape({defaultAssetImageUrl:We().string.isRequired}).isRequired,blockedPlugins:We().array.isRequired,addSuccessMessage:We().func.isRequired},eF.defaultProps={installedAssets:null,className:""};const tF=mc((e=>({urls:e.app.urls,themes:e.instances.themes,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({install:kb(WN,e),addSuccessMessage:kb(Wg,e)})))(eF);class nF extends M.Component{constructor(e){super(e),this.handleMoveLeft=()=>{const e=Object.keys(this.props.screenshots),{activeKey:t}=this.state,n=e.length-1;if(t===e[0])return this.setState({activeKey:e[n]});const s=e.findIndex((e=>e===t));return this.setState({activeKey:e[s-1]})},this.handleMoveRight=()=>{const e=Object.keys(this.props.screenshots),{activeKey:t}=this.state,n=e.length-1;if(t===e[n])return this.setState({activeKey:e[0]});const s=e.findIndex((e=>e===t));return this.setState({activeKey:e[s+1]})};const t=Object.keys(e.screenshots);this.state={activeKey:t[0]}}render(){const{activeKey:e}=this.state,t=this.props.screenshots[e],n=Object.keys(this.props.screenshots).length,{maxPictureHeight:s}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("div",{className:"wpt-screenshot-wrapper",children:[n>1&&(0,P.jsx)("div",{onClick:this.handleMoveLeft,className:"slider-prev-control",children:(0,P.jsx)("i",{className:"left-arrow"})}),(0,P.jsx)("div",{className:"slider-wrapper",children:(0,P.jsx)("img",{style:{maxHeight:s},src:t.src})}),n>1&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{onClick:this.handleMoveRight,className:"slider-next-control",children:(0,P.jsx)("i",{className:"right-arrow"})}),(0,P.jsx)("div",{className:"slider-dot-control",children:Object.keys(this.props.screenshots).reduce(((t,n)=>(t.push((0,P.jsx)("div",{onClick:()=>this.setState({activeKey:n}),className:"slider-dot-control-image "+(n===e?"slider-dot-control-image__selected":"")},`dot-image-${n}`)),t)),[])})]})]}),t.caption&&(0,P.jsx)("div",{className:"wpt-screenshot-info",children:(0,P.jsx)("h3",{children:wC()(t.caption,{allowedTags:[]})})})]})}}nF.defaultProps={maxPictureHeight:0};const sF=nF;class iF extends M.Component{constructor(e){super(e),this.state={imageUrl:!1,itemDetails:null,pictureHeight:null},this.calcPictureSize=()=>{const e=document.documentElement.clientHeight,t=(e,t=!0)=>{try{const n=document.querySelectorAll(`.assetDetailDrawer ${e}`).item(0);return t?n.clientHeight:n.clientWidth}catch(e){return 0}},n=t(`.${Yp}drawer-header`),s=t(`.${Yp}drawer__subheader`),i=t(".asset-detail-container--short-description");this.setState({pictureHeight:e-n-s-i-118})},this.handleInstallAsset=()=>{const{item:e,instanceId:t,install:n,isInstalling:s}=this.props;s||n(e,t,vp).catch((()=>{}))},this.getSiteHeader=e=>(0,P.jsx)(Yn,{image:this.state.imageUrl,children:e.previewUrl&&(0,P.jsx)(Be,{intent:"primary",component:"a",href:e.previewUrl,target:"_blank",children:(0,P.jsx)(qd,{content:`general-ui.native-${vp}.previewUrl`})})}),this.getInstallActionContent=(e,t)=>e.installed||t&&t.find((t=>t.slug===e.slug))?(0,P.jsxs)(ei,{intent:"success","data-test-id":"plugendio-details-installed-label",children:[(0,P.jsx)(be,{name:"circle-check-mark"})," ",(0,P.jsx)(qd,{content:"general-ui.native-assets.labelInstalled"})," ",this.props.blockedPlugins.includes(e.slug)&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"general-ui.native-assets.installedBlacklistedPluginHint"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})]}):(0,P.jsx)(Be,{state:this.props.isInstalling?"loading":void 0,onClick:this.handleInstallAsset,"data-test-id":"plugendio-details-install-button",disabled:this.props.blockedPlugins.includes(e.slug),tooltip:this.props.blockedPlugins.includes(e.slug)&&(0,P.jsx)(qd,{content:"general-ui.native-assets.blacklistedPluginHint"}),children:(0,P.jsx)(qd,{content:this.props.isInstalling?"general-ui.native-assets.buttonInstalling":"general-ui.native-assets.buttonInstall"})}),this.getRating=e=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(hl,{value:e.score})," ",(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"general-ui.native-assets.numberOfRatings",params:{numRatings:e.amount}})})]}),this.getTabs=(e,t)=>{let n=[],s=1;const i=this.getInfoCols();return e.sections.length&&(n=e.sections.map((e=>(0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:`general-ui.native-assets.${e.type}`}),children:(0,P.jsxs)("div",{style:{display:"flex"},children:[(0,P.jsx)("div",{style:{flex:1},dangerouslySetInnerHTML:{__html:wC()(e.content,Object.assign(Object.assign({},SC.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),i&&(0,P.jsx)("div",{style:{width:320},children:(0,P.jsx)(ai,{xs:2,style:{paddingLeft:40},children:i})})]})},s++)))),t&&n.push((0,P.jsx)(gl,{title:(0,P.jsx)(qd,{content:"general-ui.native-assets.screenshoots"}),children:(0,P.jsx)(sF,{maxPictureHeight:this.state.pictureHeight,screenshots:e.screenshots})},"screenshoots")),n},window.addEventListener("resize",this.calcPictureSize,!1),this.props.getPluginInfo({slug:this.props.item.slug,instanceId:this.props.instanceId}).then((e=>this.setState({itemDetails:e}))).catch((()=>{})),this.setState({imageUrl:this.props.urls.defaultAssetImageUrl});const t=new Image;t.src=this.props.item.screenshotUrl,t.onerror=()=>{const e=new Image;e.src=t.src.replace(".png",".jpg"),e.onload=()=>this.setState({imageUrl:e.src})},t.onload=()=>this.setState({imageUrl:t.src})}componentDidMount(){setTimeout((()=>this.calcPictureSize()),1e3)}componentWillUnmount(){window.removeEventListener("resize",this.calcPictureSize)}getInfoCols(){const{itemDetails:e}=this.state,{version:t,updated:n,requires:s,rating:i,tested:a}=e,r=JN(e.downloaded);let o=0;const l=[];return t&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.version"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:t},++o+"-col")),n&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.lastUpdated"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:_x()(n).fromNow()},++o+"-col")),r&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.activeInstallations"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:r},++o+"-col")),s&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.requires"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:s},++o+"-col")),a&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.tested"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:a},++o+"-col")),i&&l.push((0,P.jsx)(ri,{className:"detail-row-info",children:(0,P.jsx)(qd,{content:"general-ui.native-assets.cols.ratings"})},++o+"-col"),(0,P.jsx)(ri,{className:"detail-row-info",children:this.getRating(i)},++o+"-col")),l}render(){const{installedAssets:e}=this.props,{itemDetails:t}=this.state;if(null===t)return null;const n=t.screenshots&&Object.keys(t.screenshots).length>0,{author:s,title:i}=t;return(0,P.jsxs)("div",{className:"asset-detail-container","data-test-id":"plugendio-details-drawer",children:[(0,P.jsxs)("div",{className:"asset-detail-container--short-description",children:[(0,P.jsx)("div",{className:"short-description-logo",children:this.getSiteHeader(t)}),(0,P.jsxs)("div",{className:"short-description-main-section",children:[(0,P.jsx)("h2",{dangerouslySetInnerHTML:{__html:wC()(i)}}),s&&(0,P.jsx)("div",{className:"list-assets-description-author",children:(0,P.jsxs)(ca,{children:[(0,P.jsx)(be,{name:"user"})," ",(0,P.jsx)(ye,{href:s.profile,target:"_blank",children:s.name})]})}),(0,P.jsx)("div",{className:"short-description-install-button",style:{marginTop:15},children:this.getInstallActionContent(t,e)})]})]}),(0,P.jsx)("div",{className:"asset-details-tabs",children:t||n?(0,P.jsx)(vl,{children:this.getTabs(t,n)}):(0,P.jsx)(fD,{})})]})}}iF.propTypes={instanceId:We().string.isRequired,install:We().func.isRequired,item:We().shape({id:We().string.isRequired,name:We().string.isRequired,slug:We().string.isRequired,shortDescription:We().string.isRequired,author:We().string,num_ratings:We().any,authorProfile:We().string,screenshotUrl:We().string.isRequired,logoUrl:We().string.isRequired,requires:We().string,isInstalled:We().bool.isRequired,rating:We().number.isRequired,previewUrl:We().string,version:We().string,downloaded:We().string,tested:We().string}).isRequired,isInstalling:We().bool.isRequired,installedAssets:We().array,getPluginInfo:We().func.isRequired,urls:We().shape({defaultAssetImageUrl:We().string.isRequired}).isRequired,blockedPlugins:We().array.isRequired},iF.defaultProps={installedAssets:null};const aF=mc((e=>({urls:e.app.urls,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),{install:WN,getPluginInfo:C_})(iF),rF={hideRatingFilter:!1,rating:0,numberOfInstallations:0,compatible:!1,lastUpdated:"all"};class oF extends M.Component{constructor(e){super(e),this.isFiltered=()=>0!==this.state.numberOfInstallations||!1!==this.state.compatible||0!==this.state.rating||"all"!==this.state.lastUpdated,this.resetState=()=>this.setState(Object.assign({},rF)),this.handleClearFilter=()=>{this.resetState(),this.props.onClearFilter()},this.handleRunFilter=()=>{const{rating:e,compatible:t,lastUpdated:n,numberOfInstallations:s}=this.state,{setLoading:i,setFiltered:a,updateFilterState:r}=this.props;return i(!0),a(this.isFiltered()),r({rating:e,compatible:t,lastUpdated:n,numberOfInstallations:s})},this.handleClickRatingItem=e=>{this.setState({rating:e},(()=>this.handleRunFilter()))},this.handleSetMinNumberOfInstallations=e=>{this.setState({numberOfInstallations:e},(()=>this.handleRunFilter()))},this.handleCompatibleChange=e=>{this.setState({compatible:e},(()=>this.handleRunFilter()))},this.handleSetLastUpdatedFilter=e=>{this.setState({lastUpdated:e},(()=>this.handleRunFilter()))},this.ratingArr=[2,3,4,4.5],this.minNubmerOfInstallationsArr=[0,1e5,1e6],this.lastUpdatedAttr=["all","3M","6M","1y","2y"],this.state=Object.assign({},rF)}componentDidUpdate(e){e.type!==this.props.type&&this.resetState()}render(){const{type:e,version:t}=this.props,{rating:n,compatible:s,lastUpdated:i,numberOfInstallations:a}=this.state;return(0,P.jsxs)(Pa,{vertical:!0,title:(0,P.jsxs)("div",{className:"wpt-display-flex",children:[(0,P.jsx)("div",{children:(0,P.jsx)(qd,{content:"general-ui.native-filter.title"})}),this.isFiltered()&&(0,P.jsx)("div",{className:"wpt-assets-filter-clear",children:(0,P.jsx)(ye,{icon:{style:{marginTop:2},name:"cross-mark",size:"16"},onClick:this.handleClearFilter,children:(0,P.jsx)(qd,{content:"general-ui.native-filter.clear"})})})]}),className:"wpt-assets-filter",children:[e===vp?(0,P.jsx)(la,{children:(0,P.jsx)(ut,{checked:s,onChange:e=>this.handleCompatibleChange(e),children:(0,P.jsx)(qd,{content:"general-ui.native-filter.compatible",params:{version:t}})})}):null,(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"general-ui.native-filter.minNubmerOfInstallationsArr.title"}),children:(0,P.jsx)(Ve,{children:(0,P.jsx)(Zs,{buttons:this.minNubmerOfInstallationsArr.map((e=>({title:(0,P.jsx)(qd,{content:`general-ui.native-filter.minNubmerOfInstallationsArr.>${e}`}),value:e}))),onChange:e=>this.handleSetMinNumberOfInstallations(e),selected:a})})}),(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"general-ui.native-filter.ratings.title"}),children:(0,P.jsxs)("div",{className:"wpt-native-assets-filter-item",children:[(0,P.jsxs)("label",{children:[(0,P.jsx)("input",{value:0,checked:0===n,type:"radio",name:"ratingFilterOn",onChange:()=>this.handleClickRatingItem(0)})," ",(0,P.jsx)(qd,{content:"general-ui.native-filter.ratings.all"})]}),this.ratingArr.map((e=>(0,P.jsxs)("label",{children:[(0,P.jsx)("input",{value:e,checked:n===e,type:"radio",name:"ratingFilterOn",onChange:()=>this.handleClickRatingItem(e)})," ",(0,P.jsx)(hl,{value:e})]},`filter-${e}`)))]})}),e===vp?(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"general-ui.native-filter.lastUpdated.title"}),children:(0,P.jsx)("div",{className:"wpt-native-assets-filter-item",children:this.lastUpdatedAttr.map((e=>(0,P.jsxs)("label",{children:[(0,P.jsx)("input",{onChange:e=>this.handleSetLastUpdatedFilter(e.target.value),value:e,checked:e===i,type:"radio",name:"lastUpdated"})," ",(0,P.jsx)(qd,{content:`general-ui.native-filter.lastUpdated.${e}`})]},`last-updated-${e}`)))})}):null]})}}oF.propTypes={type:We().oneOf([vp,bp]).isRequired,version:We().string.isRequired,onClearFilter:We().func.isRequired,setLoading:We().func.isRequired,setFiltered:We().func.isRequired,updateFilterState:We().func.isRequired};const lF=oF,cF=["zip"];class uF extends M.Component{constructor(e){super(e),this.state={}}render(){const{assetType:e,disabled:t,onUpload:n,onUploadRejected:s,baseClassName:i}=this.props,a=cF.map((e=>`.${e}`)).join(", "),r=cF.map((e=>`*.${e}`)).join(", ");return(0,P.jsx)(gC,{onDrop:n,multiple:!1,onDropRejected:s,accept:a,disabled:t,children:({getRootProps:n,getInputProps:s})=>(0,P.jsxs)("div",Object.assign({},n(),{className:`${i}__dropzone`,children:[(0,P.jsx)("input",Object.assign({},s({"data-test-id":"custom-asset-file-upload"}))),(0,P.jsx)(Be,{className:`${i}__upload-button`,disabled:t,children:e===vp?(0,P.jsx)(qd,{content:"general-ui.native-assets-upload.buttonUploadCustomPlugin"}):(0,P.jsx)(qd,{content:"general-ui.native-assets-upload.buttonUploadCustomTheme"})}),(0,P.jsx)("span",{children:r})]}))})}}uF.propTypes={assetType:We().oneOf([vp,bp]).isRequired,disabled:We().bool,onUpload:We().func.isRequired,onUploadRejected:We().func.isRequired,baseClassName:We().string},uF.defaultProps={disabled:!1,baseClassName:`${Rp}native-assets-upload`};const dF=uF,pF=({onRemove:e,isProcessing:t,showProcessing:n})=>n?(0,P.jsx)(fD,{}):(0,P.jsx)(ye,{icon:bM("remove"),onClick:t?()=>{}:e}),hF=({asset:e,onDeactivate:t,onActivate:n,isProcessing:s,showProcessing:i,title:a=null,disabled:r=!1})=>{const o=e.status,l=o?t:n;return(0,P.jsx)(fl,{tooltip:a,checked:o,disabled:e.disabled||s||r,onChange:s?()=>{}:l,loading:i,"data-test-status":e.status})};class mF extends M.Component{constructor(e){super(e),this.setMustUsePopoverVisible=e=>this.setState({isMustUsePopoverVisible:e}),this.state={isMustUsePopoverVisible:!1}}renderMustUseLabel(){const{isMustUsePopoverVisible:e}=this.state;return(0,P.jsxs)(Fs,{target:(0,P.jsx)(we,{view:"outline",intent:"info",onClick:()=>{this.setMustUsePopoverVisible(!e)},children:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.mustUseLabel"})}),visible:e,onClose:()=>this.setMustUsePopoverVisible(!1),children:[(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.mustUseDescriptionText"})," ",(0,P.jsx)(Cs,{href:"https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/",target:"_blank",onClick:()=>{this.setMustUsePopoverVisible(!1)},children:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.mustUseDescriptionLink"})})]})}render(){const{asset:e,installationId:t,showVulnerableWarning:n,onOpenSecurityDialog:s,baseClassName:i}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)("span",{children:[`${e.title} ${e.version}`," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:bM("circle-info")}),placement:"bottom",children:(0,P.jsx)("p",{children:e.description})}),e.mustUse?(0,P.jsxs)(P.Fragment,{children:[" ",this.renderMustUseLabel()]}):null]}),n&&(0,P.jsx)("span",{className:`${i}__vulnerable-status`,children:(0,P.jsx)(ye,{icon:e.status?(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:"danger",size:"16"}):(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),onClick:()=>s(t,1),"data-test-id":"instance-asset-vulnerable-link",children:(0,P.jsx)(qd,{content:"titleListColumn.vulnerableLink"})})})]})}}mF.defaultProps={baseClassName:`${Rp}title-list-column`};const fF=mF,gF=({hasUpdates:e,onUpdatesOpen:t})=>e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ye,{onClick:t,children:(0,P.jsx)(qd,{content:"controllers.index.detail.updatesSectionTitle"})})," "]}):null,bF=({disabled:e=!1,installationId:t,hasAdminCredentials:n,localeKey:s,tooltip:i=null})=>n?(0,P.jsx)(qd,{params:{url:(0,P.jsx)(yN,{disabled:e,instanceId:t,tooltip:i,children:(0,P.jsx)(qd,{content:"general-ui.WordPress"})})},content:s}):null,vF=({onAddItem:e,onRemoveItems:t,isRemoveItemsDisabled:n,installationId:s,hasAdminCredentials:i,addLocaleKey:a,removeLocaleKey:r,manageLocaleKey:o,isWordPressLoginDisabled:l=!1,tooltipWordPressLogin:c=null,autoUpdateAllAssetsLocaleKey:u,autoUpdateAllAssetsSwitchChecked:d=!1,autoUpdateAllAssetsSwitchDisabled:p=!1,autoUpdateAllAssetsSwitchLoading:h=!1,autoUpdateAllAssetsSwitchTooltip:m=null,onChangeAutoUpdates:f})=>(0,P.jsx)(la,{children:(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:a}),children:(0,P.jsx)(Be,{onClick:e,icon:"plus","data-test-id":"install-button",children:(0,P.jsx)(qd,{content:a})})}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:r}),children:(0,P.jsx)(Be,{onClick:t,icon:"remove",disabled:n,children:(0,P.jsx)(qd,{content:r})})}),(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:o}),children:(0,P.jsx)(bF,{disabled:l,installationId:s,hasAdminCredentials:i,localeKey:o,tooltip:c})}),(0,P.jsx)(ui,{}),(0,P.jsxs)(Ii,{title:"autoUpdateAllAssets",children:[(0,P.jsx)(fl,{checked:d,disabled:p,onChange:f,loading:h,tooltip:m})," ",(0,P.jsx)(qd,{content:u})]})]})}),yF=({dialog:e,type:t,onClose:n})=>e.isOpen?(0,P.jsx)(Ea,{isOpen:e.isOpen,cancelTitle:(0,P.jsx)(qd,{content:`controllers.index.manage-${t}.removeDialogButtonNo`}),buttons:(0,P.jsx)(Be,{intent:"primary",onClick:e.handleSubmit,"data-test-id":"button-yes",children:(0,P.jsx)(qd,{content:`controllers.index.manage-${t}.removeDialogButtonYes`})}),size:"sm",onClose:n,"data-test-id":"confirmation-remove-dialog",children:e.content}):null,xF=({current:e,total:t,onSelect:n})=>t>1?(0,P.jsx)(si,{current:e,total:t,onSelect:n}):null,_F=(e,t)=>e.filter((e=>t.some((t=>e.slug===t.slug&&e.version===t.version)))).length!==e.length,SF={isOpen:!1,handleSubmit:()=>{},content:(0,P.jsx)(P.Fragment,{})};class wF extends M.Component{constructor(e){super(e),this.handleAddItem=()=>{this.props.checkSession().then((()=>this.props.onOpenNativePlugins()))},this.handleRemoveItems=e=>{const{installation:{id:t},pluginsV2:n}=this.props;if(0===e.length)return;const s=n.filter((t=>-1!==e.indexOf(t.slug))).map((e=>e.slug));this.setState({dialog:{isOpen:!0,handleSubmit:()=>{this.props.pluginsActions.remove(t,s).then((()=>{this.props.addSuccessMessage((0,P.jsx)(qd,{content:"controllers.index.uninstall-plugins.itemsUpdated"}));const{pages:t}=np(this.getAssets(),this.state.currentPage,10),n=this.state.selection.filter((t=>-1===e.indexOf(t)));this.state.currentPage>t?this.setState({currentPage:t||1,selection:n}):this.setState({selection:n})})).catch((()=>{})),this.handleCloseDialog()},content:1===e.length?(0,P.jsx)(qd,{content:`controllers.index.manage-${vp}.confirmRemoveItem`}):(0,P.jsx)(qd,{content:`controllers.index.manage-${vp}.confirmRemoveItems`})}})},this.handleCloseDialog=()=>this.setState({dialog:Object.assign({},SF)}),this.handleOpenActivateVulnerablePluginConfirmation=e=>{this.setState({showActivateVulnerablePluginConfirmation:!0,activateVulnerablePluginConfirmationPluginId:e})},this.handleCloseActivateVulnerablePluginConfirmation=()=>{this.setState({showActivateVulnerablePluginConfirmation:!1,activateVulnerablePluginConfirmationPluginId:null})},this.getAssets=()=>{const{installation:{id:e},pluginsV2:t,blockedPlugins:n}=this.props;let s=[];return t&&(s=t.sort(((e,t)=>pp(e.title,t.title))).map((t=>{const s=t.slug;return Object.assign(Object.assign({key:s},t),{instanceId:e,meta:{autoUpdates:{canBeEnabled:!t.autoUpdates&&!n.includes(t.slug),canBeDisabled:t.autoUpdates&&(t.autoUpdatesAvailable||n.includes(t.slug))}},isAssetVulnerableWhenEnabled:o_(t.slug,this.props.pluginsVulnerabilityStatuses,[Ig])})}))),s},this.filterOutMustUsePluginKeys=e=>{const t=this.getAssets().filter((e=>e.mustUse)).map((e=>e.key));return e.filter((e=>!t.includes(e)))},this.handlePluginStatusChange=(e,t)=>{this.props.pluginsActions.activateOrDeactivatePlugin(e,t).then((t=>{const n=t?"asset.plugin.activated":"asset.plugin.deactivated",s=(0,P.jsx)(qd,{content:n,params:{pluginTitle:e.title}});this.props.addSuccessMessage(s)})).catch((()=>{}))},this.addPluginsToChangingPluginsAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingPluginsAutoUpdates.values());return e.forEach((e=>{n.add(e)})),{changingPluginsAutoUpdates:n}}))},this.removePluginsFromChangingPluginsAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingPluginsAutoUpdates.values());return e.forEach((e=>{n.delete(e)})),{changingPluginsAutoUpdates:n}}))},this.isAutoUpdateAllPluginsSwitchChecked=()=>this.getAssets().filter((e=>!e.mustUse)).every((e=>!e.meta.autoUpdates.canBeEnabled)),this.isAutoUpdateAllPluginsSwitchDisabled=()=>!this.props.installation.features.updates.autoUpdatesAvailable||(this.isAutoUpdateAllPluginsSwitchChecked()?!this.getAssets().some((e=>e.meta.autoUpdates.canBeDisabled)):!this.getAssets().some((e=>e.meta.autoUpdates.canBeEnabled))),this.getAutoUpdateAllAssetsSwitchTooltip=()=>this.isAutoUpdateAllPluginsSwitchDisabled()?(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.pluginsAutoUpdatesEnabledHint"}):this.isAutoUpdateAllPluginsSwitchChecked()?(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.autoUpdateAllPluginsTurnedOnHint"}):(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.autoUpdateAllPluginsTurnedOffHint"}),this.renderList=()=>{const{isPaginationEnabled:e}=this.props,{currentPage:t,selection:n,dialog:s,isLoading:i}=this.state;if(i)return(0,P.jsx)(Rn,{});const{pages:a,currentItems:r}=e?np(this.getAssets(),t,10):{pages:1,currentItems:this.getAssets()};return 0===r.length?(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.noPluginsYet"}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Qr,{columns:this.getColumns(),data:r,selection:n,onSelectionChange:e=>this.setState({selection:e}),"data-test-id":tv,rowProps:e=>({"data-test-plugin-slug":e.slug.toLowerCase()})}),e&&(0,P.jsx)(xF,{current:this.state.currentPage,total:a,onSelect:e=>this.setState({currentPage:e,selection:[]})}),(0,P.jsx)(yF,{dialog:s,type:vp,onClose:this.handleCloseDialog})]})},this.state={currentPage:1,selection:[],dialog:Object.assign({},SF),isLoading:!this.props.pluginsV2||0===Object.keys(this.props.pluginsV2).length,changingPluginsAutoUpdates:new Set,isAutoUpdateAllPluginsSwitchLoading:!1,showActivateVulnerablePluginConfirmation:!1,activateVulnerablePluginConfirmationPluginId:null}}componentDidMount(){this.state.isLoading&&this.loadPlugins()}componentDidUpdate(e){const t=_F(e.pluginsV2,this.props.pluginsV2),n=_F(this.props.pluginsV2,e.pluginsV2);(t||n)&&this.props.getInstallationsVulnerabilityStatuses([this.props.installation.id]).catch((()=>{}))}loadPlugins(){Promise.all([this.props.pluginsActions.getInstallationPlugins(this.props.installation.id).catch((()=>{})),this.props.reloadInstallationsVulnerabilityStatuses([this.props.installation.id])]).catch((()=>{})).finally((()=>this.setState({isLoading:!1})))}getColumns(){const{installation:e,blockedPlugins:t,pluginsActions:{setPluginsAutoUpdates:n},onOpenSecurityDialog:s}=this.props,{isAutoUpdateAllPluginsSwitchLoading:i,showActivateVulnerablePluginConfirmation:a,activateVulnerablePluginConfirmationPluginId:r}=this.state;return[{key:"title",width:"60%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldName"}),render:n=>(0,P.jsxs)(M.Fragment,{children:[t.includes(n.slug)&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",(0,P.jsx)(fF,{asset:n,showVulnerableWarning:n.isAssetVulnerableWhenEnabled,installationId:e.id,onOpenSecurityDialog:s})]})},{key:"state",width:"10%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldState"}),render:e=>{const n=ep(e),s=this.props.assetsToChangingStatus.has(n),i=s||this.props.assetsToRemove.has(n),o=t.includes(e.slug);return e.mustUse?null:e.isAssetVulnerableWhenEnabled&&!e.status?(0,P.jsx)(YA,{target:(0,P.jsx)(hF,{title:o&&(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),disabled:o&&!e.status,asset:e,isProcessing:i,showProcessing:s,onActivate:()=>this.handleOpenActivateVulnerablePluginConfirmation(e.key),onDeactivate:()=>this.handlePluginStatusChange(e,!1)}),onActivate:()=>this.handlePluginStatusChange(e,!0),isOpen:a&&r===e.key,onClose:this.handleCloseActivateVulnerablePluginConfirmation,children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.activateVulnerablePluginConfirmation",params:{pluginName:e.title}})})}):(0,P.jsx)(hF,{title:o&&(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),disabled:o&&!e.status,asset:e,isProcessing:i,showProcessing:s,onActivate:()=>this.handlePluginStatusChange(e,!0),onDeactivate:()=>this.handlePluginStatusChange(e,!1)})}},{key:"autoUpdate",width:"10%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.fieldAutoUpdates"}),align:"center",render:t=>{const s=ep(t),a=this.props.assetsToChangingStatus.has(s)||this.props.assetsToRemove.has(s),r=!e.features.updates.autoUpdatesAvailable||t.autoUpdates&&!t.meta.autoUpdates.canBeDisabled||!t.autoUpdates&&!t.meta.autoUpdates.canBeEnabled;return!t.mustUse&&(0,P.jsx)(fl,{tooltip:t.autoUpdates&&!t.autoUpdatesAvailable&&(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.pluginsAutoUpdatesEnabledHint"}),checked:t.autoUpdates,disabled:r||a,onChange:s=>{this.addPluginsToChangingPluginsAutoUpdates([t.slug]),n(e.id,[t],s).catch((()=>{})).finally((()=>this.removePluginsFromChangingPluginsAutoUpdates([t.slug])))},loading:this.state.changingPluginsAutoUpdates.has(t.slug)||i})}},{key:"update",width:"10%",render:e=>{const t=ep(e),n=this.props.assetsToRemove.has(t);return!e.mustUse&&!n&&(0,P.jsx)(gF,{onUpdatesOpen:this.props.onUpdatesOpen,hasUpdates:null!==e.availableVersion})}},{key:"action",width:"10%",render:e=>{const t=ep(e),n=this.props.assetsToRemove.has(t),s=n||this.props.assetsToChangingStatus.has(t);return!e.mustUse&&(0,P.jsx)(pF,{onRemove:t=>Xd(t,this.handleRemoveItems,[e.slug]),isProcessing:s,showProcessing:n})}}]}render(){const{installation:{id:e,features:{maintenance:t,credentials:n}},pluginsActions:{setPluginsAutoUpdates:s},showTitle:i}=this.props,{selection:a,isAutoUpdateAllPluginsSwitchLoading:r}=this.state,o=t.status&&t.fullMode?(0,P.jsx)(qd,{content:"controllers.index.manage-plugins.tooltipPluginsInsideWordpressLink"}):null;return(0,P.jsxs)(Pa,{title:i?(0,P.jsx)(qd,{content:"controllers.index.detail.pluginsTabTitle"}):void 0,collapsed:!this.props.isCollapsible,collapsible:this.props.isCollapsible,children:[(0,P.jsx)(vF,{installationId:e,hasAdminCredentials:n.available,onAddItem:this.handleAddItem,onRemoveItems:()=>this.handleRemoveItems(this.filterOutMustUsePluginKeys(a)),isRemoveItemsDisabled:0===this.filterOutMustUsePluginKeys(a).length,manageLocaleKey:"controllers.index.manage-plugins.managePluginsInsideWordpressLink",addLocaleKey:"controllers.index.manage-plugins.installItem",removeLocaleKey:"controllers.index.manage-plugins.removeItems",isWordPressLoginDisabled:t.status&&t.fullMode||!1,tooltipWordPressLogin:o,autoUpdateAllAssetsLocaleKey:"controllers.index.manage-plugins.autoUpdateAllPlugins",autoUpdateAllAssetsSwitchChecked:this.isAutoUpdateAllPluginsSwitchChecked(),autoUpdateAllAssetsSwitchDisabled:this.isAutoUpdateAllPluginsSwitchDisabled(),autoUpdateAllAssetsSwitchLoading:r,onChangeAutoUpdates:t=>{this.setState({isAutoUpdateAllPluginsSwitchLoading:!0});const n=this.getAssets().filter((e=>t?e.meta.autoUpdates.canBeEnabled:e.meta.autoUpdates.canBeDisabled));s(e,n,t).catch((()=>{})).finally((()=>this.setState({isAutoUpdateAllPluginsSwitchLoading:!1})))},autoUpdateAllAssetsSwitchTooltip:this.getAutoUpdateAllAssetsSwitchTooltip()}),(0,P.jsx)(la,{children:this.renderList()})]})}}wF.defaultProps={pluginsV2:[],isPaginationEnabled:!0,showTitle:!0};const kF=mc(((e,t)=>{var n,s;const i=e.instances.pluginsV2[t.installation.id],a=(null===(s=null===(n=e.vulnerabilities.installationsVulnerabilityStatuses)||void 0===n?void 0:n.find((e=>e.id===t.installation.id)))||void 0===s?void 0:s.plugins)||[];return{pluginsV2:i,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList,assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,pluginsVulnerabilityStatuses:a}}),(e=>({pluginsActions:kb({activateOrDeactivatePlugin:w_,setPluginsAutoUpdates:j_,getInstallationPlugins:T_,remove:k_},e),reloadInstallationsVulnerabilityStatuses:kb(p_,e),getInstallationsVulnerabilityStatuses:kb(h_,e),checkSession:()=>e($g()),addSuccessMessage:kb(Wg,e)})))(wF),jF={isOpen:!1,handleSubmit:()=>{},content:(0,P.jsx)(P.Fragment,{})};class TF extends M.Component{constructor(e){super(e),this.handleAddItem=()=>this.props.checkSession().then((()=>this.props.onOpenNativeThemes())),this.getAssets=()=>{const{installation:{id:e},themesV2:t}=this.props;let n=[];return t&&(n=t.sort(((e,t)=>pp(e.title,t.title))).map((t=>Object.assign(Object.assign({key:t.slug},t),{instanceId:e,isAssetVulnerableWhenEnabled:o_(t.slug,this.props.themesVulnerabilityStatuses,[Ig])})))),n},this.handleRemoveItems=e=>{const{installation:{id:t},themesV2:n}=this.props;if(!Array.isArray(e)||!e.length)return;const s=n.filter((t=>-1!==e.indexOf(t.slug))).map((e=>e.slug));this.setState({dialog:{isOpen:!0,handleSubmit:()=>{this.props.themesActions.remove(t,s).then((()=>{this.props.addSuccessMessage((0,P.jsx)(qd,{content:"controllers.index.uninstall-themes.itemsUpdated"}));const{pages:t}=np(this.getAssets(),this.state.currentPage,10),n=this.state.selection.filter((t=>-1===e.indexOf(t)));this.state.currentPage>t?this.setState({currentPage:t||1,selection:n}):this.setState({selection:n})})).catch((()=>{})),this.handleCloseDialog()},content:1===e.length?(0,P.jsx)(qd,{content:`controllers.index.manage-${bp}.confirmRemoveItem`}):(0,P.jsx)(qd,{content:`controllers.index.manage-${bp}.confirmRemoveItems`})}})},this.handleCloseDialog=()=>this.setState({dialog:Object.assign({},jF)}),this.handleOpenActivateVulnerableThemeConfirmation=e=>{this.setState({showActivateVulnerableThemeConfirmation:!0,activateVulnerableThemeConfirmationThemeId:e})},this.handleCloseActivateVulnerableThemeConfirmation=()=>{this.setState({showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null})},this.handleActivateTheme=e=>{this.props.themesActions.activateTheme({slug:e.slug,instanceId:this.props.installation.id}).then((t=>{t&&this.props.addSuccessMessage((0,P.jsx)(qd,{content:"asset.theme.activated",params:{themeTitle:e.title}}))})).catch((()=>{}))},this.addThemesToChangingThemesAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingThemesAutoUpdates.values());return e.forEach((e=>{n.add(e)})),{changingThemesAutoUpdates:n}}))},this.removeThemesFromChangingThemesAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingThemesAutoUpdates.values());return e.forEach((e=>{n.delete(e)})),{changingThemesAutoUpdates:n}}))},this.isAutoUpdateAllThemesSwitchChecked=()=>this.getAssets().every((e=>e.autoUpdates)),this.isAutoUpdateAllThemesSwitchDisabled=()=>{const{installation:{features:{updates:{autoUpdatesAvailable:e}}}}=this.props;return!e||this.getAssets().every((e=>e.autoUpdates&&!e.autoUpdatesAvailable))},this.getAutoUpdateAllThemesSwitchTooltip=()=>this.isAutoUpdateAllThemesSwitchDisabled()?(0,P.jsx)(qd,{content:"controllers.index.manage-themes.themesAutoUpdatesEnabledHint"}):this.isAutoUpdateAllThemesSwitchChecked()?(0,P.jsx)(qd,{content:"controllers.index.manage-themes.autoUpdateAllThemesTurnedOnHint"}):(0,P.jsx)(qd,{content:"controllers.index.manage-themes.autoUpdateAllThemesTurnedOffHint"}),this.renderList=()=>{const{isPaginationEnabled:e}=this.props,{currentPage:t,selection:n,dialog:s,isLoading:i}=this.state;if(i)return(0,P.jsx)(Rn,{});const{pages:a,currentItems:r}=e?np(this.getAssets(),t,10):{pages:1,currentItems:this.getAssets()};return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Qr,{columns:this.getColumns(),data:r,selection:n,onSelectionChange:e=>this.setState({selection:e}),"data-test-id":tv,rowProps:e=>({"data-test-theme-slug":e.slug.toLowerCase()})}),e&&(0,P.jsx)(xF,{current:t,total:a,onSelect:e=>this.setState({currentPage:e,selection:[]})}),(0,P.jsx)(yF,{dialog:s,type:bp,onClose:this.handleCloseDialog})]})},this.state={currentPage:1,selection:[],dialog:Object.assign({},jF),isLoading:!this.props.themesV2||0===Object.keys(this.props.themesV2).length,changingThemesAutoUpdates:new Set,isAutoUpdateAllThemesSwitchLoading:!1,showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null}}componentDidMount(){this.state.isLoading&&this.loadThemes()}componentDidUpdate(e){const t=_F(e.themesV2,this.props.themesV2),n=_F(this.props.themesV2,e.themesV2);(t||n)&&this.props.getInstallationsVulnerabilityStatuses([this.props.installation.id]).catch((()=>{}))}loadThemes(){Promise.all([this.props.themesActions.getInstallationThemes(this.props.installation.id),this.props.reloadInstallationsVulnerabilityStatuses([this.props.installation.id])]).catch((()=>{})).finally((()=>this.setState({isLoading:!1})))}getColumns(){const{installation:e,themesActions:{setThemesAutoUpdates:t},onOpenSecurityDialog:n}=this.props,{isAutoUpdateAllThemesSwitchLoading:s,showActivateVulnerableThemeConfirmation:i,activateVulnerableThemeConfirmationThemeId:a}=this.state;return[{key:"title",width:"60%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldName"}),render:t=>(0,P.jsx)(fF,{asset:t,installationId:e.id,onOpenSecurityDialog:n,showVulnerableWarning:t.isAssetVulnerableWhenEnabled})},{key:"state",width:"10%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldState"}),render:e=>{const t=ep(e),n=this.props.themesV2.some((e=>{const t=ep({slug:e.slug,instanceId:this.props.installation.id});return this.props.assetsToChangingStatus.has(t)})),s=n||this.props.assetsToRemove.has(t);return e.isAssetVulnerableWhenEnabled&&!e.status?(0,P.jsx)(YA,{target:(0,P.jsx)(hF,{asset:e,isProcessing:s,showProcessing:n,onActivate:()=>this.handleOpenActivateVulnerableThemeConfirmation(e.slug),onDeactivate:()=>{}}),onActivate:()=>this.handleActivateTheme(e),isOpen:i&&a===e.slug,onClose:this.handleCloseActivateVulnerableThemeConfirmation,children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.activateVulnerableThemeConfirmation",params:{themeName:e.title}})})}):(0,P.jsx)(hF,{asset:e,isProcessing:s,showProcessing:n,onActivate:()=>this.handleActivateTheme(e),onDeactivate:()=>{}})}},{key:"autoUpdate",width:"10%",title:(0,P.jsx)(qd,{content:"controllers.index.manage-themes.fieldAutoUpdates"}),align:"center",render:n=>{const i=ep(n),a=this.props.assetsToChangingStatus.has(i)||this.props.assetsToRemove.has(i),r=!e.features.updates.autoUpdatesAvailable||n.autoUpdates&&!n.autoUpdatesAvailable||this.props.assetsToRemove.has(i);return(0,P.jsx)(fl,{checked:n.autoUpdates,onChange:s=>{this.addThemesToChangingThemesAutoUpdates([n.slug]),t(e.id,[n],s).catch((()=>{})).finally((()=>this.removeThemesFromChangingThemesAutoUpdates([n.slug])))},disabled:r||a,loading:this.state.changingThemesAutoUpdates.has(n.slug)||s,tooltip:n.autoUpdates&&(0,P.jsx)(qd,{content:"controllers.index.manage-themes.themesAutoUpdatesEnabledHint"})})}},{key:"update",width:"10%",render:e=>{const t=ep(e);return!1===this.props.assetsToRemove.has(t)&&(0,P.jsx)(gF,{onUpdatesOpen:this.props.onUpdatesOpen,hasUpdates:null!==e.availableVersion})}},{key:"action",width:"10%",render:e=>{const t=ep(e);if(e.status)return null;const n=this.props.assetsToRemove.has(t),s=n||this.props.assetsToChangingStatus.has(t);return(0,P.jsx)(pF,{isProcessing:s,showProcessing:n,onRemove:t=>Xd(t,this.handleRemoveItems,[e.slug])})}}]}getSelectedThemesForRemove(){const{themesV2:e}=this.props;return e?this.state.selection.filter((t=>{const n=e.find((e=>e.slug===t));return!!n&&!n.status})):[]}render(){const{installation:{id:e,features:{credentials:t,maintenance:n}},themesActions:{setThemesAutoUpdates:s},showTitle:i}=this.props,{isAutoUpdateAllThemesSwitchLoading:a}=this.state,r=n.status&&n.fullMode?(0,P.jsx)(qd,{content:"controllers.index.manage-themes.tooltipThemesInsideWordpressLink"}):null,o=this.getSelectedThemesForRemove();return(0,P.jsxs)(Pa,{title:i?(0,P.jsx)(qd,{content:"controllers.index.detail.themesTabTitle"}):void 0,collapsed:!this.props.isCollapsible,collapsible:this.props.isCollapsible,children:[(0,P.jsx)(vF,{installationId:e,hasAdminCredentials:t.available,onAddItem:this.handleAddItem,onRemoveItems:()=>this.handleRemoveItems(o),isRemoveItemsDisabled:0===o.length,manageLocaleKey:"controllers.index.manage-themes.manageThemesInsideWordpressLink",addLocaleKey:"controllers.index.manage-themes.installItem",removeLocaleKey:"controllers.index.manage-themes.removeItems",isWordPressLoginDisabled:n.status&&n.fullMode||!1,tooltipWordPressLogin:r,autoUpdateAllAssetsLocaleKey:"controllers.index.manage-themes.autoUpdateAllThemes",autoUpdateAllAssetsSwitchChecked:this.isAutoUpdateAllThemesSwitchChecked(),autoUpdateAllAssetsSwitchDisabled:this.isAutoUpdateAllThemesSwitchDisabled(),autoUpdateAllAssetsSwitchLoading:a,onChangeAutoUpdates:t=>{this.setState({isAutoUpdateAllThemesSwitchLoading:!0}),s(e,this.getAssets(),t).catch((()=>{})).finally((()=>this.setState({isAutoUpdateAllThemesSwitchLoading:!1})))},autoUpdateAllAssetsSwitchTooltip:this.getAutoUpdateAllThemesSwitchTooltip()}),(0,P.jsx)(la,{children:this.renderList()})]})}}TF.defaultProps={themesV2:[],isPaginationEnabled:!0,showTitle:!0};const CF=mc(((e,t)=>{var n,s;const i=e.instances.themesV2[t.installation.id],a=(null===(s=null===(n=e.vulnerabilities.installationsVulnerabilityStatuses)||void 0===n?void 0:n.find((e=>e.id===t.installation.id)))||void 0===s?void 0:s.themes)||[];return{themesV2:i,assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,themesVulnerabilityStatuses:a}}),(e=>({themesActions:kb({remove:E_,activateTheme:A_,getInstallationThemes:U_,setThemesAutoUpdates:R_},e),reloadInstallationsVulnerabilityStatuses:kb(p_,e),getInstallationsVulnerabilityStatuses:kb(h_,e),checkSession:()=>e($g()),addSuccessMessage:kb(Wg,e)})))(TF);class DF extends M.Component{constructor(e){super(e),this.handleSubmit=e=>{const{setDbSettings:t,onSetDbUserName:n,installationId:s,onClosePopover:i}=this.props;this.state.isProcessing||(this.setState({dbUserName:e.dbUserName,dbUserPassword:e.dbUserPassword,isProcessing:!0,errors:null}),t(s,e).then((t=>{t.status===gp?t.formErrors&&this.setState({errors:t.formErrors}):(n(e.dbUserName),i())})).finally((()=>{this.setState({isProcessing:!1})})))},this.state={dbUserName:e.dbUserName||"",dbUserPassword:"",isProcessing:!1,errors:{}}}render(){const{dbHost:e,dbName:t}=this.props,{dbUserName:n,dbUserPassword:s,isProcessing:i,errors:a}=this.state;return(0,P.jsxs)(La,{onSubmit:this.handleSubmit,hideRequiredLegend:!0,values:{dbUserName:n,dbUserPassword:s},state:i?"submit":null,errors:a,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":"instance-database-settings-submit-button"},children:[(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.db-settings.dbServer"}),children:e}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.db-settings.dbName"}),children:t}),(0,P.jsx)(Sr,{name:"dbUserName",label:(0,P.jsx)(qd,{content:"forms.db-settings.dbUserName"})}),(0,P.jsx)(fr,{name:"dbUserPassword",label:(0,P.jsx)(qd,{content:"forms.db-settings.dbUserPassword"})})]})}}DF.propTypes={installationId:We().number.isRequired,dbHost:We().string.isRequired,dbName:We().string.isRequired,dbUserName:We().string.isRequired,onSetDbUserName:We().func.isRequired,onClosePopover:We().func.isRequired,setDbSettings:We().func.isRequired};const PF=DF;class OF extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{settingsData:{dbName:e,dbListUrl:t,webAdminUrl:n}}=this.props;return(0,P.jsxs)(P.Fragment,{children:[t?(0,P.jsx)("a",{href:t,target:"_blank",children:e}):e,n&&(0,P.jsxs)(P.Fragment,{children:[" [",(0,P.jsx)("a",{href:n,target:"_blank","data-test-id":nv,children:(0,P.jsx)(qd,{content:"databaseNameAndWebAdmin.openInPhpMyAdmin"})}),"]"]})]})},this.renderCpanel=()=>{const{installation:{owner:{login:e}},settingsData:{dbName:t,dbListUrl:n,webAdminUrl:s},goToUri:i}=this.props,a=Bv({link:n||"",inNewWindow:!0,goToUri:i,accountUsername:e}),r=Bv({link:s||"",inNewWindow:!0,goToUri:i,accountUsername:e});return(0,P.jsxs)(P.Fragment,{children:[n?(0,P.jsx)("a",Object.assign({},a,{children:t})):t,s&&(0,P.jsxs)(P.Fragment,{children:[" [",(0,P.jsx)("a",Object.assign({},r,{"data-test-id":nv,children:(0,P.jsx)(qd,{content:"databaseNameAndWebAdmin.openInPhpMyAdmin"})})),"]"]})]})},this.renderPlainText=()=>this.props.settingsData&&this.props.settingsData.dbName?this.props.settingsData.dbName:null}render(){const{installation:{installationType:e}}=this.props;return UM(e)?this.renderPlesk():RM(e)?this.renderCpanel():this.renderPlainText()}}const IF=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(OF);class MF extends M.Component{constructor(e){super(e),this.handleOnErrorWithTimeout=()=>{setTimeout((()=>{this.props.onError()}),1e3)},this.handleSetDbUserName=e=>this.setState((t=>({settingsData:t.settingsData?Object.assign(Object.assign({},t.settingsData),{dbUserName:e}):void 0}))),this.handleToggleDbSettingsPopover=()=>this.setState((e=>({showDbSettingsPopover:!e.showDbSettingsPopover}))),this.state={isLoading:!1,getDbSettingsError:void 0,settingsData:void 0,showDbSettingsPopover:!1}}componentWillMount(){const{getDbSettings:e,installation:t}=this.props;this.setState({isLoading:!0}),e(t.id).then((e=>{e.status&&e.status===gp?this.setState({getDbSettingsError:e.message},this.handleOnErrorWithTimeout):this.setState({settingsData:e.data})})).finally((()=>{this.setState({isLoading:!1})}))}renderChangeLink(){const{settingsData:e,showDbSettingsPopover:t}=this.state,{installation:n,setDbSettings:s}=this.props;return HM(n.installationType)&&e?(0,P.jsxs)(P.Fragment,{children:[" [",(0,P.jsx)(Fs,{title:(0,P.jsx)(qd,{content:"instanceDatabaseTab.dbSettingsPopoverTitle"}),placement:"bottom",visible:t,onClose:this.handleToggleDbSettingsPopover,target:(0,P.jsx)("a",{onClick:this.handleToggleDbSettingsPopover,"data-test-id":"instance-database-settings-link",children:(0,P.jsx)(qd,{content:"instanceDatabaseTab.changeDbSettingsLink"})}),"data-test-id":"instance-database-settings-popover",children:(0,P.jsx)(PF,{dbHost:e.dbHost,dbName:e.dbName,dbUserName:e.dbUserName,installationId:n.id,onSetDbUserName:this.handleSetDbUserName,setDbSettings:s,onClosePopover:this.handleToggleDbSettingsPopover})}),"]"]}):null}render(){const{settingsData:e,isLoading:t,getDbSettingsError:n}=this.state,{installation:s,showTitle:i}=this.props;return t||!e?(0,P.jsx)(fD,{}):n?(0,P.jsx)("div",{children:n}):(0,P.jsxs)(Pa,{title:i?(0,P.jsx)(qd,{content:"controllers.index.detail.databaseTabTitle"}):void 0,children:[(0,P.jsx)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"instanceDatabaseTab.dbName"}),children:(0,P.jsx)(IF,{installation:s,settingsData:e})}),(0,P.jsx)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"instanceDatabaseTab.tablePrefix"}),children:e.tablePrefix?e.tablePrefix:(0,P.jsxs)(P.Fragment,{children:["[",(0,P.jsx)(qd,{content:"instanceDatabaseTab.noneTablePrefix"}),"]"]})}),e.dbUserName&&(0,P.jsxs)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"instanceDatabaseTab.dbUserName"}),children:[e.dbUserName,this.renderChangeLink()]}),e.dbHost&&(0,P.jsx)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"instanceDatabaseTab.dbServer"}),children:e.dbHost})]})}}MF.defaultProps={showTitle:!0};const LF=mc(null,{getDbSettings:ZS,setDbSettings:ew})(MF);class AF extends M.Component{constructor(){super(...arguments),this.getColumns=()=>{const e="update-list-settings-",t=this.props.type===vp?"controllers.index.manage-plugins.fieldName":"controllers.index.manage-themes.fieldName",n=this.props.getSelection();return[{width:"45%",key:`${e}-title`,title:(0,P.jsx)(qd,{content:t}),render:e=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(ei,{children:e.title})," ",(0,P.jsxs)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info"}),placement:"top-right",children:[e.description.substring(0,150),"..."]})]})},{width:"20%",key:`${e}versions`,title:(0,P.jsx)(qd,{content:"list.instances.versions"}),render:e=>(0,P.jsxs)(ei,{children:[e.version," ","→"," ",e.availableVersion]})},{width:"25%",key:`${e}-changelog`,align:"center",render:e=>e.changeLogUrl&&(0,P.jsx)(ye,{href:e.changeLogUrl,target:"_blank",children:(0,P.jsx)(qd,{content:"controllers.index.detail.updatesItemChangeLogLink"})})},{width:"10%",key:`${e}-update-status`,align:"center",render:e=>-1!==n.indexOf(e.key)&&this.props.isUpdating&&(0,P.jsx)(fD,{})}]},this.getListData=()=>{const{assets:e,smartUpdatesInProgress:t,isUpdating:n}=this.props;return e.map((e=>Object.assign({key:e.slug,disabled:n||t},e)))}}render(){const e=this.getListData(),{getSelection:t,setSelection:n,isCollapsed:s,assets:i,hideMassCheckbox:a,type:r}=this.props,o=r===vp?"controllers.index.detail.updatesPluginsTitle":"controllers.index.detail.updatesThemesTitle";return e.length>0?(0,P.jsx)(Pa,{collapsed:s,collapsible:!0,title:(0,P.jsx)(qd,{content:o,params:{updates:e.length,all:i.length}}),children:(0,P.jsx)(Qr,{className:a?"hided-mass-checkbox":"",columns:this.getColumns(),data:e,selection:t(),onSelectionChange:e=>n(e)})}):null}}AF.propTypes={isCollapsed:We().bool.isRequired,type:We().string.isRequired,assets:We().array.isRequired,isUpdating:We().bool.isRequired,smartUpdatesInProgress:We().bool.isRequired,hideMassCheckbox:We().bool.isRequired,getSelection:We().func.isRequired,setSelection:We().func.isRequired};const EF=AF;class RF extends M.Component{constructor(){super(...arguments),this.getColumns=()=>{const e="update-instances-",{core:{version:t,availableVersion:n},getSelection:s,isUpdating:i}=this.props,a=s();return[{key:`${e}title`,width:"45%",title:(0,P.jsx)(qd,{content:"list.instances.name"}),render:e=>(0,P.jsx)(ei,{children:e.title})},{key:`${e}version`,width:"20%",title:(0,P.jsx)(qd,{content:"list.instances.versions"}),render:()=>(0,P.jsxs)(ei,{children:[t," ","→"," ",n]})},{key:`${e}-update-blank-column`,width:"25%",align:"center",render:()=>this.renderRestorePoint()},{key:`${e}-update-status`,width:"10%",align:"center",render:e=>i&&-1!==a.indexOf(e.key)&&(0,P.jsx)(fD,{})}]},this.getListData=()=>{const{instanceId:e,instanceName:t,core:n,isUpdating:s,smartUpdatesInProgress:i}=this.props,a=[];return n.availableVersion&&a.push({key:e.toString(),disabled:s||i,title:t}),a},this.renderRestorePoint=()=>{var e;const{isUpdating:t,smartUpdatesInProgress:n,getMakeRestorePoint:s,setMakeRestorePoint:i,core:a}=this.props;return(null===(e=null==a?void 0:a.restorePoint)||void 0===e?void 0:e.available)?(0,P.jsxs)("div",{children:[(0,P.jsx)(ut,{"data-test-id":"make-snapshot-checkbox",disabled:t||n,checked:s(),onChange:e=>i(e),children:(0,P.jsx)(qd,{content:"controllers.index.detail.updatesRestorePoint"})})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info"}),placement:"top-right",children:(0,P.jsx)(qd,{content:"snapshot-confirmation.updatesDescription"})})]},"restorePointItem"):null}}render(){const e=this.getListData(),{getSelection:t,setSelection:n,isCollapsed:s,hideMassCheckbox:i}=this.props;return e.length>0?(0,P.jsx)(Pa,{collapsed:s,collapsible:!0,title:(0,P.jsx)(qd,{content:"controllers.index.detail.updatesInstancesTabHeader"}),children:(0,P.jsx)(Qr,{"data-test-id":"core-update-list",className:i?"hided-mass-checkbox":"",columns:this.getColumns(),data:e,selection:t(),onSelectionChange:e=>n(e)})}):null}}RF.propTypes={instanceId:We().number.isRequired,instanceName:We().string.isRequired,core:We().shape({version:We().string,availableVersion:We().string,restorePoint:We().shape({available:We().bool.isRequired})}),getSelection:We().func.isRequired,setSelection:We().func.isRequired,setMakeRestorePoint:We().func.isRequired,getMakeRestorePoint:We().func.isRequired,isCollapsed:We().bool.isRequired,hideMassCheckbox:We().bool.isRequired,isUpdating:We().bool.isRequired,smartUpdatesInProgress:We().bool.isRequired};const UF=RF;class NF extends M.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.setState((e=>({showPopover:!e.showPopover}))),this.getPopoverContent=()=>{const{isPermissionDenied:e,wordPressToolkitLiteEdition:t,purchaseDeluxeUrl:n,purchaseWordPressToolkitUrl:s,upgradePleskUrl:i,installationType:a,uatAction:r,panelUpdateRequired:o,updatePleskUrl:l,isSmartPhpUpdates:c}=this.props;return e?(0,P.jsx)(qd,{content:"premiumFeature.permissionDenied"}):UM(a)&&t&&o?(0,P.jsx)(qd,{content:"premiumFeature.wordPressToolkitFullVersionAndPleskUpdateRequired",params:{purchaseDeluxeLicenseLink:(0,P.jsx)("a",{href:n,target:"_blank",onClick:()=>Rv(r),children:(0,P.jsx)(qd,{content:"premiumFeature.purchaseDeluxeLicenseLink"})}),purchaseWordPressToolkitLink:(0,P.jsx)("a",{href:s,target:"_blank",onClick:()=>Rv(r),children:(0,P.jsx)(qd,{content:"premiumFeature.purchaseWordPressToolkitLink"})}),upgradePleskLink:(0,P.jsx)("a",{href:i,target:"_blank",children:(0,P.jsx)(qd,{content:"premiumFeature.upgradePleskLink"})}),updatePleskLink:(0,P.jsx)("a",{href:l,target:"_blank",children:(0,P.jsx)(qd,{content:"premiumFeature.updatePleskLink"})})}}):UM(a)&&t?(0,P.jsx)(qd,{content:"premiumFeature.wordPressToolkitFullVersionAndDeluxeLicenseRequired",params:{purchaseDeluxeLicenseLink:(0,P.jsx)("a",{href:n,target:"_blank",onClick:()=>Rv(r),children:(0,P.jsx)(qd,{content:"premiumFeature.purchaseDeluxeLicenseLink"})}),purchaseWordPressToolkitLink:(0,P.jsx)("a",{href:s,target:"_blank",onClick:()=>Rv(r),children:(0,P.jsx)(qd,{content:"premiumFeature.purchaseWordPressToolkitLink"})}),upgradePleskLink:(0,P.jsx)("a",{href:i,target:"_blank",children:(0,P.jsx)(qd,{content:"premiumFeature.upgradePleskLink"})})}}):UM(a)&&o?(0,P.jsx)(qd,{content:"premiumFeature.pleskUpdateRequired"}):UM(a)?(0,P.jsx)(qd,{content:"premiumFeature.descriptionForPlesk"}):c?(0,P.jsx)(qd,{content:"premiumFeature.smartPhpUpdatesDescription"}):(0,P.jsx)(qd,{content:"premiumFeature.description"})},this.getPopoverActions=()=>{const{purchaseDeluxeUrl:e,premiumFeaturesUrl:t,uatAction:n,wordPressToolkitLiteEdition:s,installationType:i,installationId:a,upgradePleskUrl:r,panelUpdateRequired:o,updatePleskUrl:l}=this.props;if(UM(i)&&o)return(0,P.jsx)(Be,{component:"a",href:l,target:"_blank",intent:"success",children:(0,P.jsx)(qd,{content:"premiumFeature.updatePleskButton"})});const c=UM(i)&&s?r:e;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Nv,{purchaseLicenseUrl:c,uatAction:n,onTogglePopover:this.handleTogglePopover,installationId:a,children:(0,P.jsx)(qd,{content:"premiumFeature.purchaseButton"})}),t&&(0,P.jsx)(Be,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,P.jsx)(qd,{content:"premiumFeature.discoverAllPremiumFeaturesButton"})})]})},this.getPopover=()=>{const{installationType:e,panelUpdateRequired:t,baseClassName:n}=this.props,{showPopover:s}=this.state;return(0,P.jsx)(Fs,{visible:s,width:"xs",onClose:this.handleTogglePopover,target:(0,P.jsx)(ye,{onClick:this.handleTogglePopover,icon:"lock-closed"}),children:(0,P.jsxs)(tr,{className:`${n}__popover-content`,children:[(0,P.jsxs)(ir,{children:[(0,P.jsx)(be,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,P.jsx)(ei,{children:UM(e)&&t?(0,P.jsx)(qd,{content:"premiumFeature.pleskUpdateRequiredTitle"}):(0,P.jsx)(qd,{content:"premiumFeature.title"})})]}),(0,P.jsx)(sr,{children:this.getPopoverContent()}),(0,P.jsx)(nr,{children:this.getPopoverActions()})]})})},this.state={showPopover:!1}}render(){const{applicable:e,className:t,baseClassName:n,children:s}=this.props;return e?(0,P.jsx)("span",{className:E()(n,t),children:s}):(0,P.jsxs)("span",{className:E()(n,t),children:[this.getPopover()," ",s]})}}NF.defaultProps={baseClassName:`${Rp}premium-feature`};const FF=mc((e=>({purchaseDeluxeUrl:e.app.urls.purchaseDeluxeUrl,purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,panelUpdateRequired:e.app.options.panelUpdateRequired,updatePleskUrl:e.app.urls.updatePleskUrl,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isPermissionDenied:!e.app.options.isAdmin||e.app.options.isReseller})),null,null,{forwardRef:!0})(NF),YF=({smartUpdatesOn:e,isUpdating:t,isRefreshing:n,onRefresh:s,openUpdateSettingsForm:i,toggleSmartUpdatesSwitch:a,isMultisite:r,smartUpdatesInProgress:o,isSmartUpdatesSwitching:l,isSmartUpdatesUnpaid:c,isSmartUpdatesDisabled:u,showAutoUpdates:d,showSmartUpdates:p,installationId:h,installationType:m,installationFeatures:f})=>{const g=e?!1===t&&!1===o:!1===t&&!1===r&&!1===c&&!u;return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"refresh",disabled:n||t||o,onClick:s,tooltip:(0,P.jsx)(qd,{content:"controllers.index.detail.hintRefreshButton"}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.refreshButton"})})}),d&&(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{"data-test-id":"update-settings-button",onClick:i,disabled:n||t||o,ghost:!0,icon:"gear",children:(0,P.jsx)(qd,{content:"controllers.index.detail.updateSettingsButton"})})}),(0,P.jsx)(ui,{}),(()=>{var t,n;if(!d||!p)return null;const s=(0,P.jsx)(fl,{"data-test-id":"updates-drawer-smart-update",checked:e,disabled:!1===g,onChange:e=>a(e),loading:l});return r?(0,P.jsx)(Ii,{title:"Right Group",children:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"controllers.index.detail.updatesSmartUpdatesAreUnavailable"})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:bM("circle-info")}),placement:"top-right",children:(0,P.jsx)(qd,{content:"controllers.index.detail.updatesSmartUpdatesAreUnavailableHint"})})," ",s]})}):(0,P.jsx)(Ii,{title:"Right Group",children:(0,P.jsxs)(FF,{uatAction:"CLICK_LICENSE_PURCHASE_FROM_UPDATE_FORM",installationId:h,installationType:m,applicable:!0===(null===(n=null===(t=null==f?void 0:f.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.applicable),children:[(0,P.jsx)(qd,{content:"controllers.index.detail.updatesSmartUpdates"})," ",s,(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.description"})})]})})})()]})},HF=({isOpen:e,smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,shortInstanceUrl:i,smartUpdatesCloneUrl:a,onClose:r,onUpdate:o,onDiscard:l,instanceId:c,baseClassName:u=`${Rp}smart-update-results-drawer`})=>{const[d,p]=(0,M.useState)(!1),[h,m]=(0,M.useState)(!1);return(0,P.jsx)(er,{title:(0,P.jsx)(qd,{content:"smartUpdateResultsDrawer.title"}),subtitle:i,isOpen:e,onClose:r,size:"lg","data-type":"smart-update-results",className:u,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{"data-test-id":"apply-smart-update",intent:"primary",onClick:()=>p(!0),size:"lg",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.submitButtons.buttonApply"})}),placement:"bottom",visible:d,onClose:()=>p(!1),children:[(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updateConfirmationDialog.description",component:"p"}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>{p(!1),o()},"data-test-id":"confirm-apply-smart-update",intent:"primary",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updateConfirmationDialog.buttonOk"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>p(!1),children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.updateConfirmationDialog.buttonCancel"})})})]})]},"apply-button"),(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{"data-test-id":"discard-smart-update",onClick:()=>m(!0),size:"lg",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.submitButtons.buttonDiscard"})}),placement:"bottom",visible:h,onClose:()=>m(!1),children:[(0,P.jsx)(qd,{content:"updates.smartUpdates.results.discardConfirmationDialog.description",component:"p"}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>{m(!1),l()},"data-test-id":"confirm-discard-smart-update",intent:"danger",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.discardConfirmationDialog.buttonOk"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>m(!1),children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.discardConfirmationDialog.buttonCancel"})})})]})]},"discard-button")]},children:(0,P.jsx)(AN,{smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:a,instanceId:c,isPublic:!1})})};class BF extends M.Component{constructor(e){super(e),this.handleToggleSmartUpdatePromoPopover=()=>this.setState((e=>({showSmartUpdatePromoPopover:!e.showSmartUpdatePromoPopover}))),this.getSmartUpdatePromoPopover=()=>{const{showSmartUpdatePromoPopover:e}=this.state,{uatActions:t,smartUpdateFeatureUpgradeLink:n,baseClassName:s}=this.props;return(0,P.jsxs)(Fs,{visible:e,target:(0,P.jsx)(ye,{className:`${s}__why-link`,onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Rv(t.showPopover)},children:(0,P.jsx)(qd,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.popoverTrigger`,fallback:"%%fallback%%",params:{fallback:(0,P.jsx)(qd,{content:"updatesSmartUpdatePromo.default.popoverTrigger"})}})}),onClose:this.handleToggleSmartUpdatePromoPopover,className:`${s}__popover`,children:[(0,P.jsx)(qd,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.popoverText`,fallback:"%%fallback%%",params:{fallback:(0,P.jsx)(qd,{content:"updatesSmartUpdatePromo.default.popoverText"})}}),(0,P.jsxs)("div",{className:`${s}__popover__button-group`,children:[(0,P.jsx)(Be,{component:"a",href:n,target:"_blank",onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Rv(t.clickOpenStoreButton)},className:`${s}__popover__open-store-button`,intent:"primary",children:(0,P.jsx)(qd,{content:"updatesSmartUpdatePromoPopover.openStoreButton"})}),(0,P.jsx)(ye,{onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Rv(t.clickPopoverCloseButton)},className:`${s}__popover__close-link`,children:(0,P.jsx)(qd,{content:"updatesSmartUpdatePromoPopover.closeLink"})})]})]})},this.state={showSmartUpdatePromoPopover:!1}}getSmartUpdatePromoText(){const e={popover:this.getSmartUpdatePromoPopover()},t=(0,P.jsx)(qd,{content:"updatesSmartUpdatePromo.default.text",params:e});return(0,P.jsx)(qd,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.text`,params:Object.assign(Object.assign({},e),{defaultText:t}),fallback:"%%defaultText%%"})}render(){const{isOpen:e,onClose:t,smartUpdateFeatureUpgradeLink:n,baseClassName:s,publicUrl:i,uatActions:a}=this.props;return e?(0,P.jsxs)("div",{className:s,children:[(0,P.jsx)("span",{className:`${s}__close-button`,onClick:t}),(0,P.jsx)(hi,{image:(0,P.jsx)(be,{size:"64",src:`${i}images/smart-update-promo-calendar.svg`}),children:(0,P.jsxs)(ai,{sm:2,gap:"md",children:[(0,P.jsx)(ri,{sm:10,children:this.getSmartUpdatePromoText()}),(0,P.jsx)(ri,{sm:2,children:(0,P.jsx)(Be,{component:"a",href:Uv(n),target:"_blank",className:`${s}__try-now-button`,onClick:()=>Rv(a.clickTryNowButton),children:(0,P.jsx)(qd,{content:"updatesSmartUpdatePromo.tryNowButton"})})})]})})]}):null}}BF.defaultProps={smartUpdatePromoCustomTextKey:null,baseClassName:`${Rp}smart-update-promo`};const VF=mc((e=>({smartUpdatePromoCustomTextKey:e.app.options.smartUpdatePromoCustomTextKey,smartUpdateFeatureUpgradeLink:e.app.urls.featuresBuyLinks[jp],publicUrl:e.app.urls.publicUrl})))(BF),$F=e=>{var t,n,s;return!!(null===(t=e.core)||void 0===t?void 0:t.availableVersion)||(null===(n=e.plugins)||void 0===n?void 0:n.length)>0||(null===(s=e.themes)||void 0===s?void 0:s.length)>0},WF={selectionInstances:[],selectionPlugins:[],selectionThemes:[]},zF={isUpdating:!1,isRefreshing:!1,checkUpdatesTaskId:null,updateTaskId:null,backgroundTask:null,showTasksDetails:!1,isSmartUpdatesSwitching:!1,isSelectedAllUpdates:!1,selectionInstances:[],selectionPlugins:[],selectionThemes:[],makeRestorePoint:!0,showSmartUpdatePromoBanner:!1,showSmartUpdateResults:!1,isInitialDataLoading:!0,isConfirmationVisible:!1,smartUpdateResults:null,isSmartUpdateResultsLoading:!1};class qF extends M.Component{constructor(e){var t,n;super(e),this.handleUpdateSmartUpdateFeatureStatus=e=>{var t,n;this.setState({isSmartUpdateEnabled:!0===(null===(n=null===(t=e.installation.features.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.status)})},this.handleLoadData=()=>{const{installation:{id:e}}=this.props;this.setState({isInitialDataLoading:!0}),this.props.instancesActions.fetchAvailableUpdates([e]).then((t=>{const n=t.find((t=>t.id===e));this.setState({isInitialDataLoading:!1,showSmartUpdatePromoBanner:n&&this.isSmartUpdatePromoBannerVisible(n)},this.handleOnUpdateReceived)})).catch((()=>{this.setState({isInitialDataLoading:!1})}))},this.handleOpen=()=>this.setState(Object.assign({},zF)),this.handleOnUpdateReceived=()=>{const{updateData:{tasks:{check:e,update:t}},isOpen:n}=this.props,s=null==e?void 0:e.id,i=null==t?void 0:t.id,a=null==t?void 0:t.code;e&&this.setState({checkUpdatesTaskId:s}),t&&this.setState({updateTaskId:i}),i&&a?this.fetchAndProcessExistentUpdateTask(i,a):s?this.fetchAndProcessExistentCheckUpdateTask(s):!this.hasUpdates()&&n&&this.isLastCheckUpdateTimestampInvalid()&&this.handleCheckUpdates(),this.dispatchSmartUpdatePromoUAT()},this.isLastCheckUpdateTimestampInvalid=()=>{const{updateData:e}=this.props;return e&&e.lastCheckUpdateTimestamp&&(new Date).getTime()-1e3*e.lastCheckUpdateTimestamp>36e5},this.fetchAndProcessExistentUpdateTask=(e,t)=>{const{backgroundTasksActions:{fetchBackgroundTask:n},onAddDrawerSuccessMessage:s}=this.props;n(ig.getTaskData,e,t).then((e=>{if(null===e)return this.setState({isUpdating:!1}),void(this.state.showSmartUpdateResults||this.handleCheckUpdates());qD(e)||this.isInstanceUpdatedInMassUpdate(e)?this.handleOnCompleteBackGroundUpdateTask(e):this.setState({updateTaskId:e.id,isUpdating:!0},(()=>{e.code!==sS&&s(e.title)}))}))},this.fetchAndProcessExistentCheckUpdateTask=e=>{const{backgroundTasksActions:{fetchBackgroundTask:t}}=this.props;t(ig.getTaskData,e,hD).then((e=>{null!==e?qD(e)?this.handleOnCompleteBackGroundCheckUpdateTask(e):this.setState({checkUpdatesTaskId:e.id,isRefreshing:!0}):this.setState({isRefreshing:!1,checkUpdatesTaskId:null})}))},this.dispatchSmartUpdatePromoUAT=()=>this.state.showSmartUpdatePromoBanner&&Rv("SHOW_UPDATES_DRAWER_SMART_UPDATE_PROMO"),this.isSmartUpdatePromoBannerVisible=e=>{const{installation:{installationType:t,features:{updates:n}},showSmartUpdatePromo:s,isSmartUpdatePromoAvailableForUpdatesScreen:i}=this.props;return!!(UM(t)&&$F(e)&&s)&&(!!i||n.smart.promoAvailable)},this.handleUpdateBackgroundTask=e=>{const{updateTaskId:t}=this.state;if(!t)return;const n=XD(t,e);if(n){if(n.code===sS&&n.publicParams.currentlyUpdatingInstallationId!==this.props.installation.id&&!n.publicParams.successfullyUpdatedInstallationsIds.includes(this.props.installation.id))return void this.setState({isUpdating:!1});this.setState((e=>({backgroundTask:n,showTasksDetails:!e.showSmartUpdateResults&&n.code!==sS}))),this.handleOnCompleteBackGroundUpdateTask(n)}},this.handleCheckUpdateBackgroundTask=e=>{const{checkUpdatesTaskId:t,backgroundTask:n}=this.state;if(!t)return;const s=XD(t,e);s&&n!==s&&(this.setState({backgroundTask:s}),this.handleOnCompleteBackGroundCheckUpdateTask(s))},this.handleLoadSmartUpdateResults=()=>{const{isSmartUpdateResultsLoading:e}=this.state;if(e)return;const{instancesActions:{getSmartUpdateResult:t},installation:{id:n}}=this.props;this.setState({isSmartUpdateResultsLoading:!0}),t(n).then((e=>{this.setState({smartUpdateResults:e,isSmartUpdateResultsLoading:!1})})).catch((()=>{this.setState({smartUpdateResults:null,isSmartUpdateResultsLoading:!1})}))},this.handleShowSmartUpdateResults=e=>{const{updateData:t}=e;if(!t)return;const{smartUpdate:{status:n,taskStatus:s}}=t,{isSmartUpdateResultsLoading:i,smartUpdateResults:a}=this.state,r=this.isSmartUpdateResultsVisible(n,s);!r||a||i||this.handleLoadSmartUpdateResults(),this.setState({isSmartUpdateEnabled:n,showSmartUpdateResults:r})},this.handleOnCompleteBackGroundUpdateTask=e=>{if(!qD(e)&&!this.isInstanceUpdatedInMassUpdate(e))return;const{instancesActions:{instanceUpdateFailed:t},onAddDrawerErrorMessage:n,onAddDrawerSuccessMessage:s,onAddDrawerWarningMessage:i}=this.props;if(e.publicParams.hasOwnProperty("nonBlockError")&&i(e.publicParams.nonBlockError),this.setState({updateTaskId:null,backgroundTask:null,isUpdating:!1}),e.code!==sS&&KD(e))return n(e.errors.join("\n")),void t();if((GD(e)||this.isInstanceUpdatedInMassUpdate(e))&&e.code!==sS)if(e.errors.length){const t=e.errors.map((e=>`- ${e}`)).join("\n");i(`${e.title}\n${t}`)}else s(e.title)},this.handleOnCompleteBackGroundCheckUpdateTask=e=>{if(!qD(e))return;const{onAddDrawerErrorMessage:t,onAddDrawerSuccessMessage:n,onAddDrawerWarningMessage:s}=this.props;if(KD(e))t(e.errors.join("\n"));else if(GD(e))if(this.setState({checkUpdatesTaskId:null,backgroundTask:null,isRefreshing:!1}),e.errors.length){const t=e.errors.map((e=>`- ${e}`)).join("\n");s(`${e.title}\n${t}`)}else n(e.title)},this.isInstanceUpdatedInMassUpdate=e=>e.code===sS&&e.publicParams.successfullyUpdatedInstallationsIds.includes(this.props.installation.id),this.isSmartUpdateResultsVisible=(e=!1,t)=>e&&null!==t&&lN(t),this.handleCheckUpdates=()=>{if(this.state.isRefreshing)return;const{installation:{id:e},instancesActions:{checkUpdates:t}}=this.props;this.setState(Object.assign({isSelectedAllUpdates:!1,backgroundTask:null},WF)),t([e]).then((e=>{const t=e.id;this.setState({isRefreshing:!0,checkUpdatesTaskId:t})})).catch((()=>{}))},this.toggleSmartUpdatesSwitch=e=>{if(this.state.isSmartUpdatesSwitching)return;const{installation:{id:t},instancesActions:{setSmartUpdatesStatus:n},addSuccessMessage:s}=this.props;this.setState({isSmartUpdatesSwitching:!0}),n(t,e).then((e=>{s(e.status?(0,P.jsx)(qd,{content:"features.updates.smart.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.updates.smart.disabledSuccessfully"})),this.state.showSmartUpdateResults&&!e.status&&this.setState({showSmartUpdateResults:e.status}),this.setState({isSmartUpdateEnabled:e.status})})).catch((()=>{})).finally((()=>{this.setState({isSmartUpdatesSwitching:!1})}))},this.getNeedToUpdateAssetsGroupsCount=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props;let s=0;return e.availableVersion&&s++,t.length&&s++,n.length&&s++,s},this.handleUpdate=()=>{var e;const{selectionInstances:t,selectionPlugins:n,selectionThemes:s,makeRestorePoint:i}=this.state,{installation:{id:a},instancesActions:{updateItems:r},updateData:{core:o},onClearDrawerMessages:l,onAddDrawerSuccessMessage:c}=this.props;return l(),this.setState({isUpdating:!0,updateTaskId:null,backgroundTask:null}),r([{installationId:a,core:{update:t.includes(a.toString()),restorePoint:!!(null===(e=o.restorePoint)||void 0===e?void 0:e.available)&&i},plugins:n,themes:s}]).then((e=>{this.setState({updateTaskId:e.id},(()=>c(e.title)))})).catch((()=>{this.setState({isUpdating:!1})})).finally((()=>this.closeSmartUpdateResultsDrawer()))},this.handleSmartUpdate=()=>{const{installation:{id:e},instancesActions:{applySmartUpdate:t},onClearDrawerMessages:n,onAddDrawerSuccessMessage:s}=this.props;return n(),this.setState({isUpdating:!0,updateTaskId:null,backgroundTask:null,showSmartUpdateResults:!1}),t(e).then((e=>{this.setState({updateTaskId:e.id,smartUpdateResults:null},(()=>s(e.title)))})).catch((()=>{this.setState({isUpdating:!1})}))},this.getSelectionInstances=()=>this.state.selectionInstances,this.getSelectionThemes=()=>this.state.selectionThemes,this.getSelectionPlugins=()=>this.state.selectionPlugins,this.getMakeRestorePoint=()=>this.state.makeRestorePoint,this.fixSelections=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props,{selectionInstances:s,selectionThemes:i,selectionPlugins:a}=this.state,r=lp(i,n),o=lp(a,t);s.length>0&&!e.availableVersion&&this.setSelectionInstances([]),r!==i&&this.setSelectionThemes(r),o!==a&&this.setSelectionPlugins(o)},this.checkIsSelectedAllAssetsUpdates=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props,{selectionThemes:s,selectionInstances:i,selectionPlugins:a}=this.state,r=s.length+i.length+a.length;let o=t.length+n.length;e.availableVersion&&o++,this.setState({isSelectedAllUpdates:o===r})},this.setSelectionThemes=e=>this.setState({selectionThemes:e},this.checkIsSelectedAllAssetsUpdates),this.setSelectionPlugins=e=>this.setState({selectionPlugins:e},this.checkIsSelectedAllAssetsUpdates),this.setSelectionInstances=e=>this.setState({selectionInstances:e},this.checkIsSelectedAllAssetsUpdates),this.setMakeRestorePoint=e=>this.setState({makeRestorePoint:e}),this.handleDiscard=()=>{const{installation:{id:e},instancesActions:{discardSmartUpdate:t},onClearDrawerMessages:n,onAddDrawerSuccessMessage:s}=this.props;n(),this.closeSmartUpdateResultsDrawer(),t(e).then((()=>{s("forms.smart-updates.discardedSuccessfully",!0,"discardedSuccessfully")})).catch((()=>{})).finally((()=>{this.setState({smartUpdateResults:null})}))},this.handleSelectAllUpdates=()=>{const{installation:{id:e},updateData:{core:t,plugins:n,themes:s}}=this.props;this.state.isSelectedAllUpdates?this.setState(Object.assign(Object.assign({},WF),{isSelectedAllUpdates:!1})):this.setState({selectionPlugins:n.map((e=>e.slug)),selectionThemes:s.map((e=>e.slug)),selectionInstances:t.availableVersion?[e.toString()]:[],isSelectedAllUpdates:!0})},this.closeSmartUpdateResultsDrawer=()=>this.setState({showSmartUpdateResults:!1}),this.handleDisableSmartUpdatePromo=()=>{this.setState({showSmartUpdatePromoBanner:!1}),this.props.appActions.disableSmartUpdatePromoForUpdatesScreen({instanceId:this.props.installation.id}),Rv("CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_CLOSE_BUTTON")},this.renderSmartUpdatesDrawer=()=>{if(!this.props.updateData)return null;const{updateData:{displayTitle:e,smartUpdate:t},installation:{id:n,url:s},onClose:i}=this.props,{showSmartUpdateResults:a,smartUpdateResults:r}=this.state;return lN(t.taskStatus)&&r?(0,P.jsx)(HF,{isOpen:a,smartUpdatesStatus:r,instanceUrl:s,shortInstanceUrl:e,smartUpdatesCloneInstanceId:r.clone.id,smartUpdatesCloneUrl:r.clone.url,onClose:()=>{this.closeSmartUpdateResultsDrawer(),i()},onUpdate:this.handleSmartUpdate,onDiscard:this.handleDiscard,instanceId:n}):null},this.handleOpenConfirmation=()=>this.setState({isConfirmationVisible:!0}),this.handleCloseConfirmation=()=>this.setState({isConfirmationVisible:!1}),this.isSelectionEmpty=()=>{const{selectionInstances:e,selectionPlugins:t,selectionThemes:n}=this.state;return 0===e.length&&0===t.length&&0===n.length},this.handleSelectAllAndUpdate=()=>{this.handleCloseConfirmation(),this.handleSelectAllUpdates(),setTimeout(this.handleUpdate,100)},this.hasUpdates=()=>{const{updateData:e}=this.props;return!!e&&$F(e)},this.renderSubmitButtonWithConfirmation=()=>{const{isSmartUpdateEnabled:e,isConfirmationVisible:t}=this.state;return(0,P.jsxs)(Fs,{target:this.renderUpdateButtonWithConfirmation(),placement:"bottom",visible:t,onClose:this.handleCloseConfirmation,children:[e?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateConfirmationText",component:"p"}):(0,P.jsx)(qd,{content:"controllers.index.detail.updateConfirmationText",component:"p"}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{intent:"primary",onClick:this.handleSelectAllAndUpdate,children:e?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateConfirmationAccept"}):(0,P.jsx)(qd,{content:"controllers.index.detail.updateConfirmationAccept"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:this.handleCloseConfirmation,children:(0,P.jsx)(qd,{content:"controllers.index.detail.updateConfirmationCancel"})})})]})]},"popover-with-confirmation-to-update-all-items")},this.renderSubmitSimpleButton=e=>{const{isUpdating:t,isSmartUpdateEnabled:n}=this.state;return(0,P.jsx)(Be,{disabled:e,"data-test-id":sv,onClick:this.handleUpdate,state:t?"loading":void 0,intent:"primary",children:n?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateButton"}):(0,P.jsx)(qd,{content:"controllers.index.detail.updateButton"})},sv)},this.renderSubmitButton=()=>{const{installation:{status:{multisite:e}}}=this.props,{isUpdating:t,isRefreshing:n,showSmartUpdateResults:s,isSmartUpdateEnabled:i}=this.state,a=!this.hasUpdates()||s||i&&e||t||n;return!a&&this.isSelectionEmpty()?this.renderSubmitButtonWithConfirmation():this.renderSubmitSimpleButton(a)},this.renderLoadingState=()=>{const{isInitialDataLoading:e}=this.state;return e?(0,P.jsx)(Rn,{}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"updates.smartUpdates.results.loading"})]})},this.renderFailedToLoadUpdateData=()=>(0,P.jsx)(xe,{intent:"danger",children:(0,P.jsx)(qd,{content:"updates.failedToLoad"})}),this.getUpdatesContent=()=>{const{updateData:e,installation:{id:t},openUpdatesType:n}=this.props,{isUpdating:s,isRefreshing:i,showSmartUpdateResults:a}=this.state,{title:r,core:o,plugins:l,themes:c}=e;return i?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"controllers.index.detail.updatesRefreshData"})]}):this.hasUpdates()?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(UF,{instanceId:t,instanceName:r,core:o,getSelection:this.getSelectionInstances,setSelection:this.setSelectionInstances,isCollapsed:n===ix||n===ax,getMakeRestorePoint:this.getMakeRestorePoint,setMakeRestorePoint:this.setMakeRestorePoint,isUpdating:s,smartUpdatesInProgress:a,hideMassCheckbox:s||a}),(0,P.jsx)(EF,{assets:l,type:vp,isCollapsed:n===sx||n===ax,getSelection:this.getSelectionPlugins,setSelection:this.setSelectionPlugins,isUpdating:s,smartUpdatesInProgress:a,hideMassCheckbox:s||a}),(0,P.jsx)(EF,{assets:c,type:bp,isCollapsed:n===sx||n===ix,getSelection:this.getSelectionThemes,setSelection:this.setSelectionThemes,isUpdating:s,smartUpdatesInProgress:a,hideMassCheckbox:s||a})]}):(0,P.jsx)(qd,{content:"controllers.index.detail.updatesNotFound"})},this.getDrawerContent=()=>{var e,t;const{updateData:n,installation:{id:s,installationType:i,features:a},showSmartUpdates:r,onOpenUpdatesSettingsDialog:o}=this.props,{isSmartUpdateEnabled:l,isUpdating:c,isRefreshing:u,showSmartUpdateResults:d,isSmartUpdatesSwitching:p,isSelectedAllUpdates:h,showSmartUpdatePromoBanner:m,isInitialDataLoading:f,isSmartUpdateResultsLoading:g,smartUpdateResults:b}=this.state,v=f||g,y=!f&&!this.props.updateData;if(v||y)return(0,P.jsxs)(P.Fragment,{children:[v&&this.renderLoadingState(),y&&this.renderFailedToLoadUpdateData()]});const{multisite:x,autoUpdate:_}=n,S=r&&a.updates.smart.available;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(VF,{isOpen:m,onClose:this.handleDisableSmartUpdatePromo,uatActions:{showPopover:"SHOW_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER",clickPopoverCloseButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON",clickOpenStoreButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_OPEN_STORE_BUTTON",clickTryNowButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_TRY_NOW_BUTTON"}}),(0,P.jsx)(Pa,{children:(0,P.jsx)(YF,{smartUpdatesOn:l,isUpdating:c,isRefreshing:u,showAutoUpdates:null==_?void 0:_.available,showSmartUpdates:S,onRefresh:this.handleCheckUpdates,isSmartUpdatesUnpaid:this.props.isSmartUpdatesUnpaid,isSmartUpdatesDisabled:!1===(null===(t=null===(e=this.props.updateData)||void 0===e?void 0:e.smartUpdate)||void 0===t?void 0:t.applicable),openUpdateSettingsForm:o,toggleSmartUpdatesSwitch:this.toggleSmartUpdatesSwitch,isMultisite:x,smartUpdatesInProgress:d,isSmartUpdatesSwitching:p,installationId:s,installationType:i,installationFeatures:a})}),!u&&this.getNeedToUpdateAssetsGroupsCount()>1&&(0,P.jsx)(Pa,{children:(0,P.jsx)(Mi,{children:(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(ut,{onChange:this.handleSelectAllUpdates,checked:h,disabled:c||d,children:(0,P.jsx)(qd,{content:"controllers.index.detail.selectAllUpdatesButton"})})})})}),d&&!b&&!g&&(0,P.jsx)(xe,{intent:"danger",children:(0,P.jsx)(qd,{content:"updates.smartUpdates.results.failedToLoad"})}),this.getUpdatesContent()]})};const{installation:{features:s}}=this.props;this.state=Object.assign(Object.assign({},zF),{isSmartUpdateEnabled:!0===(null===(n=null===(t=s.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.status)})}componentDidMount(){this.props.isOpen&&(this.handleOpen(),this.handleLoadData(),this.handleShowSmartUpdateResults(this.props))}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&(this.handleOpen(),this.handleLoadData(),this.handleShowSmartUpdateResults(this.props),this.props.onClearDrawerMessages()),this.props.isOpen&&(this.props.updateData!==e.updateData&&(this.fixSelections(),this.handleShowSmartUpdateResults(this.props)),e.tasks!==this.props.tasks&&(this.handleUpdateBackgroundTask(this.props.tasks),this.handleCheckUpdateBackgroundTask(this.props.tasks))),e.installation!==this.props.installation&&this.handleUpdateSmartUpdateFeatureStatus(this.props)}renderAutoUpdatesSettingsDrawer(){const{installation:{id:e,displayTitle:t},isUpdateSettingsFormOpen:n,onCloseUpdatesSettingsDialog:s,onAddDrawerSuccessMessage:i}=this.props;return(0,P.jsx)(WL,{title:t,subtitle:(0,P.jsx)(qd,{content:"autoUpdatesSettingsDrawer.title"}),isOpen:n,installationId:e,onClose:s,addSuccessMessage:i})}renderUpdateButtonWithConfirmation(){const{isSmartUpdateEnabled:e}=this.state;return(0,P.jsx)(Be,{"data-test-id":iv,intent:"primary",onClick:this.handleOpenConfirmation,size:"lg",children:e?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateButton"}):(0,P.jsx)(qd,{content:"controllers.index.detail.updateButton"})},iv)}render(){const{installation:{displayTitle:e,id:t},isOpen:n,onClose:s,title:i,backButton:a}=this.props,{backgroundTask:r,showTasksDetails:o}=this.state;let l=null;o&&r&&(l=dL(r,(()=>{this.setState({backgroundTask:null})})));const c=i||(0,P.jsx)(qd,{content:"controllers.index.detail.updatesFormSubtitle"});return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(er,{"data-test-id":"updates-drawer-section",title:c,subtitle:e,isOpen:n,onClose:s,backButton:a,"data-type":"updates",progress:l,hideButton:!1,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[this.renderSubmitButton()]},children:[this.props.renderDrawerMessages(),this.getDrawerContent()]}),this.renderAutoUpdatesSettingsDrawer(),this.renderSmartUpdatesDrawer()]})}}qF.propTypes={updateData:We().shape({applicable:We().bool,title:We().string,displayTitle:We().string,lastCheckUpdateTimestamp:We().number,multisite:We().bool,core:We().shape({version:We().string,availableVersion:We().string,restorePoint:We().shape({available:We().bool.isRequired})}),plugins:We().array,themes:We().array,tasks:We().object,autoUpdate:We().shape({available:We().bool}),smartUpdate:We().shape({status:We().bool.isRequired,taskStatus:We().string.isRequired})}),installation:We().shape({id:We().number.isRequired,url:We().string.isRequired,displayTitle:We().string.isRequired,installationType:We().oneOf(Object.values(u)).isRequired,features:We().shape({updates:We().shape({smart:We().shape({available:We().bool.isRequired,status:We().bool,promoAvailable:We().bool.isRequired}).isRequired}).isRequired}).isRequired}).isRequired,isSmartUpdatesUnpaid:We().bool.isRequired,onClose:We().func.isRequired,isOpen:We().bool.isRequired,openUpdatesType:We().string,backButton:We().bool,title:We().oneOfType([We().string,We().object]),showSmartUpdates:We().bool.isRequired,tasks:We().array,backgroundTasksActions:We().shape({fetchBackgroundTask:We().func.isRequired}).isRequired,appActions:We().shape({disableSmartUpdatePromoForUpdatesScreen:We().func.isRequired}).isRequired,instancesActions:We().shape({checkUpdates:We().func.isRequired,updateItems:We().func.isRequired,applySmartUpdate:We().func.isRequired,setSmartUpdatesStatus:We().func.isRequired,discardSmartUpdate:We().func.isRequired,instanceUpdateFinished:We().func.isRequired,instanceUpdateFailed:We().func.isRequired,getInstancesData:We().func.isRequired,fetchAvailableUpdates:We().func.isRequired}).isRequired,showSmartUpdatePromo:We().bool.isRequired,isSmartUpdatePromoAvailableForUpdatesScreen:We().bool.isRequired,isUpdateSettingsFormOpen:We().bool.isRequired,onOpenUpdatesSettingsDialog:We().func.isRequired,onCloseUpdatesSettingsDialog:We().func.isRequired,onAddDrawerSuccessMessage:We().func.isRequired,onAddDrawerErrorMessage:We().func.isRequired,onAddDrawerWarningMessage:We().func.isRequired,onClearDrawerMessages:We().func.isRequired,renderDrawerMessages:We().func.isRequired,addSuccessMessage:We().func.isRequired},qF.defaultProps={title:null,backButton:!1,tasks:null,openUpdatesType:null,updateData:null};const GF=mc(((e,t)=>({updateData:e.updates.find((e=>e.id===t.installation.id)),isSmartUpdatesUnpaid:e.app.unpaidFeatures[jp],assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,showSmartUpdates:e.app.options.showSmartUpdates,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,isSmartUpdatePromoAvailableForUpdatesScreen:e.app.options.isSmartUpdatePromoAvailableForUpdatesScreen})),(e=>({appActions:kb(t,e),instancesActions:kb({checkUpdates:BS,updateItems:lw,applySmartUpdate:cw,getSmartUpdateResult:dw,setSmartUpdatesStatus:LS,discardSmartUpdate:uw,instanceUpdateFinished:Jw,instanceUpdateFailed:Zw,getInstancesData:JS,fetchAvailableUpdates:VS},e),backgroundTasksActions:kb({fetchBackgroundTask:JD},e),addSuccessMessage:kb(Wg,e)})))(kC(qF)),KF=({isOpen:e,onSubmit:t,onClose:n,titleKey:s,descriptionKey:i,buttonYesKey:a,buttonNoKey:r,version:o=null})=>e?(0,P.jsx)(Ea,{isOpen:e,cancelTitle:(0,P.jsx)(qd,{content:r}),title:(0,P.jsx)(qd,{content:s}),buttons:(0,P.jsx)(Be,{"data-test-id":cv,onClick:t,children:(0,P.jsx)(qd,{content:a})}),size:"sm",onClose:n,children:(0,P.jsx)(qd,{content:i,params:{version:o}})}):null;class XF extends M.Component{constructor(e){super(e),this.openRestore=()=>this.setState({isRestoreDialogOpen:!0}),this.openDelete=()=>this.setState({isDeleteDialogOpen:!0}),this.handleCloseRestore=()=>this.setState({isRestoreDialogOpen:!1}),this.handleCloseDelete=()=>this.setState({isDeleteDialogOpen:!1}),this.handleRestoreSnapshot=()=>{this.handleCloseRestore(),this.props.restoreSnapshot(this.props.installationId).then((e=>{e.status===fp&&this.setState({backgroundTaskId:e.data.task.id})}))},this.handleDeleteSnapshot=()=>{const{installationId:e,disableInstances:t,enableInstances:n,deleteSnapshot:s}=this.props;return this.handleCloseDelete(),t([e]),s(e).then((t=>(n([e]),t)))},this.state={isRestoreDialogOpen:!1,isDeleteDialogOpen:!1,backgroundTaskId:null}}componentWillReceiveProps(e){const{backgroundTaskId:t}=this.state;if(!t)return;const n=XD(t,e.tasks);n&&qD(n)&&"task\\restore"===n.code&&this.setState({backgroundTaskId:null},(()=>{this.props.restoreSnapshotFinished(n.publicParams.instanceId).catch((()=>{}))}))}render(){if(!this.props.restorePoint)return null;const{displayTimestamp:e,fullSnapshot:t,message:n,previousVersion:s}=this.props.restorePoint,{baseClassName:i}=this.props;return(0,P.jsxs)("span",{className:i,children:[e," ",(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{icon:"circle-info",ghost:!0}),children:[(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(n||"",Object.assign(Object.assign({},SC.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),!t&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("br",{}),(0,P.jsx)("br",{}),(0,P.jsx)(qd,{content:"controllers.index.detail.snapshotNote"})]})]})," ",(0,P.jsx)(Be,{icon:"refresh",tooltip:(0,P.jsx)(qd,{content:"controllers.index.detail.restorePointRestoreButton"}),"data-test-id":pN,onClick:e=>Xd(e,this.openRestore),ghost:!0})," ",(0,P.jsx)(Be,{icon:"recycle",tooltip:(0,P.jsx)(qd,{content:"controllers.index.detail.restorePointDeleteButton"}),onClick:e=>Xd(e,this.openDelete),ghost:!0}),(0,P.jsx)(KF,{isOpen:this.state.isRestoreDialogOpen,onClose:this.handleCloseRestore,onSubmit:this.handleRestoreSnapshot,buttonYesKey:"controllers.index.detail.snapshotRollback.buttonYes",buttonNoKey:"controllers.index.detail.snapshotRollback.buttonNo",titleKey:"controllers.index.detail.snapshotRollback.title",descriptionKey:s?"controllers.index.detail.snapshotRollback.descriptionVersion":"controllers.index.detail.snapshotRollback.description",version:s}),(0,P.jsx)(KF,{isOpen:this.state.isDeleteDialogOpen,onClose:this.handleCloseDelete,onSubmit:this.handleDeleteSnapshot,buttonYesKey:"controllers.index.detail.snapshotDelete.buttonYes",buttonNoKey:"controllers.index.detail.snapshotDelete.buttonNo",titleKey:"controllers.index.detail.snapshotDelete.title",descriptionKey:"controllers.index.detail.snapshotDelete.description"})]})}}XF.defaultProps={baseClassName:`${Rp}restore-point-item`,restorePoint:null};const QF=mc((e=>({tasks:e.backgroundTasks.tasks})),{restoreSnapshot:WS,restoreSnapshotFinished:qS,deleteSnapshot:GS})(XF);class JF extends M.Component{constructor(){super(...arguments),this.getIcon=()=>{const{showIcon:e,baseClassName:t}=this.props;if(e)return(0,P.jsx)(be,{name:"folder-closed",className:`${t}__file-manager-link`})},this.renderPlesk=()=>{const{installation:{features:{fileManager:e}},children:t}=this.props;return(0,P.jsx)(ye,{href:e.url,icon:this.getIcon(),"data-test-id":uv,children:t})},this.renderCpanel=()=>{const{goToUri:e,installation:{features:{fileManager:t},owner:n},children:s}=this.props;if(!t.url)return null;const i=Bv({link:t.url,inNewWindow:!1,goToUri:e,accountUsername:null==n?void 0:n.login});return(0,P.jsx)(ye,Object.assign({},i,{icon:this.getIcon(),"data-test-id":uv,children:s}))}}render(){const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available&&e.url?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}JF.defaultProps={baseClassName:`${Rp}instance-file-manager`,showIcon:!0};const ZF=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(JF);class eY extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}}}=this.props;return e.backupManagerUrl?(0,P.jsx)(Be,{component:"a",href:e.backupManagerUrl,"data-test-id":pN,children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n}=this.props;if(!e.backupManagerUrl)return null;const s=Bv({link:e.backupManagerUrl,inNewWindow:!0,goToUri:n,accountUsername:t.login});return(0,P.jsx)(Be,Object.assign({component:"a","data-test-id":pN},s,{children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})}))}}render(){const{installation:{features:{backups:e},installationType:t}}=this.props;return e.panelBackupsAvailable&&e.backupManagerUrl?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}const tY=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(eY);class nY extends M.Component{constructor(e){super(e),this.getRemoteInstanceLocation=()=>{const{installation:{installationType:e,server:t,url:n}}=this.props;return BM(e)?n:YM(e)?t:null},this.handleToggleBackupDrawer=()=>this.setState((e=>({showBackupDrawer:!e.showBackupDrawer}))),this.renderRemoteInstanceActions=()=>{const{installation:{id:e},onToggleRemoteInstanceSettings:t,onDetach:n,checkWordPressIntegrityFeatureEnabled:s,onOpenCheckWordPressIntegrityDialog:i}=this.props;return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"detach",children:(0,P.jsx)(Be,{onClick:()=>n([e]),children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteInstance.buttonDetach"})})}),(0,P.jsx)(Ii,{title:"properties",children:(0,P.jsx)(ye,{onClick:t,"data-test-id":uN,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteInstance.linkProperties"})})}),s&&(0,P.jsx)(Ii,{title:"checkWordPressIntegrity",children:(0,P.jsx)(ye,{onClick:()=>i(e),children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteInstance.linkCheckWordPressIntegrity"})})})]})},this.renderRemoteAgentInstanceActions=()=>{const{installation:{id:e},onToggleRemoteAgentInstanceSettings:t,onDetach:n,checkWordPressIntegrityFeatureEnabled:s,onOpenCheckWordPressIntegrityDialog:i}=this.props;return(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"detach",children:(0,P.jsx)(Be,{onClick:()=>n([e]),children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteAgentInstance.buttonDetach"})})}),(0,P.jsx)(Ii,{title:"properties",children:(0,P.jsx)(ye,{onClick:t,"data-test-id":dN,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteAgentInstance.linkProperties"})})}),s&&(0,P.jsx)(Ii,{title:"checkWordPressIntegrity",children:(0,P.jsx)(ye,{onClick:()=>i(e),children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenRemoteAgentInstance.linkCheckWordPressIntegrity"})})})]})},this.renderActions=()=>{const{installation:{domain:e,id:t,installationType:n,features:{backups:s,fileManager:i,malwareScan:a},status:{infected:r}},onOpenCheckWordPressIntegrityDialog:o,checkWordPressIntegrityFeatureEnabled:l}=this.props;return BM(n)?this.renderRemoteAgentInstanceActions():YM(n)?this.renderRemoteInstanceActions():r?(0,P.jsxs)(Mi,{children:[a.available&&a.url&&(0,P.jsx)(Ii,{title:"malwareScan",children:(0,P.jsx)(Be,{component:"a",href:a.url,children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.buttonMalwareScan"})})})})||null,i.available&&i.url&&(0,P.jsx)(Ii,{title:"fileManager",children:(0,P.jsx)(ZF,{installation:this.props.installation,showIcon:!1,children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.linkFileManager"})})})||null,(null==e?void 0:e.url)&&(0,P.jsx)(Ii,{title:"domain",children:(0,P.jsx)(ye,{href:null==e?void 0:e.url,children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.linkDomain"})})})||null,l&&(0,P.jsx)(Ii,{title:"checkWordPressIntegrity",children:(0,P.jsx)(ye,{onClick:()=>o(t),children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.linkCheckWordPressIntegrity"})})})]}):(0,P.jsxs)(Mi,{children:[s.panelBackupsAvailable&&!s.wptBackupsAvailable&&(0,P.jsx)(Ii,{title:"restore",children:(0,P.jsx)(tY,{installation:this.props.installation})})||null,s.wptBackupsAvailable&&(0,P.jsx)(Ii,{title:"restore",children:(0,P.jsx)(Be,{component:"a",onClick:this.handleToggleBackupDrawer,"data-test-id":pN,children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})})})||null,i.available&&i.url&&(0,P.jsx)(Ii,{title:"fileManager",children:(0,P.jsx)(ZF,{installation:this.props.installation,showIcon:!1,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.linkFileManager"})})})||null,(null==e?void 0:e.url)&&(0,P.jsx)(Ii,{title:"domain",children:(0,P.jsx)(ye,{href:null==e?void 0:e.url,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.linkDomain"})})})||null,l&&(0,P.jsx)(Ii,{title:"checkWordPressIntegrity",children:(0,P.jsx)(ye,{onClick:()=>o(t),children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.linkCheckWordPressIntegrity"})})})]})},this.state={showBackupDrawer:!1}}render(){const{installation:{errorMessage:e,features:{restorePoint:t},id:n,path:s,status:{alive:i,infected:a}},disableInstances:r,enableInstances:o,baseClassName:l}=this.props;if(i&&!a)return null;const c=this.getRemoteInstanceLocation();return a?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.description",params:{refreshIcon:(0,P.jsx)(be,{name:"refresh"})}})}),(0,P.jsx)(dl,{className:`${l}__panel`,children:(0,P.jsxs)(Pa,{className:`${l}__section`,children:[c&&(0,P.jsx)(la,{className:`${l}__section-item`,title:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.remoteInstanceLocation"}),children:c})||null,(0,P.jsx)(la,{className:`${l}__section-item`,title:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.path"}),children:s})]})}),this.renderActions()]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(mi,{children:[(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.filesFound"}),":"]}),(0,P.jsx)(dl,{className:`${l}__panel`,children:(0,P.jsxs)(Pa,{className:`${l}__section`,children:[c&&(0,P.jsx)(la,{className:`${l}__section-item`,title:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.remoteInstanceLocation"}),children:c})||null,(0,P.jsx)(la,{className:`${l}__section-item`,title:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.path"}),children:s})]})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.description"})}),e&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{className:`${l}__error-details`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.errorDetails"})}),children:e})||null,t&&t.restorePointTimestamp&&(0,P.jsx)(Pa,{children:(0,P.jsx)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"controllers.index.detail.restorePointTitle"}),children:(0,P.jsx)(QF,{installationId:n,restorePoint:t,disableInstances:r,enableInstances:o})})})||null,this.renderActions(),(0,P.jsx)(yL,{installation:this.props.installation,onClose:this.handleToggleBackupDrawer,isOpen:this.state.showBackupDrawer})]})}}nY.defaultProps={checkWordPressIntegrityFeatureEnabled:!1,baseClassName:`${Rp}problem-instance-details`};const sY=nY;class iY extends M.Component{constructor(e){super(e),this.clearMessages=()=>this.setState({messages:[]}),this.clearMessage=e=>{this.setState((t=>({messages:t.messages.filter((({key:t})=>t!==e))})))},this.setMessages=e=>this.setState((t=>{const n=[...e],s=e.map((e=>e.key));return t.messages.forEach((e=>{s.length&&-1===s.indexOf(e.key)&&n.push(e)})),{messages:n}})),this.addSuccessMessage=(e,t,n=sp(4))=>{this.setMessages([{key:n,status:yp,message:e,isTranslate:t}])},this.addErrorMessage=(e,t,n=sp(4))=>{this.setMessages([{key:n,status:_p,message:e,isTranslate:t}])},this.addWarningMessage=(e,t,n=sp(4))=>{this.setMessages([{key:n,status:xp,message:e,isTranslate:t}])},this.state={messages:[]}}renderMessage(){const{messages:e}=this.state;return e.length?e.map((({key:e,status:t,message:n,icon:s=null,isTranslate:i=!1})=>{if(!t||!n)return null;const a=i?(0,P.jsx)(qd,{content:n}):(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(n,Object.assign(Object.assign({},SC.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),r=t===gp?_p:t;return(0,P.jsxs)(xe,{intent:r,className:"wpt-drawer-alert",onClose:()=>this.clearMessage(e),children:[s&&(0,P.jsxs)(P.Fragment,{children:[s," "]}),a]},sp(4))})):null}render(){return(0,P.jsxs)(er,Object.assign({},this.props,{children:[this.renderMessage(),(0,M.cloneElement)(this.props.children,{setMessages:this.setMessages,clearMessages:this.clearMessages,addSuccessMessage:this.addSuccessMessage,addErrorMessage:this.addErrorMessage,addWarningMessage:this.addWarningMessage})]}))}}const aY=iY;class rY extends M.Component{constructor(e){super(e),this.loadProperties=()=>this.props.getRemoteServerInstallationProperties(this.props.installation.id).then((e=>{this.setState({values:{remoteInstanceIp:e.ip||"",remoteInstanceSystemUser:e.systemUser||"",remoteInstancePhpBin:e.php.bin||"",remoteInstancePhpIni:e.php.ini||""}})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})})),this.handleSubmit=e=>{this.setState({isSending:!0});const{installation:{id:t},updateRemoteInstanceProperties:n}=this.props;this.drawer.clearMessages(),n(t,e).then((e=>{const t=e.data;e.status===gp?(e.message&&this.drawer.addErrorMessage(e.message),t&&t.formErrors&&this.setState({errors:t.formErrors})):(this.drawer.addSuccessMessage("list-ui.instances.forms.remoteInstanceProperties.successfullySaved",!0,"remoteInstancePropertiesSuccessfullySaved"),this.setState({errors:null}))})).catch((()=>{})).finally((()=>{this.setState({isSending:!1})}))},this.handleRedetectInstanceProperties=()=>{this.setState({isLoading:!0});const{installation:{id:e},redetectRemoteInstanceProperties:t}=this.props;this.drawer.clearMessages(),t(e).then((e=>{e.status===gp?e.message&&this.drawer.addErrorMessage(e.message):(this.setState({errors:null}),this.loadProperties().then((()=>{this.drawer.addSuccessMessage("list-ui.instances.forms.remoteInstanceProperties.successfullyRedetected",!0,"remoteInstancePropertiesSuccessfullyRedetected")})))})).catch((()=>{this.setState({isLoading:!1})}))},this.state={values:{remoteInstanceIp:"",remoteInstanceSystemUser:"",remoteInstancePhpBin:"",remoteInstancePhpIni:""},errors:null,isSending:!1,isLoading:!0}}componentDidMount(){this.loadProperties()}render(){const{values:e,errors:t,isSending:n,isLoading:s}=this.state,{onToggleRemoteInstancePropertiesForm:i,installation:a}=this.props;return(0,P.jsx)(aY,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.drawerTitle"}),subtitle:a.displayTitle,isOpen:!0,onClose:i,"data-test-id":Jb,size:"sm","data-type":Jb,form:s?null:{state:n?"submit":void 0,submitButton:{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.submitButton"}),"data-test-id":"remote-instance-submit-button"},cancelButton:{onClick:i},applyButton:!1,onSubmit:this.handleSubmit,values:e,errors:t,vertical:!0,"data-test-id":"remote-instance-properties-form"},ref:e=>this.drawer=e,children:s?(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.redetectingInstanceProperties"})}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("div",{children:(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.headDescription"})})}),(0,P.jsx)("div",{style:{margin:"8px 0 8px 0"},children:(0,P.jsx)(Be,{onClick:this.handleRedetectInstanceProperties,"data-test-id":"remote-instance-redetect-button",icon:"reload",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.redetectInstanceProperties"})})}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstanceIp"}),"data-test-id":"remote-instance-field-ip",name:"remoteInstanceIp",size:"lg",required:!0}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstanceSystemUser"}),"data-test-id":"remote-instance-field-system-user",name:"remoteInstanceSystemUser",size:"lg",required:!0}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstancePhpBin"}),"data-test-id":"remote-instance-field-php-bin",name:"remoteInstancePhpBin",size:"lg",required:!0}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstancePhpIni"}),"data-test-id":"remote-instance-field-php-ini",name:"remoteInstancePhpIni",size:"lg",required:!0})]})},"remote-instance-properties-drawer")}}rY.propTypes={installation:We().shape({id:We().number.isRequired,displayTitle:We().string.isRequired}).isRequired,updateRemoteInstanceProperties:We().func.isRequired,redetectRemoteInstanceProperties:We().func.isRequired,onToggleRemoteInstancePropertiesForm:We().func.isRequired,getRemoteServerInstallationProperties:We().func.isRequired};const oY=mc(null,{updateRemoteInstanceProperties:Dw,redetectRemoteInstanceProperties:Mw,getRemoteServerInstallationProperties:Ok})(rY);class lY extends M.Component{constructor(e){super(e),this.loadProperties=()=>this.props.getRemoteAgentInstallationProperties(this.props.installation.id).then((e=>{this.setState({values:{pluginUrl:e.pluginUrl||"",token:e.token||"",ip:e.ip||""}})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})})),this.handleSubmit=e=>{this.setState({isSending:!0});const{installation:{id:t},updateRemoteAgentInstanceProperties:n}=this.props;this.drawer.clearMessages(),n(t,e).then((e=>{const t=e.data;e.status===gp?(e.message&&this.drawer.addErrorMessage(e.message),t&&t.formErrors&&this.setState({errors:t.formErrors})):(this.drawer.addSuccessMessage("list-ui.instances.forms.remoteAgentInstanceProperties.successfullySaved",!0,"remoteAgentInstancePropertiesSuccessfullySaved"),this.setState({errors:null}))})).catch((()=>{})).finally((()=>{this.setState({isSending:!1})}))},this.state={values:{pluginUrl:"",token:"",ip:""},errors:null,isSending:!1,isLoading:!0}}componentDidMount(){this.loadProperties()}render(){const{values:e,errors:t,isSending:n,isLoading:s}=this.state,{onToggleRemoteAgentInstancePropertiesForm:i,installation:a}=this.props;return(0,P.jsx)(aY,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.drawerTitle"}),subtitle:a.displayTitle,isOpen:!0,onClose:i,"data-test-id":ev,size:"sm","data-type":ev,form:s?null:{state:n?"submit":void 0,onSubmit:this.handleSubmit,submitButton:{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.submitButton"}),"data-test-id":"remote-agent-instance-submit-button"},cancelButton:{onClick:i},applyButton:!1,values:e,errors:t,vertical:!0},ref:e=>this.drawer=e,children:s?(0,P.jsx)(Rn,{}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("div",{children:(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.headDescription"})})}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldPluginUrl"}),"data-test-id":"remote-agent-instance-field-plugin-url",name:"pluginUrl",size:"lg",required:!0}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldToken"}),"data-test-id":"remote-agent-instance-field-token",name:"token",size:"lg",required:!0}),(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldIp"}),"data-test-id":"remote-agent-instance-field-ip",name:"ip",size:"lg"})]})},"remote-agent-instance-properties-drawer")}}lY.propTypes={installation:We().shape({id:We().number.isRequired,displayTitle:We().string.isRequired}).isRequired,updateRemoteAgentInstanceProperties:We().func.isRequired,onToggleRemoteAgentInstancePropertiesForm:We().func.isRequired,getRemoteAgentInstallationProperties:We().func.isRequired};const cY=mc(null,{updateRemoteAgentInstanceProperties:Pw,getRemoteAgentInstallationProperties:Ik})(lY);class uY extends M.Component{constructor(e){super(e),this.getContent=()=>{const{url:e,urlToSynchronize:t,isLoading:n}=this.state;return n?(0,P.jsx)(Rn,{}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.description"})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.currentSiteUrl"}),children:(0,P.jsx)("a",{href:e,children:e})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.siteUrlAfterSynchronization"}),children:(0,P.jsx)("a",{href:t,children:t})})]})},this.state={url:void 0,urlToSynchronize:void 0,isInstanceUrlMatchesActualDomainUrl:!1,isLoading:!0}}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}handleLoadData(){this.setState({isLoading:!0}),this.props.getSynchronizeSiteUrlParams(this.props.installationId).then((({data:e})=>{this.setState({url:e?e.url:void 0,urlToSynchronize:e?e.urlToSynchronize:void 0,isInstanceUrlMatchesActualDomainUrl:!!e&&e.isInstanceUrlMatchesActualDomainUrl})})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{isOpen:e,onClose:t,onSynchronizeSiteUrl:n}=this.props,{isInstanceUrlMatchesActualDomainUrl:s,isLoading:i}=this.state;return(0,P.jsx)(Ea,{title:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.title"}),size:"xs",isOpen:e,onClose:t,cancelTitle:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.buttonBack"}),form:{vertical:!0,requiredMark:!1,onSubmit:n,submitButton:{children:(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.buttonSynchronize"}),"data-test-id":"synchronize-site-url-button-synchronize",disabled:s||i,tooltip:s?(0,P.jsx)(qd,{content:"synchronizeSiteUrlDialog.siteUrlMatchesCurrentDomain"}):null}},closable:!0,children:this.getContent()})}}const dY=mc(null,(e=>({getSynchronizeSiteUrlParams:t=>e(hk(t))})))(uY),pY=mc(((e,t)=>{const{installation:{id:n}}=t;return{apiUrl:e.app.urls.apiUrl,isScreenshotLoading:e.instances.installationsWithScreenshotLoading.has(n)}}),(e=>({instancesActions:kb({refreshScreenshot:AS},e)})))((e=>{const{apiUrl:t,baseClassName:n=`${Rp}instance-screenshot-preview-panel`,installation:{screenshot:s},isScreenshotLoading:i=!1}=e;return(0,P.jsxs)("div",{className:`${n}-wrapper`,children:[(0,P.jsx)(Yn,{className:n,image:(null==s?void 0:s.url)?`${t}/${null==s?void 0:s.url}`:null,style:i?{opacity:.2}:null,children:!i&&(()=>{const{installation:{url:t}}=e,i=(null==s?void 0:s.createdAt)?new Date(s.createdAt):null;return(0,P.jsxs)(P.Fragment,{children:[t&&(0,P.jsx)(Be,{intent:"primary",component:"a",href:t,target:"_blank",children:(0,P.jsx)(qd,{content:"controllers.index.detail.linkViewSite"})}),(0,P.jsx)("div",{className:`${n}__datetime`,children:i&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.screenshotPreview.datetime.description"}),children:(0,P.jsxs)("span",{children:[(0,P.jsx)(be,{name:"clock"}),(0,P.jsx)("span",{children:i.toLocaleString()})]})})}),(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.screenshotPreview.refreshNow"}),children:(0,P.jsx)(be,{className:`${n}__refresh-button`,name:"refresh",size:"16",onClick:()=>(()=>{const{installation:{id:t},instancesActions:{refreshScreenshot:n}}=e;n(t)})()})})]})})()}),i&&(0,P.jsx)("div",{className:`${n}__loader-spinner`,children:(0,P.jsx)(Rn,{})})]})})),hY=mc((e=>({isOwnerColumnAvailable:e.app.options.isOwnerColumnAvailable})))((e=>{var t;const{isOwnerColumnAvailable:n,installation:s,installation:{status:{alive:i,unsupported:a},owner:r,server:o,installationType:l},onToggleRemoteInstanceSettings:c,baseClassName:u=`${Rp}instance-left-column`,initialShowAdminSettingsDrawer:d=!1}=e;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:`${u}-preview-panel`,children:(0,P.jsx)(pY,{installation:s})}),!a&&(0,P.jsxs)(Pa,{vertical:!1,children:[i&&(0,P.jsx)("div",{className:`${u}-admin-buttons`,children:(0,P.jsx)(kY,{installation:s,initialShowAdminSettingsDrawer:d})}),n&&(null==r?void 0:r.name)&&(0,P.jsx)(DY,{installation:s,baseClassName:u}),(null===(t=s.domain)||void 0===t?void 0:t.name)&&(0,P.jsx)(bY,{installation:s,baseClassName:u}),o&&!HM(l)&&(0,P.jsx)(PY,{installation:s,onToggleRemoteInstanceSettings:c,baseClassName:u}),(0,P.jsx)(IY,{installation:s,baseClassName:u})]})]})})),mY="instance-link-to-domain";class fY extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{domain:e},baseClassName:t}=this.props;return(null==e?void 0:e.url)?(0,P.jsx)(ye,{href:null==e?void 0:e.url,className:t,"data-test-id":mY,children:(0,P.jsx)(qd,{content:"controllers.index.detail.manageDomain"})}):(0,P.jsx)("span",{className:t,"data-test-id":mY,children:null==e?void 0:e.name})},this.renderCpanel=()=>{const{installation:{domain:e},baseClassName:t}=this.props;return(0,P.jsx)("span",{className:t,"data-test-id":mY,children:null==e?void 0:e.name})}}render(){const{installation:{installationType:e,domain:t}}=this.props;if(!(null==t?void 0:t.name))return null;let n=null==t?void 0:t.name;return UM(e)?n=this.renderPlesk():RM(e)&&(n=this.renderCpanel()),n}}fY.defaultProps={baseClassName:`${Rp}instance-domain-link`};const gY=fY,bY=e=>{const{installation:t,baseClassName:n=`${Rp}instance-left-column`}=e;return(0,P.jsx)(la,{className:`${n}-section-item`,children:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"web",size:"16"}),title:(0,P.jsx)(gY,{installation:t}),tooltip:(0,P.jsx)(qd,{content:"list-ui.instances.generalTab.linkDomain"})})})};const vY=e=>{var t,{children:n,onChange:s,value:i}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["children","onChange","value"]);if(!n||1!==n.length)return(0,P.jsx)(Sa,Object.assign({},a,{children:(0,P.jsx)(Mr,{value:i,onChange:s,children:n})}));const[r]=n;return(0,P.jsx)(Sa,Object.assign({},a,{children:null===(t=null==r?void 0:r.props)||void 0===t?void 0:t.children}))};class yY extends M.Component{constructor(e){super(e),this.handleSubmit=e=>{this.state.isProcessing||(this.setState({values:e,errors:{},isProcessing:!0}),this.props.setAdminSettings(this.props.instanceId,this.state.values).then((()=>{this.props.onClose()})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})})))},this.handleSwitchShowPassword=()=>(this.setState((e=>({showCurrentPassword:!e.showCurrentPassword}))),!1),this.handleChangeUser=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{login:e,password:""}),errors:{}})))};const{adminSettings:{currentLanguage:t,currentEmail:n,availableLogins:s}}=this.props;let i=s.find((e=>e.login===this.props.adminSettings.currentLogin));i||(s.length>0?[i]=this.props.adminSettings.availableLogins:i={login:"",title:""}),this.state={isProcessing:!1,errors:{},values:{email:n,language:t,login:i.login,password:""},showCurrentPassword:!1},0===this.props.adminSettings.availableLogins.length&&(this.state.errors.login={isEmpty:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.errorAdminAccountDoesntExists"})})}render(){const{values:e,errors:t,showCurrentPassword:n}=this.state,{adminSettings:{loginUrl:s,availableLogins:i,availableLanguages:a,currentLogin:r,currentPassword:o},isOpen:l,onClose:c,baseClassName:u}=this.props;return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.title"}),onClose:c,"data-test-id":"admin-settings-popover","data-type":"admin-settings",size:"xs",className:u,isOpen:l,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{"data-test-id":"admin-settings-change-settings",children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.change"})},values:e,errors:t,state:this.state.isProcessing?"submit":void 0,vertical:!0},children:[(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.loginUrl"}),description:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.loginUrlHint"}),children:[(0,P.jsx)(ei,{children:s}),(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"toolbar.openInNewTab"}),children:(0,P.jsx)(Cs,{href:s||"",target:"_blank",children:""})})]}),(0,P.jsx)(vY,{"data-test-id":"admin-settings-current-login",label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.Administrator"}),onChange:this.handleChangeUser,name:"login",disabled:!i.length||this.state.isProcessing,children:i.map((e=>(0,P.jsx)(Pr,{value:e.login,children:e.login},e.login)))}),e.login===r&&o&&(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.currentPassword"}),children:[n?(0,P.jsx)("strong",{"data-test-id":"admin-settings-current-password",children:o}):o.replace(/./g,"*")," ",(0,P.jsx)(be,{"data-test-id":"admin-settings-show-password-button",name:n?"eye-closed":"eye",style:{cursor:"pointer"},onClick:this.handleSwitchShowPassword})]}),(0,P.jsx)(fr,{size:"fill",name:"password",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{password:t})}),label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.newPassword"}),disabled:!i.length||this.state.isProcessing,required:e.login!==r}),(0,P.jsx)(Sr,{size:"fill",name:"email",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{email:t})}),label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.adminEmail"}),disabled:!i.length||this.state.isProcessing,required:!0}),(0,P.jsx)(vY,{name:"language",label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.language"}),"data-test-id":"admin-settings-language-select",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{language:t})}),value:e.language?e.language:void 0,children:a.map((e=>(0,P.jsx)(Pr,{"data-test-value":e.code,value:e.code,children:e.title},e.code)))})]})}}yY.defaultProps={baseClassName:`${Rp}admin-settings-form`};const xY=yY;class _Y extends M.Component{constructor(e){var t;super(e),this.handleSubmit=e=>{if(this.state.isProcessing)return;const{setWpUser:t}=this.props;this.setState({values:e,errors:{},isProcessing:!0},(()=>t(this.props.instanceId,this.state.values).then((()=>{this.props.onClose()})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})}))))},this.handleSwitchShowPassword=()=>{this.setState((e=>({showCurrentPassword:!e.showCurrentPassword})))};const{wpUser:n}=this.props;this.state={isProcessing:!1,errors:{},values:{email:n.email,login:n.login,password:null!==(t=n.password)&&void 0!==t?t:""},showCurrentPassword:!1}}render(){const{values:e,errors:t,showCurrentPassword:n}=this.state,{onClose:s,baseClassName:i,isOpen:a,wpUser:r}=this.props;return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.wp-account.title"}),onClose:s,"data-type":"admin-settings",size:"xs",className:i,isOpen:a,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.wp-account.submit"})},values:e,errors:t,state:this.state.isProcessing?"submit":void 0,vertical:!0},children:[(0,P.jsx)(Sr,{size:"fill",label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.wp-account.login"}),name:"login",disabled:!0}),(0,P.jsx)(fr,{size:"fill",name:"password",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{password:t})}),label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.wp-account.password"}),disabled:this.state.isProcessing,required:!0}),(0,P.jsx)(Sr,{size:"fill",name:"email",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{email:t})}),label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.wp-account.email"}),disabled:this.state.isProcessing,required:!0})]})}}_Y.defaultProps={baseClassName:`${Rp}wp-account-settings-form`};const SY=mc(null,{setWpUser:gw})(_Y);class wY extends M.Component{constructor(e){super(e),this.handleCloseAdminSettingsDrawer=()=>this.setState({showAdminSettingsDrawer:!1}),this.handleOpenAdminSettingsForm=()=>{this.state.showLoadingAdminSettings||(this.setState({showLoadingAdminSettings:!0}),this.props.getAdminSettings(this.props.installation.id).then((e=>{this.setState({adminSettingsFormData:Object.assign({},e),showAdminSettingsDrawer:!0})})).catch((()=>{})).finally((()=>{this.setState({showLoadingAdminSettings:!1})})))},this.handleCloseWpAccountSettingsDrawer=()=>this.setState({showWpAccountSettingsDrawer:!1}),this.handleOpenWpAccountSettingsDrawer=()=>{this.state.showLoadingWpAccountSettings||(this.setState({wpAccountFormData:null,showLoadingWpAccountSettings:!0}),this.props.getWpUser(this.props.installation.id).then((e=>{this.setState({wpAccountFormData:Object.assign({},e),showWpAccountSettingsDrawer:!0})})).catch((()=>{})).finally((()=>{this.setState({showLoadingWpAccountSettings:!1})})))},this.renderLoginButton=()=>{const{installation:{id:e,features:{maintenance:t,credentials:n}},isAuxiliaryUser:s}=this.props,i=t.status&&t.fullMode?(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.tooltip.loginToWordpress"}):null;return(0,P.jsx)(yN,{disabled:!!t.status&&!!t.fullMode,instanceId:e,type:"button",hasAdminCredentials:null==n?void 0:n.available,onOpenAdminSettings:s?this.handleOpenWpAccountSettingsDrawer:this.handleOpenAdminSettingsForm,tooltip:i,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.loginToWordpress"})})},this.renderAdminSettings=()=>{const{installation:{id:e}}=this.props;return(0,P.jsxs)(P.Fragment,{children:[this.state.showLoadingAdminSettings?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.setup"})," ",(0,P.jsx)(fD,{})]}):(0,P.jsx)(Cs,{"data-test-id":"admin-settings-button",onClick:e=>Xd(e,this.handleOpenAdminSettingsForm),tabIndex:0,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.setup"})}),this.state.adminSettingsFormData&&(0,P.jsx)(xY,{instanceId:e,adminSettings:this.state.adminSettingsFormData,setAdminSettings:this.props.setAdminSettings,isOpen:this.state.showAdminSettingsDrawer,onClose:this.handleCloseAdminSettingsDrawer})]})},this.renderWpAccountSettings=()=>{const{installation:{id:e}}=this.props,{showLoadingWpAccountSettings:t,showWpAccountSettingsDrawer:n,wpAccountFormData:s}=this.state;return(0,P.jsxs)(P.Fragment,{children:[t?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.setup"})," ",(0,P.jsx)(fD,{})]}):(0,P.jsx)(Cs,{onClick:e=>Xd(e,this.handleOpenWpAccountSettingsDrawer),tabIndex:0,children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.settings.setup"})}),s&&(0,P.jsx)(SY,{instanceId:e,wpUser:s,isOpen:n,onClose:this.handleCloseWpAccountSettingsDrawer})]})},this.state={showAdminSettingsDrawer:!1,showWpAccountSettingsDrawer:!1,showLoadingAdminSettings:!1,showLoadingWpAccountSettings:!1,adminSettingsFormData:null,wpAccountFormData:null}}componentDidMount(){const{initialShowAdminSettingsDrawer:e}=this.props;e&&this.handleOpenAdminSettingsForm()}render(){const{installation:{status:{unsupported:e}},baseClassName:t,isAuxiliaryUser:n}=this.props;return e?null:(0,P.jsxs)(la,{className:t,children:[this.renderLoginButton(),!n&&this.renderAdminSettings(),n&&this.renderWpAccountSettings()]})}}wY.defaultProps={baseClassName:`${Rp}admin-buttons-section-item`,initialShowAdminSettingsDrawer:!1};const kY=mc((e=>({isAuxiliaryUser:e.app.isAuxiliaryUser})),{getAdminSettings:pw,setAdminSettings:hw,getWpUser:fw})(wY),jY="instance-link-to-owner";class TY extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{owner:e},baseClassName:t}=this.props;return(null==e?void 0:e.url)?(0,P.jsx)(ye,{href:e.url,className:t,"data-test-id":jY,children:null==e?void 0:e.name}):(0,P.jsx)("span",{className:t,"data-test-id":jY,children:null==e?void 0:e.name})},this.renderCpanel=()=>{const{installation:{owner:e},goToUri:t,baseClassName:n}=this.props;return Wv()?(0,P.jsx)(ye,{onClick:()=>t("/",e.login),className:n,"data-test-id":jY,children:null==e?void 0:e.name}):(0,P.jsx)("span",{className:n,"data-test-id":jY,children:null==e?void 0:e.name})}}render(){const{installation:{installationType:e,owner:t}}=this.props;if(!(null==t?void 0:t.name))return null;let n=t.name;return UM(e)?n=this.renderPlesk():RM(e)&&(n=this.renderCpanel()),n}}TY.defaultProps={baseClassName:`${Rp}instance-owner-link`};const CY=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(TY),DY=e=>{const{installation:t,baseClassName:n=`${Rp}instance-left-column`}=e;return(0,P.jsx)(la,{className:`${n}-section-item`,children:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"user",size:"16"}),title:(0,P.jsx)(CY,{installation:t}),tooltip:(0,P.jsx)(qd,{content:"list.instances.owner"})})})},PY=e=>{const{installation:{server:t,installationType:n},onToggleRemoteInstanceSettings:s,baseClassName:i=`${Rp}instance-left-column`}=e;return(0,P.jsxs)(la,{title:(0,P.jsx)(qd,{content:"list-ui.instances.generalTab.server"}),className:`${i}-section-item-tight`,children:[(0,P.jsx)("span",{"data-test-id":"instance-remote-server-host",children:t}),(0,P.jsx)(Be,{icon:"sliders",onClick:s,"data-test-id":BM(n)?dN:uN,className:`${i}-server-settings`,ghost:!0})]})},OY=mc((e=>{var t;return{hireDeveloperFeatureEnabled:e.app.options.hireDeveloperFeature,href:null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href,canManageSettings:e.app.options.isAdmin}}),(e=>({instancesActions:kb({recordHireDeveloperTransition:Mk},e)})))((e=>{const{hireDeveloperFeatureEnabled:t,installation:n,href:s,instancesActions:i,canManageSettings:a}=e,[r,o]=(0,M.useState)(!1);return t&&s?(0,P.jsx)(Ar,{className:"hire-developer-link",icon:(0,P.jsx)(be,{name:"code",size:"16"}),title:(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Fs,{target:(0,P.jsx)(Cs,{onClick:()=>o(!r),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.action"})}),placement:"bottom",visible:r,onClose:()=>o(!1),children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.description"})}),(0,P.jsx)(Cs,{href:s,target:"_blank",onClick:()=>{i.recordHireDeveloperTransition(n.id).catch((()=>{})),o(!1)},children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.action"})}),a&&(0,P.jsx)(Fs,{target:(0,P.jsxs)("span",{style:{float:"right"},children:[(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.hide"})," ",(0,P.jsx)(be,{name:"question-mark-circle"})]}),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.howToHide"})})]}),(0,P.jsx)(ZM,{code:"hire-developer-link",interacted:r})]})}):null})),IY=mc((e=>{var t;return{hidden:!e.app.options.hireDeveloperFeature||!(null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href)}}))((e=>{const{installation:t,baseClassName:n=`${Rp}instance-left-column`,hidden:s}=e;return s?null:(0,P.jsx)(la,{className:`${n}-section-item`,children:(0,P.jsx)(OY,{installation:t})})})),MY="view",LY="edit",AY="processing";class EY extends M.Component{constructor(e){super(e),this.setElementState=e=>this.setState({elementState:e}),this.handleOpenEdit=()=>this.setState({newName:this.props.name,elementState:LY}),this.handleChange=e=>this.setState({newName:e.target.value}),this.handleEditKey=e=>{"Escape"===e.key?this.setElementState(MY):"Enter"===e.key&&this.handleSubmit()},this.handleSubmit=()=>{const{newName:e,elementState:t}=this.state;t!==AY&&this.setState({elementState:AY},(()=>{this.props.setInstanceName(this.props.installationId,e.trim()).then((e=>{if("error"===e.status&&e.formErrors){const t=[];Object.values(e.formErrors).forEach((e=>{Object.values(e).forEach((e=>{t.push(e)}))})),t.length>0&&this.props.addErrorMessage(t.join(". "))}})).finally((()=>{this.setState({elementState:MY})}))}))},this.state={elementState:MY,newName:""}}render(){const{newName:e,elementState:t}=this.state,{name:n,baseClassName:s,additionalButtons:i}=this.props,a=t===MY,r=t===LY,o=t===AY;let l=n.trim();return o&&(l=e.trim()),l||(l=(0,P.jsx)(qd,{content:"instancesList.instanceCard.noNameWebsite"})),(0,P.jsxs)("div",{className:`${s}__large`,children:[(a||o)&&(0,P.jsx)("span",{"data-test-id":fN,children:l}),r&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ss,{className:`${s}-input`,value:e,onChange:this.handleChange,onKeyDown:this.handleEditKey,autoFocus:!0}),(0,P.jsxs)("div",{className:`${s}-buttons`,children:[(0,P.jsx)(Be,{onClick:this.handleSubmit,tooltip:(0,P.jsx)(qd,{content:"instancesList.instanceCard.saveWebsiteName"}),icon:"check-mark",ghost:!0}),(0,P.jsx)(Be,{onClick:()=>this.setElementState(MY),tooltip:(0,P.jsx)(qd,{content:"instancesList.instanceCard.cancelWebsiteName"}),icon:"cross-mark",ghost:!0})]})]}),a&&(0,P.jsx)("div",{className:`${s}-buttons`,children:(0,P.jsx)(Be,{onClick:this.handleOpenEdit,tooltip:(0,P.jsx)(qd,{content:"instancesList.instanceCard.editWebsiteName"}),icon:"pencil",ghost:!0})}),o&&(0,P.jsx)(fD,{className:`${s}__loader`}),i&&(0,P.jsx)("div",{className:`${s}-buttons`,children:i})]})}}EY.defaultProps={baseClassName:`${Rp}instance-name-form`};const RY=EY;class UY extends M.Component{constructor(){super(...arguments),this.renderPlesk=e=>(0,P.jsx)(Cs,{href:e,children:(0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.linkName"})}),this.renderCpanel=e=>{const{installation:{owner:t},goToUri:n}=this.props,s=Bv({link:e,inNewWindow:!1,goToUri:n,accountUsername:t.login});return(0,P.jsx)(Cs,Object.assign({},s,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.linkName"})}))}}render(){const{installation:{features:{php:e},installationType:t}}=this.props;return UM(t)?this.renderPlesk(e.settingsUrl):RM(t)?this.renderCpanel(e.settingsUrl):null}}const NY=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(UY),FY=({installation:e,onOpenSmartPhpUpdatesDrawer:t})=>{const{id:n,installationType:s,features:{updates:i,php:a}}=e,r=a.settingsUrl?(0,P.jsx)(NY,{installation:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{php:Object.assign(Object.assign({},a),{settingsUrl:a.settingsUrl})})})}):null;let o=null;const l=i.php.available&&!a.unsupported?(0,P.jsx)(FF,{installationId:n,installationType:s,applicable:i.php.applicable,ref:e=>o=e,children:(0,P.jsx)(Cs,{onClick:i.php.applicable?t:()=>o&&o.handleTogglePopover(),"data-test-id":"try-another-php-version-link",children:lN(i.php.taskStatus)?(0,P.jsx)(qd,{content:"smartPhpUpdate.result.checkResult"}):(0,P.jsx)(qd,{content:"instancesList.instanceCard.php.tryAnotherVersion"})})}):null;return(0,P.jsxs)(P.Fragment,{children:[r,r&&l?(0,P.jsxs)(P.Fragment,{children:[" ",(0,P.jsx)(qd,{content:"instancesList.issues.updatePhp.openSettingsOrTryAnother"})," "]}):null,l]})},YY=e=>{const{installation:{installationType:t,features:{php:n}},minimalSupportedPhpVersion:s,onOpenSmartPhpUpdatesDrawer:i}=e;return(0,P.jsxs)(P.Fragment,{children:[(()=>{const e=[];return n.unsupported?e.push((0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.unsupportedPhpText",params:{minimalSupportedPhpVersion:s}},"unsupportedPhpText")):n.eoled?e.push((0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.outdatedPhpText"},"outdatedPhpText")):e.push((0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.normalPhpText"},"normalPhpText")),YM(t)&&e.push((0,P.jsx)(qd,{content:"controllers.index.detail.phpPopover.remoteInstancesNote",unsafe:!0},"remoteInstancesNote")),e})(),(0,P.jsx)("br",{}),(0,P.jsx)(FY,{installation:e.installation,onOpenSmartPhpUpdatesDrawer:i})]})},HY=e=>{const{target:t,actionLinkAttributes:n,baseClassName:s=`${Fp}`}=e;return(0,P.jsx)(Fs,{target:t,children:n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notEnabled.description"})}),(0,P.jsx)(Cs,Object.assign({},n,{className:`${s}__action-enable-ssl`,"data-test-id":"instance-ssl-status-popover__action-enable-ssl",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notEnabled.action"})}))]}):(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeEnabled"})})},"ssl-disabled")},BY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:i=`${Fp}`}=e;return(0,P.jsx)(Fs,{target:t,children:n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.description"})}),(0,P.jsx)(Cs,Object.assign({},n,{className:`${i}__action-get-certificate ${i}_no-certificate`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,P.jsx)(mi,{children:(a=s,RM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):UM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.description"}))})},"certificate-not-installed");var a},VY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:i=`${Fp}`}=e;return(0,P.jsx)(Fs,{target:t,children:n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.selfSigned.description"})}),(0,P.jsx)(Cs,Object.assign({},n,{className:`${i}__action-get-certificate ${i}_self-signed`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,P.jsx)(mi,{children:(a=s,RM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):UM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.selfSigned.description"}))})},"self-signed");var a},$Y=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:i=`${Fp}`}=e;return(0,P.jsx)(Fs,{target:t,children:n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateExpired.description"})}),(0,P.jsx)(Cs,Object.assign({},n,{className:`${i}__action-get-certificate ${i}_expired`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,P.jsx)(mi,{children:(a=s,RM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):UM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateExpired.description"}))})},"expired");var a},WY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:i=`${Fp}`}=e;return(0,P.jsx)(Fs,{target:t,children:n?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.description"})}),(0,P.jsx)(Cs,Object.assign({},n,{className:`${i}__action-get-certificate ${i}_no-suitable`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,P.jsx)(mi,{children:(a=s,RM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):UM(a)?(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.description"}))})},"not-suitable");var a},zY=e=>{const{target:t,actionLinkAttributes:n,baseClassName:s=`${Fp}`}=e;return(0,P.jsxs)(Fs,{target:t,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.description"})}),n&&(0,P.jsx)(Cs,Object.assign({},n,{className:`${s}__action-enable-redirect`,"data-test-id":"instance-ssl-status-popover__action-enable-redirect",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.action"})}))]},"redirect-disabled")},qY=mc(null,(e=>({synchronizeSiteUrlSync:t=>e(uk(t))})))((e=>{const{target:t,installationId:n,synchronizeSiteUrlSync:s,baseClassName:i=`${Fp}`}=e,[a,r]=(0,M.useState)(void 0);return(0,P.jsxs)(Fs,{target:t,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.description"})}),(0,P.jsx)(Be,{intent:"primary",onClick:()=>{r("loading"),s(n).then((()=>{r(void 0)}))},state:a,className:`${i}__action-sync-url`,"data-test-id":"instance-ssl-status-popover__action-sync-url",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.action"})})]},"ssl-mismatch-protocol")})),GY=({url:e,instanceType:t,cpanelAccountUsername:n,goToUri:s})=>null===e?null:RM(t)?Bv({link:e,inNewWindow:!1,goToUri:s,accountUsername:n}):{href:e,target:"_self"},KY=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))((e=>{var t,n,s,i,a,r,o,l,c,u,d,p,h,m,f,g,b,v,y,x,_,S;const{installation:{domain:w,id:k,installationType:j,owner:T},goToUri:C,baseClassName:D=`${Rp}instance-card-ssl-status`}=e;return(null===(t=null==w?void 0:w.ssl)||void 0===t?void 0:t.enabled)?(null===(i=null===(s=null==w?void 0:w.ssl)||void 0===s?void 0:s.certificate)||void 0===i?void 0:i.installed)?(null===(o=null===(r=null==w?void 0:w.ssl)||void 0===r?void 0:r.certificate)||void 0===o?void 0:o.selfSigned)?(0,P.jsx)(VY,{target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_self-signed",className:`${D} ${D}_self-signed`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.selfSigned"})})}),actionLinkAttributes:(null===(l=null==w?void 0:w.ssl)||void 0===l?void 0:l.buyOrInstallSslActionUrl)?GY({url:w.ssl.buyOrInstallSslActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null,instanceType:j}):(null===(u=null===(c=null==w?void 0:w.ssl)||void 0===c?void 0:c.certificate)||void 0===u?void 0:u.actual)?(null===(h=null===(p=null==w?void 0:w.ssl)||void 0===p?void 0:p.certificate)||void 0===h?void 0:h.suitableForDomain)?(null===(f=null==w?void 0:w.ssl)||void 0===f?void 0:f.redirectToHttpsEnabled)?(null===(y=null==w?void 0:w.ssl)||void 0===y?void 0:y.redirectToHttpsEnabled)&&!(null===(x=null==w?void 0:w.ssl)||void 0===x?void 0:x.urlProtocolHttps)?(0,P.jsx)(qY,{installationId:k,target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_mismatch-protocol",className:`${D} ${D}_mismatch-protocol`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol"})})})}):(null===(S=null===(_=null==w?void 0:w.ssl)||void 0===_?void 0:_.certificate)||void 0===S?void 0:S.issuerName)?(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"lock-closed-check",intent:"success",size:"16"}),title:w.ssl.certificate.issuerName}):null:(0,P.jsx)(zY,{target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_redirect-disabled",className:`${D} ${D}_redirect-disabled`,children:null===(b=null===(g=null==w?void 0:w.ssl)||void 0===g?void 0:g.certificate)||void 0===b?void 0:b.issuerName})}),actionLinkAttributes:(null===(v=null==w?void 0:w.ssl)||void 0===v?void 0:v.enableRedirectToHttpsActionUrl)?GY({url:w.ssl.enableRedirectToHttpsActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null}):(0,P.jsx)(WY,{target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_no-suitable",className:`${D} ${D}_no-suitable`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notSuitableForDomain"})})}),actionLinkAttributes:(null===(m=null==w?void 0:w.ssl)||void 0===m?void 0:m.buyOrInstallSslActionUrl)?GY({url:w.ssl.buyOrInstallSslActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null,instanceType:j}):(0,P.jsx)($Y,{target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_expired",className:`${D} ${D}_expired`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateExpired"})})}),actionLinkAttributes:(null===(d=null==w?void 0:w.ssl)||void 0===d?void 0:d.buyOrInstallSslActionUrl)?GY({url:w.ssl.buyOrInstallSslActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null,instanceType:j}):(0,P.jsx)(BY,{target:(0,P.jsx)(ye,{"data-test-id":"instance-card-ssl_no-certificate",className:`${D} ${D}_no-certificate`,icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateNotInstalled"})}),actionLinkAttributes:(null===(a=null==w?void 0:w.ssl)||void 0===a?void 0:a.buyOrInstallSslActionUrl)?GY({url:w.ssl.buyOrInstallSslActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null,instanceType:j}):(0,P.jsx)(HY,{target:(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsx)(Cs,{"data-test-id":"instance-card-ssl_disabled",className:`${D} ${D}_disabled`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notEnabled"})})}),actionLinkAttributes:(null===(n=null==w?void 0:w.ssl)||void 0===n?void 0:n.enableSslActionUrl)?GY({url:w.ssl.enableSslActionUrl,instanceType:j,cpanelAccountUsername:null==T?void 0:T.login,goToUri:C}):null})}));class XY extends M.Component{constructor(){super(...arguments),this.renderError=()=>{const{installation:{errorMessage:e,status:{alive:t}}}=this.props;return t||!e?null:(0,P.jsx)(xe,{intent:"danger",children:e},"problemInstanceDetailsInfo")},this.renderWordpress=()=>{const{installation:{features:{updates:e},status:{alive:t},version:n},openUpdates:s,baseClassName:i}=this.props;if(!t||!n)return null;let a=n;return e.availableVersion&&(a=(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,P.jsxs)(mi,{className:`${i}-paragraph`,children:[n," ",(0,P.jsx)(Cs,{onClick:e=>Xd(e,(()=>s(sx))),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.wordpressCoreVersion.hasUpdate",params:{updateVersion:e.availableVersion}})})]})})),(0,P.jsx)(la,{"data-test-id":"current-version-label",title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.wordpressCoreVersion.title"}),className:`${i}-item`,children:a},"version")},this.renderPlugins=()=>{const{installation:{features:{updates:e},status:{alive:t}},openUpdates:n,baseClassName:s}=this.props;if(!t)return null;let i=(0,P.jsx)(qd,{content:"instancesList.instanceCard.pluginsUpdates.upToDate"});return e.amountOfPluginsWithUpdates>0&&(i=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>n(ix))),icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.pluginsUpdates.hasUpdate"})})),(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.pluginsUpdates.title"}),className:`${s}-item`,children:i},"pluginsUpdates")},this.renderThemes=()=>{const{installation:{features:{updates:e},status:{alive:t}},openUpdates:n,baseClassName:s}=this.props;if(!t)return null;let i=(0,P.jsx)(qd,{content:"instancesList.instanceCard.themesUpdates.upToDate"});return e.amountOfThemesWithUpdates>0&&(i=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>n(ax))),icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.themesUpdates.hasUpdate"})})),(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.themesUpdates.title"}),className:`${s}-item`,children:i},"themesUpdates")},this.renderSecurity=()=>{const{installation:{features:{security:e,vulnerability:t},id:n,status:{alive:s}},onOpenSecurityDialog:i,baseClassName:a}=this.props;if(!s||!e.available)return null;const r=()=>t.vulnerable?{name:"exclamation-mark-circle-filled",intent:"danger",size:"16"}:l?{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}:void 0;let o,l=!1;if(t.available&&t.vulnerable)o=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>i(n,1))),"data-test-id":mN,"data-test-security":"security-status-vulnerable",icon:r(),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.vulnerable"})});else switch(e.status){case"secureFull":o=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>i(n))),"data-test-id":mN,"data-test-security":"security-status-success",icon:r(),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.secureFull"})});break;case"secureRecommended":o=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>i(n))),"data-test-id":mN,"data-test-security":"security-status-warning",icon:r(),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.secureRecommended"})});break;case"insecure":l=!0,o=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>i(n))),"data-test-id":mN,"data-test-security":"security-status-danger",icon:r(),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.insecure"})});break;case"unknown":l=!0,o=(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>i(n))),"data-test-id":mN,"data-test-security":"security-status-inactive",icon:r(),children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.performCheckSecurity"})});break;default:throw new Error(`Unexpected status: ${e.status}`)}return(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.title"}),className:`${a}-item`,children:(null==t?void 0:t.vulnerable)&&(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.securityStatus.vulnerableWordPressHint"}),children:o})||o},"securityStatus")},this.renderSnapshot=()=>{const{installation:{features:{restorePoint:e},id:t},enableInstances:n,disableInstances:s,baseClassName:i}=this.props;return e.restorePointTimestamp?(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"controllers.index.detail.restorePointTitle"}),className:`${i}-item`,children:(0,P.jsx)(QF,{installationId:t,restorePoint:e,disableInstances:s,enableInstances:n})},"restorePoint"):null},this.renderPhp=()=>{var e;const{installation:{features:{php:t,updates:n},status:{alive:s}},minimalSupportedPhpVersion:i,onOpenSmartPhpUpdates:a,baseClassName:r}=this.props;return s&&(null===(e=t.handler)||void 0===e?void 0:e.version)?(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.php.title"}),className:`${r}-item`,children:(0,P.jsx)(Ar,{icon:lN(n.php.taskStatus)?(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.smartPhpUpdateConflict.card"}),children:(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})}):t.eoled?(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}):null,className:`${r}-php`,title:(0,P.jsxs)(mi,{className:`${r}-paragraph`,children:[(0,P.jsx)(ei,{"data-test-id":"current-php-version",children:t.handler.version})," ",(0,P.jsx)(ei,{className:`${r}-php-details`,children:(0,P.jsx)(Fs,{target:(0,P.jsx)(Cs,{"data-test-id":"php-details",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.php.details"})}),children:(0,P.jsx)(YY,{installation:this.props.installation,minimalSupportedPhpVersion:i,onOpenSmartPhpUpdatesDrawer:a})})})]})})},"php"):null},this.renderSslStatus=()=>{const{installation:{domain:e,status:{alive:t}},baseClassName:n}=this.props;return(null==e?void 0:e.ssl)&&t?(0,P.jsx)(la,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.title"}),className:`${n}-item`,children:(0,P.jsx)(KY,{installation:this.props.installation})},"ssl"):null}}render(){const{isCollapsible:e}=this.props;return(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"controllers.index.detail.GeneralTabInfoSectionTitle"}),className:"wpt-instance-card-section",collapsible:e,children:[this.renderError(),this.renderWordpress(),this.renderPlugins(),this.renderThemes(),this.renderSecurity(),this.renderSnapshot(),this.renderPhp(),this.renderSslStatus()]})}}XY.defaultProps={baseClassName:`${Rp}instance-info-section`};const QY=mc((e=>({minimalSupportedPhpVersion:e.app.options.minimalSupportedPhpVersion})))(XY);class JY extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>(0,P.jsx)(ye,{href:this.props.wpContentUrl,children:(0,P.jsx)(qd,{content:"forms.debugSettings.wpContentDirName"})}),this.renderCpanel=()=>{const{goToUri:e,installation:{owner:t},wpContentUrl:n}=this.props;if(!n)return null;const s=Bv({link:n,inNewWindow:!1,goToUri:e,accountUsername:t.login});return(0,P.jsx)(ye,Object.assign({},s,{children:(0,P.jsx)(qd,{content:"forms.debugSettings.wpContentDirName"})}))}}render(){const{installation:{features:{fileManager:e},installationType:t},wpContentUrl:n}=this.props,s=(0,P.jsx)(qd,{content:"forms.debugSettings.wpContentDirName"});return e.available&&n?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():s:s}}const ZY=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(JY);class eH extends M.Component{constructor(e){super(e),this.handleChangeWpDebug=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugLog:e,wpDebugDisplay:e,wpDebug:e})})))},this.handleChangeWpDebugLog=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugLog:e})}))),e?this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebug:e})}))):this.state.values.wpDebugDisplay||this.setState((e=>({values:Object.assign(Object.assign({},e.values),{wpDebug:!1})})))},this.handleChangeWpDebugDisplay=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugDisplay:e})}))),e?this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebug:e})}))):this.state.values.wpDebugLog||this.setState((e=>({values:Object.assign(Object.assign({},e.values),{wpDebug:!1})})))},this.handleSubmit=e=>{const{onSetDebugSettings:t,onClose:n,isProcessing:s}=this.props;s||t(e).then((()=>n()))},this.renderForm=()=>{const{values:e,debugLogUrl:t,wpContentUrl:n,isLoading:s}=this.state,{installation:i,baseClassName:a}=this.props;return s?(0,P.jsx)(Rn,{}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugLabel"}),children:(0,P.jsx)(ut,{name:"wpDebug",onChange:this.handleChangeWpDebug,checked:e.wpDebug,children:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugDescription"})})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugLogLabel"}),children:(0,P.jsx)(ut,{name:"wpDebugLog",className:`${a}__wp-debug-log`,onChange:this.handleChangeWpDebugLog,checked:e.wpDebugLog,children:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugLogDescription",params:{debugLogFile:t?(0,P.jsx)(Cs,{href:t,children:(0,P.jsx)(qd,{content:"forms.debugSettings.debugLogFilename"})}):(0,P.jsx)(qd,{content:"forms.debugSettings.debugLogFilename"}),wpContentDir:(0,P.jsx)(ZY,{installation:i,wpContentUrl:n})}})})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugDisplayLabel"}),children:(0,P.jsx)(ut,{name:"wpDebugDisplay",className:`${a}__wp-debug-display`,onChange:this.handleChangeWpDebugDisplay,checked:e.wpDebugDisplay,children:(0,P.jsx)(qd,{content:"forms.debugSettings.wpDebugDisplayDescription"})})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.debugSettings.scriptDebugLabel"}),children:(0,P.jsx)(ut,{name:"scriptDebug",onChange:e=>this.setState((t=>({values:Object.assign(Object.assign({},t.values),{scriptDebug:e})}))),checked:e.scriptDebug,children:(0,P.jsx)(qd,{content:"forms.debugSettings.scriptDebugDescription"})})}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.debugSettings.saveQueriesLabel"}),children:(0,P.jsx)(ut,{name:"saveQueries",onChange:e=>this.setState((t=>({values:Object.assign(Object.assign({},t.values),{saveQueries:e})}))),checked:e.saveQueries,children:(0,P.jsx)(qd,{content:"forms.debugSettings.saveQueriesDescription"})})})]})},this.state={values:{wpDebug:!1,wpDebugLog:!1,wpDebugDisplay:!1,scriptDebug:!1,saveQueries:!1},debugLogUrl:null,wpContentUrl:null,isLoading:!1}}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}handleLoadData(){const{installation:{id:e},installationActions:{getWordPressDebugSettings:t}}=this.props;this.setState({isLoading:!0}),t(e).then((e=>{this.setState({values:{wpDebug:e.value.wpDebug.value,wpDebugLog:e.value.wpDebugLog.value,wpDebugDisplay:e.value.wpDebugDisplay.value,scriptDebug:e.value.scriptDebug.value,saveQueries:e.value.saveQueries.value},debugLogUrl:e.meta.debugLogUrl,wpContentUrl:e.meta.wpContentUrl})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{values:e}=this.state,{installation:{displayTitle:t},debugCodexUrl:n,onClose:s,isOpen:i,isProcessing:a}=this.props;return(0,P.jsxs)(er,{title:t,subtitle:(0,P.jsx)(qd,{content:"controllers.index.debugSettings.formSubtitle"}),isOpen:i,onClose:s,"data-type":"debug-settings",form:{onSubmit:this.handleSubmit,values:e,state:a?"submit":void 0,submitButton:{"data-test-id":"submit-button"},applyButton:!1,cancelButton:!1},children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"forms.debugSettings.title",params:{debugCodexUrl:(0,P.jsx)(Cs,{href:n,target:"_blank",children:(0,P.jsx)(qd,{content:"forms.debugSettings.debuggingInWordPress"})})}})}),this.renderForm()]})}}eH.defaultProps={baseClassName:`${Rp}debug-settings-form`};const tH=mc((e=>({debugCodexUrl:e.app.urls.debugCodexUrl})),(e=>({installationActions:kb({getWordPressDebugSettings:xk},e)})))(eH);var nH=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n};const sH=e=>CN(e),iH=e=>{try{return new URL(e).host}catch(e){}return DN(String.prototype.trim.apply(e||"")).toLowerCase()},aH=e=>e,rH=e=>String.prototype.trim.apply(e||""),oH=e=>{var{opened:t,loading:n,onCancel:s,onReset:i,domains:a,readonlyDomains:r,fileExtensions:o,readonlyFileExtensions:l,defaultValues:c}=e,u=nH(e,["opened","loading","onCancel","onReset","domains","readonlyDomains","fileExtensions","readonlyFileExtensions","defaultValues"]);const[d,p]=(0,M.useState)({domains:[],fileExtensions:[],readonlyFileExtensions:[],readonlyDomains:[]}),[h,m]=(0,M.useState)({}),[f,g]=(0,M.useState)(),b=zd();return(0,M.useEffect)((()=>{p({domains:a.filter((e=>!r.includes(e))).map(sH),readonlyDomains:r.map(sH),fileExtensions:o.filter((e=>!l.includes(e))).map(aH),readonlyFileExtensions:l.map(aH)}),m({}),g(void 0)}),[a,r,o,l,t]),n?(0,P.jsx)(er,{className:u.baseClassName,title:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.title",params:{instanceUrl:u.installation.displayTitle}}),onClose:s,size:"sm",isOpen:t,"data-type":"hotlink-protection-options",children:(0,P.jsx)(fD,{})}):(0,P.jsxs)(er,{className:u.baseClassName,title:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.title",params:{instanceUrl:u.installation.displayTitle}}),onClose:s,size:"sm",isOpen:t,form:{onSubmit:e=>{p(e);const t={domains:e.domains.map(iH).filter((e=>!!e)),fileExtensions:e.fileExtensions.map(rH).filter((e=>!!e)),readonlyDomains:r,readonlyFileExtensions:l};(e=>{const t={};let n=!1;return e.domains.forEach(((e,s)=>{var i;t.domains=null!==(i=t.domains)&&void 0!==i?i:[],(e=>/^(?!:\/\/)(?=.{1,255}$)((.{1,63}\.){1,127}(?![0-9]*$)[a-z0-9-]+\.?)$/.test(e))(e)||(t.domains[s]={domainName:b("controllers.index.detail.hotlinkProtection.options.domains.validations.invalidName")},n=!0)})),e.fileExtensions.forEach(((e,s)=>{var i;t.fileExtensions=null!==(i=t.fileExtensions)&&void 0!==i?i:[],(e=>/^[a-z0-9]+$/i.test(e))(e)||(t.fileExtensions[s]={fileExtension:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.validations.invalidName")},n=!0)})),e.readonlyFileExtensions.length+e.fileExtensions.length===0&&(t.fileExtensions=[{min:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.validations.min")}],n=!0),m(t),!n})(t)&&(g("submit"),u.onSubmit({domains:r.concat(t.domains),fileExtensions:l.concat(t.fileExtensions)}).finally((()=>g(void 0))))},additionalButtons:[(0,P.jsx)(Be,{onClick:()=>(g("submit"),p((e=>Object.assign(Object.assign({},e),{domains:c.domains.filter((e=>!r.includes(e))).map(sH),fileExtensions:c.fileExtensions.filter((e=>!l.includes(e))).map(aH)}))),i().finally((()=>g(void 0)))),disabled:"submit"===f,children:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.resetToDefault"})},"reset")],errors:h,values:d,applyButton:!1,state:f},"data-type":"hotlink-protection-options",children:[r.length>0&&(0,P.jsx)(Sr,{name:"readonlyDomains",label:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.domains.title"}),fullDescription:b("controllers.index.detail.hotlinkProtection.options.domains.description"),disabled:!0,multi:{max:r.length},size:"md"}),(0,P.jsx)(Sr,{name:"domains",multi:!0,label:0===r.length&&(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.domains.title"}),fullDescription:0===r.length&&b("controllers.index.detail.hotlinkProtection.options.domains.description"),size:"md",onRemoveRow:()=>m(Object.assign(Object.assign({},h),{domains:[]}))}),l.length>0&&(0,P.jsx)(Sr,{name:"readonlyFileExtensions",label:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.fileExtensions.title"}),fullDescription:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.description"),disabled:!0,multi:{max:l.length},size:"md"}),(0,P.jsx)(Sr,{name:"fileExtensions",label:0===l.length&&(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.options.fileExtensions.title"}),fullDescription:0===l.length&&b("controllers.index.detail.hotlinkProtection.options.fileExtensions.description"),multi:!0,size:"md",onRemoveRow:()=>m(Object.assign(Object.assign({},h),{fileExtensions:[]}))})]})},lH=mc(void 0,(e=>({instanceActions:kb({toggleHotlinkProtection:CS,getHotlinkProtectionSettingsMeta:DS,setHotlinkProtectionSettings:PS},e),addSuccessMessage:kb(Wg,e)})))((e=>{var t,n,{installation:s,instanceActions:i,addSuccessMessage:a}=e,r=nH(e,["installation","instanceActions","addSuccessMessage"]);const[o,l]=(0,M.useState)(!1),[c,u]=(0,M.useState)(!1),[d,p]=(0,M.useState)(!1),[h,m]=(0,M.useState)({domains:[],fileExtensions:[],readonlyDomains:[],readonlyFileExtensions:[]}),[f,g]=(0,M.useState)({domains:[],fileExtensions:[]}),b=(0,M.useCallback)((e=>{u(!0),i.toggleHotlinkProtection(s.id,e).then((e=>{a(e?(0,P.jsx)(qd,{content:"features.hotlinkProtection.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.hotlinkProtection.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{u(!1)}))}),[s.id,a,i]),v=(0,M.useCallback)((e=>i.setHotlinkProtectionSettings(s.id,e).then((e=>(l(!1),m((t=>Object.assign(Object.assign({},t),e))),e))).catch((()=>{}))),[s.id,i]),y=(0,M.useCallback)((()=>Promise.resolve()),[]);return(0,M.useEffect)((()=>{o&&!d&&(u(!0),i.getHotlinkProtectionSettingsMeta(s.id).finally((()=>u(!1))).then((e=>{m({domains:e.value.domains.value.map((e=>e.value)),fileExtensions:e.value.fileExtensions.value.map((e=>e.value)),readonlyDomains:e.value.domains.value.filter((e=>e.meta.persistent)).map((e=>e.value)),readonlyFileExtensions:[]}),g({domains:e.value.domains.meta.defaults,fileExtensions:e.value.fileExtensions.meta.defaults}),p(!0)})).catch((()=>l(!1))))}),[s.id,i,d,o]),(null===(t=s.features.hotlinkProtection)||void 0===t?void 0:t.available)&&null!==(null===(n=s.features.hotlinkProtection)||void 0===n?void 0:n.status)?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fl,{checked:s.features.hotlinkProtection.status,loading:c,onChange:b,"data-test-id":"hotlink-protection-switcher",className:`${r.baseClassName}-section-item-element`})," ",(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.title",className:`${r.baseClassName}-section-item-element`})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${r.baseClassName}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.hotlinkProtection.description"})})," ",(0,P.jsx)(Be,{className:`${r.baseClassName}-section-item-element`,icon:"sliders",onClick:()=>l(!0),disabled:c,ghost:!0,"data-test-id":"hotlink-protection-settings-opener"}),(0,P.jsx)(oH,{opened:o,loading:c,onCancel:()=>l(!1),onSubmit:v,onReset:y,domains:h.domains,fileExtensions:h.fileExtensions,readonlyDomains:h.readonlyDomains,readonlyFileExtensions:h.readonlyFileExtensions,defaultValues:f,baseClassName:r.baseClassName,installation:s})]}):null})),cH=e=>{const{subscriptionStatus:t}=e;let n;if(t===wg.Terminated&&(n=(0,P.jsx)(we,{className:e.baseClassName,icon:"exclamation-mark-circle-filled",size:"sm",view:"light",intent:"danger",children:(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.labels.terminated"})})),t===wg.Suspended&&(n=(0,P.jsx)(we,{className:e.baseClassName,icon:"triangle-exclamation-mark-filled",size:"sm",view:"light",intent:"warning",children:(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.labels.overdue"})})),n){const s=t===wg.Terminated?"controllers.index.detail.virtualPatches.labels.terminated.hint":"controllers.index.detail.virtualPatches.labels.overdue.hint";return(0,P.jsxs)(Fs,{target:n,children:[(0,P.jsx)("div",{style:{marginBottom:10},children:(0,P.jsx)(qd,{content:s})}),(0,P.jsx)(Be,{onClick:()=>e.onOpenVirtualPatchingLicenseInfoDrawer(),intent:"primary",children:(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.labels.popover.button.text"})})]})}return null},uH=e=>{const{isOpen:t,isButtonLocked:n,handleClose:s,handleEnableProtection:i,target:a,baseClassName:r=`${Rp}virtual-patches-enable-popover`}=e;return(0,P.jsxs)(Fs,{visible:t,onClose:s,target:a,children:[(0,P.jsx)("div",{className:`${r}__content-item`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.consentForm.description"})}),(0,P.jsx)("div",{className:`${r}__content-item`,children:(0,P.jsx)(XI,{})}),(0,P.jsx)(Be,{id:ov,disabled:n,onClick:i,icon:"shield",size:"md",intent:"primary",children:(0,P.jsx)(qd,{content:"controllers.index.detail.virtualPatches.consentForm.submitButtonTitle",unsafe:!0})})]})},dH=mc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller}}),(e=>({instanceActions:kb({updateVirtualPatchesProtectionStatus:g_},e),displayErrorMessageFromMeta:kb(Bg,e)})))((({installation:e,instanceActions:t,displayErrorMessageFromMeta:n,hasActiveTasks:s,onOpenVirtualPatchingUpsellDialog:i,onOpenVirtualPatchingLicenseInfoDrawer:a,showVirtualPatchesUpsellWhenRestrictedViaPlans:r,isAdmin:o,baseClassName:l=`${Rp}instance-settings-section-virtual-patches`})=>{var c,u,d;const[p,h]=(0,M.useState)(!1),[m,f]=(0,M.useState)(!1),[g,b]=(0,M.useState)(!1),v=nM(e,r,o),y=!!(null===(c=e.features.virtualPatches)||void 0===c?void 0:c.status),x=()=>h(!1),_=(0,M.useCallback)((s=>{f(!0),t.updateVirtualPatchesProtectionStatus({installationsIds:[e.id],status:s,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&n(e)})).finally((()=>{x(),f(!1)}))}),[n,e.id,t]),S=()=>b(!0);if(null===(null===(u=e.features.virtualPatches)||void 0===u?void 0:u.status))return null;const w=(e,t)=>{const n=(0,P.jsx)(fl,{className:`${l}-section-item-element`,checked:y,loading:s||m,onChange:()=>{S(),e&&!y?t&&t():y?_(!1):h(!0)},"data-test-id":"virtual-patches-switcher"});return e?(0,P.jsxs)("span",{children:[n," ",e]}):y?(0,P.jsx)("span",{children:n}):(0,P.jsx)(uH,{isOpen:p,isButtonLocked:m,handleClose:x,handleEnableProtection:()=>_(!0),target:n})};return(0,P.jsxs)(M.Fragment,{children:[v?w():w((0,P.jsx)(ye,{"data-test-id":"virtual-patching-lock-icon",onClick:()=>{S(),i(Kv)},icon:"lock-closed"}),(()=>{i(Kv)}))," ",(0,P.jsx)(qd,{className:`${l}-section-item-element`,content:"controllers.index.detail.virtualPatches.title"})," ",(0,P.jsx)(ZM,{code:"virtual-patching-switcher",interacted:g,className:`${l}-section-item-element`})," ",!!(null===(d=e.features.virtualPatches.subscription)||void 0===d?void 0:d.status)&&(0,P.jsx)(cH,{baseClassName:`${l}-section-item-element`,subscriptionStatus:e.features.virtualPatches.subscription.status,onOpenVirtualPatchingLicenseInfoDrawer:a})," ",(0,P.jsx)(uA,{target:(0,P.jsx)(Be,{className:`${l}-section-item-element`,icon:"question-mark-circle",ghost:!0})})," ",e.features.virtualPatches.subscription&&(0,P.jsx)(Be,{className:`${l}-section-item-element`,icon:"sliders",onClick:()=>a(),ghost:!0})]})}));const pH=({credentials:e,onSubmit:t})=>{const[n,s]=(0,M.useState)(!1),[i,a]=(0,M.useState)({username:(null==e?void 0:e.username)||"",password:""}),[r,o]=(0,M.useState)(),[l,c]=(0,M.useState)(),u=(0,M.useCallback)((()=>i.username.length&&i.password.length&&!(null==l?void 0:l.username)&&!(null==l?void 0:l.password)),[i,l]),d=(0,M.useCallback)(((e,t)=>{a(Object.assign(Object.assign({},i),{[e]:t})),c(Object.assign(Object.assign({},l),{[e]:null}))}),[i,l]),p=(0,M.useCallback)((e=>u()?(o("submit"),t(e).catch((e=>(o(void 0),e.formErrors&&c(e.formErrors),Promise.reject(e))))):Promise.reject()),[u,t]);return(0,P.jsxs)(La,{onSubmit:p,onFieldChange:d,values:i,hideRequiredLegend:!0,submitButton:{id:cv,children:(null==e?void 0:e.username)?(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.update"}):(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.protect"}),disabled:!u()},state:r,errors:l,applyButton:!1,cancelButton:!1,children:[(null==e?void 0:e.username)&&(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.username"}),children:(0,P.jsx)("strong",{children:e.username})}),!(null==e?void 0:e.username)&&(0,P.jsx)(Sr,{name:"username",label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.username"}),size:"fill"}),(null==e?void 0:e.password)&&(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.currentPassword"}),children:[n?(0,P.jsx)("strong",{children:e.password}):e.password.replace(/./g,"*")," ",(0,P.jsx)(Be,{icon:n?"i-eye-02":"i-eye-03",onClick:()=>s(!n),ghost:!0,style:{float:"right"}})]}),(0,P.jsx)(fr,{name:"password",label:(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.newPassword"})})]})},hH=mc(void 0,(e=>({instanceActions:kb({getPasswordProtection:Ew,updatePasswordProtection:Rw,togglePasswordProtectionStatus:Uw},e),addSuccessMessage:kb(Wg,e)})))((e=>{var t,{installation:n,addSuccessMessage:s,instanceActions:i}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["installation","addSuccessMessage","instanceActions"]);const[r,o]=(0,M.useState)(!1),[l,c]=(0,M.useState)(!1),[u,d]=(0,M.useState)(!1),[p,h]=(0,M.useState)({username:"",password:""}),m=(0,M.useCallback)((e=>{e?o(!0):(c(!0),i.togglePasswordProtectionStatus(n.id,e).then((e=>(e||h({username:"",password:""}),s(e?(0,P.jsx)(qd,{content:"features.passwordProtection.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.passwordProtection.disabledSuccessfully"})),e))).catch((()=>{})).finally((()=>{c(!1)})))}),[n.id,s,i]),f=(0,M.useCallback)((e=>(c(!0),i.updatePasswordProtection(n.id,{credentials:e}).finally((()=>c(!1))).catch((e=>{var t;return Promise.reject((null===(t=null==e?void 0:e.formErrors)||void 0===t?void 0:t.credentials)&&{formErrors:e.formErrors.credentials}||e)})).then((e=>{if(e.status){if(!e.credentials)return Promise.reject();h(e.credentials)}return o(!1),s(e.status?(0,P.jsx)(qd,{content:"features.passwordProtection.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.passwordProtection.disabledSuccessfully"})),e.credentials})))),[n.id,s,i]);if((0,M.useEffect)((()=>{r&&!u&&(c(!0),i.getPasswordProtection(n.id).then((e=>{e.credentials&&h(e.credentials),d(!0)})).catch((()=>o(!1))).finally((()=>c(!1))))}),[n.id,i,u,r]),!(null===(t=n.features.passwordProtection)||void 0===t?void 0:t.available))return null;const g=(0,P.jsx)(Be,{onClick:()=>o(!0),icon:"sliders","data-test-id":"password-protection-settings",className:`${a.baseClassName}-section-item-element`,state:l?"loading":void 0,ghost:!0});return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fl,{checked:!!n.features.passwordProtection.status,loading:l,onChange:m,"data-test-id":"password-protection-toggle",className:`${a.baseClassName}-section-item-element`})," ",(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.title",className:`${a.baseClassName}-section-item-element`})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${a.baseClassName}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"list-ui.instances.forms.password-protection.fullDescription"})})," ",u&&(0,P.jsx)(Fs,{visible:r,onClose:()=>o(!1),target:g,children:(0,P.jsx)(pH,{credentials:p,onSubmit:f})}),!u&&g]})}));class mH extends M.Component{constructor(){super(...arguments),this.renderPlesk=e=>(0,P.jsx)(Be,{onClick:t=>Xd(t,(()=>window.open(e))),icon:"sliders",ghost:!0}),this.renderCpanel=e=>{const{installation:{owner:t},goToUri:n}=this.props,{href:s,onClick:i}=Bv({link:e,inNewWindow:!1,goToUri:n,accountUsername:t.login});return(0,P.jsx)(Be,{onClick:s?e=>Xd(e,(()=>window.open(s))):i,icon:"sliders",ghost:!0})}}render(){const{installation:{installationType:e,owner:t},scheduleTaskSettingsUrl:n}=this.props;return n?UM(e)?this.renderPlesk(n):RM(e)&&(null==t?void 0:t.login)?this.renderCpanel(n):null:null}}const fH=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(mH),gH=mc(void 0,(e=>({getWpCronTakeoverMeta:kb(TS,e)})))((({installation:e,onSubmit:t,loading:n,getWpCronTakeoverMeta:s,baseClassName:i=`${Rp}wp-cron-task-replacement-popover`})=>{const[a,r]=(0,M.useState)(null),[o,l]=(0,M.useState)(!1);return(0,M.useEffect)((()=>{o&&(e.features.wpCronTakeover.taskReplacementStatus&&e.features.wpCronTakeover.status?s(e.id).then((({value:{taskReplacementStatus:e}})=>{r(e?e.meta.managementUri:null)})).catch((()=>{})):r(null))}),[e.id,o,e.features.wpCronTakeover,s]),(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{icon:"sliders",ghost:!0,onClick:()=>l(!0),"data-test-id":"wp-cron-task-replacement-button",className:`${i}-section-item-element`}),"data-test-id":"wp-cron-task-replacement-popover",children:[(0,P.jsx)(fl,{checked:!!e.features.wpCronTakeover.taskReplacementStatus,loading:n,onChange:t,"data-test-id":"wp-cron-task-replacement-switcher",className:`${i}-section-item-element`}),(0,P.jsx)(qd,{content:"controllers.index.detail.wpCronTaskReplacement.title",className:`${i}-section-item-element`}),(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{icon:"question-mark-circle",ghost:!0,className:`${i}-section-item-element`}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.wpCronTaskReplacement.description"})}),e.features.wpCronTakeover.taskReplacementStatus&&e.features.wpCronTakeover.status&&(0,P.jsx)("span",{className:`${i}-section-item-element`,children:(0,P.jsx)(fH,{installation:e,scheduleTaskSettingsUrl:a})})]})})),bH=mc(void 0,(e=>({instanceActions:kb({toggleWpCronTakeoverStatus:kS,toggleWpCronTakeoverTaskStatus:jS},e),addSuccessMessage:kb(Wg,e)})))((({installation:e,addSuccessMessage:t,instanceActions:n,baseClassName:s=`${Rp}wp-cron`})=>{const[i,a]=(0,M.useState)(!1),r=(0,M.useCallback)((s=>{a(!0),n.toggleWpCronTakeoverStatus(e.id,s).finally((()=>a(!1))).then((e=>(t(e?(0,P.jsx)(qd,{content:"features.wpCronTakeover.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.wpCronTakeover.disabledSuccessfully"})),e))).catch((()=>{}))}),[e.id,t,n]),o=(0,M.useCallback)((s=>(a(!0),n.toggleWpCronTakeoverTaskStatus(e.id,s).finally((()=>a(!1))).then((n=>(e.features.wpCronTakeover.status?t(n?(0,P.jsx)(qd,{content:"features.wpCronTakeover.taskReplacement.taskCreatedSuccessfully"}):(0,P.jsx)(qd,{content:"features.wpCronTakeover.taskReplacement.taskRemovedSuccessfully"})):t(n?(0,P.jsx)(qd,{content:"features.wpCronTakeover.taskReplacement.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.wpCronTakeover.taskReplacement.disabledSuccessfully"})),n))).catch((()=>{})))),[e.id,e.features.wpCronTakeover.status,t,n]);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fl,{checked:!!e.features.wpCronTakeover.status,loading:i,onChange:r,"data-test-id":"reschedule-wp-cron-toggle",className:`${s}-section-item-element`})," ",(0,P.jsx)(qd,{content:"controllers.index.detail.disableWpCron.title",className:`${s}-section-item-element`})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{icon:"question-mark-circle",className:`${s}-section-item-element`,ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.disableWpCron.description"})})," ",(0,P.jsx)(gH,{installation:e,onSubmit:o,loading:i})]})})),vH="title",yH="header",xH="subheader";class _H extends M.Component{constructor(e){super(e),this.fetchMaintenanceSettings=()=>{this.props.instanceActions.getMaintenanceSettings(this.props.installation.id).then((e=>{this.setMaintenanceSettingsData(e)})).catch((()=>{this.props.onClose()}))},this.setMaintenanceSettingsData=e=>{const{fullMode:t,timer:n,texts:s,socialNetworks:i,defaultSocialNetworks:a,templateFilePath:r}=e,o={facebook:i.facebook,instagram:i.instagram,twitter:i.twitter},l={facebook:a.facebook,instagram:a.instagram,twitter:a.twitter},c={fullMode:t,isTimerEnabled:n.enabled,title:s.title,header:s.header,subheader:s.subheader,days:n.days,hours:n.hours,minutes:n.minutes,socialNetworks:o,defaultSocialNetworks:l,templateFilePath:r,isLoaded:!0};this.setState(c)},this.isFormProcessing=()=>this.state.isProcessing||this.state.isPreviewProcessing,this.onFullModeEnable=e=>this.setState({fullMode:e}),this.onTimerEnable=e=>this.setState({isTimerEnabled:e}),this.handleFormFieldChange=(e,t)=>this.setState((n=>Object.assign(Object.assign({},n),{[e]:t}))),this.handleSocialLinksFieldChange=(e,t)=>this.setState((n=>({socialNetworks:Object.assign(Object.assign({},n.socialNetworks),{[e]:t})}))),this.handleSubmit=e=>{if(this.state.isProcessing)return;const{onClose:t,installation:{id:n,title:s},instanceActions:{setMaintenanceFullMode:i,updateMaintenanceSettings:a},addSuccessMessage:r}=this.props;this.setState({isProcessing:!0}),this.state.errors&&this.setState({errors:void 0}),a(n,e).then((e=>{i(n,e.fullMode),t(),r((0,P.jsx)(qd,{content:"controllers.index.maintenance-mode.updateSuccess",params:{name:s}}))})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})}))},this.getSocialNetworks=()=>{const e=[];return Object.keys(this.state.socialNetworks).forEach((t=>{e.push((0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:`forms.maintenance-mode.socialNetworks.${t}`}),name:`socialNetworks[${t}]`,onChange:e=>this.handleSocialLinksFieldChange(t,e),size:"fill"},`maintenance-socialNetworks-${t}`))})),e},this.handleRestoreValues=()=>{if(this.state.isTemplateRestoring)return;const{installation:{id:e},instanceActions:{restoreMaintenanceTemplate:t},addSuccessMessage:n}=this.props;this.setState({isTemplateRestoring:!0}),t(e).then((()=>{n((0,P.jsx)(qd,{content:"controllers.index.restore-maintenance-template.success"}))})).catch((()=>{})).finally((()=>this.setState({isTemplateRestoring:!1})))},this.handleDeleteSocialNetworks=()=>{this.setState((e=>{const t=Object.assign({},e.socialNetworks);return Object.keys(t).forEach((e=>{t[e]=""})),{socialNetworks:t}}))},this.handleRestoreSocialNetworks=()=>{const{defaultSocialNetworks:e}=this.state,t={};Object.keys(e).forEach((n=>{t[n]=e[n]})),this.setState({socialNetworks:Object.assign({},t)})},this.handleCustomizeValues=()=>{const{installation:e,instanceActions:{getMaintenanceTemplateCustomizationUrl:t}}=this.props;this.setState({isProcessing:!0},(()=>{t(e.id,e.owner.login).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1})}))}))},this.handlePreview=()=>{const{installation:{id:e},instanceActions:{createMaintenancePreview:t}}=this.props,n=this.getFormValues(),{fullMode:s}=n,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(n,["fullMode"]);this.setState({isPreviewProcessing:!0},(()=>{t(e,i).catch((()=>{})).finally((()=>{this.setState({isPreviewProcessing:!1})}))}))},this.getFormValues=()=>({texts:{title:this.state.title,header:this.state.header,subheader:this.state.subheader},timer:{enabled:this.state.isTimerEnabled,days:this.state.days,hours:this.state.hours,minutes:this.state.minutes},socialNetworks:{facebook:this.state.socialNetworks.facebook,instagram:this.state.socialNetworks.instagram,twitter:this.state.socialNetworks.twitter},fullMode:this.state.fullMode}),this.state={isLoaded:!1,isProcessing:!1,isPreviewProcessing:!1,isTemplateRestoring:!1,fullMode:!1,errors:void 0,isTimerEnabled:!1,title:"",header:"",subheader:"",days:0,hours:0,minutes:0,socialNetworks:{},defaultSocialNetworks:{},templateFilePath:null}}componentDidUpdate(e){this.props.isOpen!==e.isOpen&&this.props.isOpen&&this.fetchMaintenanceSettings()}getIntValue(e,t){if(!e)return 0;const n=parseInt(e.toString());return isNaN(n)?t:n}renderFullModeSection(){return(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.fullMode.description"})}),(0,P.jsx)(Sa,{name:"fullMode",label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.fullMode.enable"}),children:(0,P.jsx)(fl,{"data-test-id":"wpt-maintenance-fullMode-switch",checked:this.state.fullMode,onChange:e=>{this.onFullModeEnable(e)}})})]})}renderTemplateSection(){const{installation:{installationType:e}}=this.props;let t;return t=YM(e)?this.renderRemoteTemplateSectionContent("forms.maintenance-mode.template.remoteDescription"):BM(e)?this.renderRemoteTemplateSectionContent("forms.maintenance-mode.template.remoteAgentDescription"):this.renderLocalTemplateSectionContent(),(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.legend"}),children:t})}renderLocalTemplateSectionContent(){const{installation:{features:{fileManager:e}}}=this.props;return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.localDescription"})}),(0,P.jsxs)(la,{title:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.fieldTitle"}),actions:!0,children:[e.available&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(Be,{onClick:this.handleCustomizeValues,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.customizeButtonTitle"})})," "]}),(0,P.jsx)(Be,{onClick:this.handleRestoreValues,state:this.state.isTemplateRestoring?"loading":void 0,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.restoreButtonTitle"})})]})]})}renderRemoteTemplateSectionContent(e){return(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:e,params:{templateFilePath:this.state.templateFilePath,server:this.props.installation.server}})}),(0,P.jsx)(la,{actions:!0,children:(0,P.jsx)(Be,{onClick:this.handleRestoreValues,state:this.state.isTemplateRestoring?"loading":void 0,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.template.restoreButtonTitle"})})})]})}renderTextSection(){return(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"forms.maintenance-mode.texts.legend"}),vertical:!0,children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.texts.description"})}),(0,P.jsx)(Sr,{size:"fill",label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.texts.title"}),name:`texts[${vH}]`,onChange:e=>this.handleFormFieldChange(vH,e)}),(0,P.jsx)(Sr,{multiline:!0,size:"fill",name:`texts[${yH}]`,label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.texts.header"}),onChange:e=>this.handleFormFieldChange(yH,e),disabled:this.isFormProcessing()}),(0,P.jsx)(Sr,{multiline:!0,size:"fill",name:`texts[${xH}]`,label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.texts.subheader"}),onChange:e=>this.handleFormFieldChange(xH,e),disabled:this.isFormProcessing()})]})}renderTimerSection(){const{baseClassName:e}=this.props;return(0,P.jsxs)(Pa,{vertical:!0,children:[(0,P.jsx)(fl,{"data-test-id":"wpt-maintenance-timer-switch",checked:this.state.isTimerEnabled,onChange:e=>{this.onTimerEnable(e)},children:(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.timer.enabled"})})}),(0,P.jsx)(la,{children:(0,P.jsxs)(ai,{sm:3,gap:"sm",className:`${e}-timers-grid`,children:[(0,P.jsx)(ri,{children:(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.timer.days"}),children:(0,P.jsx)(Ts,{"data-test-id":"wpt-maintenance-timer-days",min:0,max:99,onChange:e=>this.handleFormFieldChange("days",this.getIntValue(e,this.state.days)),disabled:!this.state.isTimerEnabled,value:this.state.days})})}),(0,P.jsx)(ri,{children:(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.timer.hours"}),children:(0,P.jsx)(Ts,{"data-test-id":"wpt-maintenance-timer-hours",min:0,max:23,onChange:e=>this.handleFormFieldChange("hours",this.getIntValue(e,this.state.hours)),disabled:!this.state.isTimerEnabled,value:this.state.hours})})}),(0,P.jsx)(ri,{children:(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"forms.maintenance-mode.timer.minutes"}),children:(0,P.jsx)(Ts,{"data-test-id":"wpt-maintenance-timer-minutes",min:0,max:59,onChange:e=>this.handleFormFieldChange("minutes",this.getIntValue(e,this.state.minutes)),disabled:!this.state.isTimerEnabled,value:this.state.minutes})})})]})})]})}renderSocialLinksSection(){const{baseClassName:e}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Pa,{className:`${e}-social-links-section-1`,title:(0,P.jsx)(qd,{content:"forms.maintenance-mode.socialNetworks.legend"}),children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.socialNetworks.descriptionNoPlaceholders"})}),(0,P.jsxs)(la,{className:`${e}-social-links-section-1-last-item`,title:(0,P.jsx)(qd,{content:"forms.maintenance-mode.socialNetworks.NetworksFieldTitle"}),actions:!0,children:[(0,P.jsx)(Be,{onClick:this.handleDeleteSocialNetworks,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.socialNetworks.removeButtonTitle"})})," ",(0,P.jsx)(Be,{onClick:this.handleRestoreSocialNetworks,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.socialNetworks.restoreButtonTitle"})})]})]}),(0,P.jsx)(Pa,{vertical:!0,children:this.getSocialNetworks()})]})}renderPreviewButton(){return(0,P.jsx)(Be,{"data-test-id":"wpt-maintenance-button-preview",onClick:this.handlePreview,state:this.state.isPreviewProcessing?"loading":void 0,disabled:this.isFormProcessing(),children:(0,P.jsx)(qd,{content:"forms.maintenance-mode.preview"})},"maintenancePreviewButton")}render(){const{installation:{displayTitle:e},isOpen:t,onClose:n}=this.props,{isLoaded:s}=this.state;return(0,P.jsxs)(er,{size:"sm",title:e,subtitle:(0,P.jsx)(qd,{content:"forms.maintenance-mode.maintenanceMode"}),isOpen:t,onClose:n,"data-type":"maintenance-mode",form:s?{onSubmit:this.handleSubmit,values:this.getFormValues(),state:this.isFormProcessing()?"submit":void 0,errors:this.state.errors,applyButton:!1,cancelButton:!1,submitButton:{id:cv,state:this.state.isProcessing?"loading":void 0},additionalButtons:[this.renderPreviewButton()]}:void 0,children:[s&&(0,P.jsxs)(P.Fragment,{children:[this.renderFullModeSection(),this.renderTemplateSection(),this.renderTextSection(),this.renderTimerSection(),this.renderSocialLinksSection()]}),!s&&(0,P.jsx)(Rn,{})]})}}_H.defaultProps={baseClassName:`${Rp}maintenance-mode-drawer`};const SH=mc(null,(e=>({instanceActions:kb({createMaintenancePreview:vS,getMaintenanceTemplateCustomizationUrl:xS,setMaintenanceFullMode:yS,updateMaintenanceSettings:aw,restoreMaintenanceTemplate:rw,getMaintenanceSettings:fk},e),addSuccessMessage:t=>e(Wg(t))})))(_H),wH=mc(null,(e=>({updateMaintenanceStatus:kb(IS,e),addSuccessMessage:kb(Wg,e)})))((e=>{const{installation:t,installation:{id:n,features:{maintenance:s}},updateMaintenanceStatus:i,addSuccessMessage:a,baseClassName:r=`${Rp}maintenance-mode-control`}=e,[o,l]=(0,M.useState)(!1),[c,u]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(fl,{checked:!!s.status,loading:o,onChange:()=>{l(!0);const e=!0===(null==s?void 0:s.status);i(n,!e,e).then((e=>{a((0,P.jsx)(qd,{content:e.status?"controllers.index.toggle-maintenance.enabledSuccessfully":"controllers.index.toggle-maintenance.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{l(!1)}))},"data-test-id":"maintenance-mode-toggle",className:`${r}-section-item-element`})," ",(0,P.jsx)(qd,{content:"controllers.index.detail.fieldMaintenance",className:`${r}-section-item-element`})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${r}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.hintMaintenanceText"})})," ",(0,P.jsx)(Be,{className:`${r}-section-item-element`,icon:"sliders",onClick:e=>Xd(e,(()=>u(!0))),"data-test-id":"maintenance-mode-settings",ghost:!0})]}),(0,P.jsx)(SH,{installation:t,isOpen:c,onClose:()=>u(!1)})]})})),kH=mc((e=>({purchaseDeluxeUrl:e.app.urls.purchaseDeluxeUrl,smartUpdateFeatureUpgradeLink:e.app.urls.featuresBuyLinks[jp]})),(e=>({appActions:kb({disableSmartUpdatePromoForInstances:Zg},e)})))((e=>{const{baseClassName:t=`${Rp}smart-update-trial-popover`,appActions:{disableSmartUpdatePromoForInstances:n},purchaseDeluxeUrl:s,smartUpdateFeatureUpgradeLink:i}=e,[a,r]=(0,M.useState)(!1);return(0,P.jsxs)(Fs,{visible:a,onClose:()=>{r(!1),Rv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON")},target:(0,P.jsx)(we,{intent:"warning",className:`${t}__smart-update__promo-label`,onClick:()=>{r(!0),Rv("SHOW_INSTANCES_SMART_UPDATE_PROMO_POPOVER")},tabIndex:0,children:(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdatePromoLabel"})}),className:`${t}__smart-update__promo-popover`,children:[(0,P.jsx)(qd,{content:"instancesSmartUpdatePromoPopover.text"}),(0,P.jsxs)("div",{className:`${t}__smart-update__promo-popover__button-group`,children:[(0,P.jsx)(Be,{component:"a",href:Uv(i),target:"_blank",onClick:()=>{r(!0),Rv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_TRY_NOW_BUTTON",{target:s})},className:`${t}__smart-update__promo-popover__try-now-button`,intent:"primary",children:(0,P.jsx)(qd,{content:"instancesSmartUpdatePromoPopover.tryNowButton"})}),(0,P.jsx)(ye,{onClick:()=>{r(!1),n(),Rv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_DO_NOT_SHOW_AGAIN_BUTTON")},className:`${t}__smart-update__promo-popover__do-not-show-again-link`,children:(0,P.jsx)(qd,{content:"instancesSmartUpdatePromoPopover.doNotShowAgainLink"})})]})]})}));class jH extends M.Component{constructor(e){super(e),this.smartUpdateUnpaidMarkRef=null,this.updateIsUpdating=()=>{var e,t;const n=null===(t=null===(e=this.props.installation.features.updates)||void 0===e?void 0:e.smart)||void 0===t?void 0:t.taskStatus;n===oN||lN(n)?this.setState({isUpdating:!1}):this.setState({isUpdating:!0})},this.isSmartUpdatesPreviewAvailable=(e,t)=>e&&!!t&&lN(t),this.handleToggleSmartUpdate=e=>{const{installation:{id:t,features:{updates:n}},instancesActions:{setSmartUpdatesStatus:s}}=this.props,{isSmartUpdateSwitchLoading:i}=this.state;i||(n.smart.status||n.smart.applicable?(this.setState({isSmartUpdateSwitchLoading:!0}),s(t,e).then((e=>{this.props.addSuccessMessage(e.status?(0,P.jsx)(qd,{content:"features.updates.smart.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.updates.smart.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{this.setState({isSmartUpdateSwitchLoading:!1})}))):this.smartUpdateUnpaidMarkRef&&this.smartUpdateUnpaidMarkRef.handleTogglePopover())},this.showForecastAvailable=()=>{const{baseClassName:e,onOpenUpdates:t,installation:{features:{updates:n}}}=this.props,s=n.smart.taskStatus&&!!n.smart.initiatedByAutoUpdater;return(0,P.jsx)(Oe,{title:s?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateStartedByAutoUpdaterConflictWarning"}):(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateConflictWarning"}),children:(0,P.jsx)(ye,{className:`${e}-section-item-element`,icon:(0,P.jsx)(be,{size:"16",name:"signal-light",intent:"success"}),onClick:()=>t(),children:(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateTestsDone.title"})})})},this.state={isSmartUpdateSwitchLoading:!1,isUpdating:!1}}componentDidMount(){this.updateIsUpdating()}componentDidUpdate(e){var t,n,s,i;(null===(n=null===(t=this.props.installation.features.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.taskStatus)!==(null===(i=null===(s=e.installation.features.updates)||void 0===s?void 0:s.smart)||void 0===i?void 0:i.taskStatus)&&this.updateIsUpdating()}render(){var e;const{installation:{id:t,installationType:n,status:s,features:{updates:i}},baseClassName:a,showSmartUpdatePromo:r,isSmartUpdatePromoAvailableForInstancesScreen:o}=this.props,{isSmartUpdateSwitchLoading:l,isUpdating:c}=this.state,u=s.multisite,d=!!i.smart.status,p=i.smart.taskStatus,h=this.isSmartUpdatesPreviewAvailable(d,p),m=d?c||h:c||u;let f=(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.description"});return u?f=(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateIsNotAvailableForMultisiteDescription"}):(c||h)&&(f=(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.inProgressDescription"})),(0,P.jsxs)(P.Fragment,{children:[c?(0,P.jsx)(be,{name:"refresh",animation:"spin",size:"16",className:`${a}-section-item-element`}):(0,P.jsx)(fl,{checked:d,disabled:m,loading:l,onChange:this.handleToggleSmartUpdate,"data-test-id":"smart-update-toggle",className:`${a}-section-item-element`})," ",u?(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.title",className:`${a}-section-item-element`}):(0,P.jsx)(FF,{uatAction:Kv,className:`${a}-section-item-element`,ref:e=>this.smartUpdateUnpaidMarkRef=e,installationId:t,installationType:n,applicable:!0===(null===(e=null==i?void 0:i.smart)||void 0===e?void 0:e.applicable),children:(0,P.jsx)(qd,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.title"})})," ",h&&this.showForecastAvailable(),r&&o&&(0,P.jsx)(kH,{}),(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${a}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:f})]})}}jH.defaultProps={baseClassName:`${Rp}smart-updates-control`};const TH=mc((e=>{const{showSmartUpdatePromo:t,isSmartUpdatePromoAvailableForInstancesScreen:n}=e.app.options;return{showSmartUpdatePromo:t,isSmartUpdatePromoAvailableForInstancesScreen:n}}),(e=>({instancesActions:kb({setSmartUpdatesStatus:LS},e),addSuccessMessage:kb(Wg,e)})))(jH);class CH extends M.Component{constructor(e){super(e),this.openDebugForm=()=>{this.props.appActions.checkSession().then((()=>this.setState({isDebugFormOpen:!0})))},this.handleCloseDebugForm=()=>this.setState({isDebugFormOpen:!1}),this.handleToggleIndexing=()=>{const{addSuccessMessage:e,installation:{id:t,features:{indexing:n}}}=this.props;this.setState({isIndexingProcessing:!0}),this.props.instanceActions.setIndexingStatus(t,!n.status).then((t=>{e(t?(0,P.jsx)(qd,{content:"controllers.index.feature.search-indexing.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"controllers.index.feature.search-indexing.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{this.setState({isIndexingProcessing:!1})}))},this.handleToggleDebug=e=>{this.setState({isDebugProcessing:!0}),this.props.instanceActions.toggleDebug(this.props.installation.id,e).then((e=>{this.props.addSuccessMessage(e?(0,P.jsx)(qd,{content:"features.debug.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.debug.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{this.setState({isDebugProcessing:!1})}))},this.handleSetDebugSettings=e=>(this.setState({isDebugProcessing:!0}),this.props.instanceActions.setDebugSettings(this.props.installation.id,e).catch((()=>{})).finally((()=>{this.setState({isDebugProcessing:!1})}))),this.handleNginxCachingChanged=e=>{this.setState({isCachingProcessing:!0}),this.props.instanceActions.setNginxCachingStatus(this.props.installation.id,e).then((()=>{this.props.addSuccessMessage(e?(0,P.jsx)(qd,{content:"features.nginxCaching.enabledSuccessfully"}):(0,P.jsx)(qd,{content:"features.nginxCaching.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{this.setState({isCachingProcessing:!1})}))},this.getSwitchesPanel=()=>{var e;const{installation:t,installation:{features:n,features:{virtualPatches:{restrictions:s}}},baseClassName:i,isWpMode:a,onOpenUpdates:r,showVirtualPatchesUpsellWhenRestrictedViaPlans:o}=this.props,{isIndexingProcessing:l,isCachingProcessing:c,isDebugProcessing:u}=this.state,d=[];if(d.push((0,P.jsxs)(la,{className:`${i}-item`,children:[(0,P.jsx)(fl,{checked:!!n.indexing.status,loading:l,onChange:this.handleToggleIndexing,"data-test-id":"search-engine-indexing-toggle",className:`${i}-section-item-element`})," ",(0,P.jsx)("span",{className:`${i}-section-item-element`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.fieldBlogPublic"})})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${i}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.hintBlogPublicText"})})]},"toggle-index")),null===(e=n.nginxCaching)||void 0===e?void 0:e.available){const{webServerSettingsUrl:e,status:t}=n.nginxCaching;d.push((0,P.jsxs)(la,{className:`${i}-item`,children:[(0,P.jsx)(fl,{checked:!!t,loading:c,onChange:this.handleNginxCachingChanged,"data-test-id":"caching-toggle",className:`${i}-section-item-element`})," ",(0,P.jsx)(qd,{content:"controllers.index.detail.fieldCaching",className:`${i}-section-item-element`})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${i}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.hintCachingText"})})," ",e&&(0,P.jsx)(Be,{className:`${i}-section-item-element`,icon:"sliders",onClick:t=>Xd(t,(()=>window.open(e))),ghost:!0})]},"nginxCaching"))}return d.push((0,P.jsxs)(la,{className:`${i}-item`,children:[(0,P.jsx)(fl,{checked:!!n.debug.status,loading:u,onChange:this.handleToggleDebug,"data-test-id":"debugging-toggle",className:`${i}-section-item-element`})," ",(0,P.jsx)("span",{className:`${i}-section-item-element`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.fieldDebug"})})," ",(0,P.jsx)(Fs,{target:(0,P.jsx)(Be,{className:`${i}-section-item-element`,icon:"question-mark-circle",ghost:!0}),children:(0,P.jsx)(qd,{content:"controllers.index.detail.hintDebugText"})})," ",(0,P.jsx)(Be,{className:`${i}-section-item-element`,icon:"sliders",onClick:e=>Xd(e,this.openDebugForm),"data-test-id":"debugging-settings",ghost:!0})]},"debug")),n.passwordProtection.available&&d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(hH,{installation:this.props.installation,baseClassName:`${i}`})},"password-protection")),n.wpCronTakeover.available&&d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(bH,{installation:this.props.installation,baseClassName:i})},"wp-cron")),n.hotlinkProtection.available&&d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(lH,{installation:this.props.installation,baseClassName:`${i}`})},"hotlink-protection")),a&&(d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(wH,{installation:t,baseClassName:i})},"maintenance-mode")),n.updates.smart.available&&d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(TH,{installation:t,baseClassName:i,onOpenUpdates:r})},"smart-updates"))),!sM(s,this.props.isAdmin,o)&&d.push((0,P.jsx)(la,{className:`${i}-item`,children:(0,P.jsx)(dH,{baseClassName:i,installation:t,onOpenVirtualPatchingUpsellDialog:this.props.onOpenVirtualPatchingUpsellDialog,onOpenVirtualPatchingLicenseInfoDrawer:this.props.onOpenVirtualPatchingLicenseInfoDrawer})},"virtual-patches")),d},this.state={isDebugFormOpen:!1,isIndexingProcessing:!1,isCachingProcessing:!1,isDebugProcessing:!1}}render(){const{isDebugProcessing:e,isDebugFormOpen:t}=this.state,{installation:n,isCollapsible:s}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"instancesList.instanceCard.siteConfiguration"}),className:"wpt-instance-card-section",collapsible:s,children:this.getSwitchesPanel()}),(0,P.jsx)(tH,{isOpen:t,installation:n,isProcessing:e,onSetDebugSettings:this.handleSetDebugSettings,onClose:this.handleCloseDebugForm})]})}}CH.defaultProps={baseClassName:`${Rp}instance-settings-section`,isWpMode:!1};const DH=mc((e=>({isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans})),(e=>({appActions:kb({checkSession:$g},e),instanceActions:kb({toggleDebug:xw,setDebugSettings:yw,setNginxCachingStatus:vw,setIndexingStatus:wS},e),addSuccessMessage:kb(Wg,e)})))(CH);class PH extends M.Component{constructor(e){super(e),this.handleChangeColumns=e=>this.setState((t=>t.columnsCount===e?null:{columnsCount:e})),this.state={columnsCount:null}}render(){const{isWpMode:e,installation:t,enableInstances:n,disableInstances:s,openUpdates:i,onOpenSecurityDialog:a,onOpenSmartPhpUpdates:r,onOpenVirtualPatchingUpsellDialog:o,onOpenVirtualPatchingLicenseInfoDrawer:l}=this.props,{columnsCount:c}=this.state;return(0,P.jsxs)(ai,{gap:"md",minColumnWidth:280,onColumnsChange:this.handleChangeColumns,children:[(0,P.jsx)(ri,{xs:12,sm:12,md:12,lg:6,xl:5,children:(0,P.jsx)(QY,{installation:t,disableInstances:s,enableInstances:n,openUpdates:i,onOpenSecurityDialog:a,onOpenSmartPhpUpdates:r,isCollapsible:null===c||c<2})}),(0,P.jsx)(ri,{xs:12,sm:12,md:12,lg:6,xl:5,children:(0,P.jsx)(DH,{isWpMode:e,installation:t,isCollapsible:null===c||c<2,onOpenUpdates:i,onOpenVirtualPatchingUpsellDialog:o,onOpenVirtualPatchingLicenseInfoDrawer:l})})]})}}PH.defaultProps={onOpenSmartPhpUpdates:void 0,isWpMode:!1};const OH=mc(null,(e=>({instanceActions:kb({setIndexingStatus:wS,toggleHotlinkProtection:CS,synchronizeSiteUrl:ck,setInstanceName:Lw},e)})))(PH),IH=e=>(0,P.jsx)(ye,{className:`${Rp}check-wordpress-integrity-link`,icon:"shield-chain",onClick:e.onOpenCheckWpIntegrityDialog,"data-test-id":"check-wordpress-integrity",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.footer.checkWordPressIntegrity"})});class MH extends M.Component{constructor(){super(...arguments),this.renderCheckUpdates=()=>{const{onOpenUpdatesDialog:e}=this.props;return(0,P.jsx)(ye,{onClick:t=>Xd(t,(()=>e())),"data-test-id":"updates-link",icon:(0,P.jsx)(be,{name:"refresh",size:"16"}),className:`${this.props.baseClassName}-item-link`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.footer.checkUpdates"})})},this.renderAutoUpdatesSettings=()=>{const{installation:{features:{updates:e}},onOpenUpdatesDialog:t}=this.props;return e.autoUpdatesAvailable?(0,P.jsx)(ye,{onClick:e=>Xd(e,(()=>t(nx,!0))),className:`${this.props.baseClassName}-item-link`,children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.footer.autoUpdateSettings.title"})}):null},this.renderMaintenance=()=>{const{installation:e,baseClassName:t}=this.props;return(0,P.jsx)(la,{children:(0,P.jsx)(wH,{installation:e,baseClassName:t})},"maintenance")},this.renderCheckWordPressIntegrity=()=>{const{installation:{features:{integrity:e}},onOpenCheckWordPressIntegrityDialog:t,baseClassName:n}=this.props;return e.available?(0,P.jsx)("div",{className:`${n}__check-wordpress-integrity`,children:(0,P.jsx)(IH,{onOpenCheckWpIntegrityDialog:t})}):null},this.renderSmartUpdates=()=>{const{installation:e,installation:{features:{updates:{autoUpdatesAvailable:t,smart:{available:n}}}},baseClassName:s,onOpenUpdatesDialog:i}=this.props;return t&&n?(0,P.jsx)(Ar,{title:(0,P.jsx)(la,{children:(0,P.jsx)(TH,{installation:e,baseClassName:s,onOpenUpdates:i})},"smart-update-toggle")}):null}}render(){const{baseClassName:e}=this.props;return(0,P.jsx)("div",{className:e,children:(0,P.jsxs)("div",{className:`${e}__list`,children:[this.renderCheckUpdates(),this.renderAutoUpdatesSettings(),this.renderSmartUpdates(),(0,P.jsx)(Ar,{title:(0,P.jsxs)(P.Fragment,{children:[this.renderCheckWordPressIntegrity()," ",this.renderMaintenance()]})})]})})}}MH.defaultProps={baseClassName:`${Rp}instance-card-footer`};const LH=MH,AH=e=>{const{installation:{status:{unsupported:t},version:n},upgradingInstanceInstructionsUrl:s}=e;return n&&t?(0,P.jsxs)("div",{className:`${Rp}unsupported-instance-details`,children:[(0,P.jsx)(ml,{intent:"danger",children:(0,P.jsx)(qd,{content:"controllers.index.detail.unsupportedInstance.description",params:{version:n}})}),s&&(0,P.jsxs)("div",{children:[(0,P.jsx)(qd,{content:"controllers.index.detail.unsupportedInstance.upgradingInstanceInstructionsLabel"}),":",(0,P.jsx)("br",{}),(0,P.jsx)(Cs,{href:s,children:s})]}),(0,P.jsx)(OY,{installation:e.installation})]}):null},EH=mc(null,(e=>({instancesActions:kb({getAvailablePhpHandlers:gS},e)})))((e=>{const[t,n]=(0,M.useState)(),[s,i]=(0,M.useState)(),[a]=(0,M.useState)(),[r,o]=(0,M.useState)(!1),l=zd(),{installation:c,installation:{id:u,features:{php:{handler:d}}},instancesActions:{getAvailablePhpHandlers:p}}=e,h=c.features.php.settingsUrl?(0,P.jsx)(NY,{installation:Object.assign(Object.assign({},c),{features:Object.assign(Object.assign({},c.features),{php:Object.assign(Object.assign({},c.features.php),{settingsUrl:c.features.php.settingsUrl})})})}):null;return(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{onClick:()=>{void 0===s&&(o(!0),p(u).then((e=>i(e))).catch((()=>{})).finally((()=>o(!1))))},children:(0,P.jsx)(qd,{content:"instancesList.phpSelector.changePhpHandlerButton"})}),placement:"bottom",children:[r&&(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"instancesList.phpSelector.loadingListOfPhpHandlers"})}),!r&&s&&s.length>0&&(0,P.jsxs)(La,{vertical:!0,submitButton:{children:(0,P.jsx)(qd,{content:t?"phpVersionsForm.submitting":"phpVersionsForm.submit"}),intent:"primary",size:"md"},applyButton:!1,cancelButton:!1,state:t,values:{phpHandler:a},onSubmit:({phpHandler:t})=>{t&&(n("submit"),e.onSwitchPHPHandler(t).finally((()=>{n(void 0)})))},children:[d&&(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"phpVersionsForm.currentVersion.label"}),children:(0,P.jsx)(ei,{children:d.name})}),(0,P.jsx)(Lr,{name:"phpHandler",label:l("phpVersionsForm.versions.label"),children:s.map((e=>(0,P.jsx)(Pr,{value:e.identifier,children:e.name},e.identifier)))})]}),!r&&s&&0===s.length&&(0,P.jsx)(xe,{intent:"warning",children:(0,P.jsx)(qd,{content:"instancesList.phpSelector.noPhpHandlers"})}),h]})})),RH=e=>{var t;return(0,P.jsxs)(qi,{gap:"md",children:[(0,P.jsx)(Ki,{width:"300px",children:(0,P.jsx)(pY,{installation:e.installation})}),(0,P.jsxs)(Ki,{fill:!0,className:`${Rp}unsupported-wide-column`,children:[(0,P.jsxs)(ml,{intent:"danger",children:[(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"instancesList.issues.errorUnsupportedPHP.title",params:{phpVersion:null===(t=e.installation.features.php.handler)||void 0===t?void 0:t.version}})})," ",(0,P.jsx)(qd,{content:"instancesList.issues.errorUnsupportedPHP.description",unsafe:!0})]}),(0,P.jsx)(EH,{installation:e.installation,onSwitchPHPHandler:e.onChangePHPHandler}),(0,P.jsx)(OY,{installation:e.installation})]})]})},UH=(e,t=null)=>()=>ag.getInstanceActionLogRecords(e,t),NH=e=>t=>ag.onOpenActionLogBrowser(e).then((({data:e})=>(t(Vg(e)),e))),FH=e=>()=>ag.onEnableRealTimeUpdates(e),YH=e=>()=>ag.getInstanceActionLogRotationSettings(e),HH=(e,t)=>n=>ag.saveInstanceActionLogRotationSettings(e,t).then((({data:e})=>(n(Vg(e)),e)));var BH=r(59386),VH=r.n(BH);const $H={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function WH(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const zH={date:WH({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:WH({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:WH({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},qH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function GH(e){return(t,n)=>{let s;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=n?.width?String(n.width):t;s=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=n?.width?String(n.width):e.defaultWidth;s=e.values[i]||e.values[t]}return s[e.argumentCallback?e.argumentCallback(t):t]}}function KH(e){return(t,n={})=>{const s=n.width,i=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const r=a[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(r))return t}(o):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(r))return t}(o);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(r.length)}}}var XH;const QH={code:"en-US",formatDistance:(e,t,n)=>{let s;const i=$H[e];return s="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s},formatLong:zH,formatRelative:(e,t,n,s)=>qH[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:GH({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:GH({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:GH({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:GH({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:GH({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(XH={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(XH.matchPattern);if(!n)return null;const s=n[0],i=e.match(XH.parsePattern);if(!i)return null;let a=XH.valueCallback?XH.valueCallback(i[0]):i[0];return a=t.valueCallback?t.valueCallback(a):a,{value:a,rest:e.slice(s.length)}}),era:KH({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:KH({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:KH({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:KH({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:KH({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},JH=(0,M.forwardRef)((({value:e,onClick:t,disabled:n},s)=>{const i=zd();return(0,P.jsx)("span",{ref:s,children:(0,P.jsx)(Ss,{disabled:n,placeholder:i("actionLog.filterDate.dateFrom"),onClick:t,value:e,readOnly:!0})})}));JH.displayName="InputDateFrom";const ZH=(0,M.forwardRef)((({value:e,onClick:t,disabled:n},s)=>{const i=zd();return(0,P.jsx)("span",{ref:s,children:(0,P.jsx)(Ss,{disabled:n,placeholder:i("actionLog.filterDate.dateTo"),onClick:t,value:e,readOnly:!0})})}));ZH.displayName="InputDateTo";const eB=({title:e,disabled:t,onClick:n,onClear:s})=>{const i=zd();return(0,P.jsx)(Ss,{size:"fill",disabled:t,placeholder:i("actionLog.filterDate.inputDate"),readOnly:!0,suffix:(0,P.jsx)(Be,{ghost:!0,icon:"cross-mark",disabled:t,onClick:s}),onClick:n,value:e?i(e):""})},tB=e=>{const{filterDateFrom:t=null,filterDateTo:n=null,onChangeDateFrom:s,onChangeDateTo:i,disabled:a=!1,title:r="",onChangeTitle:o,isVisible:l=!1,onToggleDateFilterVisibility:c}=e,u=zd(),d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map((e=>{const t=u(`actionLog.filterDate.months.${e}`);return"string"==typeof t?t:e})),p=["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>{const t=u(`actionLog.filterDate.days.${e}`);return"string"==typeof t?t:e})),h="yyyy-MM-dd HH:mm:ss",m="HH:mm",f=Object.assign(Object.assign({},QH),{localize:Object.assign(Object.assign({},QH.localize),{month:e=>d[e],day:e=>p[e]}),options:{weekStartsOn:(()=>{const e=u("actionLog.filterDate.firstDayOfWeek"),t=parseInt("string"==typeof e?e:"0");return(e=>e>=0&&e<=6)(t)?t:0})()}});return(0,P.jsxs)(Fs,{placement:"bottom-right",visible:l,canCloseOnOutsideClick:!1,wide:!0,target:(0,P.jsx)(eB,{disabled:a,title:r,onClick:e=>{e.stopPropagation(),c()},onClear:e=>{e.stopPropagation(),c(),o(""),s(null),i(null)}}),onClick:e=>e.stopPropagation(),onClose:c,children:[(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"Filter Date From",children:(0,P.jsx)(VH(),{showTimeInput:!0,isClearable:!0,selected:t?_x().unix(t).toDate():null,onChange:e=>{o("actionLog.filterDate.range"),s(null===e?null:_x()(e).unix())},timeInputLabel:u("actionLog.filterDate.timeInputLabel"),dateFormat:h,timeFormat:m,customInput:(0,P.jsx)(JH,{disabled:a}),locale:f})}),(0,P.jsx)(Ii,{title:"Filter Date To",children:(0,P.jsx)(VH(),{showTimeInput:!0,isClearable:!0,selected:n?_x().unix(n).toDate():null,onChange:e=>{o("actionLog.filterDate.range"),i(null===e?null:_x()(e).unix())},timeInputLabel:u("actionLog.filterDate.timeInputLabel"),dateFormat:h,timeFormat:m,customInput:(0,P.jsx)(ZH,{disabled:a}),locale:f})})]}),(0,P.jsxs)(Ve,{children:[[{key:"hour",title:"actionLog.filterDate.hour",from:_x()().subtract(1,"hour"),to:_x()()},{key:"today",title:"actionLog.filterDate.today",from:_x()().startOf("day"),to:_x()()},{key:"yesterday",title:"actionLog.filterDate.yesterday",from:_x()().startOf("day").subtract(1,"day"),to:_x()().startOf("day").subtract(1,"second")},{key:"week",title:"actionLog.filterDate.week",from:_x()().subtract(1,"week"),to:_x()()}].map((e=>(0,P.jsx)(Be,{disabled:a,onClick:()=>{c(),o(e.title),s(e.from.unix()),i(e.to.unix())},children:(0,P.jsx)(qd,{content:e.title})},e.key))),(0,P.jsx)(Be,{intent:"primary",onClick:()=>c(),children:(0,P.jsx)(qd,{content:"actionLog.filterDate.closeButton"})})]})]})},nB="size",sB="time",iB="daily";class aB extends M.Component{constructor(e){super(e),this.loadLogRotationSettings=()=>{const{actionLogActions:{loadLogRotationSettings:e},installation:{id:t},appActions:{addErrorMessage:n}}=this.props;return this.setState({isLoadingLogRotationSettings:!0}),e(t).then((({data:e})=>{if(!e)return null;const{status:t,data:s}=e;return t===fp?s&&s.actionLogRotationOptions?s.actionLogRotationOptions:null:(e.message&&n(e.message),null)})).finally((()=>{this.setState({isLoadingLogRotationSettings:!1})}))},this.handleSubmit=()=>{const{alwaysRotateLogs:e,maxNumberOfLogFiles:t,logRotationFileSize:n,logRotationTimePeriod:s,logRotationType:i,compressLogFiles:a}=this.state,{actionLogActions:{saveLogRotationSettings:r},installation:{id:o},onCloseLogRotationSettingsDrawer:l}=this.props,c={};0===n&&(c.logRotationFileSize={minValue:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationFileSizeMinValueError",params:{minValue:0}})}),0===t&&(c.maxNumberOfLogFiles={minValue:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.maxNumberOfLogFilesMinValueError",params:{minValue:0}})}),Object.keys(c).length?this.setState({formErrors:c}):r(o,{enabled:e,rotateCount:t,size:n,timePeriod:s,type:i,compress:a}).finally(l)},this.getDrawerContent=()=>{const{compressLogFiles:e,alwaysRotateLogs:t,logRotationType:n,logRotationTimePeriod:s,formErrors:i,isLoadingLogRotationSettings:a,maxNumberOfLogFiles:r,logRotationFileSize:o}=this.state,{baseClassName:l}=this.props;return a?(0,P.jsx)(Rn,{}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationCondition"}),name:"logRotationCondition",children:[(0,P.jsx)("div",{className:`${l}__always-rotate-logs`,children:(0,P.jsx)(ut,{checked:t,onChange:e=>this.setState({alwaysRotateLogs:e}),children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.alwaysRotateLogs"})})}),(0,P.jsx)("p",{children:(0,P.jsx)(Vi,{name:"logRotationType",checked:n===nB,onChange:()=>this.setState({logRotationType:nB}),disabled:!t,children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationBySize"})})}),(0,P.jsxs)(Sa,{name:"logRotationFileSize",label:null,children:[(0,P.jsx)(Ts,{className:`${l}__log-file-size`,defaultValue:200,step:100,min:0,disabled:!t||n!==nB,value:o,onChange:e=>this.setState({logRotationFileSize:e,formErrors:Object.assign(Object.assign({},i),{logRotationFileSize:{}})})})," ",(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.kbUnit"})]}),(0,P.jsx)("p",{children:(0,P.jsx)(Vi,{name:"logRotationType",checked:n===sB,onChange:()=>this.setState({logRotationType:sB}),disabled:!t,children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationByTime"})})}),(0,P.jsx)("div",{children:(0,P.jsxs)(Mr,{className:`${l}__log-rotation-by-tyme-select`,size:"sm",value:s,onChange:e=>this.setState({logRotationTimePeriod:e}),disabled:!t||n!==sB,children:[(0,P.jsx)(Pr,{value:iB,label:"daily",children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationDaily"})}),(0,P.jsx)(Pr,{value:"weekly",label:"weekly",children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationWeekly"})}),(0,P.jsx)(Pr,{value:"monthly",label:"monthly",children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationMonthly"})}),(0,P.jsx)(Pr,{value:"yearly",label:"yearly",children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.logRotationYearly"})})]})})]}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.maxNumberOfLogFiles"}),name:"maxNumberOfLogFiles",children:(0,P.jsx)(Ts,{defaultValue:10,min:0,disabled:!t,value:r,onChange:e=>this.setState({maxNumberOfLogFiles:e,formErrors:Object.assign(Object.assign({},i),{maxNumberOfLogFiles:{}})})})}),(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.diskSpaceEconomy"}),name:"diskSpaceEconomy",children:[(0,P.jsx)("p",{children:(0,P.jsx)(Vi,{name:"diskSpaceEconomy",checked:e,onChange:()=>this.setState({compressLogFiles:!0}),disabled:!t,children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.compressLogFiles"})})}),(0,P.jsx)("p",{children:(0,P.jsx)(Vi,{name:"diskSpaceEconomy",checked:!e,onChange:()=>this.setState({compressLogFiles:!1}),disabled:!t,children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.doNotCompressLogFiles"})})})]})]})},this.state={isLoadingLogRotationSettings:!1,alwaysRotateLogs:!0,maxNumberOfLogFiles:10,logRotationFileSize:200,logRotationTimePeriod:iB,logRotationType:nB,compressLogFiles:!0,formErrors:{}}}componentDidUpdate(e,t){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData()}handleOpenAndLoadData(){this.loadLogRotationSettings().then((e=>{e&&this.setState({alwaysRotateLogs:e.enabled,maxNumberOfLogFiles:e.rotateCount,logRotationFileSize:e.size,logRotationTimePeriod:e.timePeriod?e.timePeriod:iB,logRotationType:e.type,compressLogFiles:e.compress})}))}render(){const{formErrors:e}=this.state,{isOpen:t,onCloseLogRotationSettingsDrawer:n}=this.props;return(0,P.jsx)(er,{title:(0,P.jsx)(qd,{content:"actionLog.logRotationSettingsDrawerTitle"}),onClose:n,size:"sm",isOpen:t,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"actionLog.logRotationSettings.saveButton"})},errors:e},"data-type":"log-rotation-settings-drawer",children:this.getDrawerContent()})}}aB.defaultProps={baseClassName:`${Rp}log-rotation-settings-drawer`};const rB=mc(null,(e=>({actionLogActions:kb({loadLogRotationSettings:YH,saveLogRotationSettings:HH},e),appActions:kb({addErrorMessage:qg},e)})))(aB),oB="error",lB="warning",cB="info",uB="severity",dB="actor",pB="message",hB="dateFrom",mB="dateTo",fB=e=>!e||"scrollHeight"in e&&e.scrollHeight>e.clientHeight?e:fB(e.parentNode),gB=({onChange:e,message:t="",className:n})=>{const s=zd();return(0,P.jsx)(Ss,{type:"text",placeholder:s("actionLog.list.messageColumnTitle"),size:"fill",onChange:t=>{t.persist(),e(t.currentTarget.value)},className:n,suffix:(0,P.jsx)(Be,{ghost:!0,fill:!0,icon:"cross-mark",onClick:()=>e("")}),value:t})},bB=[{eventUid:sp(4),isFake:!0,datetime:"",severity:"",event:"",actor:"",message:"",hashSum:null}];class vB extends M.Component{constructor(e){super(e),this.getListData=e=>e.map((e=>Object.assign(Object.assign({},e),{eventUid:sp(15),ref:(0,M.createRef)(),isFake:!1}))),this.getActors=e=>Array.isArray(e)?e.reduce(((e,t)=>(t.actor&&-1===e.indexOf(t.actor)&&e.push(t.actor),e)),[]):[],this.getColumns=()=>[{key:"datetime",className:`${this.props.baseClassName}__datetime-column-header`,title:(0,P.jsx)(tB,{onChangeDateFrom:e=>{const{filters:{[hB]:t,[mB]:n}}=this.state;t!==e&&this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[hB]:e})})),(()=>this.setState({listData:this.fetchListData()}))),e||n||this.setState({dateFilterTitle:void 0})},onChangeDateTo:e=>{const{filters:{[hB]:t,[mB]:n}}=this.state;n!==e&&this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[mB]:e})})),(()=>this.setState({listData:this.fetchListData()}))),e||t||this.setState({dateFilterTitle:void 0})},title:this.state.dateFilterTitle,onChangeTitle:e=>this.setState({dateFilterTitle:e}),filterDateFrom:this.state.filters[hB],filterDateTo:this.state.filters[mB],isVisible:this.state.isDateFilterVisible,onToggleDateFilterVisibility:this.handleToggleDateFilterVisibility}),type:"controls",render:e=>e.isFake?(0,P.jsx)(qd,{content:"actionLog.list.noItemsFound"}):_x().parseZone(e.datetime).local().format("YYYY-MM-DD HH:mm:ss"),sortable:!0,sort:(e,t)=>_x().parseZone(e.datetime).isAfter(_x().parseZone(t.datetime))?1:_x().parseZone(e.datetime).isBefore(_x().parseZone(t.datetime))?-1:0},{key:"severity",className:`${this.props.baseClassName}__severity-column-header`,title:(0,P.jsxs)(Mr,{placeholder:(0,P.jsx)(qd,{content:"actionLog.list.severityColumnTitle"}),size:"sm",clearable:!0,onChange:e=>this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[uB]:e})})),(()=>this.setState({listData:this.fetchListData()}))),value:this.state.filters[uB],"data-test-id":"action-log-filter-severity",children:[(0,P.jsx)(Pr,{value:oB,label:oB,children:(0,P.jsx)(we,{intent:"danger",children:oB})}),(0,P.jsx)(Pr,{value:lB,label:lB,children:(0,P.jsx)(we,{intent:"warning",children:lB})}),(0,P.jsx)(Pr,{value:cB,label:cB,children:(0,P.jsx)(we,{intent:"info",children:cB})})]}),type:"controls",render:e=>{if(!e.severity)return"";let t;switch(e.severity.toLowerCase()){case oB:t="danger";break;case lB:t="warning";break;case cB:t="info";break;default:t="inactive"}return(0,P.jsx)(we,{className:`${this.props.baseClassName}__severity-label`,intent:t,children:e.severity},e.severity)},align:"center"},{key:"event",className:`${this.props.baseClassName}__event-column-header`,title:(0,P.jsx)(qd,{content:"actionLog.list.eventColumnTitle"}),type:"title"},{key:"actor",className:`${this.props.baseClassName}__actor-column-header`,title:(0,P.jsx)(Mr,{placeholder:(0,P.jsx)(qd,{content:"actionLog.list.actorColumnTitle"}),size:"md",clearable:!0,onChange:e=>this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[dB]:e})})),(()=>this.setState({listData:this.fetchListData()}))),value:this.state.filters[dB],disabled:0===this.state.actors.length,"data-test-id":"action-log-filter-actor",children:this.state.actors.map((e=>(0,P.jsx)(Pr,{value:e,children:e},e)))}),type:"controls",render:e=>(0,P.jsx)(ei,{className:`${this.props.baseClassName}__actor-column`,children:e.actor})},{key:"message",className:`${this.props.baseClassName}__message-column-header`,title:(0,P.jsx)(gB,{message:this.state.filters[pB]?this.state.filters[pB]:"",className:`${this.props.baseClassName}__message-column`,onChange:e=>{this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[pB]:e})})),(()=>this.setState({listData:this.fetchListData()})))}}),type:"controls",render:e=>(0,P.jsx)(ei,{className:`${this.props.baseClassName}__message-column`,children:this.renderMessage(e.eventUid,e.message)})},{key:"actions",className:`${this.props.baseClassName}__actions-column-header`,type:"actions",render:e=>e.isFake||(0,P.jsx)("div",{ref:e.ref,children:(0,P.jsx)(Zr,{children:this.hasFilters()&&(0,P.jsx)(Jr,{icon:"arrows-outward",primary:!0,onClick:()=>this.handleTransitionTo(e.ref),"data-test-id":"action-log-actions-go-to-record",children:(0,P.jsx)(qd,{content:"actionLog.list.actions.goToRecord"})})})})}],this.handleTransitionTo=e=>{var t;this.ref=e,this.refOffset=(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0,this.setState({filters:{}})},this.renderMessage=(e,t)=>t.length<=300?t:this.state.showFullMessage[e]?(0,P.jsxs)(P.Fragment,{children:[t," ",(0,P.jsx)(ye,{onClick:()=>this.setState((t=>({showFullMessage:Object.assign(Object.assign({},t.showFullMessage),{[e]:!1})}))),children:(0,P.jsx)(qd,{content:"actionLog.list.messageShowLess"})})]}):(0,P.jsxs)(P.Fragment,{children:[t.substring(0,300),"... ",(0,P.jsx)(ye,{onClick:()=>this.setState((t=>({showFullMessage:Object.assign(Object.assign({},t.showFullMessage),{[e]:!0})}))),children:(0,P.jsx)(qd,{content:"actionLog.list.messageShowMore"})})]}),this.getToolbar=()=>(0,P.jsxs)(Mi,{children:[(0,P.jsxs)(Ii,{title:"Refresh",groupable:!1,children:[(0,P.jsx)(ye,{children:(0,P.jsx)(fl,{onChange:()=>this.handleToggleAutoRefreshEnabled(),checked:this.state.isAutoRefreshEnabled,tooltip:(0,P.jsx)(qd,{content:"actionLog.toolbar.autoRefreshSwitcher.tooltip",params:{seconds:this.props.actionLogRealTimeUpdatePeriod}})})}),(0,P.jsx)("span",{children:(0,P.jsx)(qd,{content:"actionLog.toolbar.autoRefreshSwitcher"})}),(0,P.jsx)(Be,{onClick:()=>this.handleRefresh(),icon:(0,P.jsx)(be,{name:"refresh",animation:this.state.isActionLogRecordsListLoading||this.state.isAutoRefreshEnabled?"spin":void 0}),children:(0,P.jsx)(qd,{content:"actionLog.toolbar.refreshButton"})}),this.state.isAutoRefreshEnabled&&(0,P.jsx)(Be,{onClick:()=>this.handleClearItems(),icon:"clean",children:(0,P.jsx)(qd,{content:"actionLog.toolbar.clearButton"})})]}),(0,P.jsx)(ui,{}),(0,P.jsx)(Ii,{title:"Download as file",groupable:!1,children:(0,P.jsx)(ye,{icon:"arrow-down-tray",href:`${this.props.apiUrl}/action-logs-file/id/${this.props.installation.id}`,children:(0,P.jsx)(qd,{content:"actionLog.toolbar.linkDownloadLogFile"})})}),!FM(this.props.installation.installationType)&&(0,P.jsx)(Ii,{title:"Log Rotation",groupable:!1,children:(0,P.jsx)(Be,{onClick:()=>this.handleOpenLogRotationSettingsDrawer(),children:(0,P.jsx)(qd,{content:"actionLog.toolbar.logRotationButton"})})})]}),this.handleToggleAutoRefreshEnabled=()=>{this.setState((e=>({isAutoRefreshEnabled:!e.isAutoRefreshEnabled})),(()=>{!0===this.state.isAutoRefreshEnabled?(this.props.actionLogActions.onEnableRealTimeUpdates(this.props.installation.id),this.handleAutoRefresh(),this.updateInterval=window.setInterval((()=>{this.handleAutoRefresh()}),1e3*this.props.actionLogRealTimeUpdatePeriod)):(clearInterval(this.updateInterval),this.setState({lastClearedRecord:null}))}))},this.handleToggleDateFilterVisibility=()=>this.setState((e=>({isDateFilterVisible:!e.isDateFilterVisible}))),this.loadInstanceActionLogRecords=(e=!0,t=null)=>{const{actionLogActions:{loadInstanceActionLogRecords:n},installation:{id:s},appActions:{addErrorMessage:i}}=this.props;return this.setState({isActionLogRecordsListLoading:e}),n(s,t).then((({data:e})=>{if(!e)return[];const{status:t,data:n}=e;return t===fp?n&&n.actionLogRecords?n.actionLogRecords:[]:(e.message&&i(e.message),[])})).finally((()=>{this.setState({isActionLogRecordsListLoading:!1})}))},this.handleClearItems=()=>{this.setState({lastClearedRecord:this.getLastRecord()},(()=>{this.setState({listData:this.fetchListData()})}))},this.handleOpenLogRotationSettingsDrawer=()=>this.setState({isLogRotationSettingsDrawerVisible:!0}),this.handleCloseLogRotationSettingsDrawer=()=>this.setState({isLogRotationSettingsDrawerVisible:!1}),this.hasFilters=()=>Object.values(this.state.filters).some((e=>!!e)),this.fetchListData=()=>{const{filters:e,initialListData:t,lastClearedRecord:n}=this.state;let s=[...t||[]];if(null!==n&&(s=s.slice(s.indexOf(n)+1)),Object.keys(this.state.filters).length){const t=s.filter((({datetime:t,severity:n,actor:s,message:i,isFake:a})=>!(!a&&(e[uB]&&-1===e[uB].indexOf(n.toLowerCase())||e[dB]&&e[dB]!==s||e[pB]&&-1===i.toLowerCase().indexOf(e[pB].toLowerCase())||e[hB]&&_x()(t).isBefore(_x().unix(e[hB]))||e[mB]&&_x()(t).isAfter(_x().unix(e[mB]))))));return t.length?t:bB}return 0===s.length&&(s=bB),s},this.handleRefresh=(e=!0)=>{const{isAutoRefreshEnabled:t}=this.state;let n=null;const s=this.getLastRecord();null!==s&&t&&(n=s.hashSum),this.loadInstanceActionLogRecords(e,n).then((e=>{this.setState((n=>{const s=[...t&&n.initialListData?n.initialListData:[],...this.getListData(e)];return{actors:this.getActors(s),initialListData:s}}),(()=>this.setState({listData:this.fetchListData()})))}))},this.getLastRecord=()=>{const{initialListData:e}=this.state;return e&&e.length>0?e[e.length-1]:null},this.renderLogRotationSettingsDrawer=()=>this.props.isOpen?(0,P.jsx)(rB,{isOpen:this.state.isLogRotationSettingsDrawerVisible,installation:this.props.installation,onCloseLogRotationSettingsDrawer:this.handleCloseLogRotationSettingsDrawer}):null,this.ref=null,this.refOffset=0,this.state={initialListData:null,listData:null,actors:[],isActionLogRecordsListLoading:!1,filters:{},showFullMessage:{},isAutoRefreshEnabled:!1,lastClearedRecord:null,dateFilterTitle:void 0,isDateFilterVisible:!1,isLogRotationSettingsDrawerVisible:!1}}componentDidMount(){this.props.isOpen&&this.handleLoadData()}componentDidUpdate(e,t){var n;if(!e.isOpen&&this.props.isOpen&&this.handleLoadData(),e.isOpen&&!this.props.isOpen&&this.resetStateOnClose(),this.state.filters[hB]||this.state.filters[mB]||!this.state.dateFilterTitle||this.setState({dateFilterTitle:void 0}),this.state.filters!==t.filters&&this.state.listData&&this.state.listData===t.listData)this.setState({listData:this.fetchListData()});else if(null===(n=this.ref)||void 0===n?void 0:n.current){this.ref.current.scrollIntoView();const e=fB(this.ref.current);e&&e.scrollBy(0,this.ref.current.getBoundingClientRect().top-this.refOffset),this.ref=null}}componentWillUnmount(){clearInterval(this.updateInterval)}handleLoadData(){this.loadInstanceActionLogRecords().then((e=>{this.setState({actors:this.getActors(e),initialListData:this.getListData(e)},(()=>{this.setState({listData:this.fetchListData()})}))}))}resetStateOnClose(){this.setState({isAutoRefreshEnabled:!1})}handleAutoRefresh(){this.state.isAutoRefreshEnabled&&this.handleRefresh(!1)}render(){const{isActionLogRecordsListLoading:e,listData:t}=this.state,{installation:{url:n},onCloseActionLogDrawer:s,isOpen:i}=this.props;return(0,P.jsxs)(er,{className:this.props.baseClassName,title:(0,P.jsx)(qd,{content:"actionLog.drawerTitle",params:{instanceUrl:n}}),onClose:()=>s(),size:"lg",isOpen:i,"data-type":"action-log-drawer",children:[t?(0,P.jsx)(Qr,{data:t,loading:e,columns:this.getColumns(),rowKey:e=>e.eventUid,toolbar:this.getToolbar(),sortColumn:"datetime",sortDirection:"DESC"}):(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"actionLog.actionlogRecordsLoading"})}),this.renderLogRotationSettingsDrawer()]})}}vB.defaultProps={baseClassName:`${Rp}action-log-drawer`};const yB=mc((e=>({actionLogRealTimeUpdatePeriod:e.app.options.actionLogRealTimeUpdatePeriod,apiUrl:e.app.urls.apiUrl})),(e=>({actionLogActions:kb({loadInstanceActionLogRecords:UH,onEnableRealTimeUpdates:FH},e),appActions:kb({addErrorMessage:qg},e)})))(vB);class xB extends M.Component{constructor(e){super(e),this.getBackupLink=()=>{const{installation:{features:{backups:{panelBackupsAvailable:e,wptBackupsAvailable:t}}},onOpenBackupDrawer:n}=this.props;return t?(0,P.jsx)(Cs,{onClick:n,children:(0,P.jsx)(qd,{content:"reinstallCoreConfirmationDialog.backupLink"})}):e?(0,P.jsx)(_L,{installation:this.props.installation}):(0,P.jsx)(qd,{content:"reinstallCoreConfirmationDialog.backupLink"})},this.state={}}render(){const{onCloseReinstallCoreConfirmationDialog:e,onReinstallCore:t,isOpen:n}=this.props;return(0,P.jsx)(Ea,{size:"xs",isOpen:n,onClose:e,buttons:[(0,P.jsx)(Be,{intent:"danger",onClick:()=>{t(),e()},children:(0,P.jsx)(qd,{content:"reinstallCoreConfirmationDialog.reinstallCoreButton"})},"reinstallCoreButton")],cancelButton:{children:(0,P.jsx)(qd,{content:"reinstallCoreConfirmationDialog.cancelButton"})},children:(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"reinstallCoreConfirmationDialog.description",params:{link:this.getBackupLink()}})})})}}const _B=xB,SB=e=>()=>rg.verifyChecksums(e),wB=e=>t=>rg.reinstallCore(e).then((({data:n})=>(t(Vg(n,(()=>t(kB(n.data.task,e))))),n))),kB=(e,t)=>n=>n({type:dD,task:e,instanceId:t}),jB=e=>t=>Ug.getIntegrity(e).then((({data:n})=>(t({type:Jy,installationId:e,available:n.available}),n))).catch((e=>(t(Bg(e)),Promise.reject())));class TB extends M.Component{constructor(e){super(e),this.fetchAndProcessExistingReinstallCoreBackgroundTask=(e,t)=>{const{backgroundTasksActions:{fetchBackgroundTask:n}}=this.props;n(ig.getTaskData,e,t).then((e=>{null!==e?qD(e)?this.handleOnCompleteReinstallCoreBackgroundTask():this.setState({reinstallCoreBackgroundTask:e,reinstallCoreBackgroundTaskId:e.id,isReinstallCoreBackgroundTaskProcessing:!0,isReinstallCoreBackgroundTaskProgressVisible:!0}):this.setState({reinstallCoreBackgroundTask:null,reinstallCoreBackgroundTaskId:null,isReinstallCoreBackgroundTaskProcessing:!1,isReinstallCoreBackgroundTaskProgressVisible:!1})}))},this.handleOnCompleteReinstallCoreBackgroundTask=()=>{this.setState({isReinstallCoreBackgroundTaskProcessing:!1})},this.handleOnReceiveReinstallCoreBackgroundTaskData=()=>{const{reinstallCoreBackgroundTaskId:e,reinstallCoreBackgroundTask:t}=this.state,{tasks:n}=this.props;if(!e)return;const s=XD(e,n);iL(s,tS)&&t!==s&&this.setState({reinstallCoreBackgroundTask:s},(()=>{qD(s)&&this.handleOnCompleteReinstallCoreBackgroundTask()}))},this.handleCloseReinstallCoreConfirmationDialog=()=>this.setState({isReinstallCoreConfirmationDialogVisible:!1}),this.handleOpenReinstallCoreConfirmationDialog=()=>this.setState({isReinstallCoreConfirmationDialogVisible:!0}),this.handleCloseChecksumsVerificationResult=()=>this.setState({isChecksumsVerificationResultVisible:!1}),this.handleVerifyChecksums=()=>{const{checkWordPressIntegrityActions:{verifyChecksums:e},installation:{id:t}}=this.props;this.resetResults(),this.setState({isVerifyingChecksums:!0,isChecksumsVerificationResultVisible:!1}),e(t).then((({data:e})=>{const{status:t,data:n}=e;this.setState({isChecksumsVerificationResultVisible:!0,checksumsMatch:t===fp,checksumsVerificationResult:n?Object.values(n):null})})).finally((()=>{this.setState({isVerifyingChecksums:!1})}))},this.handleReinstallCore=()=>{const{isReinstallCoreBackgroundTaskProcessing:e}=this.state,{checkWordPressIntegrityActions:{reinstallCore:t},appActions:{addErrorMessage:n},installation:{id:s}}=this.props;e||(this.resetResults(),this.setState({isReinstallCoreBackgroundTaskProcessing:!0}),t(s).then((e=>{const{status:t,data:s}=e;if(t!==fp)e.message&&n(e.message);else{const{task:e}=s;if(!e)return;this.setState({reinstallCoreBackgroundTask:null,reinstallCoreBackgroundTaskId:e.id,isReinstallCoreBackgroundTaskProgressVisible:!0})}})).catch((()=>{this.setState({isReinstallCoreBackgroundTaskProcessing:!1})})))},this.resetResults=()=>{this.setState({isReinstallCoreBackgroundTaskProgressVisible:!1,isChecksumsVerificationResultVisible:!1})},this.getReinstallCoreConfirmationDialog=()=>{const{isReinstallCoreConfirmationDialogVisible:e}=this.state,{onOpenBackupDrawer:t}=this.props;return(0,P.jsx)(_B,{isOpen:e,installation:this.props.installation,onCloseReinstallCoreConfirmationDialog:this.handleCloseReinstallCoreConfirmationDialog,onReinstallCore:this.handleReinstallCore,onOpenBackupDrawer:t})},this.getChecksumsVerificationResult=()=>{const{isChecksumsVerificationResultVisible:e,checksumsMatch:t,checksumsVerificationResult:n}=this.state;return e?t?(0,P.jsx)(ml,{intent:"success",onClose:this.handleCloseChecksumsVerificationResult,children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.successfullyVerifiedAgainstChecksums"})}):(0,P.jsxs)(ml,{intent:"danger",onClose:this.handleCloseChecksumsVerificationResult,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.verificationAgainstChecksumsFailedWithErrors"})}),n&&n.map((e=>(0,P.jsx)("p",{children:e},sp(5))))]}):null},this.getReinstallCoreBackgroundTaskResults=()=>{if(!this.state.reinstallCoreBackgroundTask)return null;const{reinstallCoreBackgroundTask:{publicParams:{coreReinstallationResult:e}},isReinstallCoreBackgroundTaskResultsVisible:t}=this.state,{baseClassName:n}=this.props;return(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:`${n}__divider`}),(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.coreReinstallationFinishedSuccessfullyHeader"})}),t&&e?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ye,{onClick:()=>this.setState({isReinstallCoreBackgroundTaskResultsVisible:!1}),children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.hideReinstallCoreResults"})}),(0,P.jsxs)("div",{className:`${n}__reinstall-core-results`,children:[(0,P.jsx)("p",{children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.coreReinstallationFinishedSuccessfully"})}),e.map((e=>(0,P.jsx)("p",{children:e},sp(5))))]})]}):(0,P.jsx)(ye,{onClick:()=>this.setState({isReinstallCoreBackgroundTaskResultsVisible:!0}),children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.showReinstallCoreResults"})})]})},this.getReinstallCoreBackgroundTaskProgress=()=>{const{reinstallCoreBackgroundTask:e,isReinstallCoreBackgroundTaskProgressVisible:t}=this.state,{baseClassName:n}=this.props;if(!e)return null;if(!t)return null;if(GD(e))return this.getReinstallCoreBackgroundTaskResults();const s=hL(e);return(0,P.jsxs)("div",{children:[(0,P.jsx)("div",{className:`${n}__divider`}),(0,P.jsx)(Ds,{level:3,children:e.title}),(0,P.jsx)(Xa,{children:s.map((e=>(0,P.jsx)(Ga,{title:e.title,status:e.status,progress:e.progress,statusText:e.statusText,children:e.children},sp(5))))})]})},this.state={isVerifyingChecksums:!1,checksumsMatch:!1,checksumsVerificationResult:null,isChecksumsVerificationResultVisible:!1,isReinstallCoreConfirmationDialogVisible:!1,reinstallCoreBackgroundTaskId:null,reinstallCoreBackgroundTask:null,isReinstallCoreBackgroundTaskProgressVisible:!1,isReinstallCoreBackgroundTaskResultsVisible:!1,isReinstallCoreBackgroundTaskProcessing:!1,isLoading:!0}}componentDidUpdate(e){e.tasks!==this.props.tasks&&this.handleOnReceiveReinstallCoreBackgroundTaskData(),e.isOpen!==this.props.isOpen&&this.props.isOpen&&this.props.checkWordPressIntegrityActions.getIntegrity(this.props.installation.id).then((e=>{var t,n;t=e.tasks.reinstall,n=tS,(null==t?void 0:t.code)===n&&(this.setState({reinstallCoreBackgroundTask:e.tasks.reinstall,reinstallCoreBackgroundTaskId:e.tasks.reinstall.id,isReinstallCoreBackgroundTaskProcessing:!0,isReinstallCoreBackgroundTaskProgressVisible:!0}),this.fetchAndProcessExistingReinstallCoreBackgroundTask(e.tasks.reinstall.id,e.tasks.reinstall.code))})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{isLoading:e,isVerifyingChecksums:t,isReinstallCoreBackgroundTaskProcessing:n}=this.state,{onCloseCheckWordPressIntegrityDialog:s,wordPressOrgUrl:i,publicUrl:a,baseClassName:r,isOpen:o,installation:l}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(Ea,{title:l.title,subtitle:PN(l.url),size:"sm",banner:`${a}images/check-wordpress-integrity.png`,isOpen:o,onClose:s,buttons:[(0,P.jsx)(Be,{className:`${r}__dialog-button`,onClick:this.handleVerifyChecksums,state:t?"loading":void 0,disabled:t||n||e,children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.verifyChecksumsButton"})},"verifyChecksumsButton"),(0,P.jsx)(Be,{className:`${r}__dialog-button`,onClick:this.handleOpenReinstallCoreConfirmationDialog,disabled:t||n||e,children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.reinstallCoreButton"})},"reinstallCoreButton")],cancelButton:{children:n?(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.minimizeButton"}):(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.closeButton"}),className:`${r}__dialog-button`,disabled:e},children:[e&&(0,P.jsx)(Rn,{}),!e&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.title"})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.description",params:{link:(0,P.jsx)(Cs,{href:i,target:"_blank",children:(0,P.jsx)(qd,{content:"checkWordPressIntegrityDialog.wordPressOrgLink"})})}})}),this.getChecksumsVerificationResult(),this.getReinstallCoreBackgroundTaskProgress()]})]}),this.getReinstallCoreConfirmationDialog()]})}}TB.defaultProps={baseClassName:`${Rp}check-wordpress-integrity-dialog`,tasks:[]};const CB=mc((e=>({wordPressOrgUrl:e.app.urls.checkWordPressIntegrityWordpressOrgUrl,tasks:e.backgroundTasks.tasks,publicUrl:e.app.urls.publicUrl})),(e=>({checkWordPressIntegrityActions:kb({verifyChecksums:SB,reinstallCore:wB,getIntegrity:jB},e),appActions:kb({addErrorMessage:qg},e),backgroundTasksActions:kb({fetchBackgroundTask:JD},e)})))(TB),DB=e=>{const{installation:t,baseClassName:n=`${Rp}installation-card-status-message`,onOpenSmartPhpUpdatesDrawer:s}=e;return(0,P.jsxs)(ml,{intent:"warning",className:`${n}-phpWarning`,children:[(0,P.jsx)(qd,{content:"controllers.index.detail.warningPhpReachedEndOfLife",unsafe:!0})," ",(0,P.jsx)(FY,{installation:t,onOpenSmartPhpUpdatesDrawer:s})]})},PB=()=>(0,P.jsx)(ml,{intent:"warning",children:(0,P.jsx)(qd,{content:"controllers.index.detail.outdatedInstance.description"})}),OB=e=>()=>sg.getSyncSettings(e),IB=e=>t=>t({type:zC,task:e}),MB=e=>t=>sg.syncInstance((e=>{const t=new FormData;return Object.keys(e).forEach((n=>t.append(n,`${e[n]}`))),t})(e)).then((({data:e})=>(t(Vg(e,(()=>t(IB(e.data.task))))),e))),LB=Qd("sync/SYNC_FINISHED","instanceId");function AB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function EB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AB(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function UB(e,t){if(e){if("string"==typeof e)return RB(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RB(e,t):void 0}}function NB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,i,a,r,o=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=a.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw i}}return o}}(e,t)||UB(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function FB(e,t){if(null==e)return{};var n,s,i=Tc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(s=0;s<a.length;s++)n=a[s],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var YB=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function HB(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,N(s.key),s)}}function BB(e){return BB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BB(e)}function VB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(VB=function(){return!!e})()}function $B(e){return function(e){if(Array.isArray(e))return RB(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||UB(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var WB=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),zB=Math.abs,qB=String.fromCharCode,GB=Object.assign;function KB(e){return e.trim()}function XB(e,t,n){return e.replace(t,n)}function QB(e,t){return e.indexOf(t)}function JB(e,t){return 0|e.charCodeAt(t)}function ZB(e,t,n){return e.slice(t,n)}function eV(e){return e.length}function tV(e){return e.length}function nV(e,t){return t.push(e),e}var sV=1,iV=1,aV=0,rV=0,oV=0,lV="";function cV(e,t,n,s,i,a,r){return{value:e,root:t,parent:n,type:s,props:i,children:a,line:sV,column:iV,length:r,return:""}}function uV(e,t){return GB(cV("",null,null,"",null,null,0),e,{length:-e.length},t)}function dV(){return oV=rV>0?JB(lV,--rV):0,iV--,10===oV&&(iV=1,sV--),oV}function pV(){return oV=rV<aV?JB(lV,rV++):0,iV++,10===oV&&(iV=1,sV++),oV}function hV(){return JB(lV,rV)}function mV(){return rV}function fV(e,t){return ZB(lV,e,t)}function gV(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bV(e){return sV=iV=1,aV=eV(lV=e),rV=0,[]}function vV(e){return lV="",e}function yV(e){return KB(fV(rV-1,SV(91===e?e+2:40===e?e+1:e)))}function xV(e){for(;(oV=hV())&&oV<33;)pV();return gV(e)>2||gV(oV)>3?"":" "}function _V(e,t){for(;--t&&pV()&&!(oV<48||oV>102||oV>57&&oV<65||oV>70&&oV<97););return fV(e,mV()+(t<6&&32==hV()&&32==pV()))}function SV(e){for(;pV();)switch(oV){case e:return rV;case 34:case 39:34!==e&&39!==e&&SV(oV);break;case 40:41===e&&SV(e);break;case 92:pV()}return rV}function wV(e,t){for(;pV()&&e+oV!==57&&(e+oV!==84||47!==hV()););return"/*"+fV(t,rV-1)+"*"+qB(47===e?e:pV())}function kV(e){for(;!gV(hV());)pV();return fV(e,rV)}var jV="-ms-",TV="-moz-",CV="-webkit-",DV="comm",PV="rule",OV="decl",IV="@keyframes";function MV(e,t){for(var n="",s=tV(e),i=0;i<s;i++)n+=t(e[i],i,e,t)||"";return n}function LV(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case OV:return e.return=e.return||e.value;case DV:return"";case IV:return e.return=e.value+"{"+MV(e.children,s)+"}";case PV:e.value=e.props.join(",")}return eV(n=MV(e.children,s))?e.return=e.value+"{"+n+"}":""}function AV(e){return vV(EV("",null,null,null,[""],e=bV(e),0,[0],e))}function EV(e,t,n,s,i,a,r,o,l){for(var c=0,u=0,d=r,p=0,h=0,m=0,f=1,g=1,b=1,v=0,y="",x=i,_=a,S=s,w=y;g;)switch(m=v,v=pV()){case 40:if(108!=m&&58==JB(w,d-1)){-1!=QB(w+=XB(yV(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:w+=yV(v);break;case 9:case 10:case 13:case 32:w+=xV(m);break;case 92:w+=_V(mV()-1,7);continue;case 47:switch(hV()){case 42:case 47:nV(UV(wV(pV(),mV()),t,n),l);break;default:w+="/"}break;case 123*f:o[c++]=eV(w)*b;case 125*f:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(w=XB(w,/\f/g,"")),h>0&&eV(w)-d&&nV(h>32?NV(w+";",s,n,d-1):NV(XB(w," ","")+";",s,n,d-2),l);break;case 59:w+=";";default:if(nV(S=RV(w,t,n,c,u,i,o,y,x=[],_=[],d),a),123===v)if(0===u)EV(w,t,S,S,x,a,d,o,_);else switch(99===p&&110===JB(w,3)?100:p){case 100:case 108:case 109:case 115:EV(e,S,S,s&&nV(RV(e,S,S,0,0,i,o,y,i,x=[],d),_),i,_,d,o,s?x:_);break;default:EV(w,S,S,S,[""],_,0,o,_)}}c=u=h=0,f=b=1,y=w="",d=r;break;case 58:d=1+eV(w),h=m;default:if(f<1)if(123==v)--f;else if(125==v&&0==f++&&125==dV())continue;switch(w+=qB(v),v*f){case 38:b=u>0?1:(w+="\f",-1);break;case 44:o[c++]=(eV(w)-1)*b,b=1;break;case 64:45===hV()&&(w+=yV(pV())),p=hV(),u=d=eV(y=w+=kV(mV())),v++;break;case 45:45===m&&2==eV(w)&&(f=0)}}return a}function RV(e,t,n,s,i,a,r,o,l,c,u){for(var d=i-1,p=0===i?a:[""],h=tV(p),m=0,f=0,g=0;m<s;++m)for(var b=0,v=ZB(e,d+1,d=zB(f=r[m])),y=e;b<h;++b)(y=KB(f>0?p[b]+" "+v:XB(v,/&\f/g,p[b])))&&(l[g++]=y);return cV(e,t,n,0===i?PV:o,l,c,u)}function UV(e,t,n){return cV(e,t,n,DV,qB(oV),ZB(e,2,-2),0)}function NV(e,t,n,s){return cV(e,t,n,OV,ZB(e,0,s),ZB(e,s+1,-1),s)}var FV=function(e,t,n){for(var s=0,i=0;s=i,i=hV(),38===s&&12===i&&(t[n]=1),!gV(i);)pV();return fV(e,rV)},YV=new WeakMap,HV=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,s=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||YV.get(n))&&!s){YV.set(e,!0);for(var i=[],a=function(e,t){return vV(function(e,t){var n=-1,s=44;do{switch(gV(s)){case 0:38===s&&12===hV()&&(t[n]=1),e[n]+=FV(rV-1,t,n);break;case 2:e[n]+=yV(s);break;case 4:if(44===s){e[++n]=58===hV()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qB(s)}}while(s=pV());return e}(bV(e),t))}(t,i),r=n.props,o=0,l=0;o<a.length;o++)for(var c=0;c<r.length;c++,l++)e.props[l]=i[o]?a[o].replace(/&\f/g,r[c]):r[c]+" "+a[o]}}},BV=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function VV(e,t){switch(function(e,t){return 45^JB(e,0)?(((t<<2^JB(e,0))<<2^JB(e,1))<<2^JB(e,2))<<2^JB(e,3):0}(e,t)){case 5103:return CV+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return CV+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return CV+e+TV+e+jV+e+e;case 6828:case 4268:return CV+e+jV+e+e;case 6165:return CV+e+jV+"flex-"+e+e;case 5187:return CV+e+XB(e,/(\w+).+(:[^]+)/,CV+"box-$1$2"+jV+"flex-$1$2")+e;case 5443:return CV+e+jV+"flex-item-"+XB(e,/flex-|-self/,"")+e;case 4675:return CV+e+jV+"flex-line-pack"+XB(e,/align-content|flex-|-self/,"")+e;case 5548:return CV+e+jV+XB(e,"shrink","negative")+e;case 5292:return CV+e+jV+XB(e,"basis","preferred-size")+e;case 6060:return CV+"box-"+XB(e,"-grow","")+CV+e+jV+XB(e,"grow","positive")+e;case 4554:return CV+XB(e,/([^-])(transform)/g,"$1"+CV+"$2")+e;case 6187:return XB(XB(XB(e,/(zoom-|grab)/,CV+"$1"),/(image-set)/,CV+"$1"),e,"")+e;case 5495:case 3959:return XB(e,/(image-set\([^]*)/,CV+"$1$`$1");case 4968:return XB(XB(e,/(.+:)(flex-)?(.*)/,CV+"box-pack:$3"+jV+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+CV+e+e;case 4095:case 3583:case 4068:case 2532:return XB(e,/(.+)-inline(.+)/,CV+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(eV(e)-1-t>6)switch(JB(e,t+1)){case 109:if(45!==JB(e,t+4))break;case 102:return XB(e,/(.+:)(.+)-([^]+)/,"$1"+CV+"$2-$3$1"+TV+(108==JB(e,t+3)?"$3":"$2-$3"))+e;case 115:return~QB(e,"stretch")?VV(XB(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==JB(e,t+1))break;case 6444:switch(JB(e,eV(e)-3-(~QB(e,"!important")&&10))){case 107:return XB(e,":",":"+CV)+e;case 101:return XB(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+CV+(45===JB(e,14)?"inline-":"")+"box$3$1"+CV+"$2$3$1"+jV+"$2box$3")+e}break;case 5936:switch(JB(e,t+11)){case 114:return CV+e+jV+XB(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return CV+e+jV+XB(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return CV+e+jV+XB(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return CV+e+jV+e+e}return e}var $V=[function(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case OV:e.return=VV(e.value,e.length);break;case IV:return MV([uV(e,{value:XB(e.value,"@","@"+CV)})],s);case PV:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return MV([uV(e,{props:[XB(t,/:(read-\w+)/,":-moz-$1")]})],s);case"::placeholder":return MV([uV(e,{props:[XB(t,/:(plac\w+)/,":"+CV+"input-$1")]}),uV(e,{props:[XB(t,/:(plac\w+)/,":-moz-$1")]}),uV(e,{props:[XB(t,/:(plac\w+)/,jV+"input-$1")]})],s)}return""}))}}],WV=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var s,i,a=e.stylisPlugins||$V,r={},o=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}));var l,c,u,d,p=[LV,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[HV,BV].concat(a,p),u=tV(c),function(e,t,n,s){for(var i="",a=0;a<u;a++)i+=c[a](e,t,n,s)||"";return i});i=function(e,t,n,s){l=n,MV(AV(e?e+"{"+t.styles+"}":t.styles),h),s&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new WB({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:i};return m.sheet.hydrate(o),m},zV=function(e,t,n){var s=e.key+"-"+t.name;!1===n&&void 0===e.registered[s]&&(e.registered[s]=t.styles)},qV={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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 GV(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var KV=/[A-Z]|^ms/g,XV=/_EMO_([^_]+?)_([^]*?)_EMO_/g,QV=function(e){return 45===e.charCodeAt(1)},JV=function(e){return null!=e&&"boolean"!=typeof e},ZV=GV((function(e){return QV(e)?e:e.replace(KV,"-$&").toLowerCase()})),e$=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(XV,(function(e,t,n){return n$={name:t,styles:n,next:n$},t}))}return 1===qV[e]||QV(e)||"number"!=typeof t||0===t?t:t+"px"};function t$(e,t,n){if(null==n)return"";var s=n;if(void 0!==s.__emotion_styles)return s;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return n$={name:i.name,styles:i.styles,next:n$},i.name;var a=n;if(void 0!==a.styles){var r=a.next;if(void 0!==r)for(;void 0!==r;)n$={name:r.name,styles:r.styles,next:n$},r=r.next;return a.styles+";"}return function(e,t,n){var s="";if(Array.isArray(n))for(var i=0;i<n.length;i++)s+=t$(e,t,n[i])+";";else for(var a in n){var r=n[a];if("object"!=typeof r){var o=r;null!=t&&void 0!==t[o]?s+=a+"{"+t[o]+"}":JV(o)&&(s+=ZV(a)+":"+e$(a,o)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var l=t$(e,t,r);switch(a){case"animation":case"animationName":s+=ZV(a)+":"+l+";";break;default:s+=a+"{"+l+"}"}}else for(var c=0;c<r.length;c++)JV(r[c])&&(s+=ZV(a)+":"+e$(a,r[c])+";")}return s}(e,t,n);case"function":if(void 0!==e){var o=n$,l=n(e);return n$=o,t$(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var n$,s$=/label:\s*([^\s;{]+)\s*(;|$)/g;function i$(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var s=!0,i="";n$=void 0;var a=e[0];null==a||void 0===a.raw?(s=!1,i+=t$(n,t,a)):i+=a[0];for(var r=1;r<e.length;r++)i+=t$(n,t,e[r]),s&&(i+=a[r]);s$.lastIndex=0;for(var o,l="";null!==(o=s$.exec(i));)l+="-"+o[1];var c=function(e){for(var t,n=0,s=0,i=e.length;i>=4;++s,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(s+2))<<16;case 2:n^=(255&e.charCodeAt(s+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(s)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:n$}}var a$,r$,o$=!!L.useInsertionEffect&&L.useInsertionEffect,l$=o$||function(e){return e()},c$=(o$||M.useLayoutEffect,M.createContext("undefined"!=typeof HTMLElement?WV({key:"css"}):null)),u$=(c$.Provider,function(e){return(0,M.forwardRef)((function(t,n){var s=(0,M.useContext)(c$);return e(t,s,n)}))}),d$=M.createContext({}),p$={}.hasOwnProperty,h$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",m$=function(e){var t=e.cache,n=e.serialized,s=e.isStringTag;return zV(t,n,s),l$((function(){return function(e,t,n){zV(e,t,n);var s=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+s:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,s)})),null},f$=u$((function(e,t,n){var s=e.css;"string"==typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var i=e[h$],a=[s],r="";"string"==typeof e.className?r=function(e,t,n){var s="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(s+=n+" ")})),s}(t.registered,a,e.className):null!=e.className&&(r=e.className+" ");var o=i$(a,void 0,M.useContext(d$));r+=t.key+"-"+o.name;var l={};for(var c in e)p$.call(e,c)&&"css"!==c&&c!==h$&&(l[c]=e[c]);return l.className=r,n&&(l.ref=n),M.createElement(M.Fragment,null,M.createElement(m$,{cache:t,serialized:o,isStringTag:"string"==typeof i}),M.createElement(i,l))})),g$=f$,b$=function(e,t){var n=arguments;if(null==t||!p$.call(t,"css"))return M.createElement.apply(void 0,n);var s=n.length,i=new Array(s);i[0]=g$,i[1]=function(e,t){var n={};for(var s in t)p$.call(t,s)&&(n[s]=t[s]);return n[h$]=e,n}(e,t);for(var a=2;a<s;a++)i[a]=n[a];return M.createElement.apply(null,i)};function v$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i$(t)}a$=b$||(b$={}),r$||(r$=a$.JSX||(a$.JSX={}));var y$=r(46885),x$=M.useLayoutEffect,_$=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],S$=function(){};function w$(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function k$(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];var a=[].concat(s);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&a.push("".concat(w$(e,r)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var j$=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===U(e)&&null!==e?[e]:[];var t},T$=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,EB({},FB(e,_$))},C$=function(e,t,n){var s=e.cx,i=e.getStyles,a=e.getClassNames,r=e.className;return{css:i(t,e),className:s(null!=n?n:{},a(t,e),r)}};function D$(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function P$(e){return D$(e)?window.pageYOffset:e.scrollTop}function O$(e,t){D$(e)?window.scrollTo(0,t):e.scrollTop=t}function I$(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S$,i=P$(e),a=t-i,r=0;!function t(){var o=function(e,t,n,s){return n*((e=e/s-1)*e*e+1)+t}(r+=10,i,a,n);O$(e,o),r<n?window.requestAnimationFrame(t):s(e)}()}function M$(e,t){var n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),i=t.offsetHeight/3;s.bottom+i>n.bottom?O$(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):s.top-i<n.top&&O$(e,Math.max(t.offsetTop-i,0))}function L$(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var A$=!1,E$={get passive(){return A$=!0}},R$="undefined"!=typeof window?window:{};R$.addEventListener&&R$.removeEventListener&&(R$.addEventListener("p",S$,E$),R$.removeEventListener("p",S$,!1));var U$=A$;function N$(e){return null!=e}function F$(e,t,n){return e?t:n}var Y$=["children","innerProps"],H$=["children","innerProps"];for(var B$,V$=function(e){return"auto"===e?"bottom":e},$$=(0,M.createContext)(null),W$=function(e){var t=e.children,n=e.minMenuHeight,s=e.maxMenuHeight,i=e.menuPlacement,a=e.menuPosition,r=e.menuShouldScrollIntoView,o=e.theme,l=((0,M.useContext)($$)||{}).setPortalPlacement,c=(0,M.useRef)(null),u=NB((0,M.useState)(s),2),d=u[0],p=u[1],h=NB((0,M.useState)(null),2),m=h[0],f=h[1],g=o.spacing.controlHeight;return x$((function(){var e=c.current;if(e){var t="fixed"===a,o=function(e){var t=e.maxHeight,n=e.menuEl,s=e.minHeight,i=e.placement,a=e.shouldScroll,r=e.isFixedPosition,o=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,s=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&s.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,m=p.height,f=p.top,g=n.offsetParent.getBoundingClientRect().top,b=r||D$(u=l)?window.innerHeight:u.clientHeight,v=P$(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),_=g-x,S=b-f,w=_+v,k=d-v-f,j=h-b+v+y,T=v+f-x,C=160;switch(i){case"auto":case"bottom":if(S>=m)return{placement:"bottom",maxHeight:t};if(k>=m&&!r)return a&&I$(l,j,C),{placement:"bottom",maxHeight:t};if(!r&&k>=s||r&&S>=s)return a&&I$(l,j,C),{placement:"bottom",maxHeight:r?S-y:k-y};if("auto"===i||r){var D=t,P=r?_:w;return P>=s&&(D=Math.min(P-y-o,t)),{placement:"top",maxHeight:D}}if("bottom"===i)return a&&O$(l,j),{placement:"bottom",maxHeight:t};break;case"top":if(_>=m)return{placement:"top",maxHeight:t};if(w>=m&&!r)return a&&I$(l,T,C),{placement:"top",maxHeight:t};if(!r&&w>=s||r&&_>=s){var O=t;return(!r&&w>=s||r&&_>=s)&&(O=r?_-x:w-x),a&&I$(l,T,C),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:s,menuEl:e,minHeight:n,placement:i,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:g});p(o.maxHeight),f(o.placement),null==l||l(o.placement)}}),[s,i,a,r,n,l,g]),t({ref:c,placerProps:EB(EB({},e),{},{placement:m||V$(i),maxHeight:d})})},z$=function(e,t){var n=e.theme,s=n.spacing.baseUnit,i=n.colors;return EB({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*s,"px ").concat(3*s,"px")})},q$=z$,G$=z$,K$=["size"],X$=["innerProps","isRtl","size"],Q$={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},J$=function(e){var t=e.size,n=FB(e,K$);return b$("svg",wc({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Q$},n))},Z$=function(e){return b$(J$,wc({size:20},e),b$("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eW=function(e){return b$(J$,wc({size:20},e),b$("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tW=function(e,t){var n=e.isFocused,s=e.theme,i=s.spacing.baseUnit,a=s.colors;return EB({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},nW=tW,sW=tW,iW=function(){var e=v$.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(B$||(B$=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),aW=function(e){var t=e.delay,n=e.offset;return b$("span",{css:v$({animation:"".concat(iW," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},rW=["data"],oW=["innerRef","isDisabled","isHidden","inputClassName"],lW={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},cW={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":EB({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lW)},uW=function(e){return EB({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},lW)},dW=function(e){var t=e.children,n=e.innerProps;return b$("div",n,t)},pW={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return b$("div",wc({},C$(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||b$(Z$,null))},Control:function(e){var t=e.children,n=e.isDisabled,s=e.isFocused,i=e.innerRef,a=e.innerProps,r=e.menuIsOpen;return b$("div",wc({ref:i},C$(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":s,"control--menu-is-open":r}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return b$("div",wc({},C$(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||b$(eW,null))},DownChevron:eW,CrossIcon:Z$,Group:function(e){var t=e.children,n=e.cx,s=e.getStyles,i=e.getClassNames,a=e.Heading,r=e.headingProps,o=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return b$("div",wc({},C$(e,"group",{group:!0}),o),b$(a,wc({},r,{selectProps:u,theme:c,getStyles:s,getClassNames:i,cx:n}),l),b$("div",null,t))},GroupHeading:function(e){var t=T$(e);t.data;var n=FB(t,rW);return b$("div",wc({},C$(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return b$("div",wc({},C$(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return b$("span",wc({},t,C$(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,s=T$(e),i=s.innerRef,a=s.isDisabled,r=s.isHidden,o=s.inputClassName,l=FB(s,oW);return b$("div",wc({},C$(e,"input",{"input-container":!0}),{"data-value":n||""}),b$("input",wc({className:t({input:!0},o),ref:i,style:uW(r),disabled:a},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,s=e.size,i=void 0===s?4:s,a=FB(e,X$);return b$("div",wc({},C$(EB(EB({},a),{},{innerProps:t,isRtl:n,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),b$(aW,{delay:0,offset:n}),b$(aW,{delay:160,offset:!0}),b$(aW,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,s=e.innerProps;return b$("div",wc({},C$(e,"menu",{menu:!0}),{ref:n},s),t)},MenuList:function(e){var t=e.children,n=e.innerProps,s=e.innerRef,i=e.isMulti;return b$("div",wc({},C$(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:s},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,i=e.innerProps,a=e.menuPlacement,r=e.menuPosition,o=(0,M.useRef)(null),l=(0,M.useRef)(null),c=NB((0,M.useState)(V$(a)),2),u=c[0],d=c[1],p=(0,M.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=NB((0,M.useState)(null),2),m=h[0],f=h[1],g=(0,M.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===r?0:window.pageYOffset,n=e[u]+t;n===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||f({offset:n,rect:e})}}),[s,r,u,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);x$((function(){g()}),[g]);var b=(0,M.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),s&&o.current&&(l.current=(0,y$.ll)(s,o.current,g,{elementResize:"ResizeObserver"in window}))}),[s,g]);x$((function(){b()}),[b]);var v=(0,M.useCallback)((function(e){o.current=e,b()}),[b]);if(!t&&"fixed"!==r||!m)return null;var y=b$("div",wc({ref:v},C$(EB(EB({},e),{},{offset:m.offset,position:r,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return b$($$.Provider,{value:p},t?(0,je.createPortal)(y,t):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,s=e.innerProps,i=FB(e,H$);return b$("div",wc({},C$(EB(EB({},i),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,s=e.innerProps,i=FB(e,Y$);return b$("div",wc({},C$(EB(EB({},i),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},MultiValue:function(e){var t=e.children,n=e.components,s=e.data,i=e.innerProps,a=e.isDisabled,r=e.removeProps,o=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return b$(l,{data:s,innerProps:EB(EB({},C$(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:o},b$(c,{data:s,innerProps:EB({},C$(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},t),b$(u,{data:s,innerProps:EB(EB({},C$(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:o}))},MultiValueContainer:dW,MultiValueLabel:dW,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return b$("div",wc({role:"button"},n),t||b$(Z$,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,s=e.isFocused,i=e.isSelected,a=e.innerRef,r=e.innerProps;return b$("div",wc({},C$(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":s,"option--is-selected":i}),{ref:a,"aria-disabled":n},r),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return b$("div",wc({},C$(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,s=e.isDisabled,i=e.isRtl;return b$("div",wc({},C$(e,"container",{"--is-disabled":s,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,s=e.innerProps;return b$("div",wc({},C$(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),s),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,s=e.isMulti,i=e.hasValue;return b$("div",wc({},C$(e,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":i}),n),t)}},hW={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},mW=function(e){return b$("span",wc({css:hW},e))},fW={guidance:function(e){var t=e.isSearchable,n=e.isMulti,s=e.tabSelectsValue,i=e.context,a=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,s=void 0===n?"":n,i=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(s,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,s=e.options,i=e.label,a=void 0===i?"":i,r=e.selectValue,o=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(a," focused, ").concat(u(r,n),".");if("menu"===t&&c){var d=o?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(a).concat(p,", ").concat(u(s,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},gW=function(e){var t=e.ariaSelection,n=e.focusedOption,s=e.focusedValue,i=e.focusableOptions,a=e.isFocused,r=e.selectValue,o=e.selectProps,l=e.id,c=e.isAppleDevice,u=o.ariaLiveMessages,d=o.getOptionLabel,p=o.inputValue,h=o.isMulti,m=o.isOptionDisabled,f=o.isSearchable,g=o.menuIsOpen,b=o.options,v=o.screenReaderStatus,y=o.tabSelectsValue,x=o.isLoading,_=o["aria-label"],S=o["aria-live"],w=(0,M.useMemo)((function(){return EB(EB({},fW),u||{})}),[u]),k=(0,M.useMemo)((function(){var e,n="";if(t&&w.onChange){var s=t.option,i=t.options,a=t.removedValue,o=t.removedValues,l=t.value,c=a||s||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",p=i||o||void 0,h=p?p.map(d):[],f=EB({isDisabled:c&&m(c,r),label:u,labels:h},t);n=w.onChange(f)}return n}),[t,w,m,r,d]),j=(0,M.useMemo)((function(){var e="",t=n||s,a=!!(n&&r&&r.includes(n));if(t&&w.onFocus){var o={focused:t,label:d(t),isDisabled:m(t,r),isSelected:a,options:i,context:t===n?"menu":"value",selectValue:r,isAppleDevice:c};e=w.onFocus(o)}return e}),[n,s,d,m,w,i,r,c]),T=(0,M.useMemo)((function(){var e="";if(g&&b.length&&!x&&w.onFilter){var t=v({count:i.length});e=w.onFilter({inputValue:p,resultsMessage:t})}return e}),[i,p,g,w,b,v,x]),C="initial-input-focus"===(null==t?void 0:t.action),D=(0,M.useMemo)((function(){var e="";if(w.guidance){var t=s?"value":g?"menu":"input";e=w.guidance({"aria-label":_,context:t,isDisabled:n&&m(n,r),isMulti:h,isSearchable:f,tabSelectsValue:y,isInitialFocus:C})}return e}),[_,n,s,h,m,f,g,w,r,y,C]),P=b$(M.Fragment,null,b$("span",{id:"aria-selection"},k),b$("span",{id:"aria-focused"},j),b$("span",{id:"aria-results"},T),b$("span",{id:"aria-guidance"},D));return b$(M.Fragment,null,b$(mW,{id:l},C&&P),b$(mW,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!C&&P))},bW=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],vW=new RegExp("["+bW.map((function(e){return e.letters})).join("")+"]","g"),yW={},xW=0;xW<bW.length;xW++)for(var _W=bW[xW],SW=0;SW<_W.letters.length;SW++)yW[_W.letters[SW]]=_W.base;var wW=function(e){return e.replace(vW,(function(e){return yW[e]}))},kW=Fr(wW),jW=function(e){return e.replace(/^\s+|\s+$/g,"")},TW=function(e){return"".concat(e.label," ").concat(e.value)},CW=["innerRef"];function DW(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var i=Object.entries(e).filter((function(e){var t=NB(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=NB(t,2),s=n[0],i=n[1];return e[s]=i,e}),{})}(FB(e,CW),"onExited","in","enter","exit","appear");return b$("input",wc({ref:t},n,{css:v$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var PW=["boxSizing","height","overflow","paddingRight","position"],OW={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function IW(e){e.cancelable&&e.preventDefault()}function MW(e){e.stopPropagation()}function LW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function AW(){return"ontouchstart"in window||navigator.maxTouchPoints}var EW=!("undefined"==typeof window||!window.document||!window.document.createElement),RW=0,UW={capture:!1,passive:!1},NW=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},FW={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function YW(e){var t=e.children,n=e.lockEnabled,s=e.captureEnabled,i=function(e){var t=e.isEnabled,n=e.onBottomArrive,s=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,r=(0,M.useRef)(!1),o=(0,M.useRef)(!1),l=(0,M.useRef)(0),c=(0,M.useRef)(null),u=(0,M.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,h=c.current,m=t>0,f=d-p-u,g=!1;f>t&&r.current&&(s&&s(e),r.current=!1),m&&o.current&&(a&&a(e),o.current=!1),m&&t>f?(n&&!r.current&&n(e),h.scrollTop=d,g=!0,r.current=!0):!m&&-t>u&&(i&&!o.current&&i(e),h.scrollTop=0,g=!0,o.current=!0),g&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,s,i,a]),d=(0,M.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,M.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,M.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,M.useCallback)((function(e){if(e){var t=!!U$&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),f=(0,M.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,M.useEffect)((function(){if(t){var e=c.current;return m(e),function(){f(e)}}}),[t,m,f]),function(e){c.current=e}}({isEnabled:void 0===s||s,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,s=void 0===n||n,i=(0,M.useRef)({}),a=(0,M.useRef)(null),r=(0,M.useCallback)((function(e){if(EW){var t=document.body,n=t&&t.style;if(s&&PW.forEach((function(e){var t=n&&n[e];i.current[e]=t})),s&&RW<1){var a=parseInt(i.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,o=window.innerWidth-r+a||0;Object.keys(OW).forEach((function(e){var t=OW[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(o,"px"))}t&&AW()&&(t.addEventListener("touchmove",IW,UW),e&&(e.addEventListener("touchstart",LW,UW),e.addEventListener("touchmove",MW,UW))),RW+=1}}),[s]),o=(0,M.useCallback)((function(e){if(EW){var t=document.body,n=t&&t.style;RW=Math.max(RW-1,0),s&&RW<1&&PW.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&AW()&&(t.removeEventListener("touchmove",IW,UW),e&&(e.removeEventListener("touchstart",LW,UW),e.removeEventListener("touchmove",MW,UW)))}}),[s]);return(0,M.useEffect)((function(){if(t){var e=a.current;return r(e),function(){o(e)}}}),[t,r,o]),function(e){a.current=e}}({isEnabled:n});return b$(M.Fragment,null,n&&b$("div",{onClick:NW,css:FW}),t((function(e){i(e),a(e)})))}var HW={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},BW=function(e){var t=e.name,n=e.onFocus;return b$("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:HW,value:"",onChange:function(){}})};function VW(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function $W(){return VW(/^Mac/i)}var WW={clearIndicator:sW,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,s=e.isFocused,i=e.theme,a=i.colors,r=i.borderRadius;return EB({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:s?a.primary:a.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:s?a.primary:a.neutral30}})},dropdownIndicator:nW,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,s=n.colors,i=n.spacing;return EB({label:"group",cursor:"default",display:"block"},t?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,s=e.theme,i=s.spacing.baseUnit,a=s.colors;return EB({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,s=e.value,i=e.theme,a=i.spacing,r=i.colors;return EB(EB({visibility:n?"hidden":"visible",transform:s?"translateZ(0)":""},cW),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,s=e.size,i=e.theme,a=i.colors,r=i.spacing.baseUnit;return EB({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r})},loadingMessage:G$,menu:function(e,t){var n,s=e.placement,i=e.theme,a=i.borderRadius,r=i.spacing,o=i.colors;return EB((F(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(s),"100%"),F(n,"position","absolute"),F(n,"width","100%"),F(n,"zIndex",1),n),t?{}:{backgroundColor:o.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var n=e.maxHeight,s=e.theme.spacing.baseUnit;return EB({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:s,paddingTop:s})},menuPortal:function(e){var t=e.rect,n=e.offset,s=e.position;return{left:t.left,position:s,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,s=n.spacing,i=n.borderRadius,a=n.colors;return EB({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:s.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,s=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return EB({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:s/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,s=n.spacing,i=n.borderRadius,a=n.colors,r=e.isFocused;return EB({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:r?a.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:q$,option:function(e,t){var n=e.isDisabled,s=e.isFocused,i=e.isSelected,a=e.theme,r=a.spacing,o=a.colors;return EB({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?o.primary:s?o.primary25:"transparent",color:n?o.neutral20:i?o.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?o.primary:o.primary50}})},placeholder:function(e,t){var n=e.theme,s=n.spacing,i=n.colors;return EB({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,s=e.theme,i=s.spacing,a=s.colors;return EB({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,s=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return EB({alignItems:"center",display:s&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},zW={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},qW={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:L$(),captureMenuScroll:!L$(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=EB({ignoreCase:!0,ignoreAccents:!0,stringify:TW,trim:!0,matchFrom:"any"},void 0),s=n.ignoreCase,i=n.ignoreAccents,a=n.stringify,r=n.trim,o=n.matchFrom,l=r?jW(t):t,c=r?jW(a(e)):a(e);return s&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=kW(l),c=wW(c)),"start"===o?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function GW(e,t,n,s){return{type:"option",data:t,isDisabled:nz(e,t,n),isSelected:sz(e,t,n),label:ez(e,t),value:tz(e,t),index:s}}function KW(e,t){return e.options.map((function(n,s){if("options"in n){var i=n.options.map((function(n,s){return GW(e,n,t,s)})).filter((function(t){return JW(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:s}:void 0}var a=GW(e,n,t,s);return JW(e,a)?a:void 0})).filter(N$)}function XW(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,$B(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function QW(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,$B(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function JW(e,t){var n=e.inputValue,s=void 0===n?"":n,i=t.data,a=t.isSelected,r=t.label,o=t.value;return(!az(e)||!a)&&iz(e,{label:r,value:o,data:i},s)}var ZW=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},ez=function(e,t){return e.getOptionLabel(t)},tz=function(e,t){return e.getOptionValue(t)};function nz(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function sz(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var s=tz(e,t);return n.some((function(t){return tz(e,t)===s}))}function iz(e,t,n){return!e.filterOption||e.filterOption(t,n)}var az=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},rz=1,oz=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yc(e,t)}(n,e);var t=function(e){var t=VB();return function(){var n,s=BB(e);if(t){var i=BB(this).constructor;n=Reflect.construct(s,arguments,i)}else n=s.apply(this,arguments);return function(e,t){if(t&&("object"==U(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var s;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(s=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.isAppleDevice=$W()||VW(/^iPhone/i)||VW(/^iPad/i)||$W()&&navigator.maxTouchPoints>1,s.controlRef=null,s.getControlRef=function(e){s.controlRef=e},s.focusedOptionRef=null,s.getFocusedOptionRef=function(e){s.focusedOptionRef=e},s.menuListRef=null,s.getMenuListRef=function(e){s.menuListRef=e},s.inputRef=null,s.getInputRef=function(e){s.inputRef=e},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(e,t){var n=s.props,i=n.onChange,a=n.name;t.name=a,s.ariaOnChange(e,t),i(e,t)},s.setValue=function(e,t,n){var i=s.props,a=i.closeMenuOnSelect,r=i.isMulti,o=i.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:o}),a&&(s.setState({inputIsHiddenAfterUpdate:!r}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(e,{action:t,option:n})},s.selectOption=function(e){var t=s.props,n=t.blurInputOnSelect,i=t.isMulti,a=t.name,r=s.state.selectValue,o=i&&s.isOptionSelected(e,r),l=s.isOptionDisabled(e,r);if(o){var c=s.getOptionValue(e);s.setValue(r.filter((function(e){return s.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void s.ariaOnChange(e,{action:"select-option",option:e,name:a});i?s.setValue([].concat($B(r),[e]),"select-option",e):s.setValue(e,"select-option")}n&&s.blurInput()},s.removeValue=function(e){var t=s.props.isMulti,n=s.state.selectValue,i=s.getOptionValue(e),a=n.filter((function(e){return s.getOptionValue(e)!==i})),r=F$(t,a,a[0]||null);s.onChange(r,{action:"remove-value",removedValue:e}),s.focusInput()},s.clearValue=function(){var e=s.state.selectValue;s.onChange(F$(s.props.isMulti,[],null),{action:"clear",removedValues:e})},s.popValue=function(){var e=s.props.isMulti,t=s.state.selectValue,n=t[t.length-1],i=t.slice(0,t.length-1),a=F$(e,i,i[0]||null);n&&s.onChange(a,{action:"pop-value",removedValue:n})},s.getFocusedOptionId=function(e){return ZW(s.state.focusableOptionsWithIds,e)},s.getFocusableOptionsWithIds=function(){return QW(KW(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return k$.apply(void 0,[s.props.classNamePrefix].concat(t))},s.getOptionLabel=function(e){return ez(s.props,e)},s.getOptionValue=function(e){return tz(s.props,e)},s.getStyles=function(e,t){var n=s.props.unstyled,i=WW[e](t,n);i.boxSizing="border-box";var a=s.props.styles[e];return a?a(i,t):i},s.getClassNames=function(e,t){var n,i;return null===(n=(i=s.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},s.getElementId=function(e){return"".concat(s.state.instancePrefix,"-").concat(e)},s.getComponents=function(){return e=s.props,EB(EB({},pW),e.components);var e},s.buildCategorizedOptions=function(){return KW(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return XW(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(e,t){s.setState({ariaSelection:EB({value:e},t)})},s.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(e){s.blockOptionHover=!1},s.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&s.onMenuClose():t&&s.openMenu("first"):(t&&(s.openAfterFocus=!0),s.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},s.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||s.props.isDisabled)){var t=s.props,n=t.isMulti,i=t.menuIsOpen;s.focusInput(),i?(s.setState({inputIsHiddenAfterUpdate:!n}),s.onMenuClose()):s.openMenu("first"),e.preventDefault()}},s.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(s.clearValue(),e.preventDefault(),s.openAfterFocus=!1,"touchend"===e.type?s.focusInput():setTimeout((function(){return s.focusInput()})))},s.onScroll=function(e){"boolean"==typeof s.props.closeMenuOnScroll?e.target instanceof HTMLElement&&D$(e.target)&&s.props.onMenuClose():"function"==typeof s.props.closeMenuOnScroll&&s.props.closeMenuOnScroll(e)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(s.initialTouchX=n.clientX,s.initialTouchY=n.clientY,s.userIsDragging=!1)},s.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-s.initialTouchX),a=Math.abs(n.clientY-s.initialTouchY);s.userIsDragging=i>5||a>5}},s.onTouchEnd=function(e){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(e.target)&&s.menuListRef&&!s.menuListRef.contains(e.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(e){s.userIsDragging||s.onControlMouseDown(e)},s.onClearIndicatorTouchEnd=function(e){s.userIsDragging||s.onClearIndicatorMouseDown(e)},s.onDropdownIndicatorTouchEnd=function(e){s.userIsDragging||s.onDropdownIndicatorMouseDown(e)},s.handleInputChange=function(e){var t=s.props.inputValue,n=e.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(n,{action:"input-change",prevInputValue:t}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(e){s.props.onFocus&&s.props.onFocus(e),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(e){var t=s.props.inputValue;s.menuListRef&&s.menuListRef.contains(document.activeElement)?s.inputRef.focus():(s.props.onBlur&&s.props.onBlur(e),s.onInputChange("",{action:"input-blur",prevInputValue:t}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1}))},s.onOptionHover=function(e){if(!s.blockOptionHover&&s.state.focusedOption!==e){var t=s.getFocusableOptions().indexOf(e);s.setState({focusedOption:e,focusedOptionId:t>-1?s.getFocusedOptionId(e):null})}},s.shouldHideSelectedOptions=function(){return az(s.props)},s.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),s.focus()},s.onKeyDown=function(e){var t=s.props,n=t.isMulti,i=t.backspaceRemovesValue,a=t.escapeClearsValue,r=t.inputValue,o=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,h=s.state,m=h.focusedOption,f=h.focusedValue,g=h.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(s.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||r)return;s.focusValue("previous");break;case"ArrowRight":if(!n||r)return;s.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(f)s.removeValue(f);else{if(!i)return;n?s.popValue():o&&s.clearValue()}break;case"Tab":if(s.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&s.isOptionSelected(m,g))return;s.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(s.isComposing)return;s.selectOption(m);break}return;case"Escape":c?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:r}),s.onMenuClose()):o&&a&&s.clearValue();break;case" ":if(r)return;if(!c){s.openMenu("first");break}if(!m)return;s.selectOption(m);break;case"ArrowUp":c?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":c?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!c)return;s.focusOption("pageup");break;case"PageDown":if(!c)return;s.focusOption("pagedown");break;case"Home":if(!c)return;s.focusOption("first");break;case"End":if(!c)return;s.focusOption("last");break;default:return}e.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++rz),s.state.selectValue=j$(e.value),e.menuIsOpen&&s.state.selectValue.length){var i=s.getFocusableOptionsWithIds(),a=s.buildFocusableOptions(),r=a.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=i,s.state.focusedOption=a[r],s.state.focusedOptionId=ZW(i,a[r])}return s}return function(e,t,n){t&&HB(e.prototype,t),n&&HB(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&M$(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,s=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&s&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(M$(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,s=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),r="first"===e?0:a.length-1;if(!this.props.isMulti){var o=a.indexOf(s[0]);o>-1&&(r=o)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[r],focusedOptionId:this.getFocusedOptionId(a[r])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,s=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(s);s||(i=-1);var a=n.length-1,r=-1;if(n.length){switch(e){case"previous":r=0===i?0:-1===i?a:i-1;break;case"next":i>-1&&i<a&&(r=i+1)}this.setState({inputIsHidden:-1!==r,focusedValue:n[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var i=0,a=s.indexOf(n);n||(a=-1),"up"===e?i=a>0?a-1:s.length-1:"down"===e?i=(a+1)%s.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>s.length-1&&(i=s.length-1):"last"===e&&(i=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(zW):EB(EB({},zW),this.props.theme):zW}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,s=this.getClassNames,i=this.getValue,a=this.selectOption,r=this.setValue,o=this.props,l=o.isMulti,c=o.isRtl,u=o.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:s,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:a,selectProps:o,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return nz(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return sz(this.props,e,t)}},{key:"filterOption",value:function(e,t){return iz(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:s})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,s=e.inputId,i=e.inputValue,a=e.tabIndex,r=e.form,o=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,h=this.commonProps,m=s||this.getElementId("input"),f=EB(EB(EB({"aria-autocomplete":"list","aria-expanded":o,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},o&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?M.createElement(c,wc({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:r,type:"text",value:i},f)):M.createElement(DW,wc({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:S$,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:r,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,s=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,r=t.SingleValue,o=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,f=this.state,g=f.selectValue,b=f.focusedValue,v=f.isFocused;if(!this.hasValue()||!u)return h?null:M.createElement(o,wc({},l,{key:"placeholder",isDisabled:d,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return g.map((function(t,r){var o=t===b,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return M.createElement(n,wc({},l,{components:{Container:s,Label:i,Remove:a},isFocused:o,isDisabled:d,key:c,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var y=g[0];return M.createElement(r,wc({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,s=n.isDisabled,i=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||s||!this.hasValue()||i)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(e,wc({},t,{innerProps:r,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,s=n.isDisabled,i=n.isLoading,a=this.state.isFocused;return e&&i?M.createElement(e,wc({},t,{innerProps:{"aria-hidden":"true"},isDisabled:s,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var s=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return M.createElement(n,wc({},s,{isDisabled:i,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,s=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return M.createElement(e,wc({},t,{innerProps:i,isDisabled:n,isFocused:s}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,s=t.GroupHeading,i=t.Menu,a=t.MenuList,r=t.MenuPortal,o=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,f=p.isLoading,g=p.loadingMessage,b=p.minMenuHeight,v=p.maxMenuHeight,y=p.menuIsOpen,x=p.menuPlacement,_=p.menuPosition,S=p.menuPortalTarget,w=p.menuShouldBlockScroll,k=p.menuShouldScrollIntoView,j=p.noOptionsMessage,T=p.onMenuScrollToTop,C=p.onMenuScrollToBottom;if(!y)return null;var D,P=function(t,n){var s=t.type,i=t.data,a=t.isDisabled,r=t.isSelected,o=t.label,l=t.value,p=d===i,h=a?void 0:function(){return e.onOptionHover(i)},m=a?void 0:function(){return e.selectOption(i)},f="".concat(e.getElementId("option"),"-").concat(n),g={id:f,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:r};return M.createElement(c,wc({},u,{innerProps:g,data:i,isDisabled:a,isSelected:r,key:f,label:o,type:s,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,a=t.options,r=t.index,o="".concat(e.getElementId("group"),"-").concat(r),l="".concat(o,"-heading");return M.createElement(n,wc({},u,{key:o,data:i,options:a,Heading:s,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return P(e,"".concat(r,"-").concat(e.index))})))}if("option"===t.type)return P(t,"".concat(t.index))}));else if(f){var O=g({inputValue:m});if(null===O)return null;D=M.createElement(o,u,O)}else{var I=j({inputValue:m});if(null===I)return null;D=M.createElement(l,u,I)}var L={minMenuHeight:b,maxMenuHeight:v,menuPlacement:x,menuPosition:_,menuShouldScrollIntoView:k},A=M.createElement(W$,wc({},u,L),(function(t){var n=t.ref,s=t.placerProps,r=s.placement,o=s.maxHeight;return M.createElement(i,wc({},u,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:f,placement:r}),M.createElement(YW,{captureEnabled:h,onTopArrive:T,onBottomArrive:C,lockEnabled:w},(function(t){return M.createElement(a,wc({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:f,maxHeight:o,focusedOption:d}),D)})))}));return S||"fixed"===_?M.createElement(r,wc({},u,{appendTo:S,controlElement:this.controlRef,menuPlacement:x,menuPosition:_}),A):A}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,s=t.isDisabled,i=t.isMulti,a=t.name,r=t.required,o=this.state.selectValue;if(r&&!this.hasValue()&&!s)return M.createElement(BW,{name:a,onFocus:this.onValueInputFocus});if(a&&!s){if(i){if(n){var l=o.map((function(t){return e.getOptionValue(t)})).join(n);return M.createElement("input",{name:a,type:"hidden",value:l})}var c=o.length>0?o.map((function(t,n){return M.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):M.createElement("input",{name:a,type:"hidden",value:""});return M.createElement("div",null,c)}var u=o[0]?this.getOptionValue(o[0]):"";return M.createElement("input",{name:a,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,s=t.focusedOption,i=t.focusedValue,a=t.isFocused,r=t.selectValue,o=this.getFocusableOptions();return M.createElement(gW,wc({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:s,focusedValue:i,isFocused:a,selectValue:r,focusableOptions:o,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,s=e.SelectContainer,i=e.ValueContainer,a=this.props,r=a.className,o=a.id,l=a.isDisabled,c=a.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return M.createElement(s,wc({},d,{className:r,innerProps:{id:o,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),M.createElement(t,wc({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),M.createElement(i,wc({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),M.createElement(n,wc({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,s=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,r=t.isFocused,o=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,m=j$(u),f={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var g=d?function(e,t){return XW(KW(e,t))}(e,m):[],b=d?QW(KW(e,m),"".concat(l,"-option")):[],v=s?function(e,t){var n=e.focusedValue,s=e.selectValue.indexOf(n);if(s>-1){if(t.indexOf(n)>-1)return n;if(s<t.length)return t[s]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,g);f={selectValue:m,focusedOption:y,focusedOptionId:ZW(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var x=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},_=a,S=r&&o;return r&&!S&&(_={value:F$(h,m,m[0]||null),options:m,action:"initial-input-focus"},S=!o),"initial-input-focus"===(null==a?void 0:a.action)&&(_=null),EB(EB(EB({},f),x),{},{prevProps:e,ariaSelection:_,prevWasFocused:S})}}]),n}(M.Component);oz.defaultProps=qW;var lz=(0,M.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,s=e.defaultMenuIsOpen,i=void 0!==s&&s,a=e.defaultValue,r=void 0===a?null:a,o=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=FB(e,YB),f=NB((0,M.useState)(void 0!==o?o:n),2),g=f[0],b=f[1],v=NB((0,M.useState)(void 0!==l?l:i),2),y=v[0],x=v[1],_=NB((0,M.useState)(void 0!==h?h:r),2),S=_[0],w=_[1],k=(0,M.useCallback)((function(e,t){"function"==typeof c&&c(e,t),w(e)}),[c]),j=(0,M.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),b(void 0!==n?n:e)}),[u]),T=(0,M.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),C=(0,M.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),D=void 0!==o?o:g,P=void 0!==l?l:y,O=void 0!==h?h:S;return EB(EB({},m),{},{inputValue:D,menuIsOpen:P,onChange:k,onInputChange:j,onMenuClose:C,onMenuOpen:T,value:O})}(e);return M.createElement(oz,wc({ref:t},n))})),cz=lz;const uz={container:e=>Object.assign(Object.assign({},e),{width:"100%",maxWidth:"250px",display:"inline-block",verticalAlign:"middle"}),input:e=>Object.assign(Object.assign({},e),{margin:0,padding:0,"& input":{boxSizing:"border-box"}}),valueContainer:e=>Object.assign(Object.assign({},e),{padding:0}),singleValue:e=>Object.assign(Object.assign({},e),{marginRight:0,marginLeft:0,padding:"3px 0 4px"}),control:(e,{isFocused:t})=>Object.assign(Object.assign({},e),{height:"26px",minHeight:"26px",maxWidth:"100%",padding:"0 6px",borderStyle:"solid",borderColor:t?"#0f7faf":"#afbac1","&:hover":{borderColor:t?"#0f7faf":"#afbac1"},borderRadius:0,borderWidth:"0 0 1px",backgroundColor:t?"#ecf5f9":"#ededed",color:"#020202",outline:0,boxShadow:"none"}),indicatorSeparator:e=>Object.assign(Object.assign({},e),{display:"none"}),dropdownIndicator:e=>Object.assign(Object.assign({},e),{color:"#020202",padding:0,"&::before":{content:'""',display:"inline-block",width:0,height:0,marginLeft:"6px",borderTop:"4px solid currentColor",borderRight:"4px solid transparent",borderLeft:"4px solid transparent"},"& > svg":{display:"none"}}),menu:e=>Object.assign(Object.assign({},e),{backgroundColor:"#dedede",borderRadius:0,marginTop:"3px",marginBottom:"3px",padding:0,border:"none",boxShadow:"none"}),menuList:e=>Object.assign(Object.assign({},e),{padding:"5px 0"}),option:(e,{isFocused:t})=>Object.assign(Object.assign({},e),{backgroundColor:t?"#5aadd1":"#dedede",color:t?"#fff":"#373737",padding:"7px 10px",cursor:"pointer"})},dz="selected";class pz extends M.Component{constructor(e){super(e),this.componentDidMount=()=>{this.updateSelectAll()},this.handleSearch=e=>this.setState({search:e},this.setShowedTables),this.handleFilter=e=>this.setState({filter:e},this.setShowedTables),this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({tables:e}=this.state),e.filter((e=>!n||-1!==e.title.toLowerCase().indexOf(n)))},this.applyFilter=()=>{const{tables:e,selectedTables:t,filter:n}=this.state;return e.filter((e=>n!==dz||t[e.id]))},this.setShowedTables=()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedTables:t},this.updateSelectAll)},this.updateSelectAll=()=>{const{showedTables:e}=this.state,t=this.getSelectedTablesIds();this.setState({isSelectAll:e.length&&e.every((e=>-1!==t.indexOf(e.id)))})},this.getSelectedTablesIds=()=>Object.keys(this.state.selectedTables).filter((e=>this.state.selectedTables[e])),this.handleSelectTable=(e,t)=>this.setState((n=>{const s=Object.assign({},n.selectedTables);return s[e]=t,{selectedTables:s}}),this.setShowedTables),this.handleSelectAll=e=>this.setState((t=>({isSelectAll:e,selectedTables:t.showedTables.reduce(((t,n)=>(t[n.id]=e,t)),{})})),this.setShowedTables),this.handleSubmit=()=>{const{selectedTables:e}=this.state,{onClose:t,setSelectedTables:n}=this.props;n(e),t()},this.renderTablesList=()=>{const{selectedTables:e,showedTables:t,isSelectAll:n}=this.state,{baseClassName:s}=this.props;return t.length?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)("div",{className:`${s}__separator`}),(0,P.jsx)("div",{className:`${s}__select-all`,children:(0,P.jsx)(ut,{onChange:this.handleSelectAll,checked:n,"data-test-id":"available-tables-all",children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.selectAll"})})}),t.map((t=>(0,P.jsx)("div",{className:`${s}__table-item`,children:(0,P.jsx)(ut,{checked:e[t.id],onChange:e=>this.handleSelectTable(t.id,e),"data-test-id":`available-table-checkbox-${t.title.toLowerCase()}`,children:t.title})},t.id)))]}):(0,P.jsx)("div",{className:"wpt-mgt-15",children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.noItems"})})},this.state={isSelectAll:!1,filter:"all",search:"",tables:e.tables,showedTables:e.tables,selectedTables:e.selectedTables}}render(){const{filter:e,tables:t}=this.state,{baseClassName:n,onClose:s}=this.props,i=this.getSelectedTablesIds().length;return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.drawerTitle"}),subtitle:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.drawerSubTitle"}),backButton:!0,isOpen:!0,onClose:s,size:"sm","data-type":"instance-sync-db-tables",form:{className:n,onSubmit:this.handleSubmit,hideRequiredLegend:!0,vertical:!0,applyButton:!1,cancelButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.selectButton"}),disabled:0===i,"data-test-id":"confirm-select-button"}},children:[(0,P.jsx)(_l,{onTyping:this.handleSearch}),(0,P.jsx)("span",{className:"separate-span"}),(0,P.jsx)(Zs,{buttons:[{value:"all",title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.buttonShowAll",params:{count:t.length}}),disabled:0===t.length},{value:dz,title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTables.buttonShowSelected",params:{count:i}}),disabled:0===i}],selected:e,onChange:this.handleFilter}),this.renderTablesList()]})}}pz.propTypes={tables:We().array.isRequired,selectedTables:We().array.isRequired,setSelectedTables:We().func.isRequired,onClose:We().func.isRequired,baseClassName:We().string},pz.defaultProps={baseClassName:`${Rp}sync-db-tables-form`};const hz=pz,mz="files",fz="all",gz="selected",bz="except-tables-hint-action",vz={isLoading:!0,isValidating:!1,isProcessing:!1,isCompletedSuccessfully:!1,isFailed:!1,formErrors:null,syncTaskId:null,syncTask:null,showSyncDbTablesDrawer:!1,targetInstanceId:null,targetInstancesOptions:[],syncType:"all",syncTypeOptions:[],syncOptions:[],syncDbType:fz,syncDbTypeOptions:[],exceptTables:[],isExceptTables:!1,tables:[],selectedTables:{},isSnapshotRequired:!1,isFullSnapshot:!1,isSubmitButtonDisabled:!1};class yz extends M.Component{constructor(e){super(e),this.initSyncSettings=e=>{const{onAddDrawerErrorMessage:t}=this.props,{targetInstancesOptions:n,syncDbType:s,tables:i}=e;let a=!1;n&&0!==n.length||(t("list-ui.instanceSync.errorNoTarget",!0,"errorNoTarget"),a=!0);const r=s===gz?i.reduce(((e,t)=>(e[t.id]=t.selected,e)),{}):{};this.setState(Object.assign(Object.assign(Object.assign(Object.assign({},e),{targetInstancesOptions:this.getTargetInstanceOptions(n),syncOptions:Object.keys(e.syncOptions)}),e.syncOptions),{selectedTables:r,isSubmitButtonDisabled:a}),this.updateStatusMessages)},this.getTargetInstanceOptions=e=>e?e.map((({id:e,title:t,fullPath:n,isAlive:s,sameDb:i,cmpVersion:a,updatePrefix:r,refreshAfterSync:o})=>({value:e,label:t,fullPath:n,isAlive:s,sameDb:i,cmpVersion:a,updatePrefix:r,refreshAfterSync:o}))):[],this.getSelectedTargetInstance=()=>this.state.targetInstancesOptions.find((e=>e.value===this.state.targetInstanceId)),this.getSelectedTargetInstanceName=()=>{const e=this.getSelectedTargetInstance();return e?e.label:""},this.isSubmitDisabled=()=>{const{isSubmitButtonDisabled:e,isProcessing:t,isValidating:n}=this.state,{isUnpaid:s,isFeatureDisabled:i}=this.props;return e||t||n||s||i},this.setSelectedTables=e=>this.setState({selectedTables:e}),this.getSelectedTablesIds=()=>Object.keys(this.state.selectedTables).filter((e=>this.state.selectedTables[e])),this.getSelectedTablesTitles=()=>{const{tables:e}=this.state,t=this.getSelectedTablesIds();return e.filter((e=>-1!==t.indexOf(e.id))).map((e=>e.title))},this.getSyncDbTables=()=>{const{syncDbType:e,tables:t,isExceptTables:n,exceptTables:s}=this.state;let i={};switch(e){case"new":i=t.reduce(((e,t)=>(e[t.id]=!1,e)),{});break;case fz:i=t.reduce(((e,t)=>(e[t.id]=!!n&&!s.find((e=>e.toLowerCase()===t.id.toLowerCase())),e)),{});break;case gz:{const e=this.getSelectedTablesIds();i=t.reduce(((t,n)=>(t[n.id]=-1!==e.indexOf(n.id),t)),{});break}}return JSON.stringify(i)},this.setFormErrors=e=>{e&&this.setState({formErrors:Object.keys(e).reduce(((t,n)=>("tables"===n&&(t.syncDbType=e[n]),t)),Object.assign({},e))})},this.updateStatusMessages=()=>{const{onClearDrawerMessages:e,onAddDrawerErrorMessage:t,onAddDrawerWarningMessage:n}=this.props,{syncType:s}=this.state,i=this.getSelectedTargetInstance();if(!i)return;e(),this.setState({isSubmitButtonDisabled:!1});const a=s!==mz;return i.sameDb&&a?(t("list-ui.instanceSync.errorSameDb",!0,"errorSameDb"),void this.setState({isSubmitButtonDisabled:!0})):i.cmpVersion>0?(t("list-ui.instanceSync.errorSourceIsOlder",!0,"errorSameDb"),void this.setState({isSubmitButtonDisabled:!0})):(i.isAlive||this.setState({isSnapshotRequired:!1}),i.isAlive&&i.cmpVersion<0&&n("list-ui.instanceSync.warningTargetOlder",!0,"errorSameDb"),i.isAlive&&i.updatePrefix&&a&&n("list-ui.instanceSync.warningTargetHasOtherPrefix",!0,"warningTargetHasOtherPrefix"),void(i.isAlive||n("list-ui.instanceSync.warningTargetIsBroken",!0,"warningTargetIsBroken")))},this.handleChangeTargetInstance=e=>this.setState({targetInstanceId:e},this.updateStatusMessages),this.handleChangeSyncType=e=>this.setState({syncType:e},this.updateStatusMessages),this.handleToggleSyncDbTablesDrawer=()=>this.setState((e=>({showSyncDbTablesDrawer:!e.showSyncDbTablesDrawer}))),this.handleSubmit=()=>{if(this.isSubmitDisabled())return;const{installation:{id:e},instanceSyncActions:{syncInstance:t,syncFinished:n},onSetDrawerMessages:s,onClearDrawerMessages:i}=this.props,{targetInstanceId:a,syncType:r,syncDbType:o,syncOptions:l,isSnapshotRequired:c,isExceptTables:u}=this.state,d=l.reduce(((e,t)=>(e[t]=Number(this.state[t]),e)),{}),p=Object.assign(Object.assign({id:e,targetInstanceId:a||"",syncType:r},d),{syncDbType:o,tables:this.getSyncDbTables(),snapshot:c,isExceptTables:Number(u)});i(),this.setState({formErrors:null,isValidating:!0,syncTask:null}),t(p).then((e=>{if(e.status===gp)return s(Jd(e)),e.formErrors&&this.setFormErrors(e.formErrors),void this.setState({isValidating:!1});this.setState({isValidating:!1,isProcessing:!0,syncTaskId:e.data.task.id})})).catch((()=>{n(e),this.setState({isValidating:!1,isProcessing:!1})}))},this.getSubmitButtonConfig=()=>{const{isValidating:e,isProcessing:t,isCompletedSuccessfully:n,isLoading:s}=this.state;return!s&&!n&&{onClick:e=>Xd(e,this.handleSubmit),children:t||e?(0,P.jsx)(qd,{content:"list-ui.instanceSync.processingButton"}):(0,P.jsx)(qd,{content:"list-ui.instanceSync.submitButton"}),disabled:this.isSubmitDisabled(),"data-test-id":"submit-button"}},this.getCancelButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isFailed:n,isLoading:s,isValidating:i}=this.state,{onClose:a}=this.props;return!(s||e||i)&&{onClick:e=>Xd(e,a),children:t||n?(0,P.jsx)(qd,{content:"list-ui.instanceSync.closeButton"}):(0,P.jsx)(qd,{content:"list-ui.instanceSync.cancelButton"}),"data-test-id":t||n?"close-button":"cancel-button"}},this.renderObjectSwitcherControl=({name:e,options:t,disabled:n,defaultValue:s=null,onChange:i=null,placeholder:a=null})=>(0,P.jsx)(cz,{styles:uz,defaultValue:s,isClearable:!1,isSearchable:!0,backspaceRemovesValue:!1,name:e,id:`${e}-select-container`,inputId:`${e}-search-input`,placeholder:a,options:t,onChange:i,isDisabled:n,"data-test-id":e}),this.renderSourceInstancePath=()=>{const{installation:e}=this.props,{isProcessing:t,isCompletedSuccessfully:n}=this.state;return t||n?null:e.path?(0,P.jsx)(Fs,{target:(0,P.jsx)(_e,{className:"wpt-mgl-5",children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.showPath"})}),children:e.path}):null},this.renderSourceInstanceControl=()=>(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.sourceInstance"}),"data-test-id":"source-instance",children:[this.props.installation.displayTitle,this.renderSourceInstancePath()]}),this.renderTargetInstancePath=()=>{const e=this.getSelectedTargetInstance();return e&&e.fullPath?(0,P.jsx)(Fs,{target:(0,P.jsx)(_e,{className:"wpt-mgl-5",children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.showPath"})}),children:e.fullPath}):null},this.renderTargetInstanceControl=()=>{const{targetInstancesOptions:e,isProcessing:t,isCompletedSuccessfully:n}=this.state;if(!e||0===e.length)return null;if(t||n)return(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.targetInstance"}),children:this.getSelectedTargetInstanceName()});const s=this.getSelectedTargetInstance();return(0,P.jsxs)(Sa,{name:"targetInstanceId",label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.targetInstance"}),required:!0,children:[this.renderObjectSwitcherControl({name:"targetInstanceId",placeholder:null,defaultValue:s,options:e,onChange:({value:e})=>this.handleChangeTargetInstance(e)}),this.renderTargetInstancePath()]})},this.handleToggleSyncTypeHint=(e,t)=>{const n=e.target.id,{syncTypeOptions:s}=this.state;n===`${t}-hint-action`&&this.setState(s.reduce(((e,n)=>(e[`${n}IsHintVisible`]=n===t,e)),{}))},this.handleToggleExceptTablesHint=e=>{e.target.id===bz&&this.setState((e=>({exceptTablesHintIsVisible:!e.exceptTablesHintIsVisible})))},this.renderSyncTypeControl=()=>{const{baseClassName:e}=this.props,{syncType:t,syncTypeOptions:n,syncOptions:s,isProcessing:i,isCompletedSuccessfully:a}=this.state,r=(e,t=!0)=>(0,P.jsxs)("span",{children:[(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncTypeOptions.${e}.title`}),t&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{id:`${e}-hint-action`,icon:"circle-info",className:"wpt-mgl-5",onClick:t=>Xd(t,(()=>this.handleToggleSyncTypeHint(t,e)))}),visible:this.state[`${e}IsHintVisible`],children:(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncTypeOptions.${e}.description`})})]}),o=n=>{if(n!==t)return[];switch(n){case"all":case mz:return s.map((t=>(0,P.jsxs)("div",{children:[(0,P.jsx)(ar,{name:t,className:`${e}__form-field-checkbox`,label:(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncOptions.${t}.title`}),value:this.state[t],onChange:e=>this.setState({[t]:e})}),(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),children:(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncOptions.${t}.description`})})]},t)));default:return[]}};if(i||a)return(0,P.jsx)(Sa,{label:r(t,!1),children:(()=>s.reduce(((e,t)=>(this.state[t]&&e.push((0,P.jsx)("div",{children:(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncOptions.${t}.title`})},t)),e)),[]))()});const l=n.map((e=>({value:e,label:r(e),indentFields:o(e)})));return(0,P.jsx)(gr,{name:"syncType",label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncType"}),value:t,options:l,onChange:this.handleChangeSyncType})},this.renderSyncTypeSection=()=>{const{baseClassName:e}=this.props,{syncTypeOptions:t}=this.state;return 0===t.length?null:(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncTypeSectionTitle"}),className:`${e}__section`,children:this.renderSyncTypeControl()})},this.renderSyncDbTypeControl=()=>{const{syncDbType:e,syncDbTypeOptions:t,isExceptTables:n,exceptTables:s,isProcessing:i,isCompletedSuccessfully:a}=this.state,r=e=>{if(e===gz){const t=this.getSelectedTablesTitles();if(t.length)return(0,P.jsxs)("span",{children:[(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncDbType.options.${e}`}),": ",(0,P.jsx)("b",{children:t.join(", ")})]})}return e===fz&&n&&0!==s.length&&(i||a)?(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncDbType.options.${e}`}),children:o(!1)}):(0,P.jsx)(qd,{content:`list-ui.instanceSync.syncDbType.options.${e}`})},o=(e=!0)=>(0,P.jsxs)("span",{children:[(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbType.exceptTables"}),": ",(0,P.jsx)("b",{children:s.join(", ")}),e&&(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{id:bz,icon:"circle-info",className:"wpt-mgl-5",onClick:e=>Xd(e,(()=>this.handleToggleExceptTablesHint(e)))}),visible:this.state.exceptTablesHintIsVisible,children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbType.exceptTablesDesc"})})]}),l=t=>{if(t!==e)return[];switch(t){case fz:return 0===s.length?[]:[(0,P.jsx)("div",{children:(0,P.jsx)(ar,{name:"isExceptTables",label:o(),value:n,onChange:e=>this.setState({isExceptTables:e}),"data-test-id":"except-tables-checkbox"})},t)];case gz:return[(0,P.jsx)("div",{children:(0,P.jsx)(ye,{onClick:e=>Xd(e,this.handleToggleSyncDbTablesDrawer),"data-test-id":"select-available-tables",children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbType.chooseTables"})})},t)];default:return[]}};if(i||a)return r(e);const c=t.map((e=>({value:e,label:r(e),indentFields:l(e)})));return(0,P.jsx)(gr,{name:"syncDbType",label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbType.label"}),value:e,options:c,onChange:e=>this.setState({syncDbType:e})})},this.renderSyncDbTypeSection=()=>{const{baseClassName:e}=this.props,{syncType:t,syncDbTypeOptions:n}=this.state;return 0===n.length||t===mz?null:(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.syncDbTypeSectionTitle"}),className:`${e}__section`,children:this.renderSyncDbTypeControl()})},this.renderSnapshotControl=()=>{const{baseClassName:e}=this.props,{isSnapshotRequired:t,isFullSnapshot:n,isProcessing:s,isCompletedSuccessfully:i}=this.state,a=this.getSelectedTargetInstance();return s||i?t?(0,P.jsx)(qd,{content:"list-ui.instanceSync.isSnapshotRequired"}):(0,P.jsx)(qd,{content:"list-ui.instanceSync.noSnapshot"}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(ar,{name:"isSnapshotRequired",className:`${e}__form-field-checkbox`,label:(0,P.jsx)(qd,{content:"list-ui.instanceSync.isSnapshotRequired"}),value:t,onChange:e=>this.setState({isSnapshotRequired:e}),disabled:!a,"data-test-id":"is-snapshot-required"}),(0,P.jsxs)(Fs,{target:(0,P.jsx)(ye,{icon:"circle-info",className:"wpt-mgl-5"}),children:[(0,P.jsx)(qd,{content:"list-ui.instanceSync.isSnapshotRequiredDesc"}),n&&(0,P.jsx)("div",{children:(0,P.jsx)(qd,{content:"list-ui.instanceSync.isSnapshotRequiredNote"})})]})]})},this.renderSnapshotSection=()=>{const{baseClassName:e}=this.props,t=this.getSelectedTargetInstance();return t&&!t.isAlive?null:(0,P.jsx)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.snapshotSectionTitle"}),className:`${e}__section`,children:this.renderSnapshotControl()})},this.state=vz}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),e.task!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}handleOpenAndLoadData(){const{installation:{id:e},instanceSyncActions:{getSyncSettings:t},onSetDrawerMessages:n}=this.props;this.setState(vz),t(e).then((({data:e})=>{if(n(Jd(e)),e.status===gp)return void this.setState({isSubmitButtonDisabled:!0});const t=ip(e,"syncSettings");t&&this.initSyncSettings(t)})).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(e){const{syncTaskId:t,syncTask:n}=this.state;if(!t)return;const s=XD(t,e);s&&n!==s&&this.setState({syncTask:s},(()=>{this.handleUpdateSyncTask()}))}handleUpdateSyncTask(){const{syncTask:e,targetInstanceId:t}=this.state,{installation:{id:n},instancesActions:{setSelectedInstanceId:s,getInstancesData:i},instanceSyncActions:{syncFinished:a}}=this.props,r=this.getSelectedTargetInstance();GD(e)?(t&&s(t),i({instancesIds:r.refreshAfterSync?[n,t]:[n]}).then((()=>a(n))).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1,isCompletedSuccessfully:!0})}))):KD(e)&&(a(n),this.setState({isProcessing:!1,isFailed:!0}))}renderSyncDbTablesDrawer(){const{showSyncDbTablesDrawer:e,tables:t,selectedTables:n}=this.state;return e&&t&&0!==t.length?(0,P.jsx)(hz,{tables:t,selectedTables:n,setSelectedTables:this.setSelectedTables,onClose:this.handleToggleSyncDbTablesDrawer}):null}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,isFeatureDisabled:s,installation:i}=this.props;return e||s?(0,P.jsx)(Fv,{uatAction:"CLICK_EXT_BUY_FROM_SYNC_FORM",purchaseLicenseUrl:t,installationId:i.id,premiumFeaturesUrl:n,children:(0,P.jsx)(qd,{content:"paidFeature.copyDataFeatureDescription"})}):null}render(){const{isLoading:e,formErrors:t,targetInstanceId:n,syncType:s,syncOptions:i,syncDbType:a,isExceptTables:r,isSnapshotRequired:o,syncTask:l}=this.state,{installation:{title:c},onClose:u,isOpen:d,renderDrawerMessages:p,baseClassName:h}=this.props,m=i.reduce(((e,t)=>(e[t]=this.state[t],e)),{}),f=this.getSubmitButtonConfig(),g=[];return f&&g.push((0,P.jsx)(Be,Object.assign({intent:"primary"},f),"submit")),(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.drawerTitle",params:{instance:c}}),form:{onSubmit:this.handleSubmit,errors:t,values:Object.assign(Object.assign({targetInstanceId:n,syncType:s},m),{syncDbType:a,isExceptTables:r,isSnapshotRequired:o}),applyButton:!1,submitButton:f,cancelButton:this.getCancelButtonConfig(),hideRequiredLegend:!0},progress:dL(l,(()=>{this.setState({syncTask:null,syncTaskId:null})}),g),hideButton:!1,onClose:u,"data-test-id":"instance-sync-form","data-type":"instance-sync",size:"sm",isOpen:d,children:[this.renderPaidFeatureDesc(),p(),e&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instanceSync.loadingForm"})]}),!e&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceSync.locationSectionTitle"}),className:`${h}__section`,children:[this.renderSourceInstanceControl(),this.renderTargetInstanceControl()]}),this.renderSyncTypeSection(),this.renderSyncDbTypeSection(),this.renderSnapshotSection(),this.renderSyncDbTablesDrawer()]})]})}}yz.propTypes={installation:We().shape({displayTitle:We().string.isRequired,features:We().shape({copyData:We().shape({applicable:We().bool.isRequired})}).isRequired,id:We().number.isRequired,path:We().string.isRequired,title:We().string.isRequired}).isRequired,onClose:We().func.isRequired,instancesActions:We().shape({setSelectedInstanceId:We().func.isRequired,getInstancesData:We().func.isRequired}).isRequired,instanceSyncActions:We().shape({getSyncSettings:We().func.isRequired,syncInstance:We().func.isRequired,syncFinished:We().func.isRequired}).isRequired,onSetDrawerMessages:We().func.isRequired,onClearDrawerMessages:We().func.isRequired,onAddDrawerErrorMessage:We().func.isRequired,onAddDrawerWarningMessage:We().func.isRequired,renderDrawerMessages:We().func.isRequired,baseClassName:We().string,tasks:We().array,isUnpaid:We().bool.isRequired,upgradeUrl:We().string.isRequired,premiumFeaturesUrl:We().string,isFeatureDisabled:We().bool.isRequired,isOpen:We().bool.isRequired},yz.defaultProps={baseClassName:`${Rp}instance-sync-form`,tasks:[],premiumFeaturesUrl:null};const xz=mc(((e,t)=>{var n;return{tasks:e.backgroundTasks.tasks,isUnpaid:e.app.unpaidFeatures[wp],upgradeUrl:e.app.urls.featuresBuyLinks[wp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isFeatureDisabled:!(null===(n=t.installation.features.copyData)||void 0===n?void 0:n.applicable)}}),(e=>({instancesActions:kb(a,e),instanceSyncActions:kb(f,e)})))(kC(yz)),_z=(e,t)=>n=>Ug.validateClonePath(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Bg(e)),Promise.reject()))),Sz=e=>t=>t({type:WC,task:e}),wz=e=>t=>Ug.cloneInstallation(e).then((({data:e})=>{const n=Zd(e.task);return t(Sz(n)),n})).catch((e=>422===e.response.status?Promise.reject(e):(t(Bg(e)),Promise.reject()))),kz=Qd("clone/CLONE_FINISHED","instanceId"),jz=({installationId:e,databaseName:t,databaseServer:n,domainExisting:s,domainNewSubdomainName:i,domainNewSubdomainParentDomain:a,installationPath:r})=>o=>Ug.getCloneStub(e,t,n,s,i,a,r).then((({data:e})=>(o({type:"clone/CLONE_STUB_LOADED_SUCCESSFULLY"}),e))).catch((e=>(o(Bg(e)),Promise.reject())));var Tz=r(17334);const Cz=e=>{const t=zd();return(0,P.jsx)(Ss,Object.assign({},e,{placeholder:t(e.placeholder)}))},Dz="newSubdomain",Pz="existingDomainOrSubdomain",Oz={isLoading:!0,isProcessing:!1,isCompletedSuccessfully:!1,isFailed:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1,isCloningToSourceInstancePath:!1,isRewrite:!1,isDomainSettingsLoading:!1,formErrors:{},cloneTaskId:null,cloneTask:null,domains:[],parentDomains:[],dbServers:[],documentRoot:null,isNewSubdomain:!0,domainType:Dz,installationPath:"",subdomainInstallationPath:"",databaseCreationAllowed:!1,dbNamePrefix:"",isWrongParams:!1,domain:{existing:"",newSubdomain:{name:"",parentDomain:""}},database:{name:"",server:""},messages:[]};class Iz extends M.Component{constructor(e){super(e),this.getCloneStub=e=>{const{instanceCloneActions:{getCloneStub:t}}=this.props;return t(e).then((({value:{database:{value:{name:{value:e,meta:{creationAllowed:t}},server:{value:n,meta:{choices:s}},namePrefix:{value:i}}},domain:{value:{existing:{value:a,meta:{choices:r,documentRoot:o}},newSubdomain:{value:{parentDomain:{value:l,meta:{choices:c}},name:{value:u}}}}},installationPath:{value:d}},meta:{messages:p}})=>{this.setState((h=>{let m=h.isNewSubdomain;return c&&c.length||(m=!1),{domains:r,parentDomains:c,installationPath:null!=d?d:"",domain:{existing:a,newSubdomain:{name:u,parentDomain:l}},documentRoot:o,databaseCreationAllowed:t,dbServers:s,dbNamePrefix:i,database:{name:e,server:n},messages:p,isNewSubdomain:m,domainType:m?Dz:Pz}}),this.handleCloneStubUpdated)})).catch((()=>{this.setState({isWrongParams:!0})}))},this.handleCloneStubUpdated=()=>{const{databaseCreationAllowed:e,domains:t,parentDomains:n,messages:s}=this.state,{onAddDrawerErrorMessage:i,onSetDrawerMessages:a}=this.props;return this.setState({isWrongParams:!1}),(null==n?void 0:n.length)||(null==t?void 0:t.length)?e?void(s&&a(Object.keys(s).map((e=>{const t=s[e];return{key:e,status:t.intent,message:t.text}})))):(i("list-ui.instanceClone.dbSettings.dbSettingsError",!0,"databaseCreationNotAllowedError"),void this.setState({isWrongParams:!0})):(i("list-ui.instanceClone.domainSettings.domainSettingsError",!0,"emptyDomainsError"),void this.setState({isWrongParams:!0}))},this.setFormErrors=e=>{const{isNewSubdomain:t}=this.state,n=t?Dz:Pz,s=e.installationPath&&Object.keys(e.installationPath).length,i=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHidesAnotherWordpress"),a=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHidesAnotherApplication"),r=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHasUserFiles"),o=s&&-1!==Object.keys(e.installationPath).indexOf("cloningToSourceInstancePath");this.setState({formErrors:Object.keys(e).reduce(((s,o)=>{if("domain"===o&&(delete s[o],s[n]=t?Object.assign(Object.assign({},e.domain.newSubdomain.name),e.domain.newSubdomain.parentDomain):e.domain.existing),"installationPath"===o){if(s[n])return s;delete s[o],i||a||r||(s[n]=e[o])}return s}),Object.assign({},e)),isWpInstalled:i,isAppInstalled:a,hasUserFiles:r,isCloningToSourceInstancePath:o})},this.handleChangeInstallationPath=e=>{const{domain:{existing:t}}=this.state,{installation:{id:n},instanceCloneActions:{validateClonePath:s}}=this.props;t&&(this.setState({installationPath:e,isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1,formErrors:{}}),this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),this.debounceValidatePrefix=(0,Tz.debounce)((()=>s(n,{domain:t,installationPath:e}).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setFormErrors(e.response.data.formErrors)}))),500),this.debounceValidatePrefix())},this.handleChangeDomain=()=>this.setState({isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1},(()=>{const{isNewSubdomain:e,database:t,installationPath:n,domain:{existing:s,newSubdomain:{name:i,parentDomain:a}}}=this.state,{installation:{id:r},onClearDrawerMessages:o}=this.props,l={installationId:r,databaseName:t.name,databaseServer:t.server,installationPath:n};e?(l.domainNewSubdomainName=i,l.domainNewSubdomainParentDomain=a):l.domainExisting=s,o(),this.setState({isDomainSettingsLoading:!0}),this.getCloneStub(l).catch((()=>{})).finally((()=>{this.setState({isDomainSettingsLoading:!1})}))})),this.handleChangeDomainType=e=>{this.props.onClearDrawerMessages(),this.setState({domainType:e,isNewSubdomain:e===Dz,isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1})},this.handleChangeDatabaseSettings=(e,t)=>this.setState((n=>({database:Object.assign(Object.assign({},n.database),{[e]:t})}))),this.handleSubmit=()=>{const{isRewrite:e,dbNamePrefix:t,isNewSubdomain:n,database:s,installationPath:i,subdomainInstallationPath:a,domain:{existing:r,newSubdomain:{name:o,parentDomain:l}}}=this.state,{installation:{id:c},instanceCloneActions:{cloneInstallation:u},onClearDrawerMessages:d,showDomainOverviewLinkOnDone:p}=this.props,h={installationId:c,showDomainOverviewLinkOnDone:p,database:{name:s.name,namePrefix:t,server:s.server},overwrite:e};n?(h.domain={newSubdomain:{parentDomain:l,name:o}},h.installationPath=a):(h.domain={existing:r},h.installationPath=i),d(),this.setState({cloneTaskId:null,cloneTask:null,formErrors:{},isProcessing:!0}),u(h).then((e=>this.setState({cloneTaskId:e.id}))).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setFormErrors(e.response.data.formErrors),this.setState({isProcessing:!1})}))},this.isSubmitButtonDisabled=()=>{const{isWrongParams:e,isWpInstalled:t,isAppInstalled:n,hasUserFiles:s,isRewrite:i,isDomainSettingsLoading:a}=this.state,{isUnpaid:r,isFeatureDisabled:o}=this.props;return e||(t||n||s)&&!i||r||o||a},this.getSubmitButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isLoading:n}=this.state;return!n&&!t&&{onClick:this.handleSubmit,children:e?(0,P.jsx)(qd,{content:"list-ui.instanceClone.processingButton"}):(0,P.jsx)(qd,{content:"list-ui.instanceClone.submitButton"}),disabled:this.isSubmitButtonDisabled(),"data-test-id":"submit-button"}},this.getCancelButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isFailed:n,isLoading:s}=this.state,{onClose:i}=this.props;return!e&&!s&&{onClick:i,children:t||n?(0,P.jsx)(qd,{content:"list-ui.instanceClone.closeButton"}):(0,P.jsx)(qd,{content:"list-ui.instanceClone.cancelButton"}),"data-test-id":t||n?"close-button":"cancel-button"}},this.getDbServerName=()=>{const{database:e,dbServers:t}=this.state;if(!e.server||!t)return null;const n=t.find((t=>t.value===e.server));return n?n.title:null},this.getDomainInstallationUrl=()=>{const{domain:e,installationPath:t}=this.state;return t?`${e.existing}/${t}`:e.existing},this.getSubdomainInstallationUrl=()=>{const{domain:{newSubdomain:{name:e,parentDomain:t}},subdomainInstallationPath:n}=this.state;let s=`${e}.${t}`;return n&&(s=`${s}/${n}`),s},this.getTargetInstallationUrl=()=>this.state.isNewSubdomain?this.getSubdomainInstallationUrl():this.getDomainInstallationUrl(),this.getTargetInstallationFullPath=()=>{const{documentRoot:e,installationPath:t}=this.state;return t?`${e}/${t}`:e},this.renderTargetInstallationFullPath=()=>{const e=this.getTargetInstallationFullPath();return e?(0,P.jsx)(Fs,{target:(0,P.jsx)(_e,{className:"wpt-mgl-5",children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.showPath"})}),children:e}):null},this.renderDomainSettingsControl=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isRewrite:n,isNewSubdomain:s,parentDomains:i,domains:a,isWpInstalled:r,isAppInstalled:o,hasUserFiles:l,domainType:c}=this.state,{baseClassName:u}=this.props,d=(r||o||l)&&!n;return e||t?(0,P.jsxs)(Sa,{label:s?(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}):(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),children:[(0,P.jsx)(ei,{className:`${u}__destination-domain-name`,children:this.getTargetInstallationUrl()}),e&&n&&(0,P.jsx)(we,{intent:"warning",className:`${u}__rewrite-label`,children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.isRewrite"})})]}):(null==i?void 0:i.length)&&(null==a?void 0:a.length)?(0,P.jsx)(gr,{name:"domainType",value:c,label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.title"}),options:[{value:Dz,label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}),indentFields:s?[(0,P.jsx)(M.Fragment,{children:this.renderNewSubdomainSettings()},"newSubdomainSettings")]:[]},{value:Pz,label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),indentFields:s?[]:[(0,P.jsxs)("div",{className:E()({[`${u}__domain-settings-indent-fields--warning`]:d}),children:[this.renderDomainSettings(),d&&this.renderWpInstalledWarning()]},"domainSettings")]}],onChange:this.handleChangeDomainType}):(null==i?void 0:i.length)?(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}),children:this.renderNewSubdomainSettings()}):(null==a?void 0:a.length)?(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),children:(0,P.jsxs)("div",{className:E()({[`${u}__domain-settings-indent-fields--warning`]:d}),children:[this.renderDomainSettings(),d&&this.renderWpInstalledWarning()]})}):null},this.renderDomainSettings=()=>{const{installationPath:e,domains:t}=this.state,{baseClassName:n}=this.props;return(0,P.jsxs)(Sa,{label:null,name:Pz,className:`${n}__existing-domain`,children:[(0,P.jsx)(Lr,{name:"domain[existing]",id:"domain-search-input",label:null,onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{existing:e})})),this.handleChangeDomain),"data-test-id":"domain",searchable:!0,placeholder:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.selectDomainPlaceholder"}),className:`${n}__existing-domain__domain`,children:t.map((({value:e,title:t})=>(0,P.jsx)(Pr,{"data-test-value":e,value:e,children:t},e)))})," / ",(0,P.jsxs)(Sa,{label:null,className:`${n}__path-prefix`,name:"installationPath",description:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.pathPrefixDescription"}),children:[(0,P.jsx)(Cz,{type:"text",className:`${n}__path-prefix__text`,onChange:e=>this.handleChangeInstallationPath(e.target.value),value:e,placeholder:"list-ui.instanceClone.domainSettings.pathPrefixPlaceholder","data-test-id":dv}),this.renderTargetInstallationFullPath()]})]})},this.renderNewSubdomainSettings=()=>{const{subdomainInstallationPath:e,parentDomains:t}=this.state,{baseClassName:n}=this.props;return(0,P.jsxs)(Sa,{label:null,name:Dz,className:`${n}__new-subdomain`,children:[(0,P.jsx)(Sr,{label:null,name:"domain[newSubdomain][name]",className:`${n}__new-subdomain__name`,onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{newSubdomain:Object.assign(Object.assign({},t.domain.newSubdomain),{name:e})})})))})," . ",(0,P.jsx)(Lr,{label:null,name:"domain[newSubdomain][parentDomain]",id:"subdomainParentDomain-search-input",onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{newSubdomain:Object.assign(Object.assign({},t.domain.newSubdomain),{parentDomain:e})})})),this.handleChangeDomain),"data-test-id":"subdomainParentDomain",searchable:!0,placeholder:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.selectDomainPlaceholder"}),className:`${n}__new-subdomain__parent-domain`,children:t.map((({value:e,title:t})=>(0,P.jsx)(Pr,{value:e,children:t},e)))})," / ",(0,P.jsx)(Sa,{label:null,className:`${n}__path-prefix`,name:"installationPath",description:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.pathPrefixDescription"}),children:(0,P.jsx)(Cz,{type:"text",className:`${n}__path-prefix__text`,onChange:e=>this.setState({subdomainInstallationPath:e.target.value}),value:e,placeholder:"list-ui.instanceClone.domainSettings.pathPrefixPlaceholder","data-test-id":dv})})]})},this.renderWpInstalledWarning=()=>{const{isWpInstalled:e,isAppInstalled:t,hasUserFiles:n,isCloningToSourceInstancePath:s}=this.state,{baseClassName:i}=this.props;return s?(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.cloningToSourceInstancePathWarning"}):(0,P.jsxs)(M.Fragment,{children:[e&&(0,P.jsx)("span",{"data-test-id":"warning-wp-installed",children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.wpInstalledWarning"})}),t&&(0,P.jsx)("span",{"data-test-id":"warning-app-installed",children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.appInstalledWarning"})}),n&&(0,P.jsx)("span",{"data-test-id":"warning-user-files",children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.userFilesWarning"})}),(0,P.jsx)("div",{className:`${i}__wp-installed-warning-button-group`,children:(0,P.jsx)(Be,{className:`${i}__wp-installed-warning-button-group__is-rewrite-button`,onClick:()=>this.setState({isRewrite:!0}),"data-test-id":"rewrite-button",children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.domainSettings.isRewriteButton"})})})]})},this.renderSourceInstanceFullPath=()=>{const{installation:{path:e},baseClassName:t}=this.props,{isProcessing:n,isCompletedSuccessfully:s}=this.state;return n||s?null:e?(0,P.jsx)(Fs,{target:(0,P.jsx)(_e,{className:`${t}__show-path`,children:(0,P.jsx)(qd,{content:"list-ui.instanceClone.showPath"})}),children:e}):null},this.renderDbSettings=()=>{const{isCompletedSuccessfully:e,databaseCreationAllowed:t}=this.state,{baseClassName:n}=this.props;return!t||e?null:(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceClone.databaseSectionTitle"}),className:`${n}__section`,children:[this.renderDbName(),this.renderDbServer()]})},this.renderDbName=()=>{const{isProcessing:e,database:t,dbNamePrefix:n}=this.state,s=`${n}${t.name}`;return e&&s?(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.dbName"}),children:s}):(0,P.jsxs)(Sa,{name:"database[name]",label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.dbName"}),children:[n?(0,P.jsx)(ei,{children:n}):null,(0,P.jsx)(Ss,{type:"text",value:t.name,onChange:e=>this.handleChangeDatabaseSettings("name",e.target.value),"data-test-id":"db-name"})]})},this.renderDbServer=()=>{const{isProcessing:e,dbServers:t}=this.state;if(!t||t.length<=1)return null;const n=this.getDbServerName();return e&&n?(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.dbServer"}),children:n}):(0,P.jsx)(Lr,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.dbServer"}),name:"database[server]",onChange:e=>this.handleChangeDatabaseSettings("server",e),children:t.map((({value:e,title:t})=>(0,P.jsx)(Pr,{value:e,children:t},e)))})},this.renderPaidFeatureDesc=()=>{const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,isFeatureDisabled:s,installation:i}=this.props;return e||s?(0,P.jsx)(Fv,{uatAction:"CLICK_EXT_BUY_FROM_CLONE_FORM",purchaseLicenseUrl:t,installationId:i.id,premiumFeaturesUrl:n,children:(0,P.jsx)(qd,{content:"paidFeature.cloneFeatureDescription"})}):null},this.renderForm=()=>{const{isLoading:e,isDomainSettingsLoading:t}=this.state,{installation:{displayTitle:n},baseClassName:s}=this.props;return e?(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list-ui.instanceClone.loadingForm"})}):(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceClone.locationSectionTitle"}),className:`${s}__section`,children:[(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceClone.sourceInstance"}),"data-test-id":"source-instance",children:[n,this.renderSourceInstanceFullPath()]}),this.renderDomainSettingsControl()]}),this.renderDbSettings(),t&&(0,P.jsx)(Rn,{overlay:!0,backdrop:!0})]})},this.state=Oz}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),e.isOpen&&!this.props.isOpen&&this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),e.tasks!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}handleOpenAndLoadData(){this.setState(Oz),this.getCloneStub({installationId:this.props.installation.id}).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(e){const{cloneTaskId:t,cloneTask:n}=this.state;if(!t)return;const s=XD(t,e);s&&n!==s&&this.setState({cloneTask:s},this.handleCloneTaskUpdated)}handleCloneTaskUpdated(){const{cloneTask:e,domain:{existing:t=""},isNewSubdomain:n}=this.state,{isOpen:s,installation:i}=this.props;GD(e)?(this.setState({isCompletedSuccessfully:!0,isProcessing:!1}),s&&e.publicParams.redirect&&(n||t!==i.domain.name)&&(window.location=e.publicParams.redirect)):KD(e)&&this.setState({isFailed:!0,isProcessing:!1})}render(){const{formErrors:e,domainType:t,database:n,cloneTask:s,domain:i,installationPath:a,subdomainInstallationPath:r,isProcessing:o}=this.state,{installation:{title:l},onClose:c,renderDrawerMessages:u,isOpen:d}=this.props,p=this.getSubmitButtonConfig(),h=[];return p&&h.push((0,P.jsx)(Be,Object.assign({intent:"primary"},p),"submit")),(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instanceClone.drawerTitle",params:{instance:l}}),form:{onSubmit:this.handleSubmit,errors:e,values:{domainType:t,database:n,domain:i,installationPath:a,subdomainInstallationPath:r},applyButton:!1,submitButton:p,cancelButton:this.getCancelButtonConfig(),requiredMark:null,state:o?"submit":void 0},progress:dL(s,(()=>{this.setState({cloneTask:null,cloneTaskId:null})}),h),hideButton:!1,onClose:c,"data-test-id":"instance-clone-form","data-type":"instance-clone",size:"md",isOpen:d,children:[this.renderPaidFeatureDesc(),u(),this.renderForm()]})}}Iz.propTypes={installation:We().shape({displayTitle:We().string.isRequired,features:We().shape({clone:We().shape({applicable:We().bool.isRequired})}).isRequired,id:We().number.isRequired,path:We().string.isRequired,title:We().string.isRequired}).isRequired,instanceCloneActions:We().shape({getCloneStub:We().func.isRequired,validateClonePath:We().func.isRequired,cloneInstallation:We().func.isRequired}).isRequired,onSetDrawerMessages:We().func.isRequired,onClearDrawerMessages:We().func.isRequired,onAddDrawerErrorMessage:We().func.isRequired,renderDrawerMessages:We().func.isRequired,baseClassName:We().string,tasks:We().array,isUnpaid:We().bool.isRequired,upgradeUrl:We().string.isRequired,premiumFeaturesUrl:We().string,isFeatureDisabled:We().bool.isRequired,isOpen:We().bool.isRequired,showDomainOverviewLinkOnDone:We().bool},Iz.defaultProps={baseClassName:`${Rp}instance-clone-form`,tasks:[],premiumFeaturesUrl:null,showDomainOverviewLinkOnDone:!1};const Mz=mc(((e,t)=>{var n;return{tasks:e.backgroundTasks.tasks,isUnpaid:e.app.unpaidFeatures[Sp],upgradeUrl:e.app.urls.featuresBuyLinks[Sp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isFeatureDisabled:!(null===(n=t.installation.features.clone)||void 0===n?void 0:n.applicable)}}),(e=>({instanceCloneActions:kb(g,e)})))(kC(Iz)),Lz=({localeKey:e,href:t,iconName:n,children:s=null,onClick:i,primary:a,dataTestId:r,target:o="_self"})=>(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(ye,{href:t,target:o,icon:n,onClick:i,"data-test-id":r,primary:a,children:(0,P.jsx)(qd,{content:e})}),s]});class Az extends M.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}},primary:t}=this.props;return(0,P.jsx)(Lz,{href:e.backupManagerUrl,iconName:bM("backup"),localeKey:"controllers.index.detail.backupButton",dataTestId:"instance-link-backup",primary:t})},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n}=this.props;if(null===e.backupManagerUrl)return null;const s=Bv({link:e.backupManagerUrl,inNewWindow:!1,goToUri:n,accountUsername:t.login});return(0,P.jsx)(Lz,Object.assign({iconName:bM("backup"),localeKey:"controllers.index.detail.backupButton",dataTestId:"instance-link-backup"},s))}}render(){const{installation:{features:{backups:e},installationType:t},onOpenBackupDrawer:n,primary:s}=this.props;return e.wptBackupsAvailable?(0,P.jsx)(Lz,{onClick:n,iconName:"backup",localeKey:"list.instances.linkBackup",dataTestId:"instance-link-backup",primary:s},"list.instances.linkBackup"):e.panelBackupsAvailable&&e.backupManagerUrl?UM(t)?this.renderPlesk():RM(t)?this.renderCpanel():null:null}}Az.defaultProps={primary:!1};const Ez=mc(null,(e=>({goToUri:(t,n)=>e(hx(t,n))})))(Az),Rz=mc((e=>({unpaidFeatures:e.app.unpaidFeatures,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded})),(e=>({addErrorMessage:kb(qg,e)})))((({baseClassName:e=`${Rp}instance-links`,installation:t,unpaidFeatures:n,onOpenSyncDrawer:s,onOpenCloneDrawer:i,onOpenBackupDrawer:a,onOpenActionLogDrawer:r,onOpenWpCliDrawer:o,isWordPressInstancesLimitExceeded:l,addErrorMessage:c})=>{const{fileManager:u,copyData:d,clone:p,actionLog:h,wpCli:m}=t.features,[f,g]=(0,M.useState)(!1),b=(0,M.useCallback)((e=>{Xd(e,l?()=>{var e,n;return c((0,P.jsx)(qd,{content:"common.wordPressSitesLimitForDomainExceeded",params:{count:null===(e=t.domain)||void 0===e?void 0:e.installationsCount,limit:null===(n=t.domain)||void 0===n?void 0:n.installationsLimit}}))}:i)}),[t,i,l,c]);return(0,P.jsxs)("div",{className:e,children:[u.available&&(0,P.jsx)(ZF,{installation:t,children:(0,P.jsx)(qd,{content:"controllers.index.detail.linkFiles"})}),d.available&&(0,P.jsx)(Hv,{uatAction:Kv,featureName:wp,installationId:t.id,isInstanceFeatureDisabled:!d.applicable,description:(0,P.jsx)(qd,{content:"paidFeature.copyDataFeatureDescription"}),children:(0,P.jsx)(Lz,{onClick:e=>Xd(e,s),iconName:n[wp]||!d.applicable?null:"arrows-loop",localeKey:"list.instances.linkSync",dataTestId:"instance-link-sync"},"list.instances.linkSync")}),p.available&&(0,P.jsx)(Hv,{featureName:Sp,uatAction:Kv,installationId:t.id,isInstanceFeatureDisabled:!p.applicable,description:(0,P.jsx)(qd,{content:"paidFeature.cloneFeatureDescription"}),children:(0,P.jsx)(Lz,{onClick:b,iconName:n[Sp]||!p.applicable?null:"copy",localeKey:"list.instances.linkClone",dataTestId:"instance-link-clone"},"list.instances.linkClone")}),(0,P.jsx)(Ez,{onOpenBackupDrawer:a,installation:t}),h.available&&(0,P.jsx)(Lz,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"},"list.instances.linkActionLog"),m.available&&(0,P.jsxs)("span",{children:[(0,P.jsx)(Lz,{onClick:()=>{g(!0),o()},iconName:"console",localeKey:"list.instances.linkWpCli",dataTestId:"instance-link-wp-cli"},"list.instances.linkWpCli"),(0,P.jsx)(ZM,{code:"wp-cli-link",interacted:f})]})]})})),Uz=e=>{switch(e){case iN:return(0,P.jsxs)(xe,{intent:GU,children:[(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:GU})," ",(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updatePrognosis.success"})]});case aN:return(0,P.jsxs)(xe,{intent:KU,children:[(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:KU})," ",(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updatePrognosis.warning"})]});case rN:return(0,P.jsxs)(xe,{intent:XU,children:[(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:XU})," ",(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updatePrognosis.failed"})]})}return null},Nz=mc((e=>({restApiUrl:e.app.urls.restApiUrl})),null)((({installationId:e,smartPhpUpdateStatus:t,installationUrl:n,smartPhpUpdateCloneInstallationId:s,smartPhpUpdateCloneInstallationUrl:i,targetPhpHandlerName:a,phpHandlerName:r,isPublic:o,instanceLink:l,restApiUrl:c=""})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.header"})}),o&&l?(0,P.jsx)(Cs,{href:l,target:"_blank","data-test-id":"view-details",children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.linkToPanel"})}):null,(()=>{if(!n||!i)return null;const e=TN(PN(i));return(0,P.jsxs)(xe,{intent:qU,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.topNotice.main",params:{originalSiteLink:(0,P.jsx)(Cs,{href:n,target:"_blank",children:TN(PN(n))}),stagingSiteLink:(0,P.jsx)(Cs,{href:i,target:"_blank",children:e}),targetPhpHandlerName:(0,P.jsx)(ei,{bold:!0,children:a}),sourcePhpHandlerName:(0,P.jsx)(ei,{bold:!0,children:r})}})}),(0,P.jsxs)(mi,{children:[(0,P.jsx)("strong",{children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.topNotice.reviewStaging"})})," ",(0,P.jsx)(Cs,{href:i,target:"_blank",children:e})]})]})})(),Uz(t.status),(0,P.jsx)(LN,{smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:i,isPublic:o,downloadSummaryUrl:kf(c,e)})]}))),Fz=({isOpen:e,subtitle:t,installationId:n,smartPhpUpdateStatus:s,installationUrl:i,smartPhpUpdateCloneInstallationId:a,smartPhpUpdateCloneInstallationUrl:r,phpHandlerName:o,targetPhpHandlerName:l,onClose:c,onUpdate:u,onDiscard:d,isApplyInProcessing:p,baseClassName:h=`${Rp}smart-php-update-result-drawer`})=>{const[m,f]=(0,M.useState)(!1),[g,b]=(0,M.useState)(!1);return(0,P.jsx)(er,{title:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.drawerTitle"}),subtitle:t,isOpen:e,onClose:c,size:"lg","data-type":"smart-php-update-result",className:h,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{"data-test-id":"apply-smart-php-update",intent:"primary",onClick:()=>f(!0),size:"lg",state:p?"loading":void 0,children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.submitButtons.buttonApply"})}),placement:"bottom",visible:m,onClose:()=>f(!1),children:[(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updateConfirmationDialog.description",params:{phpHandlerName:(0,P.jsx)(ei,{bold:!0,children:o}),targetPhpHandlerName:(0,P.jsx)(ei,{bold:!0,children:l})},component:"p"}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>{f(!1),u()},"data-test-id":"confirm-apply-smart-php-update",intent:"primary",children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updateConfirmationDialog.buttonOk"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>f(!1),children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.updateConfirmationDialog.buttonCancel"})})})]})]},"apply-button"),(0,P.jsxs)(Fs,{target:(0,P.jsx)(Be,{"data-test-id":"discard-smart-php-update",onClick:()=>b(!0),size:"lg",disabled:p,children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.submitButtons.buttonDiscard"})}),placement:"bottom",visible:g,onClose:()=>b(!1),children:[(0,P.jsx)(qd,{content:"smartPhpUpdate.result.discardConfirmationDialog.description",component:"p"}),(0,P.jsxs)(Mi,{children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>{b(!1),d()},"data-test-id":"confirm-discard-smart-php-update",intent:"danger",children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.discardConfirmationDialog.buttonOk"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:()=>b(!1),children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.discardConfirmationDialog.buttonCancel"})})})]})]},"discard-button")]},children:(0,P.jsx)(Nz,{installationId:n,installationUrl:i,phpHandlerName:o,targetPhpHandlerName:l,smartPhpUpdateStatus:s,smartPhpUpdateCloneInstallationId:a,smartPhpUpdateCloneInstallationUrl:r,isPublic:!1})})},Yz=mc((e=>({upVotedFeatures:e.app.options.upVotedFeatures})),{upVoteForFeature:ub,addSuccessMessage:Wg})((({label:e,featureName:t,upVotedFeatures:n,upVoteForFeature:s,addSuccessMessage:i})=>(0,P.jsx)(xe,{intent:"info",children:(0,P.jsxs)(ai,{gap:"xs",children:[(0,P.jsx)(ri,{xs:11,children:e}),(0,P.jsx)(ri,{xs:1,children:(0,P.jsx)(Be,{state:"active",disabled:n.includes(t),onToggle:()=>{s(t).then((()=>{i((0,P.jsx)(qd,{content:"upVoteForFeature.successVoteUp"}))}))},children:(0,P.jsx)(qd,{content:"upVoteForFeature.voteButton"})})})]})}))),Hz=Object.assign({isLoading:!1,isProcessing:!1,isApplyInProcessing:!1,technicalDomainAvailable:!1,newSubdomainParentDomains:null,phpVersions:null,formValues:{parentDomain:null,phpVersion:null},messages:null,featureIsLimitedForThisConfiguration:!1,errorMessage:null,formErrors:{},smartPhpUpdateTaskId:null,smartPhpUpdateTask:null,smartPhpUpdateResultDrawerVisible:!1},{installationUrl:null,installationDisplayTitle:null,phpHandler:null,targetPhpHandler:null,smartPhpUpdateStatus:null,smartPhpUpdateCloneInstallationUrl:null,smartPhpUpdateCloneInstallationId:null});class Bz extends M.Component{constructor(e){super(e),this.handleOpenAndLoadData=()=>{this.setState(Object.assign(Object.assign({},Hz),{isLoading:!0}));const{instancesActions:{smartPhpUpdateStubLoaded:e},installation:{id:t}}=this.props;this.getSmartPhpUpdateStub().then((n=>{if(this.setState({messages:n.meta.messages,featureIsLimitedForThisConfiguration:n.meta.limited}),null===n.meta.tasks.update){if(n.meta.taskStatus!==oN)return this.setState({isProcessing:!0}),void this.getSmartPhpUpdateResult().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}));this.setState({isLoading:!1}),e(t)}else this.setState({isLoading:!1,isProcessing:!0,smartPhpUpdateTask:n.meta.tasks.update,smartPhpUpdateTaskId:n.meta.tasks.update.id},(()=>this.handleSmartPhpUpdateTaskUpdated()))})).catch((e=>{var t;(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&400===e.response.status||this.props.onClose()}))},this.getSmartPhpUpdateResult=()=>{const{instancesActions:{getSmartPhpUpdateResult:e},installation:{id:t}}=this.props;return e(t).then((({url:e,displayTitle:t,clone:{id:n,url:s},phpUpdateStatus:i,details:a,phpHandler:r,targetPhpHandler:o})=>{this.setState({installationUrl:e,installationDisplayTitle:t,phpHandler:r,targetPhpHandler:o,smartPhpUpdateStatus:{status:i,details:a.reduce(((e,{pageUrl:t,before:n,after:s})=>(e.push({pageUrl:t,beforePageFetchingErrorCode:n.pageFetchingErrorCode,before:n,afterPageFetchingErrorCode:s.pageFetchingErrorCode,after:s}),e)),[])},smartPhpUpdateCloneInstallationId:n,smartPhpUpdateCloneInstallationUrl:s,smartPhpUpdateResultDrawerVisible:!0})}))},this.getSmartPhpUpdateStub=()=>{const{instancesActions:{getSmartPhpUpdateStub:e},installation:{id:t}}=this.props;return e(t).then((e=>{var t,n,s;e.value.newSubdomain?this.setState((t=>({technicalDomainAvailable:!1,newSubdomainParentDomains:e.value.newSubdomain.value.parentDomain.meta.choices,formValues:Object.assign(Object.assign({},t.formValues),{parentDomain:e.value.newSubdomain.value.parentDomain.value})}))):this.setState({technicalDomainAvailable:!0});const i=null===(s=null===(n=null===(t=this.props.installation.features)||void 0===t?void 0:t.php)||void 0===n?void 0:n.handler)||void 0===s?void 0:s.identifier,a=e.value.php.meta.versions.filter((e=>!i||e.value!==i));return 0===a.length&&this.setState({formErrors:{phpVersion:{noAlternates:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.noAlternativePhp"})}}}),this.setState({phpVersions:a}),e})).catch((e=>{var t,n,s;return(null===(s=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message)&&this.setState({errorMessage:e.response.data.meta.message}),Promise.reject(e)}))},this.handleUpdate=()=>{const{instancesActions:{acceptSmartPhpUpdate:e,setInstallationPhpHandler:t,smartPhpUpdateResultApplied:n},installation:{id:s},appActions:{addSuccessMessage:i}}=this.props,{targetPhpHandler:a,phpVersions:r}=this.state;this.setState({isLoading:!0,isProcessing:!1,isApplyInProcessing:!0}),e(s).then((()=>{const e=r.find((e=>e.value===a.identifier));t(s,Object.assign(Object.assign({},a),{eoled:null==e?void 0:e.eoled})),n(s),i((0,P.jsx)(qd,{content:"smartPhpUpdate.result.appliedSuccessfully"})),this.handleCloseSmartPhpUpdateResultDrawer(),this.props.onClose()})).catch((()=>{})).finally((()=>{this.setState({isApplyInProcessing:!1}),this.getSmartPhpUpdateStub().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}))},this.handleDiscard=()=>{const{instancesActions:{discardSmartPhpUpdate:e,smartPhpUpdateResultDiscarded:t},installation:{id:n}}=this.props;this.handleCloseSmartPhpUpdateResultDrawer(),this.setState({isLoading:!0,isProcessing:!1}),e(n).then((()=>{t(n)})).catch((()=>{})).finally((()=>{this.getSmartPhpUpdateStub().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}))},this.handleCloseSmartPhpUpdateResultDrawer=()=>this.setState({smartPhpUpdateResultDrawerVisible:!1}),this.getPhpHandlerTitle=e=>{let{title:t}=e;return!1===e.isFpmAvailable&&(t=(0,P.jsxs)(P.Fragment,{children:[t," ","(",(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.nonFpm"}),")"]})),e.eoled&&(t=(0,P.jsxs)(P.Fragment,{children:[t," ","(",(0,P.jsx)(be,{name:"triangle-exclamation-mark-filled",intent:"warning"})," ",(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.phpVersionEoled"}),")"]})),t},this.renderErrorMessage=e=>(0,P.jsx)(xe,{intent:"danger",children:e}),this.renderSmartPhpUpdateForm=()=>{const{isLoading:e,newSubdomainParentDomains:t,phpVersions:n,technicalDomainAvailable:s}=this.state;return e?(0,P.jsx)(Rn,{}):(0,P.jsxs)(P.Fragment,{children:[!s&&t&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.subdomainWillCreated"})}),(0,P.jsx)(Lr,{name:"parentDomain",label:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.parentDomainLabel"}),fullDescription:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.parentDomainLabel.desc"}),required:!0,onChange:e=>this.setState((t=>({formValues:Object.assign(Object.assign({},t.formValues),{parentDomain:e})}))),"data-test-id":"smart-php-update-parent-domain-selector",children:t.map((e=>(0,P.jsx)(Pr,{"data-test-value":e.value,value:e.value,children:e.title},e.value)))})]}),s&&(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.techDomainWillCreated"})}),n&&(0,P.jsx)(Pa,{children:(0,P.jsx)(Lr,{name:"phpVersion",label:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.phpVersionLabel"}),fullDescription:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.phpVersionLabel.desc"}),required:!0,onChange:e=>this.setState((t=>({formValues:Object.assign(Object.assign({},t.formValues),{phpVersion:e})}))),"data-test-id":"smart-php-update-php-version-selector",children:n.map((e=>(0,P.jsx)(Pr,{"data-test-value":e.value,value:e.value,label:e.title,children:this.getPhpHandlerTitle(e)},e.value)))})})]})},this.renderSmartUpdateResultsDrawer=()=>{const{installation:{id:e},onClose:t}=this.props,{isApplyInProcessing:n,installationUrl:s,installationDisplayTitle:i,phpHandler:a,targetPhpHandler:r,smartPhpUpdateStatus:o,smartPhpUpdateCloneInstallationUrl:l,smartPhpUpdateCloneInstallationId:c,smartPhpUpdateResultDrawerVisible:u}=this.state;return o?(0,P.jsx)(Fz,{isOpen:u,subtitle:i,installationId:e,installationUrl:s,phpHandlerName:a.name,targetPhpHandlerName:r.name,smartPhpUpdateStatus:o,smartPhpUpdateCloneInstallationId:c,smartPhpUpdateCloneInstallationUrl:l,onClose:()=>this.setState({smartPhpUpdateResultDrawerVisible:!1},t),onUpdate:this.handleUpdate,onDiscard:this.handleDiscard,isApplyInProcessing:n}):null},this.handleSubmit=()=>{const{formValues:e}=this.state,{installation:{id:t},instancesActions:{runSmartPhpUpdate:n}}=this.props;this.setState({isProcessing:!0,formErrors:[]}),n({installationId:t,newSubDomain:e.parentDomain?{parentDomain:e.parentDomain}:null,php:e.phpVersion}).then((e=>{this.setState({smartPhpUpdateTaskId:e.id})})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&Object.keys(e.response.data.formErrors).length>0&&this.setState({formErrors:e.response.data.formErrors}),this.setState({isProcessing:!1})}))},this.handleUpdateBackgroundTasks=e=>{const{smartPhpUpdateTaskId:t}=this.state;if(!t)return;const n=XD(t,e);n&&this.setState({smartPhpUpdateTask:n},(()=>this.handleSmartPhpUpdateTaskUpdated()))},this.handleSmartPhpUpdateTaskUpdated=()=>{const{smartPhpUpdateTask:e}=this.state;GD(e)?this.getSmartPhpUpdateStub().then((e=>{e.meta.taskStatus!==oN&&(this.setState({isLoading:!0,smartPhpUpdateTaskId:null,smartPhpUpdateTask:null}),this.getSmartPhpUpdateResult().catch((()=>{})).then((()=>{this.setState({isProcessing:!1})})))})).catch((()=>{})):KD(e)&&this.setState((()=>({isProcessing:!1,smartPhpUpdateTaskId:null})))},this.renderDescription=()=>(0,P.jsx)(xe,{intent:"info",children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.description"})}),this.renderUpVoteForFeature=()=>(0,P.jsx)(Yz,{label:(0,P.jsx)(qd,{content:"upVoteForFeature.smartPhpUpdate"}),featureName:"smartPhpUpdateFeature"}),this.renderMessages=e=>e&&e.map((e=>(0,P.jsx)(xe,{intent:e.intent,onClose:()=>this.onCloseMessage(e.key),children:e.text},e.key))),this.onCloseMessage=e=>{this.setState((t=>({messages:t.messages.filter((t=>t.key!==e))})))},this.renderDrawerContent=()=>{const{messages:e,errorMessage:t,featureIsLimitedForThisConfiguration:n}=this.state;return n?(0,P.jsxs)(P.Fragment,{children:[this.renderDescription(),this.renderUpVoteForFeature()]}):t?(0,P.jsxs)(P.Fragment,{children:[this.renderDescription(),this.renderMessages(e),this.renderErrorMessage(t)]}):(0,P.jsxs)(P.Fragment,{children:[this.renderDescription(),this.renderMessages(e),this.renderSmartPhpUpdateForm(),this.renderSmartUpdateResultsDrawer()]})},this.state=Hz}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),this.props.isOpen&&e.tasks!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}renderDrawerSubtitle(){var e,t,n;const{installation:{displayTitle:s}}=this.props;return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.currentSite",params:{displayTitle:s}})})," ",(0,P.jsx)("br",{}),(null===(n=null===(t=null===(e=this.props.installation.features)||void 0===e?void 0:e.php)||void 0===t?void 0:t.handler)||void 0===n?void 0:n.name)&&(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.currentPhpHandlerName",params:{phpHandlerName:this.props.installation.features.php.handler.name}})})]})}render(){const{isOpen:e,onClose:t}=this.props,{isLoading:n,isProcessing:s,featureIsLimitedForThisConfiguration:i,formValues:a,formErrors:r,smartPhpUpdateTask:o}=this.state;return(0,P.jsx)(er,{"data-type":"smart-php-updates","data-test-id":"smart-php-update-stub-drawer",isOpen:e,onClose:t,title:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.drawerTitle"}),subtitle:this.renderDrawerSubtitle(),form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.submitButton"}),disabled:i||n,"data-test-id":"smart-php-update-run-button"},state:s?"submit":void 0,values:a,errors:r},progress:dL(o,(()=>{this.setState({smartPhpUpdateTask:null,smartPhpUpdateTaskId:null})}),[(0,P.jsx)(Be,{intent:"primary",state:s?"loading":void 0,onClick:this.handleSubmit,children:(0,P.jsx)(qd,{content:"forms.smartPhpUpdate.reSubmitButton"})},"reSubmitButton")]),children:this.renderDrawerContent()})}}Bz.propTypes={installation:We().shape({id:We().number.isRequired,displayTitle:We().string.isRequired,features:We().shape({php:We().shape({handler:We().shape({identifier:We().string.isRequired,name:We().string.isRequired})})}).isRequired}).isRequired,isOpen:We().bool.isRequired,onClose:We().func.isRequired,instancesActions:We().shape({getSmartPhpUpdateStub:We().func.isRequired,getSmartPhpUpdateResult:We().func.isRequired,runSmartPhpUpdate:We().func.isRequired,acceptSmartPhpUpdate:We().func.isRequired,discardSmartPhpUpdate:We().func.isRequired,setInstallationPhpHandler:We().func.isRequired,smartPhpUpdateTaskStatusUpdated:We().func.isRequired}).isRequired,tasks:We().array,appActions:We().shape({addSuccessMessage:We().func.isRequired}).isRequired},Bz.defaultProps={tasks:[]};const Vz=mc((e=>({tasks:e.backgroundTasks.tasks})),(e=>({instancesActions:kb(a,e),appActions:kb(t,e)})))(Bz);var $z=r(45192);const Wz=({baseClassName:e=`${Rp}wpcli-info`})=>(0,P.jsx)(Fs,{target:(0,P.jsx)(Cs,{children:(0,P.jsx)(qd,{content:"drawer.wpcli.info.learnMore"})}),title:(0,P.jsx)(qd,{content:"drawer.wpcli.info.title"}),children:(0,P.jsxs)("div",{className:e,children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"drawer.wpcli.info.description",unsafe:!0})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"drawer.wpcli.info.important",unsafe:!0})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"drawer.wpcli.info.attention"})}),(0,P.jsx)(mi,{children:(0,P.jsx)(Cs,{href:"https://support.plesk.com/hc/en-us/articles/30012732528407",target:"_blank",children:(0,P.jsx)(qd,{content:"drawer.wpcli.info.kbLink"})})})]})}),zz=({keyCode:e})=>13===e,qz=({keyCode:e})=>38===e,Gz=({keyCode:e})=>40===e,Kz=({keyCode:e})=>32===e,Xz=({keyCode:e})=>33===e,Qz=({keyCode:e})=>34===e,Jz=(e,t)=>{const n=[...t],s=n.shift();if(!s)return e;const i=e.find((e=>e.name===s.name));return(null==i?void 0:i.subcommands)?Jz(i.subcommands,n):[]},Zz="# ",eq=e=>"string"==typeof e?e:"",tq=mc(void 0,(e=>({getWpCliCommandsList:kb(Hk,e),executeWpCliCommand:kb(Bk,e)})))((({installationId:e,getWpCliCommandsList:t,executeWpCliCommand:n,baseClassName:s=`${Rp}wpcli-interface`})=>{const i=zd(),[a,r]=(0,M.useState)([]),[o,l]=(0,M.useState)(!1),[c,u]=(0,M.useState)(""),[d,p]=(0,M.useState)([]),[h,m]=(0,M.useState)([]),[f,g]=(0,M.useState)(!0),[b,v]=(0,M.useState)(-1),[y,x]=(0,M.useState)(Zz),[_,S]=(0,M.useState)(!1),[w,k]=(0,M.useState)(!0),[j,T]=(0,M.useState)(!1),[C,D]=(0,M.useState)(!1),[O,I]=QM("wpt-storage-wp-cli-drawer",{isAlertVisible:!0}),[L,A]=(0,M.useState)(!1),E=(0,M.useRef)(null),R=(0,M.useRef)(null);var U;U=()=>{A(!0),t(e).then((e=>r(e))).catch((()=>{})).finally((()=>A(!1)))},(0,M.useEffect)(U,[]),(0,M.useEffect)((()=>{const e=e=>{var t,n;e.target instanceof HTMLElement&&!(null===(t=R.current)||void 0===t?void 0:t.contains(e.target))&&!(null===(n=E.current)||void 0===n?void 0:n.contains(e.target))&&(l(!1),H())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const N=Jz(a,h).filter((({name:e})=>-1!==e.indexOf(c.trim())));(0,M.useEffect)((()=>{R.current&&b>=0&&b<N.length&&R.current.children[b].scrollIntoView({block:"center"})}),[b,N]);const F=o&&N.length>0,Y=h[h.length-1],H=()=>v(-1),B=(e,t=`\n${Zz}`)=>{x(j?`${Zz}${e}${t}`:n=>`${n}${e}${t}`)},V=()=>{let t=h.map((e=>e.name));c.length>0&&(t=t.concat((0,$z.parse)(c).map(eq)));const s={command:t,env:d.filter((e=>e&&(null==e?void 0:e.name.length))).reduce(((e,{name:t,value:n})=>(e[t]=n,e)),{})};A(!0),S(!0),B(`wp ${s.command.join(" ")}`,"\n"),n(e,s).then((e=>{const t=j?`wp ${s.command.join(" ")}\n`:"";B(`${t}${e.stdout}\n${e.stderr}\n< exit code: ${e.exitCode} >`)})).catch((()=>{})).finally((()=>{A(!1),S(!1)}))},$=e=>{var t;m((t=>[...t,e])),u(""),null===(t=E.current)||void 0===t||t.focus(),H()},W=(e,t)=>(0,P.jsx)(Oe,{title:i("drawer.wpcli.cliTab.commandPart.tooltip"),children:(0,P.jsx)(we,{className:`${s}__command-composer-items-command-part`,intent:"inactive",view:"outline",onClick:()=>((e,t)=>B(((e,t)=>{let n=((e,t,n)=>`wp help ${e}\n## NAME\n\n wp ${e}\n \n## DESCRIPTION\n\n ${t}\n \n## SYNOPSYS\n\n ${n}`)(t,e.description.short,null===e.synopsis?`wp ${t} <command>`:`wp ${t} ${e.synopsis}`);return e.subcommands.length>0&&(n=((e,t)=>`${e}\n\n## SUBCOMMANDS\n\n${t}`)(n,(e=>{const t=e.length?Math.max(...e.map((e=>e.name.length))):16;return e.map((e=>`\t${e.name.padEnd(t+4)}${e.description.short}`)).join("\n")})(e.subcommands))),e.description.extra&&(n=((e,t)=>`${e}\n\n${t}`)(n,e.description.extra)),n})(e,h.map((e=>e.name)).slice(0,t+1).join(" "))))(e,t),children:(0,P.jsxs)(P.Fragment,{children:[e.name,(0,P.jsx)(Oe,{title:i("drawer.wpcli.cliTab.commandPart.remove"),children:(0,P.jsx)(ye,{onClick:e=>{(e=>{m((t=>[...t.slice(0,e)])),u(""),H()})(t),e.stopPropagation()},icon:(0,P.jsx)(be,{name:"cross-mark-circle",size:"12"})})})]})})},e.name),z=(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Be,{icon:"clean",onClick:()=>{m([]),u("")},disabled:L||0===h.length&&0===c.length,tooltip:i("drawer.wpcli.cliTab.button.clearCommand.tooltip"),"data-test-id":"wp-cli-drawer-clear-btn"}),(0,P.jsx)(Be,{onClick:V,icon:"start",disabled:L,tooltip:i("drawer.wpcli.cliTab.button.execute.tooltip"),state:L?"loading":void 0,"data-test-id":"wp-cli-drawer-run-btn"}),(0,P.jsx)(Be,{onClick:()=>k(!w),icon:"unarchive",state:w?"active":void 0,tooltip:i("drawer.wpcli.cliTab.button.autoscroll.tooltip")}),(0,P.jsx)(Be,{onClick:()=>T(!j),icon:"reload",state:j?"active":void 0,tooltip:i("drawer.wpcli.cliTab.button.autoclear.tooltip")})]}),q=Y&&Y.synopsis?(0,P.jsx)(Sa,{className:`${s}__usage`,label:(0,P.jsx)(Ds,{level:5,children:i("drawer.wpcli.cliTab.usage.title")}),vertical:!0,children:Y.synopsis}):null,G=(0,P.jsx)(Sa,{name:"environmentVariables",onChange:e=>{p((t=>e))},label:i("drawer.wpcli.cliTab.environment.title"),multi:!0,vertical:!0,disabled:L,className:`${s}__environment-variable`,children:({getId:e,getName:t,getValue:n,setValue:s,isDisabled:a})=>{var r;const{name:o,value:l}=null!==(r=n())&&void 0!==r?r:{name:"",value:""};return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Ss,{id:`${e()}-name`,name:`${t()}-name`,value:o,disabled:a(),onChange:e=>s({name:e.target.value,value:l}),placeholder:i("drawer.wpcli.cliTab.environment.input.variable.placeholder").toString()})," ",(0,P.jsx)(Ss,{id:`${e()}-value`,name:`${t()}-value`,value:l,disabled:a(),onChange:e=>s({name:o,value:e.target.value}),placeholder:i("drawer.wpcli.cliTab.environment.input.value.placeholder").toString(),size:"xl"})]})}}),K=(0,P.jsxs)(Sa,{className:`${s}__command-composer`,label:(0,P.jsx)(Ds,{level:5,children:i("drawer.wpcli.cliTab.input.title")}),vertical:!0,children:[(0,P.jsxs)("div",{className:`${s}__command-composer-items`,children:[(0,P.jsx)(we,{intent:"inactive",view:"outline",children:"wp"}),h.length>0&&h.map(((e,t)=>W(e,t))),(0,P.jsx)(Ss,{innerRef:E,size:"lg",value:c,onChange:e=>{u(e.target.value)},onKeyDown:e=>{if(Gz(e)||qz(e)||Xz(e)||Qz(e))return e.preventDefault(),void(e=>{let t=0;qz(e)&&(t=b-1),Gz(e)&&(t=b+1),Xz(e)&&(t=b-5),Qz(e)&&(t=b+5),t<0&&(t=0),t>N.length-1&&(t=N.length-1),v(t)})(e);if((({keyCode:e})=>27===e)(e))return e.preventDefault(),void l(!1);if((({keyCode:e})=>8===e)(e)&&""===c)return e.preventDefault(),m((e=>[...e.slice(0,-1)])),void H();if(F&&(zz(e)||Kz(e))){e.preventDefault();const t=N[b];t&&$(t)}else!F&&zz(e)&&(e.preventDefault(),V())},disabled:L,onFocus:()=>l(!0),placeholder:0===N.length&&0!==a.length?i("drawer.wpcli.cliTab.input.placeholder.enterArguments").toString():i("drawer.wpcli.cliTab.input.placeholder.findCommands").toString(),"data-test-id":"wp-cli-drawer-input"}),z]}),F?((b<-1||b>=N.length)&&H(),0!==b&&1===N.length&&v(0),(0,P.jsx)(qs,{className:`${s}__command-composer-menu`,overlay:!0,ref:R,onFocus:()=>D(!0),onBlur:()=>D(!1),children:N.map(((e,t)=>(0,P.jsxs)(Sn,{onClick:()=>$(e),onKeyDown:t=>((e,t)=>{(zz(e)||Kz(e))&&(e.preventDefault(),$(t))})(t,e),active:!C&&b===t,"data-test-id":`wp-cli-drawer-cmd-${e.name}`,children:[(0,P.jsx)(ei,{intent:"success",bold:!0,children:e.name}),e.description.short?` - ${e.description.short}`:null,e.synopsis?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("br",{}),(0,P.jsx)(ei,{intent:"muted",children:e.synopsis})]}):null]},e.name)))})):null]});return(0,P.jsxs)("div",{className:s,children:[O.isAlertVisible?(0,P.jsx)(xe,{className:`${s}__alert`,intent:"warning",onClose:()=>I({isAlertVisible:!1}),children:i("drawer.wpcli.info.attention")}):null,(0,P.jsx)(Wz,{}),K,q,(0,P.jsx)(Pa,{className:`${s}__additional-section`,collapsible:!0,collapsed:f,onToggle:e=>g(e),title:(0,P.jsx)(Ds,{level:5,children:i("drawer.wpcli.additionalSection.title")}),children:G}),(0,P.jsx)("hr",{}),(0,P.jsx)(Ji,{className:`${s}__console`,autoscroll:w,cursor:_,"data-test-id":"wp-cli-drawer-output",children:y}),(0,P.jsx)(Be,{onClick:()=>x(Zz),tooltip:i("drawer.wpcli.cliTab.button.clear.tooltip"),"data-test-id":"wp-cli-drawer-clear-output-btn",children:i("drawer.wpcli.cliTab.button.clear.title")})]})})),nq=({isOpen:e,onClose:t,installationId:n})=>(0,P.jsx)(er,{isOpen:e,onClose:t,title:(0,P.jsx)(qd,{content:"drawer.wpcli.title"}),"data-type":"wp-cli-drawer",children:(0,P.jsx)(tq,{installationId:n})});var sq,iq;(iq=sq||(sq={}))[iq.GENERAL=1]="GENERAL",iq[iq.PLUGINS=2]="PLUGINS",iq[iq.THEMES=3]="THEMES",iq[iq.DATABASE=4]="DATABASE";class aq extends M.Component{constructor(e){super(e),this.setActiveTab=e=>{this.setState({activeTab:e})},this.handleOpenPluginsUpdates=()=>{this.props.onOpenUpdatesDialog(ix)},this.handleOpenThemesUpdates=()=>{this.props.onOpenUpdatesDialog(ax)},this.handleCloseUpdates=()=>{const{onCloseUpdatesDialog:e}=this.props;e()},this.handleRefresh=()=>this.props.onRefresh(this.props.installation.id),this.handleSwitchPhpHandler=e=>this.props.onSwitchPhpHandler(this.props.installation.id,e),this.handleRefreshAndOpenMainTab=()=>{this.handleRefresh(),this.setActiveTab(sq.GENERAL)},this.handleOpenNativePlugins=()=>{this.props.onOpenNativeAssets(this.props.installation.id,vp)},this.handleOpenNativeThemes=()=>{this.props.onOpenNativeAssets(this.props.installation.id,bp)},this.renderLicenseLimitsNotifier=()=>this.props.installation.features.remoteManagement.available?null:(0,P.jsx)("div",{className:"wpt-license-limit-exceeded-blocker","data-test-id":"remote-instance-license-limit-exceeded-blocker",children:(0,P.jsxs)(xe,{intent:"info",children:[(0,P.jsx)(be,{name:"exclamation-mark-circle"}),(0,P.jsx)(qd,{content:"remote-servers.remoteManagementAllowedOnlyWithLicense"})]})}),this.handleToggleRemoteInstanceSettings=()=>this.setState((e=>({showRemoteInstancePropertiesForm:!e.showRemoteInstancePropertiesForm}))),this.handleToggleRemoteAgentInstanceSettings=()=>this.setState((e=>({showRemoteAgentInstancePropertiesForm:!e.showRemoteAgentInstancePropertiesForm}))),this.handleOpenWpCliDrawer=()=>this.setState({isWpCliDrawerOpen:!0}),this.handleCloseWpCliDrawer=()=>this.setState({isWpCliDrawerOpen:!1}),this.getPluginsTabLabel=()=>{const{installation:{features:{pluginsBlockList:e}}}=this.props;return e.amountOfBlockedPlugins&&e.amountOfBlockedPlugins>0?(0,P.jsx)(we,{intent:"warning",children:(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"general-ui.tabs.plugins.hintBlockedPluginsCount"}),children:(0,P.jsx)(ei,{children:e.amountOfBlockedPlugins})})}):null},this.renderRemoteInstancePropertiesDrawer=()=>{const{showRemoteInstancePropertiesForm:e}=this.state,{installation:{server:t}}=this.props;return t&&e?(0,P.jsx)(oY,{installation:this.props.installation,onToggleRemoteInstancePropertiesForm:this.handleToggleRemoteInstanceSettings}):null},this.renderRemoteAgentInstancePropertiesDrawer=()=>{const{showRemoteAgentInstancePropertiesForm:e}=this.state,{installation:{server:t}}=this.props;return t&&e?(0,P.jsx)(cY,{installation:this.props.installation,onToggleRemoteAgentInstancePropertiesForm:this.handleToggleRemoteAgentInstanceSettings}):null},this.isSynchronizeSiteUrlAvailable=()=>this.props.isSynchronizeSiteUrlEnabled&&this.props.installation.features.synchronizeSiteUrl.available,this.renderSynchronizeSiteUrlDialog=()=>this.isSynchronizeSiteUrlAvailable()?(0,P.jsx)(dY,{installationId:this.props.installation.id,onClose:this.props.onCloseSynchronizeSiteUrlDialog,onSynchronizeSiteUrl:()=>{this.props.instanceActions.synchronizeSiteUrl(this.props.installation.id),this.props.onCloseSynchronizeSiteUrlDialog()},isOpen:this.props.showSynchronizeSiteUrlDialog}):null,this.renderScrollToElement=()=>{const{isSelected:e,onSetSelectedInstanceAnchor:t}=this.props;return e?(0,P.jsx)("div",{ref:t}):null},this.renderUpdatesDrawer=()=>{const{onOpenUpdatesSettingsDialog:e,onCloseUpdatesSettingsDialog:t,showUpdates:n,openUpdatesType:s,isUpdateSettingsFormOpen:i}=this.props;return(0,P.jsx)(zk,{children:(0,P.jsx)(GF,{onClose:this.handleCloseUpdates,onOpenUpdatesSettingsDialog:e,onCloseUpdatesSettingsDialog:t,installation:this.props.installation,openUpdatesType:s,isUpdateSettingsFormOpen:i,isOpen:n})})},this.renderSmartPhpUpdateDrawer=()=>{const{installation:e,isSmartPhpUpdatesDrawerOpen:t,onCloseSmartPhpDrawer:n,showSmartPhpUpdates:s}=this.props;return s&&(0,P.jsx)(Vz,{installation:e,isOpen:t,onClose:n})},this.renderSecurityDrawer=()=>{const{showSecurityForm:e,onCloseSecurityDialog:t,installation:n,securityDrawerActiveTab:s,onOpenVirtualPatchingUpsellDialog:i}=this.props;return(0,P.jsx)(wA,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.drawerTitle"}),subtitle:n.displayTitle,installation:n,isOpen:e,onClose:t,activeTab:s,onOpenVirtualPatchingUpsellDialog:i})},this.renderActionLogDrawer=()=>(0,P.jsx)(yB,{isOpen:this.props.isActionLogDrawerVisible,installation:this.props.installation,onCloseActionLogDrawer:this.props.onCloseActionLogDrawer}),this.renderCheckWordPressIntegrityDialog=()=>{const{isCheckWordPressIntegrityDialogVisible:e,onCloseCheckWordPressIntegrityDialog:t,onOpenBackupDrawer:n,installation:s}=this.props;return(0,P.jsx)(CB,{isOpen:e,installation:s,onCloseCheckWordPressIntegrityDialog:t,onOpenBackupDrawer:n})},this.renderBackupDrawer=()=>(0,P.jsx)(yL,{installation:this.props.installation,onClose:this.props.onCloseBackupDrawer,isOpen:this.props.isBackupDrawerVisible}),this.renderWpCliDrawer=()=>(0,P.jsx)(nq,{isOpen:this.state.isWpCliDrawerOpen,onClose:()=>this.handleCloseWpCliDrawer(),installationId:this.props.installation.id}),this.renderContent=()=>{const{installation:e,installation:{id:t,features:{php:n,updates:s},status:{alive:i,infected:a,unsupported:r},title:o},onDetach:l,onDisableInstances:c,onEnableInstances:u,instanceActions:{setInstanceName:d},addErrorMessage:p,isCloneDrawerOpen:h,onOpenCloneDrawer:m,onCloseCloneDrawer:f,isSyncDrawerOpen:g,onOpenSyncDrawer:b,onCloseSyncDrawer:v,onOpenSecurityDialog:y,onOpenUpdatesDialog:x,onOpenActionLogDrawer:_,onOpenBackupDrawer:S,urls:{upgradingInstanceInstructionsUrl:w},onOpenCheckWordPressIntegrityDialog:k,checkWordPressIntegrityFeatureEnabled:j,onOpenSmartPhpUpdatesDrawer:T}=this.props;return r?(0,P.jsx)(AH,{installation:this.props.installation,upgradingInstanceInstructionsUrl:w}):!i||a?(0,P.jsx)(sY,{installation:this.props.installation,onDetach:l,onToggleRemoteInstanceSettings:this.handleToggleRemoteInstanceSettings,onToggleRemoteAgentInstanceSettings:this.handleToggleRemoteAgentInstanceSettings,onOpenCheckWordPressIntegrityDialog:k,disableInstances:c,enableInstances:u,checkWordPressIntegrityFeatureEnabled:j}):(0,P.jsxs)("div",{children:[(0,P.jsx)(RY,{installationId:t,name:o,setInstanceName:d,addErrorMessage:p}),n.eoled&&(0,P.jsx)(DB,{installation:e,onOpenSmartPhpUpdatesDrawer:T}),s.availableVersion&&(0,P.jsx)(PB,{}),(0,P.jsxs)(vl,{active:this.state.activeTab,children:[(0,P.jsx)(gl,{onActivate:()=>this.setActiveTab(sq.GENERAL),title:(0,P.jsx)(qd,{content:"controllers.index.detail.generalTabHeader"}),"data-test-id":"instance-tab-general",children:(0,P.jsxs)(zk,{children:[(0,P.jsx)(Rz,{installation:e,onOpenBackupDrawer:S,onOpenActionLogDrawer:_,onOpenSyncDrawer:()=>b(t),onOpenCloneDrawer:()=>m(t),onOpenWpCliDrawer:()=>this.handleOpenWpCliDrawer()}),(0,P.jsx)(xz,{isOpen:g,onClose:v,installation:this.props.installation}),(0,P.jsx)(Mz,{isOpen:h,onClose:f,installation:this.props.installation}),(0,P.jsx)(OH,{installation:this.props.installation,enableInstances:u,disableInstances:c,openUpdates:x,onOpenSecurityDialog:y,onOpenSmartPhpUpdates:s.php.available?T:void 0,onOpenVirtualPatchingUpsellDialog:this.props.onOpenVirtualPatchingUpsellDialog,onOpenVirtualPatchingLicenseInfoDrawer:this.props.onOpenVirtualPatchingLicenseInfoDrawer})]})}),(0,P.jsx)(gl,{onActivate:()=>this.setActiveTab(sq.PLUGINS),title:(0,P.jsx)(qd,{content:"controllers.index.detail.pluginsTabHeader"}),label:this.getPluginsTabLabel(),"data-test-id":"instance-tab-plugins",children:(0,P.jsx)(zk,{children:(0,P.jsx)(kF,{isCollapsible:!1,installation:this.props.installation,onOpenNativePlugins:this.handleOpenNativePlugins,onUpdatesOpen:this.handleOpenPluginsUpdates,onOpenSecurityDialog:y})})}),(0,P.jsx)(gl,{onActivate:()=>this.setActiveTab(sq.THEMES),title:(0,P.jsx)(qd,{content:"controllers.index.detail.themesTabHeader"}),"data-test-id":"instance-tab-themes",children:(0,P.jsx)(zk,{children:(0,P.jsx)(CF,{isCollapsible:!1,installation:this.props.installation,onOpenNativeThemes:this.handleOpenNativeThemes,onUpdatesOpen:this.handleOpenThemesUpdates,onOpenSecurityDialog:y})})}),(0,P.jsx)(gl,{onActivate:()=>this.setActiveTab(sq.DATABASE),title:(0,P.jsx)(qd,{content:"controllers.index.detail.databaseTabHeader"}),"data-test-id":"instance-tab-database",children:(0,P.jsx)(zk,{children:(0,P.jsx)(LF,{installation:this.props.installation,onError:this.handleRefreshAndOpenMainTab})})})]})]})},this.renderFooter=()=>{const{installation:{status:{alive:e,unsupported:t}},installation:n,isLoading:s,onOpenUpdatesDialog:i,onOpenCheckWordPressIntegrityDialog:a}=this.props;return s?null:e?t?null:(0,P.jsx)(LH,{installation:n,onOpenUpdatesDialog:i,onOpenCheckWordPressIntegrityDialog:a}):null},this.renderLegacyView=()=>(0,P.jsxs)("div",{children:[(0,P.jsxs)(qi,{gap:"md",children:[(0,P.jsx)(Ki,{width:"316px",children:(0,P.jsx)(hY,{installation:this.props.installation,onToggleRemoteInstanceSettings:BM(this.props.installation.installationType)?this.handleToggleRemoteAgentInstanceSettings:this.handleToggleRemoteInstanceSettings,initialShowAdminSettingsDrawer:this.props.initialShowAdminSettingsDrawer})}),(0,P.jsx)(Ki,{fill:!0,children:this.renderContent()})]}),this.renderFooter()]}),this.state={activeTab:this.props.activeTab,showRemoteInstancePropertiesForm:!1,showRemoteAgentInstancePropertiesForm:!1,isWpCliDrawerOpen:!1}}componentDidUpdate(e){e.activeTab!==this.props.activeTab&&this.props.activeTab&&this.setActiveTab(this.props.activeTab)}componentWillUnmount(){const{showSynchronizeSiteUrlDialog:e,onCloseSynchronizeSiteUrlDialog:t,showSecurityForm:n,onCloseSecurityDialog:s,isCloneDrawerOpen:i,onCloseCloneDrawer:a,isSyncDrawerOpen:r,onCloseSyncDrawer:o,showUpdates:l,onCloseUpdatesDialog:c}=this.props;e&&t(),n&&s(),i&&a(),r&&o(),l&&c()}renderView(){const{installation:{features:{php:e}}}=this.props;return e.unsupported?(0,P.jsx)(RH,{installation:this.props.installation,onChangePHPHandler:this.handleSwitchPhpHandler}):this.renderLegacyView()}render(){const{installation:{id:e,title:t},isLoading:n,baseClassName:s}=this.props;return(0,P.jsxs)("div",{className:s,"data-test-id":`instance-body-${e}`,"data-test-name":`instance-body-${t}`,"data-test-row":"body",children:[this.renderView(),n&&(0,P.jsx)(Rn,{overlay:!0,backdrop:!0}),this.renderUpdatesDrawer(),this.renderSmartPhpUpdateDrawer(),this.renderLicenseLimitsNotifier(),this.renderRemoteInstancePropertiesDrawer(),this.renderRemoteAgentInstancePropertiesDrawer(),this.renderScrollToElement(),this.renderSynchronizeSiteUrlDialog(),this.renderSecurityDrawer(),this.renderActionLogDrawer(),this.renderCheckWordPressIntegrityDialog(),this.renderBackupDrawer(),this.renderWpCliDrawer()]})}}aq.defaultProps={baseClassName:`${Rp}instance-card`,openUpdatesType:null,initialShowAdminSettingsDrawer:!1,securityDrawerActiveTab:void 0};const rq=mc(((e,t)=>({isSynchronizeSiteUrlEnabled:e.app.options.isSynchronizeSiteUrlEnabled,checkWordPressIntegrityFeatureEnabled:e.app.options.checkWordPressIntegrityFeature,urls:e.app.urls,activeTab:e.instances.activeTabs.get(t.installation.id)||sq.GENERAL,showSmartPhpUpdates:e.app.options.smartPhpUpdateFeature})),(e=>({instanceActions:kb(a,e),addErrorMessage:t=>e(qg(t))})))(aq),{CancelToken:oq}=gf,lq={installingCustomAssetBackgroundTask:null,showInstallingCustomAssetBackgroundTaskDetails:!1,isInstallingCustomAssetBackgroundTaskProcessing:!1},cq={rating:0,numberOfInstallations:0,compatible:!1,lastUpdated:"all"};class uq extends M.Component{constructor(e){super(e),this.updateFilterState=e=>{const{filterState:t}=this.state;this.setState({filterState:Object.assign(Object.assign({},t),e)},this.fetchFirstPage)},this.isAssetsLoaded=()=>!(this.state&&this.state.type===vp&&(!this.props.pluginsV2||0===this.props.pluginsV2.length)||this.state&&this.state.type===bp&&(!this.props.themesV2||0===this.props.themesV2.length)),this.getAvailableAssets=({page:e=1,pageSize:t=40,searchValue:n="",compatible:s=!1,rating:i=0,lastUpdated:a="all",numberOfInstallations:r=0})=>{const{installation:o,assetActions:{getAvailable:l}}=this.props,{type:c,source:u}=this.state;let d=u;return this.state.isLoading&&(u.cancel(),d=oq.source(),this.setState({source:d})),this.setState({isLoading:!0}),l({installationId:o.id,assetsType:c,page:e,pageSize:t,term:n,token:d.token,compatible:s,rating:i,lastUpdated:a,numberOfInstallations:r}).catch((()=>{}))},this.checkStickyFilter=()=>{const e=document.documentElement.clientHeight-150,t=document.querySelector("#assets-container .wpt-assets-filter-container > div");if(!t)return;const n=e>t.clientHeight;n!==this.state.isStickyFilter&&this.setState({isStickyFilter:n})},this.isAssetInstalling=(e,t)=>this.props.installingAssets.has(ep({slug:e.slug,instanceId:t})),this.showAssetDetails=e=>this.setState({selectedItem:e}),this.setLoading=e=>this.setState({isLoading:e}),this.setFiltered=e=>this.setState({isFiltered:e}),this.setSearching=e=>this.setState({isSearching:e}),this.handleSearchItems=(e="")=>{this.setState((t=>({isSearching:""!==e,[`${t.type}SearchValue`]:e.trim()})),(()=>{this.fetchFirstPage()}))},this.handleSearchTyping=e=>{const t=e.trim(),n=this.state[`${this.state.type}SearchValue`];clearTimeout(this.searchTimeout),n!==t&&(n.length<t.length&&t.length>=3||n.length>t.length)&&(this.searchTimeout=setTimeout((()=>this.handleSearchItems(t)),500))},this.handleCloseAssetDetails=()=>this.setState({selectedItem:null}),this.handleGoToPluginsTab=()=>{this.state.type!==vp&&this.setState({type:vp,activeTab:1,isFiltered:!1},this.fetchFirstPage)},this.handleGoToThemesTab=()=>{this.state.type!==bp&&this.setState({type:bp,activeTab:2,isFiltered:!1},this.fetchFirstPage)},this.handleClearFilter=()=>{this.setState({isFiltered:!1,filterState:cq},this.fetchFirstPage)},this.fetchFirstPage=()=>this.setState({assetsListKey:(new Date).getTime()}),this.handleFetchItems=({page:e,pageSize:t})=>{const{type:n,filterState:{compatible:s,rating:i,lastUpdated:a,numberOfInstallations:r}}=this.state;this.getAvailableAssets({page:e,pageSize:t,searchValue:this.state[`${n}SearchValue`],compatible:s,rating:i,lastUpdated:a,numberOfInstallations:r}).then((e=>(this.setState({items:e.items,totalItems:e.total}),e))).finally((()=>{this.setState({isLoading:!1,isSearching:!1}),this.checkStickyFilter()}))},this.updateInstallingCustomAssetBackgroundTaskOnFinish=()=>{const{installingCustomAssetBackgroundTask:{steps:e,publicParams:{websiteUrls:t,assetType:n}}}=this.state,{installation:s,instancesActions:{setSelectedInstanceId:i,setInstanceActiveTab:a},onClose:r}=this.props,o=n===vp?"installCustomPlugin":"installCustomTheme",l=n===vp?this.state.installingCustomAssetBackgroundTask.publicParams.pluginName:this.state.installingCustomAssetBackgroundTask.publicParams.themeName,c=Object.assign({},e);c[o].title=(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(qd,{content:n===vp?"general-ui.install-custom-asset.pluginInstalledSuccessfully":"general-ui.install-custom-asset.themeInstalledSuccessfully",params:{assetName:l,websiteUrls:t}})," ",(0,P.jsx)(ye,{onClick:()=>{i(s.id,n),a(s.id,n===vp?sq.PLUGINS:sq.THEMES),r()},children:n===vp?(0,P.jsx)(qd,{content:"general-ui.install-custom-asset.installedPluginsLink"}):(0,P.jsx)(qd,{content:"general-ui.install-custom-asset.installedThemesLink"})})]}),this.setState((e=>({installingCustomAssetBackgroundTask:Object.assign(Object.assign({},e.installingCustomAssetBackgroundTask),{steps:c})})))},this.handleOnReceiveInstallCustomAssetBackgroundTaskData=()=>{const{installingCustomAssetBackgroundTaskId:e,installingCustomAssetBackgroundTask:t}=this.state,{tasks:n,installation:s,assetActions:{uploadAndInstallAssetToSingleInstanceFinished:i,uploadAndInstallAssetToSingleInstanceFinishedWithError:a},type:r}=this.props;if(!e)return;const o=XD(e,n);o&&t!==o&&this.setState({installingCustomAssetBackgroundTask:o},(()=>{GD(o)?(this.setState({isInstallingCustomAssetBackgroundTaskProcessing:!1}),this.updateInstallingCustomAssetBackgroundTaskOnFinish(),i(s.id,r).catch((()=>{}))):KD(o)&&(this.setState({isInstallingCustomAssetBackgroundTaskProcessing:!1}),a())}))},this.handleInstallCustomAsset=(e,t)=>{const{isInstallingCustomAssetBackgroundTaskProcessing:n}=this.state,{installation:s,assetActions:{uploadAndInstallAssetToSingleInstance:i}}=this.props;n||1!==t.length||(this.props.onClearDrawerMessages(),i(s.id,e,t[0]).then((e=>{this.setState({showInstallingCustomAssetBackgroundTaskDetails:!0,isInstallingCustomAssetBackgroundTaskProcessing:!0,installingCustomAssetBackgroundTask:null,installingCustomAssetBackgroundTaskId:e.task.id})})).catch((()=>{})))},this.handleInstallCustomAssetRejected=e=>{this.props.onClearDrawerMessages(),this.props.onAddDrawerErrorMessage(e===vp?"general-ui.install-custom-asset.pluginFileWrongFormat":"general-ui.install-custom-asset.themeFileWrongFormat",!0)},this.getToolbarGroups=()=>{const e=[],{installingAssets:t}=this.props,{type:n}=this.state;return t.size>0&&e.push((0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{})," ",(0,P.jsx)(qd,{content:`general-ui.native-${n}.installing`,params:{number:t.size}},`native-${n}-installing-counter`)]},"installing-assets")),e},this.state=Object.assign(Object.assign({isLoading:!1,isSearching:!1,isFiltered:!1,filterState:cq,items:[],totalItems:0,type:e.type,assetsListKey:(new Date).getTime(),selectedItem:null,isStickyFilter:!1,activeTab:e.type===vp?1:2,source:oq.source(),pluginsSearchValue:"",themesSearchValue:""},lq),{isAssetsLoaded:this.isAssetsLoaded()})}componentWillMount(){window.addEventListener("resize",this.checkStickyFilter,!1)}componentDidMount(){this.state.isAssetsLoaded||(this.state.type===vp?this.props.pluginsActions.getInstallationPlugins(this.props.installation.id).catch((()=>{})).finally((()=>this.setState({isAssetsLoaded:!0}))):this.props.themesActions.getInstallationThemes(this.props.installation.id).catch((()=>{})).finally((()=>this.setState({isAssetsLoaded:!0}))))}componentDidUpdate(e){e.tasks!==this.props.tasks&&this.handleOnReceiveInstallCustomAssetBackgroundTaskData()}componentWillUnmount(){window.removeEventListener("resize",this.checkStickyFilter)}render(){const{onClose:e,installation:{id:t,displayTitle:n,version:s},pluginsV2:i,themesV2:a,renderDrawerMessages:r}=this.props,{type:o,isLoading:l,isSearching:c,totalItems:u,items:d,selectedItem:p,isFiltered:h,isStickyFilter:m,assetsListKey:f,isInstallingCustomAssetBackgroundTaskProcessing:g,installingCustomAssetBackgroundTask:b,showInstallingCustomAssetBackgroundTaskDetails:v,isAssetsLoaded:y}=this.state;let x=null;return v&&b&&(x=b),(0,P.jsxs)(er,{id:"native-assets-list",title:(0,P.jsx)(qd,{content:"general-ui.native-assets.title"}),isOpen:!0,subtitle:n,size:"lg",onClose:e,"data-type":"native-assets",progress:dL(x,(()=>{this.setState({installingCustomAssetBackgroundTask:null})})),hideButton:!1,children:[r(),!y&&(0,P.jsx)(Rn,{}),y&&(0,P.jsxs)(M.Fragment,{children:[(0,P.jsxs)(vl,{className:"assets-drawer-tabs",search:(0,P.jsx)(_l,{autoFocus:!0,loading:c,onSearch:this.handleSearchItems,onTyping:this.handleSearchTyping,style:{maxWidth:500},"data-test-id":o===vp?"plugendio-plugins-search-bar":"plugendio-themes-search-bar"}),active:this.state.activeTab,children:[(0,P.jsx)(gl,{onActivate:this.handleGoToPluginsTab,title:(0,P.jsx)(qd,{content:"general-ui.tabs.plugins"}),children:(0,P.jsx)(dF,{assetType:o,disabled:g,onUpload:e=>this.handleInstallCustomAsset(o,e),onUploadRejected:()=>this.handleInstallCustomAssetRejected(o)})},1),(0,P.jsx)(gl,{onActivate:this.handleGoToThemesTab,title:(0,P.jsx)(qd,{content:"general-ui.tabs.themes"}),children:(0,P.jsx)(dF,{assetType:o,disabled:g,onUpload:e=>this.handleInstallCustomAsset(o,e),onUploadRejected:()=>this.handleInstallCustomAssetRejected(o)})},2)]}),(0,P.jsxs)("div",{id:"assets-container",className:"wpt-display-flex",children:[(0,P.jsx)("div",{className:"wpt-assets-card-list-container",children:(0,P.jsx)(Hi,{items:d,totalItems:u,itemKey:"slug",loading:l,onItemsFetch:this.handleFetchItems,view:"row",toolbarGroups:this.getToolbarGroups(),itemRender:e=>(0,P.jsx)(tF,{installation:this.props.installation,item:e,type:o,handleDetailsClick:()=>this.showAssetDetails(e),installedAssets:o===bp?a:i,isInstalling:this.isAssetInstalling(e,t)},`nativeAsset-${e.slug}`)},f)}),(0,P.jsx)("div",{className:"wpt-assets-filter-container","data-test-id":h?"filtered":"",children:(0,P.jsx)("div",{className:m?"wpt-assets-filter-sticky":"",children:(0,P.jsx)(lF,{type:o,onClearFilter:this.handleClearFilter,setLoading:this.setLoading,setFiltered:this.setFiltered,version:s,updateFilterState:this.updateFilterState})})})]}),p&&o===vp&&(0,P.jsx)(er,{isOpen:!0,onClose:this.handleCloseAssetDetails,backButton:!0,className:"assetDetailDrawer","data-type":"asset-detail",title:"",children:(0,P.jsx)(aF,{instanceId:t,item:p,installedAssets:i,isInstalling:this.isAssetInstalling(p,t)})})]})]})}}uq.propTypes={type:We().oneOf([vp,bp]).isRequired,onClose:We().func.isRequired,installation:We().shape({id:We().number.isRequired,displayTitle:We().string.isRequired,version:We().string.isRequired}).isRequired,pluginsV2:We().array,themesV2:We().array,installingAssets:We().object.isRequired,tasks:We().array,assetActions:We().shape({getAvailable:We().func.isRequired,uploadAndInstallAssetToSingleInstance:We().func.isRequired,uploadAndInstallAssetToSingleInstanceFinished:We().func.isRequired,uploadAndInstallAssetToSingleInstanceFinishedWithError:We().func.isRequired}).isRequired,instancesActions:We().shape({setSelectedInstanceId:We().func.isRequired,setInstanceActiveTab:We().func.isRequired,getInstancesData:We().func.isRequired}).isRequired,pluginsActions:We().shape({getInstallationPlugins:We().func.isRequired}).isRequired,themesActions:We().shape({getInstallationThemes:We().func.isRequired}).isRequired,onClearDrawerMessages:We().func.isRequired,onAddDrawerErrorMessage:We().func.isRequired,renderDrawerMessages:We().func.isRequired},uq.defaultProps={tasks:[],pluginsV2:[],themesV2:[]};const dq=mc(((e,t)=>{var n,s;return{pluginsV2:null!==(n=e.instances.pluginsV2[t.installation.id])&&void 0!==n?n:[],themesV2:null!==(s=e.instances.themesV2[t.installation.id])&&void 0!==s?s:[],installingAssets:e.assets.installingAssets,tasks:e.backgroundTasks.tasks}}),(e=>({assetActions:kb(m,e),instancesActions:kb(a,e),pluginsActions:kb(s,e),themesActions:kb(i,e)})))(kC(uq)),pq="maintenance",hq="debug",mq="security",fq="broken",gq="infected",bq="updates",vq="total",yq="phpOutdated",xq="vulnerable",_q="instances-filter",Sq="instances-sort",wq="instances-sort-order";const kq=e=>{var{baseClassName:t=`${Rp}updates-list-col-icon`,className:n="",children:s=null,intent:i,description:a=null}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["baseClassName","className","children","intent","description"]);const o="inactive"===i?"muted":i,l=(0,P.jsx)("span",Object.assign({className:E()(t,{[`${t}--${o}`]:o},n)},r,{children:s}));return a?(0,P.jsx)(Oe,{className:"maximum-z-index",title:a,children:l}):l};class jq extends M.Component{constructor(){super(...arguments),this.renderPopoverRow=()=>{const{assets:e}=this.props;return(0,P.jsx)("div",{className:"wpt-instances-updates-list_col-popover",children:e.reduce(((e,t)=>(e.push((0,P.jsx)("p",{children:`${t.title} ${t.version} → ${t.availableVersion}`},t.slug)),e)),[])})}}render(){const e=this.props,{assets:t,needToUpdateAssets:n,forceUpdates:s,forceUpdatesDescription:i}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["assets","needToUpdateAssets","forceUpdates","forceUpdatesDescription"]);return(0,P.jsxs)("div",Object.assign({className:"wpt-display-flex"},a,{children:[n>0?(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{children:n}),children:this.renderPopoverRow()}):(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.noUpdatesAvailable"}),children:(0,P.jsx)(Fa,{icon:"circle-check-mark",intent:"success"})}),(0,P.jsx)("span",{className:"wpt-mgl-5",children:"false"===s?null:(0,P.jsx)(kq,{intent:"success",description:i,children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.autoUpdateIsOn"})})})]}))}}jq.defaultProps={forceUpdatesDescription:null};const Tq=jq;const Cq=e=>{var{version:t,updateVersion:n=null,forceUpdates:s}=e,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["version","updateVersion","forceUpdates"]);return(0,P.jsxs)("div",Object.assign({className:"wpt-display-flex"},i,{children:[t&&n?(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{children:(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.updateVersionDescription"}),children:(0,P.jsx)(Fa,{icon:"triangle-exclamation-mark",intent:"warning"})})}),children:(0,P.jsx)("div",{className:"wpt-instances-updates-list_col-popover",children:`${t} → ${n}`})}):(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.noUpdatesAvailable"}),children:(0,P.jsx)(Fa,{icon:"circle-check-mark",intent:"success"})}),(0,P.jsx)("span",{className:"wpt-mgl-5",children:"disabled"===s&&(0,P.jsx)(kq,{intent:"danger",description:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.autoUpdateForCoreIsOffDescription"}),children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.autoUpdateIsOff"})})||"major"===s&&(0,P.jsx)(kq,{intent:"success",description:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.majorAutoUpdateForCoreIsOnDescription"}),children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.majorAutoUpdateIsOn"})})})]}))},Dq=({needToAcceptSmartUpdate:e})=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(kq,{intent:"success",description:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.smartUpdateDescription"}),children:"On"}),e&&(0,P.jsx)("span",{className:"wpt-mgl-5",children:(0,P.jsx)(Oe,{className:"maximum-z-index",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.waitingForAcceptSmartUpdate"}),children:(0,P.jsx)(Fa,{icon:"triangle-exclamation-mark",intent:"warning","data-test-id":"smart-update-waiting-for-accept"})})})]}),Pq="WITH_UPDATES",Oq="mass-updates-instance-row";class Iq extends M.Component{constructor(e){super(e),this.fetchUpdatesAndProcessData=()=>{const e=()=>{this.fetchAndProcessExistentTasks(),this.setListData(),this.dispatchSmartUpdatePromoUAT()},{instancesActions:{fetchAvailableUpdates:t},selectedInstancesIds:n}=this.props;return t(n).finally((()=>e()))},this.fetchAndProcessExistentTasks=()=>{const{backgroundTasksActions:{fetchBackgroundTasks:e}}=this.props,t=this.getUpdateInstancesTasks();t.length>0&&(this.setState({isUpdating:!0}),e(ig.getTasksData,t).then((e=>{if(0===e.length)return this.setState({isUpdating:!1}),void this.handleCheckForUpdates();this.setState({backgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateBackgroundTasks(e)))})));const n=this.getInstancesWithCheckUpdateTasks();if(n.length>0){this.setIsCheckingForUpdates(!0);const t=n.reduce(((e,t)=>(e.some((({id:e})=>e===t.tasks.check.id))||e.push({id:t.tasks.check.id,code:hD}),e)),[]);e(ig.getTasksData,t).then((e=>{0!==e.length?this.setState({massCheckUpdateTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateMassCheckUpdateTasks(e))):this.setIsCheckingForUpdates(!1)}))}},this.isUpdateDisabled=e=>e.length&&this.props.updates.some((t=>e.includes(t.id.toString())&&!t.applicable)),this.isInstanceUpdateDisabled=e=>!e.applicable,this.isSmartUpdatePromoBannerVisible=()=>{const{showSmartUpdatePromo:e,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:t,installations:n}=this.props,s=n.some((({installationType:e,features:{updates:t}})=>HM(e)&&(Boolean(t.availableVersion)||t.amountOfPluginsWithUpdates>0||t.amountOfThemesWithUpdates>0)));return!(!e||!s)&&(!!t||n.some((({features:e})=>e.updates.smart.promoAvailable)))},this.dispatchSmartUpdatePromoUAT=()=>this.state.showSmartUpdatePromoBanner&&Rv("SHOW_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO"),this.setListData=()=>{const{updates:e}=this.props,t=[],n=e.map((e=>{const n=e.id.toString();return $F(e)&&!this.isInstanceUpdateDisabled(e)&&t.push(n),Object.assign(Object.assign({key:n},e),{id:n,needToAcceptSmartUpdate:this.showNeedToAcceptSmartUpdate(e.smartUpdate.taskStatus,e.smartUpdate.status),disabled:this.props.isUnpaid||this.isInstanceUpdateDisabled(e)})}));this.setState({listData:n,selection:t},(()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedListData:t})}))},this.showNeedToAcceptSmartUpdate=(e,t=!1)=>t&&null!==e&&lN(e),this.getInstallationById=e=>this.props.installations.find((t=>t.id===+e)),this.getNeedToUpdateInstancesIds=()=>this.props.updates.reduce(((e,t)=>($F(t)&&e.push(t.id),e)),[]),this.getNeedToUpdateSelectionInstancesIds=()=>this.getNeedToUpdateInstancesIds().filter((e=>-1!==this.state.selection.indexOf(e.toString()))),this.getInstallationUpdate=e=>this.props.updates.find((t=>+t.id==+e)),this.getUpdateInstancesTasks=()=>this.getInstancesWithUpdateTasks().reduce(((e,t)=>(e.some((({id:e})=>e===t.tasks.update.id))||e.push({id:t.tasks.update.id,code:t.tasks.update.code}),e)),[]),this.getInstancesWithUpdateTasks=()=>this.props.updates.filter((e=>e.tasks.update)),this.getInstancesWithCheckUpdateTasks=()=>this.props.updates.filter((e=>e.tasks.check)),this.clearSelection=()=>{this.setState({selection:[]})},this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({listData:e}=this.state),e.filter((e=>!n||-1!==e.displayTitle.toLowerCase().indexOf(n)))},this.applyFilter=(e=null)=>{const{filter:t}=this.state;return e||({listData:e}=this.state),e.filter((e=>{switch(t){case Pq:return Boolean(e.core.availableVersion)||e.plugins.length>0||e.themes.length>0;case"ALL":return!0;default:return!1}}))},this.getListColumns=()=>{const e=[{key:"instance",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.instance"}),render:e=>this.props.isUnpaid||this.isInstanceUpdateDisabled(e)?(0,P.jsx)(Hv,{uatAction:Gv,featureName:Cp,description:(0,P.jsx)(qd,{content:"paidFeature.updateFeatureDescription"}),installationId:e.id,isInstanceFeatureDisabled:!1===e.applicable,children:(0,P.jsx)("span",{"data-test-id":Oq,"data-test-instance-id":e.id,children:e.displayTitle})}):(0,P.jsx)("span",{"data-test-id":Oq,"data-test-instance-id":e.id,children:e.displayTitle})},{key:"wordpress",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.wordpress"}),render:e=>(0,P.jsx)(Cq,{version:e.core.version,updateVersion:e.core.availableVersion,forceUpdates:String(e.autoUpdate.core),"data-test-id":"mass-updates-core-column","data-test-version":e.core.version,"data-test-update-version":e.core.availableVersion})},{key:"plugins",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.plugins"}),render:e=>(0,P.jsx)(Tq,{needToUpdateAssets:e.plugins.length,forceUpdates:String(e.autoUpdate.plugins.forceUpdates),forceUpdatesDescription:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.autoUpdateForPluginsIsOnDescription"}),assets:e.plugins,"data-test-id":"mass-updates-plugin-column"})},{key:"themes",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.themes"}),render:e=>(0,P.jsx)(Tq,{needToUpdateAssets:e.themes.length,forceUpdates:String(e.autoUpdate.themes.forceUpdates),forceUpdatesDescription:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.autoUpdateForThemesIsOnDescription"}),assets:e.themes,"data-test-id":"mass-updates-theme-column"})},{key:"details",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.details"}),render:e=>-1===this.state.updateInstancesIds.indexOf(+e.id)?(0,P.jsx)(ye,{icon:"chevron-right",onClick:()=>this.handleOpenInstanceUpdatesDrawer(e.id)}):(0,P.jsx)(Fa,{progress:!0})}];return this.props.showSmartUpdates&&e.splice(-1,0,{key:"smart-update",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instancesList.columns.smart-update"}),render:e=>e.smartUpdate.status?(0,P.jsx)(Dq,{needToAcceptSmartUpdate:e.needToAcceptSmartUpdate}):null}),e},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleDisableSmartUpdatePromo=()=>{this.setState({showSmartUpdatePromoBanner:!1}),this.props.appActions.disableSmartUpdatePromoForMultipleSitesUpdatesScreen({instanceIds:this.getNeedToUpdateInstancesIds()}),Rv("CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_CLOSE_BUTTON")},this.handleOnUpdateBackgroundTasks=e=>{const{instancesActions:{fetchAvailableUpdates:t}}=this.props,{backgroundTaskIds:n,updateInstancesIds:s}=this.state;let i=s;const a=[],r=this.getInstancesWithUpdateTasks();n.forEach((t=>{const n=XD(t,e);if(!n)return;qD(n)&&(n.errors.length>0&&(this.props.addErrorMessage(n.errors.join("\n")),this.setState({hasUpdateErrors:!0,isUpdating:!1,updateInstancesIds:[]})),this.setState((e=>({backgroundTaskIds:e.backgroundTaskIds.filter((e=>e!==n.id))}))));const{currentlyUpdatingInstallationId:s,successfullyUpdatedInstallationsIds:o=[]}=n.publicParams;i.filter((e=>!o.includes(e)||(a.includes(e)||a.push(e),!1))),s&&!i.includes(s)&&(i=i.concat(s));const l=r.filter((e=>e.tasks.update.id===n.id));l.length>0&&l.forEach((e=>{qD(n)&&!a.includes(e.id)&&a.push(e.id),n.code===sS||qD(n)||i.includes(e.id)||(i=i.concat(e.id))}))})),r.filter((e=>!i.includes(e.id))).forEach((e=>{n.includes(e.tasks.update.id)||a.includes(e.id)||a.push(e.id)})),s!==i&&this.setState({updateInstancesIds:i}),a.length&&t(a).then((()=>{this.setState((e=>({updateInstancesIds:up(e.updateInstancesIds,a)})),this.handleOnAllInstancesUpdated)}))},this.handleOnUpdateMassCheckUpdateTasks=e=>{const{massCheckUpdateTaskIds:t}=this.state,{addSuccessMessage:n,addErrorMessage:s}=this.props;let i=!0,a=!1;t.forEach((t=>{const n=XD(t,e);n&&(qD(n)?(n.errors.length>0&&(s(n.errors.join("\n")),a=!0),i=i&&!0,this.setState((e=>({massCheckUpdateTaskIds:e.massCheckUpdateTaskIds.filter((e=>e!==n.id))})))):i=!1)})),i&&(a||n("common.task_mass_check_updates_done",!0,"resetCacheSuccess"),this.setIsCheckingForUpdates(!1))},this.handleOnAllInstancesUpdated=()=>{const{instancesActions:{instancesMassUpdateFinished:e,instancesMassUpdateFailed:t},addSuccessMessage:n}=this.props;this.state.updateInstancesIds.length>0||(this.state.hasUpdateErrors?t():(n("list-ui.instancesUpdates.updatingInstancesItems.success",!0,"updatingInstancesItemsSuccess"),e()),this.setState({isUpdating:!1,hasUpdateErrors:!1}))},this.handleUpdate=()=>{const{instancesActions:{updateItems:e},clearMessages:t}=this.props,n=this.getNeedToUpdateSelectionInstancesIds().map((e=>{var t;const n=this.getInstallationUpdate(e);return{installationId:+e,core:{update:null!==((null===(t=n.core)||void 0===t?void 0:t.availableVersion)||null),restorePoint:!1},plugins:n.plugins.map((e=>e.slug)),themes:n.themes.map((e=>e.slug))}}));t(),this.setState({isUpdating:!0}),e(n).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.setState({isUpdating:!1})}))},this.handleCheckForUpdates=()=>{const{clearMessages:e,instancesActions:{checkUpdates:t}}=this.props;e();const n=this.state.selection.map((e=>+e));n.length<1||(this.setIsCheckingForUpdates(!0),t(n).then((e=>{this.setState((t=>({massCheckUpdateTaskIds:t.massCheckUpdateTaskIds.concat(e.id)})))})).catch((()=>{})))},this.handleSearch=e=>this.setState({search:e},(()=>{this.clearSelection(),this.setListData()})),this.handleFilter=e=>this.setState({filter:e},(()=>{this.clearSelection(),this.setListData()})),this.handleOpenInstanceUpdatesDrawer=e=>this.setState({instanceIdForSingleUpdatesDrawer:e,showInstanceUpdatesDrawer:!0}),this.handleCloseInstanceUpdatesDrawer=()=>{this.setState({showInstanceUpdatesDrawer:!1}),this.fetchUpdatesAndProcessData().catch((()=>{}))},this.handleToggleSettingsDrawer=()=>{this.setState((e=>({showSettingsDrawer:!e.showSettingsDrawer,settingsSelection:e.showSettingsDrawer?[]:[...e.selection]})))},this.renderToolbar=()=>{const{updates:e,isUnpaid:t}=this.props,{isUpdating:n,showedListData:s,selection:i,isCheckingForUpdates:a}=this.state,r=this.getNeedToUpdateSelectionInstancesIds(),o=e.some((e=>e.autoUpdate.available));return(0,P.jsxs)(Mi,{className:"wpt-mgt-10",children:[(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{intent:"primary",disabled:t||this.isUpdateDisabled(i)||a||0===r.length||0===s.length,state:n?"loading":void 0,onClick:this.handleUpdate,"data-test-id":"mass-updates-update-button",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.updateButton"})})}),o&&(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{disabled:0===i.length,onClick:this.handleToggleSettingsDrawer,"data-test-id":"mass-updates-settings-button",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.changeSettingsButton"})})}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"refresh",disabled:n||0===i.length,state:a?"loading":void 0,onClick:this.handleCheckForUpdates,"data-test-id":"mass-updates-check-updates-button",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.checkForUpdatesButton"})})}),(0,P.jsx)(ui,{}),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(_l,{onTyping:this.handleSearch})})]})},this.renderLastUpdatePanel=()=>{const{isCheckingForUpdates:e}=this.state,{updates:t}=this.props;if(e)return null;const n=t.reduce(((e,t)=>(t.lastCheckUpdateTimestamp&&e.push(t.lastCheckUpdateTimestamp),e)),[]);if(0===n.length)return(0,P.jsx)(dl,{className:"wpt-mgt-15",children:(0,P.jsx)(ei,{className:"wpt-instances-updates_last-update-date",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.lastUpdateDateIsUnknown"})})});const s=new Date(1e3*Math.min(...n));return(0,P.jsx)(dl,{className:"wpt-mgt-15",children:(0,P.jsx)(ei,{className:"wpt-instances-updates_last-update-date",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.lastUpdateDate",params:{lastUpdateDate:s.toLocaleString()}})})})},this.handleOpenUpdateSettings=()=>this.setState({isUpdateSettingsOpened:!0}),this.handleCloseUpdateSettings=()=>this.setState({isUpdateSettingsOpened:!1}),this.setIsCheckingForUpdates=e=>this.setState({isCheckingForUpdates:e}),this.renderInstanceUpdatesDrawer=()=>{const{instanceIdForSingleUpdatesDrawer:e,showInstanceUpdatesDrawer:t,isUpdateSettingsOpened:n}=this.state,s=this.getInstallationUpdate(e),i=this.getInstallationById(e);return i&&s?(0,P.jsx)(GF,{installation:i,title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.instanceUpdatesDrawerTitle"}),onClose:this.handleCloseInstanceUpdatesDrawer,backButton:!0,isOpen:t,openUpdatesType:"",onOpenUpdatesSettingsDialog:this.handleOpenUpdateSettings,onCloseUpdatesSettingsDialog:this.handleCloseUpdateSettings,isUpdateSettingsFormOpen:n}):null},this.renderInstancesList=()=>{const{showedListData:e,selection:t}=this.state,{isUpdating:n,isCheckingForUpdates:s}=this.state;return!n&&s?(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.checkingForUpdates"}):0===e.length?(0,P.jsx)("div",{className:"wpt-mgt-15","data-test-id":"mass-updates-updates-not-found",children:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.updatesNotFound"})}):(0,P.jsx)(Qr,{className:"wpt-mgt-15",columns:this.getListColumns(),data:e,selection:t,onSelectionChange:this.handleSelectionChange,"data-test-id":"mass-updates-instances-list"})},this.renderMultipleSitesAutoUpdatesSettingsDrawer=()=>{const{settingsSelection:e,showSettingsDrawer:t}=this.state,n=e.length,s=this.props.updates.filter((t=>rp(e,t.id.toString())));return(0,P.jsx)(tA,{title:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.title",params:{sitesCount:n}}),subtitle:(0,P.jsx)(qd,{content:"multipleSitesAutoUpdatesSettingsDrawer.subtitle"}),isOpen:t,"data-type":"instances-updates-settings",updates:s,onClose:this.handleToggleSettingsDrawer,addSuccessMessage:this.props.addSuccessMessage})},this.renderFilter=()=>{const{filter:e}=this.state,{updates:t}=this.props,n=this.getNeedToUpdateInstancesIds();return(0,P.jsxs)(Mi,{className:"wpt-mgt-10",children:[(0,P.jsx)(ui,{},"toolbarExpander"),(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Zs,{label:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.filterByLabel"}),labelPlacement:"left",buttons:[{value:"ALL",title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.filterAll",params:{count:t.length}}),"data-test-id":"mass-updates-filter-all"},{value:Pq,title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.filterUpdates",params:{count:n.length}}),disabled:!1,"data-test-id":"mass-updates-filter-outdated"}],selected:e,onChange:this.handleFilter})},"toolbarShowInstances")]})},this.renderSmartUpdatePromo=()=>(0,P.jsx)(VF,{isOpen:this.state.showSmartUpdatePromoBanner,onClose:this.handleDisableSmartUpdatePromo,uatActions:{showPopover:"SHOW_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER",clickPopoverCloseButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON",clickOpenStoreButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_OPEN_STORE_BUTTON",clickTryNowButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_TRY_NOW_BUTTON"}}),this.renderPaidFeatureDesc=()=>{const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,updates:s}=this.props,i=s.map((e=>e.id.toString()));return e||this.isUpdateDisabled(i)?(0,P.jsx)(Fv,{uatAction:Gv,purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,P.jsx)(qd,{content:"paidFeature.updateFeatureDescription"})}):null},this.state={listData:[],showedListData:[],selection:[],search:"",instanceIdForSingleUpdatesDrawer:null,updateInstancesIds:[],isUpdating:!1,isCheckingForUpdates:!1,showInstanceUpdatesDrawer:!1,showSettingsDrawer:!1,settingsSelection:[],showSmartUpdatePromoBanner:this.isSmartUpdatePromoBannerVisible(),filter:Pq,backgroundTaskIds:[],hasUpdateErrors:!1,massCheckUpdateTaskIds:[],isUpdateSettingsOpened:!1,isInitialDataLoading:!0}}componentWillMount(){this.props.instancesActions.cleanUpUpdatesStore()}componentDidMount(){this.fetchUpdatesAndProcessData().catch((()=>{})).finally((()=>this.setState({isInitialDataLoading:!1})))}componentWillReceiveProps(e,t){const{backgroundTaskIds:n,massCheckUpdateTaskIds:s}=this.state;n.length&&e.tasks!==this.props.tasks&&this.handleOnUpdateBackgroundTasks(e.tasks),s.length&&this.handleOnUpdateMassCheckUpdateTasks(e.tasks)}componentDidUpdate(e,t,n){e.updates!==this.props.updates&&this.setListData()}componentWillUnmount(){this.props.instancesActions.cleanUpUpdatesStore()}render(){return this.state.isInitialDataLoading?(0,P.jsx)(Rn,{}):(0,P.jsxs)(M.Fragment,{children:[this.renderPaidFeatureDesc(),this.renderSmartUpdatePromo(),(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.headDescription"}),this.renderToolbar(),this.renderFilter(),this.renderLastUpdatePanel(),this.renderInstancesList(),this.renderInstanceUpdatesDrawer(),this.renderMultipleSitesAutoUpdatesSettingsDrawer()]})}}Iq.propTypes={selectedInstancesIds:We().array.isRequired,updates:We().array,installations:We().arrayOf(We().shape({id:We().number.isRequired,installationType:We().oneOf(Object.values(u)).isRequired,features:{updates:We().shape({availableVersion:We().string.isRequired,amountOfPluginsWithUpdates:We().number.isRequired,amountOfThemesWithUpdates:We().number.isRequired,smart:We().shape({available:We().bool.isRequired,status:We().bool,promoAvailable:We().bool.isRequired}).isRequired})}.isRequired})).isRequired,tasks:We().array,showSmartUpdates:We().bool.isRequired,showSmartUpdatePromo:We().bool.isRequired,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:We().bool.isRequired,clearMessages:We().func.isRequired,addSuccessMessage:We().func.isRequired,addErrorMessage:We().func.isRequired,appActions:We().shape({disableSmartUpdatePromoForMultipleSitesUpdatesScreen:We().func.isRequired}).isRequired,instancesActions:We().shape({updateItems:We().func.isRequired,getInstancesData:We().func.isRequired,fetchAvailableUpdates:We().func.isRequired,checkUpdates:We().func.isRequired,instancesMassUpdateFinished:We().func.isRequired,instancesMassUpdateFailed:We().func.isRequired,setInstanceActiveTab:We().func.isRequired,cleanUpUpdatesStore:We().func.isRequired}).isRequired,backgroundTasksActions:We().shape({fetchBackgroundTasks:We().func.isRequired}).isRequired,isUnpaid:We().bool.isRequired,upgradeUrl:We().string.isRequired,premiumFeaturesUrl:We().string},Iq.defaultProps={tasks:[],premiumFeaturesUrl:null,updates:[]};const Mq=mc((e=>({installations:e.instances.installations,updates:e.updates,showSmartUpdates:e.app.options.showSmartUpdates,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:e.app.options.isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen,isUnpaid:e.app.unpaidFeatures[Cp],upgradeUrl:e.app.urls.featuresBuyLinks[Cp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),(e=>({appActions:kb(t,e),instancesActions:kb(a,e),backgroundTasksActions:kb({fetchBackgroundTasks:ZD},e)})))(Iq);class Lq extends M.Component{constructor(e){super(e),this.renderUrlColumn=e=>(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(e,Object.assign(Object.assign({},SC.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),this.getColumns=()=>[{key:"url",title:"",width:"90%",render:e=>this.renderUrlColumn(e.url||"")},{key:"status",title:"",width:"10%"}],this.getData=()=>this.props.installationsToRemove.map((e=>{const t=e.isPossibleToRemove?"success":"danger";return Object.assign(Object.assign({},e),{key:e.id.toString(),status:(0,P.jsx)(Fs,{target:(0,P.jsx)(Fa,{intent:t}),placement:"top-right",children:e.hintMessage})})})),this.handleChangeActionLogRemoveOption=e=>{var t,n;this.setState({actionLogChecked:e}),null===(n=(t=this.props).changeRemoveOptions)||void 0===n||n.call(t,{ActionLog:e})},this.state={actionLogChecked:!0}}render(){const{title:e,actionLogFeatureEnabled:t,actionLogRemoveLabel:n}=this.props,{actionLogChecked:s}=this.state;return(0,P.jsxs)(P.Fragment,{children:[e,(0,P.jsx)(Qr,{columns:this.getColumns(),data:this.getData()}),t&&(0,P.jsx)(ut,{checked:s,onChange:this.handleChangeActionLogRemoveOption,children:n})]})}}Lq.defaultProps={actionLogFeatureEnabled:!1,actionLogRemoveLabel:null};const Aq=Lq,Eq=e=>{const t=zd();return(0,P.jsx)(Sr,Object.assign({},e,{placeholder:t(e.placeholder)}))};var Rq=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n};const Uq="directoryHidesAnotherWordpress",Nq="directoryHidesAnotherApplication",Fq="directoryHasUserFiles",Yq="major",Hq="minor",Bq="true",Vq="false",$q="disabledWithUpdates",Wq="true",zq="false",qq="disabledWithUpdates",Gq="updateVulnerable",Kq="updateVulnerable";class Xq extends M.Component{constructor(e){super(e),this.componentDidUpdate=(e,t)=>{!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),this.state.installationPath!==t.installationPath&&this.updateInstallationPathStatus(this.state.domain,this.state.installationPath),this.state.domain!==t.domain&&this.updateInstallationPathStatus(this.state.domain,this.state.installationPath),this.state.pathLocked!==t.pathLocked&&this.setPathValidationProcessed(!0),this.props.tasks!==e.tasks&&this.handleUpdateBackgroundTasks()},this.getInstallationStub=(e=void 0,t=void 0)=>{const{getInstallationStub:n}=this.props;return this.setState({isWrongParams:!1}),n(e,t).then((({title:{value:e},installationPath:{value:t},admin:{value:{login:{value:n},password:{value:s},email:{value:i}}},database:{value:{name:{value:a,meta:{isCustomizationAllowed:r}},server:{value:o,meta:{choices:l}},userName:{value:c},userPassword:{value:u},tablePrefix:{value:d},namePrefix:{value:p},userNamePrefix:{value:h}}},autoUpdate:{value:{core:{value:m},plugins:{value:{forceUpdates:{value:f},newlyInstalledUpdates:{value:g},updateVulnerable:{value:b},deactivateVulnerable:{value:v}}},themes:{value:{forceUpdates:{value:y},newlyInstalledUpdates:{value:x},updateVulnerable:{value:_}}}},meta:{isCustomizationAllowed:S}},protocol:{value:w,meta:{choices:k}},domain:{value:j,meta:{choices:T}},version:{value:C,meta:{choices:D}},language:{value:P,meta:{choices:O}},set:{value:I,meta:{choices:M}}})=>{this.setState({title:e,installationPath:t,admin:{email:i,login:n,password:s},database:{name:a,userName:c,userPassword:u,tablePrefix:d,server:o},dbNamePrefix:p,dbUserNamePrefix:h,dbServers:l,isDatabaseCustomizationAllowed:r,autoUpdate:{core:m,plugins:{forceUpdates:!f&&b?$q:f.toString(),newlyInstalledUpdates:g,updateVulnerable:b,deactivateVulnerable:v},themes:{forceUpdates:!y&&_?qq:y.toString(),newlyInstalledUpdates:x,updateVulnerable:_}},isAutoUpdatesCustomizationAllowed:S,protocol:w,protocols:k,domain:j,domains:T,version:C,versions:D,language:P,languages:O,set:I,sets:M},this.checkDomain)})).catch((e=>{var t,n;if(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors){const t=e.response.data.formErrors,{domain:n}=t,s=Rq(t,["domain"]);n&&(s.installationFullPath=n),this.setState((()=>({errors:s})))}this.setState({isWrongParams:!0})}))},this.setPathValidationProcessed=e=>this.setState({pathValidationProcessed:e}),this.setDatabaseSettings=(e,t)=>this.setState((n=>({database:Object.assign(Object.assign({},n.database),{[e]:t})}))),this.pathIsLocked=e=>e&&Object.keys(e).find((e=>-1!==[Uq,Nq,Fq].indexOf(e)))||null,this.updateInstallationPathStatus=(e,t)=>{if(this.setState({overwrite:!1,pathLocked:!1,pathLockedReason:null}),this.state.errors&&this.state.errors.installationFullPath){const e=this.state.errors,{installationFullPath:t}=e,n=Rq(e,["installationFullPath"]);this.setState({errors:n})}this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),this.debounceValidatePrefix=(0,Tz.debounce)((()=>this.props.validateInstallationPath(e,t).catch((e=>{var t,n,s,i,a,r;if(null===(s=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)||void 0===s?void 0:s.installationPath){const t=this.pathIsLocked(e.response.data.formErrors.installationPath),n=!!t;this.setState((s=>({pathLocked:n,pathLockedReason:t,errors:Object.assign(Object.assign({},s.errors),{installationFullPath:!n&&e.response.data.formErrors.installationPath})})))}(null===(r=null===(a=null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.formErrors)||void 0===r?void 0:r.domain)&&this.setState((t=>({errors:Object.assign(Object.assign({},t.errors),{installationFullPath:Object.assign(Object.assign({},t.errors.installationFullPath),e.response.data.formErrors.domain)})})))}))),500),this.debounceValidatePrefix()},this.handleSubmit=e=>{if(this.isSubmitDisabled())return;const{createInstallation:t,onBeforeInstallation:n,addErrorMessage:s,onClearDrawerMessages:i,redirectToDomainOverviewOnDone:a}=this.props;i(),this.setState({isProcessing:!0}),n&&n(),(e=Object.assign(Object.assign({},e),{autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{plugins:Object.assign(Object.assign({},e.autoUpdate.plugins),{[Gq]:!1}),themes:Object.assign(Object.assign({},e.autoUpdate.themes),{[Kq]:!1})})})).autoUpdate.plugins.forceUpdates===$q&&(e.autoUpdate.plugins.forceUpdates=Vq,e.autoUpdate.plugins[Gq]=!0),e.autoUpdate.themes.forceUpdates===qq&&(e.autoUpdate.themes.forceUpdates=zq,e.autoUpdate.themes[Kq]=!0);const r=Object.assign(Object.assign({},e),{domain:e.domain,set:parseInt(e.set),overwrite:this.state.overwrite,autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{plugins:Object.assign(Object.assign({},e.autoUpdate.plugins),{forceUpdates:"true"===e.autoUpdate.plugins.forceUpdates}),themes:Object.assign(Object.assign({},e.autoUpdate.themes),{forceUpdates:"true"===e.autoUpdate.themes.forceUpdates})}),showDomainOverviewLinkOnDone:a});this.setIsFirstInstallationOnDomain(),t(r).then((e=>this.setState({installationTaskId:e.id}))).catch((e=>{var t,n,i,a;if(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors){const{formErrors:t}=e.response.data,n={};t.installationPath&&Object.assign(n,t.installationPath),t.protocol&&Object.assign(n,t.protocol),t.domain&&Object.assign(n,t.domain),Object.keys(n).length>0&&(t.installationFullPath=n),this.setState({errors:t,isDatabaseSectionCollapsible:!this.isErrorsForDatabaseSectionExists(t)}),t.installationFullPath&&this.setState({pathLocked:!1})}else if(e instanceof lx){const t=(null===(a=null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.data)||void 0===a?void 0:a.meta)||e.toString();s((0,P.jsx)(qd,{content:"list-ui.instanceInstall.failedBackgroundTask",params:{message:t}}))}else{const{message:t}=e.response.data.meta;s((0,P.jsx)(qd,{content:t}))}})).finally((()=>{this.setState({isProcessing:!1})}))},this.handleToggleSetPopover=()=>{var e;this.setState((e=>({showSetPopover:!e.showSetPopover}))),(null===(e=this.state.currentSet)||void 0===e?void 0:e.id)!==parseInt(this.state.set)&&(this.setState({currentSet:{}}),this.props.getSetDetails(this.state.set).then((e=>{this.setState({currentSet:e})})).catch((()=>{})))},this.handleToggleCoreUpdatesPopover=()=>this.setState((e=>({showCoreUpdatesPopover:!e.showCoreUpdatesPopover}))),this.handleChangeWpVersion=e=>{let t=Yq;gA().compare(e,"5.6","<")&&(t=Hq),this.setState((e=>({autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{core:t})})))},this.checkDomain=()=>{const{protocols:e,protocol:t}=this.state,{onClearDrawerMessages:n,onAddDrawerWarningMessage:s}=this.props;n(),e.length>1&&"http"===t&&s("list-ui.instanceInstall.selectHTTPSProtocolDescription",!0,"installationFullPath"),1===e.length&&s("list-ui.instanceInstall.enableSSLSupportDescription",!0,"installationFullPath")},this.onChangeProtocol=e=>this.setState({protocol:e},this.checkDomain),this.onChangeDomain=e=>{const{version:t}=this.state;this.setState({isDomainSettingsLoading:!0}),this.getInstallationStub(e,t).finally((()=>{this.setState({isDomainSettingsLoading:!1})}))},this.renderInstallationFullPathControl=e=>{const{domains:t,protocols:n,installationPath:s}=this.state,{baseClassName:i}=this.props;return(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.installationPrefix"}),name:"installationFullPath",className:`${i}__installation-path`,children:[this.renderDropdownControl({name:"protocol",options:n,disabled:e||1===n.length,onChange:e=>this.onChangeProtocol(e),size:"xs"}),(0,P.jsx)("span",{className:`${i}__installation-path_separators`,children:"://"}),this.renderObjectSwitcherControl({name:"domain",options:t,disabled:e||1===t.length,onChange:e=>this.onChangeDomain(e)}),(0,P.jsx)("span",{className:`${i}__installation-path_separators`,children:"/"}),(0,P.jsx)(Cz,{type:"text",name:"installationPath",onChange:e=>Xd(e,(()=>this.setState({installationPath:e.target.value}))),value:s,placeholder:"list-ui.instanceInstall.installationPrefixPlaceholder",disabled:e}),this.renderWpInstalledWarning()]})},this.renderObjectSwitcherControl=({name:e,options:t,disabled:n,onChange:s=null})=>(0,P.jsx)(Mr,{value:this.state.domain,name:e,id:`${e}-select-container`,onChange:s,"data-test-id":e,disabled:n,searchable:!0,className:`${this.props.baseClassName}__installation-path_domain-selector`,children:t?t.map((({value:e,title:t})=>(0,P.jsx)(Pr,{value:e,children:t},e))):[]}),this.renderFormFieldText=({name:e,label:t,placeholder:n,prefix:s,disabled:i,dataTestId:a=""})=>(0,P.jsxs)(Sa,{name:e,label:t,"data-test-id":a,children:[s?(0,P.jsx)(ei,{children:s}):null,(0,P.jsx)(Cz,{type:"text",placeholder:n,value:this.state[e],onChange:t=>Xd(t,(()=>this.setState({[e]:t.target.value}))),disabled:i})]}),this.renderFormFieldPassword=({name:e,label:t})=>(0,P.jsx)(fr,{name:e,label:t,onChange:t=>this.setState({[e]:t})}),this.renderFormFieldDropdown=({name:e,label:t,options:n,onChange:s=null,disabled:i=!1,dataTestId:a=null})=>(0,P.jsx)(Sa,{label:t,name:e,children:this.renderDropdownControl({name:e,options:n,disabled:i,onChange:s,dataTestId:a})}),this.renderDropdownControl=({name:e,options:t,disabled:n=!1,onChange:s=null,dataTestId:i=null,size:a=null})=>(0,P.jsx)(Mr,{name:e,"data-test-id":i,value:this.state[e],onChange:t=>{"function"==typeof s&&s(t),this.setState({[e]:t})},disabled:n,size:a,children:t?t.map((({value:e,title:t})=>(0,P.jsx)(Pr,{"data-test-value":e,value:e.toString(),children:t},e))):[]}),this.isSubmitDisabled=()=>{const{isProcessing:e,isWrongParams:t,pathLocked:n,overwrite:s}=this.state;return e||t||n&&!s},this.isErrorsForDatabaseSectionExists=e=>!(!e||e.length<=0)&&["name","tablePrefix","dbUserName","dbUserPassword"].filter((t=>e&&e.hasOwnProperty("database")&&e.database.hasOwnProperty(t))).length>0,this.renderDbServerControl=({disabled:e})=>{const{database:t,dbServers:n}=this.state;return!n||n.length<=1?null:(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.dbServer"}),children:(0,P.jsx)(Mr,{name:"database[server]","data-test-id":"instance-install-form-field-dbServerId",value:t.server,onChange:e=>this.setState((t=>({database:Object.assign(Object.assign({},t.database),{server:e})}))),disabled:e,children:n.map((({value:e,title:t})=>(0,P.jsx)(Pr,{value:e.toString(),children:t},e)))})})},this.renderAutoUpdates=()=>{const{isAutoUpdatesCustomizationAllowed:e}=this.state;return e?(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.autoUpdatesSettings.sectionTitle"}),collapsible:!0,collapsed:!0,className:"wp-instance-install_section",children:[(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.autoUpdatesSettings.description"})}),this.renderCoreAutoUpdates(),this.renderPluginsAutoUpdates(),this.renderThemesAutoUpdates()]}):null},this.renderCoreAutoUpdates=()=>{const{autoUpdate:{core:e},showCoreUpdatesPopover:t}=this.state;return(0,P.jsx)(gr,{name:"autoUpdate[core]",label:(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdatesLabel"}),(0,P.jsx)(Fs,{visible:t,onClose:this.handleToggleCoreUpdatesPopover,target:(0,P.jsx)(ye,{onClick:e=>Xd(e,this.handleToggleCoreUpdatesPopover),icon:"circle-info",className:"wpt-mgl-5"}),children:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdatesPopoverContent"})})]}),value:e,options:[{value:"disabled",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.disabledOptionLabel"}),description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.disabledOptionDescription"})},{value:Hq,label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.minorOptionLabel"}),description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.minorOptionDescription"})},{value:Yq,label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.majorOptionLabel"}),description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{core:e})})))})},this.renderPluginsAutoUpdates=()=>{const{autoUpdate:{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,P.jsx)(gr,{name:"autoUpdate[plugins][forceUpdates]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledOptionLabel"}),value:Vq,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"autoUpdate[plugins][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{newlyInstalledUpdates:e})})})))},"newlyInstalledPluginsAutoUpdates")]},s?{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:$q,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"autoUpdate[plugins][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{newlyInstalledUpdates:e})})})))},"newlyInstalledPluginsAutoUpdates"),(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"autoUpdate[plugins][deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{deactivateVulnerable:e})})})))},"deactivateVulnerablePlugins")]}:null,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.enabledOptionLabel"}),value:Bq,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"autoUpdate[plugins][deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{deactivateVulnerable:e})})})))},"deactivateVulnerablePlugins")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{forceUpdates:e})})})))})},this.renderThemesAutoUpdates=()=>{const{autoUpdate:{themes:{forceUpdates:e,newlyInstalledUpdates:t}}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,P.jsx)(gr,{name:"autoUpdate[themes][forceUpdates]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdatesLabel"}),value:e.toString(),options:[{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledOptionLabel"}),value:zq,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"autoUpdate[themes][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{newlyInstalledUpdates:e})})})))},"newlyInstalledThemesAutoUpdates")]},n?{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:qq,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,P.jsx)(ar,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"autoUpdate[themes][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{newlyInstalledUpdates:e})})})))},"newlyInstalledThemesAutoUpdates")]}:null,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.enabledOptionLabel"}),value:Wq,description:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{forceUpdates:e})})})))})},this.renderSetAssets=()=>{const{set:e,currentSet:t}=this.state;if(!e||"0"===e)return null;const n=(e,t)=>t&&t.length?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(qd,{content:`list-ui.instanceInstall.set.${e}`}),":",(0,P.jsx)("ul",{children:t.filter((e=>e.slug&&e.title)).map((e=>(0,P.jsx)("li",{children:e.title},e.slug)))})]}):null;return(0,P.jsxs)(Fs,{visible:this.state.showSetPopover,onClose:this.handleToggleSetPopover,target:(0,P.jsx)(ye,{onClick:e=>Xd(e,this.handleToggleSetPopover),icon:"circle-info",className:"wpt-mgl-5"}),title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.set.popoverTitle"}),children:[!(null==t?void 0:t.id)&&(0,P.jsx)(fD,{}),n(vp,t.plugins),n(bp,t.themes)]})},this.renderSetControl=e=>{const{sets:t}=this.state;return t&&t.length?(0,P.jsxs)(Sa,{label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.set.title"}),children:[this.renderDropdownControl({name:"set",options:t,dataTestId:"instance-install-form-field-set",disabled:e}),this.renderSetAssets()]}):null},this.renderWpInstalledWarning=()=>{if(!this.state.pathLocked||this.state.overwrite)return null;const{baseClassName:e}=this.props,{pathLockedReason:t}=this.state;return(0,P.jsxs)("div",{className:E()({[`${e}__domain-settings-indent-fields--warning`]:this.state.pathLocked}),children:[t===Uq&&(0,P.jsx)(qd,{content:"list-ui.instanceInstall.domainSettings.wpInstalledWarning"}),t===Nq&&(0,P.jsx)(qd,{content:"list-ui.instanceInstall.domainSettings.appInstalledWarning"}),t===Fq&&(0,P.jsx)(qd,{content:"list-ui.instanceInstall.domainSettings.userFilesWarning"}),(0,P.jsx)("div",{className:`${e}__wp-install-warning-button-group`,children:(0,P.jsx)(Be,{className:`${e}__wp-install-warning-button-group__rewrite-button`,onClick:()=>this.setState({overwrite:!0}),children:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.domainSettings.overwriteButton"})})})]})},this.getFormParams=()=>{const{pathValidationProcessed:e,isLoading:t,isProcessing:n,isDomainSettingsLoading:s,errors:i,version:a,set:r,language:o,autoUpdate:l,protocol:c,domain:u,installationPath:d,title:p,admin:h,database:m}=this.state;return t?null:{onSubmit:this.handleSubmit,requiredMark:!1,errors:i,state:n?"submit":void 0,values:{version:a,set:r,language:o,autoUpdate:l,protocol:c,domain:u,installationPath:d,title:p,admin:h,database:m},applyButton:!1,submitButton:{children:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.installButton"}),disabled:this.isSubmitDisabled()||s,autoFocus:!e,"data-test-id":"instance-install-form-submit-button"},cancelButton:{onClick:this.props.onClose,children:(0,P.jsx)(qd,{content:"Form.cancelButton",fallback:"Cancel"}),disabled:s}}},this.renderFormFields=()=>{const{isLoading:e,isProcessing:t,isDomainSettingsLoading:n,languages:s,versions:i,dbNamePrefix:a,dbUserNamePrefix:r,database:o,isDatabaseSectionCollapsible:l,isDatabaseCustomizationAllowed:c}=this.state;return e?(0,P.jsxs)(M.Fragment,{children:[(0,P.jsx)(fD,{}),(0,P.jsx)(qd,{content:"list-ui.instanceInstall.loadingForm"})]}):(0,P.jsxs)(M.Fragment,{children:[!c&&(0,P.jsx)(xe,{intent:"warning",children:(0,P.jsx)(qd,{content:"list.sites.services.dbWarning"})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.autoGeneratedFieldValues"})}),(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.mainSectionTitle"}),className:"wp-instance-install_section",children:[this.renderInstallationFullPathControl(t),this.renderFormFieldText({name:"title",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.title"}),placeholder:"forms.install.title",dataTestId:"instance-install-form-field-title",disabled:t}),this.renderSetControl(t),this.renderFormFieldDropdown({name:"language",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.language"}),options:s,dataTestId:"instance-install-form-field-language",disabled:t}),this.renderFormFieldDropdown({name:"version",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.version"}),options:i,onChange:this.handleChangeWpVersion,dataTestId:"instance-install-form-field-version",disabled:t})]}),(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.adminSectionTitle"}),className:"wp-instance-install_section",children:[(0,P.jsx)(Eq,{name:"admin[login]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.adminUserName"}),placeholder:"forms.install.adminLogin",onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{login:e})}))),disabled:t}),(0,P.jsx)(fr,{name:"admin[password]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.adminUserPassword"}),onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{password:e})})))}),(0,P.jsx)(Eq,{name:"admin[email]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.adminEmail"}),placeholder:"forms.install.adminEmail",onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{email:e})}))),disabled:t})]}),(0,P.jsxs)(Pa,{title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.dbSectionTitle"}),collapsible:l,collapsed:!0,className:"wp-instance-install_section",children:[this.renderDbServerControl({disabled:t}),(0,P.jsxs)(Sa,{name:"database[name]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.dbName"}),children:[a?(0,P.jsx)(ei,{children:a}):null,(0,P.jsx)(Cz,{type:"text",placeholder:"forms.install.dbName",value:o.name,onChange:e=>this.setDatabaseSettings("name",e.target.value),disabled:t})]}),(0,P.jsx)(Sr,{name:"database[tablePrefix]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.prefixOfTables"}),onChange:e=>this.setDatabaseSettings("tablePrefix",e),disabled:t}),(0,P.jsxs)(Sa,{name:"database[userName]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.dbUserName"}),children:[r?(0,P.jsx)(ei,{children:r}):null,(0,P.jsx)(Cz,{type:"text",placeholder:"list-ui.instanceInstall.dbUserNamePlaceholder",value:o.userName,onChange:e=>this.setDatabaseSettings("userName",e.target.value),disabled:t})]}),(0,P.jsx)(fr,{name:"database[userPassword]",label:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.dbUserPassword"}),onChange:e=>this.setDatabaseSettings("userPassword",e)})]}),this.renderAutoUpdates(),n&&(0,P.jsx)(Rn,{overlay:!0,backdrop:!0})]})},this.handleClose=()=>{this.props.onClose(),this.props.redirectToDomainOverviewOnDone&&this.handleRedirectToDomainOverviewPage()},this.state={overwrite:!1,pathLocked:!1,pathLockedReason:null,pathValidationProcessed:!1,isLoading:!1,isDomainSettingsLoading:!1,isProcessing:!1,isWrongParams:!1,showCoreUpdatesPopover:!1,showSetPopover:!1,errors:null,protocols:[],domains:[],sets:[],versions:[],languages:[],dbServers:[],protocol:"https",domain:e.selectedDomain?e.selectedDomain:void 0,installationPath:"",title:"",admin:{email:"",login:"",password:""},database:{name:"",server:0,userName:"",userPassword:"",tablePrefix:""},autoUpdate:{core:"",plugins:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1}},set:"0",language:"",version:"",dbNamePrefix:"",dbUserNamePrefix:"",isAutoUpdatesCustomizationAllowed:!0,isDatabaseSectionCollapsible:!0,isDatabaseCustomizationAllowed:!1,currentSet:{},installationTaskId:null,installationTask:null,isFirstInstallationOnDomain:!1}}componentWillUnmount(){this.debounceValidatePrefix&&this.debounceValidatePrefix.clear()}handleOpenAndLoadData(){this.setState({isLoading:!0,installationTask:null,installationTaskId:null}),this.getInstallationStub(this.props.selectedDomain?this.props.selectedDomain:void 0).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(){const{installationTaskId:e,installationTask:t}=this.state;if(!e)return;const n=XD(e,this.props.tasks);n&&t!==n&&this.setState({installationTask:n},this.handleInstallationTaskUpdated)}handleInstallationTaskUpdated(){qD(this.state.installationTask)&&this.setState({isProcessing:!1})}handleRedirectToDomainOverviewPage(){var e;const{installationTask:t,isFirstInstallationOnDomain:n}=this.state;n&&t&&(null===(e=t.publicParams)||void 0===e?void 0:e.redirect)&&(window.location.href=this.state.installationTask.publicParams.redirect)}setIsFirstInstallationOnDomain(){const{domain:e}=this.state,{installations:t,redirectToDomainOverviewOnDone:n}=this.props;if(!n)return void this.setState({isFirstInstallationOnDomain:!1});if(!t)return void this.setState({isFirstInstallationOnDomain:!0});const s=t.filter((t=>{var n;return(null===(n=t.domain)||void 0===n?void 0:n.name)===e})),i=0===s.length;this.setState({isFirstInstallationOnDomain:i})}render(){return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.drawerTitle"}),subtitle:(0,P.jsx)(qd,{content:"list-ui.instanceInstall.drawerSubTitle"}),isOpen:this.props.isOpen,onClose:()=>this.handleClose(),"data-type":"instance-install",form:this.getFormParams(),progress:dL(this.state.installationTask,(()=>{this.setState({installationTask:null,installationTaskId:null})})),children:[this.props.renderDrawerMessages(),this.renderFormFields()]})}}Xq.propTypes={selectedDomain:We().string,onClose:We().func.isRequired,getInstallationStub:We().func.isRequired,createInstallation:We().func.isRequired,validateInstallationPath:We().func.isRequired,getSetDetails:We().func.isRequired,onBeforeInstallation:We().func,baseClassName:We().string,vulnerabilityFeatureEnabled:We().bool,addErrorMessage:We().func.isRequired,onAddDrawerWarningMessage:We().func.isRequired,onClearDrawerMessages:We().func.isRequired,renderDrawerMessages:We().func.isRequired,isOpen:We().bool.isRequired,tasks:We().array,redirectToDomainOverviewOnDone:We().bool,installations:We().array},Xq.defaultProps={selectedDomain:void 0,onBeforeInstallation:null,baseClassName:`${Rp}instance-install-form`,vulnerabilityFeatureEnabled:!1,tasks:[],redirectToDomainOverviewOnDone:!1};const Qq=mc((e=>({installations:e.instances.installations,tasks:e.backgroundTasks.tasks,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),{getSetDetails:yk,getInstallationStub:vk,createInstallation:Hw,validateInstallationPath:bk,addErrorMessage:qg})(kC(Xq)),Jq="login",Zq="password",eG="pluginUrl",tG="token",nG=({url:e,login:t,password:n,pluginUrl:s,token:i,ip:a,connectionType:r})=>o=>{const l=new FormData;return l.append("url",e),l.append("login",t),l.append("password",n),l.append("pluginUrl",s),l.append("token",i),l.append("ip",a),l.append("connectionType",r),Xf.connectRemoteAgentInstance(l).then((({data:e})=>(o(Vg(e,(()=>o(sG(e.data.task))))),e)))},sG=e=>t=>t({type:Cy,task:e}),iG=()=>e=>e({type:"instances/CONNECT_REMOTE_AGENT_INSTANCE_FINISHED"}),aG=()=>e=>e({type:"instances/CONNECT_REMOTE_AGENT_INSTANCE_FINISHED_WITH_ERRORS"}),rG=e=>t=>(t(Ww(e)),t(JS({instancesIds:[e]}))),oG={isInstallationErrorOccurred:!1,installationErrorMessage:null},lG=Object.assign({backgroundTaskId:null,backgroundTask:null,isFormSending:!1,isInstanceConnected:!1,isLongTaskFinishedWithError:!1,formValues:{url:"",login:"",password:"",pluginUrl:"",token:"",ip:"",connectionType:1},formErrors:{}},oG);class cG extends M.Component{constructor(e){super(e),this.handleFormFieldChange=(e,t)=>this.setState((n=>({formValues:Object.assign(Object.assign({},n.formValues),{[e]:t})}))),this.handleChangeConnectionType=e=>this.handleFormFieldChange("connectionType",e),this.handleFormSubmit=()=>{this.setState(Object.assign({isFormSending:!0,isLongTaskFinishedWithError:!1,formErrors:{},backgroundTaskId:null},oG),(()=>{const{formValues:e}=this.state,{remoteAgentInstancesActions:{connectRemoteAgentInstance:t}}=this.props;t(Object.assign(Object.assign({},e),{connectionType:e.connectionType.toString()})).then((e=>{const{status:t,data:n,formErrors:s}=e;"success"!==t?s&&this.setState({formErrors:s,isFormSending:!1}):this.setState({backgroundTaskId:n.task.id})}))}))},this.getBackgroundTaskError=e=>e.publicParams.error&&e.publicParams.error.text?{text:e.publicParams.error.text,type:e.publicParams.error.type}:null,this.getSubmitButton=()=>{const{isFormSending:e,isInstanceConnected:t,isLongTaskFinishedWithError:n}=this.state;return!t&&{children:n?(0,P.jsx)(qd,{content:"remote-agent-instances.formButtonRetry"}):(0,P.jsx)(qd,{content:"remote-agent-instances.formButtonSubmit"}),state:e?"loading":"active","data-test-id":"connect-instance-submit-button",onClick:e=>Xd(e,this.handleFormSubmit)}},this.getCancelButton=()=>{const{isFormSending:e,isInstanceConnected:t}=this.state;return{children:t?(0,P.jsx)(qd,{content:"remote-agent-instances.formButtonClose"}):(0,P.jsx)(qd,{content:"remote-agent-instances.formButtonCancel"}),disabled:e}},this.getForm=()=>{const{formValues:e,formErrors:t}=this.state;return{values:e,errors:t,vertical:!0,onSubmit:this.handleFormSubmit,submitButton:this.getSubmitButton(),cancelButton:this.getCancelButton(),applyButton:!1}},this.renderInstallationError=()=>{const{isInstallationErrorOccurred:e,installationErrorMessage:t}=this.state;return e?(0,P.jsx)(xe,{intent:"warning",children:(0,P.jsx)(qd,{content:"remote-agent-instances.errors.cannotInstallPluginAutomatically",params:{installationError:t},style:{whiteSpace:"pre-wrap"}})}):null},this.state=lG}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.setState(lG);const{backgroundTaskId:t,backgroundTask:n}=this.state;if(t&&e.tasks!==this.props.tasks){const e=XD(t,this.props.tasks);e&&n!==e&&iL(e,"task\\connectremoteagentinstance\\add")&&this.setState({backgroundTask:e},(()=>{GD(e)&&this.handleBackgroundTaskSuccess(e),KD(e)&&this.handleBackgroundTaskFail(e)}))}}handleBackgroundTaskSuccess(e){this.setState({isFormSending:!1,isInstanceConnected:!0},(()=>{const{remoteAgentInstancesActions:{loadInstanceToList:t,connectRemoteAgentInstanceFinished:n}}=this.props;e.publicParams.instanceId&&t(e.publicParams.instanceId).catch((()=>{})),n()}))}handleBackgroundTaskFail(e){const{remoteAgentInstancesActions:{connectRemoteAgentInstanceFailed:t}}=this.props,n=this.getBackgroundTaskError(e);n&&"installer"===n.type?this.setState((e=>({isInstallationErrorOccurred:!0,installationErrorMessage:n.text,formValues:Object.assign(Object.assign({},e.formValues),{connectionType:2}),backgroundTask:null,backgroundTaskId:null,isFormSending:!1}))):this.setState({isFormSending:!1,isLongTaskFinishedWithError:!0}),t()}render(){const{isFormSending:e,backgroundTask:t}=this.state,{isOpen:n,onClose:s,apiUrl:i}=this.props,a=`${i}/download-plugin`,r=this.getSubmitButton(),o=[];r&&o.push((0,P.jsx)(Be,Object.assign({type:"submit",intent:"primary"},r),"submit"));const l=t?dL(t,(()=>{this.setState({backgroundTask:null})}),o):null;return(0,P.jsxs)(er,{title:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceDrawerTitle"}),form:this.getForm(),onClose:s,className:Up,size:"sm",isOpen:n,"data-type":"connect-remote-agent-instance",hideButton:!1,progress:l,children:[(0,P.jsxs)(xe,{intent:"info",children:[(0,P.jsx)(be,{name:"exclamation-mark-circle",size:"16"})," ",(0,P.jsx)(qd,{content:"remote-agent-instances.betaMessage",unsafe:!0})]}),(0,P.jsxs)(vl,{active:this.state.formValues.connectionType,children:[(0,P.jsxs)(gl,{title:(0,P.jsx)(qd,{content:"remote-agent-instances.connectViaCredentials"}),onActivate:()=>this.handleChangeConnectionType(1),"data-test-id":"connect-instance-tab-automatic",children:[(0,P.jsx)(Sr,{name:"url",label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldUrl"}),description:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldUrlDescription"}),size:"lg","data-test-id":"connect-instance-field-url",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange("url",e)}),(0,P.jsx)(Sr,{name:Jq,label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldLogin"}),size:"md","data-test-id":"connect-instance-field-login",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(Jq,e)}),(0,P.jsx)(bU,{name:Zq,label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldPassword"}),description:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldPasswordDescription"}),size:"md","data-test-id":"connect-instance-field-password",disabled:e,hideGenerateButton:!0,hidePasswordMeter:!0,required:!0,onChange:e=>this.handleFormFieldChange(Zq,e)})]}),(0,P.jsxs)(gl,{title:(0,P.jsx)(qd,{content:"remote-agent-instances.connectViaPluginUrl"}),onActivate:()=>this.handleChangeConnectionType(2),"data-test-id":"connect-instance-tab-manual",children:[this.renderInstallationError(),(0,P.jsx)(ca,{children:(0,P.jsx)(qd,{content:"remote-agent-instances.howToInstallPluginManually",params:{urlToZipArchiveWithPlugin:a},unsafe:!0})}),(0,P.jsx)(Sr,{name:eG,label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldPluginUrl"}),size:"lg","data-test-id":"connect-instance-field-plugin-url",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(eG,e)}),(0,P.jsx)(Sr,{name:tG,label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldToken"}),size:"md","data-test-id":"connect-instance-field-token",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(tG,e)}),(0,P.jsx)(Sr,{name:"ip",label:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldIp"}),description:(0,P.jsx)(qd,{content:"remote-agent-instances.connectInstanceFieldIpDescription"}),size:"md","data-test-id":"connect-instance-field-ip",disabled:e,onChange:e=>this.handleFormFieldChange("ip",e)})]})]})]})}}const uG=mc((e=>({tasks:e.backgroundTasks.tasks,apiUrl:e.app.urls.apiUrl})),(e=>({remoteAgentInstancesActions:kb({connectRemoteAgentInstance:nG,loadInstanceToList:rG,connectRemoteAgentInstanceFinished:iG,connectRemoteAgentInstanceFailed:aG},e)})))(cG);class dG extends M.Component{constructor(e){super(e),this.handleShowPopover=()=>{this.setState({isPopoverVisible:!0})},this.handleHidePopover=()=>{this.setState({isPopoverVisible:!1})},this.handleOpenSmartPhpUpdatesDrawer=()=>{const{onOpenSmartPhpUpdatesDrawer:e}=this.props;this.handleHidePopover(),e()},this.state={isPopoverVisible:!1}}render(){var e;const{title:t,installation:{features:{php:n}},minimalSupportedPhpVersion:s}=this.props,{isPopoverVisible:i}=this.state;return n.handler?(0,P.jsx)(Fs,{visible:i,onClose:this.handleHidePopover,target:(0,P.jsx)(Sn,{label:null===(e=n.handler)||void 0===e?void 0:e.version,onClick:this.handleShowPopover,children:t}),children:(0,P.jsx)(YY,{installation:this.props.installation,minimalSupportedPhpVersion:s,onOpenSmartPhpUpdatesDrawer:this.handleOpenSmartPhpUpdatesDrawer})},"ssl-disabled"):null}}const pG=mc((e=>({minimalSupportedPhpVersion:e.app.options.minimalSupportedPhpVersion})),(()=>({})))(dG);class hG extends M.Component{constructor(){super(...arguments),this.handleToggleIndexing=()=>{const{installation:{id:e},instancesActions:{setIndexingStatus:t},onEnableInstances:n,onDisableInstances:s,addSuccessMessage:i}=this.props;s([e]),t(e,!0).then((()=>{i((0,P.jsx)(qd,{content:"controllers.index.feature.search-indexing.enabledSuccessfully"}))})).catch((()=>{})).finally((()=>{n([e])}))},this.handleToggleDebug=()=>{const{installation:{id:e},instancesActions:{toggleDebug:t},onEnableInstances:n,onDisableInstances:s,addSuccessMessage:i}=this.props;s([e]),t(e,!1).then((()=>{i((0,P.jsx)(qd,{content:"features.debug.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{n([e])}))},this.handleDisableMaintenance=()=>{const{installation:{id:e,features:{maintenance:t}},instancesActions:{updateMaintenanceStatus:n},onEnableInstances:s,onDisableInstances:i}=this.props;i([e]),n(e,!1,t.status).catch((()=>{})).finally((()=>{s([e])}))},this.isSmartUpdatesPreviewAvailable=(e,t)=>e&&t&&lN(t),this.isSmartPhpUpdatesPreviewAvailable=(e,t)=>e&&t&&lN(t),this.getCommonIssuesSectionItems=()=>{const{installation:{status:e,features:{debug:t,indexing:n,maintenance:s}}}=this.props,i=[];return e.alive?(t.status&&i.push((0,P.jsx)(Sn,{onClick:this.handleToggleDebug,children:(0,P.jsx)(qd,{content:"instancesList.issues.debugEnabled"})},"debug-enabled")),n.status||i.push((0,P.jsx)(Sn,{onClick:this.handleToggleIndexing,children:(0,P.jsx)(qd,{content:"instancesList.issues.searchIndexingDisabled"})},"search-disabled")),s.status&&i.push((0,P.jsx)(Sn,{onClick:this.handleDisableMaintenance,children:(0,P.jsx)(qd,{content:"instancesList.issues.maintenanceModeEnabled"})},"maintenance-enabled")),i):i},this.getUpdatesSectionItems=()=>{const{installation:{id:e,features:{php:t,updates:n},version:s,status:i},onOpenUpdates:a,onOpenSmartPhpUpdatesDrawer:r}=this.props,o=[];if(this.isSmartUpdatesPreviewAvailable(!!n.smart.status,n.smart.taskStatus)&&o.push((0,P.jsx)(Sn,{onClick:t=>Xd(t,(()=>a(e))),children:(0,P.jsx)(qd,{content:"instancesList.issues.smartUpdateConflict"})},"smart-update-conflict")),this.isSmartPhpUpdatesPreviewAvailable(n.php.available&&n.php.applicable,n.php.taskStatus)?o.push((0,P.jsx)(Sn,{onClick:e=>Xd(e,r),children:(0,P.jsx)(qd,{content:"smartPhpUpdate.result.smartPhpUpdateConflict.issues"})},"smart-php-update-conflict")):t.unsupported?o.push((0,P.jsx)(pG,{title:(0,P.jsx)(qd,{content:"instancesList.issues.updateUnsupportedPhpVersion"}),installation:this.props.installation,onOpenSmartPhpUpdatesDrawer:r},"php-unsupported")):t.eoled&&o.push((0,P.jsx)(pG,{title:(0,P.jsx)(qd,{content:"instancesList.issues.updateOutdatedPhpVersion"}),installation:this.props.installation,onOpenSmartPhpUpdatesDrawer:r},"php-outdated")),i.alive){const{amountOfPluginsWithUpdates:t,amountOfThemesWithUpdates:i,availableVersion:r}=null!=n?n:{};r&&o.push((0,P.jsx)(Sn,{label:s,onClick:t=>Xd(t,(()=>a(e,sx))),children:(0,P.jsx)(qd,{content:"instancesList.issues.updateWordpressCore"})},"wordpress-outdated")),t>0&&o.push((0,P.jsx)(Sn,{label:`${t}`,onClick:t=>Xd(t,(()=>a(e,ix))),children:(0,P.jsx)(qd,{content:"instancesList.issues.updateWordpressPlugins"})},"plugins-outdated")),i>0&&o.push((0,P.jsx)(Sn,{label:`${i}`,onClick:t=>Xd(t,(()=>a(e,ax))),children:(0,P.jsx)(qd,{content:"instancesList.issues.updateWordpressThemes"})},"themes-outdated"))}return o},this.getSecuritySectionItems=()=>{var e,t,n,s,i,a,r,o;const{installation:{domain:l,features:{security:c,vulnerability:u},id:d,installationType:p,owner:h,status:m},onOpenSecurity:f,goToUri:g,baseClassName:b}=this.props,v=[];if(!m.alive)return v;if(c.available&&u.vulnerable&&v.push((0,P.jsx)(Sn,{onClick:e=>Xd(e,(()=>f(d,1))),icon:u.vulnerable?(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",className:`${b}__menu-item-icon`,intent:"danger",size:"16"}):null,"data-test-id":"instance-issues-security-vulnerabilities-menu-item",children:(0,P.jsx)(qd,{content:"instancesList.issues.vulnerable"})},"vulnerable")),!c.available||"insecure"!==c.status&&"unknown"!==c.status||v.push((0,P.jsx)(Sn,{onClick:e=>Xd(e,(()=>f(d))),icon:(0,P.jsx)(be,{name:"exclamation-mark-circle",className:`${b}__menu-item-icon`,intent:"warning",size:"16"}),children:(0,P.jsx)(qd,{content:"instancesList.issues.checkSecurity"})},"check-security")),null==l?void 0:l.ssl){const{ssl:c}=l,u=!!c&&{isActual:null!==(t=null===(e=c.certificate)||void 0===e?void 0:e.actual)&&void 0!==t&&t,isCertificateInstalled:null!==(s=null===(n=c.certificate)||void 0===n?void 0:n.installed)&&void 0!==s&&s,isSslEnabled:c.enabled,isRedirectToHttpsEnabled:c.redirectToHttpsEnabled,isSelfSigned:null!==(a=null===(i=c.certificate)||void 0===i?void 0:i.selfSigned)&&void 0!==a&&a,isSuitableForDomain:null!==(o=null===(r=c.certificate)||void 0===r?void 0:r.suitableForDomain)&&void 0!==o&&o,isUrlProtocolHttps:c.urlProtocolHttps},m=null==h?void 0:h.login,f=[];u&&u.isSslEnabled||f.push((0,P.jsx)(HY,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notEnabled.title","data-test-id":"instance-issue-ssl__disabled"}),actionLinkAttributes:(null==c?void 0:c.enableSslActionUrl)?GY({url:null==c?void 0:c.enableSslActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null})),u&&u.isSslEnabled&&!u.isRedirectToHttpsEnabled&&f.push((0,P.jsx)(zY,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.title","data-test-id":"instance-issue-ssl__redirect-disabled"}),actionLinkAttributes:(null==c?void 0:c.enableRedirectToHttpsActionUrl)?GY({url:null==c?void 0:c.enableRedirectToHttpsActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null})),u&&u.isSslEnabled&&u.isRedirectToHttpsEnabled&&!u.isUrlProtocolHttps&&f.push((0,P.jsx)(qY,{installationId:d,target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.title","data-test-id":"instance-issue-ssl__mismatch-protocol"})})),u&&u.isCertificateInstalled?(u.isSelfSigned?f.push((0,P.jsx)(VY,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.selfSigned.title","data-test-id":"instance-issue-ssl__self-signed"}),actionLinkAttributes:(null==c?void 0:c.buyOrInstallSslActionUrl)?GY({url:null==c?void 0:c.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null,instanceType:p})):u.isSuitableForDomain||f.push((0,P.jsx)(WY,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.title","data-test-id":"instance-issue-ssl__no-suitable"}),actionLinkAttributes:(null==c?void 0:c.buyOrInstallSslActionUrl)?GY({url:null==c?void 0:c.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null,instanceType:p})),u.isActual||f.push((0,P.jsx)($Y,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateExpired.title","data-test-id":"instance-issue-ssl__expired"}),actionLinkAttributes:(null==c?void 0:c.buyOrInstallSslActionUrl)?GY({url:null==c?void 0:c.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null,instanceType:p}))):f.push((0,P.jsx)(BY,{target:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.title","data-test-id":"instance-issue-ssl__no-certificate"}),actionLinkAttributes:(null==c?void 0:c.buyOrInstallSslActionUrl)?GY({url:null==c?void 0:c.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:m,goToUri:g}):null,instanceType:p})),f.length>1?v.push((0,P.jsx)(Fs,{target:(0,P.jsx)(Sn,{label:`${f.length}`,"data-test-id":"instance-issue-ssl__grouped-menu-item",children:(0,P.jsx)(qd,{content:"instancesList.instanceCard.ssl.issues"})},"ssl-issues-menu-item"),children:f.map(((e,t)=>(0,P.jsx)(mi,{children:(0,P.jsx)(Cs,{className:`${b}-menu-ssl-issue`,children:e})},t)))},"ssl-issues")):1===f.length&&v.push((0,P.jsx)(Sn,{children:f[0]},"ssl-issue-menu-item"))}return v}}render(){const{installation:{features:{vulnerability:e}},baseClassName:t}=this.props,n=this.getCommonIssuesSectionItems(),s=this.getUpdatesSectionItems(),i=this.getSecuritySectionItems();if(!n.length&&!s.length&&!i.length)return null;const a=n.length+s.length+i.length,r=(0,P.jsxs)(qs,{className:`${t}-menu`,children:[i.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(oi,{children:(0,P.jsx)(qd,{content:"instancesList.issues.securityMenuHeader"})}),i]}),n.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(oi,{children:(0,P.jsx)(qd,{content:"instancesList.issues.commonIssuesMenuHeader"})}),n]}),s.length>0&&(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(oi,{children:(0,P.jsx)(qd,{content:"instancesList.issues.updatesMenuHeader"})}),s]})]});return(0,P.jsx)("div",{className:t,children:(0,P.jsx)(Mn,{menu:r,children:(0,P.jsxs)(Be,{className:`${t}-button`,caret:!0,ghost:!0,"data-test-id":"wp-toolkit-instances-list-issues-button",children:[e.vulnerable?(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"instancesList.issues.vulnerableHint"}),children:(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:"danger",size:"16",className:`${t}-icon`,"data-test-id":"instance-issues-button-vulnerable-icon"})}):(0,P.jsx)(be,{name:"exclamation-mark-circle",intent:"warning",size:"16",className:`${t}-icon`}),(0,P.jsx)(qd,{content:"instancesList.issues.menu",params:{count:a}})]})})})}}hG.defaultProps={baseClassName:`${Rp}instances-list-issues`};const mG=mc(null,(e=>({instancesActions:kb({toggleDebug:xw,setIndexingStatus:wS,updateMaintenanceStatus:IS},e),goToUri:(t,n)=>e(hx(t,n)),addSuccessMessage:kb(Wg,e)})))(hG),fG=({baseClassName:e=`${Rp}tag`,className:t,children:n,prefix:s,backgroundColor:i,onClick:a})=>(0,P.jsxs)("span",{className:E()(e,{[`${e}--affix`]:s},t),style:{backgroundColor:i},onClick:a,"data-test-id":"installation-label",children:[s&&(0,P.jsx)("span",{className:`${e}__prefix`,children:s}),n]}),gG=({template:e,onSubmit:t,onRemove:n,onCancel:s,children:i,className:a})=>{const[r,o]=(0,M.useState)(e.value.color.value),[l,c]=(0,M.useState)("private"===e.value.type.value),[u,d]=(0,M.useState)(e.value.name.value),p=0===u.trim().length;return(0,P.jsx)(Fs,{visible:!0,target:i,placement:"bottom",onClose:s,children:(0,P.jsxs)(La,{style:{width:"100%"},className:a,onSubmit:()=>!p&&t({name:u,type:l?yg:"public",color:r}),values:{name:u},submitButton:{children:(0,P.jsx)(qd,{content:n?"installation.features.labels.form.buttons.update":"installation.features.labels.form.buttons.create"}),size:"md",disabled:p,"data-test-id":"installation-labels-menu-submit"},cancelButton:{size:"md",onClick:s},applyButton:!1,additionalButtons:[n&&(0,P.jsx)(Be,{size:"md",onClick:n,"data-test-id":"installation-remove-label",children:(0,P.jsx)(qd,{content:"installation.features.labels.form.buttons.remove"})})],"data-test-id":"installation-labels-menu",children:[(0,P.jsx)(Sr,{label:(0,P.jsx)(qd,{content:"installation.features.labels.form.name.label"}),size:"fill",name:"name",inputProps:{suffix:(0,P.jsx)(Be,{icon:"cross-mark",ghost:!0,onClick:()=>d("")})},onChange:d,autoFocus:!0,"data-test-id":"installation-labels-menu-label-name"}),(0,P.jsx)(Sa,{label:(0,P.jsx)(qd,{content:"installation.features.labels.form.privacity.label"}),description:(0,P.jsx)(qd,{content:"installation.features.labels.form.privacity.description"}),fullDescription:(0,P.jsx)(qd,{content:"installation.features.labels.form.privacity.fullDescription"}),children:(0,P.jsxs)(ut,{checked:l,onChange:c,children:[(0,P.jsx)(qd,{content:"installation.features.labels.form.privacity.text"})," ",(0,P.jsx)(be,{name:"eye-closed"})]})}),(0,P.jsx)(Sa,{label:"Color",className:"color-field",children:e.value.color.meta.choices.map((e=>(0,P.jsx)(Vi,{name:"color",checked:e===r,onChange:t=>t&&o(e),style:{"--wpt-tag-radio-indicator-color":e}},e)))})]})})},bG=mc(null,(e=>({instanceActions:kb({setInstallationLabels:rk,getInstallationLabelsMeta:ak},e)})))((({baseClassName:e=`${Rp}tag-manager`,installationId:t,tags:n,instanceActions:{getInstallationLabelsMeta:s,setInstallationLabels:i}})=>{const[a,r]=(0,M.useState)(),[o,l]=(0,M.useState)(),[c,u]=(0,M.useState)(n.length<=6),d=(0,P.jsx)(Be,{icon:"plus",size:"md",ghost:!0,component:"a",onClick:e=>Xd(e,(()=>r(-1))),"data-test-id":"installation-add-label",children:0===n.length&&(0,P.jsx)(qd,{content:"installation.features.labels.addNewLabel"})});(0,M.useEffect)((()=>l(void 0)),[t]),(0,M.useEffect)((()=>r(void 0)),[n]),(0,M.useEffect)((()=>{o||void 0===a||s(t).then((({data:e})=>{l(JSON.parse(JSON.stringify(e.meta)))}))}),[o,a,t,s]);const p=(e,s)=>{r(void 0);const a=[...n];s?-1===e?a.push(s):a[e]=s:a.splice(e,1),i(t,a)};o&&(o.template.value.name.value="",o.template.value.type.value=yg,[o.template.value.color.value]=o.template.value.color.meta.choices);const h=c?n:n.slice(0,6);return(0,P.jsxs)("span",{className:e,children:[h.map(((t,n)=>{const s=(0,P.jsx)(fG,{prefix:(0,P.jsx)(be,{name:"public"===t.type?"eye":"eye-closed",size:"12"}),backgroundColor:t.color,onClick:e=>Xd(e,(()=>r(n))),children:t.name},t.name);return n===a&&o?(o.template.value.name.value=t.name,o.template.value.type.value=t.type,o.template.value.color.value=t.color,(0,P.jsx)(gG,{template:o.template,onSubmit:e=>p(n,e),onCancel:()=>r(void 0),onRemove:()=>p(n),className:e,children:s},sp(4))):s})),n.length<=6?null:c?(0,P.jsx)(ye,{onClick:()=>u(!1),className:`${e}__show-less-button`,children:(0,P.jsx)(qd,{content:"installation.features.labels.showLess"})}):(0,P.jsx)(ye,{onClick:()=>u(!0),className:`${e}__show-more-button`,children:(0,P.jsx)(qd,{content:"installation.features.labels.showMore"})}),-1!==a&&d,-1===a&&o&&(0,P.jsx)(gG,{template:o.template,onSubmit:e=>p(-1,e),onCancel:()=>r(void 0),className:e,children:d})]})}));class vG extends M.Component{constructor(e){super(e),this.state={isPopoverVisible:!1,isLoading:!1}}componentDidUpdate(e){var t,n;e.isUpdating===this.props.isUpdating||this.props.isUpdating||null===(n=null===(t=this.props.callbacks)||void 0===t?void 0:t.onApplyFinished)||void 0===n||n.call(t)}applyVirtualPatching(e,t=!1){var n,s,i;const{installation:a,applyVirtualPatchesConfig:r,updateVirtualPatchesProtectionStatus:o,callbacks:l}=this.props;return this.setState({isLoading:!0}),o({installationsIds:[a.id],status:e,skipBrokenInstallations:null===(n=null==r?void 0:r.skipBrokenInstallations)||void 0===n||n,skipInfectedInstallations:null===(s=null==r?void 0:r.skipInfectedInstallations)||void 0===s||s,skipUnsupportedInstallations:null===(i=null==r?void 0:r.skipUnsupportedInstallations)||void 0===i||i},t).then((e=>{var n;return null===(n=null==l?void 0:l.onApplySuccess)||void 0===n||n.call(l,e),this.setState({isPopoverVisible:t}),e})).catch((e=>{var t,n,s;(null==l?void 0:l.onApplyFailed)?l.onApplyFailed(e):this.setState({validationError:null===(s=null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message,isPopoverVisible:!0})})).finally((()=>{this.setState({isLoading:!1})}))}renderComponent(e,t){if(!t)return e;const n=e.props.onClick;return(0,M.cloneElement)(e,{onClick:e=>{t(e),n&&n(e)}})}renderUnpaidComponent(){const{components:e,callbacks:t}=this.props;return this.renderComponent(e.unpaidComponent,t.onOpenVirtualPatchesUpsell)}renderNotActivatedComponent(){const{consent:e,components:t,isUpdating:n}=this.props,{isPopoverVisible:s,validationError:i,isLoading:a}=this.state,r=e.usePreValidation?()=>this.applyVirtualPatching(!0,!0):()=>this.setState({isPopoverVisible:!0});return(0,P.jsx)(Fs,{visible:s,onClose:()=>this.setState({isPopoverVisible:!1}),target:this.renderComponent(t.notActivatedComponent,r),children:i?(0,P.jsx)("div",{style:{textAlign:"justify"},children:i}):(0,P.jsx)(tM,{isButtonLoading:n||a,onSubmit:()=>this.applyVirtualPatching(!0),dataTestId:e.enableConsentDataTestId})})}renderActivatedComponent(){const{consent:e,components:t,isUpdating:n,disabling:s}=this.props,{isPopoverVisible:i,validationError:a,isLoading:r}=this.state;if(!s.isPossible)return this.renderComponent(t.activatedComponent);if(!s.showConsent)return this.renderComponent(t.activatedComponent,(()=>this.applyVirtualPatching(!1)));const o=e.usePreValidation?()=>this.applyVirtualPatching(!1,!0):()=>this.setState({isPopoverVisible:!0});return(0,P.jsx)(Fs,{visible:i,onClose:()=>this.setState({isPopoverVisible:!1}),target:this.renderComponent(t.activatedComponent,o),children:a?(0,P.jsx)("div",{style:{textAlign:"justify"},children:a}):(0,P.jsx)(oA,{isButtonLoading:n||r,onSubmit:()=>this.applyVirtualPatching(!1),dataTestId:e.disableConsentDataTestId})})}render(){const{installation:e,components:t,isUpdating:n,isAdmin:s,showVirtualPatchesUpsellWhenRestrictedViaPlans:i}=this.props,{isLoading:a}=this.state;return((e,t,n)=>{const{features:{php:s,virtualPatches:{restrictions:i}},status:{alive:a,infected:r,unsupported:o}}=e;return!(!a||r||o||s.unsupported||sM(i,t,n))})(e,s,i)?(n||a)&&t.loadingComponent?this.renderComponent(t.loadingComponent):nM(e,i,s)?(e=>{var t;return!!(null===(t=e.features.virtualPatches)||void 0===t?void 0:t.status)})(e)?this.renderActivatedComponent():this.renderNotActivatedComponent():this.renderUnpaidComponent():null}}const yG=mc(((e,t)=>{const{installation:n}=t;return{isUpdating:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans}}),(e=>({updateVirtualPatchesProtectionStatus:kb(g_,e)})))(vG),xG=({installation:e,onOpenVulnerabilitiesDrawer:t,onOpenVirtualPatchesUpsell:n,baseClassName:s=`${Rp}instances-list-shield`})=>(0,P.jsx)(yG,{installation:e,consent:{usePreValidation:!1,enableConsentDataTestId:Ev,disableConsentDataTestId:Ev},disabling:{isPossible:!1},components:{unpaidComponent:(0,P.jsx)(Be,{ghost:!0,icon:"shield","data-test-id":Av}),notActivatedComponent:(0,P.jsx)(Be,{ghost:!0,icon:"shield","data-test-id":Av}),activatedComponent:(0,P.jsx)(Be,{ghost:!0,icon:"shield-filled","data-test-id":Av,onClick:()=>t(),className:`${s}__active`}),loadingComponent:(0,P.jsx)(Be,{ghost:!0,"data-test-id":Av,state:"loading"})},callbacks:{onOpenVirtualPatchesUpsell:n}}),_G=mc((e=>({virtualPatchingCustomerPortalUrl:e.app.urls.virtualPatchingCustomerPortalUrl})))((e=>{const{virtualPatchingCustomerPortalUrl:t}=e,n=zd("drawer.vpatchesSubscription");return t?(0,P.jsxs)(Cs,{target:"_blank",onClick:()=>{window.open(t)},children:[(0,P.jsx)(be,{name:"check-list"})," ",n("infoPage.link.mySubscriptions")]}):null})),SG=e=>{const{storedSubscriptionId:t,detachSubscription:n,retrieveSubscriptionDataFromLicenseService:s,baseClassName:i=`${Rp}vpatches-upsell-activation`}=e,a=zd("drawer.vpatchesSubscription.activationPage"),[r,o]=(0,M.useState)(""),l=e=>(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(mi,{className:`${i}-description`,children:e}),(0,P.jsx)(Ss,{prefix:(0,P.jsx)(be,{name:"key"}),size:"lg",placeholder:a("activationKeyPlaceholder").toString(),"data-test-id":"wpt-virtual-patching-upsell-dialog-subscription-id-input",onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&s(r)}})," ",(0,P.jsx)(Be,{onClick:()=>s(r),disabled:0===r.length,intent:"primary","data-test-id":"wpt-virtual-patching-upsell-dialog-subscription-by-id-activation-button",children:a("button.applyActivationCode")})]}),c=(0,P.jsx)("div",{className:i,children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:l(a("descriptionText"))}),(0,P.jsxs)(la,{children:[(0,P.jsx)(mi,{children:a("descriptionText.findOutYourId")}),(0,P.jsx)(_G,{})]})]})});return t?(u=t,(0,P.jsx)("div",{className:i,children:(0,P.jsxs)(Pa,{children:[(0,P.jsxs)(la,{children:[(0,P.jsx)(mi,{className:`${i}-description`,children:a("descriptionText.knownId")}),(0,P.jsx)(Ss,{prefix:(0,P.jsx)(be,{name:"key"}),size:"lg",defaultValue:u,disabled:!0,readOnly:!0})," ",(0,P.jsx)(Be,{onClick:()=>s(u),children:a("button.reactivate")})]}),(0,P.jsx)(la,{children:(0,P.jsx)(Be,{onClick:()=>n(),children:a("button.detachSubscriptionId")})}),(0,P.jsx)(la,{children:l(a("descriptionText.enterYouId"))}),(0,P.jsxs)(la,{children:[(0,P.jsx)(mi,{children:a("descriptionText.findOutYourId")}),(0,P.jsx)(_G,{})]})]})})):c;var u},wG=({baseClassName:e=`${Rp}vpatches-upsell-main-page`})=>(0,P.jsx)("div",{className:e,children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{className:`${e}__feature-description`,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.upsellPage.featureDescription"})}),(0,P.jsx)(la,{children:(0,P.jsx)(cA,{})})]})}),kG=e=>{const{loaderText:t,description:n,baseClassName:s=`${Rp}vpatches-upsell-waiting-page`}=e;return(0,P.jsx)("div",{className:s,children:(0,P.jsxs)("div",{className:`${s}-item`,children:[(0,P.jsx)(Rn,{loader:{type:"icons",icons:["sand-clock","dollar","shield"],size:"64"},text:t}),n&&(0,P.jsx)(ei,{children:n})]})})},jG=e=>{const{showNoteForAdmin:t,baseClassName:n=`${Rp}vpatches-upsell-purchasingGuardianPage`}=e;return(0,P.jsx)("div",{className:n,children:(0,P.jsx)(Pa,{children:(0,P.jsxs)(la,{children:[(0,P.jsx)(mi,{className:`${n}-description`,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.purchasingGuardianPage.plesk.description"})}),t&&(0,P.jsx)(mi,{className:`${n}-description`,children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.purchasingGuardianPage.plesk.noteForAdmin"})})})]})})})},TG=({uatAction:e,children:t,icon:n,onClick:s,purchaseLicenseUrl:i})=>(0,P.jsx)(Sn,{icon:n,component:"a",href:i,target:"_blank",onClick:()=>{e&&Rv(e),null==s||s()},"data-test-id":rv,children:t}),CG=mc((e=>({isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,publicUrl:e.app.urls.publicUrl,isVirtualPatchesLicensingForEndCustomersEnabled:e.app.options.isVirtualPatchesLicensingForEndCustomersEnabled,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,upgradePleskUrl:e.app.urls.upgradePleskUrl,purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl})))((e=>{const{installation:t,publicUrl:n,isVirtualPatchesLicensingForEndCustomersEnabled:s,showVirtualPatchesUpsellWhenRestrictedViaPlans:i,startPurchasingGuardian:a,startPurchasingSubscription:r,wordPressToolkitLiteEdition:o,upgradePleskUrl:l,purchaseDeluxeGuardianUrl:c,isAdmin:u,uatAction:d,baseClassName:p=`${Rp}vpatches-upsell-dialog-subscribe-button`}=e,h=zd("drawer.vpatchesSubscription.mainPage.button"),m=u||i,f=s&&!i,g=(()=>{var e;const n=o?l:c;try{const s=new URL(n,window.location.href);return(null===(e=t.domain)||void 0===e?void 0:e.name)&&s.searchParams.set("domain",t.domain.name),s.toString()}catch(e){return n}})();return m&&f?(0,P.jsx)(Mn,{menu:(0,P.jsxs)(qs,{children:[(0,P.jsx)(oi,{children:h("buySubscription.menu.title")}),(0,P.jsxs)(TG,{uatAction:d,icon:(0,P.jsx)(be,{src:`${n}images/crown.svg`}),onClick:()=>a(),purchaseLicenseUrl:g,children:[h("buySubscription.menu.bundle"),(0,P.jsxs)("ul",{className:`${p}__menu-item-ul`,children:[(0,P.jsx)("li",{children:h("buySubscription.menu.bundle.description.plesk.1")}),(0,P.jsx)("li",{children:h("buySubscription.menu.bundle.description.plesk.2")})]})]}),(0,P.jsxs)(Sn,{icon:"shield",onClick:()=>r(),"data-test-id":"wpt-virtual-patching-upsell-dialog-buy-subscription-item",children:[h("buySubscription.menu.single"),(0,P.jsxs)("ul",{className:`${p}__menu-item-ul`,children:[(0,P.jsx)("li",{children:h("buySubscription.menu.single.description.1")}),(0,P.jsx)("li",{children:h("buySubscription.menu.single.description.2")})]})]})]}),children:(0,P.jsx)(Be,{intent:"primary","data-test-id":Pv,children:h("buySubscription")})}):!m&&f?(0,P.jsx)(Be,{intent:"primary",onClick:r,"data-test-id":Pv,children:h("buySubscription")}):(0,P.jsx)(Nv,{installationId:t.id,uatAction:Kv,onClick:()=>a(),purchaseLicenseUrl:g,intent:"primary","data-test-id":Pv,featureType:"virtualPatches",children:h("buySubscription")})})),DG=mc((e=>({purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl})))((({uatAction:e,upgradePleskUrl:t,purchaseWordPressToolkitUrl:n,baseClassName:s=`${Rp}vpatches-upsell-wptLite-page`})=>(0,P.jsxs)(Pa,{className:s,children:[(0,P.jsx)(la,{className:`${s}-description`,children:(0,P.jsx)(ei,{children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.featureDescription"})})}),(0,P.jsxs)(la,{children:[(0,P.jsx)(mi,{children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.title"})})}),(0,P.jsxs)("ol",{children:[(0,P.jsx)("li",{children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1",params:{buyWpToolkitLink:(0,P.jsx)(ye,{onClick:()=>{Rv(e),window.open(n)},children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1.buyWpToolkitLinkText"})})}),upgradePleskLicenseLink:(0,P.jsx)(ye,{onClick:()=>window.open(t),children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1.upgradePleskLicenseLinkText"})})})}})}),(0,P.jsx)("li",{children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.2"})})]})]})]}))),PG=mc((e=>({publicUrl:e.app.urls.publicUrl,isVirtualPatchesLicensingForEndCustomersEnabled:e.app.options.isVirtualPatchesLicensingForEndCustomersEnabled,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller})),(e=>({getVirtualPatchesSubscriptionGuid:kb(Ek,e),getVirtualPatchesSubscriptionPurchaseUrlAndGuid:kb(Rk,e),activateVirtualPatchesSubscription:kb(Nk,e),detachVirtualPatchesSubscription:kb(Fk,e),displayErrorMessageFromMeta:kb(Bg,e),updateVirtualPatchesProtectionStatus:kb(g_,e)})))((e=>{const{installation:t,isOpen:n,onClose:s,onOpen:i,onOpenLicenseInfoDrawer:a,publicUrl:r,isVirtualPatchesLicensingForEndCustomersEnabled:o,showVirtualPatchesUpsellWhenRestrictedViaPlans:l,uatAction:c,wordPressToolkitLiteEdition:u,activateVirtualPatchesSubscription:d,detachVirtualPatchesSubscription:p,getVirtualPatchesSubscriptionGuid:h,getVirtualPatchesSubscriptionPurchaseUrlAndGuid:m,displayErrorMessageFromMeta:f,updateVirtualPatchesProtectionStatus:g,isAdmin:b,baseClassName:v=`${Rp}vpatches-upsell-dialog`}=e,y=zd("drawer.vpatchesSubscription"),x=zd("controllers.index.detail.virtualPatches"),_=u,[S,w]=(0,M.useState)(!1),[k,j]=(0,M.useState)(!1),[T,C]=(0,M.useState)(!1),[D,O]=(0,M.useState)(!1),[I,L]=(0,M.useState)(null),A=o&&!l;(0,M.useEffect)((()=>{n&&(j(!1),C(!1),O(!1),L(null),w(!1))}),[n]);const E=(e,t)=>{j(!0),d(e,t?t.trim():void 0).then((t=>{[wg.Active,wg.Suspended].includes(t.status)?((e=>{g({installationsIds:[e],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&f(e)}))})(e),j(!1),s(),a(e)):(L(t.id),j(!1),O(!0))})).catch((n=>{t&&f(n),h(e).then((({guid:e})=>{L(e)})).catch((()=>L(null))).finally((()=>{O(!0),j(!1)}))}))};return(0,P.jsx)(Ea,{isOpen:n,title:y(D?"activationPage.title":"mainPage.title"),subtitle:t?(U=t.displayTitle,_?x("poweredBy",{providerLogo:(0,P.jsx)(Cs,{href:"https://patchstack.com",children:(0,P.jsx)(GI,{})})}):y("common.subtitle",{installationName:U})):"",sideBanner:(0,P.jsx)("div",{className:`${v}-sideBannerImage`,style:{backgroundImage:`url('${r}images/virtual-patching.png')`}}),size:"xs",onClose:s,buttons:t?(e=>{return _||T||k||D||S?null:(0,P.jsxs)("div",{className:`${v}-buttons-container`,children:[(0,P.jsx)(CG,{installation:e,startPurchasingGuardian:()=>w(!0),startPurchasingSubscription:()=>(e=>{C(!0),m(e).then((t=>{(e=>{const t=window.open(e);return t?new Promise((e=>{const n=setInterval((()=>{t.closed&&(clearInterval(n),e())}),3e3)})):Promise.resolve()})(t.purchaseUrl).then((()=>{i(e,c),C(!1),E(e)}))})).catch((()=>C(!1)))})(e.id),uatAction:c}),A&&(t=e.id,(0,P.jsx)(Be,{onClick:()=>E(t),children:y("mainPage.button.iHaveSubscription")}))]});var t})(t):void 0,form:D?{submitButton:!1,applyButton:!1,cancelButton:{onClick:()=>O(!1),children:y("activationPage.button.back"),arrow:"backward"}}:S?{submitButton:!1,applyButton:!1,cancelButton:{children:y("purchasingGuardianPage.button.cancel")}}:void 0,cancelButton:D||S,"data-test-id":"wpt-virtual-patching-upsell-dialog",children:(0,P.jsx)("div",{className:`${v}-content`,children:t?(R=t.id,_?(0,P.jsx)(DG,{uatAction:c}):k?(0,P.jsx)(kG,{loaderText:(0,P.jsx)(ei,{bold:!0,children:y("common.status.updating")})}):T?(0,P.jsx)(kG,{loaderText:(0,P.jsx)(ei,{bold:!0,children:y("common.status.waitingPurchasingEnd")}),description:y("common.status.waitingPurchasingEnd.description")}):D?(0,P.jsx)(SG,{storedSubscriptionId:I,retrieveSubscriptionDataFromLicenseService:e=>E(R,e),detachSubscription:()=>(e=>{j(!0),p(e).then((()=>L(null))).catch((()=>{})).finally((()=>j(!1)))})(R)}):S?(0,P.jsx)(jG,{showNoteForAdmin:b}):(0,P.jsx)(wG,{})):void 0})});var R,U}));var OG=r(59399);const IG=({text:e,baseClassName:t=`${Rp}copyable-text`})=>{const[n,s]=M.useState(!1),i=M.useCallback((()=>{s(!0),setTimeout((()=>{s(!1)}),700)}),[]);return(0,P.jsxs)("span",{className:t,children:[e,(0,P.jsx)(OG.CopyToClipboard,{text:e,onCopy:i,children:(0,P.jsx)(be,{name:"copy-indicator",className:n?"pulse":""})})]})},MG=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:i=`${Rp}vpatches-subscription-info-view`}=e,a=zd("drawer.vpatchesSubscription.infoPage");return(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"check-mark-circle-filled",intent:"success",size:"16"}),"data-test-id":"virtual-patching-active-subscription-item",title:(0,P.jsx)(ei,{bold:!0,fontSize:"md",children:a("subscriptionInfo.status.active")}),children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.id"),"data-test-id":"virtual-patching-subscription-info-subscription-id",children:(0,P.jsx)(IG,{text:t.id})}),(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.paidAt"),children:n(t.startDate)}),(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.nextPaymentAt"),children:n(t.endDate)}),(0,P.jsx)(la,{children:s()}),(0,P.jsx)(la,{children:(0,P.jsx)(_G,{})})]})})},LG=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:i=`${Rp}vpatches-subscription-info-view`}=e,a=zd("drawer.vpatchesSubscription.infoPage");return(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"cross-mark-circle",intent:"danger",size:"16"}),title:(0,P.jsx)(ei,{bold:!0,fontSize:"md",children:a("subscriptionInfo.status.cancelled")}),children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.id"),children:(0,P.jsx)(IG,{text:t.id})}),(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.cancelledAt"),children:n(t.cancellationDate)}),(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.validUntil"),children:n(t.endDate)}),(0,P.jsx)(la,{children:s()}),(0,P.jsx)(la,{children:(0,P.jsx)(_G,{})})]})})},AG=e=>{const{subscription:t,formatDate:n,handleDetachSubscription:s,handleBuyNewSubscription:i,baseClassName:a=`${Rp}vpatches-subscription-info-view`}=e,r=zd("drawer.vpatchesSubscription.infoPage"),o=(0,P.jsxs)(Fs,{className:`${a}-detach-popover`,target:(0,P.jsx)(Be,{children:r("subscriptionInfo.button.detachSubscription")}),children:[(0,P.jsx)(mi,{children:r("subscriptionInfo.removeSubscriptionConfirmationPopover.text")}),(0,P.jsx)(Be,{intent:"danger",size:"md",onClick:()=>s(),children:r("subscriptionInfo.removeSubscriptionConfirmationPopover.submitButton")})]});return(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"exclamation-mark-circle",intent:"danger",size:"16"}),title:(0,P.jsx)(ei,{bold:!0,fontSize:"md",children:r("subscriptionInfo.status.terminated")}),children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{className:`${a}-item`,title:r("subscriptionInfo.id"),children:(0,P.jsx)(IG,{text:t.id})}),!!t.cancellationDate&&(0,P.jsx)(la,{className:`${a}-item`,title:r("subscriptionInfo.cancelledAt"),children:n(t.cancellationDate)}),(0,P.jsx)(la,{className:`${a}-item`,title:r("subscriptionInfo.terminatedAt"),children:n(t.endDate)}),(0,P.jsx)(la,{children:(0,P.jsx)(Be,{intent:"primary",onClick:()=>i(),children:r("subscriptionInfo.button.buyNewSubscription")})}),(0,P.jsx)(la,{children:(0,P.jsx)(_G,{})}),(0,P.jsx)(la,{children:o})]})})},EG=(e,t,n,s,i)=>(0,P.jsx)(Ar,{icon:t,title:(0,P.jsx)(ei,{bold:!0,fontSize:"md",children:(0,P.jsx)(qd,{content:n})}),children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{unsafe:!0,content:s,params:{siteName:e}})}),!!i&&(0,P.jsx)(la,{children:i})]})}),RG=mc((e=>({publicUrl:e.app.urls.publicUrl})))((e=>e.isProtectionStatusUpdating?EG(e.installationTitle,(0,P.jsx)(be,{name:"reload",animation:"spin",intent:"info",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.updating","drawer.vpatchesSubscription.infoPage.protectionStatus.updating.description"):e.isProtectionEnabled?EG(e.installationTitle,(0,P.jsx)(be,{name:"shield-filled",intent:"success",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.enabled","drawer.vpatchesSubscription.infoPage.protectionStatus.enabled.description"):EG(e.installationTitle,(0,P.jsx)(be,{src:`${e.publicUrl}images/shield-attention.svg`,intent:"danger",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.disabled","drawer.vpatchesSubscription.infoPage.protectionStatus.disabled.description",(0,P.jsx)(Be,{disabled:!e.isProtectionAvailable,intent:"primary",onClick:e.handleEnableProtection,children:(0,P.jsx)(qd,{content:"drawer.vpatchesSubscription.infoPage.protectionStatus.disabled.button.enable"})})))),UG=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:i=`${Rp}vpatches-subscription-info-view`}=e,a=zd("drawer.vpatchesSubscription.infoPage");return(0,P.jsx)(Ar,{icon:(0,P.jsx)(be,{name:"triangle-exclamation-mark",intent:"warning",size:"16"}),title:(0,P.jsx)(ei,{bold:!0,fontSize:"md",children:a("subscriptionInfo.status.renewalFailed")}),children:(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:a("subscriptionInfo.renewalFailed.description")}),(0,P.jsx)(la,{className:`${i}-item`,title:a("subscriptionInfo.id"),children:(0,P.jsx)(IG,{text:t.id})}),(0,P.jsx)(la,{children:s()}),(0,P.jsx)(la,{children:(0,P.jsx)(_G,{})})]})})},NG=e=>{const{subscription:t,protectionStatus:n,isProtectionAvailable:s,installationTitle:i,refreshSubscriptionData:a,detachSubscription:r,handleBuyNewSubscription:o,handleEnableProtection:l,isUpdating:c,isProtectionStatusUpdating:u}=e,d=zd("drawer.vpatchesSubscription.infoPage"),{languages:p}=navigator,h=e=>new Date(e).toLocaleString(p),m=()=>(0,P.jsx)(ye,{icon:"refresh",onClick:()=>a(),children:d("subscriptionInfo.button.refresh")});return c||!t?(0,P.jsx)(Rn,{}):(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(RG,{isProtectionAvailable:s,isProtectionEnabled:n,isProtectionStatusUpdating:u,installationTitle:i,handleEnableProtection:l})}),(0,P.jsx)(la,{children:t.status===wg.Terminated?(0,P.jsx)(AG,{subscription:t,formatDate:h,handleDetachSubscription:r,handleBuyNewSubscription:o}):t.status===wg.Suspended?(0,P.jsx)(UG,{subscription:t,formatDate:h,renderRefreshButton:m}):t.cancellationDate?(0,P.jsx)(LG,{subscription:Object.assign(Object.assign({},t),{cancellationDate:t.cancellationDate}),formatDate:h,renderRefreshButton:m}):(0,P.jsx)(MG,{subscription:t,formatDate:h,renderRefreshButton:m})})]})},FG=mc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:null!==n&&e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id)))}}),(e=>({getVirtualPatchesSubscriptionInfo:kb(Ak,e),activateVirtualPatchesSubscription:kb(Nk,e),detachVirtualPatchesSubscription:kb(Fk,e),displayErrorMessageFromMeta:kb(Bg,e),updateVirtualPatchesProtectionStatus:kb(g_,e)})))((e=>{var t,n;const{isOpen:s,onClose:i,installation:a,onOpenUpsellDialog:r,activateVirtualPatchesSubscription:o,detachVirtualPatchesSubscription:l,getVirtualPatchesSubscriptionInfo:c,displayErrorMessageFromMeta:u,updateVirtualPatchesProtectionStatus:d,hasActiveTasks:p,baseClassName:h=`${Rp}vpatches-subscription-drawer`}=e,m=zd("drawer.vpatchesSubscription"),[f,g]=(0,M.useState)(!1),[b,v]=(0,M.useState)(void 0),[y,x]=(0,M.useState)(!1),_=(0,M.useCallback)((e=>{g(!0),c(e).then((e=>{v(e)})).catch((e=>{u(e),i()})).finally((()=>g(!1)))}),[u,c,i]);(0,M.useEffect)((()=>{s&&(null==a?void 0:a.id)&&(S(),_(a.id))}),[s,null==a?void 0:a.id,_]);const S=()=>{g(!1),v(void 0)};return(0,P.jsx)(er,{className:h,"data-type":"virtual-protection-subscription-info",title:m("infoPage.title"),subtitle:a?a.displayTitle:void 0,isOpen:s,onClose:i,size:"xs",children:a?(0,P.jsx)(NG,{subscription:b,installationTitle:a.displayTitle,protectionStatus:null!==(t=a.features.virtualPatches.status)&&void 0!==t&&t,isProtectionAvailable:null!==(n=a.features.virtualPatches.available)&&void 0!==n&&n,refreshSubscriptionData:()=>{return e=a.id,g(!0),void o(e,t).then((e=>v(e))).catch((e=>{i()})).finally((()=>g(!1)));var e,t},detachSubscription:()=>{return e=a.id,g(!0),void l(e).catch((()=>{})).finally((()=>{g(!1),i()}));var e},handleBuyNewSubscription:()=>{return e=a.id,i(),void r(e,Kv);var e},handleEnableProtection:()=>{return e=a.id,x(!0),void d({installationsIds:[e],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&u(e)})).finally((()=>x(!1)));var e},isUpdating:f,isProtectionStatusUpdating:y||p}):void 0})})),YG={isOpen:!1,title:"",cancelTitle:"",buttons:null,content:""},HG={DbUser:!0,Db:!0,ActionLog:!0},BG={isOpen:!1,installationId:null,type:null};class VG extends M.Component{constructor(e){super(e),this.isSmartUpdatePromoVisible=()=>{const{installations:e,showSmartUpdates:t,showSmartUpdatePromo:n,isSmartUpdatePromoAvailable:s}=this.props;return!!e&&!!(t&&n&&s)&&e.some((e=>UM(e.installationType)&&e.features.updates.autoUpdatesAvailable))},this.dispatchSmartUpdatePromoUAT=()=>{this.isSmartUpdatePromoVisible()&&Rv(qv)},this.handleOnReceiveScanBackgroundTaskData=e=>{const{scanBackgroundTasksIds:t}=this.state;t.length&&t.forEach((t=>{const n=XD(t,e);n&&qD(n)&&(this.updateWordPressLimitsData().then(),this.setState((e=>({scanBackgroundTasksIds:e.scanBackgroundTasksIds.filter((e=>e!==n.id))})),(()=>{this.props.instancesActions.scanFinished();const e=this.isSmartUpdatePromoVisible();this.props.instancesActions.getInstancesData().then((()=>{!e&&this.isSmartUpdatePromoVisible()&&Rv(qv)})).catch((()=>{}))})))}))},this.loadInstancesList=()=>{const{instancesActions:{loadInstancesList:e}}=this.props;return this.setState({isLoading:!0}),e().then((()=>{this.applyGuiState(),this.updateItemsList()})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.processRouteParams=()=>{var e;const{id:t,instancesIds:n,domain:s,plugins:i,themes:a,checkSecurity:r,install:o,clone:l,sync:c,update:u,logs:d,backup:p,setupAdminSettings:h,activeTab:m}=(e=>{const t={};if(!e)return t;const n=e.split("/");let s;for(let e=0;e<n.length;e++)e%2!=0?s&&(t[s]=n[e]):(s=n[e],s&&(t[s]=void 0));return t})(null===(e=this.props.match)||void 0===e?void 0:e.params.params);let f=null;t&&(f=parseInt(t));const g={showInstanceNativeAssets:!(!i&&!a||!f),checkSecurity:!!r,selectedInstancesIdsForSecuring:r&&n?decodeURIComponent(n).split(",").map((e=>parseInt(e))):[],showInstancesSecurityDrawer:!(!r||!n),instancesSecurityDrawerActiveTab:m?Number(m):void 0,selectedDomainNameForInstallation:s||null,forceInstall:!!o,showInstanceInstallDrawer:!(!o||!s)};this.setState(g,(()=>{f&&(this.setSelectedInstanceId(f),r&&f?this.handleOpenSecurityDialog(f,g.instancesSecurityDrawerActiveTab):l?this.handleOpenCloneDialog(f):c?this.handleOpenSyncDialog(f):i?this.handleOpenNativeAssets(f,vp):a?this.handleOpenNativeAssets(f,bp):u?this.handleOpenUpdatesDialog(f,nx):d?this.handleOpenActionLogDrawer(f):p?this.handleOpenBackupDrawer(f):h?this.handleInitialOpenAdminSettingsDrawer(f):this.expandRow(f,!1))}))},this.handleGoToImport=()=>{window.location.href=this.props.urls.importUrl},this.handleScan=()=>!this.checkWpLimitExceeded()&&this.props.instancesActions.scan().then((e=>{this.setState((t=>({scanBackgroundTasksIds:t.scanBackgroundTasksIds.concat(e.task.id)})))})).catch((()=>{})),this.sortByField=(e="",t="")=>{const{cookies:n}=this.props;e&&(null==n||n.set(Sq,e,{path:"/"})),t&&(null==n||n.set(wq,t,{path:"/"})),this.setState({selection:[],selectedInstancesIdsForSecuring:[],selectedInstanceId:null}),this.loadInstancesList()},this.updateItemsList=()=>{Promise.all([this.getFilterData()]).then((()=>{this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize})}))},this.filterByField=(e=null)=>{const{instancesActions:{setInstancesFilter:t},cookies:n}=this.props;this.setState({selectedInstanceId:null},(()=>{null==n||n.set(_q,e,{path:"/"}),t(e)}))},this.getSortDropdownMenuItems=()=>{const{isOwnerColumnAvailable:e}=this.props,t=this.getCurrentSortField(),n=this.getCurrentSortOrder(),s=[],i=["title","version","displayTitle"];return e&&i.push("ownerName"),i.forEach((e=>{s.push((0,P.jsx)(Sn,{icon:e===t?bM("check-mark"):void 0,onClick:()=>this.sortByField(e),children:(0,P.jsx)(qd,{content:`toolbar.sort.by.${e}`})},`toolbarSort${e}`))})),s.push((0,P.jsx)(xn,{},"toolbarSortDivider")),s.push((0,P.jsx)(Sn,{icon:"asc"===n?bM("check-mark"):void 0,onClick:()=>this.sortByField("","asc"),children:(0,P.jsx)(qd,{content:"toolbar.sort.ascending"})},"toolbarSortAscending")),s.push((0,P.jsx)(Sn,{icon:"desc"===n?bM("check-mark"):void 0,onClick:()=>this.sortByField("","desc"),children:(0,P.jsx)(qd,{content:"toolbar.sort.descending"})},"toolbarSortDescending")),s},this.getFilterDropdownMenuItems=e=>{const t=[];return[hq,pq].forEach((n=>{t.push(this.getFilterMenuItem(n,"info",e))})),t.push((0,P.jsx)(oi,{children:(0,P.jsx)(qd,{content:"toolbar.filter.problems"})},"toolbarSortProblemsHeader")),[xq,fq,gq,bq,mq,yq].forEach((n=>{t.push(this.getFilterMenuItem(n,"danger",e))})),t.push((0,P.jsx)(xn,{},"toolbarSortDivider")),t.push((0,P.jsx)(Sn,{onClick:()=>this.filterByField(vq),icon:"cross-mark",label:(0,P.jsx)(we,{children:e[vq]}),children:(0,P.jsx)(qd,{content:"toolbar.filter.reset"})},"toolbarFilterReset")),t},this.getFilterMenuItem=(e,t,n)=>{const{filter:s}=this.props;return(0,P.jsx)(Sn,{disabled:n[e]<=0,icon:s&&e===s?bM("check-mark"):void 0,onClick:()=>this.filterByField(e),label:(0,P.jsx)(we,{intent:t,children:n[e]}),children:(0,P.jsx)(qd,{content:`toolbar.filter.${e}`})},`toolbarFilter${e}`)},this.getCurrentSortOrder=()=>{var e;return(null===(e=this.props.cookies)||void 0===e?void 0:e.get(wq))||"asc"},this.getCurrentSortField=()=>{var e;return(null===(e=this.props.cookies)||void 0===e?void 0:e.get(Sq))||"title"},this.handleOpenNativeAssets=(e,t)=>{this.setState({nativeAssets:{isOpen:!0,installationId:e,type:t}})},this.handleCloseNativeAssets=()=>{this.state.nativeAssets.isOpen&&this.state.showInstanceNativeAssets&&(this.props.history.replace("/list"),this.setState({showInstanceNativeAssets:!1})),this.setState({nativeAssets:Object.assign({},BG)})},this.handleOpenVirtualPatchingUpsellDialog=(e,t)=>{this.setState({isVirtualPatchingUpsellDialogVisible:!0,showVirtualPatchingUpsellDialogForInstallationId:e,virtualPatchingUpsellDialogUatAction:t})},this.handleCloseVirtualPatchingUpsellDialog=()=>{this.setState({isVirtualPatchingUpsellDialogVisible:!1,virtualPatchingUpsellDialogUatAction:""})},this.handleOpenVirtualPatchingLicenseInfoDrawer=e=>{this.setState({showVirtualPatchingLicenseInfoDrawerForInstallation:e,isVirtualPatchingLicenseInfoDrawerVisible:!0})},this.handleCloseVirtualPatchingLicenseInfoDrawer=()=>{this.setState({isVirtualPatchingLicenseInfoDrawerVisible:!1})},this.handleRefresh=e=>(this.handleAddInstanceToDisabledInstancesSet([e]),this.props.instancesActions.refresh(e).catch((()=>{})).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet([e])}))),this.handleSwitchPhpHandler=(e,t)=>(this.handleAddInstanceToDisabledInstancesSet([e]),this.props.instancesActions.switchPhpHandler(e,t).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet([e])}))),this.handleAddInstanceToDisabledInstancesSet=e=>{const{disabledInstancesSet:t}=this.state;e.forEach((e=>t.add(e))),this.setState({disabledInstancesSet:t})},this.handleRemoveInstanceFromDisabledInstancesSet=e=>{const{disabledInstancesSet:t}=this.state;e.forEach((e=>t.delete(e))),this.setState({disabledInstancesSet:t})},this.removeInstances=e=>{const{remove:t}=this.props.instancesActions,{Db:n,DbUser:s,ActionLog:i}=this.state.removeOptions,a={removeDb:n,removeUser:s,removeActionLog:i,checkShared:e.length>1};return this.handleAddInstanceToDisabledInstancesSet(e),this.handleCloseDialog(),t(e,a).catch((()=>{})).finally((()=>{this.updateWordPressLimitsData().then(),this.handleRemoveInstanceFromDisabledInstancesSet(e),this.getFilterData(),this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize}),this.setState((t=>{const n=t.selection.filter((t=>!e.includes(t)));return{selection:n,selectedInstancesIdsForSecuring:n}})),this.removeInstancesFromExpandedRows(e),this.forgetExpandedInstanceIds(e)}))},this.handleBulkRemove=()=>{const{selection:e}=this.state,{installations:t,instancesActions:{getInstallationsRemoveConfiguration:n},appActions:{addWarningMessage:s},actionLogFeatureEnabled:i}=this.props;0!==e.length?n(e).then((e=>{const n=e.map((e=>{const n=this.getInstallationFromProps(e.id);if(!n)return{id:e.id,url:null,isPossibleToRemove:!1,hintMessage:null};const s=e.database.removingAllowed&&e.user.removingAllowed,i={id:e.id,url:`<a target='_blank' href="${n.url}">${n.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,P.jsx)(qd,{content:"remove-confirmation.hintWillRemoveSuccess",params:{site:n.displayTitle}})};if(!s){const n=e.database.sharedWithInstallationsIds,s=e.user.sharedWithInstallationsIds,a=(t||[]).filter((e=>n.includes(e.id)||s.includes(e.id)));i.hintMessage=(0,P.jsx)(qd,{content:"remove-confirmation.hintSharedInstanceError",params:{sharedInstance:a.map((e=>e.displayTitle)).join(", ")}})}return BM(n.installationType)&&(i.isPossibleToRemove=!1,i.hintMessage=(0,P.jsx)(qd,{content:"remove-confirmation.hintRemoteAgentInstanceRemoveUnsupported"})),i})),s=n.every((e=>!1===e.isPossibleToRemove)),a=n.filter((e=>e.isPossibleToRemove)).map((e=>e.id));this.setState({dialog:{isOpen:!0,title:(0,P.jsx)(qd,{content:"remove-confirmation.titleMass"}),cancelTitle:(0,P.jsx)(qd,{content:"controllers.index.detail.buttonConfirmationNo"}),content:(0,P.jsx)(Aq,{title:(0,P.jsx)(qd,{content:"controllers.index.detail.massRemoveConfirmationDescription"}),installationsToRemove:n,actionLogFeatureEnabled:i,actionLogRemoveLabel:(0,P.jsx)(qd,{content:"massRemoveConfirmation.removeActionLog"}),changeRemoveOptions:this.changeRemoveOptions}),buttons:(0,P.jsx)(Be,{"data-test-id":zb,onClick:()=>this.removeInstances(a),disabled:s,children:(0,P.jsx)(qd,{content:"controllers.index.detail.removeButton"})})}})})).catch((()=>{})):s((0,P.jsx)(qd,{content:"remove-confirmation.noItemsSelectedToast"}))},this.handleRemove=e=>{const{id:t,displayTitle:n,features:{actionLog:s}}=e,{appActions:{addWarningMessage:i},instancesActions:{getInstallationsRemoveConfiguration:a}}=this.props;a([t]).then((e=>{const a=e.find((e=>e.id===t));a?this.setState({dialog:{isOpen:!0,title:(0,P.jsx)(qd,{content:"remove-confirmation.titleSingle"}),cancelTitle:(0,P.jsx)(qd,{content:"remove-confirmation.buttonNo"}),content:(0,P.jsx)(BN,{changeRemoveOptions:this.changeRemoveOptions,db:a.database,dbUser:a.user,isInstanceDatabaseDeletionAllowed:a.database.removingAllowed&&a.user.removingAllowed,isDatabaseWillBeRemovedAutomatically:a.database.willBeRemovedAutomatically,installationId:t,installationTitle:n,isActionLogAvailable:s.available}),buttons:(0,P.jsx)(Be,{onClick:()=>this.removeInstances([t]),"data-test-id":zb,children:(0,P.jsx)(qd,{content:"remove-confirmation.buttonYes"})})}}):i((0,P.jsx)(qd,{content:"remove-confirmation.error.getConfirmationDetails"}))})).catch((()=>{}))},this.changeRemoveOptions=e=>{this.setState((t=>({removeOptions:Object.assign(Object.assign({},t.removeOptions),e)})))},this.handleBulkDetach=e=>{if(0===e.length)return void this.props.appActions.addWarningMessage((0,P.jsx)(qd,{content:"remove-confirmation.noItemsSelectedToast"}));const{installations:t}=this.props,n=(t||[]).filter((t=>e.includes(t.id))).map((e=>({id:e.id,url:`<a target='_blank' href="${e.url}">${e.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,P.jsx)(qd,{content:"detach-confirmation.hintWillDetachSuccess"})})));this.setState({dialog:{isOpen:!0,title:(0,P.jsx)(qd,{content:"controllers.index.detail.detachConfirmationTitle"}),cancelTitle:(0,P.jsx)(qd,{content:"controllers.index.detail.buttonConfirmationNo"}),content:(0,P.jsx)(Aq,{installationsToRemove:n,title:(0,P.jsx)(qd,{content:"controllers.index.detail.massDetachConfirmationDescription"})}),buttons:(0,P.jsx)(Be,{onClick:()=>(this.handleAddInstanceToDisabledInstancesSet(e),this.handleCloseDialog(),this.props.instancesActions.detach(e).then((t=>(this.updateWordPressLimitsData().then(),this.getFilterData(),this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize}),this.setState((e=>{const n=e.selection.filter((e=>!t.data.detachedInstances.includes(e)));return{selection:n,selectedInstancesIdsForSecuring:n}})),this.removeInstancesFromExpandedRows(e),this.forgetExpandedInstanceIds(e),t))).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet(e)}))),"data-test-id":qb,children:(0,P.jsx)(qd,{content:"controllers.index.detail.detachButton"})})}})},this.handleCloseDialog=()=>{this.setState((e=>({dialog:Object.assign(Object.assign({},e.dialog),{isOpen:!1}),removeOptions:Object.assign({},HG)})))},this.getFilterData=(e=!0)=>{const{search:t,filter:n,installations:s,isMultipleSiteManagementUnpaid:i}=this.props,a={[hq]:0,[pq]:0,[mq]:0,[bq]:0,[fq]:0,[gq]:0,[yq]:0,[xq]:0},{selectedInstanceId:r}=this.state;let o,l=s;if(l){if(t){const e=t.toLowerCase(),n=DN(t).toLowerCase();l=l.filter((({displayTitle:t,path:s,title:i,domain:a,server:r})=>-1!==t.toLowerCase().indexOf(e)||-1!==DN(t).toLowerCase().indexOf(n)||-1!==s.toLowerCase().indexOf(e)||-1!==i.toLowerCase().indexOf(e)||-1!==((null==a?void 0:a.name)||"").toLowerCase().indexOf(e)||-1!==DN((null==a?void 0:a.name)||"").toLowerCase().indexOf(n)||r&&-1!==r.toLowerCase().indexOf(e)))}l=l.filter((e=>{const{features:{debug:t,maintenance:s,php:i,vulnerability:c},labels:u,status:{alive:d,infected:p}}=e,h=!1===d,m=c.available&&!!c.vulnerable,f=!h&&!!s.status,g=!h&&this.hasUpdates(e),b=!h&&this.hasSecurityIssues(e),v=!0===t.status,y=!0===i.eoled;if(r===e.id&&(o=e),m&&a[xq]++,h&&!p&&a[fq]++,p&&a[gq]++,f&&a[pq]++,g&&a[bq]++,b&&a[mq]++,v&&a[hq]++,y&&a[yq]++,!n||(l||[]).length<2)return!0;switch(n){case xq:return m;case fq:return h&&!p;case gq:return p;case pq:return f;case bq:return g;case mq:return b;case hq:return v;case yq:return y;default:return!0}})),a[vq]=(s||[]).length,o&&(l=[o,...l.filter((e=>e.id!==(null==o?void 0:o.id)))]),l=l.map((e=>Object.assign(Object.assign({},e),{disabled:i||!e.features.multipleSitesManagement.applicable}))),e?this.setState({items:l,filterCounters:a}):this.setState({filterCounters:a})}else this.setState({items:[],filterCounters:a})},this.updateWordPressLimitsData=()=>this.props.appActions.getInitialOptions(),this.setSelectedInstanceId=e=>{this.setState({selectedInstanceId:e},(()=>this.getFilterData(!0)))},this.handleSelection=e=>{this.setState({selection:e,selectedInstancesIdsForSecuring:e})},this.handleOnSelectPage=e=>{const{pageSize:t}=this.state;this.setState({isRefreshing:!0,selection:[]},(()=>this.handleUpdateVisibleItems({page:e,pageSize:t})))},this.handleSelectItemsPerPage=e=>{const{items:t,pageSize:n,currentPage:s}=this.state;"all"===e&&(e=t.length);const i=Math.floor(n*(s-1)/e)+1;this.setState({isRefreshing:!0,selection:[]},(()=>this.handleUpdateVisibleItems({page:i,pageSize:e})))},this.handleUpdateVisibleItems=({page:e,pageSize:t})=>{this.setState((n=>{const s=(e-1)*t,i=Math.min(s+t,n.items.length);return{isRefreshing:!1,pageSize:t,currentPage:e,showedItems:n.items.slice(s,i)}}))},this.handleOpenInstancesSecurityDrawer=(e=void 0)=>{this.setState({showInstancesSecurityDrawer:!0,instancesSecurityDrawerActiveTab:e})},this.handleCloseInstancesSecurityDrawer=()=>{this.state.showInstancesSecurityDrawer&&this.state.checkSecurity&&(this.props.history.replace("/list"),this.setState({selectedInstancesIdsForSecuring:[],checkSecurity:!1})),this.setState({showInstancesSecurityDrawer:!1,instancesSecurityDrawerActiveTab:void 0})},this.handleToggleInstancesUpdatesDrawer=()=>{this.setState((e=>({showInstancesUpdatesDrawer:!e.showInstancesUpdatesDrawer})))},this.handleToggleInstanceInstallDrawer=()=>{this.checkWpLimitExceeded()||(this.state.showInstanceInstallDrawer&&this.state.forceInstall&&(this.props.history.replace("/list"),this.setState({selectedDomainNameForInstallation:null,forceInstall:!1})),this.setState((e=>({showInstanceInstallDrawer:!e.showInstanceInstallDrawer}))))},this.handleOpenInstallationCompletedDialog=()=>{this.setState({showInstallationCompletedDialog:!0})},this.handleCloseInstallationCompletedDialog=()=>{this.setState({showInstallationCompletedDialog:!1})},this.handleShowConnectRemoteAgentInstanceDrawer=()=>{this.setState({isConnectRemoteAgentInstanceDrawerVisible:!0})},this.handleHideConnectRemoteAgentInstanceDrawer=()=>{this.setState({isConnectRemoteAgentInstanceDrawerVisible:!1})},this.handleBeforeInstallation=()=>this.setState({isSmartUpdatePromoVisibleBeforeInstallation:this.isSmartUpdatePromoVisible()}),this.handleInstallationCompleted=e=>{this.expandRow(e),this.updateWordPressLimitsData().then((()=>this.handleOpenInstallationCompletedDialog())),!this.state.isSmartUpdatePromoVisibleBeforeInstallation&&this.isSmartUpdatePromoVisible()&&Rv(qv)},this.handleSetSelectedInstanceAnchor=e=>e&&e.scrollIntoView(!1),this.renderFileManagerListAction=e=>{const{installationType:t,features:{fileManager:{url:n}},owner:s}=e;if(!n)return null;const{goToUri:i}=this.props;let a={};if(UM(t))a={onClick:e=>Xd(e,(()=>window.open(n)))};else{const{href:e,onClick:t}=Bv({link:n,inNewWindow:!1,goToUri:i,accountUsername:s.login});a={onClick:e?t=>Xd(t,(()=>window.open(e))):t}}return(0,M.createElement)(Jr,Object.assign({},a,{"data-test-id":uv,icon:"folder-closed",key:"filemanager",primary:!0}),(0,P.jsx)(qd,{content:"instancesList.instanceCard.fileManager"}))},this.getInstallationUrl=e=>{const{url:t}=e;if(!t)return null;const{baseClassName:n}=this.props;return(0,P.jsx)(Ki,{className:`${n}__instance-url-column`,children:(0,P.jsx)(Oe,{title:(0,P.jsx)(qd,{content:"toolbar.openInNewTab"}),children:(0,P.jsx)(Cs,{href:t,target:"_blank","data-test-id":"instance-title-link",className:`${n}-instance-link`,children:(0,P.jsx)(qd,{content:"instancesList.openWordpress"})})})})},this.renderLabels=e=>{const{features:{php:t}}=e,{alive:n,infected:s,unsupported:i,multisite:a}=e.status,{baseClassName:r}=this.props,o=[];return t.unsupported?(o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(we,{intent:"danger",className:`${r}-aligned`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.labelUnsupportedPhp"})})},"label-warning-instance-on-unsupported-php")),o):i?(o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(we,{intent:"danger","data-test-id":"unsupported-instance-label",className:`${r}-aligned`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.labelInstanceUnsupported"})})},"label-warning-instance-outdated")),o):(n?a&&o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(we,{intent:"info",className:`${r}-aligned`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.labelMultisite"})})},"label-multisite-instance")):s?o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(we,{intent:"danger","data-test-id":"infected-instance-label",className:`${r}-aligned`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.labelInstanceInfected"})})},"label-warning-instance-infected")):o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(we,{intent:"danger",className:`${r}-aligned`,children:(0,P.jsx)(qd,{content:"controllers.index.detail.labelInstanceBroken"})})},"label-warning-instance-broken")),o.push((0,P.jsx)(Ki,{children:(0,P.jsx)(bG,{installationId:e.id,tags:e.labels})},"installationLabels")),o)},this.getInstallationTitle=e=>{const t=this.getInstallationFromProps(e.id);if(!t)return null;const{displayTitle:n}=t,{baseClassName:s}=this.props,i=!this.state.disabledInstancesSet.has(t.id);return(0,P.jsxs)(qi,{gap:"md","data-test-id":`instance-header-${e.id}`,"data-test-name":`instance-header-${t.title}`,"data-test-row":"header",children:[(0,P.jsx)(Ki,{children:(0,P.jsx)(Hv,{uatAction:Xv,featureName:Pp,description:(0,P.jsx)(qd,{content:"paidFeature.multipleSitesManagementFeatureDescription"}),installationId:t.id,isInstanceFeatureDisabled:!t.features.multipleSitesManagement.applicable,className:`${s}-instance-name`,children:(0,P.jsx)("span",{"data-test-id":"instance-card-title",children:n})})}),this.getInstallationUrl(t),i&&this.renderLabels(t)]})},this.removeInstancesFromExpandedRows=e=>this.setState((t=>{const n=new Set;return e.forEach((e=>n.add(e))),{expandedRows:t.expandedRows.filter((e=>!n.has(e)))}})),this.expandRow=(e,t=!1)=>this.setState((n=>{const s=n.expandedRows.filter((t=>parseInt(`${t}`)!==parseInt(`${e}`)));return s.push(parseInt(`${e}`)),t&&this.props.instancesActions.keepExpandedInstanceId(e),{expandedRows:s}})),this.handleOpenSynchronizeSiteUrlDialog=e=>{this.expandRow(e,!0),this.setState({showSynchronizeSiteUrlDialogForInstanceId:e})},this.handleCloseSynchronizeSiteUrlDialog=()=>this.setState({showSynchronizeSiteUrlDialogForInstanceId:null}),this.handleOpenSecurityDialog=(e,t=void 0)=>{this.expandRow(e,!0),this.setState({selectedInstanceIdSecuring:e,checkSecurity:!0,securityDrawerActiveTab:t},(()=>this.getFilterData(!0)))},this.handleCloseSecurityDialog=()=>{this.state.selectedInstanceIdSecuring&&this.state.checkSecurity&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdSecuring:null,checkSecurity:!1,securityDrawerActiveTab:void 0}))},this.handleOpenCloneDialog=e=>{this.expandRow(e),this.setState({selectedInstanceIdCloning:e,isCloneDrawerOpen:!0},(()=>this.getFilterData(!0)))},this.handleCloseCloneDrawer=()=>{this.state.selectedInstanceIdCloning&&this.state.isCloneDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdCloning:null,isCloneDrawerOpen:!1}))},this.handleOpenSyncDialog=e=>{this.expandRow(e),this.setState({selectedInstanceIdSyncing:e,isSyncDrawerOpen:!0},(()=>this.getFilterData(!0)))},this.handleCloseSyncDrawer=()=>{this.state.selectedInstanceIdSyncing&&this.state.isSyncDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdSyncing:null,isSyncDrawerOpen:!1}))},this.handleOpenUpdatesDialog=(e,t=null,n=!1)=>{this.expandRow(e,!0),this.setState({selectedInstanceIdUpdating:e,isUpdatesDrawerOpen:!n,openUpdatesType:t,isUpdateSettingsFormOpen:n},(()=>this.getFilterData(!0)))},this.handleCloseUpdatesDialog=()=>{this.state.selectedInstanceIdUpdating&&this.state.isUpdatesDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdUpdating:null,isUpdatesDrawerOpen:!1,openUpdatesType:null,isUpdateSettingsFormOpen:!1}))},this.handleOpenUpdatesSettingsDialog=()=>this.setState({isUpdateSettingsFormOpen:!0}),this.handleCloseUpdatesSettingsDialog=()=>this.setState({isUpdateSettingsFormOpen:!1}),this.getKebabListActions=e=>{const{id:t,installationType:n,features:{security:s,synchronizeSiteUrl:i},status:{alive:a,unsupported:r}}=e,{isSynchronizeSiteUrlEnabled:o}=this.props,l=[];return l.push((0,P.jsx)(Jr,{onClick:()=>this.handleOpenUpdatesDialog(t),disabled:!a||r,children:(0,P.jsx)(qd,{content:"instancesList.instanceActions.checkUpdates"})},"checkUpdates")),s.available&&l.push((0,P.jsx)(Jr,{onClick:()=>this.handleOpenSecurityDialog(t),"data-test-id":Xb,disabled:!a||r,children:(0,P.jsx)(qd,{content:"toolbar.checkSecurity"})},Xb)),o&&i.available&&l.push((0,P.jsx)(Jr,{onClick:()=>this.handleOpenSynchronizeSiteUrlDialog(t),"data-test-id":"instance-synchronize-site-url",children:(0,P.jsx)(qd,{content:"toolbar.synchronizeSiteUrl"})},"synchronizeSiteUrl")),l.push((0,P.jsx)(Jr,{onClick:()=>this.handleBulkDetach([t]),"data-test-id":Qb,children:(0,P.jsx)(qd,{content:"toolbar.detach"})},Qb)),BM(n)||(l.push((0,P.jsx)(xn,{},"instanceCardMenuDevider")),l.push((0,P.jsx)(Jr,{icon:"cross-mark",onClick:()=>this.handleRemove(e),"data-test-id":Kb,children:(0,P.jsx)(qd,{content:"toolbar.remove"})},Kb))),l},this.renderActionLogListAction=e=>(0,P.jsx)(Jr,{onClick:()=>this.handleOpenActionLogDrawer(e),icon:"list","data-test-id":"instance-link-action-log",primary:!0,children:(0,P.jsx)(qd,{content:"list.instances.linkActionLog"})},"instance-link-action-log"),this.getColumns=()=>{const{disabledInstancesSet:e}=this.state;return[{key:"title",title:(0,P.jsx)(qd,{content:"instancesList.columnTitle"}),sortable:!1,type:"title",render:this.getInstallationTitle},{key:"issues",sortable:!1,type:"controls",render:t=>{const n=this.getInstallationFromProps(t.id);if(!n||e.has(n.id))return null;const{status:{unsupported:s}}=n;return s?null:(0,P.jsx)(mG,{installation:n,onOpenUpdates:this.handleOpenUpdatesDialog,onOpenSecurity:this.handleOpenSecurityDialog,onEnableInstances:this.handleRemoveInstanceFromDisabledInstancesSet,onDisableInstances:this.handleAddInstanceToDisabledInstancesSet,onOpenSmartPhpUpdatesDrawer:()=>this.handleOpenSmartPhpUpdatesDrawer(n.id)})}},{key:"actions",type:"actions",render:t=>{const n=this.getInstallationFromProps(t.id);if(!n||e.has(n.id))return null;const{installationType:s,features:{fileManager:i,actionLog:a}}=n,r=[];return r.push((0,P.jsx)(Jr,{primary:!0,icon:void 0,children:()=>(0,P.jsx)(xG,{installation:n,onOpenVulnerabilitiesDrawer:()=>this.handleOpenSecurityDialog(n.id,1),onOpenVirtualPatchesUpsell:()=>this.handleOpenVirtualPatchingUpsellDialog(n.id,Xv)})},"vulnerability-shield")),a.available&&r.push(this.renderActionLogListAction(n.id)),i.available&&i.url&&(UM(s)||RM(s))&&r.push(this.renderFileManagerListAction(n)),r.push((0,P.jsx)(Jr,{icon:"refresh",onClick:()=>this.handleRefresh(n.id),"data-test-id":lv,primary:!0,children:(0,P.jsx)(qd,{content:"Card.refreshCardTooltip"})},"refresh")),(0,P.jsxs)(Zr,{children:[r,this.getKebabListActions(n)]})}}]},this.updateKeptExpandedInstanceIds=e=>{const t=e.filter((e=>!this.state.expandedRows.includes(e)));t.length&&t.forEach((e=>this.props.instancesActions.keepExpandedInstanceId(e)));const n=this.state.expandedRows.filter((t=>!e.includes(t)));n.length&&this.forgetExpandedInstanceIds(n)},this.forgetExpandedInstanceIds=e=>{e.forEach((e=>this.props.instancesActions.forgetExpandedInstanceId(e)))},this.handleOnExpandedRowsChange=e=>{this.updateKeptExpandedInstanceIds(e),this.setState({expandedRows:e})},this.handleOpenActionLogDrawer=e=>{const{actionLogActions:{onOpenActionLogBrowser:t}}=this.props;t(e),this.expandRow(e,!0),this.setState({isActionLogDrawerVisible:!0,showActionLogDrawerForInstanceId:e})},this.handleCloseActionLogDrawer=()=>this.setState({isActionLogDrawerVisible:!1,showActionLogDrawerForInstanceId:null}),this.handleOpenBackupDrawer=e=>{this.expandRow(e,!0),this.setState({isBackupDrawerVisible:!0,showBackupDrawerForInstanceId:e})},this.handleCloseBackupDrawer=()=>this.setState({isBackupDrawerVisible:!1,showBackupDrawerForInstanceId:null}),this.handleInitialOpenAdminSettingsDrawer=e=>{this.expandRow(e,!0),this.setState({initialShowAdminSettingsDrawer:!0,showInitialShowAdminSettingsDrawerForInstanceId:e})},this.handleOpenCheckWordPressIntegrityDialog=e=>{this.expandRow(e,!0),this.setState({isCheckWordPressIntegrityDialogVisible:!0,showCheckWordPressIntegrityDialogForInstanceId:e})},this.handleCloseCheckWordPressIntegrityDialog=()=>this.setState({isCheckWordPressIntegrityDialogVisible:!1,showCheckWordPressIntegrityDialogForInstanceId:null}),this.renderEmptyView=()=>{const{isInstallButtonAvailable:e,search:t,filter:n}=this.props,{isLoading:s,items:i}=this.state;if(s)return(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list.instances.loading"})});if((t||n!==vq)&&0===i.length)return(0,P.jsx)($r,{title:(0,P.jsx)(qd,{content:"instancesList.emptyList.nothingFound"}),image:null});const a=[];return e&&a.push((0,P.jsx)(Be,{onClick:this.handleToggleInstanceInstallDrawer,tooltip:(0,P.jsx)(qd,{content:"instancesList.emptyList.installButton.hint"}),intent:"primary",children:(0,P.jsx)(qd,{content:"instancesList.emptyList.installButton.title"})},"install")),a.push((0,P.jsx)(Be,{icon:"eye",onClick:this.handleScan,tooltip:(0,P.jsx)(qd,{content:"instancesList.emptyList.scanButton.hint"}),children:(0,P.jsx)(qd,{content:"instancesList.emptyList.scanButton.title"})},"scan")),(0,P.jsx)($r,{title:(0,P.jsx)(qd,{content:"instancesList.emptyList.suggestInstall"}),actions:a})},this.handleOpenSmartPhpUpdatesDrawer=e=>{this.setState({isSmartPhpUpdateDrawerVisible:!0,showSmartPhpUpdateDrawerForInstanceId:e})},this.handleCloseSmartPhpUpdatesDrawer=()=>this.setState({isSmartPhpUpdateDrawerVisible:!1,showSmartPhpUpdateDrawerForInstanceId:null}),this.getLoadingRowsAsArray=()=>{const{disabledInstancesSet:e}=this.state,t=[];return e.forEach((e=>{t.push(e)})),t},this.getInstallationFromProps=e=>(this.props.installations||[]).find((t=>t.id===e))||null,this.state={selection:[],selectedInstancesIdsForSecuring:[],openUpdatesType:null,isUpdateSettingsFormOpen:!1,dialog:Object.assign({},YG),removeOptions:Object.assign({},HG),nativeAssets:Object.assign({},BG),disabledInstancesSet:new Set,items:[],filterCounters:{},showedItems:[],currentPage:1,pageSize:10,selectedInstanceId:null,selectedInstanceIdCloning:null,selectedInstanceIdSyncing:null,selectedInstanceIdSecuring:null,selectedInstanceIdUpdating:null,selectedDomainNameForInstallation:null,showInstancesSecurityDrawer:!1,showInstancesUpdatesDrawer:!1,showInstanceInstallDrawer:!1,showInstallationCompletedDialog:!1,isLoading:!1,isRefreshing:!1,isCloneDrawerOpen:!1,isSyncDrawerOpen:!1,isUpdatesDrawerOpen:!1,checkSecurity:!1,forceInstall:!1,showInstanceNativeAssets:!1,isConnectRemoteAgentInstanceDrawerVisible:!1,scanBackgroundTasksIds:[],isSmartUpdatePromoVisibleBeforeInstallation:!1,expandedRows:[],showSynchronizeSiteUrlDialogForInstanceId:null,showActionLogDrawerForInstanceId:null,isActionLogDrawerVisible:!1,showBackupDrawerForInstanceId:null,isBackupDrawerVisible:!1,initialShowAdminSettingsDrawer:!0,showInitialShowAdminSettingsDrawerForInstanceId:null,showCheckWordPressIntegrityDialogForInstanceId:null,isCheckWordPressIntegrityDialogVisible:!1,securityDrawerActiveTab:void 0,instancesSecurityDrawerActiveTab:void 0,showSmartPhpUpdateDrawerForInstanceId:null,isSmartPhpUpdateDrawerVisible:!1,isVirtualPatchingUpsellDialogVisible:!1,showVirtualPatchingUpsellDialogForInstallationId:null,virtualPatchingUpsellDialogUatAction:"",isVirtualPatchingLicenseInfoDrawerVisible:!1,showVirtualPatchingLicenseInfoDrawerForInstallation:null}}componentDidMount(){var e;const{isAdmin:t}=this.props,n=()=>{var e;1===(null===(e=this.props.installations)||void 0===e?void 0:e.length)&&this.props.installations.map((e=>this.expandRow(e.id)))},s=()=>{this.props.installations&&this.props.installations.length>1&&this.props.keptExpandedInstanceIds.length>0&&this.props.keptExpandedInstanceIds.forEach((e=>this.expandRow(e)))},i=()=>{this.props.instancesActions.checkExpiredExpandedInstanceIds((this.props.installations||[]).map((e=>e.id)))};switch(t&&this.props.installations&&fb(),null===(e=this.props.cookies)||void 0===e?void 0:e.get(Sq)){case"name":this.props.cookies.set(Sq,"title",{path:"/"});break;case"shortUrl":this.props.cookies.set(Sq,"displayTitle",{path:"/"})}this.props.installations?(this.applyGuiState(),n(),s(),i()):this.loadInstancesList().finally((()=>{n(),s(),i()}))}componentWillReceiveProps(e){this.handleOnReceiveScanBackgroundTaskData(e.tasks),e.lastInstalledInstanceId!==this.props.lastInstalledInstanceId&&e.lastInstalledInstanceId&&this.handleInstallationCompleted(e.lastInstalledInstanceId)}componentDidUpdate(e){const{isAdmin:t}=this.props;t&&this.props.installations&&fb(),e.search===this.props.search&&e.filter===this.props.filter||(this.updateItemsList(),this.handleUpdateVisibleItems({page:1,pageSize:this.state.pageSize})),!1===e.needToUpdateInstancesList&&this.props.needToUpdateInstancesList&&(this.props.instancesActions.setIsNeedToUpdateInstancesList(!1),this.updateItemsList()),!1===e.needToUpdateInstancesFilter&&this.props.needToUpdateInstancesFilter&&(this.props.instancesActions.setIsNeedToUpdateInstancesFilter(!1),this.getFilterData(!1)),e.selectedInstanceId!==this.props.selectedInstanceId&&this.setSelectedInstanceId(this.props.selectedInstanceId),e.expandedInstanceId!==this.props.expandedInstanceId&&this.props.expandedInstanceId&&this.expandRow(this.props.expandedInstanceId)}componentWillUnmount(){const{instancesActions:{resetInstancesList:e}}=this.props;e()}applyGuiState(){const{instancesActions:{setInstancesFilter:e},cookies:t}=this.props;e((null==t?void 0:t.get(_q))||vq),this.getFilterData(),this.processRouteParams(),this.dispatchSmartUpdatePromoUAT()}hasUpdates(e){const{features:{updates:t}}=e;return t.amountOfPluginsWithUpdates>0||t.amountOfThemesWithUpdates>0||t.availableVersion}hasSecurityIssues(e){const{features:{security:t}}=e;return t.available&&"secureRecommended"!==t.status&&"secureFull"!==t.status}checkWpLimitExceeded(){return!!this.props.isWordPressInstancesLimitExceeded&&(this.props.appActions.addErrorMessage((0,P.jsx)(qd,{content:"common.wordPressSitesLimitExceeded"})),!0)}renderInstallToolbarGroup(){return(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{onClick:this.handleToggleInstanceInstallDrawer,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonInstall"}),"data-test-id":"instances-toolbar-install-button",children:(0,P.jsx)(qd,{content:"list.instances.buttonInstall"})})},"toolbarInstallAction")}renderImportToolbarGroup(){return(0,P.jsx)(Ii,{title:"",children:(0,P.jsx)(Be,{icon:"arrow-down-in","data-type":"import-button",onClick:this.handleGoToImport,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonImport"}),children:(0,P.jsx)(qd,{content:"list.instances.buttonImport"})})},"toolbarImportAction")}renderScanToolbarButton(){return(0,P.jsx)(Be,{icon:"eye","data-type":"scan-button",onClick:this.handleScan,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonScan"}),"data-test-id":"instances-toolbar-scan-button",children:(0,P.jsx)(qd,{content:"list.instances.buttonScan"})})}renderUpdatesToolbarButton(){return(0,P.jsx)(Be,{onClick:this.handleToggleInstancesUpdatesDrawer,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonUpdates"}),"data-test-id":"instances-toolbar-update-button",icon:this.props.isUpdatesUnpaid||this.props.isUpdatesDisabled?"lock-closed":null,children:(0,P.jsx)(qd,{content:"list.instances.buttonUpdates"})})}renderSecurityToolbarButton(){const{installations:e,isSecurityUnpaid:t,isSecurityDisabled:n,baseClassName:s}=this.props,i=(e||[]).some((e=>e.features.vulnerability.vulnerable)),a=i?1:void 0;return(0,P.jsxs)(Be,{onClick:()=>this.handleOpenInstancesSecurityDrawer(a),tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonSecurity"}),"data-test-id":"instances-toolbar-security-button",children:[i?(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",className:`${s}__security-button-icon`,intent:"danger",size:"16","data-test-id":"instances-toolbar-security-button-vulnerable-icon"}):t||n?(0,P.jsx)(be,{name:"lock-closed",className:`${s}__security-button-icon`,size:"16"}):null,(0,P.jsx)(qd,{content:"list.instances.buttonSecurity"})]})}renderDetachToolbarButton(){const{selection:e}=this.state;return(0,P.jsx)(Be,{onClick:()=>this.handleBulkDetach(e),icon:this.props.isDetachUnpaid?"lock-closed":null,disabled:this.props.isDetachUnpaid,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonDetach"}),children:(0,P.jsx)(qd,{content:"list.instances.buttonDetach"})})}renderRemoveToolbarButton(){return(0,P.jsx)(Be,{onClick:this.handleBulkRemove,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonRemove"}),icon:this.props.isRemoveUnpaid?"lock-closed":"cross-mark",disabled:this.props.isRemoveUnpaid,children:(0,P.jsx)(qd,{content:"list.instances.buttonRemove"})})}renderConnectRemoteAgentInstanceToolbarButton(){return this.props.isRemoteWptAgentAvailable?(0,P.jsx)(Be,{onClick:this.handleShowConnectRemoteAgentInstanceDrawer,tooltip:(0,P.jsx)(qd,{content:"list.instances.hintButtonConnectRemoteAgentInstance"}),"data-test-id":"connect-instance-open-button",children:(0,P.jsx)(qd,{content:"list.instances.buttonConnectRemoteAgentInstance"})}):null}renderSortToolbarGroup(){return(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"toolbar.sort.title"}),children:(0,P.jsx)(Mn,{menu:(0,P.jsx)(qs,{children:this.getSortDropdownMenuItems()}),children:(0,P.jsx)(Be,{caret:!0,children:(0,P.jsx)(qd,{content:"toolbar.sort.title"})})})},"toolbarSortAction")}renderFilterToolbarGroup(){const{filterCounters:e}=this.state,{filter:t}=this.props,n=(0,P.jsxs)(Be,{caret:!0,icon:(0,P.jsx)(be,{name:this.props.filter===vq?bM("filter"):bM("filter-check-mark")}),children:[(0,P.jsx)(qd,{content:"toolbar.filter.title"}),t!==vq&&t?(0,P.jsxs)(P.Fragment,{children:[": ",(0,P.jsx)(qd,{content:`toolbar.filter.shortNames.${t}`})]}):""]});return(0,P.jsx)(Ii,{title:(0,P.jsx)(qd,{content:"toolbar.filter.title"}),children:(0,P.jsx)(Mn,{menu:(0,P.jsx)(qs,{children:this.getFilterDropdownMenuItems(e)}),children:t!==vq&&t?(0,P.jsx)(ke,{label:(0,P.jsx)(we,{intent:"danger",children:e[t]}),children:n}):n})},"toolbarFilterAction")}renderToolbarGroups(){const{installations:e,isInstallButtonAvailable:t}=this.props,n=null!==e&&e.length>1,s=null!==e&&e.some((e=>e.features.security.available));return[t?this.renderInstallToolbarGroup():null,this.props.urls.importUrl?this.renderImportToolbarGroup():null,(0,P.jsxs)(Ii,{title:(0,P.jsx)(qd,{content:"list.instances.collapsedToolbarActions"}),children:[this.renderConnectRemoteAgentInstanceToolbarButton(),this.renderScanToolbarButton(),this.renderUpdatesToolbarButton(),s&&this.renderSecurityToolbarButton(),this.renderDetachToolbarButton(),this.renderRemoveToolbarButton()]},"collapsibleToolbarGroup"),(0,P.jsx)(ui,{},"toolbarMainToolbarExpander"),n?this.renderFilterToolbarGroup():null,n?this.renderSortToolbarGroup():null]}renderInstancesUpdatesDrawer(){return(0,P.jsx)(aY,{title:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.drawerTitle"}),subtitle:(0,P.jsx)(qd,{content:"list-ui.instancesUpdates.drawerSubTitle"}),isOpen:this.state.showInstancesUpdatesDrawer,onClose:this.handleToggleInstancesUpdatesDrawer,"data-type":"instances-updates",children:(0,P.jsx)(Mq,{selectedInstancesIds:this.state.selection})})}render(){const{dialog:e,nativeAssets:t,items:n,showedItems:s,isCloneDrawerOpen:i,isSyncDrawerOpen:a,isUpdatesDrawerOpen:r,checkSecurity:o,selectedInstanceId:l,selectedInstanceIdCloning:c,selectedInstanceIdSyncing:u,selectedInstanceIdSecuring:d,selectedInstanceIdUpdating:p,selectedDomainNameForInstallation:h,selectedInstancesIdsForSecuring:m,openUpdatesType:f,isUpdateSettingsFormOpen:g,showInstancesSecurityDrawer:b,showInstanceInstallDrawer:v,showInstallationCompletedDialog:y,selection:x,isConnectRemoteAgentInstanceDrawerVisible:_,expandedRows:S,showSynchronizeSiteUrlDialogForInstanceId:w,currentPage:k,pageSize:j,isRefreshing:T,isActionLogDrawerVisible:C,showActionLogDrawerForInstanceId:D,isBackupDrawerVisible:O,showBackupDrawerForInstanceId:I,initialShowAdminSettingsDrawer:M,showInitialShowAdminSettingsDrawerForInstanceId:L,isCheckWordPressIntegrityDialogVisible:A,showCheckWordPressIntegrityDialogForInstanceId:E,securityDrawerActiveTab:R,instancesSecurityDrawerActiveTab:U,isSmartPhpUpdateDrawerVisible:N,showSmartPhpUpdateDrawerForInstanceId:F,isVirtualPatchingUpsellDialogVisible:Y,showVirtualPatchingUpsellDialogForInstallationId:H,isVirtualPatchingLicenseInfoDrawerVisible:B,showVirtualPatchingLicenseInfoDrawerForInstallation:V}=this.state,{filter:$,baseClassName:W,installations:z}=this.props;let q=null;t.isOpen&&(q=(this.props.installations||[]).find((e=>e.id===t.installationId)));const G=n.length,K=x.length;return(0,P.jsxs)(lj,{activeTab:nj,children:[this.state.isLoading?(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"list.instances.loading"})}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(Mi,{children:this.renderToolbarGroups()}),(0,P.jsx)(Qr,{className:W,columns:this.getColumns(),data:s,rowKey:"id",renderRowBody:e=>{const t=this.getInstallationFromProps(e.id);return t?(0,P.jsx)(rq,{installation:t,isLoading:this.state.disabledInstancesSet.has(t.id),isCloneDrawerOpen:i&&t.id===c,onOpenCloneDrawer:this.handleOpenCloneDialog,onCloseCloneDrawer:this.handleCloseCloneDrawer,isSyncDrawerOpen:a&&t.id===u,onOpenSyncDrawer:this.handleOpenSyncDialog,onCloseSyncDrawer:this.handleCloseSyncDrawer,showSecurityForm:o&&t.id===d,onOpenSecurityDialog:this.handleOpenSecurityDialog,onCloseSecurityDialog:this.handleCloseSecurityDialog,showUpdates:r&&t.id===p,openUpdatesType:f,isUpdateSettingsFormOpen:g&&t.id===p,onOpenUpdatesDialog:(e,n)=>this.handleOpenUpdatesDialog(t.id,e,n),onCloseUpdatesDialog:this.handleCloseUpdatesDialog,onOpenUpdatesSettingsDialog:this.handleOpenUpdatesSettingsDialog,onCloseUpdatesSettingsDialog:this.handleCloseUpdatesSettingsDialog,showSynchronizeSiteUrlDialog:t.id===w,onCloseSynchronizeSiteUrlDialog:this.handleCloseSynchronizeSiteUrlDialog,onDetach:()=>this.handleBulkDetach([t.id]),onRefresh:()=>this.handleRefresh(t.id),onSwitchPhpHandler:(e,t)=>this.handleSwitchPhpHandler(e,t),onOpenNativeAssets:this.handleOpenNativeAssets,onEnableInstances:this.handleRemoveInstanceFromDisabledInstancesSet,onDisableInstances:this.handleAddInstanceToDisabledInstancesSet,isSelected:t.id===l,onSetSelectedInstanceAnchor:this.handleSetSelectedInstanceAnchor,isActionLogDrawerVisible:C&&t.id===D,onOpenActionLogDrawer:()=>this.handleOpenActionLogDrawer(t.id),onCloseActionLogDrawer:this.handleCloseActionLogDrawer,isBackupDrawerVisible:O&&t.id===I,onOpenBackupDrawer:()=>this.handleOpenBackupDrawer(t.id),onCloseBackupDrawer:this.handleCloseBackupDrawer,initialShowAdminSettingsDrawer:M&&t.id===L,isCheckWordPressIntegrityDialogVisible:A&&t.id===E,onOpenCheckWordPressIntegrityDialog:()=>this.handleOpenCheckWordPressIntegrityDialog(t.id),onCloseCheckWordPressIntegrityDialog:this.handleCloseCheckWordPressIntegrityDialog,securityDrawerActiveTab:R,isSmartPhpUpdatesDrawerOpen:N&&F===t.id,onOpenSmartPhpUpdatesDrawer:()=>this.handleOpenSmartPhpUpdatesDrawer(t.id),onCloseSmartPhpDrawer:()=>this.handleCloseSmartPhpUpdatesDrawer(),onOpenVirtualPatchingUpsellDialog:e=>this.handleOpenVirtualPatchingUpsellDialog(t.id,e),onOpenVirtualPatchingLicenseInfoDrawer:()=>this.handleOpenVirtualPatchingLicenseInfoDrawer(t.id)},t.id):(0,P.jsx)("span",{},`removed-${e.id}`)},expandedRows:S,onExpandedRowsChange:this.handleOnExpandedRowsChange,selection:x,onSelectionChange:this.handleSelection,emptyViewMode:"all",emptyView:this.renderEmptyView(),loadingRows:this.getLoadingRowsAsArray(),totalRows:G,pagination:(0,P.jsx)(si,{total:Math.ceil(G/j),current:k,onSelect:this.handleOnSelectPage,itemsPerPage:j,onItemsPerPageChange:this.handleSelectItemsPerPage,itemsPerPageOptions:[10,25,50,100,"all"],"data-test-id":"pagination"}),loading:T,locale:{selectAll:(0,P.jsx)(qd,{content:"instancesList.selectAll"}),deselectAll:(0,P.jsx)(qd,{content:"instancesList.deselectAll"}),all:(0,P.jsx)(qd,{content:"instancesList.all"}),totalRows:(0,P.jsx)(qd,{content:"instancesList.totalRows",params:{totalRows:G}}),selectedRows:(0,P.jsx)(qd,{content:"instancesList.selectedRows",params:{selectedRows:(0,P.jsx)(ei,{bold:!0,children:K}),totalRows:G}})}}),$!==vq&&n.length>1&&(0,P.jsx)("div",{style:{marginTop:10},children:(0,P.jsx)(Be,{onClick:()=>this.filterByField(vq),intent:"primary",children:(0,P.jsx)(qd,{content:"toolbar.filter.clearFilterButton"})})}),(0,P.jsx)(Ea,{isOpen:e.isOpen,title:e.title,buttons:e.buttons,size:"sm",onClose:this.handleCloseDialog,"data-test-id":Gb,children:e.content}),t.isOpen&&(0,P.jsx)(dq,{installation:q,type:t.type,onClose:this.handleCloseNativeAssets}),(0,P.jsx)(IA,{isOpen:b,onClose:this.handleCloseInstancesSecurityDrawer,installationsIds:m,activeTab:U,onOpenVirtualPatchingUpsellDialog:this.handleOpenVirtualPatchingUpsellDialog}),(0,P.jsx)(PG,{installation:(null==z?void 0:z.find((e=>e.id===H)))||null,isOpen:Y,onOpen:this.handleOpenVirtualPatchingUpsellDialog,onClose:this.handleCloseVirtualPatchingUpsellDialog,uatAction:this.state.virtualPatchingUpsellDialogUatAction,onOpenLicenseInfoDrawer:this.handleOpenVirtualPatchingLicenseInfoDrawer}),(0,P.jsx)(FG,{installation:(null==z?void 0:z.find((e=>e.id===V)))||null,isOpen:B,onClose:this.handleCloseVirtualPatchingLicenseInfoDrawer,onOpenUpsellDialog:this.handleOpenVirtualPatchingUpsellDialog}),this.renderInstancesUpdatesDrawer()]}),(0,P.jsx)(Qq,{isOpen:v,selectedDomain:h,onClose:this.handleToggleInstanceInstallDrawer,onBeforeInstallation:this.handleBeforeInstallation}),(0,P.jsxs)(Ea,{title:(0,P.jsx)(qd,{content:"common.installation-completed.title"}),size:"sm",isOpen:y,onClose:this.handleCloseInstallationCompletedDialog,cancelTitle:(0,P.jsx)(qd,{content:"common.installation-completed.buttonNo"}),buttons:(0,P.jsx)(Be,{onClick:()=>{l&&this.handleOpenNativeAssets(l,vp),this.handleCloseInstallationCompletedDialog()},"data-test-id":"install-plugins-button",children:(0,P.jsx)(qd,{content:"common.installation-completed.buttonYes"})}),children:[(0,P.jsx)(mi,{children:(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"common.installation-completed.description"})})}),(0,P.jsx)(mi,{children:(0,P.jsx)(qd,{content:"common.installation-completed.hint"})})]}),(0,P.jsx)(uG,{isOpen:_,onClose:this.handleHideConnectRemoteAgentInstanceDrawer})]})}}VG.defaultProps={installations:null,selectedInstanceId:null,expandedInstanceId:null,lastInstalledInstanceId:null,tasks:[],isSynchronizeSiteUrlEnabled:!1,actionLogFeatureEnabled:!1,baseClassName:`${Rp}instances-list`};const $G=mc((e=>{const t=e.app.unpaidFeatures[Cp],n=e.app.unpaidFeatures[Dp],s=e.app.unpaidFeatures[Dp],i=!!e.instances.installations&&e.instances.installations.length&&!e.instances.installations.some((e=>e.features.updates.applicable)),a=e.app.unpaidFeatures[kp],r=!!e.instances.installations&&e.instances.installations.length&&!e.instances.installations.some((e=>e.features.security.applicable)),o=e.app.unpaidFeatures[Pp];return{search:e.app.search,installations:e.instances.installations,needToUpdateInstancesList:e.instances.needToUpdateInstancesList,needToUpdateInstancesFilter:e.instances.needToUpdateInstancesFilter,filter:e.instances.filter,urls:e.app.urls,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded,isInstallButtonAvailable:e.app.options.isInstallButtonAvailable,isOwnerColumnAvailable:e.app.options.isOwnerColumnAvailable,selectedInstanceId:e.instances.selectedInstanceId,expandedInstanceId:e.instances.expandedInstanceId,keptExpandedInstanceIds:e.instances.keptExpandedInstanceIds,lastInstalledInstanceId:e.instances.lastInstalledInstanceId,isRemoteWptAgentAvailable:e.app.options.isRemoteWptAgentAvailable,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,showSmartUpdates:e.app.options.showSmartUpdates,isSmartUpdatePromoAvailable:e.app.options.isSmartUpdatePromoAvailableForInstancesScreen,isSynchronizeSiteUrlEnabled:e.app.options.isSynchronizeSiteUrlEnabled,actionLogFeatureEnabled:e.app.options.actionLogFeature,isUpdatesUnpaid:t,isDetachUnpaid:n,isRemoveUnpaid:s,isUpdatesDisabled:i,isSecurityUnpaid:a,isSecurityDisabled:r,isMultipleSiteManagementUnpaid:o,isAdmin:e.app.options.isAdmin}}),(e=>({instancesActions:kb({refresh:mS,switchPhpHandler:fS,setIsNeedToUpdateInstancesList:Nw,setIsNeedToUpdateInstancesFilter:Fw,remove:bS,detach:_S,getInstancesData:JS,scan:FS,scanFinished:HS,resetInstancesList:Vw,loadInstancesList:$w,setInstancesFilter:ow,setInstallationLabels:rk,keepExpandedInstanceId:Gw,forgetExpandedInstanceId:Kw,checkExpiredExpandedInstanceIds:Xw,getInstallationsRemoveConfiguration:US},e),actionLogActions:kb({onOpenActionLogBrowser:NH},e),appActions:kb({addWarningMessage:Gg,addErrorMessage:qg,getInitialOptions:nb},e),goToUri:(t,n)=>e(hx(t,n))})))(Dj(VG)),WG=mc((e=>({purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl,publicUrl:e.app.urls.publicUrl})))((({purchaseDeluxeGuardianUrl:e,publicUrl:t,onClose:n,baseClassName:s=`${Rp}vpatches-banner`})=>{const[i,a]=(0,M.useState)(!1);return(0,P.jsx)("div",{className:s,children:(0,P.jsx)(hi,{title:(0,P.jsx)(Ds,{level:3,children:(0,P.jsx)(qd,{content:"banner.virtualPatches.title"})}),titleAddon:(0,P.jsx)(ye,{icon:"cross-mark",onClick:n}),image:(0,P.jsx)(be,{src:`${t}images/virtual-patches-banner.png`,size:"192"}),children:i?(0,P.jsx)(ul,{children:(0,P.jsx)(qd,{content:"banner.virtualPatches.whatToDoNext",unsafe:!0})}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ul,{children:(0,P.jsx)(qd,{content:"banner.virtualPatches.promo.paragraph1"})}),(0,P.jsx)(ul,{children:(0,P.jsx)(qd,{content:"banner.virtualPatches.promo.paragraph2"})}),(0,P.jsx)(ul,{children:(0,P.jsx)(Be,{intent:"primary",onClick:()=>{a(!0),window.open(e)},size:"lg",children:(0,P.jsx)(qd,{content:"banner.virtualPatches.promo.buttonBuy"})})})]})})})}));class zG extends M.Component{constructor(){super(...arguments),this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED="alert-cpanel-cloud-linux-6-deprecated",this.ALERT_PLESK_18_0_40_DEPRECATED="alert-plesk-18-0-40-deprecated",this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE="alert-whm-virtual-patches-feature-available",this.renderWhmVirtualPatchesFeatureAvailable=()=>(0,P.jsx)(WG,{onClose:()=>this.props.onCloseAlert(this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE)},this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE)}renderAlert(e){return e===this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED?this.renderCpanelCloudLinux6DeprecatedAlert():e===this.ALERT_PLESK_18_0_40_DEPRECATED?this.renderPlesk18040DeprecatedAlert():e===this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE?this.renderWhmVirtualPatchesFeatureAvailable():null}renderCpanelCloudLinux6DeprecatedAlert(){return(0,P.jsx)(xe,{intent:"warning",onClose:()=>this.props.onCloseAlert(this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED),children:(0,P.jsx)(qd,{content:"globalAlert.cpanelCloudLinux6Deprecated"})},this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED)}renderPlesk18040DeprecatedAlert(){return(0,P.jsx)(xe,{intent:"warning",onClose:()=>this.props.onCloseAlert(this.ALERT_PLESK_18_0_40_DEPRECATED),children:(0,P.jsx)(qd,{content:"globalAlert.plesk18040Deprecated",params:{link:(0,P.jsx)("a",{href:"/admin/update/product",target:"_blank",children:(0,P.jsx)(qd,{content:"globalAlert.plesk18040Deprecated.updateLink"})})}})},this.ALERT_PLESK_18_0_40_DEPRECATED)}render(){const{globalAlerts:e}=this.props;return(0,P.jsx)("div",{"data-test-id":"global-alerts",children:e.map((e=>this.renderAlert(e)))})}}const qG=zG;class GG extends M.Component{constructor(e){super(e),this.startPollingBackgroundTasks=()=>{const{tasks:e,pollBackgroundTasks:t,fetchBackgroundTask:n}=this.props;try{Jsw&&Jsw.Observer&&Jsw.Observer.append((t=>{"done"===t.status&&!e.some((e=>e.id===Number(t.id)))&&t.type.endsWith(Q_)&&n(zf.getTaskData,t.id,Q_)}),"plesk:taskComplete")}catch(e){}if(0===e.length)return;const s=e.filter((e=>!qD(e)));0!==s.length&&t(s)},this.setApiInitialized=()=>this.setState({isApiInitialized:!0}),this.renderFlashMessages=()=>{const{flashMessages:e,closeFlashMessage:t}=this.props;if(0===e.length)return null;const n=[];return e.forEach(((e,s)=>{n.push((0,P.jsx)(xe,{intent:e.status,onClose:e.closable?()=>t(s):void 0,children:(0,P.jsx)("span",{dangerouslySetInnerHTML:{__html:wC()(e.message)}})},e.message))})),n},this.state={isApiInitialized:!1}}componentDidMount(){const{urls:e,options:t,addErrorMessage:n,pathname:s,isWebspaceContext:i}=this.props;window.WPT_INITIAL_ROUTE_PATHNAME||(window.WPT_INITIAL_ROUTE_PATHNAME=s),If(e.apiUrl),Mf(n);let a=null;t.hasOwnProperty("isPerformanceTestingFrontendEnabled")&&!0===t.isPerformanceTestingFrontendEnabled&&(a={endpoint:t.performanceTestingEndpoint,key:t.performanceTestingKey,type:t.performanceTestingType,initialInstancesCount:t.performanceTestingInitialInstancesCount}),Lf(a),Yg(e.restApiUrl,n,i),this.setApiInitialized(),this.startPollingBackgroundTasks()}render(){const{isApiInitialized:e}=this.state,{baseClassName:t,urls:n,globalAlerts:s,closeGlobalAlert:i}=this.props;return e?(0,P.jsxs)("div",{className:t,children:[(0,P.jsx)(qG,{globalAlerts:s,onCloseAlert:i}),(0,P.jsx)(NN,{}),this.renderFlashMessages(),(0,P.jsx)(YN,{}),(0,P.jsxs)(Nc,{children:[(0,P.jsx)(Uc,{path:`${n.publicUrl}public/index.php`,render:e=>(0,P.jsx)(EN,{})}),(0,P.jsx)(Uc,{path:`${gT}/:params*`,render:e=>(0,P.jsx)($G,Object.assign({},e))}),(0,P.jsx)(Uc,{path:"/servers/:params*",render:e=>(0,P.jsx)(sN,Object.assign({},e))}),(0,P.jsx)(Uc,{path:"/plugins/:params*",render:e=>(0,P.jsx)(BA,Object.assign({},e))}),(0,P.jsx)(Uc,{path:"/themes/:params*",render:e=>(0,P.jsx)(bE,Object.assign({},e))}),(0,P.jsx)(Uc,{path:"/sets/:params*",render:e=>(0,P.jsx)(YR,Object.assign({},e))}),!1,(0,P.jsx)(Uc,{path:"*",render:e=>(0,P.jsx)(RN,{})})]})]}):(0,P.jsx)(Rn,{text:(0,P.jsx)(qd,{content:"general-ui.initializingApplication"})})}}GG.defaultProps={globalAlerts:[],flashMessages:[],baseClassName:`${Rp}app-container`,isWebspaceContext:!1};const KG=mc((e=>({tasks:e.backgroundTasks.tasks,urls:e.app.urls,options:e.app.options,globalAlerts:e.app.globalAlerts,flashMessages:e.app.flashMessages,pathname:e.router.location.pathname,isWebspaceContext:e.app.options.isWebspaceContext})),{closeFlashMessage:sb,addErrorMessage:qg,pollBackgroundTasks:eP,fetchBackgroundTask:JD,closeGlobalAlert:ib})(Fc(GG));function XG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}const QG=function(e){return function(t){return function(t){return function(n){if(n.type!==Wc)return t(n);var s,i=n.payload,a=i.method,r=i.args;e[a].apply(e,function(e){if(Array.isArray(e))return XG(e)}(s=r)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return XG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XG(e,t):void 0}}(s)||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.")}())}}}},JG=e=>{const t={message:null,search:"",unpaidFeatures:{},flashMessages:[],cpanel:{},licenseInfo:{virtualPatches:null},options:Object.assign({},e.options),urls:{importUrl:"",debugCodexUrl:"",featuresBuyLinks:{clone:"",sync:"",secure:"",sets:"",smart_update:"",update:"",wp_toolkit:"",multiple_sites_management:"",vulnerability:""},premiumFeaturesUrl:"",purchaseDeluxeUrl:"",purchaseDeluxeGuardianUrl:"",purchaseWordPressToolkitUrl:"",upgradePleskUrl:"",defaultAssetImageUrl:"",publicUrl:"",baseUrl:"",apiUrl:"",restApiUrl:"",upgradingInstanceInstructionsUrl:"",checkWordPressIntegrityWordpressOrgUrl:"",updatePleskUrl:"",virtualPatchingCustomerPortalUrl:""},settings:{},globalAlerts:[],buildMeta:{},premiumUsers:void 0,isAuxiliaryUser:!1};return e.urls&&(t.urls=Object.assign({},e.urls)),e.unpaidFeatures&&(t.unpaidFeatures=Object.assign({},e.unpaidFeatures)),e.settings&&(t.settings=Object.assign({},e.settings)),e.buildMeta&&(t.buildMeta=Object.assign({},e.buildMeta)),e.isAuxiliaryUser&&(t.isAuxiliaryUser=e.isAuxiliaryUser),e.flashMessages&&(t.flashMessages=[...e.flashMessages]),e.globalAlerts&&(t.globalAlerts=[...e.globalAlerts]),e.licenseInfo&&(t.licenseInfo=e.licenseInfo),(e=t,n)=>{switch(n.type){case Bp:{const{intent:t,message:s}=n;return Object.assign(Object.assign({},e),{message:{intent:t,message:s}})}case $p:return Object.assign(Object.assign({},e),{search:n.search});case Vp:return Object.assign(Object.assign({},e),{message:null});case MC:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isRemoteWptBetaDialogVisible:!1})});case Wp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForInstancesScreen:!1})});case zp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForUpdatesScreen:!1})});case qp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:!1})});case Gp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),n.options),urls:Object.assign(Object.assign({},e.urls),n.urls)});case Kp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{changelog:n.changelog})});case Xp:return Object.assign(Object.assign({},e),{flashMessages:e.flashMessages.filter(((e,t)=>t!==n.index))});case Jp:return Object.assign(Object.assign({},e),{globalAlerts:e.globalAlerts.filter((e=>e!==n.alertId))});case dx:return Object.assign(Object.assign({},e),{cpanel:Object.assign(Object.assign({},e.cpanel),{applicationUri:n.applicationUri,accountUsername:n.accountUsername})});case px:return Object.assign(Object.assign({},e),{cpanel:Object.assign(Object.assign({},e.cpanel),{applicationUri:null,accountUsername:null})});case Qp:return Object.assign(Object.assign({},e),{premiumUsers:n.premiumUsers});case Lb:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{pluginsBlocklistFeatureSettings:Object.assign(Object.assign({},e.options.pluginsBlocklistFeatureSettings),{pluginsList:n.settings.development.pluginsBlocklist.value.split(",").map((e=>e.trim())).filter((e=>!!e))})})});case Zp:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{upVotedFeatures:[...e.options.upVotedFeatures,n.featureName]})});case eh:return Object.assign(Object.assign({},e),{licenseInfo:n.info});default:return e}}},ZG=e=>{var t;const n={installations:null,installationsWithScreenshotLoading:new Set,activeTabs:new Map,pluginsV2:{},themesV2:{},filter:null,assetsToRemove:new Set,assetsToChangingStatus:new Set,needToUpdateInstancesList:!1,needToUpdateInstancesFilter:!1,isCheckingForUpdates:!1,needToSecure:0,selectedInstanceId:null,expandedInstanceId:null,keptExpandedInstanceIds:Object.keys(vx()).map((e=>parseInt(e))),lastInstalledInstanceId:null,domainsInstallationsIds:{}};return(null===(t=e.installations)||void 0===t?void 0:t.length)&&(n.installations=[...e.installations]),e.domainsInstallationsIds&&(n.domainsInstallationsIds=Object.assign({},e.domainsInstallationsIds)),(e=n,t)=>{switch(t.type){case Ay:{const{updates:n}=t,s=e=>e.filter((e=>null!==e.availableVersion)).length,i={},a={},r=(e.installations||[]).map((e=>{var t;const i=n.find((t=>t.id===e.id));return i?Object.assign(Object.assign({},e),{version:i.core.version,features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{applicable:i.applicable,availableVersion:i.core.availableVersion,autoUpdatesAvailable:i.autoUpdate.available,amountOfPluginsWithUpdates:s(i.plugins),amountOfThemesWithUpdates:s(i.themes),smart:Object.assign(Object.assign({},e.features.updates.smart),{status:i.smartUpdate.status,taskStatus:i.smartUpdate.taskStatus,applicable:i.smartUpdate.applicable})}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:i.vulnerable}),restorePoint:Object.assign(Object.assign({},null===(t=e.features)||void 0===t?void 0:t.restorePoint),i.core.restorePoint)})}):e}));return Object.assign(Object.assign({},e),{installations:r,pluginsV2:Object.assign(Object.assign({},e.pluginsV2),i),themesV2:Object.assign(Object.assign({},e.themesV2),a)})}case wy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{restorePoint:{available:e.features.restorePoint.available,restorePointTimestamp:null,previousVersion:null,version:null,errorMessage:null,displayTimestamp:null,fullSnapshot:null,message:null,sourceUrl:null}})})));return Object.assign(Object.assign({},e),{installations:n})}case xy:{const n=(e.installations||[]).map((e=>e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{screenshot:Object.assign({},t.screenshot)})));return Object.assign(Object.assign({},e),{installations:n})}case _y:{const n=new Set(e.installationsWithScreenshotLoading.values());return t.isScreenShotLoading?n.add(t.instanceId):n.delete(t.instanceId),Object.assign(Object.assign({},e),{installationsWithScreenshotLoading:n})}case ly:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{indexing:Object.assign(Object.assign({},e.features.indexing),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case ky:return Object.assign(Object.assign({},e),{needToUpdateInstancesList:t.value});case jy:return Object.assign(Object.assign({},e),{needToUpdateInstancesFilter:t.value});case cy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{nginxCaching:Object.assign(Object.assign({},e.features.nginxCaching),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case uy:{const n=(e.installations||[]).map((e=>+e.id!=+t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),t.values)})})})));return Object.assign(Object.assign({},e),{installations:n})}case dy:case py:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{wpCronTakeover:Object.assign(Object.assign({},e.features.wpCronTakeover),t.values)})})));return Object.assign(Object.assign({},e),{installations:n})}case my:{const n=(e.installations||[]).map((e=>e.id!==+t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{maintenance:Object.assign(Object.assign({},e.features.maintenance),{status:t.status})})})));return Object.assign(Object.assign({},e),{needToUpdateInstancesFilter:!0,installations:n})}case Wy:{const n=(e.installations||[]).map((e=>e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{maintenance:Object.assign(Object.assign({},e.features.maintenance),{fullMode:t.value})})})));return Object.assign(Object.assign({},e),{installations:n})}case hy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{hotlinkProtection:Object.assign(Object.assign({},e.features.hotlinkProtection),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case oy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{debug:Object.assign(Object.assign({},e.features.debug),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n,needToUpdateInstancesFilter:!0})}case by:{const n=(e.installations||[]).map((e=>{var n;return+e.id==+t.installationId&&(null===(n=e.features.updates)||void 0===n?void 0:n.smart)?Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),{taskStatus:"started"})})})}):e}));return Object.assign(Object.assign({},e),{installations:n})}case vy:{const n=(e.installations||[]).map((e=>{var n,s;return+e.id==+t.installationId&&(null===(s=null===(n=e.features)||void 0===n?void 0:n.updates)||void 0===s?void 0:s.smart)?Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),{taskStatus:xg})})})}):e}));return Object.assign(Object.assign({},e),{installations:n})}case ey:{const n=(e.installations||[]).filter((e=>!t.installationsIds.includes(e.id)));return Object.assign(Object.assign({},e),{installations:n})}case ty:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{title:t.name})));return Object.assign(Object.assign({},e),{installations:n})}case ny:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{passwordProtection:t.values})})));return Object.assign(Object.assign({},e),{installations:n})}case Sx:{const{slugs:n,installationId:s}=t,{pluginsV2:i}=e,a=i[s].filter((e=>!n.includes(e.slug)));return i[s]=[...a],Object.assign(Object.assign({},e),{pluginsV2:i})}case e_:{const{slugs:n,installationId:s}=t,{themesV2:i}=e,a=i[s].filter((e=>!n.includes(e.slug)));return i[s]=[...a],Object.assign(Object.assign({},e),{themesV2:i})}case wx:{const{slug:n,installationId:s,status:i}=t,{pluginsV2:a}=e,r=a[s].map((e=>e.slug===n?Object.assign(Object.assign({},e),{status:i}):e));return a[s]=[...r],Object.assign(Object.assign({},e),{pluginsV2:a})}case t_:{const{slug:n,installationId:s}=t,{themesV2:i}=e,a=i[s].map((e=>Object.assign(Object.assign({},e),{status:e.slug===n})));return i[s]=[...a],Object.assign(Object.assign({},e),{themesV2:i})}case ay:{const n=new Set(e.assetsToChangingStatus.values());return n.add(ep(t)),Object.assign(Object.assign({},e),{assetsToChangingStatus:n})}case ry:{const n=new Set(e.assetsToChangingStatus.values());return n.delete(ep(t)),Object.assign(Object.assign({},e),{assetsToChangingStatus:n})}case sy:{const n=new Set(e.assetsToRemove.values());return tp(t).forEach((e=>n.add(e))),Object.assign(Object.assign({},e),{assetsToRemove:n})}case iy:{const n=new Set(e.assetsToRemove.values());return tp(t).forEach((e=>n.delete(e))),Object.assign(Object.assign({},e),{assetsToRemove:n})}case Zv:{const{filter:n}=t;return Object.assign(Object.assign({},e),{filter:n})}case Ty:return Object.assign(Object.assign({},e),{installations:null,pluginsV2:{},themesV2:{}});case Py:return Object.assign(Object.assign({},e),{selectedInstanceId:t.value});case Oy:return Object.assign(Object.assign({},e),{expandedInstanceId:t.value});case Iy:return Object.assign(Object.assign({},e),{keptExpandedInstanceIds:t.keptExpandedInstanceIds});case My:return Object.assign(Object.assign({},e),{lastInstalledInstanceId:t.value});case Ey:{const n=new Map(e.activeTabs.entries());return n.delete(t.installationId),n.set(t.installationId,t.activeTab),Object.assign(Object.assign({},e),{activeTabs:n})}case Ny:{const n=(e.installations||[]).map((e=>e.id!==t.id?e:Object.assign(Object.assign({},e),{labels:t.labels})));return Object.assign(Object.assign({},e),{installations:n})}case Hy:return Object.assign(Object.assign({},e),{loginToInstanceId:t.instanceId,loginUrl:t.loginUrl,loginCredentials:t.credentials,windowTarget:t.windowTarget});case By:return Object.assign(Object.assign({},e),{loginToInstanceId:null,loginUrl:null,loginCredentials:null,windowTarget:null});case kx:{const{pluginsSlugs:n,installationId:s,value:i}=t,{pluginsV2:a}=e,r=a[s].map((e=>n.includes(e.slug)?Object.assign(Object.assign({},e),{autoUpdates:i}):e));return a[s]=[...r],Object.assign(Object.assign({},e),{pluginsV2:a})}case n_:{const{themesSlugs:n,installationId:s,value:i}=t,{themesV2:a}=e,r=a[s].map((e=>n.includes(e.slug)?Object.assign(Object.assign({},e),{autoUpdates:i}):e));return a[s]=[...r],Object.assign(Object.assign({},e),{themesV2:a})}case Ry:{const{installations:n}=t;return Object.assign(Object.assign({},e),{installations:n})}case Uy:{const{installations:n,installationsIds:s}=t,i=new Map;n.forEach((e=>{i.set(e.id,e)}));const a=new Map;s.forEach((e=>{e=parseInt(`${e}`),i.has(e)||a.set(e,!0)}));const r=(e.installations||[]).reduce(((e,t)=>{const n=i.get(t.id);return n?(i.delete(t.id),e.push(n)):a.has(t.id)||e.push(t),e}),[]);return i.forEach((e=>{r.push(e)})),Object.assign(Object.assign({},e),{installations:r})}case jx:{const{installationId:n,data:s}=t,{pluginsV2:i}=e;return i[n]=s,Object.assign(Object.assign({},e),{pluginsV2:i})}case Tx:{const{installationId:n,data:s}=t;let{pluginsV2:i}=e;const a=[...i[n]||[],s];return i=Object.assign(Object.assign({},i),{[n]:a}),Object.assign(Object.assign({},e),{pluginsV2:i})}case s_:{const{installationId:n,data:s}=t,{themesV2:i}=e;return i[n]=s,Object.assign(Object.assign({},e),{themesV2:i})}case i_:{const{installationId:n,data:s}=t;let{themesV2:i}=e;const a=[...i[n]||[],s];return i=Object.assign(Object.assign({},i),{[n]:a}),Object.assign(Object.assign({},e),{themesV2:i})}case"instances/RESET_ASSETS_CACHE_FOR_INSTALLATIONS":{const n={},s={},i=t.installationsIds.map((e=>`${e}`));return Object.keys(e.pluginsV2).forEach((t=>{i.includes(t)||(n[t]=e.pluginsV2[t])})),Object.keys(e.themesV2).forEach((t=>{i.includes(t)||(s[t]=e.themesV2[t])})),Object.assign(Object.assign({},e),{pluginsV2:n,themesV2:s})}case zy:{const n=(e.installations||[]).map((e=>{if(void 0===t.vulnerabilityStatuses[e.id])return e;const n=t.vulnerabilityStatuses[e.id];return Object.assign(Object.assign({},e),{version:n.version,features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{availableVersion:n.availableVersion,amountOfPluginsWithUpdates:n.amountOfPluginsWithUpdates,amountOfThemesWithUpdates:n.amountOfThemesWithUpdates}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:n.vulnerable})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Qy:{const n=(e.installations||[]).map((e=>{var n,s;return e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.updates),{php:Object.assign(Object.assign({},null===(s=e.features)||void 0===s?void 0:s.updates.php),{taskStatus:t.taskStatus})})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Cx:{const{pluginsV2:n}=e,s=Object.keys(n);return Object.keys(t.pluginsVulnerabilityStatuses).forEach((e=>{if(s.includes(e)){const s=t.pluginsVulnerabilityStatuses[e],i=Object.keys(s),a=n[e].map((e=>i.includes(e.slug)?Object.assign(Object.assign({},e),{vulnerable:s[e.slug].vulnerable,version:s[e.slug].version,availableVersion:s[e.slug].availableVersion}):e));n[e]=[...a]}})),Object.assign(Object.assign({},e),{pluginsV2:n})}case a_:{const{themesV2:n}=e,s=Object.keys(n);return Object.keys(t.themesVulnerabilityStatuses).forEach((e=>{if(s.includes(e)){const s=t.themesVulnerabilityStatuses[e],i=Object.keys(s),a=n[e].map((e=>i.includes(e.slug)?Object.assign(Object.assign({},e),{vulnerable:s[e.slug].vulnerable,version:s[e.slug].version,availableVersion:s[e.slug].availableVersion}):e));n[e]=[...a]}})),Object.assign(Object.assign({},e),{themesV2:n})}case $y:{const n=(e.installations||[]).map((e=>{var n;return e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{credentials:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.credentials),{available:t.hasAdminCredentials})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Bx:{let n=!1;const s=(e.installations||[]).map((e=>{const s=t.installationSecurityStatuses.find((t=>+t.id==+e.id));return s?(n=!0,Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{security:Object.assign(Object.assign({},e.features.security),{status:s.securityStatus}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:s.vulnerable})})})):e}));return n?Object.assign(Object.assign({},e),{installations:s}):e}case Ky:{const n=(e.installations||[]).map((e=>{var n,s,i,a,r;return e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{php:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.php),{handler:Object.assign(Object.assign({},null===(i=null===(s=e.features)||void 0===s?void 0:s.php)||void 0===i?void 0:i.handler),t.phpHandler),eoled:null!==(a=t.phpHandler.eoled)&&void 0!==a?a:null===(r=e.features)||void 0===r?void 0:r.php.eoled})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Jy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{integrity:Object.assign(Object.assign({},e.features.integrity),{available:t.available})})})));return Object.assign(Object.assign({},e),{installations:n})}case Zy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{vulnerabilityFiltering:Object.assign(Object.assign({},e.features.vulnerabilityFiltering),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case ex:{const{domainsInstallationsIds:n}=e,{domainId:s,installationId:i}=t;return n.hasOwnProperty(s)||(n[s]=[]),n[s]=[...new Set([...n[s],i])],Object.assign(Object.assign({},e),{domainsInstallationsIds:n})}case tx:{let n=null;t.subscriptionInfo&&(n={status:t.subscriptionInfo.status});const s=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{virtualPatches:Object.assign(Object.assign({},e.features.virtualPatches),{subscription:n})})})));return Object.assign(Object.assign({},e),{installations:s})}default:return e}}};let eK={smartUpdateResults:{},instanceLink:null,instanceId:null,instanceUrl:null};const tK=e=>(e.smartUpdateResultsPublic&&(eK=Object.assign({},e.smartUpdateResultsPublic)),(e=eK,t)=>e),nK=e=>{const t={installingAssets:new Set};return(e=t,n)=>{switch(n.type){case qC:return e;case GC:{const t=new Set(e.installingAssets.values());return tp(n).forEach((e=>t.add(e))),Object.assign(Object.assign({},e),{installingAssets:t})}case KC:{const t=new Set(e.installingAssets.values());return t.delete(ep(n)),Object.assign(Object.assign({},e),{installingAssets:t})}default:return e}}},sK=e=>{const t={list:null,instances:null,sets:null};return void 0!==e.plugins&&(t.list=[...e.plugins.list],t.instances=[...e.plugins.instances],e.plugins.sets?t.sets=[...e.plugins.sets]:t.sets=[]),(e=t,n)=>{switch(n.type){case Oj:return Object.assign(Object.assign({},e),{list:null,instances:null,sets:null});case Pj:return Object.assign(Object.assign({},e),{list:n.plugins,instances:n.instances,sets:n.sets});default:return((e,t)=>{if(null===e.list)return e;if(t.type===Ij){let n=e.list.filter((e=>!ZN(t.pluginsToUpdate,e)));return n=[...t.newPluginsData,...n],Object.assign(Object.assign({},e),{list:n})}return e})(e,n)}}},iK=e=>{const t={list:null,instances:null,sets:null};return void 0!==e.themes&&(t.list=[...e.themes.list],t.instances=[...e.themes.instances],e.themes.sets?t.sets=[...e.themes.sets]:t.sets=[]),(e=t,n)=>{switch(n.type){case ZC:return Object.assign(Object.assign({},e),{list:null,instances:null,sets:null});case JC:return Object.assign(Object.assign({},e),{list:n.themes,instances:n.instances,sets:n.sets});default:return((e,t)=>{if(null===e.list)return e;if(t.type===eD){const n=t.newThemesData.map((e=>e.instances.filter((({isAssetActive:e})=>e)).map((({id:e})=>e)))).flat();let s=e.list.filter((e=>!ZN(t.themesToUpdate,e))).map((e=>(e.instances=e.instances.map((e=>(n.includes(e.id)&&(e.isAssetActive=!1),e))),e)));return s=[...t.newThemesData,...s],Object.assign(Object.assign({},e),{list:s})}return e})(e,n)}}},aK=e=>{const t={list:null,remoteInstancesLog:{}};return void 0!==e.servers&&(t.list=[...e.servers.list]),(e=t,n)=>{switch(n.type){case TC:return Object.assign(Object.assign({},e),{list:(e.list||[]).concat(n.server)});case CC:return Object.assign(Object.assign({},e),{list:(e.list||[]).map((e=>e.id===n.server.id?n.server:e))});case OC:return Object.assign(Object.assign({},e),{list:(e.list||[]).map((e=>n.scanningServers.includes(e.id)?Object.assign(Object.assign({},e),{isScanning:!0}):e))});case"servers/SCAN_SERVERS":return e;case PC:{const t=(e.list||[]).map((e=>n.updatedServers.find((t=>t.id===e.id))||e));return Object.assign(Object.assign({},e),{list:t})}case IC:return Object.assign(Object.assign({},e),{list:n.servers});case LC:return Object.assign(Object.assign({},e),{list:null});case AC:{const t=(e.list||[]).filter((e=>!n.serverIds.includes(e.id)));return Object.assign(Object.assign({},e),{list:t})}case UC:return Object.assign(Object.assign({},e),{remoteInstancesLog:Object.assign(Object.assign({},e.remoteInstancesLog),{[n.serverId]:n.remoteInstancesLog})});case NC:return Object.assign(Object.assign({},e),{remoteInstancesLog:Object.assign(Object.assign({},e.remoteInstancesLog),{[n.serverId]:null})});default:return e}}},rK=e=>{const t={list:{}};return(e=t,n)=>{switch(n.type){case"longTask/UPDATE_LONG_TASK_DATA":if(n.longTaskData){const t=n.longTaskData.id;if(t){const s=Object.assign({},e.list);return s[t]=n.longTaskData,Object.assign(Object.assign({},e),{list:s})}}return e;case"longTask/DELETE_LONG_TASK_DATA":if(n.longTaskId&&e.list[n.longTaskId]){const t=Object.assign({},e.list);return delete t[n.longTaskId],Object.assign(Object.assign({},e),{list:t})}return e;default:return e}}},oK=e=>{const t={list:[],limits:{backupsLimit:0,backupsCount:0,backupsLimitExceeded:!1}};return(e=t,n)=>{switch(n.type){case oD:return n.backups?Object.assign(Object.assign({},e),{list:n.backups,limits:void 0===n.limits?t.limits:Object.assign(Object.assign({},n.limits),{backupsLimitExceeded:null!==n.limits.backupsLimit&&n.limits.backupsLimit-n.limits.backupsCount<=0})}):e;case lD:{const t=e.list.filter((e=>!n.fileNames.includes(e.fileName)));return Object.assign(Object.assign({},e),{list:t})}default:return e}}},lK=e=>{const t={status:Ip,drawerIsOpen:!1,messages:null,formErrors:null,settings:null};return(e=t,n)=>{switch(n.type){case Cb:return Object.assign(Object.assign({},e),{drawerIsOpen:!0});case Db:return Object.assign(Object.assign({},e),{drawerIsOpen:!1,messages:null,formErrors:null});case Pb:return Object.assign(Object.assign({},e),{status:Mp,messages:null});case Ob:return Object.assign(Object.assign({},e),{status:"loaded",messages:n.messages,settings:n.settings});case Ib:return Object.assign(Object.assign({},e),{status:Ap,messages:n.messages});case Mb:return Object.assign(Object.assign({},e),{status:Lp,messages:null,formErrors:null});case Lb:return Object.assign(Object.assign({},e),{status:Ep,settings:n.settings,messages:n.messages});case Ab:return Object.assign(Object.assign({},e),{status:"update_error",messages:n.messages,formErrors:n.formErrors});default:return e}}},cK={[N_]:[(e,t)=>{e.publicParams&&e.publicParams.installedThemes&&t(qA(e.publicParams.installedThemes.map((e=>({name:e.name}))),(()=>t(QA()))))}],[F_]:[(e,t)=>{e.publicParams&&e.publicParams.uninstalledThemes&&t(qA(e.publicParams.uninstalledThemes.map((e=>({name:e.name,version:e.version}))),(()=>t(aE()))))}],[Y_]:[(e,t)=>{e.publicParams&&e.publicParams.updatedThemes&&t(qA(e.publicParams.updatedThemes.map((e=>({name:e.name}))),(()=>t(dE()))))}],[H_]:[(e,t)=>{t($A()).finally((()=>t(mE())))}],[B_]:[(e,t)=>{t($A()).finally((()=>t(lE())))}],[V_]:[(e,t)=>{e.publicParams&&e.publicParams.installedPlugins&&t(Vj(e.publicParams.installedPlugins.map((e=>({name:e.name}))),(()=>t(qj()))))}],[$_]:[(e,t)=>{e.publicParams&&e.publicParams.uninstalledPlugins&&t(Vj(e.publicParams.uninstalledPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(oT()))))}],[W_]:[(e,t)=>{e.publicParams&&e.publicParams.updatedPlugins&&t(Vj(e.publicParams.updatedPlugins.map((e=>({name:e.name}))),(()=>t(hT()))))}],[z_]:[(e,t)=>{e.publicParams&&e.publicParams.activatedPlugins&&t(Vj(e.publicParams.activatedPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(tT()))))}],[q_]:[(e,t)=>{e.publicParams&&e.publicParams.deactivatedPlugins&&t(Vj(e.publicParams.deactivatedPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(iT()))))}],[G_]:[(e,t)=>{t(Yj()).finally((()=>t(uT())))}],[K_]:[(e,t)=>{e.publicParams&&e.publicParams.pluginName&&e.publicParams.pluginVersion&&t(Vj([{name:e.publicParams.pluginName}],(()=>t(Qj()))))}],[X_]:[(e,t)=>{e.publicParams&&e.publicParams.themeName&&e.publicParams.themeVersion&&t($A()).finally((()=>t(tE())))}],[Q_]:[(e,t)=>{if(e.publicParams){const{installationId:n,domainId:s}=e.publicParams;GD(e)&&n&&t(JS({instancesIds:[n]})).then((()=>{t(Ww(n)),t(Qw(n)),t(Nw(!0))})).catch((()=>{})),e.publicParams.installSetTaskInfo&&t(Bw(e.publicParams.installSetTaskInfo)),n&&s&&t(qw(s,n))}}],[J_]:[(e,t)=>{if(e.publicParams){const{instanceId:n}=e.publicParams;GD(e)&&n&&t(JS({instancesIds:[n]})).catch((()=>{})).finally((()=>t(pk())))}}],[Z_]:[(e,t)=>{GD(e)&&t(kR())}],[eS]:[(e,t)=>{if(e.publicParams){const{sourceInstallationId:n,targetInstallationId:s,refreshTargetInstallationInUi:i,targetDomainId:a}=e.publicParams;GD(e)&&(s&&(t(Ww(s)),t(zw(s))),i&&s?t(JS({instancesIds:[s]})).catch((()=>{})).finally((()=>{n&&t(kz(n))})):n&&t(kz(n)),a&&s&&t(qw(a,s)),t(nb())),KD(e)&&n&&t(kz(n))}}],[tS]:[(e,t)=>{GD(e)&&(t((e=>e({type:"checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_FINISHED"}))),e.publicParams.installationId&&t(mS(e.publicParams.installationId)).catch((()=>{}))),KD(e)&&t((e=>e({type:"checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_FINISHED_WITH_ERRORS"})))}],[nS]:[(e,t)=>{if(GD(e)){if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n=[]}=e.publicParams;n.length>0&&t(VS(n)).catch((()=>{}))}t(Jw())}if(KD(e)){if(e.publicParams&&e.publicParams.currentlyUpdatingInstallationId){const{currentlyUpdatingInstallationId:n}=e.publicParams;n&&t(VS([n])).catch((()=>{}))}t(Zw())}}],[oS]:[(e,t)=>{if(GD(e)){if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n=[]}=e.publicParams;n.length>0&&t(VS(n)).catch((()=>{}))}t(Jw())}if(KD(e)){if(e.publicParams&&e.publicParams.currentlyUpdatingInstallationId){const{currentlyUpdatingInstallationId:n}=e.publicParams;n&&t(VS([n])).catch((()=>{}))}t(Zw())}}],[sS]:[(e,t)=>{if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n}=e.publicParams;t(VS(n)).catch((()=>{}))}GD(e)&&t(ek()),KD(e)&&t(tk())}],[aS]:[(e,t)=>{var n;if(GD(e))if(null===(n=e.publicParams)||void 0===n?void 0:n.processedInstallationsIds){const{processedInstallationsIds:n}=e.publicParams;t(p_(n)).catch((()=>{})).finally((()=>t({type:qy,task:e})))}else t({type:qy,task:e})}],[rS]:[(e,t)=>{var n;if(null===(n=e.publicParams)||void 0===n?void 0:n.installationsIds){const{installationsIds:n}=e.publicParams;t(VS(n)).catch((()=>{}))}GD(e)&&t(nk()),KD(e)&&t(sk())}],[lS]:[(e,t)=>{var n;if(null===(n=e.publicParams)||void 0===n?void 0:n.installationsIds){const{installationsIds:n}=e.publicParams;t(p_(n)).catch((()=>{})).finally((()=>t({type:Ix,task:e})))}else t({type:Ix,task:e})}],[cS]:[(e,t)=>{const n=e.publicParams.processedInstallationsIds;GD(e)&&n?(t(JS({instancesIds:n})).catch((()=>{})).finally((()=>{t({type:Lx,task:e})})),t(p_(n)).catch((()=>{}))):qD(e)&&t({type:Lx,task:e})}],[uS]:[(e,t)=>{const n=e.publicParams.processedInstallationsIds;GD(e)&&n?(t(JS({instancesIds:n})).catch((()=>{})).finally((()=>{t({type:Lx,task:e})})),t(p_(n)).catch((()=>{}))):qD(e)&&t({type:Lx,task:e})}],[iS]:[(e,t)=>{Tk(e.publicParams.installationId,e)(t)}]},uK=e=>{const t={list:null,instances:null};return void 0!==e.sets&&(t.list=[...e.sets.list],t.instances=[],e.sets.instances&&e.sets.instances.length?t.instances=[...e.sets.instances]:e.instances&&e.instances.list&&e.instances.list.length&&(t.instances=e.instances.list.map((e=>({id:e.id,name:e.name,url:e.url}))))),(e=t,n)=>{switch(n.type){case yE:return Object.assign(Object.assign({},e),{list:null,instances:null});case vE:return Object.assign(Object.assign({},e),{list:n.sets,instances:n.instances});default:return((e,t)=>{if(null===e.list)return e;switch(t.type){case xE:return Object.assign(Object.assign({},e),{list:[t.addedSet,...e.list]});case _E:return Object.assign(Object.assign({},e),{list:e.list.filter((e=>!rp(t.removedSetIds,e.id)))});case SE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{name:t.newName}):e))});case wE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{isProcessing:!0}):e))}):e))});case kE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{active:t.active,isProcessing:!1}):e))}):e))});case jE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{isProcessing:!0}):e))}):e))});case TE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{active:t.active,isProcessing:!1}):Object.assign(Object.assign({},e),{active:!1})))}):e))});case CE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[...e.plugins,...t.plugins.map((e=>Object.assign(Object.assign({},e),{active:!0})))]}):e))});case DE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[...e.themes,...t.themes]}):e))});case IE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.filter((e=>e.id.toString()!==t.pluginId.toString()))}):e))});case ME:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.filter((e=>e.id.toString()!==t.themeId.toString()))}):e))});case PE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[...e.plugins,{id:t.pluginId,name:t.pluginName,title:t.pluginTitle,isUploaded:!0}]}):e))});case OE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[...e.themes,{id:t.themeId,name:t.themeName,title:t.themeTitle,isUploaded:!0}]}):e))});case LE:return Object.assign(Object.assign({},e),{list:e.list.filter((e=>e.id.toString()!==t.setId.toString()))});case AE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[]}):e))});case EE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[]}):e))});default:return e}})(e,n)}}},dK=()=>e=>t=>(window.__wpToolkitAutotestsLastActions=window.__wpToolkitAutotestsLastActions||[],window.__wpToolkitAutotestsLastActions=window.__wpToolkitAutotestsLastActions.slice(-50),(e=>"object"==typeof e&&null!==e&&"type"in e)(t)&&window.__wpToolkitAutotestsLastActions.push(t.type),e(t)),pK=e=>{const t=[];return(e=t,n)=>{switch(n.type){case rx:{const{updates:t}=n,s=e=>Object.assign(Object.assign({},e),{core:null===e.core.availableVersion?{}:e.core,plugins:e.plugins.filter((e=>null!==e.availableVersion)),themes:e.themes.filter((e=>null!==e.availableVersion))}),i=[];return e.forEach((e=>{const n=t.find((t=>t.id===e.id));n?i.push(s(n)):i.push(e)})),t.forEach((t=>{e.some((e=>e.id===t.id))||i.push(s(t))})),[...i]}case ox:return[];case uy:return[...e.map((e=>+e.id==+n.instanceId?Object.assign(Object.assign({},e),{smartUpdate:Object.assign(Object.assign({},e.smartUpdate),n.values)}):e))];case vy:return[...e.map((e=>+e.id==+n.installationId?Object.assign(Object.assign({},e),{smartUpdate:Object.assign(Object.assign({},e.smartUpdate),{taskStatus:xg})}):e))];case gy:return[...e.map((e=>{const t=n.settings.find((t=>t.id===e.id));return t?Object.assign(Object.assign({},e),{autoUpdate:Object.assign(Object.assign({},e.autoUpdate),t)}):e}))];default:return e}}};const hK=e=>e.map((e=>{var t,n,s;const{resolveApplicable:i,checkApplicable:a,revertApplicable:r,tasks:o}=e,l=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["resolveApplicable","checkApplicable","revertApplicable","tasks"]);return Object.assign(Object.assign({},l),{resolveAndRevertAvailable:i&&r,checkSecurityTaskId:null===(t=o.check)||void 0===t?void 0:t.id,resolveSecurityTaskId:null===(n=o.resolve)||void 0===n?void 0:n.id,revertSecurityTaskId:null===(s=o.revert)||void 0===s?void 0:s.id})})),mK=e=>{const t={securityMeasures:[],securityMeasuresInstallationStatuses:[]};return(e=t,n)=>{switch(n.type){case Rx:return Object.assign(Object.assign({},e),{securityMeasures:n.securityMeasures});case Ux:return n.securityMeasuresInstallationStatuses?Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:hK(n.securityMeasuresInstallationStatuses)}):e;case Nx:{if(!n.securityMeasuresInstallationStatuses)return e;const t=hK(n.securityMeasuresInstallationStatuses),s=[],i=e.securityMeasuresInstallationStatuses.map((e=>{const n=t.find((t=>t.id===e.id));return n?(s.push(n.id),n):e}));return t.forEach((e=>{s.includes(e.id)||i.push(e)})),Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:i})}case Fx:{if(!n.installationsIds)return e;const t=e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{checkSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}));return Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:t})}case Yx:{if(!n.installationsIds)return e;const t=e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{resolveSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}));return Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:t})}case Hx:{if(!n.installationsIds)return e;const t=e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{revertSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}));return Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:t})}default:return e}}},fK=e=>{const t={installationsVulnerabilityStatuses:[],runningCheckVulnerabilitiesTasks:[],vulnerabilityMitigationsUpdatingStatuses:[],virtualPatchesUpdatingStatuses:[]};return(e=t,n)=>{switch(n.type){case Dx:return n.installationsVulnerabilityStatuses?Object.assign(Object.assign({},e),{installationsVulnerabilityStatuses:n.installationsVulnerabilityStatuses}):e;case Px:{if(!n.installationsVulnerabilityStatuses)return e;const t=[],s=void 0===e.installationsVulnerabilityStatuses?n.installationsVulnerabilityStatuses.map((e=>(t.push(e.id),e))):e.installationsVulnerabilityStatuses.map((e=>{const s=n.installationsVulnerabilityStatuses.find((t=>t.id===e.id));return s?(t.push(s.id),s):e}));return n.installationsVulnerabilityStatuses.forEach((e=>{t.includes(e.id)||s.push(e)})),Object.assign(Object.assign({},e),{installationsVulnerabilityStatuses:s})}case Ox:{const t=[...e.vulnerabilityMitigationsUpdatingStatuses];return n.vulnerabilities.forEach((e=>{t.push({vulnerabilityId:e.vulnerabilityId,mitigations:e.mitigations,installationIds:e.installationsIds,task:n.task})})),Object.assign(Object.assign({},e),{vulnerabilityMitigationsUpdatingStatuses:t})}case Ix:return Object.assign(Object.assign({},e),{vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilityMitigationsUpdatingStatuses.filter((e=>e.task.id!==n.task.id))});case Mx:{const t=[...e.virtualPatchesUpdatingStatuses];return t.push({installationIds:n.installationIds,task:n.task}),Object.assign(Object.assign({},e),{virtualPatchesUpdatingStatuses:t})}case Lx:{let t=[...e.virtualPatchesUpdatingStatuses];return t=t.filter((e=>e.task.id!==n.task.id)),Object.assign(Object.assign({},e),{virtualPatchesUpdatingStatuses:t})}case Gy:{const t=[...e.runningCheckVulnerabilitiesTasks];return t.push({task:n.task,installationsIds:n.installationsIds}),Object.assign(Object.assign({},e),{runningCheckVulnerabilitiesTasks:t})}case qy:{const t=[...e.runningCheckVulnerabilitiesTasks];return Object.assign(Object.assign({},e),{runningCheckVulnerabilitiesTasks:t.filter((e=>n.task.id!==e.task.id))})}default:return e}}};function gK(e){return({dispatch:t,getState:n})=>s=>i=>"function"==typeof i?i(t,n,e):s(i)}var bK=gK(),vK=gK,yK="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?jb:jb.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var xK=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},_K=e=>t=>{setTimeout(t,e)};function SK(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:i=!0}=e??{};let a=new xK;return t&&("boolean"==typeof t?a.push(bK):a.push(vK(t.extraArgument))),a},{reducer:n,middleware:s,devTools:i=!0,preloadedState:a,enhancers:r}=e||{};let o,l;if("function"==typeof n)o=n;else{if(!xb(n))throw new Error(`Minified Redux Toolkit error #${c=1}; visit https://redux-toolkit.js.org/Errors?code=${c} for the full message or use the non-minified dev environment for full errors. `);o=Sb(n)}var c;l="function"==typeof s?s(t):t();let u=jb;i&&(u=yK({trace:!1,..."object"==typeof i&&i}));const d=function(...e){return t=>(n,s)=>{const i=t(n,s);let a=()=>{throw new Error(gb(15))};const r={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},o=e.map((e=>e(r)));return a=jb(...o)(i.dispatch),{...i,dispatch:a}}}(...l),p=(e=>function(t){const{autoBatch:n=!0}=t??{};let s=new xK(e);return n&&s.push(((e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let i=!0,a=!1,r=!1;const o=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:_K(10):"callback"===e.type?e.queueNotification:_K(e.timeout),c=()=>{r=!1,a&&(a=!1,o.forEach((e=>e())))};return Object.assign({},s,{subscribe(e){const t=s.subscribe((()=>i&&e()));return o.add(e),()=>{t(),o.delete(e)}},dispatch(e){try{return i=!e?.meta?.RTK_autoBatch,a=!i,a&&(r||(r=!0,l(c))),s.dispatch(e)}finally{i=!0}}})})("object"==typeof n?n:void 0)),s})(d);return _b(o,a,u(..."function"==typeof r?r(p):p()))}var{assign:wK}=Object;Symbol.for("rtk-state-proxy-original");const kK=(e,t)=>({router:hu(t),app:JG(e),instances:ZG(e),smartUpdateResultsPublic:tK(e),assets:nK(),servers:aK(e),plugins:sK(e),themes:iK(e),sets:uK(e),longTasks:rK(),settings:lK(),backgroundTasks:TI(e),backup:oK(),securityMeasures:mK(),vulnerabilities:fK(),updates:pK()}),jK=(e,t)=>SK({reducer:Sb(kK(e,t)),middleware:e=>{return e({serializableCheck:!1}).concat([QG(t),(s=mD,i=ig.getTasksData,function(e){return function(t){return function(n){t(n);var a=new iP((function(){return e.getState().backgroundTasks.tasks}),(function(t){return e.dispatch({type:HD,task:t})}),(function(t){return e.dispatch({type:BD,task:t})}),i);return(VD===n.type||s.includes(n.type))&&function(e){if(a.startPolling(e),"undefined"!=typeof Jsw){var t=Jsw.getComponent("asyncProgressBarWrapper");t&&t.update()}}(n.task),!0}}}),(n=cK,e=>t=>s=>{const i=e.getState().backgroundTasks.tasks;t(s);const a=e.getState().backgroundTasks.tasks;i!==a&&a.forEach((t=>{const s=i.find((e=>e.id===t.id));if(qD(t)&&(!s||!qD(s))){const s=n[t.code];s&&s.forEach((n=>n(t,e.dispatch)))}}))}),dK]);var n,s,i}}),TK=r(6864),CK={DbUser:!0,Db:!0,ActionLog:!0},DK=mc(void 0,(e=>({instancesActions:kb({getInstallationsRemoveConfiguration:US},e),addWarningMessage:t=>e(Gg(t))})))((({installation:e,isOpen:t,onClose:n,onRemove:s,instancesActions:{getInstallationsRemoveConfiguration:i},addWarningMessage:a})=>{const[r,o]=(0,M.useState)(CK),[l,c]=(0,M.useState)(),[u,d]=(0,M.useState)(!1);return(0,M.useEffect)((()=>{t&&(d(!0),i([e.id]).then((t=>{const s=t.find((t=>t.id===e.id));s||(a((0,P.jsx)(qd,{content:"remove-confirmation.error.getConfirmationDetails"})),n()),c(s)})).catch((()=>{})).finally((()=>d(!1))))}),[i,d,e,t,a,n]),(0,P.jsx)(Ea,{isOpen:t,title:(0,P.jsx)(qd,{content:"remove-confirmation.titleSingle"}),cancelButton:{onClick:n,children:(0,P.jsx)(qd,{content:"remove-confirmation.buttonNo"})},buttons:(0,P.jsx)(Be,{onClick:()=>(()=>{const{Db:e,DbUser:t,ActionLog:i}=r,a={removeDb:e,removeUser:t,removeActionLog:i,checkShared:!1};n(),s(a)})(),"data-test-id":zb,children:(0,P.jsx)(qd,{content:"remove-confirmation.buttonYes"})}),size:"sm",onClose:n,"data-test-id":Gb,children:!l||u?(0,P.jsx)(Rn,{}):(0,P.jsx)(BN,{changeRemoveOptions:o,db:l.database,dbUser:l.user,isInstanceDatabaseDeletionAllowed:l.database.removingAllowed&&l.user.removingAllowed,isDatabaseWillBeRemovedAutomatically:l.database.willBeRemovedAutomatically,installationId:e.id,installationTitle:e.displayTitle,isActionLogAvailable:e.features.actionLog.available})})})),PK=({isOpen:e,onClose:t,onDetach:n,installation:s})=>{const i=r(74728)(s.url);return(0,P.jsx)(Ea,{isOpen:e,title:(0,P.jsx)(qd,{content:"controllers.index.detail.detachConfirmationTitle"}),cancelButton:{children:(0,P.jsx)(qd,{content:"controllers.index.detail.buttonConfirmationNo"}),onClick:t},buttons:(0,P.jsx)(Be,{onClick:n,"data-test-id":qb,children:(0,P.jsx)(qd,{content:"controllers.index.detail.detachButton"})}),size:"sm",onClose:t,"data-test-id":Gb,children:(0,P.jsx)(Aq,{installationsToRemove:[{id:s.id,url:`<a target='_blank' href='${i}'>${s.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,P.jsx)(qd,{content:"detach-confirmation.hintWillDetachSuccess"})}],title:(0,P.jsx)(qd,{content:"controllers.index.detail.massDetachConfirmationDescription"})})})};const OK=e=>{const{maxChars:t,children:n}=e,s=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}return n}(e,["maxChars","children"]);if("string"!=typeof n)return(0,P.jsx)(P.Fragment,{children:n});const i=n.toString(),a=i.length>t,r=a?`${i.slice(0,t-1)}...`:i,o=(0,P.jsx)(ei,Object.assign({},s,{children:r}));return a?(0,P.jsx)(Oe,{title:i,children:o}):o},IK=({installation:e,className:t})=>{const n=zd(),s=hp(e),i=`${"httpdocs"===s?"":"..."}${FM(e.installationType)?"\\":"/"}${s}`;return(0,P.jsx)(OK,{"data-test-id":"instance-at-folder-text",className:t,intent:"muted",fontSize:"sm",maxChars:30,children:n("instancesList.instanceCard.files.atFolder",{folder:i})})},MK=()=>{const e=zd("appMode.installationDisplayTitle");return t=>t.features.php.unsupported?e("unsupportedPhp"):t.status.infected?e("infected"):t.status.unsupported?e("unsupported"):t.status.alive?t.title:e("broken")},LK=mc((e=>({installations:e.instances.installations})))((({installations:e,installationId:t,installationsIds:n,onChangeInstallation:s,domainId:i,baseClassName:a=`${Rp}installation-selector`})=>{const r=zd(),o=MK();return n.length<=1?null:(0,P.jsx)(Mn,{"data-test-id":"installation-selector",baseClassName:a,menu:(0,P.jsx)(qs,{"data-test-id":"installation-selector-menu",children:(()=>{const t=[];return t.push((0,P.jsx)(oi,{children:r("instancesList.instanceCard.instanceSelector.menuHeader").toString().toUpperCase()})),t.push(n.map((t=>{const n=null==e?void 0:e.find((e=>e.id===t));if(!n)return null;const r=n.status.unsupported||!n.status.alive;return(0,P.jsx)(Sn,{"data-test-id":`installation-selector-menu-item__installation-id-${t}`,onClick:()=>s(i,t),icon:r?(0,P.jsx)(be,{name:"exclamation-mark-circle-filled",intent:"danger"}):null,children:(0,P.jsxs)("div",{className:`${a}__menu-item`,children:[(0,P.jsx)(ei,{fontSize:"md",children:o(n)}),(0,P.jsx)(IK,{className:`${a}__at-folder-text`,installation:n})]})},`${t}`)}))),t})()}),children:(()=>{const e=n.findIndex((e=>e===t))+1,s=n.length;return(0,P.jsx)(Be,{icon:"wordpress",caret:!0,children:`${e} / ${s}`})})()})})),AK=e=>{const{selector:t,title:n,statusMessages:s,linksSection:i,body:a,baseClassName:r=`${Rp}wpt-card`}=e;return(0,P.jsxs)(Pa,{className:`${r}-section`,children:[(0,P.jsx)(la,{children:(0,P.jsxs)("div",{className:`${r}-header`,children:[t,n]})}),s,(0,P.jsx)(la,{children:i}),a]})},EK=e=>{const{installation:t,onCacheRefresh:n,baseClassName:s=`${Rp}wpt-card-title`}=e,i=MK();return(0,P.jsxs)("div",{className:s,children:[(0,P.jsx)(Ds,{"data-test-id":fN,icon:(0,P.jsx)(be,{name:"info-circle",intent:"danger"}),level:2,children:i(t)}),(0,P.jsx)(Be,{"data-test-id":lv,icon:"refresh",tooltip:(0,P.jsx)(qd,{content:"Card.refreshCardTooltip"}),onClick:()=>n(),ghost:!0})]})},RK=e=>{const{installation:t,installation:{domain:n,path:s,features:{fileManager:i},installationType:a},primary:r=!1,baseClassName:o=`${Rp}installation-files-button`}=e;return i.available?(0,P.jsx)("div",{className:o,children:(0,P.jsx)(Lz,{href:i.url,iconName:"folder-closed",dataTestId:uv,localeKey:"instancesList.instanceCard.files.title",primary:r,children:(()=>{const e=hp(t);return e&&"httpdocs"!==e&&n&&e!==CN(n.name)&&e!==DN(n.name)?(0,P.jsx)(IK,{installation:t,className:`${o}__at-folder-text`}):null})()})}):null},UK=e=>{const{selector:t,installation:n,installation:{features:s},onCacheRefresh:i,onOpenCheckWpIntegrityDialog:a,onOpenActionLogDrawer:r,onOpenDetachDialog:o,onOpenRemoveDialog:l}=e,c=(0,P.jsx)(EK,{installation:n,onCacheRefresh:i}),u=`${Rp}instance-links-section`,d=(0,P.jsxs)("div",{className:u,children:[s.fileManager.available&&(0,P.jsx)("div",{className:`${u}-element`,children:(0,P.jsx)(RK,{installation:n,primary:!0})}),s.actionLog.available&&(0,P.jsx)("div",{className:`${u}-element`,children:(0,P.jsx)(Lz,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"})}),s.integrity.available&&(0,P.jsx)("div",{className:`${u}-element`,children:(0,P.jsx)(IH,{onOpenCheckWpIntegrityDialog:a})}),(0,P.jsx)("div",{className:`${u}-element`,children:(0,P.jsx)(Lz,{onClick:o,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,P.jsx)("div",{className:`${u}-element`,children:(0,P.jsx)(Lz,{onClick:l,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),p=(0,P.jsx)(Pa,{children:(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.infectedInstance.description",params:{refreshIcon:(0,P.jsx)(be,{name:"refresh"})}})})});return(0,P.jsx)(AK,{selector:t,title:c,linksSection:d,body:p})},NK=e=>{var t,n;const{selector:s,installation:i,installation:{id:a,path:r,errorMessage:o,features:l},onCacheRefresh:c,onOpenBackupDrawer:u,onOpenCheckWpIntegrityDialog:d,onOpenActionLogDrawer:p,onOpenDetachDialog:h,onOpenRemoveDialog:m,onEnable:f,onDisable:g}=e,b=(0,P.jsx)(EK,{installation:i,onCacheRefresh:c}),v=`${Rp}instance-links-section`,y=(0,P.jsxs)("div",{className:v,children:[(l.backups.wptBackupsAvailable||l.backups.panelBackupsAvailable&&l.backups.backupManagerUrl)&&(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(Ez,{onOpenBackupDrawer:u,installation:i,primary:!0})}),l.fileManager.available&&(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(RK,{installation:i})}),l.actionLog.available&&(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(Lz,{onClick:p,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"})}),l.integrity.available&&(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(IH,{onOpenCheckWpIntegrityDialog:d})}),(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(Lz,{onClick:h,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,P.jsx)("div",{className:`${v}-element`,children:(0,P.jsx)(Lz,{onClick:m,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),x=(0,P.jsxs)(Pa,{children:[(0,P.jsxs)(la,{children:[(0,P.jsxs)(mi,{children:[(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.filesFound"}),":",(0,P.jsx)("br",{}),(0,P.jsx)(Cs,{href:null!==(n=null===(t=l.fileManager)||void 0===t?void 0:t.url)&&void 0!==n?n:void 0,children:r})]}),(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.description"})]}),l.restorePoint&&l.restorePoint.restorePointTimestamp&&(0,P.jsx)(la,{className:"wpt-compact-section-item",title:(0,P.jsx)(qd,{content:"controllers.index.detail.restorePointTitle"}),children:(0,P.jsx)(QF,{installationId:a,restorePoint:l.restorePoint,enableInstances:f,disableInstances:g})})||null,o&&(0,P.jsx)(la,{children:(0,P.jsx)(Fs,{target:(0,P.jsx)(ye,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.brokenInstance.errorDetails"})}),children:o})})||null]});return(0,P.jsx)(AK,{selector:s,title:b,linksSection:y,body:x})},FK=mc((e=>({upgradingInstanceInstructionsUrl:e.app.urls.upgradingInstanceInstructionsUrl})))((e=>{const{selector:t,installation:n,installation:{status:{unsupported:s},features:i,version:a},onCacheRefresh:r,onOpenDetachDialog:o,onOpenRemoveDialog:l,upgradingInstanceInstructionsUrl:c}=e,u=zd();if(!a)return null;if(!s)return null;const d=(0,P.jsx)(EK,{installation:n,onCacheRefresh:r}),p=`${Rp}instance-links-section`,h=(0,P.jsxs)("div",{className:p,children:[i.fileManager.available&&(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(RK,{installation:n,primary:!0})}),(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(Lz,{onClick:o,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(Lz,{onClick:l,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),m=(0,P.jsxs)(Pa,{children:[(0,P.jsx)(la,{children:(0,P.jsx)(qd,{content:"controllers.index.detail.unsupportedInstance.description",params:{version:a}})}),c&&(0,P.jsxs)(la,{children:[(0,P.jsxs)(mi,{children:[(0,P.jsx)(qd,{content:"controllers.index.detail.unsupportedInstance.upgradingInstanceInstructionsLabel"}),":"]}),(0,P.jsx)(ye,{icon:"site-page",target:"_blank",href:c,children:u("controllers.index.detail.unsupportedInstance.upgradingInstructionsLinkText")})]})]});return(0,P.jsx)(AK,{selector:t,title:d,linksSection:h,body:m})})),YK=e=>{var t;const{installation:n,onOpenPluginsUpdates:s,onOpenSecurityDialog:i}=e,a=zd(),[r,o]=(0,M.useState)(!1),[l,c]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ye,{"data-test-id":"instance-manage-plugins",icon:"puzzle",onClick:()=>o(!0),primary:!0,children:a("list.sites.linkManagePlugins")}),(0,P.jsx)(er,{isOpen:r,onClose:()=>o(!1),title:a("drawer.managePlugins.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-plugins-drawer",children:(0,P.jsx)(kF,{isCollapsible:!1,isPaginationEnabled:!1,installation:n,onOpenNativePlugins:()=>c(!0),onUpdatesOpen:s,onOpenSecurityDialog:i,showTitle:!1})}),l&&(0,P.jsx)(dq,{installation:n,type:vp,onClose:()=>c(!1)})]})},HK=e=>{var t;const{installation:n,onOpenThemesUpdates:s,onOpenSecurityDialog:i}=e,a=zd(),[r,o]=(0,M.useState)(!1),[l,c]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ye,{"data-test-id":"instance-manage-themes",icon:"brush",onClick:()=>o(!0),primary:!0,children:a("list.sites.linkManageThemes")}),(0,P.jsx)(er,{isOpen:r,onClose:()=>o(!1),title:a("drawer.manageThemes.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-themes-drawer",children:(0,P.jsx)(CF,{isCollapsible:!1,installation:n,onOpenNativeThemes:()=>c(!0),onUpdatesOpen:s,onOpenSecurityDialog:i,showTitle:!1})}),l&&(0,P.jsx)(dq,{installation:n,type:bp,onClose:()=>c(!1)})]})},BK=e=>{var t;const{installation:n}=e,s=zd(),[i,a]=(0,M.useState)(!1);return(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(ye,{icon:"database",onClick:()=>a(!0),primary:!0,children:s("list.sites.linkManageDatabase")}),(0,P.jsx)(er,{isOpen:i,onClose:()=>a(!1),title:s("drawer.manageDatabase.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-database-drawer",size:"xs",children:(0,P.jsx)(LF,{installation:n,onError:()=>a(!1),showTitle:!1})})]})},VK=mc((e=>({unpaidFeatures:e.app.unpaidFeatures,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded})),(e=>({addErrorMessage:kb(qg,e)})))((({baseClassName:e=`${Rp}instance-links-section`,installation:t,unpaidFeatures:n,onOpenSyncDrawer:s,onOpenCloneDrawer:i,onOpenBackupDrawer:a,onOpenActionLogDrawer:r,onOpenSecurityDialog:o,isWordPressInstancesLimitExceeded:l,addErrorMessage:c,onOpenCheckWpIntegrityDialog:u,onOpenUpdates:d,onOpenDetachDialog:p,onOpenRemoveDialog:h,onOpenWpCliDrawer:m})=>{const{fileManager:f,copyData:g,clone:b,backups:v,actionLog:y,integrity:x,security:_,wpCli:S}=t.features,w=(0,M.useCallback)((e=>{Xd(e,l?()=>{var e,n;return c((0,P.jsx)(qd,{content:"common.wordPressSitesLimitForDomainExceeded",params:{count:null===(e=t.domain)||void 0===e?void 0:e.installationsCount,limit:null===(n=t.domain)||void 0===n?void 0:n.installationsLimit}}))}:i)}),[t,i,l,c]);return(0,P.jsxs)("div",{className:e,children:[(0,P.jsxs)("div",{children:[f.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(RK,{installation:t,primary:!0})}),(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(YK,{installation:t,onOpenPluginsUpdates:()=>d(ix),onOpenSecurityDialog:o})}),(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(HK,{installation:t,onOpenThemesUpdates:()=>d(ax),onOpenSecurityDialog:o})}),(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(BK,{installation:t})}),y.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(Lz,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log",primary:!0},"list.instances.linkActionLog")}),S.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(Lz,{onClick:m,iconName:"console",localeKey:"list.instances.linkWpCli",dataTestId:"instance-link-action-wpCli",primary:!0},"list.instances.wpCli")})]}),(0,P.jsxs)("div",{children:[g.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(Hv,{uatAction:Kv,featureName:wp,installationId:t.id,isInstanceFeatureDisabled:!g.applicable,description:(0,P.jsx)(qd,{content:"paidFeature.copyDataFeatureDescription"}),children:(0,P.jsx)(Lz,{onClick:e=>Xd(e,s),iconName:n[wp]||!g.applicable?null:"arrows-loop",localeKey:"list.instances.linkSync",dataTestId:"instance-link-sync"},"list.instances.linkSync")})}),b.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(Hv,{featureName:Sp,uatAction:Kv,installationId:t.id,isInstanceFeatureDisabled:!b.applicable,description:(0,P.jsx)(qd,{content:"paidFeature.cloneFeatureDescription"}),children:(0,P.jsx)(Lz,{onClick:w,iconName:n[Sp]||!b.applicable?null:"copy",localeKey:"list.instances.linkClone",dataTestId:"instance-link-clone"},"list.instances.linkClone")})}),(v.wptBackupsAvailable||v.panelBackupsAvailable&&v.backupManagerUrl)&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(Ez,{onOpenBackupDrawer:a,installation:t})}),x.available&&(0,P.jsx)("div",{className:`${e}-element`,children:(0,P.jsx)(IH,{onOpenCheckWpIntegrityDialog:u})}),(0,P.jsx)(Mn,{"data-test-id":"instance-dropdown-menu",className:`${e}-element`,menu:(0,P.jsxs)(qs,{children:[(0,P.jsx)(Sn,{icon:"refresh",onClick:()=>d(),children:(0,P.jsx)(qd,{content:"instancesList.instanceActions.checkUpdates"})}),_.available&&(0,P.jsx)(Sn,{icon:"shield",onClick:()=>o(0,2),children:(0,P.jsx)(qd,{content:"toolbar.checkSecurity"})}),(0,P.jsx)(xn,{}),(0,P.jsx)(Sn,{"data-test-id":"instance-detach",icon:"chain-broken",onClick:p,children:(0,P.jsx)(qd,{content:"toolbar.detachFromWpToolkit"})}),(0,P.jsx)(Sn,{icon:"wordpress-minus",onClick:h,children:(0,P.jsx)(qd,{content:"toolbar.uninstallWordPress"})})]}),children:(0,P.jsx)(ye,{icon:"three-dots-horizontal",children:(0,P.jsx)(qd,{content:"list.instances.linkDropDownMenuMore"})})})]})]})})),$K=mc(void 0,(e=>({switchPhpHandler:kb(fS,e)})))((e=>{const{selector:t,installation:n,installation:{features:{fileManager:s,php:{handler:i}}},onEnable:a,onDisable:r,onCacheRefresh:o,onOpenDetachDialog:l,onOpenRemoveDialog:c,switchPhpHandler:u}=e,d=(0,P.jsx)(EK,{installation:n,onCacheRefresh:o}),p=`${Rp}instance-links-section`,h=(0,P.jsxs)("div",{className:p,children:[s.available&&(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(RK,{installation:n,primary:!0})}),(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(Lz,{onClick:l,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,P.jsx)("div",{className:`${p}-element`,children:(0,P.jsx)(Lz,{onClick:c,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),m=(0,P.jsxs)(Pa,{children:[(0,P.jsxs)(la,{children:[(0,P.jsx)(ei,{bold:!0,children:(0,P.jsx)(qd,{content:"instancesList.issues.errorUnsupportedPHP.title",params:{phpVersion:null==i?void 0:i.version}})})," ",(0,P.jsx)(qd,{content:"instancesList.issues.errorUnsupportedPHP.description",unsafe:!0})]}),(0,P.jsx)(la,{children:(0,P.jsx)(EH,{installation:n,onSwitchPHPHandler:e=>(r(),u(n.id,e).finally((()=>{a()})))})})]});return(0,P.jsx)(AK,{selector:t,title:d,linksSection:h,body:m})})),WK=e=>{const{installation:t,selector:n,onOpenBackupDrawer:s,onOpenActionLogDrawer:i,onOpenCheckWpIntegrityDialog:a,onOpenDetachDialog:r,onOpenRemoveDialog:o,onCacheRefresh:l,onEnable:c,onDisable:u,onSetInstanceName:d,onAddErrorMessage:p,statusMessages:h,onOpenSyncDrawer:m,onOpenCloneDrawer:f,onOpenSecurityDialog:g,onOpenUpdates:b,onOpenSmartPhpUpdates:v,onOpenVirtualPatchingUpsellDialog:y,onOpenVirtualPatchingLicenseInfoDrawer:x,onOpenWpCliDrawer:_}=e;return t.features.php.unsupported?(0,P.jsx)($K,{installation:t,selector:n,onCacheRefresh:l,onOpenDetachDialog:r,onOpenRemoveDialog:o,onEnable:c,onDisable:u}):t.status.unsupported?(0,P.jsx)(FK,{installation:t,selector:n,onCacheRefresh:l,onOpenDetachDialog:r,onOpenRemoveDialog:o}):t.status.infected?(0,P.jsx)(UK,{installation:t,selector:n,onCacheRefresh:l,onOpenActionLogDrawer:i,onOpenCheckWpIntegrityDialog:a,onOpenDetachDialog:r,onOpenRemoveDialog:o}):t.status.alive?(0,P.jsx)(AK,{selector:n,title:(0,P.jsx)(RY,{installationId:t.id,name:t.title,setInstanceName:d,addErrorMessage:p,additionalButtons:(0,P.jsx)(Be,{"data-test-id":lv,icon:"refresh",tooltip:(0,P.jsx)(qd,{content:"Card.refreshCardTooltip"}),onClick:l,ghost:!0})}),statusMessages:h,linksSection:(0,P.jsx)(VK,{installation:t,onOpenCloneDrawer:f,onOpenSyncDrawer:m,onOpenBackupDrawer:s,onOpenActionLogDrawer:i,onOpenUpdates:b,onOpenSecurityDialog:g,onOpenCheckWpIntegrityDialog:a,onOpenDetachDialog:r,onOpenRemoveDialog:o,onOpenWpCliDrawer:_}),body:(0,P.jsx)(OH,{isWpMode:!0,installation:t,enableInstances:c,disableInstances:u,openUpdates:b,onOpenSecurityDialog:g,onOpenSmartPhpUpdates:v,onOpenVirtualPatchingUpsellDialog:y,onOpenVirtualPatchingLicenseInfoDrawer:x})}):(0,P.jsx)(NK,{installation:t,selector:n,onCacheRefresh:l,onOpenBackupDrawer:s,onOpenActionLogDrawer:i,onOpenCheckWpIntegrityDialog:a,onOpenDetachDialog:r,onOpenRemoveDialog:o,onEnable:c,onDisable:u})},zK=mc(null,(e=>({instanceActions:kb({setInstanceName:Lw,refresh:mS,detach:_S,getInstallationsRemoveConfiguration:US,remove:bS},e),addErrorMessage:t=>e(qg(t))})))((({installation:e,installation:{features:{php:t,updates:n}},instanceActions:{setInstanceName:s,refresh:i,remove:a,detach:r},addErrorMessage:o,domainInstallationsIds:l,onChangeInstallation:c,domainId:u})=>{const[d,p]=(0,M.useState)(!1),[h,m]=(0,M.useState)(!1),[f,g]=(0,M.useState)(!1),[b,v]=(0,M.useState)(void 0),[y,x]=(0,M.useState)(!1),[_,S]=(0,M.useState)(!1),[w,k]=(0,M.useState)(!1),[j,T]=(0,M.useState)(void 0),[C,D]=(0,M.useState)(!1),[O,I]=(0,M.useState)(!1),[L,A]=(0,M.useState)(!1),[E,R]=(0,M.useState)(!1),[U,N]=(0,M.useState)(!1),[F,Y]=(0,M.useState)(!1),[H,B]=(0,M.useState)(!1),[V,$]=(0,M.useState)(!1),[W,z]=(0,M.useState)(!1),q=(0,P.jsxs)(P.Fragment,{children:[t.eoled&&(0,P.jsx)(DB,{installation:e,onOpenSmartPhpUpdatesDrawer:()=>I(!0)}),n.availableVersion&&(0,P.jsx)(PB,{})]}),G=(0,P.jsx)(LK,{installationId:e.id,installationsIds:l,domainId:u,onChangeInstallation:c});return(0,P.jsxs)(zk,{children:[(0,P.jsx)(WK,{installation:e,onAddErrorMessage:o,onCacheRefresh:()=>(A(!0),void i(e.id).catch((()=>{})).finally((()=>{A(!1)}))),onDisable:()=>A(!0),onEnable:()=>A(!1),onOpenActionLogDrawer:()=>p(!0),onOpenBackupDrawer:()=>m(!0),onOpenCheckWpIntegrityDialog:()=>R(!0),onOpenCloneDrawer:()=>S(!0),onOpenDetachDialog:()=>N(!0),onOpenRemoveDialog:()=>Y(!0),onOpenSecurityDialog:(e,t)=>{v(t),g(!0)},onOpenSmartPhpUpdates:()=>I(!0),onOpenSyncDrawer:()=>x(!0),onOpenUpdates:e=>{T(e),k(!0)},onOpenVirtualPatchingUpsellDialog:()=>B(!0),onOpenVirtualPatchingLicenseInfoDrawer:()=>$(!0),onOpenWpCliDrawer:()=>z(!0),onSetInstanceName:s,selector:G,statusMessages:q}),(0,P.jsx)(yB,{isOpen:d,installation:e,onCloseActionLogDrawer:()=>p(!1)}),(0,P.jsx)(yL,{installation:e,onClose:()=>m(!1),isOpen:h}),(0,P.jsx)(wA,{title:(0,P.jsx)(qd,{content:"list-ui.instances.forms.security.drawerTitle"}),subtitle:e.displayTitle,installation:e,isOpen:f,onClose:()=>g(!1),activeTab:b,onOpenVirtualPatchingUpsellDialog:()=>B(!0)}),(0,P.jsx)(GF,{onClose:()=>k(!1),isUpdateSettingsFormOpen:C,onOpenUpdatesSettingsDialog:()=>D(!0),onCloseUpdatesSettingsDialog:()=>D(!1),installation:e,openUpdatesType:j,isOpen:w}),(0,P.jsx)(Vz,{installation:e,isOpen:O,onClose:()=>I(!1)}),(0,P.jsx)(xz,{onClose:()=>x(!1),installation:e,isOpen:y}),(0,P.jsx)(Mz,{onClose:()=>S(!1),installation:e,isOpen:_,showDomainOverviewLinkOnDone:!0}),(0,P.jsx)(CB,{isOpen:E,installation:e,onCloseCheckWordPressIntegrityDialog:()=>R(!1),onOpenBackupDrawer:()=>m(!0)}),(0,P.jsx)(PK,{isOpen:U,onClose:()=>N(!1),onDetach:()=>(A(!0),N(!1),void r([e.id]).then((()=>window.location.reload())).finally((()=>A(!1)))),installation:e}),(0,P.jsx)(DK,{installation:e,isOpen:F,onClose:()=>Y(!1),onRemove:t=>{A(!0),a([e.id],t).then((()=>window.location.reload())).catch((()=>{})).finally((()=>A(!1)))}}),(0,P.jsx)(PG,{installation:e,isOpen:H,onClose:()=>B(!1),onOpen:()=>B(!0),onOpenLicenseInfoDrawer:()=>$(!0),uatAction:Kv}),(0,P.jsx)(FG,{installation:e,isOpen:V,onOpenUpsellDialog:()=>B(!0),onClose:()=>$(!1)}),(0,P.jsx)(nq,{isOpen:W,onClose:()=>z(!1),installationId:e.id}),L&&(0,P.jsx)(Rn,{overlay:!0,backdrop:!0})]})})),qK=mc((e=>{var t;return{hireDeveloperFeatureShown:e.app.options.hireDeveloperFeature&&!!(null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href)}}))((e=>{const{domainId:t,installation:n,hireDeveloperFeatureShown:s,baseClassName:i=`${Rp}sidebar-section`}=e,a=(0,P.jsxs)(la,{className:`${i}-sectionItem`,children:[(0,P.jsx)(Ds,{level:4,children:(0,P.jsx)(qd,{content:"common.loginToWordpress"})}),(0,P.jsx)(kY,{installation:n,initialShowAdminSettingsDrawer:!1})]}),r=(0,P.jsx)(la,{className:`${i}-sectionItem`,children:(0,P.jsx)(OY,{installation:n})});return(0,P.jsxs)(Pa,{baseClassName:i,children:[n.status.alive&&a,s&&r]},`sidebar-${t}-${n.id}`)})),GK=()=>{const e=Hc(),[t,n]=(0,M.useState)(!1),[s,i]=(0,M.useState)(void 0);return(0,M.useEffect)((()=>{const t=new URLSearchParams(location.search),s=t.get(th),a=t.get(nh);"install-wp"===s&&(a&&i(a),t.delete(th),t.delete(nh),e.replace(Object.assign(Object.assign({},location),{search:t.toString()}),{}),n(!0))}),[e,n]),(0,P.jsx)(Qq,{isOpen:t,onClose:()=>n(!1),selectedDomain:s,redirectToDomainOverviewOnDone:!0})};const KK=mc((e=>({urls:e.app.urls,installations:e.instances.installations,selectedInstanceId:e.instances.selectedInstanceId,domainsInstallationsIds:e.instances.domainsInstallationsIds})),(e=>({addErrorMessage:t=>e(qg(t)),setSelectedInstanceId:t=>e(Ww(t))})))(Fc((e=>{var{baseClassName:t=`${Rp}app-container`,urls:n,domainsInstallationsIds:s,installations:i,selectedInstanceId:a,setSelectedInstanceId:r}=e;!function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(s=Object.getOwnPropertySymbols(e);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(e,s[i])&&(n[s[i]]=e[s[i]])}}(e,["baseClassName","urls","domainsInstallationsIds","installations","selectedInstanceId","setSelectedInstanceId"]);const[o,l]=(0,M.useState)({}),c=(()=>{const[e,t]=(0,M.useState)({});return(0,M.useEffect)((()=>{const n=setInterval((()=>{window.wpModePlaceholders&&window.wpModePlaceholders!==e&&t(window.wpModePlaceholders)}),500);return()=>{clearInterval(n)}}),[e]),e})(),u=Yc(Mc).location,d=Hc();(0,M.useEffect)((()=>{If(n.apiUrl),Mf(qg),Lf(null),Yg(n.restApiUrl,qg,!0)}),[n]),(0,M.useEffect)((()=>{const e=((e,t)=>{const n=new URLSearchParams(e.search),s=n.get("installationId");return s?(n.delete("installationId"),t.replace(Object.assign(Object.assign({},e),{search:n.toString()}),{}),s?parseInt(s,10):null):null})(u,d);e&&e!==a&&r(e)}),[u,d]),(0,M.useEffect)((()=>{const e={};for(const t in s)if(a&&s[t].some((e=>e===a)))e[t]=a,r(null);else if(!o.hasOwnProperty(t)){const[n]=s[t];e[t]=n}Object.keys(e).length>0&&l((t=>Object.assign(Object.assign({},t),e)))}),[s,a]);const p=(0,M.useMemo)((()=>{const e=(e,t)=>r(t),t=[];for(const n in c){const a=null==i?void 0:i.find((e=>e.id===o[n]));if(!a)continue;const r=c[n].tab;r&&t.push((0,je.createPortal)((0,P.jsx)(zK,{domainId:parseInt(n),installation:a,onChangeInstallation:e,domainInstallationsIds:s[n]}),r,`tab-domain-${n}-installation-${a.id}`));const l=c[n].sidebar;l&&t.push((0,je.createPortal)((0,P.jsx)(qK,{installation:a,domainId:parseInt(n)}),l,`sidebar-domain-${n}-installation-${a.id}`))}return t}),[c,o,i,s,r]);return(0,P.jsxs)("div",{className:t,children:[(0,P.jsx)(NN,{}),p,(0,P.jsx)(tj,{}),(0,P.jsx)(GK,{})]})}))),XK=e=>(0,P.jsxs)(zk,{children:[(0,P.jsx)(pu,{history:e,children:(0,P.jsx)(KG,{})}),!1]}),QK=({store:e,data:t,history:n,container:s,root:i})=>{i.render((0,P.jsx)(fc,{store:e,children:(0,P.jsx)(bj,{children:(0,P.jsx)(Wd,{messages:t.locale,localeCode:t.localeCode,parameters:t.localizationVariables,children:XK(n)})})}))},JK=()=>{const e=document.getElementById("main"),t=document.createElement("div");if(t.classList.add(Hp),t.textContent="Loading...",!e)throw Error("WP Toolkit initialization error: main container does not exist");return e.appendChild(t),t},ZK=e=>((e,t)=>{const n=jK(e,t),s=JK(),i=(0,Sl.H)(s);QK({store:n,data:e,history:t,container:s,root:i})})(e,D({basename:e.urls.baseUrl})),eX=e=>((e,t)=>{const n=jK(e,t),{container:s,root:i}=(()=>{const e=document.getElementById("plesk-root"),t=document.getElementsByClassName(Hp).item(0);t&&t.remove();const n=document.getElementById("main"),s=document.createElement("div");if(s.classList.add(Hp),!n||!e)throw Error("WP Toolkit initialization error: main container does not exist");n.appendChild(s);const i=(0,Sl.H)(s),a=new MutationObserver(((e,t)=>{e.forEach((e=>{var n;null===(n=e.removedNodes)||void 0===n||n.forEach((e=>{(e.isEqualNode(s)||e.contains(s))&&(i.unmount(),t.disconnect())}))}))}));return a.observe(e,{childList:!0,subtree:!0}),{container:s,root:i}})();(({store:e,data:t,history:n,root:s})=>{s.render((0,P.jsx)(fc,{store:e,children:(0,P.jsx)(bj,{children:(0,P.jsx)(Wd,{messages:t.locale,localeCode:t.localeCode,parameters:t.localizationVariables,children:(0,P.jsx)(zk,{children:(0,P.jsx)(pu,{history:n,children:(0,P.jsx)(Uc,{path:"/:params*",children:(0,P.jsx)(KK,{})})})})})})}))})({store:n,data:e,history:t,container:s,root:i})})(e,D({basename:void 0})),tX=e=>((e,t)=>{const n=JK(),s=(0,Sl.H)(n);hb(e.urls.apiUrl).then((i=>{i=TK(i,e);const a=jK(i,t);QK({store:a,data:i,history:t,container:n,root:s})})).catch((e=>{(0,Sl.H)(n).render((0,P.jsx)(xe,{intent:"danger",children:e.toString()}))}))})(e,D({}))})(),wptMain=o})();