HEX
Server: Apache
System: Linux www3.pit.tblive.com 5.14.0-687.38.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 12 17:19:12 EDT 2026 x86_64
User: awaldron (1020)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/awaldron/_domains/members.pennhillscdc.org/static/js/main.ec121618.js
/*! For license information please see main.ec121618.js.LICENSE.txt */
(()=>{var e={5552:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Composite:()=>hn,CompositeItem:()=>mn,FloatingArrow:()=>xn,FloatingDelayGroup:()=>Ln,FloatingFocusManager:()=>br,FloatingList:()=>sn,FloatingNode:()=>On,FloatingOverlay:()=>kr,FloatingPortal:()=>cr,FloatingTree:()=>Nn,arrow:()=>_t,autoPlacement:()=>Nt,autoUpdate:()=>st,computePosition:()=>vt,detectOverflow:()=>lt,flip:()=>Mt,getOverflowAncestors:()=>C,hide:()=>At,inline:()=>Pt,inner:()=>Xr,limitShift:()=>Ct,offset:()=>St,platform:()=>at,safePolygon:()=>no,shift:()=>Et,size:()=>Ot,useClick:()=>Er,useClientPoint:()=>Mr,useDelayGroup:()=>zn,useDelayGroupContext:()=>In,useDismiss:()=>Pr,useFloating:()=>jr,useFloatingNodeId:()=>Mn,useFloatingParentNodeId:()=>En,useFloatingPortalNode:()=>ur,useFloatingRootContext:()=>_r,useFloatingTree:()=>Cn,useFocus:()=>Tr,useHover:()=>Tn,useId:()=>wn,useInnerOffset:()=>eo,useInteractions:()=>Lr,useListItem:()=>ln,useListNavigation:()=>Vr,useMergeRefs:()=>zt,useRole:()=>$r,useTransitionStatus:()=>Qr,useTransitionStyles:()=>Gr,useTypeahead:()=>Jr});var r=n(9526),o=n(3986),i=n(7051),a=n(5043),s=n.t(a,2);function l(){return"undefined"!==typeof window}function u(e){return f(e)?(e.nodeName||"").toLowerCase():"#document"}function c(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function d(e){var t;return null==(t=(f(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function f(e){return!!l()&&(e instanceof Node||e instanceof c(e).Node)}function p(e){return!!l()&&(e instanceof Element||e instanceof c(e).Element)}function h(e){return!!l()&&(e instanceof HTMLElement||e instanceof c(e).HTMLElement)}function m(e){return!(!l()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof c(e).ShadowRoot)}function g(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=k(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function y(e){return["table","td","th"].includes(u(e))}function v(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function b(e){const t=w(),n=p(e)?k(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function w(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function x(e){return["html","body","#document"].includes(u(e))}function k(e){return c(e).getComputedStyle(e)}function D(e){return p(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function S(e){if("html"===u(e))return e;const t=e.assignedSlot||e.parentNode||m(e)&&e.host||d(e);return m(t)?t.host:t}function E(e){const t=S(e);return x(t)?e.ownerDocument?e.ownerDocument.body:e.body:h(t)&&g(t)?t:E(t)}function C(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=E(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=c(o);if(i){const e=M(a);return t.concat(a,a.visualViewport||[],g(o)?o:[],e&&n?C(e):[])}return t.concat(o,C(o,[],n))}function M(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function O(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 N(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function A(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function P(){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 _(e){return!(0!==e.mozInputSource||!e.isTrusted)||(R()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function j(e){return!P().includes("jsdom/")&&(!R()&&0===e.width&&0===e.height||R()&&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 T(){return/apple/i.test(navigator.vendor)}function R(){const e=/android/i;return e.test(A())||e.test(P())}function F(){return A().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function I(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function L(e){return(null==e?void 0:e.ownerDocument)||document}function z(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 Y="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function H(e){return h(e)&&e.matches(Y)}function W(e){e.preventDefault(),e.stopPropagation()}function V(e){return!!e&&("combobox"===e.getAttribute("role")&&H(e))}const U=["top","right","bottom","left"],$=["start","end"],q=U.reduce(((e,t)=>e.concat(t,t+"-"+$[0],t+"-"+$[1])),[]),K=Math.min,Q=Math.max,G=Math.round,J=Math.floor,Z=e=>({x:e,y:e}),X={left:"right",right:"left",bottom:"top",top:"bottom"},ee={start:"end",end:"start"};function te(e,t,n){return Q(e,K(t,n))}function ne(e,t){return"function"===typeof e?e(t):e}function re(e){return e.split("-")[0]}function oe(e){return e.split("-")[1]}function ie(e){return"x"===e?"y":"x"}function ae(e){return"y"===e?"height":"width"}function se(e){return["top","bottom"].includes(re(e))?"y":"x"}function le(e){return ie(se(e))}function ue(e,t,n){void 0===n&&(n=!1);const r=oe(e),o=le(e),i=ae(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=de(a)),[a,de(a)]}function ce(e){return e.replace(/start|end/g,(e=>ee[e]))}function de(e){return e.replace(/left|right|bottom|top/g,(e=>X[e]))}function fe(e){return"number"!==typeof e?function(e){return(0,i.A)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function pe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}var he=["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])"],me=he.join(","),ge="undefined"===typeof Element,ye=ge?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ve=!ge&&Element.prototype.getRootNode?function(e){var t;return null===e||void 0===e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null===e||void 0===e?void 0:e.ownerDocument},be=function e(t,n){var r;void 0===n&&(n=!0);var o=null===t||void 0===t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},we=function(e,t,n){if(be(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(me));return t&&ye.call(e,me)&&r.unshift(e),r=r.filter(n)},xe=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!be(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{ye.call(a,me)&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"===typeof r.getShadowRoot&&r.getShadowRoot(a),c=!be(u,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},ke=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},De=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||void 0===e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!ke(e)?0:e.tabIndex},Se=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ee=function(e){return"INPUT"===e.tagName},Ce=function(e){return function(e){return Ee(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||ve(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(i){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",i.message),!1}var o=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!o||o===e}(e)},Me=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},Oe=function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=ye.call(e,"details>summary:first-of-type")?e.parentElement:e;if(ye.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return Me(e)}else{if("function"===typeof r){for(var i=e;e;){var a=e.parentElement,s=ve(e);if(a&&!a.shadowRoot&&!0===r(a))return Me(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,n,r,o,i=e&&ve(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!==e&&void 0!==e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=i=ve(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},Ne=function(e,t){return!(t.disabled||be(t)||function(e){return Ee(e)&&"hidden"===e.type}(t)||Oe(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 r=t.children.item(n);if("LEGEND"===r.tagName)return!!ye.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ae=function(e,t){return!(Ce(t)||De(t)<0||!Ne(e,t))},Pe=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},_e=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var n=De(e);return n<0&&t&&!ke(e)?0:n}(a,i),l=i?e(t.candidates):a;0===s?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),r.sort(Se).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},je=function(e,t){var n;return n=(t=t||{}).getShadowRoot?xe([e],t.includeContainer,{filter:Ae.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Pe}):we(e,t.includeContainer,Ae.bind(null,t)),_e(n)},Te=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==ye.call(e,me)&&Ae(t,e)},Re=n(7950);const Fe=["crossAxis","alignment","allowedPlacements","autoAlignment"],Ie=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],Le=["strategy"],ze=["mainAxis","crossAxis","limiter"],Be=["apply"];function Ye(e,t,n){let{reference:r,floating:o}=e;const i=se(t),a=le(t),s=ae(a),l=re(t),u="y"===i,c=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-o.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(oe(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function He(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=ne(t,e),h=fe(p),m=s[f?"floating"===d?"reference":"floating":d],g=pe(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},w=pe(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function We(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ve(e){return U.some((t=>e[t]>=0))}function Ue(e){const t=K(...e.map((e=>e.left))),n=K(...e.map((e=>e.top)));return{x:t,y:n,width:Q(...e.map((e=>e.right)))-t,height:Q(...e.map((e=>e.bottom)))-n}}function $e(e){const t=k(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=h(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=G(n)!==i||G(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function qe(e){return p(e)?e:e.contextElement}function Ke(e){const t=qe(e);if(!h(t))return Z(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=$e(t);let a=(i?G(n.width):n.width)/r,s=(i?G(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Qe=Z(0);function Ge(e){const t=c(e);return w()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qe}function Je(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qe(e);let a=Z(1);t&&(r?p(r)&&(a=Ke(r)):a=Ke(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==c(e))&&t}(i,n,r)?Ge(i):Z(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,d=o.width/a.x,f=o.height/a.y;if(i){const e=c(i),t=r&&p(r)?c(r):r;let n=e,o=M(n);for(;o&&r&&t!==n;){const e=Ke(o),t=o.getBoundingClientRect(),r=k(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=i,u+=a,n=c(o),o=M(n)}}return pe({width:d,height:f,x:l,y:u})}function Ze(e,t){const n=D(e).scrollLeft;return t?t.left+n:Je(d(e)).left+n}function Xe(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Ze(e,r)),y:r.top+t.scrollTop}}function et(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=c(e),r=d(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=w();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=d(e),n=D(e),r=e.ownerDocument.body,o=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ze(e);const s=-n.scrollTop;return"rtl"===k(r).direction&&(a+=Q(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(d(e));else if(p(t))r=function(e,t){const n=Je(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=h(e)?Ke(e):Z(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Ge(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return pe(r)}function tt(e,t){const n=S(e);return!(n===t||!p(n)||x(n))&&("fixed"===k(n).position||tt(n,t))}function nt(e,t,n){const r=h(t),o=d(t),i="fixed"===n,a=Je(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Z(0);if(r||!r&&!i)if(("body"!==u(t)||g(o))&&(s=D(t)),r){const e=Je(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ze(o));const c=!o||r||i?Z(0):Xe(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function rt(e){return"static"===k(e).position}function ot(e,t){if(!h(e)||"fixed"===k(e).position)return null;if(t)return t(e);let n=e.offsetParent;return d(e)===n&&(n=n.ownerDocument.body),n}function it(e,t){const n=c(e);if(v(e))return n;if(!h(e)){let t=S(e);for(;t&&!x(t);){if(p(t)&&!rt(t))return t;t=S(t)}return n}let r=ot(e,t);for(;r&&y(r)&&rt(r);)r=ot(r,t);return r&&x(r)&&rt(r)&&!b(r)?n:r||function(e){let t=S(e);for(;h(t)&&!x(t);){if(b(t))return t;if(v(t))return null;t=S(t)}return null}(e)||n}const at={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=d(r),s=!!t&&v(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Z(1);const f=Z(0),p=h(r);if((p||!p&&!i)&&(("body"!==u(r)||g(a))&&(l=D(r)),h(r))){const e=Je(r);c=Ke(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}const m=!a||p||i?Z(0):Xe(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-l.scrollTop*c.y+f.y+m.y}},getDocumentElement:d,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?v(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=C(e,[],!1).filter((e=>p(e)&&"body"!==u(e))),o=null;const i="fixed"===k(e).position;let a=i?S(e):e;for(;p(a)&&!x(a);){const t=k(a),n=b(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||g(a)&&!n&&tt(e,a))?r=r.filter((e=>e!==a)):o=t,a=S(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=et(t,n,o);return e.top=Q(r.top,e.top),e.right=K(r.right,e.right),e.bottom=K(r.bottom,e.bottom),e.left=Q(r.left,e.left),e}),et(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:it,getElementRects:async function(e){const t=this.getOffsetParent||it,n=this.getDimensions,r=await n(e.floating);return{reference:nt(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$e(e);return{width:t,height:n}},getScale:Ke,isElement:p,isRTL:function(e){return"rtl"===k(e).direction}};function st(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:u=!1}=r,c=qe(e),f=o||a?[...c?C(c):[],...C(t)]:[];f.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)}));const p=c&&l?function(e,t){let n,r=null;const o=d(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),a();const{left:c,top:d,width:f,height:p}=e.getBoundingClientRect();if(l||t(),!f||!p)return;const h={rootMargin:-J(d)+"px "+-J(o.clientWidth-(c+f))+"px "+-J(o.clientHeight-(d+p))+"px "+-J(c)+"px",threshold:Q(0,K(1,u))||1};let m=!0;function g(e){const t=e[0].intersectionRatio;if(t!==u){if(!m)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),1e3)}m=!1}try{r=new IntersectionObserver(g,(0,i.A)((0,i.A)({},h),{},{root:o.ownerDocument}))}catch(y){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),a}(c,n):null;let h,m=-1,g=null;s&&(g=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),n()})),c&&!u&&g.observe(c),g.observe(t));let y=u?Je(e):null;return u&&function t(){const r=Je(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n();y=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach((e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)})),null==p||p(),null==(e=g)||e.disconnect(),g=null,u&&cancelAnimationFrame(h)}}const lt=He,ut=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:l}=t,u=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=re(n),s=oe(n),l="y"===se(n),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=ne(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"===typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"===typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return s===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:(0,i.A)((0,i.A)({},u),{},{placement:s})}}}},ct=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:s,placement:l,platform:u,elements:c}=t,d=ne(e,t),{crossAxis:f=!1,alignment:p,allowedPlacements:h=q,autoAlignment:m=!0}=d,g=(0,o.A)(d,Fe),y=void 0!==p||h===q?function(e,t,n){return(e?[...n.filter((t=>oe(t)===e)),...n.filter((t=>oe(t)!==e))]:n.filter((e=>re(e)===e))).filter((n=>!e||oe(n)===e||!!t&&ce(n)!==n))}(p||null,m,h):h,v=await He(t,g),b=(null==(n=s.autoPlacement)?void 0:n.index)||0,w=y[b];if(null==w)return{};const x=ue(w,a,await(null==u.isRTL?void 0:u.isRTL(c.floating)));if(l!==w)return{reset:{placement:y[0]}};const k=[v[re(w)],v[x[0]],v[x[1]]],D=[...(null==(r=s.autoPlacement)?void 0:r.overflows)||[],{placement:w,overflows:k}],S=y[b+1];if(S)return{data:{index:b+1,overflows:D},reset:{placement:S}};const E=D.map((e=>{const t=oe(e.placement);return[e.placement,t&&f?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),C=(null==(i=E.filter((e=>e[2].slice(0,oe(e[0])?2:3).every((e=>e<=0))))[0])?void 0:i[0])||E[0][0];return C!==l?{data:{index:b+1,overflows:D},reset:{placement:C}}:{}}}},dt=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,s=ne(e,t),{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=s,d=(0,o.A)(s,ze),f={x:n,y:r},p=await He(t,d),h=se(re(a)),m=ie(h);let g=f[m],y=f[h];if(l){const e="y"===m?"bottom":"right";g=te(g+p["y"===m?"top":"left"],g,g-p[e])}if(u){const e="y"===h?"bottom":"right";y=te(y+p["y"===h?"top":"left"],y,y-p[e])}const v=c.fn((0,i.A)((0,i.A)({},t),{},{[m]:g,[h]:y}));return(0,i.A)((0,i.A)({},v),{},{data:{x:v.x-n,y:v.y-r,enabled:{[m]:l,[h]:u}}})}}},ft=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:l,platform:u,elements:c}=t,d=ne(e,t),{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0}=d,v=(0,o.A)(d,Ie);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=re(i),w=se(l),x=re(l)===l,k=await(null==u.isRTL?void 0:u.isRTL(c.floating)),D=h||(x||!y?[de(l)]:function(e){const t=de(e);return[ce(e),t,ce(t)]}(l)),S="none"!==g;!h&&S&&D.push(...function(e,t,n,r){const o=oe(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(re(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(ce)))),i}(l,y,g,k));const E=[l,...D],C=await He(t,v),M=[];let O=(null==(r=a.flip)?void 0:r.overflows)||[];if(f&&M.push(C[b]),p){const e=ue(i,s,k);M.push(C[e[0]],C[e[1]])}if(O=[...O,{placement:i,overflows:M}],!M.every((e=>e<=0))){var N,A;const e=((null==(N=a.flip)?void 0:N.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(A=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(m){case"bestFit":{var P;const e=null==(P=O.filter((e=>{if(S){const t=se(e.placement);return t===w||"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:P[0];e&&(n=e);break}case"initialPlacement":n=l}if(i!==n)return{reset:{placement:n}}}return{}}}},pt=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:l,elements:u}=t,c=ne(e,t),{apply:d=()=>{}}=c,f=(0,o.A)(c,Be),p=await He(t,f),h=re(a),m=oe(a),g="y"===se(a),{width:y,height:v}=s.floating;let b,w;"top"===h||"bottom"===h?(b=h,w=m===(await(null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(w=h,b="end"===m?"top":"bottom");const x=v-p.top-p.bottom,k=y-p.left-p.right,D=K(v-p[b],x),S=K(y-p[w],k),E=!t.middlewareData.shift;let C=D,M=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(M=k),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(C=x),E&&!m){const e=Q(p.left,0),t=Q(p.right,0),n=Q(p.top,0),r=Q(p.bottom,0);g?M=y-2*(0!==e||0!==t?e+t:Q(p.left,p.right)):C=v-2*(0!==n||0!==r?n+r:Q(p.top,p.bottom))}await d((0,i.A)((0,i.A)({},t),{},{availableWidth:M,availableHeight:C}));const O=await l.getDimensions(u.floating);return y!==O.width||v!==O.height?{reset:{rects:!0}}:{}}}},ht=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,r=ne(e,t),{strategy:a="referenceHidden"}=r,s=(0,o.A)(r,Le);switch(a){case"referenceHidden":{const e=We(await He(t,(0,i.A)((0,i.A)({},s),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ve(e)}}}case"escaped":{const e=We(await He(t,(0,i.A)((0,i.A)({},s),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:Ve(e)}}}default:return{}}}}},mt=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=ne(e,t)||{};if(null==c)return{};const f=fe(d),p={x:n,y:r},h=le(o),m=ae(h),g=await s.getDimensions(c),y="y"===h,v=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=a.reference[m]+a.reference[h]-p[h]-a.floating[m],k=p[h]-a.reference[h],D=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let S=D?D[w]:0;S&&await(null==s.isElement?void 0:s.isElement(D))||(S=l.floating[w]||a.floating[m]);const E=x/2-k/2,C=S/2-g[m]/2-1,M=K(f[v],C),O=K(f[b],C),N=M,A=S-g[m]-O,P=S/2-g[m]/2+E,_=te(N,P,A),j=!u.arrow&&null!=oe(o)&&P!==_&&a.reference[m]/2-(P<N?M:O)-g[m]/2<0,T=j?P<N?P-N:P-A:0;return{[h]:p[h]+T,data:(0,i.A)({[h]:_,centerOffset:P-_-T},j&&{alignmentOffset:T}),reset:j}}}),gt=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:r,rects:o,platform:i,strategy:a}=t,{padding:s=2,x:l,y:u}=ne(e,t),c=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),d=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let r=null;for(let o=0;o<t.length;o++){const e=t[o];!r||e.y-r.y>r.height/2?n.push([e]):n[n.length-1].push(e),r=e}return n.map((e=>pe(Ue(e))))}(c),f=pe(Ue(c)),p=fe(s);const h=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===d.length&&d[0].left>d[1].right&&null!=l&&null!=u)return d.find((e=>l>e.left-p.left&&l<e.right+p.right&&u>e.top-p.top&&u<e.bottom+p.bottom))||f;if(d.length>=2){if("y"===se(n)){const e=d[0],t=d[d.length-1],r="top"===re(n),o=e.top,i=t.bottom,a=r?e.left:t.left,s=r?e.right:t.right;return{top:o,bottom:i,left:a,right:s,width:s-a,height:i-o,x:a,y:o}}const e="left"===re(n),t=Q(...d.map((e=>e.right))),r=K(...d.map((e=>e.left))),o=d.filter((n=>e?n.left===r:n.right===t)),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:r,right:t,width:t-r,height:a-i,x:r,y:i}}return f}},floating:r.floating,strategy:a});return o.reference.x!==h.reference.x||o.reference.y!==h.reference.y||o.reference.width!==h.reference.width||o.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},yt=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=ne(e,t),d={x:n,y:r},f=se(o),p=ie(f);let h=d[p],m=d[f];const g=ne(l,t),y="number"===typeof g?{mainAxis:g,crossAxis:0}:(0,i.A)({mainAxis:0,crossAxis:0},g);if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+y.mainAxis,n=a.reference[p]+a.reference[e]-y.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var v,b;const e="y"===p?"width":"height",t=["top","left"].includes(re(o)),n=a.reference[f]-a.floating[e]+(t&&(null==(v=s.offset)?void 0:v[f])||0)+(t?0:y.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[f])||0)-(t?y.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[p]:h,[f]:m}}}},vt=(e,t,n)=>{const r=new Map,o=(0,i.A)({platform:at},n),a=(0,i.A)((0,i.A)({},o.platform),{},{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,l=a.filter(Boolean),u=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Ye(c,r,u),p=r,h={},m=0;for(let g=0;g<l.length;g++){const{name:n,fn:a}=l[g],{x:y,y:v,data:b,reset:w}=await a({x:d,y:f,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});d=null!=y?y:d,f=null!=v?v:f,h=(0,i.A)((0,i.A)({},h),{},{[n]:(0,i.A)((0,i.A)({},h[n]),b)}),w&&m<=50&&(m++,"object"===typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):w.rects),({x:d,y:f}=Ye(c,p,u))),g=-1)}return{x:d,y:f,placement:p,strategy:o,middlewareData:h}})(e,t,(0,i.A)((0,i.A)({},o),{},{platform:a}))};var bt="undefined"!==typeof document?a.useLayoutEffect:a.useEffect;function wt(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,r,o;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!wt(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!wt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function xt(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function kt(e,t){const n=xt(e);return Math.round(t*n)/n}function Dt(e){const t=a.useRef(e);return bt((()=>{t.current=e})),t}const St=(e,t)=>(0,i.A)((0,i.A)({},ut(e)),{},{options:[e,t]}),Et=(e,t)=>(0,i.A)((0,i.A)({},dt(e)),{},{options:[e,t]}),Ct=(e,t)=>(0,i.A)((0,i.A)({},yt(e)),{},{options:[e,t]}),Mt=(e,t)=>(0,i.A)((0,i.A)({},ft(e)),{},{options:[e,t]}),Ot=(e,t)=>(0,i.A)((0,i.A)({},pt(e)),{},{options:[e,t]}),Nt=(e,t)=>(0,i.A)((0,i.A)({},ct(e)),{},{options:[e,t]}),At=(e,t)=>(0,i.A)((0,i.A)({},ht(e)),{},{options:[e,t]}),Pt=(e,t)=>(0,i.A)((0,i.A)({},gt(e)),{},{options:[e,t]}),_t=(e,t)=>(0,i.A)((0,i.A)({},(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"===typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?mt({element:n.current,padding:r}).fn(t):{}:n?mt({element:n,padding:r}).fn(t):{};var o}}))(e)),{},{options:[e,t]}),jt=["render","orientation","loop","rtl","cols","disabledIndices","activeIndex","onNavigate","itemSizes","dense"],Tt=["render"],Rt=["transform"],Ft=["context","width","height","tipRadius","strokeWidth","staticOffset","stroke","d","style"],It=["lockScroll"],Lt=["listRef","overflowRef","onFallbackChange","offset","index","minItemsVisible","referenceOverflowThreshold","scrollRef"];function zt(e){return a.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"===typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const Bt=(0,i.A)({},s),Yt=Bt.useInsertionEffect||(e=>e());function Ht(e){const t=a.useRef((()=>{0}));return Yt((()=>{t.current=e})),a.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}const Wt="ArrowUp",Vt="ArrowDown",Ut="ArrowLeft",$t="ArrowRight";function qt(e,t,n){return Math.floor(e/t)!==n}function Kt(e,t){return t<0||t>=e.current.length}function Qt(e,t){return Jt(e,{disabledIndices:t})}function Gt(e,t){return Jt(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Jt(e,t){let{startingIndex:n=-1,decrement:r=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=n;do{s+=r?-i:i}while(s>=0&&s<=a.length-1&&nn(a,s,o));return s}function Zt(e,t){let{event:n,orientation:r,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:u,prevIndex:c,stopEvent:d=!1}=t,f=c;if(n.key===Wt){if(d&&W(n),-1===c)f=u;else if(f=Jt(e,{startingIndex:f,amount:a,decrement:!0,disabledIndices:s}),o&&(c-a<l||f<0)){const e=c%a,t=u%a,n=u-(t-e);f=t===e?u:t>e?n:n-a}Kt(e,f)&&(f=c)}if(n.key===Vt&&(d&&W(n),-1===c?f=l:(f=Jt(e,{startingIndex:c,amount:a,disabledIndices:s}),o&&c+a>u&&(f=Jt(e,{startingIndex:c%a-a,amount:a,disabledIndices:s}))),Kt(e,f)&&(f=c)),"both"===r){const t=J(c/a);n.key===(i?Ut:$t)&&(d&&W(n),c%a!==a-1?(f=Jt(e,{startingIndex:c,disabledIndices:s}),o&&qt(f,a,t)&&(f=Jt(e,{startingIndex:c-c%a-1,disabledIndices:s}))):o&&(f=Jt(e,{startingIndex:c-c%a-1,disabledIndices:s})),qt(f,a,t)&&(f=c)),n.key===(i?$t:Ut)&&(d&&W(n),c%a!==0?(f=Jt(e,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&qt(f,a,t)&&(f=Jt(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s}))):o&&(f=Jt(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s})),qt(f,a,t)&&(f=c));const r=J(u/a)===t;Kt(e,f)&&(f=o&&r?n.key===(i?$t:Ut)?u:Jt(e,{startingIndex:c-c%a-1,disabledIndices:s}):c)}return f}function Xt(e,t,n){const r=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:s}=e,l=!1;for(n&&(o=0);!l;){const e=[];for(let n=0;n<a;n++)for(let r=0;r<s;r++)e.push(o+n+r*t);o%t+a<=t&&e.every((e=>null==r[e]))?(e.forEach((e=>{r[e]=i})),l=!0):o++}})),[...r]}function en(e,t,n,r,o){if(-1===e)return-1;const i=n.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*r:i;case"br":return n.lastIndexOf(e)}}function tn(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function nn(e,t,n){if(n)return n.includes(t);const r=e[t];return null==r||r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")}var rn="undefined"!==typeof document?a.useLayoutEffect:a.useEffect;function on(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 an=a.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function sn(e){const{children:t,elementsRef:n,labelsRef:r}=e,[o,i]=a.useState((()=>new Map)),s=a.useCallback((e=>{i((t=>new Map(t).set(e,null)))}),[]),l=a.useCallback((e=>{i((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return rn((()=>{const e=new Map(o);Array.from(e.keys()).sort(on).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,r]of e.entries())if(r!==t.get(n))return!1;return!0}(o,e)||i(e)}),[o]),a.createElement(an.Provider,{value:a.useMemo((()=>({register:s,unregister:l,map:o,elementsRef:n,labelsRef:r})),[s,l,o,n,r])},t)}function ln(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:r,map:o,elementsRef:i,labelsRef:s}=a.useContext(an),[l,u]=a.useState(null),c=a.useRef(null),d=a.useCallback((e=>{if(c.current=e,null!==l&&(i.current[l]=e,s)){var n;const r=void 0!==t;s.current[l]=r?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,i,s,t]);return rn((()=>{const e=c.current;if(e)return n(e),()=>{r(e)}}),[n,r]),rn((()=>{const e=c.current?o.get(c.current):null;null!=e&&u(e)}),[o]),a.useMemo((()=>({ref:d,index:null==l?-1:l})),[l,d])}function un(e,t){return"function"===typeof e?e(t):e?a.cloneElement(e,t):a.createElement("div",t)}const cn=a.createContext({activeIndex:0,onNavigate:()=>{}}),dn=[Ut,$t],fn=[Wt,Vt],pn=[...dn,...fn],hn=a.forwardRef((function(e,t){const{render:n,orientation:r="both",loop:s=!0,rtl:l=!1,cols:u=1,disabledIndices:c,activeIndex:d,onNavigate:f,itemSizes:p,dense:h=!1}=e,m=(0,o.A)(e,jt),[g,y]=a.useState(0),v=null!=d?d:g,b=Ht(null!=f?f:y),w=a.useRef([]),x=n&&"function"!==typeof n?n.props:{},k=a.useMemo((()=>({activeIndex:v,onNavigate:b})),[v,b]),D=u>1;const S=(0,i.A)((0,i.A)((0,i.A)({},m),x),{},{ref:t,"aria-orientation":"both"===r?void 0:r,onKeyDown(e){null==m.onKeyDown||m.onKeyDown(e),null==x.onKeyDown||x.onKeyDown(e),function(e){if(!pn.includes(e.key))return;let t=v;const n=Qt(w,c),o=Gt(w,c),i=l?Ut:$t,a=l?$t:Ut;if(D){const a=p||Array.from({length:w.current.length},(()=>({width:1,height:1}))),d=Xt(a,u,h),f=d.findIndex((e=>null!=e&&!nn(w.current,e,c))),m=d.reduce(((e,t,n)=>null==t||nn(w.current,t,c)?e:n),-1),g=d[Zt({current:d.map((e=>e?w.current[e]:null))},{event:e,orientation:r,loop:s,rtl:l,cols:u,disabledIndices:tn([...c||w.current.map(((e,t)=>nn(w.current,t)?t:void 0)),void 0],d),minIndex:f,maxIndex:m,prevIndex:en(v>o?n:v,a,d,u,e.key===Vt?"bl":e.key===i?"tr":"tl")})];null!=g&&(t=g)}const d={horizontal:[i],vertical:[Vt],both:[i,Vt]}[r],f={horizontal:[a],vertical:[Wt],both:[a,Wt]}[r],m=D?pn:{horizontal:dn,vertical:fn,both:pn}[r];var g;t===v&&[...d,...f].includes(e.key)&&(t=s&&t===o&&d.includes(e.key)?n:s&&t===n&&f.includes(e.key)?o:Jt(w,{startingIndex:t,decrement:f.includes(e.key),disabledIndices:c})),t===v||Kt(w,t)||(e.stopPropagation(),m.includes(e.key)&&e.preventDefault(),b(t),null==(g=w.current[t])||g.focus())}(e)}});return a.createElement(cn.Provider,{value:k},a.createElement(sn,{elementsRef:w},un(n,S)))})),mn=a.forwardRef((function(e,t){const{render:n}=e,r=(0,o.A)(e,Tt),s=n&&"function"!==typeof n?n.props:{},{activeIndex:l,onNavigate:u}=a.useContext(cn),{ref:c,index:d}=ln(),f=zt([c,t,s.ref]),p=l===d;return un(n,(0,i.A)((0,i.A)((0,i.A)({},r),s),{},{ref:f,tabIndex:p?0:-1,"data-active":p?"":void 0,onFocus(e){null==r.onFocus||r.onFocus(e),null==s.onFocus||s.onFocus(e),u(d)}}))}));function gn(){return gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gn.apply(this,arguments)}let yn=!1,vn=0;const bn=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vn++;const wn=Bt.useId||function(){const[e,t]=a.useState((()=>yn?bn():void 0));return rn((()=>{null==e&&t(bn())}),[]),a.useEffect((()=>{yn=!0}),[]),e};const xn=a.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:r},middlewareData:{arrow:s,shift:l}},width:u=14,height:c=7,tipRadius:d=0,strokeWidth:f=0,staticOffset:p,stroke:h,d:m,style:{transform:g}={}}=e,y=(0,o.A)(e.style,Rt),v=(0,o.A)(e,Ft);const b=wn(),[w,x]=a.useState(!1);if(rn((()=>{if(!r)return;"rtl"===k(r).direction&&x(!0)}),[r]),!r)return null;const[D,S]=n.split("-"),E="top"===D||"bottom"===D;let C=p;(E&&null!=l&&l.x||!E&&null!=l&&l.y)&&(C=null);const M=2*f,O=M/2,N=u/2*(d/-8+1),A=c/2*d/4,P=!!m,_=C&&"end"===S?"bottom":"top";let j=C&&"end"===S?"right":"left";C&&w&&(j="end"===S?"left":"right");const T=null!=(null==s?void 0:s.x)?C||s.x:"",R=null!=(null==s?void 0:s.y)?C||s.y:"",F=m||"M0,0 H"+u+" L"+(u-N)+","+(c-A)+" Q"+u/2+","+c+" "+N+","+(c-A)+" Z",I={top:P?"rotate(180deg)":"",left:P?"rotate(90deg)":"rotate(-90deg)",bottom:P?"":"rotate(180deg)",right:P?"rotate(-90deg)":"rotate(90deg)"}[D];return a.createElement("svg",gn({},v,{"aria-hidden":!0,ref:t,width:P?u:u+M,height:u,viewBox:"0 0 "+u+" "+(c>u?c:u),style:(0,i.A)({position:"absolute",pointerEvents:"none",[j]:T,[_]:R,[D]:E||P?"100%":"calc(100% - "+M/2+"px)",transform:[I,g].filter((e=>!!e)).join(" ")},y)}),M>0&&a.createElement("path",{clipPath:"url(#"+b+")",fill:"none",stroke:h,strokeWidth:M+(m?0:1),d:F}),a.createElement("path",{stroke:M&&!m?v.fill:"none",d:F}),a.createElement("clipPath",{id:b},a.createElement("rect",{x:-O,y:O*(P?-1:1),width:u+M,height:u})))}));function kn(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}const Dn=a.createContext(null),Sn=a.createContext(null),En=()=>{var e;return(null==(e=a.useContext(Dn))?void 0:e.id)||null},Cn=()=>a.useContext(Sn);function Mn(e){const t=wn(),n=Cn(),r=En(),o=e||r;return rn((()=>{const e={id:t,parentId:o};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,o]),t}function On(e){const{children:t,id:n}=e,r=En();return a.createElement(Dn.Provider,{value:a.useMemo((()=>({id:n,parentId:r})),[n,r])},t)}function Nn(e){const{children:t}=e,n=a.useRef([]),r=a.useCallback((e=>{n.current=[...n.current,e]}),[]),o=a.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),i=a.useState((()=>kn()))[0];return a.createElement(Sn.Provider,{value:a.useMemo((()=>({nodesRef:n,addNode:r,removeNode:o,events:i})),[r,o,i])},t)}function An(e){return"data-floating-ui-"+e}function Pn(e){const t=(0,a.useRef)(e);return rn((()=>{t.current=e})),t}const _n=An("safe-polygon");function jn(e,t,n){return n&&!I(n)?0:"number"===typeof e?e:null==e?void 0:e[t]}function Tn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,events:s,elements:l}=e,{enabled:u=!0,delay:c=0,handleClose:d=null,mouseOnly:f=!1,restMs:h=0,move:m=!0}=t,g=Cn(),y=En(),v=Pn(d),b=Pn(c),w=Pn(n),x=a.useRef(),k=a.useRef(-1),D=a.useRef(),S=a.useRef(-1),E=a.useRef(!0),C=a.useRef(!1),M=a.useRef((()=>{})),O=a.useRef(!1),A=a.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);a.useEffect((()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(k.current),clearTimeout(S.current),E.current=!0,O.current=!1)}}),[u,s]),a.useEffect((()=>{if(!u)return;if(!v.current)return;if(!n)return;function e(e){A()&&r(!1,e,"hover")}const t=L(l.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[l.floating,n,r,u,v,A]);const P=a.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const o=jn(b.current,"close",x.current);o&&!D.current?(clearTimeout(k.current),k.current=window.setTimeout((()=>r(!1,e,n)),o)):t&&(clearTimeout(k.current),r(!1,e,n))}),[b,r]),_=Ht((()=>{M.current(),D.current=void 0})),j=Ht((()=>{if(C.current){const e=L(l.floating).body;e.style.pointerEvents="",e.removeAttribute(_n),C.current=!1}})),T=Ht((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));a.useEffect((()=>{if(u&&p(l.domReference)){var e;const r=l.domReference;return n&&r.addEventListener("mouseleave",s),null==(e=l.floating)||e.addEventListener("mouseleave",s),m&&r.addEventListener("mousemove",t,{once:!0}),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",a),()=>{var e;n&&r.removeEventListener("mouseleave",s),null==(e=l.floating)||e.removeEventListener("mouseleave",s),m&&r.removeEventListener("mousemove",t),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",a)}}function t(e){if(clearTimeout(k.current),E.current=!1,f&&!I(x.current)||h>0&&!jn(b.current,"open"))return;const t=jn(b.current,"open",x.current);t?k.current=window.setTimeout((()=>{w.current||r(!0,e,"hover")}),t):n||r(!0,e,"hover")}function a(e){if(T())return;M.current();const t=L(l.floating);if(clearTimeout(S.current),O.current=!1,v.current&&o.current.floatingContext){n||clearTimeout(k.current),D.current=v.current((0,i.A)((0,i.A)({},o.current.floatingContext),{},{tree:g,x:e.clientX,y:e.clientY,onClose(){j(),_(),T()||P(e,!0,"safe-polygon")}}));const r=D.current;return t.addEventListener("mousemove",r),void(M.current=()=>{t.removeEventListener("mousemove",r)})}("touch"!==x.current||!N(l.floating,e.relatedTarget))&&P(e)}function s(e){T()||o.current.floatingContext&&(null==v.current||v.current((0,i.A)((0,i.A)({},o.current.floatingContext),{},{tree:g,x:e.clientX,y:e.clientY,onClose(){j(),_(),T()||P(e)}}))(e))}}),[l,u,e,f,h,m,P,_,j,r,n,w,g,b,v,o,T]),rn((()=>{var e;if(u&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&A()){C.current=!0;const e=l.floating;if(p(l.domReference)&&e){var t;const n=L(l.floating).body;n.setAttribute(_n,"");const r=l.domReference,o=null==g||null==(t=g.nodesRef.current.find((e=>e.id===y)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}),[u,n,y,l,g,v,A]),rn((()=>{n||(x.current=void 0,O.current=!1,_(),j())}),[n,_,j]),a.useEffect((()=>()=>{_(),clearTimeout(k.current),clearTimeout(S.current),j()}),[u,l.domReference,_,j]);const R=a.useMemo((()=>{function e(e){x.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){E.current||w.current||r(!0,t,"hover")}f&&!I(x.current)||n||0===h||O.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(S.current),"touch"===x.current?o():(O.current=!0,S.current=window.setTimeout(o,h)))}}}),[f,r,n,w,h]),F=a.useMemo((()=>({onMouseEnter(){clearTimeout(k.current)},onMouseLeave(e){T()||P(e.nativeEvent,!1)}})),[P,T]);return a.useMemo((()=>u?{reference:R,floating:F}:{}),[u,R,F])}const Rn=()=>{},Fn=a.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Rn,setState:Rn,isInstantPhase:!1}),In=()=>a.useContext(Fn);function Ln(e){const{children:t,delay:n,timeoutMs:r=0}=e,[o,s]=a.useReducer(((e,t)=>(0,i.A)((0,i.A)({},e),t)),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),l=a.useRef(null),u=a.useCallback((e=>{s({currentId:e})}),[]);return rn((()=>{o.currentId?null===l.current?l.current=o.currentId:o.isInstantPhase||s({isInstantPhase:!0}):(o.isInstantPhase&&s({isInstantPhase:!1}),l.current=null)}),[o.currentId,o.isInstantPhase]),a.createElement(Fn.Provider,{value:a.useMemo((()=>(0,i.A)((0,i.A)({},o),{},{setState:s,setCurrentId:u})),[o,u])},t)}function zn(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,floatingId:o}=e,{id:i,enabled:a=!0}=t,s=null!=i?i:o,l=In(),{currentId:u,setCurrentId:c,initialDelay:d,setState:f,timeoutMs:p}=l;return rn((()=>{a&&u&&(f({delay:{open:1,close:jn(d,"close")}}),u!==s&&r(!1))}),[a,s,r,f,u,d]),rn((()=>{function e(){r(!1),f({delay:d,currentId:null})}if(a&&u&&!n&&u===s){if(p){const t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}}),[a,n,f,u,s,r,d,p]),rn((()=>{a&&c!==Rn&&n&&c(s)}),[a,n,c,s]),l}let Bn=0;function Yn(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:r=!0,sync:o=!1}=t;r&&cancelAnimationFrame(Bn);const i=()=>null==e?void 0:e.focus({preventScroll:n});o?i():Bn=requestAnimationFrame(i)}function Hn(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),r=n;for(;r.length;)r=e.filter((e=>{var t;return null==(t=r)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(r);return n}let Wn=new WeakMap,Vn=new WeakSet,Un={},$n=0;const qn=()=>"undefined"!==typeof HTMLElement&&"inert"in HTMLElement.prototype,Kn=e=>e&&(e.host||Kn(e.parentNode)),Qn=(e,t)=>t.map((t=>{if(e.contains(t))return t;const n=Kn(t);return e.contains(n)?n:null})).filter((e=>null!=e));function Gn(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=L(e[0]).body;return function(e,t,n,r){const o="data-floating-ui-inert",i=r?"inert":n?"aria-hidden":null,a=Qn(t,e),s=new Set,l=new Set(a),c=[];Un[o]||(Un[o]=new WeakMap);const d=Un[o];return a.forEach((function e(t){t&&!s.has(t)&&(s.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!l.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==u(t))if(s.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,r=(Wn.get(t)||0)+1,a=(d.get(t)||0)+1;Wn.set(t,r),d.set(t,a),c.push(t),1===r&&n&&Vn.add(t),1===a&&t.setAttribute(o,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),s.clear(),$n++,()=>{c.forEach((e=>{const t=(Wn.get(e)||0)-1,n=(d.get(e)||0)-1;Wn.set(e,t),d.set(e,n),t||(!Vn.has(e)&&i&&e.removeAttribute(i),Vn.delete(e)),n||e.removeAttribute(o)})),$n--,$n||(Wn=new WeakMap,Wn=new WeakMap,Vn=new WeakSet,Un={})}}(e.concat(Array.from(r.querySelectorAll("[aria-live]"))),r,t,n)}const Jn=()=>({getShadowRoot:!0,displayCheck:"function"===typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Zn(e,t){const n=je(e,Jn());"prev"===t&&n.reverse();const r=n.indexOf(O(L(e)));return n.slice(r+1)[0]}function Xn(){return Zn(document.body,"next")}function er(){return Zn(document.body,"prev")}function tr(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!N(n,r)}function nr(e){je(e,Jn()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function rr(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 or={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 ir(e){"Tab"===e.key&&(e.target,clearTimeout(undefined))}const ar=a.forwardRef((function(e,t){const[n,r]=a.useState();rn((()=>(T()&&r("button"),document.addEventListener("keydown",ir),()=>{document.removeEventListener("keydown",ir)})),[]);const o={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[An("focus-guard")]:"",style:or};return a.createElement("span",gn({},e,o))})),sr=a.createContext(null),lr=An("portal");function ur(e){void 0===e&&(e={});const{id:t,root:n}=e,r=wn(),o=dr(),[i,s]=a.useState(null),l=a.useRef(null);return rn((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{l.current=null}))}),[i]),rn((()=>{if(!r)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=r,n.setAttribute(lr,""),e.appendChild(n),l.current=n,s(n)}),[t,r]),rn((()=>{if(null===n)return;if(!r)return;if(l.current)return;let e=n||(null==o?void 0:o.portalNode);e&&!p(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const a=document.createElement("div");a.id=r,a.setAttribute(lr,""),e=i||e,e.appendChild(a),l.current=a,s(a)}),[t,n,r,o]),i}function cr(e){const{children:t,id:n,root:r,preserveTabOrder:o=!0}=e,i=ur({id:n,root:r}),[s,l]=a.useState(null),u=a.useRef(null),c=a.useRef(null),d=a.useRef(null),f=a.useRef(null),p=null==s?void 0:s.modal,h=null==s?void 0:s.open,m=!!s&&!s.modal&&s.open&&o&&!(!r&&!i);return a.useEffect((()=>{if(i&&o&&!p)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){if(i&&tr(e)){("focusin"===e.type?rr:nr)(i)}}}),[i,o,p]),a.useEffect((()=>{i&&(h||rr(i))}),[h,i]),a.createElement(sr.Provider,{value:a.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:u,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:f,portalNode:i,setFocusManagerState:l})),[o,i])},m&&i&&a.createElement(ar,{"data-type":"outside",ref:u,onFocus:e=>{if(tr(e,i)){var t;null==(t=d.current)||t.focus()}else{const e=er()||(null==s?void 0:s.refs.domReference.current);null==e||e.focus()}}}),m&&i&&a.createElement("span",{"aria-owns":i.id,style:or}),i&&Re.createPortal(t,i),m&&i&&a.createElement(ar,{"data-type":"outside",ref:c,onFocus:e=>{if(tr(e,i)){var t;null==(t=f.current)||t.focus()}else{const t=Xn()||(null==s?void 0:s.refs.domReference.current);null==t||t.focus(),(null==s?void 0:s.closeOnFocusOut)&&(null==s||s.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const dr=()=>a.useContext(sr),fr="data-floating-ui-focusable";function pr(e){return e?e.hasAttribute(fr)?e:e.querySelector("["+fr+"]")||e:null}const hr=20;let mr=[];function gr(e){mr=mr.filter((e=>e.isConnected));let t=e;if(t&&"body"!==u(t)){if(!Te(t,Jn())){const e=je(t,Jn())[0];e&&(t=e)}mr.push(t),mr.length>hr&&(mr=mr.slice(-hr))}}function yr(){return mr.slice().reverse().find((e=>e.isConnected))}const vr=a.forwardRef((function(e,t){return a.createElement("button",gn({},e,{type:"button",ref:t,tabIndex:-1,style:or}))}));function br(e){const{context:t,children:n,disabled:r=!1,order:o=["content"],guards:i=!0,initialFocus:s=0,returnFocus:l=!0,restoreFocus:u=!1,modal:c=!0,visuallyHiddenDismiss:d=!1,closeOnFocusOut:f=!0}=e,{open:p,refs:m,nodeId:g,onOpenChange:y,events:v,dataRef:b,floatingId:w,elements:{domReference:x,floating:k}}=t,D="number"===typeof s&&s<0,S=V(x)&&D,E=!qn()||i,C=Pn(o),M=Pn(s),A=Pn(l),P=Cn(),T=dr(),R=a.useRef(null),F=a.useRef(null),I=a.useRef(!1),z=a.useRef(!1),Y=a.useRef(-1),H=null!=T,U=pr(k),$=Ht((function(e){return void 0===e&&(e=U),e?je(e,Jn()):[]})),q=Ht((e=>{const t=$(e);return C.current.map((e=>x&&"reference"===e?x:U&&"floating"===e?U:t)).filter(Boolean).flat()}));function K(e){return!r&&d&&c?a.createElement(vr,{ref:"start"===e?R:F,onClick:e=>y(!1,e.nativeEvent)},"string"===typeof d?d:"Dismiss"):null}a.useEffect((()=>{if(r)return;if(!c)return;function e(e){if("Tab"===e.key){N(U,O(L(U)))&&0===$().length&&!S&&W(e);const t=q(),n=B(e);"reference"===C.current[0]&&n===x&&(W(e),e.shiftKey?Yn(t[t.length-1]):Yn(t[1])),"floating"===C.current[1]&&n===U&&e.shiftKey&&(W(e),Yn(t[0]))}}const t=L(U);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[r,x,U,c,C,S,$,q]),a.useEffect((()=>{if(!r&&k)return k.addEventListener("focusin",e),()=>{k.removeEventListener("focusin",e)};function e(e){const t=B(e),n=$().indexOf(t);-1!==n&&(Y.current=n)}}),[r,k,$]),a.useEffect((()=>{if(!r&&f)return k&&h(x)?(x.addEventListener("focusout",t),x.addEventListener("pointerdown",e),k.addEventListener("focusout",t),()=>{x.removeEventListener("focusout",t),x.removeEventListener("pointerdown",e),k.removeEventListener("focusout",t)}):void 0;function e(){z.current=!0,setTimeout((()=>{z.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=!(N(x,t)||N(k,t)||N(t,k)||N(null==T?void 0:T.portalNode,t)||null!=t&&t.hasAttribute(An("focus-guard"))||P&&(Hn(P.nodesRef.current,g).find((e=>{var n,r;return N(null==(n=e.context)?void 0:n.elements.floating,t)||N(null==(r=e.context)?void 0:r.elements.domReference,t)}))||function(e,t){var n;let r=[],o=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(r=r.concat(t))}return r}(P.nodesRef.current,g).find((e=>{var n,r;return(null==(n=e.context)?void 0:n.elements.floating)===t||(null==(r=e.context)?void 0:r.elements.domReference)===t}))));if(u&&n&&O(L(U))===L(U).body){h(U)&&U.focus();const e=Y.current,t=$(),n=t[e]||t[t.length-1]||U;h(n)&&n.focus()}!S&&c||!t||!n||z.current||t===yr()||(I.current=!0,y(!1,e,"focus-out"))}))}}),[r,x,k,U,c,g,P,T,y,f,u,$,S]),a.useEffect((()=>{var e;if(r)return;const t=Array.from((null==T||null==(e=T.portalNode)?void 0:e.querySelectorAll("["+An("portal")+"]"))||[]);if(k){const e=[k,...t,R.current,F.current,C.current.includes("reference")||S?x:null].filter((e=>null!=e)),n=c||S?Gn(e,E,!E):Gn(e);return()=>{n()}}}),[r,x,k,c,C,T,S,E]),rn((()=>{if(r||!h(U))return;const e=O(L(U));queueMicrotask((()=>{const t=q(U),n=M.current,r=("number"===typeof n?t[n]:n.current)||U,o=N(U,e);D||o||!p||Yn(r,{preventScroll:r===U})}))}),[r,p,U,D,q,M]),rn((()=>{if(r||!U)return;let e=!1;const t=L(U),n=O(t);let o=b.current.openEvent;function i(t){let{open:n,reason:r,event:i,nested:a}=t;n&&(o=i),"escape-key"===r&&m.domReference.current&&gr(m.domReference.current),"hover"===r&&"mouseleave"===i.type&&(I.current=!0),"outside-press"===r&&(a?(I.current=!1,e=!0):I.current=!(_(i)||j(i)))}gr(n),v.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,or),H&&x&&x.insertAdjacentElement("afterend",a),()=>{v.off("openchange",i);const n=O(t),r=N(k,n)||P&&Hn(P.nodesRef.current,g).some((e=>{var t;return N(null==(t=e.context)?void 0:t.elements.floating,n)}));(r||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&gr(m.domReference.current);const s="boolean"===typeof A.current?yr()||a:A.current.current||a;queueMicrotask((()=>{A.current&&!I.current&&h(s)&&(s===n||n===t.body||r)&&s.focus({preventScroll:e}),a.remove()}))}}),[r,k,U,A,b,m,v,P,g,H,x]),a.useEffect((()=>{queueMicrotask((()=>{I.current=!1}))}),[r]),rn((()=>{if(!r&&T)return T.setFocusManagerState({modal:c,closeOnFocusOut:f,open:p,onOpenChange:y,refs:m}),()=>{T.setFocusManagerState(null)}}),[r,T,c,p,y,m,f]),rn((()=>{if(r)return;if(!U)return;if("function"!==typeof MutationObserver)return;if(D)return;const e=()=>{const e=U.getAttribute("tabindex"),t=$(),n=O(L(k)),r=t.indexOf(n);-1!==r&&(Y.current=r),C.current.includes("floating")||n!==m.domReference.current&&0===t.length?"0"!==e&&U.setAttribute("tabindex","0"):"-1"!==e&&U.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(U,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[r,k,U,m,C,$,D]);const Q=!r&&E&&(!c||!S)&&(H||c);return a.createElement(a.Fragment,null,Q&&a.createElement(ar,{"data-type":"inside",ref:null==T?void 0:T.beforeInsideRef,onFocus:e=>{if(c){const e=q();Yn("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(I.current=!1,tr(e,T.portalNode)){const e=Xn()||x;null==e||e.focus()}else{var t;null==(t=T.beforeOutsideRef.current)||t.focus()}}}),!S&&K("start"),n,K("end"),Q&&a.createElement(ar,{"data-type":"inside",ref:null==T?void 0:T.afterInsideRef,onFocus:e=>{if(c)Yn(q()[0]);else if(null!=T&&T.preserveTabOrder&&T.portalNode)if(f&&(I.current=!0),tr(e,T.portalNode)){const e=er()||x;null==e||e.focus()}else{var t;null==(t=T.afterOutsideRef.current)||t.focus()}}}))}let wr=0;let xr=()=>{};const kr=a.forwardRef((function(e,t){const{lockScroll:n=!1}=e,r=(0,o.A)(e,It);return rn((()=>{if(n)return wr++,1===wr&&(xr=function(){const e=/iP(hone|ad|od)|iOS/.test(A()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",r=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",r&&(t[n]=r+"px"),e){var a,s;const e=(null==(a=window.visualViewport)?void 0:a.offsetLeft)||0,n=(null==(s=window.visualViewport)?void 0:s.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(o-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}()),()=>{wr--,0===wr&&xr()}}),[n]),a.createElement("div",gn({ref:t},r,{style:(0,i.A)({position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0},r.style)}))}));function Dr(e){return h(e.target)&&"BUTTON"===e.target.tagName}function Sr(e){return H(e)}function Er(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,dataRef:o,elements:{domReference:i}}=e,{enabled:s=!0,event:l="click",toggle:u=!0,ignoreMouse:c=!1,keyboardHandlers:d=!0,stickIfOpen:f=!0}=t,p=a.useRef(),h=a.useRef(!1),m=a.useMemo((()=>({onPointerDown(e){p.current=e.pointerType},onMouseDown(e){const t=p.current;0===e.button&&"click"!==l&&(I(t,!0)&&c||(!n||!u||o.current.openEvent&&f&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),r(!0,e.nativeEvent,"click")):r(!1,e.nativeEvent,"click")))},onClick(e){const t=p.current;"mousedown"===l&&p.current?p.current=void 0:I(t,!0)&&c||(!n||!u||o.current.openEvent&&f&&"click"!==o.current.openEvent.type?r(!0,e.nativeEvent,"click"):r(!1,e.nativeEvent,"click"))},onKeyDown(e){p.current=void 0,e.defaultPrevented||!d||Dr(e)||(" "!==e.key||Sr(i)||(e.preventDefault(),h.current=!0),"Enter"===e.key&&r(!n||!u,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Dr(e)||Sr(i)||" "===e.key&&h.current&&(h.current=!1,r(!n||!u,e.nativeEvent,"click"))}})),[o,i,l,c,d,r,n,f,u]);return a.useMemo((()=>s?{reference:m}:{}),[s,m])}function Cr(e){return null!=e&&null!=e.clientX}function Mr(e,t){void 0===t&&(t={});const{open:n,dataRef:r,elements:{floating:o,domReference:i},refs:s}=e,{enabled:l=!0,axis:u="both",x:d=null,y:f=null}=t,p=a.useRef(!1),h=a.useRef(null),[m,g]=a.useState(),[y,v]=a.useState([]),b=Ht(((e,t)=>{p.current||r.current.openEvent&&!Cr(r.current.openEvent)||s.setPositionReference(function(e,t){let n=null,r=null,o=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const a=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},s="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,u=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let c=a.width,d=a.height,f=a.x,p=a.y;return null==n&&t.x&&s&&(n=a.x-t.x),null==r&&t.y&&l&&(r=a.y-t.y),f-=n||0,p-=r||0,c=0,d=0,!o||u?(c="y"===t.axis?a.width:0,d="x"===t.axis?a.height:0,f=s&&null!=t.x?t.x:f,p=l&&null!=t.y?t.y:p):o&&!u&&(d="x"===t.axis?a.height:d,c="y"===t.axis?a.width:c),o=!0,{width:c,height:d,x:f,y:p,top:p,right:f+c,bottom:p+d,left:f}}}}(i,{x:e,y:t,axis:u,dataRef:r,pointerType:m}))})),w=Ht((e=>{null==d&&null==f&&(n?h.current||v([]):b(e.clientX,e.clientY))})),x=I(m)?o:n,k=a.useCallback((()=>{if(!x||!l||null!=d||null!=f)return;const e=c(o);function t(n){const r=B(n);N(o,r)?(e.removeEventListener("mousemove",t),h.current=null):b(n.clientX,n.clientY)}if(!r.current.openEvent||Cr(r.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),h.current=null};return h.current=n,n}s.setPositionReference(i)}),[x,l,d,f,o,r,s,i,b]);a.useEffect((()=>k()),[k,y]),a.useEffect((()=>{l&&!o&&(p.current=!1)}),[l,o]),a.useEffect((()=>{!l&&n&&(p.current=!0)}),[l,n]),rn((()=>{!l||null==d&&null==f||(p.current=!1,b(d,f))}),[l,d,f,b]);const D=a.useMemo((()=>{function e(e){let{pointerType:t}=e;g(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}}),[w]);return a.useMemo((()=>l?{reference:D}:{}),[l,D])}const Or={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Nr={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ar=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 Pr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,elements:o,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:u=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:f="pointerdown",ancestorScroll:m=!1,bubbles:g,capture:y}=t,v=Cn(),b=Ht("function"===typeof u?u:()=>!1),D="function"===typeof u?b:u,E=a.useRef(!1),M=a.useRef(!1),{escapeKey:O,outsidePress:A}=Ar(g),{escapeKey:P,outsidePress:_}=Ar(y),j=a.useRef(!1),T=Ht((e=>{var t;if(!n||!s||!l||"Escape"!==e.key)return;if(j.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,a=v?Hn(v.nodesRef.current,o):[];if(!O&&(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}r(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),R=Ht((e=>{var t;const n=()=>{var t;T(e),null==(t=B(e))||t.removeEventListener("keydown",n)};null==(t=B(e))||t.addEventListener("keydown",n)})),F=Ht((e=>{var t;const n=E.current;E.current=!1;const a=M.current;if(M.current=!1,"click"===c&&a)return;if(n)return;if("function"===typeof D&&!D(e))return;const s=B(e),l="["+An("inert")+"]",u=L(o.floating).querySelectorAll(l);let d=p(s)?s:null;for(;d&&!x(d);){const e=S(d);if(x(e)||!p(e))break;d=e}if(u.length&&p(s)&&!s.matches("html,body")&&!N(s,o.floating)&&Array.from(u).every((e=>!N(d,e))))return;if(h(s)&&H){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,n=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let r=n&&e.offsetX>s.clientWidth;if(n){"rtl"===k(s).direction&&(r=e.offsetX<=s.offsetWidth-s.clientWidth)}if(r||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=v&&Hn(v.nodesRef.current,f).some((t=>{var n;return z(e,null==(n=t.context)?void 0:n.elements.floating)}));if(z(e,o.floating)||z(e,o.domReference)||m)return;const g=v?Hn(v.nodesRef.current,f):[];if(g.length>0){let e=!0;if(g.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}r(!1,e,"outside-press")})),I=Ht((e=>{var t;const n=()=>{var t;F(e),null==(t=B(e))||t.removeEventListener(c,n)};null==(t=B(e))||t.addEventListener(c,n)}));a.useEffect((()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=O,i.current.__outsidePressBubbles=A;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function a(){window.clearTimeout(e),j.current=!0}function u(){e=window.setTimeout((()=>{j.current=!1}),w()?5:0)}const d=L(o.floating);l&&(d.addEventListener("keydown",P?R:T,P),d.addEventListener("compositionstart",a),d.addEventListener("compositionend",u)),D&&d.addEventListener(c,_?I:F,_);let f=[];return m&&(p(o.domReference)&&(f=C(o.domReference)),p(o.floating)&&(f=f.concat(C(o.floating))),!p(o.reference)&&o.reference&&o.reference.contextElement&&(f=f.concat(C(o.reference.contextElement)))),f=f.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),f.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",P?R:T,P),d.removeEventListener("compositionstart",a),d.removeEventListener("compositionend",u)),D&&d.removeEventListener(c,_?I:F,_),f.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,l,D,c,n,r,m,s,O,A,T,P,R,F,_,I]),a.useEffect((()=>{E.current=!1}),[D,c]);const Y=a.useMemo((()=>({onKeyDown:T,[Or[f]]:e=>{d&&r(!1,e.nativeEvent,"reference-press")}})),[T,r,d,f]),H=a.useMemo((()=>({onKeyDown:T,onMouseDown(){M.current=!0},onMouseUp(){M.current=!0},[Nr[c]]:()=>{E.current=!0}})),[T,c]);return a.useMemo((()=>s?{reference:Y,floating:H}:{}),[s,Y,H])}function _r(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=wn(),i=a.useRef({}),[s]=a.useState((()=>kn())),l=null!=En();const[u,c]=a.useState(r.reference),d=Ht(((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:l}),null==n||n(e,t,r)})),f=a.useMemo((()=>({setPositionReference:c})),[]),p=a.useMemo((()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference})),[u,r.reference,r.floating]);return a.useMemo((()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:f})),[t,d,p,s,o,f])}function jr(e){void 0===e&&(e={});const{nodeId:t}=e,n=_r((0,i.A)((0,i.A)({},e),{},{elements:(0,i.A)({reference:null,floating:null},e.elements)})),r=e.rootContext||n,o=r.elements,[s,l]=a.useState(null),[u,c]=a.useState(null),d=(null==o?void 0:o.domReference)||s,f=a.useRef(null),h=Cn();rn((()=>{d&&(f.current=d)}),[d]);const m=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,p]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=a.useState(r);wt(h,r)||m(r);const[g,y]=a.useState(null),[v,b]=a.useState(null),w=a.useCallback((e=>{e!==S.current&&(S.current=e,y(e))}),[]),x=a.useCallback((e=>{e!==E.current&&(E.current=e,b(e))}),[]),k=s||g,D=l||v,S=a.useRef(null),E=a.useRef(null),C=a.useRef(f),M=null!=c,O=Dt(c),N=Dt(o),A=Dt(d),P=a.useCallback((()=>{if(!S.current||!E.current)return;const e={placement:t,strategy:n,middleware:h};N.current&&(e.platform=N.current),vt(S.current,E.current,e).then((e=>{const t=(0,i.A)((0,i.A)({},e),{},{isPositioned:!1!==A.current});_.current&&!wt(C.current,t)&&(C.current=t,Re.flushSync((()=>{p(t)})))}))}),[h,t,n,N,A]);bt((()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,p((e=>(0,i.A)((0,i.A)({},e),{},{isPositioned:!1}))))}),[d]);const _=a.useRef(!1);bt((()=>(_.current=!0,()=>{_.current=!1})),[]),bt((()=>{if(k&&(S.current=k),D&&(E.current=D),k&&D){if(O.current)return O.current(k,D,P);P()}}),[k,D,P,O,M]);const j=a.useMemo((()=>({reference:S,floating:E,setReference:w,setFloating:x})),[w,x]),T=a.useMemo((()=>({reference:k,floating:D})),[k,D]),R=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!T.floating)return e;const t=kt(T.floating,f.x),r=kt(T.floating,f.y);return u?(0,i.A)((0,i.A)({},e),{},{transform:"translate("+t+"px, "+r+"px)"},xt(T.floating)>=1.5&&{willChange:"transform"}):{position:n,left:t,top:r}}),[n,u,T.floating,f.x,f.y]);return a.useMemo((()=>(0,i.A)((0,i.A)({},f),{},{update:P,refs:j,elements:T,floatingStyles:R})),[f,P,j,T,R])}((0,i.A)((0,i.A)({},e),{},{elements:(0,i.A)((0,i.A)({},o),u&&{reference:u})})),g=a.useCallback((e=>{const t=p(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;c(t),m.refs.setReference(t)}),[m.refs]),y=a.useCallback((e=>{(p(e)||null===e)&&(f.current=e,l(e)),(p(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!p(e))&&m.refs.setReference(e)}),[m.refs]),v=a.useMemo((()=>(0,i.A)((0,i.A)({},m.refs),{},{setReference:y,setPositionReference:g,domReference:f})),[m.refs,y,g]),b=a.useMemo((()=>(0,i.A)((0,i.A)({},m.elements),{},{domReference:d})),[m.elements,d]),w=a.useMemo((()=>(0,i.A)((0,i.A)((0,i.A)({},m),r),{},{refs:v,elements:b,nodeId:t})),[m,v,b,t,r]);return rn((()=>{r.dataRef.current.floatingContext=w;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=w)})),a.useMemo((()=>(0,i.A)((0,i.A)({},m),{},{context:w,refs:v,elements:b})),[m,v,b,w])}function Tr(e,t){void 0===t&&(t={});const{open:n,onOpenChange:r,events:o,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:u=!0}=t,d=a.useRef(!1),f=a.useRef(),m=a.useRef(!0);a.useEffect((()=>{if(!l)return;const e=c(s.domReference);function t(){!n&&h(s.domReference)&&s.domReference===O(L(s.domReference))&&(d.current=!0)}function r(){m.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",r,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",r,!0)}}),[s.domReference,n,l]),a.useEffect((()=>{if(l)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(d.current=!0)}}),[o,l]),a.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=a.useMemo((()=>({onPointerDown(e){j(e.nativeEvent)||(m.current=!1)},onMouseLeave(){d.current=!1},onFocus(e){if(d.current)return;const t=B(e.nativeEvent);if(u&&p(t))try{if(T()&&F())throw Error();if(!t.matches(":focus-visible"))return}catch(n){if(!m.current&&!H(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){d.current=!1;const t=e.relatedTarget,n=e.nativeEvent,o=p(t)&&t.hasAttribute(An("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout((()=>{var e;const a=O(s.domReference?s.domReference.ownerDocument:document);(t||a!==s.domReference)&&(N(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,a)||N(s.domReference,a)||o||r(!1,n,"focus"))}))}})),[i,s.domReference,r,u]);return a.useMemo((()=>l?{reference:g}:{}),[l,g])}const Rr="active",Fr="selected";function Ir(e,t,n){const a=new Map,s="item"===n;let l=e;if(s&&e){const{[Rr]:t,[Fr]:n}=e;l=(0,o.A)(e,[Rr,Fr].map(r.A))}return(0,i.A)((0,i.A)((0,i.A)({},"floating"===n&&{tabIndex:-1,[fr]:""}),l),t.map((t=>{const r=t?t[n]:null;return"function"===typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,r]=t;var o;s&&[Rr,Fr].includes(n)||(0===n.indexOf("on")?(a.has(n)||a.set(n,[]),"function"===typeof r&&(null==(o=a.get(n))||o.push(r),e[n]=function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=a.get(n))?void 0:e.map((e=>e(...r))).find((e=>void 0!==e))})):e[n]=r)})),e):e),{}))}function Lr(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)),r=e.map((e=>null==e?void 0:e.item)),o=a.useCallback((t=>Ir(t,e,"reference")),t),i=a.useCallback((t=>Ir(t,e,"floating")),n),s=a.useCallback((t=>Ir(t,e,"item")),r);return a.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s})),[o,i,s])}let zr=!1;function Br(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Yr(e,t){return Br(t,e===Wt||e===Vt,e===Ut||e===$t)}function Hr(e,t,n){return Br(t,e===Vt,n?e===Ut:e===$t)||"Enter"===e||" "===e||""===e}function Wr(e,t,n){return Br(t,n?e===$t:e===Ut,e===Wt)}function Vr(e,t){const{open:n,onOpenChange:r,elements:o}=e,{listRef:s,activeIndex:l,onNavigate:u=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:f=!1,loop:p=!1,nested:m=!1,rtl:g=!1,virtual:y=!1,focusItemOnOpen:v="auto",focusItemOnHover:b=!0,openOnArrowKeyDown:w=!0,disabledIndices:x,orientation:k="vertical",cols:D=1,scrollItemIntoView:S=!0,virtualItemRef:E,itemSizes:C,dense:M=!1}=t;const A=Pn(pr(o.floating)),P=En(),R=Cn(),I=Ht(u),z=V(o.domReference),B=a.useRef(v),Y=a.useRef(null!=d?d:-1),H=a.useRef(null),U=a.useRef(!0),$=a.useRef(I),q=a.useRef(!!o.floating),K=a.useRef(n),Q=a.useRef(!1),G=a.useRef(!1),J=Pn(x),Z=Pn(n),X=Pn(S),ee=Pn(d),[te,ne]=a.useState(),[re,oe]=a.useState(),ie=Ht((function(e,t,n){function r(e){y?(ne(e.id),null==R||R.events.emit("virtualfocus",e),E&&(E.current=e)):Yn(e,{preventScroll:!0,sync:!(!F()||!T())&&(zr||Q.current)})}void 0===n&&(n=!1);const o=e.current[t.current];o&&r(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||r(i);const a=X.current;a&&se&&(n||!U.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"===typeof a?{block:"nearest",inline:"nearest"}:a))}))}));rn((()=>{document.createElement("div").focus({get preventScroll(){return zr=!0,!1}})}),[]),rn((()=>{c&&(n&&o.floating?B.current&&null!=d&&(G.current=!0,Y.current=d,I(d)):q.current&&(Y.current=-1,$.current(null)))}),[c,n,o.floating,d,I]),rn((()=>{if(c&&n&&o.floating)if(null==l){if(Q.current=!1,null!=ee.current)return;if(q.current&&(Y.current=-1,ie(s,Y)),(!K.current||!q.current)&&B.current&&(null!=H.current||!0===B.current&&null==H.current)){let e=0;const t=()=>{if(null==s.current[0]){if(e<2){(e?requestAnimationFrame:queueMicrotask)(t)}e++}else Y.current=null==H.current||Hr(H.current,k,g)||m?Qt(s,J.current):Gt(s,J.current),H.current=null,I(Y.current)};t()}}else Kt(s,l)||(Y.current=l,ie(s,Y,G.current),G.current=!1)}),[c,n,o.floating,l,ee,m,s,k,g,I,ie,J]),rn((()=>{var e;if(!c||o.floating||!R||y||!q.current)return;const t=R.nodesRef.current,n=null==(e=t.find((e=>e.id===P)))||null==(e=e.context)?void 0:e.elements.floating,r=O(L(o.floating)),i=t.some((e=>e.context&&N(e.context.elements.floating,r)));n&&!i&&U.current&&n.focus({preventScroll:!0})}),[c,o.floating,R,P,y]),rn((()=>{if(c&&R&&y&&!P)return R.events.on("virtualfocus",e),()=>{R.events.off("virtualfocus",e)};function e(e){oe(e.id),E&&(E.current=e)}}),[c,R,y,P,E]),rn((()=>{$.current=I,q.current=!!o.floating})),rn((()=>{n||(H.current=null)}),[n]),rn((()=>{K.current=n}),[n]);const ae=null!=l,se=a.useMemo((()=>{function e(e){if(!n)return;const t=s.current.indexOf(e);-1!==t&&I(t)}return(0,i.A)({onFocus(t){let{currentTarget:n}=t;e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})}},b&&{onMouseMove(t){let{currentTarget:n}=t;e(n)},onPointerLeave(e){let{pointerType:t}=e;U.current&&"touch"!==t&&(Y.current=-1,ie(s,Y),I(null),y||Yn(A.current,{preventScroll:!0}))}})}),[n,A,ie,b,s,I,y]),le=Ht((e=>{if(U.current=!1,Q.current=!0,229===e.which)return;if(!Z.current&&e.currentTarget===A.current)return;if(m&&Wr(e.key,k,g))return W(e),r(!1,e.nativeEvent,"list-navigation"),void(h(o.domReference)&&(y?null==R||R.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=Y.current,i=Qt(s,x),a=Gt(s,x);if(z||("Home"===e.key&&(W(e),Y.current=i,I(Y.current)),"End"===e.key&&(W(e),Y.current=a,I(Y.current))),D>1){const t=C||Array.from({length:s.current.length},(()=>({width:1,height:1}))),n=Xt(t,D,M),r=n.findIndex((e=>null!=e&&!nn(s.current,e,x))),o=n.reduce(((e,t,n)=>null==t||nn(s.current,t,x)?e:n),-1),l=n[Zt({current:n.map((e=>null!=e?s.current[e]:null))},{event:e,orientation:k,loop:p,rtl:g,cols:D,disabledIndices:tn([...x||s.current.map(((e,t)=>nn(s.current,t)?t:void 0)),void 0],n),minIndex:r,maxIndex:o,prevIndex:en(Y.current>a?i:Y.current,t,n,D,e.key===Vt?"bl":e.key===(g?Ut:$t)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(Y.current=l,I(Y.current)),"both"===k)return}if(Yr(e.key,k)){if(W(e),n&&!y&&O(e.currentTarget.ownerDocument)===e.currentTarget)return Y.current=Hr(e.key,k,g)?i:a,void I(Y.current);Hr(e.key,k,g)?Y.current=p?t>=a?f&&t!==s.current.length?-1:i:Jt(s,{startingIndex:t,disabledIndices:x}):Math.min(a,Jt(s,{startingIndex:t,disabledIndices:x})):Y.current=p?t<=i?f&&-1!==t?s.current.length:a:Jt(s,{startingIndex:t,decrement:!0,disabledIndices:x}):Math.max(i,Jt(s,{startingIndex:t,decrement:!0,disabledIndices:x})),Kt(s,Y.current)?I(null):I(Y.current)}})),ue=a.useMemo((()=>y&&n&&ae&&{"aria-activedescendant":re||te}),[y,n,ae,re,te]),ce=a.useMemo((()=>(0,i.A)((0,i.A)({"aria-orientation":"both"===k?void 0:k},!V(o.domReference)&&ue),{},{onKeyDown:le,onPointerMove(){U.current=!0}})),[ue,le,o.domReference,k]),de=a.useMemo((()=>{function e(e){"auto"===v&&_(e.nativeEvent)&&(B.current=!0)}return(0,i.A)((0,i.A)({},ue),{},{onKeyDown(e){U.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),i=t||o,a=function(e,t,n){return Br(t,n?e===Ut:e===$t,e===Vt)}(e.key,k,g),l=Wr(e.key,k,g),u=Yr(e.key,k),c=(m?a:u)||"Enter"===e.key||""===e.key.trim();if(y&&n){const t=null==R?void 0:R.nodesRef.current.find((e=>null==e.parentId)),n=R&&t?function(e,t){let n,r=-1;return function t(o,i){i>r&&(n=o,r=i),Hn(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(R.nodesRef.current,t.id):null;if(i&&n&&E){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(a||l){var f,p;const r=(null==(f=n.context)?void 0:f.elements.domReference)===e.currentTarget,o=l&&!r?null==(p=n.context)?void 0:p.elements.domReference:a?s.current.find((e=>(null==e?void 0:e.id)===te)):null;o&&(W(e),o.dispatchEvent(t),oe(void 0))}var h;if((u||o)&&n.context)if(n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return W(e),void(null==(h=n.context.elements.domReference)||h.dispatchEvent(t))}return le(e)}(n||w||!t)&&(c&&(H.current=m&&u?null:e.key),m?a&&(W(e),n?(Y.current=Qt(s,J.current),I(Y.current)):r(!0,e.nativeEvent,"list-navigation")):u&&(null!=d&&(Y.current=d),W(e),!n&&w?r(!0,e.nativeEvent,"list-navigation"):le(e),n&&I(Y.current)))},onFocus(){n&&!y&&I(null)},onPointerDown:function(e){B.current=v,"auto"===v&&j(e.nativeEvent)&&(B.current=!0)},onMouseDown:e,onClick:e})}),[te,ue,le,J,v,s,m,I,r,n,w,k,g,d,R,y,E]);return a.useMemo((()=>c?{reference:de,floating:ce,item:se}:{}),[c,de,ce,se])}const Ur=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $r(e,t){var n;void 0===t&&(t={});const{open:r,floatingId:o}=e,{enabled:s=!0,role:l="dialog"}=t,u=null!=(n=Ur.get(l))?n:l,c=wn(),d=null!=En(),f=a.useMemo((()=>"tooltip"===u||"label"===l?{["aria-"+("label"===l?"labelledby":"describedby")]:r?o:void 0}:(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({"aria-expanded":r?"true":"false","aria-haspopup":"alertdialog"===u?"dialog":u,"aria-controls":r?o:void 0},"listbox"===u&&{role:"combobox"}),"menu"===u&&{id:c}),"menu"===u&&d&&{role:"menuitem"}),"select"===l&&{"aria-autocomplete":"none"}),"combobox"===l&&{"aria-autocomplete":"list"})),[u,o,d,r,c,l]),p=a.useMemo((()=>{const e=(0,i.A)({id:o},u&&{role:u});return"tooltip"===u||"label"===l?e:(0,i.A)((0,i.A)({},e),"menu"===u&&{"aria-labelledby":c})}),[u,o,c,l]),h=a.useCallback((e=>{let{active:t,selected:n}=e;const r=(0,i.A)({role:"option"},t&&{id:o+"-option"});switch(l){case"select":return(0,i.A)((0,i.A)({},r),{},{"aria-selected":t&&n});case"combobox":return(0,i.A)((0,i.A)({},r),t&&{"aria-selected":!0})}return{}}),[o,l]);return a.useMemo((()=>s?{reference:f,floating:p,item:h}:{}),[s,f,p,h])}const qr=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Kr(e,t){return"function"===typeof e?e(t):e}function Qr(e,t){void 0===t&&(t={});const{open:n,elements:{floating:r}}=e,{duration:o=250}=t,i=("number"===typeof o?o:o.close)||0,[s,l]=a.useState("unmounted"),u=function(e,t){const[n,r]=a.useState(e);return e&&!n&&r(!0),a.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>r(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,i);return u||"close"!==s||l("unmounted"),rn((()=>{if(r){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,r]),{isMounted:u,status:s}}function Gr(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:r,close:o,common:s,duration:l=250}=t,u=e.placement,c=u.split("-")[0],d=a.useMemo((()=>({side:c,placement:u})),[c,u]),f="number"===typeof l,p=(f?l:l.open)||0,h=(f?l:l.close)||0,[m,g]=a.useState((()=>(0,i.A)((0,i.A)({},Kr(s,d)),Kr(n,d)))),{isMounted:y,status:v}=Qr(e,{duration:l}),b=Pn(n),w=Pn(r),x=Pn(o),k=Pn(s);return rn((()=>{const e=Kr(b.current,d),t=Kr(x.current,d),n=Kr(k.current,d),r=Kr(w.current,d)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===v&&g((t=>(0,i.A)((0,i.A)({transitionProperty:t.transitionProperty},n),e))),"open"===v&&g((0,i.A)((0,i.A)({transitionProperty:Object.keys(r).map(qr).join(","),transitionDuration:p+"ms"},n),r)),"close"===v){const r=t||e;g((0,i.A)((0,i.A)({transitionProperty:Object.keys(r).map(qr).join(","),transitionDuration:h+"ms"},n),r))}}),[h,x,b,w,k,p,v,d]),{isMounted:y,styles:m}}function Jr(e,t){var n;const{open:r,dataRef:o}=e,{listRef:i,activeIndex:s,onMatch:l,onTypingChange:u,enabled:c=!0,findMatch:d=null,resetMs:f=750,ignoreKeys:p=[],selectedIndex:h=null}=t,m=a.useRef(),g=a.useRef(""),y=a.useRef(null!=(n=null!=h?h:s)?n:-1),v=a.useRef(null),b=Ht(l),w=Ht(u),x=Pn(d),k=Pn(p);rn((()=>{r&&(clearTimeout(m.current),v.current=null,g.current="")}),[r]),rn((()=>{var e;r&&""===g.current&&(y.current=null!=(e=null!=h?h:s)?e:-1)}),[r,h,s]);const D=Ht((e=>{e?o.current.typing||(o.current.typing=e,w(e)):o.current.typing&&(o.current.typing=e,w(e))})),S=Ht((e=>{function t(e,t,n){const r=x.current?x.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return r?e.indexOf(r):-1}const n=i.current;if(g.current.length>0&&" "!==g.current[0]&&(-1===t(n,n,g.current)?D(!1):" "===e.key&&W(e)),null==n||k.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;r&&" "!==e.key&&(W(e),D(!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="",y.current=v.current),g.current+=e.key,clearTimeout(m.current),m.current=setTimeout((()=>{g.current="",y.current=v.current,D(!1)}),f);const o=y.current,a=t(n,[...n.slice((o||0)+1),...n.slice(0,(o||0)+1)],g.current);-1!==a?(b(a),v.current=a):" "!==e.key&&(g.current="",D(!1))})),E=a.useMemo((()=>({onKeyDown:S})),[S]),C=a.useMemo((()=>({onKeyDown:S,onKeyUp(e){" "===e.key&&D(!1)}})),[S,D]);return a.useMemo((()=>c?{reference:E,floating:C}:{}),[c,E,C])}function Zr(e,t){return(0,i.A)((0,i.A)({},e),{},{rects:(0,i.A)((0,i.A)({},e.rects),{},{floating:(0,i.A)((0,i.A)({},e.rects.floating),{},{height:t})})})}const Xr=e=>({name:"inner",options:e,async fn(t){const n=ne(e,t),{listRef:r,overflowRef:a,onFallbackChange:s,offset:l=0,index:u=0,minItemsVisible:c=4,referenceOverflowThreshold:d=0,scrollRef:f}=n,p=(0,o.A)(n,Lt),{rects:h,elements:{floating:m}}=t,g=r.current[u],y=(null==f?void 0:f.current)||m,v=m.clientTop||y.clientTop,b=0!==m.clientTop,w=0!==y.clientTop,x=m===y;if(!g)return{};const k=(0,i.A)((0,i.A)({},t),await St(-g.offsetTop-m.clientTop-h.reference.height/2-g.offsetHeight/2-l).fn(t)),D=await lt(Zr(k,y.scrollHeight+v+m.clientTop),p),S=await lt(k,(0,i.A)((0,i.A)({},p),{},{elementContext:"reference"})),E=Q(0,D.top),C=k.y+E,M=(y.scrollHeight>y.clientHeight?e=>e:G)(Q(0,y.scrollHeight+(b&&x||w?2*v:0)-E-Q(0,D.bottom)));if(y.style.maxHeight=M+"px",y.scrollTop=E,s){const e=y.offsetHeight<g.offsetHeight*K(c,r.current.length)-1||S.top>=-d||S.bottom>=-d;Re.flushSync((()=>s(e)))}return a&&(a.current=await lt(Zr((0,i.A)((0,i.A)({},k),{},{y:C}),y.offsetHeight+v+m.clientTop),p)),{y:C}}});function eo(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:s,scrollRef:l,onChange:u}=t,c=Ht(u),d=a.useRef(!1),f=a.useRef(null),p=a.useRef(null);a.useEffect((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==s.current)return;const n=e.deltaY,r=s.current.top>=-.5,o=s.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,a=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),Re.flushSync((()=>{c((e=>e+Math[l](n,i*a)))}))):/firefox/i.test(P())&&(t.scrollTop+=n))}const t=(null==l?void 0:l.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{f.current=t.scrollTop,null!=s.current&&(p.current=(0,i.A)({},s.current))})),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,r.floating,s,l,c]);const h=a.useMemo((()=>({onKeyDown(){d.current=!0},onWheel(){d.current=!1},onPointerMove(){d.current=!1},onScroll(){const e=(null==l?void 0:l.current)||r.floating;if(s.current&&e&&d.current){if(null!==f.current){const t=e.scrollTop-f.current;(s.current.bottom<-.5&&t<-1||s.current.top<-.5&&t>1)&&Re.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{f.current=e.scrollTop}))}}})),[r.floating,c,s,l]);return a.useMemo((()=>o?{floating:h}:{}),[o,h])}function to(e,t){const[n,r]=e;let o=!1;const i=t.length;for(let a=0,s=i-1;a<i;s=a++){const[e,i]=t[a]||[0,0],[l,u]=t[s]||[0,0];i>=r!==u>=r&&n<=(l-e)*(r-i)/(u-i)+e&&(o=!o)}return o}function no(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:c,elements:d,onClose:f,nodeId:h,tree:m}=e;return function(e){function g(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==c||null==n||null==u)return;const{clientX:y,clientY:v}=e,b=[y,v],w=B(e),x="mouseleave"===e.type,k=N(d.floating,w),D=N(d.domReference,w),S=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),C=c.split("-")[0],M=n>E.right-E.width/2,O=u>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(b,S),P=E.width>S.width,_=E.height>S.height,j=(P?S:E).left,T=(P?S:E).right,R=(_?S:E).top,F=(_?S:E).bottom;if(k&&(i=!0,!x))return;if(D&&(i=!1),D&&!x)return void(i=!0);if(x&&p(e.relatedTarget)&&N(d.floating,e.relatedTarget))return;if(m&&Hn(m.nodesRef.current,h).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===C&&u>=S.bottom-1||"bottom"===C&&u<=S.top+1||"left"===C&&n>=S.right-1||"right"===C&&n<=S.left+1)return g();let I=[];switch(C){case"top":I=[[j,S.top+1],[j,E.bottom-1],[T,E.bottom-1],[T,S.top+1]];break;case"bottom":I=[[j,E.top+1],[j,S.bottom-1],[T,S.bottom-1],[T,E.top+1]];break;case"left":I=[[E.right-1,F],[E.right-1,R],[S.left+1,R],[S.left+1,F]];break;case"right":I=[[S.right-1,F],[S.right-1,R],[E.left+1,R],[E.left+1,F]]}if(!to([y,v],I)){if(i&&!A)return g();if(!x&&r){const t=function(e,t){const n=performance.now(),r=n-l;if(null===a||null===s||0===r)return a=e,s=t,l=n,null;const o=e-a,i=t-s,u=Math.sqrt(o*o+i*i);return a=e,s=t,l=n,u/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return g()}to([y,v],function(e){let[n,r]=e;switch(C){case"top":return[[P?n+t/2:M?n+4*t:n-4*t,r+t+1],[P?n-t/2:M?n+4*t:n-4*t,r+t+1],...[[E.left,M||P?E.bottom-t:E.top],[E.right,M?P?E.bottom-t:E.top:E.bottom-t]]];case"bottom":return[[P?n+t/2:M?n+4*t:n-4*t,r-t],[P?n-t/2:M?n+4*t:n-4*t,r-t],...[[E.left,M||P?E.top+t:E.bottom],[E.right,M?P?E.top+t:E.bottom:E.top+t]]];case"left":{const e=[n+t+1,_?r+t/2:O?r+4*t:r-4*t],o=[n+t+1,_?r-t/2:O?r+4*t:r-4*t];return[...[[O||_?E.right-t:E.left,E.top],[O?_?E.right-t:E.left:E.right-t,E.bottom]],e,o]}case"right":return[[n-t,_?r+t/2:O?r+4*t:r-4*t],[n-t,_?r-t/2:O?r+4*t:r-4*t],...[[O||_?E.left+t:E.right,E.top],[O?_?E.left+t:E.right:E.left+t,E.bottom]]]}}([n,u]))?!i&&r&&(o=window.setTimeout(g,40)):g()}}};return u.__options={blockPointerEvents:n},u}},3393:function(e,t,n){!function(e,t){"use strict";function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){return s(e)||l(e,t)||u(e,t)||d()}function s(e){if(Array.isArray(e))return e}function l(e,t){var n=e&&("undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}function u(e,t){if(e){if("string"===typeof e)return c(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)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){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 f(e,t){return e(t={exports:{}},t.exports),t.exports}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var p="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function h(){}function m(){}m.resetWarningCache=h;var g=function(){function e(e,t,n,r,o,i){if(i!==p){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,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:m,resetWarningCache:h};return n.PropTypes=n,n},y=f((function(e){e.exports=g()})),v=function(e){var n=t.useRef(e);return t.useEffect((function(){n.current=e}),[e]),n.current},b=function(e){return null!==e&&"object"===o(e)},w=function(e){return b(e)&&"function"===typeof e.then},x=function(e){return b(e)&&"function"===typeof e.elements&&"function"===typeof e.createToken&&"function"===typeof e.createPaymentMethod&&"function"===typeof e.confirmCardPayment},k="[object Object]",D=function e(t,n){if(!b(t)||!b(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===k;if(o!==(Object.prototype.toString.call(n)===k))return!1;if(!o&&!r)return t===n;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(var s={},l=0;l<i.length;l+=1)s[i[l]]=!0;for(var u=0;u<a.length;u+=1)s[a[u]]=!0;var c=Object.keys(s);if(c.length!==i.length)return!1;var d=t,f=n,p=function(t){return e(d[t],f[t])};return c.every(p)},S=function(e,t,n){return b(e)?Object.keys(e).reduce((function(o,a){var s=!b(t)||!D(e[a],t[a]);return n.includes(a)?(s&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),o):s?r(r({},o||{}),{},i({},a,e[a])):o}),null):null},E="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",C=function(e){if(null===e||x(e))return e;throw new Error(E)},M=function(e){if(w(e))return{tag:"async",stripePromise:Promise.resolve(e).then(C)};var t=C(e);return null===t?{tag:"empty"}:{tag:"sync",stripe:t}},O=t.createContext(null);O.displayName="ElementsContext";var N=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},A=t.createContext(null);A.displayName="CartElementContext";var P=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},_=function(e){var n=e.stripe,r=e.options,o=e.children,i=t.useMemo((function(){return M(n)}),[n]),s=a(t.useState(null),2),l=s[0],u=s[1],c=a(t.useState(null),2),d=c[0],f=c[1],p=a(t.useState((function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(r):null}})),2),h=p[0],m=p[1];t.useEffect((function(){var e=!0,t=function(e){m((function(t){return t.stripe?t:{stripe:e,elements:e.elements(r)}}))};return"async"!==i.tag||h.stripe?"sync"!==i.tag||h.stripe||t(i.stripe):i.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[i,h,r]);var g=v(n);t.useEffect((function(){null!==g&&g!==n&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[g,n]);var y=v(r);return t.useEffect((function(){if(h.elements){var e=S(r,y,["clientSecret","fonts"]);e&&h.elements.update(e)}}),[r,y,h.elements]),t.useEffect((function(){var e=h.stripe;e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"1.16.5"}),e.registerAppInfo({name:"react-stripe-js",version:"1.16.5",url:"https://stripe.com/docs/stripe-js/react"}))}),[h.stripe]),t.createElement(O.Provider,{value:h},t.createElement(A.Provider,{value:{cart:l,setCart:u,cartState:d,setCartState:f}},o))};_.propTypes={stripe:y.any,options:y.object};var j=function(e){var n=t.useContext(O);return N(n,e)},T=function(e){var n=t.useContext(A);return P(n,e)},R=function(){return j("calls useElements()").elements},F=function(){return j("calls useStripe()").stripe},I=function(){return T("calls useCartElement()").cart},L=function(){return T("calls useCartElementState()").cartState},z=function(e){return(0,e.children)(j("mounts <ElementsConsumer>"))};z.propTypes={children:y.func.isRequired};var B=function(e,n,r){var o=!!r,i=t.useRef(r);t.useEffect((function(){i.current=r}),[r]),t.useEffect((function(){if(!o||!e)return function(){};var t=function(){i.current&&i.current.apply(i,arguments)};return e.on(n,t),function(){e.off(n,t)}}),[o,n,e,i])},Y=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},H=function(e,n){var r="".concat(Y(e),"Element"),o=n?function(e){j("mounts <".concat(r,">")),T("mounts <".concat(r,">"));var n=e.id,o=e.className;return t.createElement("div",{id:n,className:o})}:function(n){var o,i=n.id,s=n.className,l=n.options,u=void 0===l?{}:l,c=n.onBlur,d=n.onFocus,f=n.onReady,p=n.onChange,h=n.onEscape,m=n.onClick,g=n.onLoadError,y=n.onLoaderStart,b=n.onNetworksChange,w=n.onCheckout,x=n.onLineItemClick,k=n.onConfirm,D=n.onCancel,E=n.onShippingAddressChange,C=n.onShippingRateChange,M=j("mounts <".concat(r,">")).elements,O=a(t.useState(null),2),N=O[0],A=O[1],P=t.useRef(null),_=t.useRef(null),R=T("mounts <".concat(r,">")),F=R.setCart,I=R.setCartState;B(N,"blur",c),B(N,"focus",d),B(N,"escape",h),B(N,"click",m),B(N,"loaderror",g),B(N,"loaderstart",y),B(N,"networkschange",b),B(N,"lineitemclick",x),B(N,"confirm",k),B(N,"cancel",D),B(N,"shippingaddresschange",E),B(N,"shippingratechange",C),"cart"===e?o=function(e){I(e),f&&f(e)}:f&&(o="payButton"===e?f:function(){f(N)}),B(N,"ready",o),B(N,"change","cart"===e?function(e){I(e),p&&p(e)}:p),B(N,"checkout","cart"===e?function(e){I(e),w&&w(e)}:w),t.useLayoutEffect((function(){if(null===P.current&&M&&null!==_.current){var t=M.create(e,u);"cart"===e&&F&&F(t),P.current=t,A(t),t.mount(_.current)}}),[M,u,F]);var L=v(u);return t.useEffect((function(){if(P.current){var e=S(u,L,["paymentRequest"]);e&&P.current.update(e)}}),[u,L]),t.useLayoutEffect((function(){return function(){P.current&&(P.current.destroy(),P.current=null)}}),[]),t.createElement("div",{id:i,className:s,ref:_})};return o.propTypes={id:y.string,className:y.string,onChange:y.func,onBlur:y.func,onFocus:y.func,onReady:y.func,onEscape:y.func,onClick:y.func,onLoadError:y.func,onLoaderStart:y.func,onNetworksChange:y.func,onCheckout:y.func,onLineItemClick:y.func,onConfirm:y.func,onCancel:y.func,onShippingAddressChange:y.func,onShippingRateChange:y.func,options:y.object},o.displayName=r,o.__elementType=e,o},W="undefined"===typeof window,V=H("auBankAccount",W),U=H("card",W),$=H("cardNumber",W),q=H("cardExpiry",W),K=H("cardCvc",W),Q=H("fpxBank",W),G=H("iban",W),J=H("idealBank",W),Z=H("p24Bank",W),X=H("epsBank",W),ee=H("payment",W),te=H("payButton",W),ne=H("paymentRequestButton",W),re=H("linkAuthentication",W),oe=H("address",W),ie=H("shippingAddress",W),ae=H("cart",W),se=H("paymentMethodMessaging",W),le=H("affirmMessage",W),ue=H("afterpayClearpayMessage",W);e.AddressElement=oe,e.AffirmMessageElement=le,e.AfterpayClearpayMessageElement=ue,e.AuBankAccountElement=V,e.CardCvcElement=K,e.CardElement=U,e.CardExpiryElement=q,e.CardNumberElement=$,e.CartElement=ae,e.Elements=_,e.ElementsConsumer=z,e.EpsBankElement=X,e.FpxBankElement=Q,e.IbanElement=G,e.IdealBankElement=J,e.LinkAuthenticationElement=re,e.P24BankElement=Z,e.PayButtonElement=te,e.PaymentElement=ee,e.PaymentMethodMessagingElement=se,e.PaymentRequestButtonElement=ne,e.ShippingAddressElement=ie,e.useCartElement=I,e.useCartElementState=L,e.useElements=R,e.useStripe=F,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(5043))},2949:e=>{function t(e){var n,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(r=t(e[n]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function n(){for(var e,n,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(n=t(e))&&(o&&(o+=" "),o+=n);return o}e.exports=n,e.exports.clsx=n},6178:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function o(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(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(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(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 f(e,t){var n,r=[],o=e.length;for(n=0;n<o;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,r){return Kn(e,t,n,r,!0).utc()}function m(){return{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}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function y(e){var t=null,r=!1,o=e._d&&!isNaN(e._d.getTime());return o&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?o:(e._isValid=o,e._isValid)}function v(e){var t=h(NaN);return null!=e?p(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,o,i=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)u(o=t[r=b[n]])||(e[r]=o);return e}function k(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function D(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function E(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var o,i,a,l=[],u=arguments.length;for(i=0;i<u;i++){if(o="","object"===typeof arguments[i]){for(a in o+="\n["+i+"] ",arguments[0])s(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];l.push(o)}S(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,M={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),M[e]||(S(t),M[e]=!0)}function N(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function A(e){var t,n;for(n in e)s(e,n)&&(N(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)}function P(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function _(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var j={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function T(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return N(r)?r.call(t,n):r}function R(e,t,n){var r=""+Math.abs(e),o=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},z={};function B(e,t,n,r){var o=r;"string"===typeof r&&(o=function(){return this[r]()}),e&&(z[e]=o),t&&(z[t[0]]=function(){return R(o.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function H(e){var t,n,r=e.match(F);for(t=0,n=r.length;t<n;t++)z[r[t]]?r[t]=z[r[t]]:r[t]=Y(r[t]);return function(t){var o,i="";for(o=0;o<n;o++)i+=N(r[o])?r[o].call(t,e):r[o];return i}}function W(e,t){return e.isValid()?(t=V(t,e.localeData()),L[t]=L[t]||H(t),L[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var U={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"};function $(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(F).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function K(){return this._invalidDate}var Q="%d",G=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Z={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"};function X(e,t,n,r){var o=this._relativeTime[n];return N(o)?o(e,t,n,r):o.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return N(n)?n(t):n.replace(/%s/i,t)}var te={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 ne(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)s(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var oe={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};function ie(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var ae,se=/\d/,le=/\d\d/,ue=/\d{3}/,ce=/\d{4}/,de=/[+-]?\d{6}/,fe=/\d\d?/,pe=/\d\d\d\d?/,he=/\d\d\d\d\d\d?/,me=/\d{1,3}/,ge=/\d{1,4}/,ye=/[+-]?\d{1,6}/,ve=/\d+/,be=/[+-]?\d+/,we=/Z|[+-]\d\d:?\d\d/gi,xe=/Z|[+-]\d\d(?::?\d\d)?/gi,ke=/[+-]?\d+(\.\d{1,3})?/,De=/[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,Se=/^[1-9]\d?/,Ee=/^([1-9]\d|\d)/;function Ce(e,t,n){ae[e]=N(t)?t:function(e,r){return e&&n?n:t}}function Me(e,t){return s(ae,e)?ae[e](t._strict,t._locale):new RegExp(Oe(e))}function Oe(e){return Ne(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o})))}function Ne(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ae(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=Ae(t)),n}ae={};var _e={};function je(e,t){var n,r,o=t;for("string"===typeof e&&(e=[e]),c(t)&&(o=function(e,n){n[t]=Pe(e)}),r=e.length,n=0;n<r;n++)_e[e[n]]=o}function Te(e,t){je(e,(function(e,n,r,o){r._w=r._w||{},t(e,r._w,r,o)}))}function Re(e,t,n){null!=t&&s(_e,e)&&_e[e](t,n._a,n,e)}function Fe(e){return e%4===0&&e%100!==0||e%400===0}var Ie=0,Le=1,ze=2,Be=3,Ye=4,He=5,We=6,Ve=7,Ue=8;function $e(e){return Fe(e)?366:365}B("Y",0,0,(function(){var e=this.year();return e<=9999?R(e,4):"+"+e})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),Ce("Y",be),Ce("YY",fe,le),Ce("YYYY",ge,ce),Ce("YYYYY",ye,de),Ce("YYYYYY",ye,de),je(["YYYYY","YYYYYY"],Ie),je("YYYY",(function(e,t){t[Ie]=2===e.length?r.parseTwoDigitYear(e):Pe(e)})),je("YY",(function(e,t){t[Ie]=r.parseTwoDigitYear(e)})),je("Y",(function(e,t){t[Ie]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Pe(e)+(Pe(e)>68?1900:2e3)};var qe,Ke=Ge("FullYear",!0);function Qe(){return Fe(this.year())}function Ge(e,t){return function(n){return null!=n?(Ze(this,e,n),r.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var r,o,i,a,s;if(e.isValid()&&!isNaN(n)){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),s=29!==(s=e.date())||1!==a||Fe(i)?s:28,o?r.setUTCFullYear(i,a,s):r.setFullYear(i,a,s)}}function Xe(e){return N(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"===typeof e){var n,r=ie(e=re(e)),o=r.length;for(n=0;n<o;n++)this[r[n].unit](e[r[n].unit])}else if(N(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?Fe(e)?29:28:31-n%7%2}qe=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},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),B("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Ce("M",fe,Se),Ce("MM",fe,le),Ce("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ce("MMMM",(function(e,t){return t.monthsRegex(e)})),je(["M","MM"],(function(e,t){t[Le]=Pe(e)-1})),je(["MMM","MMMM"],(function(e,t,n,r){var o=n._locale.monthsParse(e,r,n._strict);null!=o?t[Le]=o:g(n).invalidMonth=e}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ot="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),it=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=De,st=De;function lt(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||it).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ut(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[it.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ct(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=qe.call(this._shortMonthsParse,a))||-1!==(o=qe.call(this._longMonthsParse,a))?o:null:-1!==(o=qe.call(this._longMonthsParse,a))||-1!==(o=qe.call(this._shortMonthsParse,a))?o:null}function dt(e,t,n){var r,o,i;if(this._monthsParseExact)return ct.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=Pe(t);else if(!c(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function pt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Je(this,"Month")}function ht(){return nt(this.year(),this.month())}function mt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||yt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=st),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function yt(){function e(e,t){return t.length-e.length}var t,n,r,o,i=[],a=[],s=[];for(t=0;t<12;t++)n=h([2e3,t]),r=Ne(this.monthsShort(n,"")),o=Ne(this.months(n,"")),i.push(r),a.push(o),s.push(o),s.push(r);i.sort(e),a.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function vt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function bt(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 wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,o){var i,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,o);return s<=0?a=$e(i=e-1)+s:s>$e(e)?(i=e+1,a=s-$e(e)):(i=e,a=s),{year:i,dayOfYear:a}}function kt(e,t,n){var r,o,i=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?r=a+Dt(o=e.year()-1,t,n):a>Dt(e.year(),t,n)?(r=a-Dt(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Dt(e,t,n){var r=wt(e,t,n),o=wt(e+1,t,n);return($e(e)-r+o)/7}function St(e){return kt(e,this._week.dow,this._week.doy).week}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),Ce("w",fe,Se),Ce("ww",fe,le),Ce("W",fe,Se),Ce("WW",fe,le),Te(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Pe(e)}));var Et={dow:0,doy:6};function Ct(){return this._week.dow}function Mt(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Nt(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function At(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Pt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function _t(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("d",0,"do","day"),B("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),B("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),B("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),Ce("d",fe),Ce("e",fe),Ce("E",fe),Ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),Te(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:g(n).invalidWeekday=e})),Te(["d","e","E"],(function(e,t,n,r){t[r]=Pe(e)}));var jt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Tt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ft=De,It=De,Lt=De;function zt(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?_t(n,this._week.dow):e?n[e.day()]:n}function Bt(e){return!0===e?_t(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Yt(e){return!0===e?_t(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ht(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=qe.call(this._shortWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._minWeekdaysParse,a))?o:null:-1!==(o=qe.call(this._minWeekdaysParse,a))||-1!==(o=qe.call(this._weekdaysParse,a))||-1!==(o=qe.call(this._shortWeekdaysParse,a))?o:null}function Wt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Ht.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=At(e,this.localeData()),this.add(e-t,"d")):t}function Ut(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")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Pt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ft),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Kt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=Ne(this.weekdaysMin(n,"")),o=Ne(this.weekdaysShort(n,"")),i=Ne(this.weekdays(n,"")),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Xt(e,t){B(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Jt),B("k",["kk",2],0,Zt),B("hmm",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Jt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Xt("a",!0),Xt("A",!1),Ce("a",en),Ce("A",en),Ce("H",fe,Ee),Ce("h",fe,Se),Ce("k",fe,Se),Ce("HH",fe,le),Ce("hh",fe,le),Ce("kk",fe,le),Ce("hmm",pe),Ce("hmmss",he),Ce("Hmm",pe),Ce("Hmmss",he),je(["H","HH"],Be),je(["k","kk"],(function(e,t,n){var r=Pe(e);t[Be]=24===r?0:r})),je(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),je(["h","hh"],(function(e,t,n){t[Be]=Pe(e),g(n).bigHour=!0})),je("hmm",(function(e,t,n){var r=e.length-2;t[Be]=Pe(e.substr(0,r)),t[Ye]=Pe(e.substr(r)),g(n).bigHour=!0})),je("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Be]=Pe(e.substr(0,r)),t[Ye]=Pe(e.substr(r,2)),t[He]=Pe(e.substr(o)),g(n).bigHour=!0})),je("Hmm",(function(e,t,n){var r=e.length-2;t[Be]=Pe(e.substr(0,r)),t[Ye]=Pe(e.substr(r))})),je("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[Be]=Pe(e.substr(0,r)),t[Ye]=Pe(e.substr(r,2)),t[He]=Pe(e.substr(o))}));var nn=/[ap]\.?m?\.?/i,rn=Ge("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:j,longDateFormat:U,invalidDate:q,ordinal:Q,dayOfMonthOrdinalParse:G,relativeTime:Z,months:rt,monthsShort:ot,week:Et,weekdays:jt,weekdaysMin:Rt,weekdaysShort:Tt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function fn(e){for(var t,n,r,o,i=0;i<e.length;){for(t=(o=dn(e[i]).split("-")).length,n=(n=dn(e[i+1]))?n.split("-"):null;t>0;){if(r=hn(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(o,n)>=t-1)break;t--}i++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function hn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,Object(function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}()),mn(n)}catch(r){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?vn(e):gn(e,t))?an=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function gn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])O("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."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new _(P(r,t)),un[e]&&un[e].forEach((function(e){gn(e.name,e.config)})),mn(e),ln[e]}return delete ln[e],null}function yn(e,t){if(null!=t){var n,r,o=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(P(ln[e]._config,t)):(null!=(r=hn(e))&&(o=r._config),t=P(o,t),null==r&&(t.abbr=e),(n=new _(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function vn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!i(e)){if(t=hn(e))return t;e=[e]}return fn(e)}function bn(){return C(ln)}function wn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Le]<0||n[Le]>11?Le:n[ze]<1||n[ze]>nt(n[Ie],n[Le])?ze:n[Be]<0||n[Be]>24||24===n[Be]&&(0!==n[Ye]||0!==n[He]||0!==n[We])?Be:n[Ye]<0||n[Ye]>59?Ye:n[He]<0||n[He]>59?He:n[We]<0||n[We]>999?We:-1,g(e)._overflowDayOfYear&&(t<Ie||t>ze)&&(t=ze),g(e)._overflowWeeks&&-1===t&&(t=Ve),g(e)._overflowWeekday&&-1===t&&(t=Ue),g(e).overflow=t),e}var xn=/^\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)?)?$/,kn=/^\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)?)?$/,Dn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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]],En=[["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/]],Cn=/^\/?Date\((-?\d+)/i,Mn=/^(?:(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}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Nn(e){var t,n,r,o,i,a,s=e._i,l=xn.exec(s)||kn.exec(s),u=Sn.length,c=En.length;if(l){for(g(e).iso=!0,t=0,n=u;t<n;t++)if(Sn[t][1].exec(l[1])){o=Sn[t][0],r=!1!==Sn[t][2];break}if(null==o)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(En[t][1].exec(l[3])){i=(l[2]||" ")+En[t][0];break}if(null==i)return void(e._isValid=!1)}if(!r&&null!=i)return void(e._isValid=!1);if(l[4]){if(!Dn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=o+(i||"")+(a||""),Yn(e)}else e._isValid=!1}function An(e,t,n,r,o,i){var a=[Pn(e),ot.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(o,10)];return i&&a.push(parseInt(i,10)),a}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function _n(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||Tt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Tn(e,t,n){if(e)return On[e];if(t)return 0;var r=parseInt(n,10),o=r%100;return(r-o)/100*60+o}function Rn(e){var t,n=Mn.exec(_n(e._i));if(n){if(t=An(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=Tn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Fn(e){var t=Cn.exec(e._i);null===t?(Nn(e),!1===e._isValid&&(delete e._isValid,Rn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function In(e,t,n){return null!=e?e:null!=t?t:n}function Ln(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,o,i,a=[];if(!e._d){for(r=Ln(e),e._w&&null==e._a[ze]&&null==e._a[Le]&&Bn(e),null!=e._dayOfYear&&(i=In(e._a[Ie],r[Ie]),(e._dayOfYear>$e(i)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=bt(i,0,e._dayOfYear),e._a[Le]=n.getUTCMonth(),e._a[ze]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Be]&&0===e._a[Ye]&&0===e._a[He]&&0===e._a[We]&&(e._nextDay=!0,e._a[Be]=0),e._d=(e._useUTC?bt:vt).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Be]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==o&&(g(e).weekdayMismatch=!0)}}function Bn(e){var t,n,r,o,i,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,a=4,n=In(t.GG,e._a[Ie],kt(Qn(),1,4).year),r=In(t.W,1),((o=In(t.E,1))<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=kt(Qn(),i,a),n=In(t.gg,e._a[Ie],u.year),r=In(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Dt(n,i,a)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(s=xt(n,r,o,i,a),e._a[Ie]=s.year,e._dayOfYear=s.dayOfYear)}function Yn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,o,i,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(o=V(e._f,e._locale).match(F)||[]).length,t=0;t<l;t++)i=o[t],(n=(u.match(Me(i,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&g(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),z[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),Re(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=c-d,u.length>0&&g(e).unusedInput.push(u),e._a[Be]<=12&&!0===g(e).bigHour&&e._a[Be]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[Be]=Hn(e._locale,e._a[Be],e._meridiem),null!==(s=g(e).era)&&(e._a[Ie]=e._locale.erasConvertYear(s,e._a[Ie])),zn(e),wn(e)}else Rn(e);else Nn(e)}function Hn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<l;o++)i=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],Yn(t),y(t)&&(a=!0),i+=g(t).charsLeftOver,i+=10*g(t).unusedTokens.length,g(t).score=i,s?i<r&&(r=i,n=t):(null==r||i<r||a)&&(r=i,n=t,a&&(s=!0));p(e,n||t)}function Vn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function Un(e){var t=new k(wn($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||vn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),D(t)?new k(wn(t)):(d(t)?e._d=t:i(n)?Wn(e):n?Yn(e):qn(e),y(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"===typeof t?Fn(e):i(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):a(t)?Vn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Kn(e,t,n,r,o){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=o,s._l=n,s._i=e,s._f=t,s._strict=r,Un(s)}function Qn(e,t,n,r){return Kn(e,t,n,r,!1)}r.createFromInputFallback=E("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":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Gn=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Jn=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Qn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Zn(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Qn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Xn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,o=nr.length;for(t in e)if(s(e,t)&&(-1===qe.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<o;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==Pe(e[nr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function ir(){return Or(NaN)}function ar(e){var t=re(e),n=t.year||0,r=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*i,this._months=+o+3*r+12*n,this._data={},this._locale=vn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,o=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0;for(r=0;r<o;r++)(n&&e[r]!==t[r]||!n&&Pe(e[r])!==Pe(t[r]))&&a++;return a+i}function cr(e,t){B(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+R(~~(e/60),2)+t+R(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),Ce("Z",xe),Ce("ZZ",xe),je(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(xe,e)}));var dr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,o=(t||"").match(e);return null===o?null:0===(r=60*(n=((o[o.length-1]||[])+"").match(dr)||["-",0,0])[1]+Pe(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,o;return t._isUTC?(n=t.clone(),o=(D(e)||d(e)?e.valueOf():Qn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),r.updateOffset(n,!1),n):Qn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var o,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(xe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(o=hr(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==e&&(!t||this._changeInProgress?jr(this,Or(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:hr(this)}function gr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function vr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(we,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Qn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=$n(t))._a?(e=t._isUTC?h(t._a):Qn(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Dr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function Er(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,o,i=e,a=null;return sr(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:Pe(a[ze])*n,h:Pe(a[Be])*n,m:Pe(a[Ye])*n,s:Pe(a[He])*n,ms:Pe(lr(1e3*a[We]))*n}):(a=Mr.exec(e))?(n="-"===a[1]?-1:1,i={y:Nr(a[2],n),M:Nr(a[3],n),w:Nr(a[4],n),d:Nr(a[5],n),h:Nr(a[6],n),m:Nr(a[7],n),s:Nr(a[8],n)}):null==i?i={}:"object"===typeof i&&("from"in i||"to"in i)&&(o=Pr(Qn(i.from),Qn(i.to)),(i={}).ms=o.milliseconds,i.M=o.months),r=new ar(i),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Nr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ar(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 Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Ar(e,t):((n=Ar(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function _r(e,t){return function(n,r){var o;return null===r||isNaN(+r)||(O(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."),o=n,n=r,r=o),jr(this,Or(n,r),e),this}}function jr(e,t,n,o){var i=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(o=null==o||o,s&&ft(e,Je(e,"Month")+s*n),a&&Ze(e,"Date",Je(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),o&&r.updateOffset(e,a||s))}Or.fn=ar.prototype,Or.invalid=ir;var Tr=_r(1,"add"),Rr=_r(-1,"subtract");function Fr(e){return"string"===typeof e||e instanceof String}function Ir(e){return D(e)||d(e)||Fr(e)||c(e)||zr(e)||Lr(e)||null===e||void 0===e}function Lr(e){var t,n,r=a(e)&&!l(e),o=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=i.length;for(t=0;t<u;t+=1)n=i[t],o=o||s(e,n);return r&&o}function zr(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Fr(e)})).length),t&&n}function Br(e){var t,n,r=a(e)&&!l(e),o=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<i.length;t+=1)n=i[t],o=o||s(e,n);return r&&o}function Yr(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"}function Hr(e,t){1===arguments.length&&(arguments[0]?Ir(arguments[0])?(e=arguments[0],t=void 0):Br(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Qn(),o=pr(n,this).startOf("day"),i=r.calendarFormat(this,o)||"sameElse",a=t&&(N(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Qn(n)))}function Wr(){return new k(this)}function Vr(e,t){var n=D(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Ur(e,t){var n=D(e)?e:Qn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $r(e,t,n,r){var o=D(e)?e:Qn(e),i=D(t)?t:Qn(t);return!!(this.isValid()&&o.isValid()&&i.isValid())&&("("===(r=r||"()")[0]?this.isAfter(o,n):!this.isBefore(o,n))&&(")"===r[1]?this.isBefore(i,n):!this.isAfter(i,n))}function qr(e,t){var n,r=D(e)?e:Qn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Kr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Qr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Gr(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":i=Jr(this,r)/12;break;case"month":i=Jr(this,r);break;case"quarter":i=Jr(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:Ae(i)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Xr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):N(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function eo(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,o="moment",i="";return this.isLocal()||(o=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+o+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+n+r)}function to(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function no(e,t){return this.isValid()&&(D(e)&&e.isValid()||Qn(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ro(e){return this.from(Qn(),e)}function oo(e,t){return this.isValid()&&(D(e)&&e.isValid()||Qn(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function io(e){return this.to(Qn(),e)}function ao(e){var t;return void 0===e?this._locale._abbr:(null!=(t=vn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var so=E("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 lo(){return this._locale}var uo=1e3,co=60*uo,fo=60*co,po=3506328*fo;function ho(e,t){return(e%t+t)%t}function mo(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-po:new Date(e,t,n).valueOf()}function go(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-po:Date.UTC(e,t,n)}function yo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,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-=ho(t+(this._isUTC?0:this.utcOffset()*co),fo);break;case"minute":t=this._d.valueOf(),t-=ho(t,co);break;case"second":t=this._d.valueOf(),t-=ho(t,uo)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vo(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?go:mo,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+=fo-ho(t+(this._isUTC?0:this.utcOffset()*co),fo)-1;break;case"minute":t=this._d.valueOf(),t+=co-ho(t,co)-1;break;case"second":t=this._d.valueOf(),t+=uo-ho(t,uo)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function bo(){return this._d.valueOf()-6e4*(this._offset||0)}function wo(){return Math.floor(this.valueOf()/1e3)}function xo(){return new Date(this.valueOf())}function ko(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Do(){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()}}function So(){return this.isValid()?this.toISOString():null}function Eo(){return y(this)}function Co(){return p({},g(this))}function Mo(){return g(this).overflow}function Oo(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function No(e,t){var n,o,i,a=this._eras||vn("en")._eras;for(n=0,o=a.length;n<o;++n)switch("string"===typeof a[n].since&&(i=r(a[n].since).startOf("day"),a[n].since=i.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=r(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf()}return a}function Ao(e,t,n){var r,o,i,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,o=l.length;r<o;++r)if(i=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(i===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([i,a,s].indexOf(e)>=0)return l[r]}function Po(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function _o(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function jo(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function To(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ro(){var e,t,n,o,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,o=this.clone().startOf("day").valueOf(),i[e].since<=o&&o<=i[e].until||i[e].until<=o&&o<=i[e].since)return(this.year()-r(i[e].since).year())*n+i[e].offset;return this.year()}function Fo(e){return s(this,"_erasNameRegex")||Wo.call(this),e?this._erasNameRegex:this._erasRegex}function Io(e){return s(this,"_erasAbbrRegex")||Wo.call(this),e?this._erasAbbrRegex:this._erasRegex}function Lo(e){return s(this,"_erasNarrowRegex")||Wo.call(this),e?this._erasNarrowRegex:this._erasRegex}function zo(e,t){return t.erasAbbrRegex(e)}function Bo(e,t){return t.erasNameRegex(e)}function Yo(e,t){return t.erasNarrowRegex(e)}function Ho(e,t){return t._eraYearOrdinalRegex||ve}function Wo(){var e,t,n,r,o,i=[],a=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)n=Ne(u[e].name),r=Ne(u[e].abbr),o=Ne(u[e].narrow),a.push(n),i.push(r),s.push(o),l.push(n),l.push(r),l.push(o);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function Vo(e,t){B(0,[e,e.length],0,t)}function Uo(e){return Jo.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function $o(e){return Jo.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qo(){return Dt(this.year(),1,4)}function Ko(){return Dt(this.isoWeekYear(),1,4)}function Qo(){var e=this.localeData()._week;return Dt(this.year(),e.dow,e.doy)}function Go(){var e=this.localeData()._week;return Dt(this.weekYear(),e.dow,e.doy)}function Jo(e,t,n,r,o){var i;return null==e?kt(this,r,o).year:(t>(i=Dt(e,r,o))&&(t=i),Zo.call(this,e,t,n,r,o))}function Zo(e,t,n,r,o){var i=xt(e,t,n,r,o),a=bt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Xo(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),Ce("N",zo),Ce("NN",zo),Ce("NNN",zo),Ce("NNNN",Bo),Ce("NNNNN",Yo),je(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?g(n).era=o:g(n).invalidEra=e})),Ce("y",ve),Ce("yy",ve),Ce("yyy",ve),Ce("yyyy",ve),Ce("yo",Ho),je(["y","yy","yyy","yyyy"],Ie),je(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ie]=n._locale.eraYearOrdinalParse(e,o):t[Ie]=parseInt(e,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Vo("gggg","weekYear"),Vo("ggggg","weekYear"),Vo("GGGG","isoWeekYear"),Vo("GGGGG","isoWeekYear"),Ce("G",be),Ce("g",be),Ce("GG",fe,le),Ce("gg",fe,le),Ce("GGGG",ge,ce),Ce("gggg",ge,ce),Ce("GGGGG",ye,de),Ce("ggggg",ye,de),Te(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Pe(e)})),Te(["gg","GG"],(function(e,t,n,o){t[o]=r.parseTwoDigitYear(e)})),B("Q",0,"Qo","quarter"),Ce("Q",se),je("Q",(function(e,t){t[Le]=3*(Pe(e)-1)})),B("D",["DD",2],"Do","date"),Ce("D",fe,Se),Ce("DD",fe,le),Ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),je(["D","DD"],ze),je("Do",(function(e,t){t[ze]=Pe(e.match(fe)[0])}));var ei=Ge("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}B("DDD",["DDDD",3],"DDDo","dayOfYear"),Ce("DDD",me),Ce("DDDD",ue),je(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Pe(e)})),B("m",["mm",2],0,"minute"),Ce("m",fe,Ee),Ce("mm",fe,le),je(["m","mm"],Ye);var ni=Ge("Minutes",!1);B("s",["ss",2],0,"second"),Ce("s",fe,Ee),Ce("ss",fe,le),je(["s","ss"],He);var ri,oi,ii=Ge("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Ce("S",me,se),Ce("SS",me,le),Ce("SSS",me,ue),ri="SSSS";ri.length<=9;ri+="S")Ce(ri,ve);function ai(e,t){t[We]=Pe(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")je(ri,ai);function si(){return this._isUTC?"UTC":""}function li(){return this._isUTC?"Coordinated Universal Time":""}oi=Ge("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var ui=k.prototype;function ci(e){return Qn(1e3*e)}function di(){return Qn.apply(null,arguments).parseZone()}function fi(e){return e}ui.add=Tr,ui.calendar=Hr,ui.clone=Wr,ui.diff=Gr,ui.endOf=vo,ui.format=to,ui.from=no,ui.fromNow=ro,ui.to=oo,ui.toNow=io,ui.get=Xe,ui.invalidAt=Mo,ui.isAfter=Vr,ui.isBefore=Ur,ui.isBetween=$r,ui.isSame=qr,ui.isSameOrAfter=Kr,ui.isSameOrBefore=Qr,ui.isValid=Eo,ui.lang=so,ui.locale=ao,ui.localeData=lo,ui.max=Jn,ui.min=Gn,ui.parsingFlags=Co,ui.set=et,ui.startOf=yo,ui.subtract=Rr,ui.toArray=ko,ui.toObject=Do,ui.toDate=xo,ui.toISOString=Xr,ui.inspect=eo,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ui[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ui.toJSON=So,ui.toString=Zr,ui.unix=wo,ui.valueOf=bo,ui.creationData=Oo,ui.eraName=_o,ui.eraNarrow=jo,ui.eraAbbr=To,ui.eraYear=Ro,ui.year=Ke,ui.isLeapYear=Qe,ui.weekYear=Uo,ui.isoWeekYear=$o,ui.quarter=ui.quarters=Xo,ui.month=pt,ui.daysInMonth=ht,ui.week=ui.weeks=Ot,ui.isoWeek=ui.isoWeeks=Nt,ui.weeksInYear=Qo,ui.weeksInWeekYear=Go,ui.isoWeeksInYear=qo,ui.isoWeeksInISOWeekYear=Ko,ui.date=ei,ui.day=ui.days=Vt,ui.weekday=Ut,ui.isoWeekday=$t,ui.dayOfYear=ti,ui.hour=ui.hours=rn,ui.minute=ui.minutes=ni,ui.second=ui.seconds=ii,ui.millisecond=ui.milliseconds=oi,ui.utcOffset=mr,ui.utc=yr,ui.local=vr,ui.parseZone=br,ui.hasAlignedHourOffset=wr,ui.isDST=xr,ui.isLocal=Dr,ui.isUtcOffset=Sr,ui.isUtc=Er,ui.isUTC=Er,ui.zoneAbbr=si,ui.zoneName=li,ui.dates=E("dates accessor is deprecated. Use date instead.",ei),ui.months=E("months accessor is deprecated. Use month instead",pt),ui.years=E("years accessor is deprecated. Use year instead",Ke),ui.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ui.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var pi=_.prototype;function hi(e,t,n,r){var o=vn(),i=h().set(r,t);return o[n](i,e)}function mi(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=hi(e,r,n,"month");return o}function gi(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,i=vn(),a=e?i._week.dow:0,s=[];if(null!=n)return hi(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=hi(t,(o+a)%7,r,"day");return s}function yi(e,t){return mi(e,t,"months")}function vi(e,t){return mi(e,t,"monthsShort")}function bi(e,t,n){return gi(e,t,n,"weekdays")}function wi(e,t,n){return gi(e,t,n,"weekdaysShort")}function xi(e,t,n){return gi(e,t,n,"weekdaysMin")}pi.calendar=T,pi.longDateFormat=$,pi.invalidDate=K,pi.ordinal=J,pi.preparse=fi,pi.postformat=fi,pi.relativeTime=X,pi.pastFuture=ee,pi.set=A,pi.eras=No,pi.erasParse=Ao,pi.erasConvertYear=Po,pi.erasAbbrRegex=Io,pi.erasNameRegex=Fo,pi.erasNarrowRegex=Lo,pi.months=lt,pi.monthsShort=ut,pi.monthsParse=dt,pi.monthsRegex=gt,pi.monthsShortRegex=mt,pi.week=St,pi.firstDayOfYear=Mt,pi.firstDayOfWeek=Ct,pi.weekdays=zt,pi.weekdaysMin=Yt,pi.weekdaysShort=Bt,pi.weekdaysParse=Wt,pi.weekdaysRegex=qt,pi.weekdaysShortRegex=Kt,pi.weekdaysMinRegex=Qt,pi.isPM=tn,pi.meridiem=on,mn("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")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",vn);var ki=Math.abs;function Di(){var e=this._data;return this._milliseconds=ki(this._milliseconds),this._days=ki(this._days),this._months=ki(this._months),e.milliseconds=ki(e.milliseconds),e.seconds=ki(e.seconds),e.minutes=ki(e.minutes),e.hours=ki(e.hours),e.months=ki(e.months),e.years=ki(e.years),this}function Si(e,t,n,r){var o=Or(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Ei(e,t){return Si(this,e,t,1)}function Ci(e,t){return Si(this,e,t,-1)}function Mi(e){return e<0?Math.floor(e):Math.ceil(e)}function Oi(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Mi(Ai(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=Ae(i/1e3),l.seconds=e%60,t=Ae(e/60),l.minutes=t%60,n=Ae(t/60),l.hours=n%24,a+=Ae(n/24),s+=o=Ae(Ni(a)),a-=Mi(Ai(o)),r=Ae(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Ni(e){return 4800*e/146097}function Ai(e){return 146097*e/4800}function Pi(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ni(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ai(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function _i(e){return function(){return this.as(e)}}var ji=_i("ms"),Ti=_i("s"),Ri=_i("m"),Fi=_i("h"),Ii=_i("d"),Li=_i("w"),zi=_i("M"),Bi=_i("Q"),Yi=_i("y"),Hi=ji;function Wi(){return Or(this)}function Vi(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function Ui(e){return function(){return this.isValid()?this._data[e]:NaN}}var $i=Ui("milliseconds"),qi=Ui("seconds"),Ki=Ui("minutes"),Qi=Ui("hours"),Gi=Ui("days"),Ji=Ui("months"),Zi=Ui("years");function Xi(){return Ae(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var o=Or(e).abs(),i=ea(o.as("s")),a=ea(o.as("m")),s=ea(o.as("h")),l=ea(o.as("d")),u=ea(o.as("M")),c=ea(o.as("w")),d=ea(o.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,f[3]=+e>0,f[4]=r,na.apply(null,f)}function oa(e){return void 0===e?ea:"function"===typeof e&&(ea=e,!0)}function ia(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,i=ta;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(o=e),"object"===typeof t&&(i=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ra(this,!o,i,n=this.localeData()),o&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,i,a,s,l=sa(this._milliseconds)/1e3,u=sa(this._days),c=sa(this._months),d=this.asSeconds();return d?(e=Ae(l/60),t=Ae(e/60),l%=60,e%=60,n=Ae(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",i=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",o+"P"+(n?i+n+"Y":"")+(c?i+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ca=ar.prototype;return ca.isValid=or,ca.abs=Di,ca.add=Ei,ca.subtract=Ci,ca.as=Pi,ca.asMilliseconds=ji,ca.asSeconds=Ti,ca.asMinutes=Ri,ca.asHours=Fi,ca.asDays=Ii,ca.asWeeks=Li,ca.asMonths=zi,ca.asQuarters=Bi,ca.asYears=Yi,ca.valueOf=Hi,ca._bubble=Oi,ca.clone=Wi,ca.get=Vi,ca.milliseconds=$i,ca.seconds=qi,ca.minutes=Ki,ca.hours=Qi,ca.days=Gi,ca.weeks=Xi,ca.months=Ji,ca.years=Zi,ca.humanize=aa,ca.toISOString=ua,ca.toString=ua,ca.toJSON=ua,ca.locale=ao,ca.localeData=lo,ca.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),ca.lang=so,B("X",0,0,"unix"),B("x",0,0,"valueOf"),Ce("x",be),Ce("X",ke),je("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),je("x",(function(e,t,n){n._d=new Date(Pe(e))})),r.version="2.30.1",o(Qn),r.fn=ui,r.min=Xn,r.max=er,r.now=tr,r.utc=h,r.unix=ci,r.months=yi,r.isDate=d,r.locale=mn,r.invalid=v,r.duration=Or,r.isMoment=D,r.weekdays=bi,r.parseZone=di,r.localeData=vn,r.isDuration=sr,r.monthsShort=vi,r.weekdaysMin=xi,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=wi,r.normalizeUnits=ne,r.relativeTimeRounding=oa,r.relativeTimeThreshold=ia,r.calendarFormat=Yr,r.prototype=ui,r.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"},r}()},1497:(e,t,n)=>{"use strict";var r=n(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5173:(e,t,n)=>{e.exports=n(1497)()},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1899:function(e,t,n){!function(e,t,n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,y,v,b,w,x,k,D,S,E,C,M,O,N,A,P,_,j,T,R,F,I,L,z,B,Y,H,W,V,U,$,q,K,Q,G,J,Z,X,ee,te,ne,re,oe,ie,ae,se,le,ue,ce){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var fe=de(n),pe=de(ce),he=function(e,t){return he=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])},he(e,t)};function me(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}he(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,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ge.apply(this,arguments)};function ye(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ve,be=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,r=e.showTime,o=void 0!==r&&r,i=e.className,a=e.children,s=n?"Choose Time":"Choose Date".concat(o?" and Time":"");return fe.default.createElement("div",{className:i,role:"dialog","aria-label":s,"aria-modal":"true"},a)},we=function(e){var t=e.children,r=e.onClickOutside,o=e.className,i=e.containerRef,a=e.style,s=function(e,t){var r=n.useRef(null),o=n.useRef(e);o.current=e;var i=n.useCallback((function(e){var n;r.current&&!r.current.contains(e.target)&&(t&&e.target instanceof HTMLElement&&e.target.classList.contains(t)||null===(n=o.current)||void 0===n||n.call(o,e))}),[t]);return n.useEffect((function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}}),[i]),r}(r,e.ignoreClass);return fe.default.createElement("div",{className:o,style:a,ref:function(e){s.current=e,i&&(i.current=e)}},t)};function xe(){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 ke=12,De=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Se(e){if(null==e)return new Date;var t="string"==typeof e?V.parseISO(e):le.toDate(e);return Ce(t)?t:new Date}function Ee(e,t,n,r,o){var i,a=null,s=Ue(n)||Ue(Ve()),l=!0;if(Array.isArray(t))return t.forEach((function(t){var i=W.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});r&&(l=Ce(i,o)&&e===Me(i,t,n)),Ce(i,o)&&l&&(a=i)})),a;if(a=W.parse(e,t,new Date,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),r)l=Ce(a)&&e===Me(a,t,n);else if(!Ce(a)){var u=(null!==(i=t.match(De))&&void 0!==i?i:[]).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=w.longFormatters[t];return s?n(e,s.formatLong):t}return e})).join("");e.length>0&&(a=W.parse(e,u.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),Ce(a)||(a=new Date(e))}return Ce(a)&&l?a:null}function Ce(e,t){return z.isValid(e)&&!_.isBefore(e,null!=t?t:new Date("1/1/1800"))}function Me(e,t,n){if("en"===n)return w.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=n?Ue(n):void 0;return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&Ve()&&Ue(Ve())&&(r=Ue(Ve())),w.format(e,t,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Oe(e,t){var n=t.dateFormat,r=t.locale,o=Array.isArray(n)&&n.length>0?n[0]:n;return e&&Me(e,o,r)||""}function Ne(e,t){var n=t.hour,r=void 0===n?0:n,o=t.minute,i=void 0===o?0:o,a=t.second,s=void 0===a?0:a;return $.setHours(q.setMinutes(G.setSeconds(e,s),i),r)}function Ae(e){return Z.startOfDay(e)}function Pe(e,t,n){var r=Ue(t||Ve());return te.startOfWeek(e,{locale:r,weekStartsOn:n})}function _e(e){return X.startOfMonth(e)}function je(e){return ne.startOfYear(e)}function Te(e){return ee.startOfQuarter(e)}function Re(){return Z.startOfDay(Se())}function Fe(e){return g.endOfDay(e)}function Ie(e){return y.endOfMonth(e)}function Le(e,t){return e&&t?L.isSameYear(e,t):!e&&!t}function ze(e,t){return e&&t?F.isSameMonth(e,t):!e&&!t}function Be(e,t){return e&&t?I.isSameQuarter(e,t):!e&&!t}function Ye(e,t){return e&&t?R.isSameDay(e,t):!e&&!t}function He(e,t){return e&&t?T.isEqual(e,t):!e&&!t}function We(e,t,n){var r,o=Z.startOfDay(t),i=g.endOfDay(n);try{r=B.isWithinInterval(e,{start:o,end:i})}catch(e){r=!1}return r}function Ve(){return xe().__localeId__}function Ue(e){if("string"==typeof e){var t=xe();return t.__localeData__?t.__localeData__[e]:void 0}return e}function $e(e,t){return Me(K.setMonth(Se(),e),"LLLL",t)}function qe(e,t){return Me(K.setMonth(Se(),e),"LLL",t)}function Ke(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,i=n.excludeDates,a=n.excludeDateIntervals,s=n.includeDates,l=n.includeDateIntervals,u=n.filterDate;return rt(e,{minDate:r,maxDate:o})||i&&i.some((function(t){return t instanceof Date?Ye(e,t):Ye(e,t.date)}))||a&&a.some((function(t){var n=t.start,r=t.end;return B.isWithinInterval(e,{start:n,end:r})}))||s&&!s.some((function(t){return Ye(e,t)}))||l&&!l.some((function(t){var n=t.start,r=t.end;return B.isWithinInterval(e,{start:n,end:r})}))||u&&!u(Se(e))||!1}function Qe(e,t){var n=void 0===t?{}:t,r=n.excludeDates,o=n.excludeDateIntervals;return o&&o.length>0?o.some((function(t){var n=t.start,r=t.end;return B.isWithinInterval(e,{start:n,end:r})})):r&&r.some((function(t){var n;return t instanceof Date?Ye(e,t):Ye(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||!1}function Ge(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,i=n.excludeDates,a=n.includeDates,s=n.filterDate;return rt(e,{minDate:r?X.startOfMonth(r):void 0,maxDate:o?y.endOfMonth(o):void 0})||(null==i?void 0:i.some((function(t){return ze(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return ze(e,t)}))||s&&!s(Se(e))||!1}function Je(e,t,n,r){var o=A.getYear(e),i=C.getMonth(e),a=A.getYear(t),s=C.getMonth(t),l=A.getYear(r);return o===a&&o===l?i<=n&&n<=s:o<a&&(l===o&&i<=n||l===a&&s>=n||l<a&&l>o)}function Ze(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,i=n.excludeDates,a=n.includeDates;return rt(e,{minDate:r,maxDate:o})||i&&i.some((function(t){return ze(t instanceof Date?t:t.date,e)}))||a&&!a.some((function(t){return ze(t,e)}))||!1}function Xe(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,i=n.excludeDates,a=n.includeDates,s=n.filterDate;return rt(e,{minDate:r,maxDate:o})||(null==i?void 0:i.some((function(t){return Be(e,t instanceof Date?t:t.date)})))||a&&!a.some((function(t){return Be(e,t)}))||s&&!s(Se(e))||!1}function et(e,t,n){if(!t||!n)return!1;if(!z.isValid(t)||!z.isValid(n))return!1;var r=A.getYear(t),o=A.getYear(n);return r<=e&&o>=e}function tt(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.maxDate,i=n.excludeDates,a=n.includeDates,s=n.filterDate,l=new Date(e,0,1);return rt(l,{minDate:r?ne.startOfYear(r):void 0,maxDate:o?b.endOfYear(o):void 0})||(null==i?void 0:i.some((function(e){return Le(l,e instanceof Date?e:e.date)})))||a&&!a.some((function(e){return Le(l,e)}))||s&&!s(Se(l))||!1}function nt(e,t,n,r){var o=A.getYear(e),i=M.getQuarter(e),a=A.getYear(t),s=M.getQuarter(t),l=A.getYear(r);return o===a&&o===l?i<=n&&n<=s:o<a&&(l===o&&i<=n||l===a&&s>=n||l<a&&l>o)}function rt(e,t){var n,r=void 0===t?{}:t,o=r.minDate,i=r.maxDate;return null!==(n=o&&f.differenceInCalendarDays(e,o)<0||i&&f.differenceInCalendarDays(e,i)>0)&&void 0!==n&&n}function ot(e,t){return t.some((function(t){return D.getHours(t)===D.getHours(e)&&E.getMinutes(t)===E.getMinutes(e)&&O.getSeconds(t)===O.getSeconds(e)}))}function it(e,t){var n=void 0===t?{}:t,r=n.excludeTimes,o=n.includeTimes,i=n.filterTime;return r&&ot(e,r)||o&&!ot(e,o)||i&&!i(e)||!1}function at(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o=Se();o=$.setHours(o,D.getHours(e)),o=q.setMinutes(o,E.getMinutes(e)),o=G.setSeconds(o,O.getSeconds(e));var i=Se();i=$.setHours(i,D.getHours(n)),i=q.setMinutes(i,E.getMinutes(n)),i=G.setSeconds(i,O.getSeconds(n));var a,s=Se();s=$.setHours(s,D.getHours(r)),s=q.setMinutes(s,E.getMinutes(r)),s=G.setSeconds(s,O.getSeconds(r));try{a=!B.isWithinInterval(o,{start:i,end:s})}catch(e){a=!1}return a}function st(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,i=oe.subMonths(e,1);return r&&p.differenceInCalendarMonths(r,i)>0||o&&o.every((function(e){return p.differenceInCalendarMonths(e,i)>0}))||!1}function lt(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,i=s.addMonths(e,1);return r&&p.differenceInCalendarMonths(i,r)>0||o&&o.every((function(e){return p.differenceInCalendarMonths(i,e)>0}))||!1}function ut(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,i=se.subYears(e,1);return r&&m.differenceInCalendarYears(r,i)>0||o&&o.every((function(e){return m.differenceInCalendarYears(e,i)>0}))||!1}function ct(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,i=d.addYears(e,1);return r&&m.differenceInCalendarYears(i,r)>0||o&&o.every((function(e){return m.differenceInCalendarYears(i,e)>0}))||!1}function dt(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return f.differenceInCalendarDays(e,t)>=0}));return H.min(r)}return n?H.min(n):t}function ft(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter((function(e){return f.differenceInCalendarDays(e,t)<=0}));return Y.max(r)}return n?Y.max(n):t}function pt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var r=new Map,o=0,i=e.length;o<i;o++){var a=e[o];if(j.isDate(a)){var s=Me(a,"MM.dd.yyyy");(f=r.get(s)||[]).includes(t)||(f.push(t),r.set(s,f))}else if("object"==typeof a){var l=null!==(n=Object.keys(a)[0])&&void 0!==n?n:"",u=a[l];if("string"==typeof l&&Array.isArray(u))for(var c=0,d=u.length;c<d;c++){var f,p=u[c];p&&(s=Me(p,"MM.dd.yyyy"),(f=r.get(s)||[]).includes(l)||(f.push(l),r.set(s,f)))}}}return r}function ht(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach((function(e){var r=e.date,o=e.holidayName;if(j.isDate(r)){var i=Me(r,"MM.dd.yyyy"),a=n.get(i)||{className:"",holidayNames:[]};if(!("className"in a)||a.className!==t||(s=a.holidayNames,l=[o],s.length!==l.length||!s.every((function(e,t){return e===l[t]})))){var s,l;a.className=t;var u=a.holidayNames;a.holidayNames=u?ye(ye([],u,!0),[o],!1):[o],n.set(i,a)}}})),n}function mt(e,t,n,r,o){for(var s=o.length,l=[],c=0;c<s;c++){var d=e,f=o[c];f&&(d=i.addHours(d,D.getHours(f)),d=a.addMinutes(d,E.getMinutes(f)),d=u.addSeconds(d,O.getSeconds(f)));var p=a.addMinutes(e,(n+1)*r);P.isAfter(d,t)&&_.isBefore(d,p)&&null!=f&&l.push(f)}return l}function gt(e){return e<10?"0".concat(e):"".concat(e)}function yt(e,t){void 0===t&&(t=ke);var n=Math.ceil(A.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function vt(e){var t=e.getSeconds(),n=e.getMilliseconds();return le.toDate(e.getTime()-1e3*t-n)}function bt(e){if(!j.isDate(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function wt(e,t){if(!j.isDate(e)||!j.isDate(t))throw new Error("Invalid date received");var n=bt(e),r=bt(t);return _.isBefore(n,r)}function xt(e){return e.key===ve.Space}var kt,Dt=function(e){function t(t){var r=e.call(this,t)||this;return r.inputRef=fe.default.createRef(),r.onTimeChange=function(e){var t,n;r.setState({time:e});var o=r.props.date,i=o instanceof Date&&!isNaN(+o)?o:new Date;if(null==e?void 0:e.includes(":")){var a=e.split(":"),s=a[0],l=a[1];i.setHours(Number(s)),i.setMinutes(Number(l))}null===(n=(t=r.props).onChange)||void 0===n||n.call(t,i)},r.renderTimeInput=function(){var e=r.state.time,t=r.props,o=t.date,i=t.timeString,a=t.customTimeInput;return a?n.cloneElement(a,{date:o,value:e,onChange:r.onTimeChange}):fe.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var e;null===(e=r.inputRef.current)||void 0===e||e.focus()},required:!0,value:e,onChange:function(e){r.onTimeChange(e.target.value||i)}})},r.state={time:r.props.timeString},r}return me(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return fe.default.createElement("div",{className:"react-datepicker__input-time-container"},fe.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),fe.default.createElement("div",{className:"react-datepicker-time__input-container"},fe.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),St=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.dayEl=n.createRef(),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.handleOnKeyDown=function(e){var t,n;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(n=(t=r.props).handleOnKeyDown)||void 0===n||n.call(t,e)},r.isSameDay=function(e){return Ye(r.props.day,e)},r.isKeyboardSelected=function(){var e;if(r.props.disabledKeyboardNavigation)return!1;var t=r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some((function(e){return r.isSameDayOrWeek(e)})):r.isSameDayOrWeek(r.props.selected),n=r.props.preSelection&&r.isDisabled(r.props.preSelection);return!t&&r.isSameDayOrWeek(r.props.preSelection)&&!n},r.isDisabled=function(e){return void 0===e&&(e=r.props.day),Ke(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(){return Qe(r.props.day,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.isStartOfWeek=function(){return Ye(r.props.day,Pe(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameWeek=function(e){return r.props.showWeekPicker&&Ye(e,Pe(r.props.day,r.props.locale,r.props.calendarStartDay))},r.isSameDayOrWeek=function(e){return r.isSameDay(e)||r.isSameWeek(e)},r.getHighLightedClass=function(){var e=r.props,t=e.day,n=e.highlightDates;if(!n)return!1;var o=Me(t,"MM.dd.yyyy");return n.get(o)},r.getHolidaysClass=function(){var e,t=r.props,n=t.day,o=t.holidays;if(!o)return[void 0];var i=Me(n,"MM.dd.yyyy");return o.has(i)?[null===(e=o.get(i))||void 0===e?void 0:e.className]:[void 0]},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,o=e.endDate;return!(!n||!o)&&We(t,n,o)},r.isInSelectingRange=function(){var e,t=r.props,n=t.day,o=t.selectsStart,i=t.selectsEnd,a=t.selectsRange,s=t.selectsDisabledDaysInRange,l=t.startDate,u=t.endDate,c=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return!(!(o||i||a)||!c||!s&&r.isDisabled())&&(o&&u&&(_.isBefore(c,u)||He(c,u))?We(n,c,u):(i&&l&&(P.isAfter(c,l)||He(c,l))||!(!a||!l||u||!P.isAfter(c,l)&&!He(c,l)))&&We(n,l,c))},r.isSelectingRangeStart=function(){var e;if(!r.isInSelectingRange())return!1;var t=r.props,n=t.day,o=t.startDate,i=t.selectsStart,a=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return Ye(n,i?a:o)},r.isSelectingRangeEnd=function(){var e;if(!r.isInSelectingRange())return!1;var t=r.props,n=t.day,o=t.endDate,i=t.selectsEnd,a=t.selectsRange,s=null!==(e=r.props.selectingDate)&&void 0!==e?e:r.props.preSelection;return Ye(n,i||a?s:o)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,o=e.endDate;return!(!n||!o)&&Ye(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,o=e.endDate;return!(!n||!o)&&Ye(o,t)},r.isWeekend=function(){var e=k.getDay(r.props.day);return 0===e||6===e},r.isAfterMonth=function(){return void 0!==r.props.month&&(r.props.month+1)%12===C.getMonth(r.props.day)},r.isBeforeMonth=function(){return void 0!==r.props.month&&(C.getMonth(r.props.day)+1)%12===r.props.month},r.isCurrentDay=function(){return r.isSameDay(Se())},r.isSelected=function(){var e;return r.props.selectsMultiple?null===(e=r.props.selectedDates)||void 0===e?void 0:e.some((function(e){return r.isSameDayOrWeek(e)})):r.isSameDayOrWeek(r.props.selected)},r.getClassNames=function(e){var n,o=r.props.dayClassName?r.props.dayClassName(e):void 0;return t.clsx("react-datepicker__day",o,"react-datepicker__day--"+Me(r.props.day,"ddd",n),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass(),r.getHolidaysClass())},r.getAriaLabel=function(){var e=r.props,t=e.day,n=e.ariaLabelPrefixWhenEnabled,o=void 0===n?"Choose":n,i=e.ariaLabelPrefixWhenDisabled,a=void 0===i?"Not available":i,s=r.isDisabled()||r.isExcluded()?a:o;return"".concat(s," ").concat(Me(t,"PPPP",r.props.locale))},r.getTitle=function(){var e=r.props,t=e.day,n=e.holidays,o=void 0===n?new Map:n,i=e.excludeDates,a=Me(t,"MM.dd.yyyy"),s=[];return o.has(a)&&s.push.apply(s,o.get(a).holidayNames),r.isExcluded()&&s.push(null==i?void 0:i.filter((function(e){return e instanceof Date?Ye(e,t):Ye(null==e?void 0:e.date,t)})).map((function(e){if(!(e instanceof Date))return null==e?void 0:e.message}))),s.join(", ")},r.getTabIndex=function(){var e=r.props.selected,t=r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(e)&&Ye(t,e))?0:-1},r.handleFocusDay=function(){var e;r.shouldFocusDay()&&(null===(e=r.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},r.renderDayContents=function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(x.getDate(r.props.day),r.props.day):x.getDate(r.props.day)},r.render=function(){return fe.default.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.props.usePointerEvent?void 0:r.handleMouseEnter,onPointerEnter:r.props.usePointerEvent?r.handleMouseEnter:void 0,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),""!==r.getTitle()&&fe.default.createElement("span",{className:"overlay"},r.getTitle()))},r}return me(r,e),r.prototype.componentDidMount=function(){this.handleFocusDay()},r.prototype.componentDidUpdate=function(){this.handleFocusDay()},r.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},r.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"))},r.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},r}(n.Component),Et=function(e){function r(){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,r;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(r=(n=t.props).handleOnKeyDown)||void 0===r||r.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ye(t.props.date,t.props.selected)&&Ye(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Ye(t.props.date,t.props.selected)&&Ye(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&Ye(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 me(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},r.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},r.prototype.render=function(){var e=this.props,n=e.weekNumber,o=e.ariaLabelPrefix,i=void 0===o?r.defaultProps.ariaLabelPrefix:o,a=e.onClick,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!a,"react-datepicker__week-number--selected":!!a&&Ye(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return fe.default.createElement("div",{ref:this.weekNumberEl,className:t.clsx(s),"aria-label":"".concat(i," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},r}(n.Component),Ct=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisabled=function(e){return Ke(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,r,o){for(var i,a,s,l=new Date(e),u=0;u<7;u++){var c=new Date(e);if(c.setDate(c.getDate()+u),!t.isDisabled(c)){l=c;break}}"function"==typeof t.props.onWeekSelect&&t.props.onWeekSelect(l,r,o),t.props.showWeekPicker&&t.handleDayClick(l,o),(null!==(i=t.props.shouldCloseOnSelect)&&void 0!==i?i:n.defaultProps.shouldCloseOnSelect)&&(null===(s=(a=t.props).setOpen)||void 0===s||s.call(a,!1))},t.formatWeekNumber=function(e){return t.props.formatWeekNumber?t.props.formatWeekNumber(e):function(e){return S.getISOWeek(e)}(e)},t.renderDays=function(){var e=t.startOfWeek(),r=[],i=t.formatWeekNumber(e);if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,e,i):void 0;r.push(fe.default.createElement(Et,ge({key:"W"},n.defaultProps,t.props,{weekNumber:i,date:e,onClick:a})))}return r.concat([0,1,2,3,4,5,6].map((function(r){var i=o.addDays(e,r);return fe.default.createElement(St,ge({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:i.valueOf(),day:i,onClick:t.handleDayClick.bind(t,i),onMouseEnter:t.handleDayMouseEnter.bind(t,i)}))})))},t.startOfWeek=function(){return Pe(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ye(t.startOfWeek(),t.props.selected)&&Ye(t.startOfWeek(),t.props.preSelection)},t}return me(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":Ye(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return fe.default.createElement("div",{className:t.clsx(e)},this.renderDays())},n}(n.Component),Mt="two_columns",Ot="three_columns",Nt="four_columns",At=((kt={})[Mt]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},kt[Ot]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},kt[Nt]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},kt);function Pt(e,t){return e?Nt:t?Mt:Ot}var _t=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.MONTH_REFS=ye([],Array(12),!0).map((function(){return n.createRef()})),r.QUARTER_REFS=ye([],Array(4),!0).map((function(){return n.createRef()})),r.isDisabled=function(e){return Ke(e,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDateIntervals:r.props.includeDateIntervals,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(e){return Qe(e,{excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals})},r.handleDayClick=function(e,t){var n,o;null===(o=(n=r.props).onDayClick)||void 0===o||o.call(n,e,t,r.props.orderInDisplay)},r.handleDayMouseEnter=function(e){var t,n;null===(n=(t=r.props).onDayMouseEnter)||void 0===n||n.call(t,e)},r.handleMouseLeave=function(){var e,t;null===(t=(e=r.props).onMouseLeave)||void 0===t||t.call(e)},r.isRangeStartMonth=function(e){var t=r.props,n=t.day,o=t.startDate,i=t.endDate;return!(!o||!i)&&ze(K.setMonth(n,e),o)},r.isRangeStartQuarter=function(e){var t=r.props,n=t.day,o=t.startDate,i=t.endDate;return!(!o||!i)&&Be(Q.setQuarter(n,e),o)},r.isRangeEndMonth=function(e){var t=r.props,n=t.day,o=t.startDate,i=t.endDate;return!(!o||!i)&&ze(K.setMonth(n,e),i)},r.isRangeEndQuarter=function(e){var t=r.props,n=t.day,o=t.startDate,i=t.endDate;return!(!o||!i)&&Be(Q.setQuarter(n,e),i)},r.isInSelectingRangeMonth=function(e){var t,n=r.props,o=n.day,i=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,u=n.endDate,c=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(i||a||s)||!c)&&(i&&u?Je(c,u,e,o):(a&&l||!(!s||!l||u))&&Je(l,c,e,o))},r.isSelectingMonthRangeStart=function(e){var t;if(!r.isInSelectingRangeMonth(e))return!1;var n=r.props,o=n.day,i=n.startDate,a=n.selectsStart,s=K.setMonth(o,e),l=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return ze(s,a?l:i)},r.isSelectingMonthRangeEnd=function(e){var t;if(!r.isInSelectingRangeMonth(e))return!1;var n=r.props,o=n.day,i=n.endDate,a=n.selectsEnd,s=n.selectsRange,l=K.setMonth(o,e),u=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return ze(l,a||s?u:i)},r.isInSelectingRangeQuarter=function(e){var t,n=r.props,o=n.day,i=n.selectsStart,a=n.selectsEnd,s=n.selectsRange,l=n.startDate,u=n.endDate,c=null!==(t=r.props.selectingDate)&&void 0!==t?t:r.props.preSelection;return!(!(i||a||s)||!c)&&(i&&u?nt(c,u,e,o):(a&&l||!(!s||!l||u))&&nt(l,c,e,o))},r.isWeekInMonth=function(e){var t=r.props.day,n=o.addDays(e,6);return ze(e,t)||ze(n,t)},r.isCurrentMonth=function(e,t){return A.getYear(e)===A.getYear(Se())&&t===C.getMonth(Se())},r.isCurrentQuarter=function(e,t){return A.getYear(e)===A.getYear(Se())&&t===M.getQuarter(Se())},r.isSelectedMonth=function(e,t,n){return C.getMonth(n)===t&&A.getYear(e)===A.getYear(n)},r.isSelectMonthInList=function(e,t,n){return n.some((function(n){return r.isSelectedMonth(e,t,n)}))},r.isSelectedQuarter=function(e,t,n){return M.getQuarter(e)===t&&A.getYear(e)===A.getYear(n)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=0,o=!1,i=Pe(_e(r.props.day),r.props.locale,r.props.calendarStartDay),a=r.props.selected?function(e){return r.props.showWeekPicker?Pe(e,r.props.locale,r.props.calendarStartDay):r.props.selected}(r.props.selected):void 0,s=r.props.preSelection?function(e){return r.props.showWeekPicker?Pe(e,r.props.locale,r.props.calendarStartDay):r.props.preSelection}(r.props.preSelection):void 0;e.push(fe.default.createElement(Ct,ge({},r.props,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,key:n,day:i,month:C.getMonth(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,selected:a,preSelection:s,showWeekNumber:r.props.showWeekNumbers}))),!o;){n++,i=c.addWeeks(i,1);var l=t&&n>=6,u=!t&&!r.isWeekInMonth(i);if(l||u){if(!r.props.peekNextMonth)break;o=!0}}return e},r.onMonthClick=function(e,t){var n=r.isMonthDisabledForLabelDate(t),o=n.isDisabled,i=n.labelDate;o||r.handleDayClick(_e(i),e)},r.onMonthMouseEnter=function(e){var t=r.isMonthDisabledForLabelDate(e),n=t.isDisabled,o=t.labelDate;n||r.handleDayMouseEnter(_e(o))},r.handleMonthNavigation=function(e,t){var n,o,i,a;null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,t),null===(a=null===(i=r.MONTH_REFS[e])||void 0===i?void 0:i.current)||void 0===a||a.focus()},r.handleKeyboardNavigation=function(e,t,n){var o,i=r.props,a=i.selected,l=i.preSelection,u=i.setPreSelection,c=i.minDate,d=i.maxDate,f=i.showFourColumnMonthYearPicker,p=i.showTwoColumnMonthYearPicker;if(l){var h=Pt(f,p),m=r.getVerticalOffset(h),g=null===(o=At[h])||void 0===o?void 0:o.grid,y=function(e,t,n){var r,o,i=t,a=n;switch(e){case ve.ArrowRight:i=s.addMonths(t,1),a=11===n?0:n+1;break;case ve.ArrowLeft:i=oe.subMonths(t,1),a=0===n?11:n-1;break;case ve.ArrowUp:i=oe.subMonths(t,m),a=(null===(r=null==g?void 0:g[0])||void 0===r?void 0:r.includes(n))?n+12-m:n-m;break;case ve.ArrowDown:i=s.addMonths(t,m),a=(null===(o=null==g?void 0:g[g.length-1])||void 0===o?void 0:o.includes(n))?n-12+m:n+m}return{newCalculatedDate:i,newCalculatedMonth:a}};if(t!==ve.Enter){var v=function(e,t,n){for(var o=e,i=!1,a=0,s=y(o,t,n),l=s.newCalculatedDate,u=s.newCalculatedMonth;!i;){if(a>=40){l=t,u=n;break}var f;c&&l<c&&(o=ve.ArrowRight,l=(f=y(o,l,u)).newCalculatedDate,u=f.newCalculatedMonth),d&&l>d&&(o=ve.ArrowLeft,l=(f=y(o,l,u)).newCalculatedDate,u=f.newCalculatedMonth),Ze(l,r.props)?(l=(f=y(o,l,u)).newCalculatedDate,u=f.newCalculatedMonth):i=!0,a++}return{newCalculatedDate:l,newCalculatedMonth:u}}(t,l,n),b=v.newCalculatedDate,w=v.newCalculatedMonth;switch(t){case ve.ArrowRight:case ve.ArrowLeft:case ve.ArrowUp:case ve.ArrowDown:r.handleMonthNavigation(w,b)}}else r.isMonthDisabled(n)||(r.onMonthClick(e,n),null==u||u(a))}},r.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=At[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},r.onMonthKeyDown=function(e,t){var n=r.props,o=n.disabledKeyboardNavigation,i=n.handleOnMonthKeyDown,a=e.key;a!==ve.Tab&&e.preventDefault(),o||r.handleKeyboardNavigation(e,a,t),i&&i(e)},r.onQuarterClick=function(e,t){var n=Q.setQuarter(r.props.day,t);Xe(n,r.props)||r.handleDayClick(Te(n),e)},r.onQuarterMouseEnter=function(e){var t=Q.setQuarter(r.props.day,e);Xe(t,r.props)||r.handleDayMouseEnter(Te(t))},r.handleQuarterNavigation=function(e,t){var n,o,i,a;r.isDisabled(t)||r.isExcluded(t)||(null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,t),null===(a=null===(i=r.QUARTER_REFS[e-1])||void 0===i?void 0:i.current)||void 0===a||a.focus())},r.onQuarterKeyDown=function(e,t){var n,o,i=e.key;if(!r.props.disabledKeyboardNavigation)switch(i){case ve.Enter:r.onQuarterClick(e,t),null===(o=(n=r.props).setPreSelection)||void 0===o||o.call(n,r.props.selected);break;case ve.ArrowRight:if(!r.props.preSelection)break;r.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(r.props.preSelection,1));break;case ve.ArrowLeft:if(!r.props.preSelection)break;r.handleQuarterNavigation(1===t?4:t-1,ie.subQuarters(r.props.preSelection,1))}},r.isMonthDisabledForLabelDate=function(e){var t,n=r.props,o=n.day,i=n.minDate,a=n.maxDate,s=n.excludeDates,l=n.includeDates,u=K.setMonth(o,e);return{isDisabled:null!==(t=(i||a||s||l)&&Ge(u,r.props))&&void 0!==t&&t,labelDate:u}},r.isMonthDisabled=function(e){return r.isMonthDisabledForLabelDate(e).isDisabled},r.getMonthClassNames=function(e){var n=r.props,o=n.day,i=n.startDate,a=n.endDate,s=n.preSelection,l=n.monthClassName,u=l?l(K.setMonth(o,e)):void 0,c=r.getSelection();return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),u,{"react-datepicker__month-text--disabled":r.isMonthDisabled(e),"react-datepicker__month-text--selected":c?r.isSelectMonthInList(o,e,c):void 0,"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&s&&r.isSelectedMonth(o,e,s)&&!r.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":i&&a?Je(i,a,e,o):void 0,"react-datepicker__month-text--range-start":r.isRangeStartMonth(e),"react-datepicker__month-text--range-end":r.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":r.isCurrentMonth(o,e)})},r.getTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=C.getMonth(r.props.preSelection),n=r.isMonthDisabledForLabelDate(t).isDisabled;return e!==t||n||r.props.disabledKeyboardNavigation?"-1":"0"},r.getQuarterTabIndex=function(e){if(null==r.props.preSelection)return"-1";var t=M.getQuarter(r.props.preSelection),n=Xe(r.props.day,r.props);return e!==t||n||r.props.disabledKeyboardNavigation?"-1":"0"},r.getAriaLabel=function(e){var t=r.props,n=t.chooseDayAriaLabelPrefix,o=void 0===n?"Choose":n,i=t.disabledDayAriaLabelPrefix,a=void 0===i?"Not available":i,s=t.day,l=t.locale,u=K.setMonth(s,e),c=r.isDisabled(u)||r.isExcluded(u)?a:o;return"".concat(c," ").concat(Me(u,"MMMM yyyy",l))},r.getQuarterClassNames=function(e){var n=r.props,o=n.day,i=n.startDate,a=n.endDate,s=n.selected,l=n.minDate,u=n.maxDate,c=n.excludeDates,d=n.includeDates,f=n.filterDate,p=n.preSelection,h=n.disabledKeyboardNavigation,m=(l||u||c||d||f)&&Xe(Q.setQuarter(o,e),r.props);return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":m,"react-datepicker__quarter-text--selected":s?r.isSelectedQuarter(o,e,s):void 0,"react-datepicker__quarter-text--keyboard-selected":!h&&p&&r.isSelectedQuarter(o,e,p)&&!m,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":i&&a?nt(i,a,e,o):void 0,"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(e)})},r.getMonthContent=function(e){var t=r.props,n=t.showFullMonthYearPicker,o=t.renderMonthContent,i=t.locale,a=t.day,s=qe(e,i),l=$e(e,i);return o?o(e,s,l,a):n?l:s},r.getQuarterContent=function(e){var t,n=r.props,o=n.renderQuarterContent,i=function(e,t){return Me(Q.setQuarter(Se(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==o?void 0:o(e,i))&&void 0!==t?t:i},r.renderMonths=function(){var e,t=r.props,n=t.showTwoColumnMonthYearPicker,o=t.showFourColumnMonthYearPicker,i=t.day,a=t.selected,s=null===(e=At[Pt(o,n)])||void 0===e?void 0:e.grid;return null==s?void 0:s.map((function(e,t){return fe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map((function(e,t){return fe.default.createElement("div",{ref:r.MONTH_REFS[e],key:t,onClick:function(t){r.onMonthClick(t,e)},onKeyDown:function(t){xt(t)&&(t.preventDefault(),t.key=ve.Enter),r.onMonthKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onMonthMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onMonthMouseEnter(e)}:void 0,tabIndex:Number(r.getTabIndex(e)),className:r.getMonthClassNames(e),"aria-disabled":r.isMonthDisabled(e),role:"option","aria-label":r.getAriaLabel(e),"aria-current":r.isCurrentMonth(i,e)?"date":void 0,"aria-selected":a?r.isSelectedMonth(i,e,a):void 0},r.getMonthContent(e))})))}))},r.renderQuarters=function(){var e=r.props,t=e.day,n=e.selected;return fe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,o){return fe.default.createElement("div",{key:o,ref:r.QUARTER_REFS[o],role:"option",onClick:function(t){r.onQuarterClick(t,e)},onKeyDown:function(t){r.onQuarterKeyDown(t,e)},onMouseEnter:r.props.usePointerEvent?void 0:function(){return r.onQuarterMouseEnter(e)},onPointerEnter:r.props.usePointerEvent?function(){return r.onQuarterMouseEnter(e)}:void 0,className:r.getQuarterClassNames(e),"aria-selected":n?r.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(r.getQuarterTabIndex(e)),"aria-current":r.isCurrentQuarter(t,e)?"date":void 0},r.getQuarterContent(e))})))},r.getClassNames=function(){var e=r.props,n=e.selectingDate,o=e.selectsStart,i=e.selectsEnd,a=e.showMonthYearPicker,s=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(o||i)},{"react-datepicker__monthPicker":a},{"react-datepicker__quarterPicker":s},{"react-datepicker__weekPicker":l})},r}return me(r,e),r.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},r.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,r=e.day,o=e.ariaLabelPrefix,i=void 0===o?"Month ":o,a=i?i.trim()+" ":"";return fe.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(a).concat(Me(r,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},r}(n.Component),jt=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 fe.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)?fe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return me(t,e),t.prototype.render=function(){return fe.default.createElement(we,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),Tt=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 fe.default.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return fe.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 fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},fe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return fe.default.createElement(jt,ge({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,r=[t.renderReadView(!n,e)];return n&&r.unshift(t.renderDropdown(e)),r},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 me(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 qe(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 fe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function Rt(e,t){for(var n=[],r=_e(e),o=_e(t);!P.isAfter(r,o);)n.push(Se(r)),r=s.addMonths(r,1);return n}var Ft=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=N.getTime(e),r=Le(n.props.date,e)&&ze(n.props.date,e);return fe.default.createElement("div",{className:r?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":r?"true":void 0},r?fe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Me(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:Rt(n.props.minDate,n.props.maxDate)},n}return me(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 fe.default.createElement(we,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},n}(n.Component),It=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=_e(t.props.minDate),n=_e(t.props.maxDate),r=[];!P.isAfter(e,n);){var o=N.getTime(e);r.push(fe.default.createElement("option",{key:o,value:o},Me(e,t.props.dateFormat,t.props.locale))),e=s.addMonths(e,1)}return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return fe.default.createElement("select",{value:N.getTime(_e(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=Me(t.props.date,t.props.dateFormat,t.props.locale);return fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return fe.default.createElement(Ft,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=Se(e);Le(t.props.date,n)&&ze(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return me(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Lt=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,r,o;n.list&&(n.list.scrollTop=null!==(o=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(r=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==r?r:0):n.list.clientHeight,n.centerLi))&&void 0!==o?o:0)}))},n.handleClick=function(e){var t,r;(n.props.minTime||n.props.maxTime)&&at(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&it(e,n.props)||null===(r=(t=n.props).onChange)||void 0===r||r.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,vt(n.props.selected).getTime()===vt(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&at(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&it(e,n.props)},n.liClasses=function(e){var r,o=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&o.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&o.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*D.getHours(e)+60*E.getMinutes(e)+O.getSeconds(e))%(60*(null!==(r=n.props.intervals)&&void 0!==r?r:t.defaultProps.intervals))!=0&&o.push("react-datepicker__time-list-item--injected"),o.join(" ")},n.handleOnKeyDown=function(e,t){var r,o;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===(o=(r=n.props).handleOnKeyDown)||void 0===o||o.call(r,e)},n.renderTimes=function(){for(var e,r=[],o="string"==typeof n.props.format?n.props.format:"p",i=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,s=n.props.selected||n.props.openToDate||Se(),l=Ae(s),u=n.props.injectTimes&&n.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),c=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)}(s),d=c/i,f=0;f<d;f++){var p=a.addMinutes(l,f*i);if(r.push(p),u){var h=mt(l,p,f,i,u);r=r.concat(h)}}var m=r.reduce((function(e,t){return t.getTime()<=s.getTime()?t:e}),r[0]);return r.map((function(e){return fe.default.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===m&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===m?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},Me(e,o,n.props.locale))}))},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?fe.default.createElement(fe.default.Fragment,null):fe.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}},fe.default.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return me(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,r=this.state.height;return fe.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(),fe.default.createElement("div",{className:"react-datepicker__time"},fe.default.createElement("div",{className:"react-datepicker__time-box"},fe.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:r?{height:r}:{},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),zt=function(e){function r(r){var o=e.call(this,r)||this;return o.YEAR_REFS=ye([],Array(o.props.yearItemNumber),!0).map((function(){return n.createRef()})),o.isDisabled=function(e){return Ke(e,{minDate:o.props.minDate,maxDate:o.props.maxDate,excludeDates:o.props.excludeDates,includeDates:o.props.includeDates,filterDate:o.props.filterDate})},o.isExcluded=function(e){return Qe(e,{excludeDates:o.props.excludeDates})},o.selectingDate=function(){var e;return null!==(e=o.props.selectingDate)&&void 0!==e?e:o.props.preSelection},o.updateFocusOnPaginate=function(e){window.requestAnimationFrame((function(){var t,n;null===(n=null===(t=o.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()}))},o.handleYearClick=function(e,t){o.props.onDayClick&&o.props.onDayClick(e,t)},o.handleYearNavigation=function(e,t){var n,r,i,a,s=o.props,l=s.date,u=s.yearItemNumber;if(void 0!==l&&void 0!==u){var c=yt(l,u).startPeriod;o.isDisabled(t)||o.isExcluded(t)||(null===(r=(n=o.props).setPreSelection)||void 0===r||r.call(n,t),e-c<0?o.updateFocusOnPaginate(u-(c-e)):e-c>=u?o.updateFocusOnPaginate(Math.abs(u-(e-c))):null===(a=null===(i=o.YEAR_REFS[e-c])||void 0===i?void 0:i.current)||void 0===a||a.focus())}},o.isSameDay=function(e,t){return Ye(e,t)},o.isCurrentYear=function(e){return e===A.getYear(Se())},o.isRangeStart=function(e){return o.props.startDate&&o.props.endDate&&Le(J.setYear(Se(),e),o.props.startDate)},o.isRangeEnd=function(e){return o.props.startDate&&o.props.endDate&&Le(J.setYear(Se(),e),o.props.endDate)},o.isInRange=function(e){return et(e,o.props.startDate,o.props.endDate)},o.isInSelectingRange=function(e){var t=o.props,n=t.selectsStart,r=t.selectsEnd,i=t.selectsRange,a=t.startDate,s=t.endDate;return!(!(n||r||i)||!o.selectingDate())&&(n&&s?et(e,o.selectingDate(),s):(r&&a||!(!i||!a||s))&&et(e,a,o.selectingDate()))},o.isSelectingRangeStart=function(e){var t;if(!o.isInSelectingRange(e))return!1;var n=o.props,r=n.startDate,i=n.selectsStart;return Le(J.setYear(Se(),e),i?null!==(t=o.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},o.isSelectingRangeEnd=function(e){var t;if(!o.isInSelectingRange(e))return!1;var n=o.props,r=n.endDate,i=n.selectsEnd,a=n.selectsRange;return Le(J.setYear(Se(),e),i||a?null!==(t=o.selectingDate())&&void 0!==t?t:null:null!=r?r:null)},o.isKeyboardSelected=function(e){if(void 0!==o.props.date&&null!=o.props.selected&&null!=o.props.preSelection){var t=o.props,n=t.minDate,r=t.maxDate,i=t.excludeDates,a=t.includeDates,s=t.filterDate,l=je(J.setYear(o.props.date,e)),u=(n||r||i||a||s)&&tt(e,o.props);return!o.props.disabledKeyboardNavigation&&!o.props.inline&&!Ye(l,je(o.props.selected))&&Ye(l,je(o.props.preSelection))&&!u}},o.onYearClick=function(e,t){var n=o.props.date;void 0!==n&&o.handleYearClick(je(J.setYear(n,t)),e)},o.onYearKeyDown=function(e,t){var n,r,i=e.key,a=o.props,s=a.date,l=a.yearItemNumber,u=a.handleOnKeyDown;if(i!==ve.Tab&&e.preventDefault(),!o.props.disabledKeyboardNavigation)switch(i){case ve.Enter:if(null==o.props.selected)break;o.onYearClick(e,t),null===(r=(n=o.props).setPreSelection)||void 0===r||r.call(n,o.props.selected);break;case ve.ArrowRight:if(null==o.props.preSelection)break;o.handleYearNavigation(t+1,d.addYears(o.props.preSelection,1));break;case ve.ArrowLeft:if(null==o.props.preSelection)break;o.handleYearNavigation(t-1,se.subYears(o.props.preSelection,1));break;case ve.ArrowUp:if(void 0===s||void 0===l||null==o.props.preSelection)break;var c=yt(s,l).startPeriod;if((h=t-(p=3))<c){var f=l%p;t>=c&&t<c+f?p=f:p+=f,h=t-p}o.handleYearNavigation(h,se.subYears(o.props.preSelection,p));break;case ve.ArrowDown:if(void 0===s||void 0===l||null==o.props.preSelection)break;var p,h,m=yt(s,l).endPeriod;(h=t+(p=3))>m&&(f=l%p,t<=m&&t>m-f?p=f:p+=f,h=t+p),o.handleYearNavigation(h,d.addYears(o.props.preSelection,p))}u&&u(e)},o.getYearClassNames=function(e){var n=o.props,r=n.date,i=n.minDate,a=n.maxDate,s=n.selected,l=n.excludeDates,u=n.includeDates,c=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),r?null==d?void 0:d(J.setYear(r,e)):void 0,{"react-datepicker__year-text--selected":s?e===A.getYear(s):void 0,"react-datepicker__year-text--disabled":(i||a||l||u||c)&&tt(e,o.props),"react-datepicker__year-text--keyboard-selected":o.isKeyboardSelected(e),"react-datepicker__year-text--range-start":o.isRangeStart(e),"react-datepicker__year-text--range-end":o.isRangeEnd(e),"react-datepicker__year-text--in-range":o.isInRange(e),"react-datepicker__year-text--in-selecting-range":o.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":o.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":o.isSelectingRangeEnd(e),"react-datepicker__year-text--today":o.isCurrentYear(e)})},o.getYearTabIndex=function(e){if(o.props.disabledKeyboardNavigation||null==o.props.preSelection)return"-1";var t=A.getYear(o.props.preSelection),n=tt(e,o.props);return e!==t||n?"-1":"0"},o.getYearContainerClassNames=function(){var e=o.props,n=e.selectingDate,r=e.selectsStart,i=e.selectsEnd,a=e.selectsRange;return t.clsx("react-datepicker__year",{"react-datepicker__year--selecting-range":n&&(r||i||a)})},o.getYearContent=function(e){return o.props.renderYearContent?o.props.renderYearContent(e):e},o}return me(r,e),r.prototype.render=function(){var e=this,t=[],n=this.props,r=n.date,o=n.yearItemNumber,i=n.onYearMouseEnter,a=n.onYearMouseLeave;if(void 0===r)return null;for(var s=yt(r,o),l=s.startPeriod,u=s.endPeriod,c=function(n){t.push(fe.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){xt(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 i(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return i(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return a(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return a(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,f=l;f<=u;f++)c(f);return fe.default.createElement("div",{className:this.getYearContainerClassNames()},fe.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))},r}(n.Component);function Bt(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,s=!0;n&&(s=A.getYear(n)<=a),r&&s&&(s=A.getYear(r)>=a),s&&o.push(a)}return o}var Yt,Ht=function(e){function r(t){var r=e.call(this,t)||this;r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map((function(t){return fe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:r.onChange.bind(r,t),"aria-selected":e===t?"true":void 0},e===t?fe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",t)})),n=r.props.minDate?A.getYear(r.props.minDate):null,o=r.props.maxDate?A.getYear(r.props.maxDate):null;return o&&r.state.yearsList.find((function(e){return e===o}))||t.unshift(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find((function(e){return e===n}))||t.push(fe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},fe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map((function(t){return t+e}));r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,a=o||(i?10:5);return r.state={yearsList:Bt(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=n.createRef(),r}return me(r,e),r.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}},r.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return fe.default.createElement(we,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},r}(n.Component),Wt=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?A.getYear(t.props.minDate):1900,n=t.props.maxDate?A.getYear(t.props.maxDate):2100,r=[],o=e;o<=n;o++)r.push(fe.default.createElement("option",{key:o,value:o},o));return r},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return fe.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return fe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},fe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),fe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return fe.default.createElement(Ht,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 r;null===(r=t.onSelect)||void 0===r||r.call(t,e,n),t.setOpen()},t.onSelect=function(e,n){var r,o;null===(o=(r=t.props).onSelect)||void 0===o||o.call(r,e,n)},t.setOpen=function(){var e,n;null===(n=(e=t.props).setOpen)||void 0===n||n.call(e,!0)},t}return me(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return fe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Vt=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Ut=function(e){function i(a){var u=e.call(this,a)||this;return u.monthContainer=void 0,u.handleClickOutside=function(e){u.props.onClickOutside(e)},u.setClickOutsideRef=function(){return u.containerRef.current},u.handleDropdownFocus=function(e){var t,n,r,o;r=e.target,o=(r.className||"").split(/\s+/),Vt.some((function(e){return o.indexOf(e)>=0}))&&(null===(n=(t=u.props).onDropdownFocus)||void 0===n||n.call(t,e))},u.getDateInView=function(){var e=u.props,t=e.preSelection,n=e.selected,r=e.openToDate,o=dt(u.props),i=ft(u.props),a=Se();return r||n||t||(o&&_.isBefore(a,o)?o:i&&P.isAfter(a,i)?i:a)},u.increaseMonth=function(){u.setState((function(e){var t=e.date;return{date:s.addMonths(t,1)}}),(function(){return u.handleMonthChange(u.state.date)}))},u.decreaseMonth=function(){u.setState((function(e){var t=e.date;return{date:oe.subMonths(t,1)}}),(function(){return u.handleMonthChange(u.state.date)}))},u.handleDayClick=function(e,t,n){u.props.onSelect(e,t,n),u.props.setPreSelection&&u.props.setPreSelection(e)},u.handleDayMouseEnter=function(e){u.setState({selectingDate:e}),u.props.onDayMouseEnter&&u.props.onDayMouseEnter(e)},u.handleMonthMouseLeave=function(){u.setState({selectingDate:void 0}),u.props.onMonthMouseLeave&&u.props.onMonthMouseLeave()},u.handleYearMouseEnter=function(e,t){u.setState({selectingDate:J.setYear(Se(),t)}),u.props.onYearMouseEnter&&u.props.onYearMouseEnter(e,t)},u.handleYearMouseLeave=function(e,t){u.props.onYearMouseLeave&&u.props.onYearMouseLeave(e,t)},u.handleYearChange=function(e){var t,n,r,o;null===(n=(t=u.props).onYearChange)||void 0===n||n.call(t,e),u.setState({isRenderAriaLiveMessage:!0}),u.props.adjustDateOnChange&&(u.props.onSelect(e),null===(o=(r=u.props).setOpen)||void 0===o||o.call(r,!0)),u.props.setPreSelection&&u.props.setPreSelection(e)},u.getEnabledPreSelectionDateForMonth=function(e){if(!Ke(e,u.props))return e;for(var t=_e(e),n=Ie(e),i=r.differenceInDays(n,t),a=null,s=0;s<=i;s++){var l=o.addDays(t,s);if(!Ke(l,u.props)){a=l;break}}return a},u.handleMonthChange=function(e){var t,n,r,o=null!==(t=u.getEnabledPreSelectionDateForMonth(e))&&void 0!==t?t:e;u.handleCustomMonthChange(o),u.props.adjustDateOnChange&&(u.props.onSelect(o),null===(r=(n=u.props).setOpen)||void 0===r||r.call(n,!0)),u.props.setPreSelection&&u.props.setPreSelection(o)},u.handleCustomMonthChange=function(e){var t,n;null===(n=(t=u.props).onMonthChange)||void 0===n||n.call(t,e),u.setState({isRenderAriaLiveMessage:!0})},u.handleMonthYearChange=function(e){u.handleYearChange(e),u.handleMonthChange(e)},u.changeYear=function(e){u.setState((function(t){var n=t.date;return{date:J.setYear(n,Number(e))}}),(function(){return u.handleYearChange(u.state.date)}))},u.changeMonth=function(e){u.setState((function(t){var n=t.date;return{date:K.setMonth(n,Number(e))}}),(function(){return u.handleMonthChange(u.state.date)}))},u.changeMonthYear=function(e){u.setState((function(t){var n=t.date;return{date:J.setYear(K.setMonth(n,C.getMonth(e)),A.getYear(e))}}),(function(){return u.handleMonthYearChange(u.state.date)}))},u.header=function(e){void 0===e&&(e=u.state.date);var n=Pe(e,u.props.locale,u.props.calendarStartDay),r=[];return u.props.showWeekNumbers&&r.push(fe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},u.props.weekLabel||"#")),r.concat([0,1,2,3,4,5,6].map((function(e){var r=o.addDays(n,e),i=u.formatWeekday(r,u.props.locale),a=u.props.weekDayClassName?u.props.weekDayClassName(r):void 0;return fe.default.createElement("div",{key:e,"aria-label":Me(r,"EEEE",u.props.locale),className:t.clsx("react-datepicker__day-name",a)},i)})))},u.formatWeekday=function(e,t){return u.props.formatWeekDay?function(e,t,n){return t(Me(e,"EEEE",n))}(e,u.props.formatWeekDay,t):u.props.useWeekdaysShort?function(e,t){return Me(e,"EEE",t)}(e,t):function(e,t){return Me(e,"EEEEEE",t)}(e,t)},u.decreaseYear=function(){u.setState((function(e){var t,n=e.date;return{date:se.subYears(n,u.props.showYearPicker?null!==(t=u.props.yearItemNumber)&&void 0!==t?t:i.defaultProps.yearItemNumber:1)}}),(function(){return u.handleYearChange(u.state.date)}))},u.clearSelectingDate=function(){u.setState({selectingDate:void 0})},u.renderPreviousButton=function(){var e;if(!u.props.renderCustomHeader){var t;switch(!0){case u.props.showMonthYearPicker:t=ut(u.state.date,u.props);break;case u.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.yearItemNumber,i=void 0===o?ke:o,a=yt(je(se.subYears(e,i)),i).endPeriod,s=r&&A.getYear(r);return s&&s>a||!1}(u.state.date,u.props);break;case u.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.minDate,o=n.includeDates,i=ne.startOfYear(e),a=ie.subQuarters(i,1);return r&&h.differenceInCalendarQuarters(r,a)>0||o&&o.every((function(e){return h.differenceInCalendarQuarters(e,a)>0}))||!1}(u.state.date,u.props);break;default:t=st(u.state.date,u.props)}if(((null!==(e=u.props.forceShowMonthNavigation)&&void 0!==e?e:i.defaultProps.forceShowMonthNavigation)||u.props.showDisabledMonthNavigation||!t)&&!u.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--previous"],r=u.decreaseMonth;(u.props.showMonthYearPicker||u.props.showQuarterYearPicker||u.props.showYearPicker)&&(r=u.decreaseYear),t&&u.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--previous--disabled"),r=void 0);var o=u.props.showMonthYearPicker||u.props.showQuarterYearPicker||u.props.showYearPicker,a=u.props,s=a.previousMonthButtonLabel,l=void 0===s?i.defaultProps.previousMonthButtonLabel:s,c=a.previousYearButtonLabel,d=void 0===c?i.defaultProps.previousYearButtonLabel:c,f=u.props,p=f.previousMonthAriaLabel,m=void 0===p?"string"==typeof l?l:"Previous Month":p,g=f.previousYearAriaLabel,y=void 0===g?"string"==typeof d?d:"Previous Year":g;return fe.default.createElement("button",{type:"button",className:n.join(" "),onClick:r,onKeyDown:u.props.handleOnKeyDown,"aria-label":o?y:m},fe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},o?d:l))}}},u.increaseYear=function(){u.setState((function(e){var t,n=e.date;return{date:d.addYears(n,u.props.showYearPicker?null!==(t=u.props.yearItemNumber)&&void 0!==t?t:i.defaultProps.yearItemNumber:1)}}),(function(){return u.handleYearChange(u.state.date)}))},u.renderNextButton=function(){var e;if(!u.props.renderCustomHeader){var t;switch(!0){case u.props.showMonthYearPicker:t=ct(u.state.date,u.props);break;case u.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.yearItemNumber,i=void 0===o?ke:o,a=yt(d.addYears(e,i),i).startPeriod,s=r&&A.getYear(r);return s&&s<a||!1}(u.state.date,u.props);break;case u.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,r=n.maxDate,o=n.includeDates,i=b.endOfYear(e),a=l.addQuarters(i,1);return r&&h.differenceInCalendarQuarters(a,r)>0||o&&o.every((function(e){return h.differenceInCalendarQuarters(a,e)>0}))||!1}(u.state.date,u.props);break;default:t=lt(u.state.date,u.props)}if(((null!==(e=u.props.forceShowMonthNavigation)&&void 0!==e?e:i.defaultProps.forceShowMonthNavigation)||u.props.showDisabledMonthNavigation||!t)&&!u.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];u.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),u.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var r=u.increaseMonth;(u.props.showMonthYearPicker||u.props.showQuarterYearPicker||u.props.showYearPicker)&&(r=u.increaseYear),t&&u.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),r=void 0);var o=u.props.showMonthYearPicker||u.props.showQuarterYearPicker||u.props.showYearPicker,a=u.props,s=a.nextMonthButtonLabel,c=void 0===s?i.defaultProps.nextMonthButtonLabel:s,f=a.nextYearButtonLabel,p=void 0===f?i.defaultProps.nextYearButtonLabel:f,m=u.props,g=m.nextMonthAriaLabel,y=void 0===g?"string"==typeof c?c:"Next Month":g,v=m.nextYearAriaLabel,w=void 0===v?"string"==typeof p?p:"Next Year":v;return fe.default.createElement("button",{type:"button",className:n.join(" "),onClick:r,onKeyDown:u.props.handleOnKeyDown,"aria-label":o?w:y},fe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},o?p:c))}}},u.renderCurrentMonth=function(e){void 0===e&&(e=u.state.date);var t=["react-datepicker__current-month"];return u.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),u.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),u.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),fe.default.createElement("h2",{className:t.join(" ")},Me(e,u.props.dateFormat,u.props.locale))},u.renderYearDropdown=function(e){if(void 0===e&&(e=!1),u.props.showYearDropdown&&!e)return fe.default.createElement(Wt,ge({},i.defaultProps,u.props,{date:u.state.date,onChange:u.changeYear,year:A.getYear(u.state.date)}))},u.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),u.props.showMonthDropdown&&!e)return fe.default.createElement(Tt,ge({},i.defaultProps,u.props,{month:C.getMonth(u.state.date),onChange:u.changeMonth}))},u.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),u.props.showMonthYearDropdown&&!e)return fe.default.createElement(It,ge({},i.defaultProps,u.props,{date:u.state.date,onChange:u.changeMonthYear}))},u.handleTodayButtonClick=function(e){u.props.onSelect(Re(),e),u.props.setPreSelection&&u.props.setPreSelection(Re())},u.renderTodayButton=function(){if(u.props.todayButton&&!u.props.showTimeSelectOnly)return fe.default.createElement("div",{className:"react-datepicker__today-button",onClick:u.handleTodayButtonClick},u.props.todayButton)},u.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return fe.default.createElement("div",{className:"react-datepicker__header ".concat(u.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},u.renderCurrentMonth(t),fe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(u.props.dropdownMode),onFocus:u.handleDropdownFocus},u.renderMonthDropdown(0!==n),u.renderMonthYearDropdown(0!==n),u.renderYearDropdown(0!==n)),fe.default.createElement("div",{className:"react-datepicker__day-names"},u.header(t)))},u.renderCustomHeader=function(e){var t,n,r=e.monthDate,o=e.i;if(u.props.showTimeSelect&&!u.state.monthContainer||u.props.showTimeSelectOnly)return null;var i=st(u.state.date,u.props),a=lt(u.state.date,u.props),s=ut(u.state.date,u.props),l=ct(u.state.date,u.props),c=!u.props.showMonthYearPicker&&!u.props.showQuarterYearPicker&&!u.props.showYearPicker;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:u.props.onDropdownFocus},null===(n=(t=u.props).renderCustomHeader)||void 0===n?void 0:n.call(t,ge(ge({},u.state),{customHeaderCount:o,monthDate:r,changeMonth:u.changeMonth,changeYear:u.changeYear,decreaseMonth:u.decreaseMonth,increaseMonth:u.increaseMonth,decreaseYear:u.decreaseYear,increaseYear:u.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:a,prevYearButtonDisabled:s,nextYearButtonDisabled:l})),c&&fe.default.createElement("div",{className:"react-datepicker__day-names"},u.header(r)))},u.renderYearHeader=function(e){var t=e.monthDate,n=u.props,r=n.showYearPicker,o=n.yearItemNumber,a=yt(t,void 0===o?i.defaultProps.yearItemNumber:o),s=a.startPeriod,l=a.endPeriod;return fe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},r?"".concat(s," - ").concat(l):A.getYear(t))},u.renderHeader=function(e){var t=e.monthDate,n=e.i,r={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==u.props.renderCustomHeader:return u.renderCustomHeader(r);case u.props.showMonthYearPicker||u.props.showQuarterYearPicker||u.props.showYearPicker:return u.renderYearHeader(r);default:return u.renderDefaultHeader(r)}},u.renderMonths=function(){var e,t;if(!u.props.showTimeSelectOnly&&!u.props.showYearPicker){for(var n=[],r=null!==(e=u.props.monthsShown)&&void 0!==e?e:i.defaultProps.monthsShown,o=u.props.showPreviousMonths?r-1:0,a=u.props.showMonthYearPicker||u.props.showQuarterYearPicker?d.addYears(u.state.date,o):oe.subMonths(u.state.date,o),l=null!==(t=u.props.monthSelectedIn)&&void 0!==t?t:o,c=0;c<r;++c){var f=c-l+o,p=u.props.showMonthYearPicker||u.props.showQuarterYearPicker?d.addYears(a,f):s.addMonths(a,f),h="month-".concat(c),m=c<r-1,g=c>0;n.push(fe.default.createElement("div",{key:h,ref:function(e){u.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},u.renderHeader({monthDate:p,i:c}),fe.default.createElement(_t,ge({},i.defaultProps,u.props,{ariaLabelPrefix:u.props.monthAriaLabelPrefix,day:p,onDayClick:u.handleDayClick,handleOnKeyDown:u.props.handleOnDayKeyDown,handleOnMonthKeyDown:u.props.handleOnKeyDown,onDayMouseEnter:u.handleDayMouseEnter,onMouseLeave:u.handleMonthMouseLeave,orderInDisplay:c,selectingDate:u.state.selectingDate,monthShowsDuplicateDaysEnd:m,monthShowsDuplicateDaysStart:g}))))}return n}},u.renderYears=function(){if(!u.props.showTimeSelectOnly)return u.props.showYearPicker?fe.default.createElement("div",{className:"react-datepicker__year--container"},u.renderHeader({monthDate:u.state.date}),fe.default.createElement(zt,ge({},i.defaultProps,u.props,{selectingDate:u.state.selectingDate,date:u.state.date,onDayClick:u.handleDayClick,clearSelectingDate:u.clearSelectingDate,onYearMouseEnter:u.handleYearMouseEnter,onYearMouseLeave:u.handleYearMouseLeave}))):void 0},u.renderTimeSection=function(){if(u.props.showTimeSelect&&(u.state.monthContainer||u.props.showTimeSelectOnly))return fe.default.createElement(Lt,ge({},i.defaultProps,u.props,{onChange:u.props.onTimeChange,format:u.props.timeFormat,intervals:u.props.timeIntervals,monthRef:u.state.monthContainer}))},u.renderInputTimeSection=function(){var e=u.props.selected?new Date(u.props.selected):void 0,t=e&&Ce(e)&&Boolean(u.props.selected)?"".concat(gt(e.getHours()),":").concat(gt(e.getMinutes())):"";if(u.props.showTimeInput)return fe.default.createElement(Dt,ge({},i.defaultProps,u.props,{date:e,timeString:t,onChange:u.props.onTimeChange}))},u.renderAriaLiveRegion=function(){var e,t,n=yt(u.state.date,null!==(e=u.props.yearItemNumber)&&void 0!==e?e:i.defaultProps.yearItemNumber),r=n.startPeriod,o=n.endPeriod;return t=u.props.showYearPicker?"".concat(r," - ").concat(o):u.props.showMonthYearPicker||u.props.showQuarterYearPicker?A.getYear(u.state.date):"".concat($e(C.getMonth(u.state.date),u.props.locale)," ").concat(A.getYear(u.state.date)),fe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},u.state.isRenderAriaLiveMessage&&t)},u.renderChildren=function(){if(u.props.children)return fe.default.createElement("div",{className:"react-datepicker__children-container"},u.props.children)},u.containerRef=n.createRef(),u.state={date:u.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},u}return me(i,e),Object.defineProperty(i,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:ke}},enumerable:!1,configurable:!0}),i.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},i.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||Ye(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Ye(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!ze(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}},i.prototype.render=function(){var e=this.props.container||be;return fe.default.createElement(we,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},fe.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()))},i}(n.Component),$t=function(e){var t=e.icon,n=e.className,r=void 0===n?"":n,o=e.onClick,i="react-datepicker__calendar-icon";return"string"==typeof t?fe.default.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):fe.default.isValidElement(t)?fe.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof o&&o(e)}}):fe.default.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},fe.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"}))},qt=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return me(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 pe.default.createPortal(this.props.children,this.el)},t}(n.Component),Kt=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},Qt=function(e){function t(t){var r=e.call(this,t)||this;return r.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=r.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(Kt)},r.handleFocusStart=function(){var e=r.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},r.handleFocusEnd=function(){var e=r.getTabChildren();e&&e.length>1&&e[0].focus()},r.tabLoopRef=n.createRef(),r}return me(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?fe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},fe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,fe.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 r(){return null!==e&&e.apply(this,arguments)||this}return me(r,e),Object.defineProperty(r,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),r.prototype.render=function(){var e=this.props,o=e.className,i=e.wrapperClassName,a=e.hidePopper,s=void 0===a?r.defaultProps.hidePopper:a,l=e.popperComponent,u=e.targetComponent,c=e.enableTabLoop,d=e.popperOnKeyDown,f=e.portalId,p=e.portalHost,h=e.popperProps,m=e.showArrow,g=void 0;if(!s){var y=t.clsx("react-datepicker-popper",o);g=fe.default.createElement(Qt,{enableTabLoop:c},fe.default.createElement("div",{ref:h.refs.setFloating,style:h.floatingStyles,className:y,"data-placement":h.placement,onKeyDown:d},l,m&&fe.default.createElement(ue.FloatingArrow,{ref:h.arrowRef,context:h.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)),f&&!s&&(g=fe.default.createElement(qt,{portalId:f,portalHost:p},g));var v=t.clsx("react-datepicker-wrapper",i);return fe.default.createElement(fe.default.Fragment,null,fe.default.createElement("div",{ref:h.refs.setReference,className:v},u),g)},r}(n.Component),Jt=(Yt=Gt,function(e){var t,r="boolean"!=typeof e.hidePopper||e.hidePopper,o=n.useRef(null),i=ue.useFloating(ge({open:!r,whileElementsMounted:ue.autoUpdate,placement:e.popperPlacement,middleware:ye([ue.flip({padding:15}),ue.offset(10),ue.arrow({element:o})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),a=ge(ge({},e),{hidePopper:r,popperProps:ge(ge({},i),{arrowRef:o})});return fe.default.createElement(Yt,ge({},a))}),Zt="react-datepicker-ignore-onclickoutside",Xt="Date input not valid.",en=function(e){function r(i){var a=e.call(this,i)||this;return a.calendar=null,a.input=null,a.getPreSelection=function(){return a.props.openToDate?a.props.openToDate:a.props.selectsEnd&&a.props.startDate?a.props.startDate:a.props.selectsStart&&a.props.endDate?a.props.endDate:Se()},a.modifyHolidays=function(){var e;return null===(e=a.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return Ce(n)?ye(ye([],e,!0),[ge(ge({},t),{date:n})],!1):e}),[])},a.calcInitialState=function(){var e,t=a.getPreSelection(),n=dt(a.props),r=ft(a.props),o=n&&_.isBefore(t,Ae(n))?n:r&&P.isAfter(t,Fe(r))?r:t;return{open:a.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=a.props.selectsRange?a.props.startDate:a.props.selected)&&void 0!==e?e:o,highlightDates:pt(a.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},a.resetHiddenStatus=function(){a.setState(ge(ge({},a.state),{wasHidden:!1}))},a.setHiddenStatus=function(){a.setState(ge(ge({},a.state),{wasHidden:!0}))},a.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&a.setHiddenStatus()},a.clearPreventFocusTimeout=function(){a.preventFocusTimeout&&clearTimeout(a.preventFocusTimeout)},a.setFocus=function(){a.input&&a.input.focus&&a.input.focus({preventScroll:!0})},a.setBlur=function(){a.input&&a.input.blur&&a.input.blur(),a.cancelFocusInput()},a.setOpen=function(e,t){void 0===t&&(t=!1),a.setState({open:e,preSelection:e&&a.state.open?a.state.preSelection:a.calcInitialState().preSelection,lastPreSelectChange:nn},(function(){e||a.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&a.setBlur(),a.setState({inputValue:null})}))}))},a.inputOk=function(){return j.isDate(a.state.preSelection)},a.isCalendarOpen=function(){return void 0===a.props.open?a.state.open&&!a.props.disabled&&!a.props.readOnly:a.props.open},a.handleFocus=function(e){var t,n,r=a.state.wasHidden,o=!r||a.state.open;r&&a.resetHiddenStatus(),!a.state.preventFocus&&o&&(null===(n=(t=a.props).onFocus)||void 0===n||n.call(t,e),a.props.preventOpenOnFocus||a.props.readOnly||a.setOpen(!0)),a.setState({focused:!0})},a.sendFocusBackToInput=function(){a.preventFocusTimeout&&a.clearPreventFocusTimeout(),a.setState({preventFocus:!0},(function(){a.preventFocusTimeout=setTimeout((function(){a.setFocus(),a.setState({preventFocus:!1})}))}))},a.cancelFocusInput=function(){clearTimeout(a.inputFocusTimeout),a.inputFocusTimeout=void 0},a.deferFocusInput=function(){a.cancelFocusInput(),a.inputFocusTimeout=setTimeout((function(){return a.setFocus()}),1)},a.handleDropdownFocus=function(){a.cancelFocusInput()},a.handleBlur=function(e){var t,n;(!a.state.open||a.props.withPortal||a.props.showTimeInput)&&(null===(n=(t=a.props).onBlur)||void 0===n||n.call(t,e)),a.setState({focused:!1})},a.handleCalendarClickOutside=function(e){var t,n;a.props.inline||a.setOpen(!1),null===(n=(t=a.props).onClickOutside)||void 0===n||n.call(t,e),a.props.withPortal&&e.preventDefault()},a.handleChange=function(){for(var e,t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[0];if(!a.props.onChangeRaw||(a.props.onChangeRaw.apply(a,n),i&&"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){a.setState({inputValue:(null==i?void 0:i.target)instanceof HTMLInputElement?i.target.value:null,lastPreSelectChange:tn});var s=a.props,l=s.dateFormat,u=void 0===l?r.defaultProps.dateFormat:l,c=s.strictParsing,d=void 0===c?r.defaultProps.strictParsing:c,f=s.selectsRange,p=s.startDate,h=s.endDate,m=(null==i?void 0:i.target)instanceof HTMLInputElement?i.target.value:"";if(f){var g=m.split("-",2).map((function(e){return e.trim()})),y=g[0],v=g[1],b=Ee(null!=y?y:"",u,a.props.locale,d),w=Ee(null!=v?v:"",u,a.props.locale,d),x=(null==p?void 0:p.getTime())!==(null==b?void 0:b.getTime()),k=(null==h?void 0:h.getTime())!==(null==w?void 0:w.getTime());if(!x&&!k)return;if(b&&Ke(b,a.props))return;if(w&&Ke(w,a.props))return;null===(t=(e=a.props).onChange)||void 0===t||t.call(e,[b,w],i)}else{var S=Ee(m,u,a.props.locale,d,a.props.minDate);a.props.showTimeSelectOnly&&a.props.selected&&S&&!Ye(S,a.props.selected)&&(S=U.set(a.props.selected,{hours:D.getHours(S),minutes:E.getMinutes(S),seconds:O.getSeconds(S)})),!S&&m||a.setSelected(S,i,!0)}}},a.handleSelect=function(e,t,n){if(a.props.shouldCloseOnSelect&&!a.props.showTimeSelect&&a.sendFocusBackToInput(),a.props.onChangeRaw&&a.props.onChangeRaw(t),a.setSelected(e,t,!1,n),a.props.showDateSelect&&a.setState({isRenderAriaLiveMessage:!0}),!a.props.shouldCloseOnSelect||a.props.showTimeSelect)a.setPreSelection(e);else if(!a.props.inline){a.props.selectsRange||a.setOpen(!1);var r=a.props,o=r.startDate,i=r.endDate;!o||i||!a.props.swapRange&&wt(e,o)||a.setOpen(!1)}},a.setSelected=function(e,t,n,r){var o,i,s=e;if(a.props.showYearPicker){if(null!==s&&tt(A.getYear(s),a.props))return}else if(a.props.showMonthYearPicker){if(null!==s&&Ge(s,a.props))return}else if(null!==s&&Ke(s,a.props))return;var l=a.props,u=l.onChange,c=l.selectsRange,d=l.startDate,f=l.endDate,p=l.selectsMultiple,h=l.selectedDates,m=l.minTime,g=l.swapRange;if(!He(a.props.selected,s)||a.props.allowSameDay||c||p)if(null!==s&&(!a.props.selected||n&&(a.props.showTimeSelect||a.props.showTimeSelectOnly||a.props.showTimeInput)||(s=Ne(s,{hour:D.getHours(a.props.selected),minute:E.getMinutes(a.props.selected),second:O.getSeconds(a.props.selected)})),n||!a.props.showTimeSelect&&!a.props.showTimeSelectOnly||m&&(s=Ne(s,{hour:m.getHours(),minute:m.getMinutes(),second:m.getSeconds()})),a.props.inline||a.setState({preSelection:s}),a.props.focusSelectedMonth||a.setState({monthSelectedIn:r})),c){var y=d&&f;d||f?d&&!f&&(null===s?null==u||u([null,null],t):wt(s,d)?g?null==u||u([s,d],t):null==u||u([s,null],t):null==u||u([d,s],t)):null==u||u([s,null],t),y&&(null==u||u([s,null],t))}else if(p){if(null!==s)if(null==h?void 0:h.length)if(h.some((function(e){return Ye(e,s)}))){var v=h.filter((function(e){return!Ye(e,s)}));null==u||u(v,t)}else null==u||u(ye(ye([],h,!0),[s],!1),t);else null==u||u([s],t)}else null==u||u(s,t);n||(null===(i=(o=a.props).onSelect)||void 0===i||i.call(o,s,t),a.setState({inputValue:null}))},a.setPreSelection=function(e){var t=j.isDate(a.props.minDate),n=j.isDate(a.props.maxDate),r=!0;if(e){var o=Ae(e);if(t&&n)r=We(e,a.props.minDate,a.props.maxDate);else if(t){var i=Ae(a.props.minDate);r=P.isAfter(e,i)||He(o,i)}else if(n){var s=Fe(a.props.maxDate);r=_.isBefore(e,s)||He(o,s)}}r&&a.setState({preSelection:e})},a.toggleCalendar=function(){a.setOpen(!a.state.open)},a.handleTimeChange=function(e){var t,n;if(!a.props.selectsRange&&!a.props.selectsMultiple){var r=a.props.selected?a.props.selected:a.getPreSelection(),o=a.props.selected?e:Ne(r,{hour:D.getHours(e),minute:E.getMinutes(e)});a.setState({preSelection:o}),null===(n=(t=a.props).onChange)||void 0===n||n.call(t,o),a.props.shouldCloseOnSelect&&!a.props.showTimeInput&&(a.sendFocusBackToInput(),a.setOpen(!1)),a.props.showTimeInput&&a.setOpen(!0),(a.props.showTimeSelectOnly||a.props.showTimeSelect)&&a.setState({isRenderAriaLiveMessage:!0}),a.setState({inputValue:null})}},a.onInputClick=function(){var e,t;a.props.disabled||a.props.readOnly||a.setOpen(!0),null===(t=(e=a.props).onInputClick)||void 0===t||t.call(e)},a.onInputKeyDown=function(e){var t,n,r,o,i,s;null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e);var l=e.key;if(a.state.open||a.props.inline||a.props.preventOpenOnFocus){if(a.state.open){if(l===ve.ArrowDown||l===ve.ArrowUp){e.preventDefault();var u=a.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":a.props.showWeekPicker&&a.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':a.props.showFullMonthYearPicker||a.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=(null===(o=a.calendar)||void 0===o?void 0:o.containerRef.current)instanceof Element&&a.calendar.containerRef.current.querySelector(u);return void(c instanceof HTMLElement&&c.focus({preventScroll:!0}))}var d=Se(a.state.preSelection);l===ve.Enter?(e.preventDefault(),a.inputOk()&&a.state.lastPreSelectChange===nn?(a.handleSelect(d,e),!a.props.shouldCloseOnSelect&&a.setPreSelection(d)):a.setOpen(!1)):l===ve.Escape?(e.preventDefault(),a.sendFocusBackToInput(),a.setOpen(!1)):l===ve.Tab&&a.setOpen(!1),a.inputOk()||null===(s=(i=a.props).onInputError)||void 0===s||s.call(i,{code:1,msg:Xt})}}else l!==ve.ArrowDown&&l!==ve.ArrowUp&&l!==ve.Enter||null===(r=a.onInputClick)||void 0===r||r.call(a)},a.onPortalKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),a.setState({preventFocus:!0},(function(){a.setOpen(!1),setTimeout((function(){a.setFocus(),a.setState({preventFocus:!1})}))})))},a.onDayKeyDown=function(e){var t,n,r,i,l,u,f=a.props,p=f.minDate,h=f.maxDate,m=f.disabledKeyboardNavigation,g=f.showWeekPicker,y=f.shouldCloseOnSelect,b=f.locale,w=f.calendarStartDay,x=f.adjustDateOnChange,k=f.inline;if(null===(n=(t=a.props).onKeyDown)||void 0===n||n.call(t,e),!m){var D=e.key,S=e.shiftKey,E=Se(a.state.preSelection),M=function(e,t){var n=t;switch(e){case ve.ArrowRight:n=g?c.addWeeks(t,1):o.addDays(t,1);break;case ve.ArrowLeft:n=g?ae.subWeeks(t,1):re.subDays(t,1);break;case ve.ArrowUp:n=ae.subWeeks(t,1);break;case ve.ArrowDown:n=c.addWeeks(t,1);break;case ve.PageUp:n=S?se.subYears(t,1):oe.subMonths(t,1);break;case ve.PageDown:n=S?d.addYears(t,1):s.addMonths(t,1);break;case ve.Home:n=Pe(t,b,w);break;case ve.End:n=function(e){return v.endOfWeek(e)}(t)}return n};if(D===ve.Enter)return e.preventDefault(),a.handleSelect(E,e),void(!y&&a.setPreSelection(E));if(D===ve.Escape)return e.preventDefault(),a.setOpen(!1),void(a.inputOk()||null===(i=(r=a.props).onInputError)||void 0===i||i.call(r,{code:1,msg:Xt}));var O=null;switch(D){case ve.ArrowLeft:case ve.ArrowRight:case ve.ArrowUp:case ve.ArrowDown:case ve.PageUp:case ve.PageDown:case ve.Home:case ve.End:O=function(e,t){for(var n=e,r=!1,o=0,i=M(e,t);!r;){if(o>=40){i=t;break}p&&i<p&&(n=ve.ArrowRight,i=Ke(p,a.props)?M(n,i):p),h&&i>h&&(n=ve.ArrowLeft,i=Ke(h,a.props)?M(n,i):h),Ke(i,a.props)?(n!==ve.PageUp&&n!==ve.Home||(n=ve.ArrowRight),n!==ve.PageDown&&n!==ve.End||(n=ve.ArrowLeft),i=M(n,i)):r=!0,o++}return i}(D,E)}if(O){if(e.preventDefault(),a.setState({lastPreSelectChange:nn}),x&&a.setSelected(O),a.setPreSelection(O),k){var N=C.getMonth(E),P=C.getMonth(O),_=A.getYear(E),j=A.getYear(O);N!==P||_!==j?a.setState({shouldFocusDayInline:!0}):a.setState({shouldFocusDayInline:!1})}}else null===(u=(l=a.props).onInputError)||void 0===u||u.call(l,{code:1,msg:Xt})}},a.onPopperKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),a.sendFocusBackToInput())},a.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),a.sendFocusBackToInput();var t=a.props,n=t.selectsRange,r=t.onChange;n?null==r||r([null,null],e):null==r||r(null,e),a.setState({inputValue:null})},a.clear=function(){a.onClearClick()},a.onScroll=function(e){"boolean"==typeof a.props.closeOnScroll&&a.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||a.setOpen(!1):"function"==typeof a.props.closeOnScroll&&a.props.closeOnScroll(e)&&a.setOpen(!1)},a.renderCalendar=function(){var e,t;return a.props.inline||a.isCalendarOpen()?fe.default.createElement(Ut,ge({showMonthYearDropdown:void 0,ref:function(e){a.calendar=e}},a.props,a.state,{setOpen:a.setOpen,dateFormat:null!==(e=a.props.dateFormatCalendar)&&void 0!==e?e:r.defaultProps.dateFormatCalendar,onSelect:a.handleSelect,onClickOutside:a.handleCalendarClickOutside,holidays:ht(a.modifyHolidays()),outsideClickIgnoreClass:Zt,onDropdownFocus:a.handleDropdownFocus,onTimeChange:a.handleTimeChange,className:a.props.calendarClassName,container:a.props.calendarContainer,handleOnKeyDown:a.props.onKeyDown,handleOnDayKeyDown:a.onDayKeyDown,setPreSelection:a.setPreSelection,dropdownMode:null!==(t=a.props.dropdownMode)&&void 0!==t?t:r.defaultProps.dropdownMode}),a.props.children):null},a.renderAriaLiveRegion=function(){var e,t=a.props,n=t.dateFormat,o=void 0===n?r.defaultProps.dateFormat:n,i=t.locale,s=a.props.showTimeInput||a.props.showTimeSelect?"PPPPp":"PPPP";return e=a.props.selectsRange?"Selected start date: ".concat(Oe(a.props.startDate,{dateFormat:s,locale:i}),". ").concat(a.props.endDate?"End date: "+Oe(a.props.endDate,{dateFormat:s,locale:i}):""):a.props.showTimeSelectOnly?"Selected time: ".concat(Oe(a.props.selected,{dateFormat:o,locale:i})):a.props.showYearPicker?"Selected year: ".concat(Oe(a.props.selected,{dateFormat:"yyyy",locale:i})):a.props.showMonthYearPicker?"Selected month: ".concat(Oe(a.props.selected,{dateFormat:"MMMM yyyy",locale:i})):a.props.showQuarterYearPicker?"Selected quarter: ".concat(Oe(a.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(Oe(a.props.selected,{dateFormat:s,locale:i})),fe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},a.renderDateInput=function(){var e,o,i,s=t.clsx(a.props.className,((e={})[Zt]=a.state.open,e)),l=a.props.customInput||fe.default.createElement("input",{type:"text"}),u=a.props.customInputRef||"ref",c=a.props,d=c.dateFormat,f=void 0===d?r.defaultProps.dateFormat:d,p=c.locale,h="string"==typeof a.props.value?a.props.value:"string"==typeof a.state.inputValue?a.state.inputValue:a.props.selectsRange?function(e,t,n){if(!e)return"";var r=Oe(e,n),o=t?Oe(t,n):"";return"".concat(r," - ").concat(o)}(a.props.startDate,a.props.endDate,{dateFormat:f,locale:p}):a.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?Oe(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var r=Oe(e[1],t);return"".concat(n,", ").concat(r)}var o=e.length-1;return"".concat(n," (+").concat(o,")")}(null!==(i=a.props.selectedDates)&&void 0!==i?i:[],{dateFormat:f,locale:p}):Oe(a.props.selected,{dateFormat:f,locale:p});return n.cloneElement(l,((o={})[u]=function(e){a.input=e},o.value=h,o.onBlur=a.handleBlur,o.onChange=a.handleChange,o.onClick=a.onInputClick,o.onFocus=a.handleFocus,o.onKeyDown=a.onInputKeyDown,o.id=a.props.id,o.name=a.props.name,o.form=a.props.form,o.autoFocus=a.props.autoFocus,o.placeholder=a.props.placeholderText,o.disabled=a.props.disabled,o.autoComplete=a.props.autoComplete,o.className=t.clsx(l.props.className,s),o.title=a.props.title,o.readOnly=a.props.readOnly,o.required=a.props.required,o.tabIndex=a.props.tabIndex,o["aria-describedby"]=a.props.ariaDescribedBy,o["aria-invalid"]=a.props.ariaInvalid,o["aria-labelledby"]=a.props.ariaLabelledBy,o["aria-required"]=a.props.ariaRequired,o))},a.renderClearButton=function(){var e=a.props,n=e.isClearable,r=e.disabled,o=e.selected,i=e.startDate,s=e.endDate,l=e.clearButtonTitle,u=e.clearButtonClassName,c=void 0===u?"":u,d=e.ariaLabelClose,f=void 0===d?"Close":d,p=e.selectedDates;return n&&(null!=o||null!=i||null!=s||(null==p?void 0:p.length))?fe.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",c,{"react-datepicker__close-icon--disabled":r}),disabled:r,"aria-label":f,onClick:a.onClearClick,title:l,tabIndex:-1}):null},a.state=a.calcInitialState(),a.preventFocusTimeout=void 0,a}return me(r,e),Object.defineProperty(r,"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:ke,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),r.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.componentDidUpdate=function(e,t){var n,r,o,i,a,s;e.inline&&(a=e.selected,s=this.props.selected,a&&s?C.getMonth(a)!==C.getMonth(s)||A.getYear(a)!==A.getYear(s):a!==s)&&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:pt(this.props.highlightDates)}),t.focused||He(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(r=(n=this.props).onCalendarOpen)||void 0===r||r.call(n)),!0===t.open&&!1===this.state.open&&(null===(i=(o=this.props).onCalendarClose)||void 0===i||i.call(o)))},r.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},r.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,r=e.icon,o=e.calendarIconClassname,i=e.calendarIconClassName,a=e.toggleCalendarOnIconClick,s=this.state.open;return o&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),fe.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&fe.default.createElement($t,ge({icon:r,className:t.clsx(i,!i&&o,s&&"react-datepicker-ignore-onclickoutside")},a?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},r.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?fe.default.createElement(Qt,{enableTabLoop:this.props.enableTabLoop},fe.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=fe.default.createElement(qt,ge({portalId:this.props.portalId},this.props),t)),fe.default.createElement("div",null,this.renderInputContainer(),t)}return fe.default.createElement(Jt,ge({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},r}(n.Component),tn="input",nn="navigate";e.CalendarContainer=be,e.default=en,e.getDefaultLocale=Ve,e.registerLocale=function(e,t){var n=xe();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){xe().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(2949),n(5043),n(9868),n(6592),n(8172),n(3794),n(4940),n(726),n(2670),n(5670),n(6417),n(4395),n(9963),n(7785),n(2868),n(1907),n(9688),n(300),n(3877),n(6945),n(1556),n(7636),n(2797),n(1387),n(9375),n(8564),n(4602),n(5639),n(3229),n(305),n(1102),n(4261),n(638),n(184),n(8752),n(5752),n(5510),n(8965),n(3478),n(9192),n(4926),n(4144),n(7599),n(4502),n(2180),n(9017),n(4531),n(8416),n(5726),n(35),n(5597),n(5755),n(1831),n(2801),n(613),n(9928),n(3321),n(2097),n(8175),n(5993),n(8858),n(5083),n(5552),n(7950))},3023:(e,t)=>{"use strict";t.addLeadingZeros=function(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}},1610:(e,t,n)=>{"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return r.enUS}});var r=n(4785)},7784:(e,t)=>{"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},5718:(e,t,n)=>{"use strict";t.formatters=void 0;var r=n(9372),o=n(1387),i=n(4958),a=n(1416),s=n(3833),l=n(3023),u=n(6562);const c="midnight",d="noon",f="morning",p="afternoon",h="evening",m="night";t.formatters={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:"year"})}return u.lightFormatters.y(e,t)},Y:function(e,t,n,r){const o=(0,s.getWeekYear)(e,r),i=o>0?o:1-o;if("YY"===t){const e=i%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.addLeadingZeros)(i,t.length)},R:function(e,t){const n=(0,i.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 r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.addLeadingZeros)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.addLeadingZeros)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return u.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.addLeadingZeros)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=(0,a.getWeek)(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):(0,l.addLeadingZeros)(o,t.length)},I:function(e,t,n){const r=(0,o.getISOWeek)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.addLeadingZeros)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):u.lightFormatters.d(e,t)},D:function(e,t,n){const o=(0,r.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(o,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(o,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.addLeadingZeros)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.addLeadingZeros)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return(0,l.addLeadingZeros)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(o=12===r?d:0===r?c:r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(o=r>=17?h:r>=12?p:r>=4?f:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});default:return n.dayPeriod(o,{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 u.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):u.lightFormatters.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},k:function(e,t,n){let r=e.getHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.addLeadingZeros)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):u.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):u.lightFormatters.s(e,t)},S:function(e,t){return u.lightFormatters.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(0===r)return"Z";switch(t){case"X":return y(r);case"XXXX":case"XX":return v(r);default:return v(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return y(r);case"xxxx":case"xx":return v(r);default:return v(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(r,":");default:return"GMT"+v(r,":")}},t:function(e,t,n){const r=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(r,t.length)},T:function(e,t,n){const r=e.getTime();return(0,l.addLeadingZeros)(r,t.length)}};function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return 0===i?n+String(o):n+String(o)+t+(0,l.addLeadingZeros)(i,2)}function y(e,t){if(e%60===0){return(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2)}return v(e,t)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e>0?"-":"+",r=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(r/60),2)+t+(0,l.addLeadingZeros)(r%60,2)}},6562:(e,t,n)=>{"use strict";t.lightFormatters=void 0;var r=n(3023);t.lightFormatters={y(e,t){const n=e.getFullYear(),o=n>0?n:1-n;return(0,r.addLeadingZeros)("yy"===t?o%100:o,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,r.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,r.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,r.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,r.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,r.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,r.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,o=e.getMilliseconds(),i=Math.trunc(o*Math.pow(10,n-3));return(0,r.addLeadingZeros)(i,t.length)}}},5696:(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"})}},r=(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:r,P:(e,t)=>{const o=e.match(/(P+)(p+)?/)||[],i=o[1],a=o[2];if(!a)return n(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",n(i,t)).replace("{{time}}",r(a,t))}}},6708:(e,t)=>{"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}},5648:(e,t,n)=>{"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,r.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 r=n(5083)},8157:(e,t)=>{"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return r.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const r=function(e,t,n){const r="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(r," to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,n);if(console.warn(r),o.includes(e))throw new RangeError(r)};const n=/^D+$/,r=/^Y+$/,o=["D","DD","YY","YYYY"]},4471:(e,t,n)=>{"use strict";t.add=function(e,t){const{years:n=0,months:s=0,weeks:l=0,days:u=0,hours:c=0,minutes:d=0,seconds:f=0}=t,p=(0,a.toDate)(e),h=s||n?(0,o.addMonths)(p,s+12*n):p,m=u||l?(0,r.addDays)(h,u+7*l):h,g=1e3*(f+60*(d+60*c));return(0,i.constructFrom)(e,m.getTime()+g)};var r=n(6592),o=n(4940),i=n(2781),a=n(5083)},5650:(e,t,n)=>{"use strict";t.addBusinessDays=function(e,t){const n=(0,s.toDate)(e),l=(0,a.isWeekend)(n);if(isNaN(t))return(0,r.constructFrom)(e,NaN);const u=n.getHours(),c=t<0?-1:1,d=Math.trunc(t/5);n.setDate(n.getDate()+7*d);let f=Math.abs(t%5);for(;f>0;)n.setDate(n.getDate()+c),(0,a.isWeekend)(n)||(f-=1);l&&(0,a.isWeekend)(n)&&0!==t&&((0,o.isSaturday)(n)&&n.setDate(n.getDate()+(c<0?2:-1)),(0,i.isSunday)(n)&&n.setDate(n.getDate()+(c<0?1:-2)));return n.setHours(u),n};var r=n(2781),o=n(3005),i=n(1870),a=n(7169),s=n(5083)},6592:(e,t,n)=>{"use strict";t.addDays=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,o.constructFrom)(e,NaN);if(!t)return n;return n.setDate(n.getDate()+t),n};var r=n(5083),o=n(2781)},8172:(e,t,n)=>{"use strict";t.addHours=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInHour)};var r=n(3105),o=n(6865)},4278:(e,t,n)=>{"use strict";t.addISOWeekYears=function(e,t){return(0,o.setISOWeekYear)(e,(0,r.getISOWeekYear)(e)+t)};var r=n(4958),o=n(2546)},3105:(e,t,n)=>{"use strict";t.addMilliseconds=function(e,t){const n=+(0,r.toDate)(e);return(0,o.constructFrom)(e,n+t)};var r=n(5083),o=n(2781)},3794:(e,t,n)=>{"use strict";t.addMinutes=function(e,t){return(0,r.addMilliseconds)(e,t*o.millisecondsInMinute)};var r=n(3105),o=n(6865)},4940:(e,t,n)=>{"use strict";t.addMonths=function(e,t){const n=(0,r.toDate)(e);if(isNaN(t))return(0,o.constructFrom)(e,NaN);if(!t)return n;const i=n.getDate(),a=(0,o.constructFrom)(e,n.getTime());a.setMonth(n.getMonth()+t+1,0);const s=a.getDate();return i>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),i),n)};var r=n(5083),o=n(2781)},726:(e,t,n)=>{"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,r.addMonths)(e,n)};var r=n(4940)},2670:(e,t,n)=>{"use strict";t.addSeconds=function(e,t){return(0,r.addMilliseconds)(e,1e3*t)};var r=n(3105)},5670:(e,t,n)=>{"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,r.addDays)(e,n)};var r=n(6592)},6417:(e,t,n)=>{"use strict";t.addYears=function(e,t){return(0,r.addMonths)(e,12*t)};var r=n(4940)},9055:(e,t,n)=>{"use strict";t.areIntervalsOverlapping=function(e,t,n){const[o,i]=[+(0,r.toDate)(e.start),+(0,r.toDate)(e.end)].sort(((e,t)=>e-t)),[a,s]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return null!==n&&void 0!==n&&n.inclusive?o<=s&&a<=i:o<s&&a<i};var r=n(5083)},4895:(e,t,n)=>{"use strict";t.clamp=function(e,t){return(0,o.min)([(0,r.max)([e,t.start]),t.end])};var r=n(4926),o=n(4144)},7926:(e,t,n)=>{"use strict";t.closestIndexTo=function(e,t){const n=(0,r.toDate)(e);if(isNaN(Number(n)))return NaN;const o=n.getTime();let i,a;return t.forEach((function(e,t){const n=(0,r.toDate)(e);if(isNaN(Number(n)))return i=NaN,void(a=NaN);const s=Math.abs(o-n.getTime());(null==i||s<a)&&(i=t,a=s)})),i};var r=n(5083)},8834:(e,t,n)=>{"use strict";t.closestTo=function(e,t){const n=(0,o.toDate)(e);if(isNaN(Number(n)))return(0,r.constructFrom)(e,NaN);const i=n.getTime();let a,s;return t.forEach((t=>{const n=(0,o.toDate)(t);if(isNaN(Number(n)))return a=(0,r.constructFrom)(e,NaN),void(s=NaN);const l=Math.abs(i-n.getTime());(null==a||l<s)&&(a=n,s=l)})),a};var r=n(2781),o=n(5083)},1442:(e,t,n)=>{"use strict";t.compareAsc=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),i=n.getTime()-o.getTime();return i<0?-1:i>0?1:i};var r=n(5083)},386:(e,t,n)=>{"use strict";t.compareDesc=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),i=n.getTime()-o.getTime();return i>0?-1:i<0?1:i};var r=n(5083)},6865:(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,r=t.maxTime=24*Math.pow(10,8)*60*60*1e3,o=(t.minTime=-r,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),i=(t.secondsInMinute=60,t.secondsInDay=24*o),a=(t.secondsInWeek=7*i,t.secondsInYear=i*n),s=t.secondsInMonth=a/12;t.secondsInQuarter=3*s},2781:(e,t)=>{"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},9793:(e,t,n)=>{"use strict";t.constructNow=function(e){return(0,r.constructFrom)(e,Date.now())};var r=n(2781)},6831:(e,t,n)=>{"use strict";t.daysToWeeks=function(e){const t=e/r.daysInWeek,n=Math.trunc(t);return 0===n?0:n};var r=n(6865)},9415:(e,t,n)=>{"use strict";t.differenceInBusinessDays=function(e,t){const n=(0,l.toDate)(e);let u=(0,l.toDate)(t);if(!(0,a.isValid)(n)||!(0,a.isValid)(u))return NaN;const c=(0,o.differenceInCalendarDays)(n,u),d=c<0?-1:1,f=Math.trunc(c/7);let p=5*f;u=(0,r.addDays)(u,7*f);for(;!(0,i.isSameDay)(n,u);)p+=(0,s.isWeekend)(u)?0:d,u=(0,r.addDays)(u,d);return 0===p?0:p};var r=n(6592),o=n(4395),i=n(8752),a=n(3478),s=n(7169),l=n(5083)},4395:(e,t,n)=>{"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,o.startOfDay)(e),a=(0,o.startOfDay)(t),s=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a);return Math.round((s-l)/r.millisecondsInDay)};var r=n(6865),o=n(5755),i=n(5648)},101:(e,t,n)=>{"use strict";t.differenceInCalendarISOWeekYears=function(e,t){return(0,r.getISOWeekYear)(e)-(0,r.getISOWeekYear)(t)};var r=n(4958)},7134:(e,t,n)=>{"use strict";t.differenceInCalendarISOWeeks=function(e,t){const n=(0,o.startOfISOWeek)(e),a=(0,o.startOfISOWeek)(t),s=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a);return Math.round((s-l)/r.millisecondsInWeek)};var r=n(6865),o=n(9388),i=n(5648)},9963:(e,t,n)=>{"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),i=n.getFullYear()-o.getFullYear(),a=n.getMonth()-o.getMonth();return 12*i+a};var r=n(5083)},7785:(e,t,n)=>{"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,o.toDate)(e),i=(0,o.toDate)(t),a=n.getFullYear()-i.getFullYear(),s=(0,r.getQuarter)(n)-(0,r.getQuarter)(i);return 4*a+s};var r=n(4602),o=n(5083)},6359:(e,t,n)=>{"use strict";t.differenceInCalendarWeeks=function(e,t,n){const a=(0,o.startOfWeek)(e,n),s=(0,o.startOfWeek)(t,n),l=+a-(0,i.getTimezoneOffsetInMilliseconds)(a),u=+s-(0,i.getTimezoneOffsetInMilliseconds)(s);return Math.round((l-u)/r.millisecondsInWeek)};var r=n(6865),o=n(613),i=n(5648)},2868:(e,t,n)=>{"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()-o.getFullYear()};var r=n(5083)},9073:(e,t,n)=>{"use strict";t.differenceInDays=function(e,t){const n=(0,o.toDate)(e),a=(0,o.toDate)(t),s=i(n,a),l=Math.abs((0,r.differenceInCalendarDays)(n,a));n.setDate(n.getDate()-s*l);const u=Number(i(n,a)===-s),c=s*(l-u);return 0===c?0:c};var r=n(4395),o=n(5083);function i(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}},5711:(e,t,n)=>{"use strict";t.differenceInHours=function(e,t,n){const a=(0,i.differenceInMilliseconds)(e,t)/o.millisecondsInHour;return(0,r.getRoundingMethod)(null===n||void 0===n?void 0:n.roundingMethod)(a)};var r=n(6708),o=n(6865),i=n(2516)},9199:(e,t,n)=>{"use strict";t.differenceInISOWeekYears=function(e,t){let n=(0,a.toDate)(e);const s=(0,a.toDate)(t),l=(0,r.compareAsc)(n,s),u=Math.abs((0,o.differenceInCalendarISOWeekYears)(n,s));n=(0,i.subISOWeekYears)(n,l*u);const c=Number((0,r.compareAsc)(n,s)===-l),d=l*(u-c);return 0===d?0:d};var r=n(1442),o=n(101),i=n(4951),a=n(5083)},2516:(e,t,n)=>{"use strict";t.differenceInMilliseconds=function(e,t){return+(0,r.toDate)(e)-+(0,r.toDate)(t)};var r=n(5083)},8333:(e,t,n)=>{"use strict";t.differenceInMinutes=function(e,t,n){const a=(0,i.differenceInMilliseconds)(e,t)/o.millisecondsInMinute;return(0,r.getRoundingMethod)(null===n||void 0===n?void 0:n.roundingMethod)(a)};var r=n(6708),o=n(6865),i=n(2516)},7561:(e,t,n)=>{"use strict";t.differenceInMonths=function(e,t){const n=(0,a.toDate)(e),s=(0,a.toDate)(t),l=(0,r.compareAsc)(n,s),u=Math.abs((0,o.differenceInCalendarMonths)(n,s));let c;if(u<1)c=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*u);let t=(0,r.compareAsc)(n,s)===-l;(0,i.isLastDayOfMonth)((0,a.toDate)(e))&&1===u&&1===(0,r.compareAsc)(e,s)&&(t=!1),c=l*(u-Number(t))}return 0===c?0:c};var r=n(1442),o=n(9963),i=n(7337),a=n(5083)},9959:(e,t,n)=>{"use strict";t.differenceInQuarters=function(e,t,n){const i=(0,o.differenceInMonths)(e,t)/3;return(0,r.getRoundingMethod)(null===n||void 0===n?void 0:n.roundingMethod)(i)};var r=n(6708),o=n(7561)},1985:(e,t,n)=>{"use strict";t.differenceInSeconds=function(e,t,n){const i=(0,o.differenceInMilliseconds)(e,t)/1e3;return(0,r.getRoundingMethod)(null===n||void 0===n?void 0:n.roundingMethod)(i)};var r=n(6708),o=n(2516)},9825:(e,t,n)=>{"use strict";t.differenceInWeeks=function(e,t,n){const i=(0,o.differenceInDays)(e,t)/7;return(0,r.getRoundingMethod)(null===n||void 0===n?void 0:n.roundingMethod)(i)};var r=n(6708),o=n(9073)},6274:(e,t,n)=>{"use strict";t.differenceInYears=function(e,t){const n=(0,i.toDate)(e),a=(0,i.toDate)(t),s=(0,r.compareAsc)(n,a),l=Math.abs((0,o.differenceInCalendarYears)(n,a));n.setFullYear(1584),a.setFullYear(1584);const u=(0,r.compareAsc)(n,a)===-s,c=s*(l-+u);return 0===c?0:c};var r=n(1442),o=n(2868),i=n(5083)},1785:(e,t,n)=>{"use strict";t.eachDayOfInterval=function(e,t){var n;const o=(0,r.toDate)(e.start),i=(0,r.toDate)(e.end);let a=+o>+i;const s=a?+o:+i,l=a?i:o;l.setHours(0,0,0,0);let u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,a=!a);const c=[];for(;+l<=s;)c.push((0,r.toDate)(l)),l.setDate(l.getDate()+u),l.setHours(0,0,0,0);return a?c.reverse():c};var r=n(5083)},7909:(e,t,n)=>{"use strict";t.eachHourOfInterval=function(e,t){var n;const i=(0,o.toDate)(e.start),a=(0,o.toDate)(e.end);let s=+i>+a;const l=s?+i:+a;let u=s?a:i;u.setMinutes(0,0,0);let c=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!c)return[];c<0&&(c=-c,s=!s);const d=[];for(;+u<=l;)d.push((0,o.toDate)(u)),u=(0,r.addHours)(u,c);return s?d.reverse():d};var r=n(8172),o=n(5083)},6415:(e,t,n)=>{"use strict";t.eachMinuteOfInterval=function(e,t){var n;const a=(0,o.startOfMinute)((0,i.toDate)(e.start)),s=(0,i.toDate)(e.end);let l=+a>+s;const u=l?+a:+s;let c=l?s:a,d=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!d)return[];d<0&&(d=-d,l=!l);const f=[];for(;+c<=u;)f.push((0,i.toDate)(c)),c=(0,r.addMinutes)(c,d);return l?f.reverse():f};var r=n(3794),o=n(4573),i=n(5083)},6781:(e,t,n)=>{"use strict";t.eachMonthOfInterval=function(e,t){var n;const o=(0,r.toDate)(e.start),i=(0,r.toDate)(e.end);let a=+o>+i;const s=a?+o:+i,l=a?i:o;l.setHours(0,0,0,0),l.setDate(1);let u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,a=!a);const c=[];for(;+l<=s;)c.push((0,r.toDate)(l)),l.setMonth(l.getMonth()+u);return a?c.reverse():c};var r=n(5083)},1931:(e,t,n)=>{"use strict";t.eachQuarterOfInterval=function(e,t){var n;const a=(0,i.toDate)(e.start),s=(0,i.toDate)(e.end);let l=+a>+s;const u=l?+(0,o.startOfQuarter)(a):+(0,o.startOfQuarter)(s);let c=l?(0,o.startOfQuarter)(s):(0,o.startOfQuarter)(a),d=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!d)return[];d<0&&(d=-d,l=!l);const f=[];for(;+c<=u;)f.push((0,i.toDate)(c)),c=(0,r.addQuarters)(c,d);return l?f.reverse():f};var r=n(726),o=n(2801),i=n(5083)},2995:(e,t,n)=>{"use strict";t.eachWeekOfInterval=function(e,t){var n;const a=(0,i.toDate)(e.start),s=(0,i.toDate)(e.end);let l=+a>+s;const u=l?(0,o.startOfWeek)(s,t):(0,o.startOfWeek)(a,t),c=l?(0,o.startOfWeek)(a,t):(0,o.startOfWeek)(s,t);u.setHours(15),c.setHours(15);const d=+c.getTime();let f=u,p=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!p)return[];p<0&&(p=-p,l=!l);const h=[];for(;+f<=d;)f.setHours(0),h.push((0,i.toDate)(f)),f=(0,r.addWeeks)(f,p),f.setHours(15);return l?h.reverse():h};var r=n(5670),o=n(613),i=n(5083)},1994:(e,t,n)=>{"use strict";t.eachWeekendOfInterval=function(e){const t=(0,r.eachDayOfInterval)(e),n=[];let i=0;for(;i<t.length;){const e=t[i++];(0,o.isWeekend)(e)&&n.push(e)}return n};var r=n(1785),o=n(7169)},9246:(e,t,n)=>{"use strict";t.eachWeekendOfMonth=function(e){const t=(0,i.startOfMonth)(e),n=(0,o.endOfMonth)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var r=n(1994),o=n(9688),i=n(1831)},682:(e,t,n)=>{"use strict";t.eachWeekendOfYear=function(e){const t=(0,i.startOfYear)(e),n=(0,o.endOfYear)(e);return(0,r.eachWeekendOfInterval)({start:t,end:n})};var r=n(1994),o=n(3877),i=n(9928)},6434:(e,t,n)=>{"use strict";t.eachYearOfInterval=function(e,t){var n;const o=(0,r.toDate)(e.start),i=(0,r.toDate)(e.end);let a=+o>+i;const s=a?+o:+i,l=a?i:o;l.setHours(0,0,0,0),l.setMonth(0,1);let u=null!==(n=null===t||void 0===t?void 0:t.step)&&void 0!==n?n:1;if(!u)return[];u<0&&(u=-u,a=!a);const c=[];for(;+l<=s;)c.push((0,r.toDate)(l)),l.setFullYear(l.getFullYear()+u);return a?c.reverse():c};var r=n(5083)},1907:(e,t,n)=>{"use strict";t.endOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(23,59,59,999),t};var r=n(5083)},8076:(e,t,n)=>{"use strict";t.endOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=9+10*Math.floor(n/10);return t.setFullYear(o,11,31),t.setHours(23,59,59,999),t};var r=n(5083)},6098:(e,t,n)=>{"use strict";t.endOfHour=function(e){const t=(0,r.toDate)(e);return t.setMinutes(59,59,999),t};var r=n(5083)},8687:(e,t,n)=>{"use strict";t.endOfISOWeek=function(e){return(0,r.endOfWeek)(e,{weekStartsOn:1})};var r=n(300)},3466:(e,t,n)=>{"use strict";t.endOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const a=(0,o.startOfISOWeek)(n);return a.setMilliseconds(a.getMilliseconds()-1),a};var r=n(4958),o=n(9388),i=n(2781)},5476:(e,t,n)=>{"use strict";t.endOfMinute=function(e){const t=(0,r.toDate)(e);return t.setSeconds(59,999),t};var r=n(5083)},9688:(e,t,n)=>{"use strict";t.endOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var r=n(5083)},1686:(e,t,n)=>{"use strict";t.endOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(23,59,59,999),t};var r=n(5083)},2020:(e,t,n)=>{"use strict";t.endOfSecond=function(e){const t=(0,r.toDate)(e);return t.setMilliseconds(999),t};var r=n(5083)},4551:(e,t,n)=>{"use strict";t.endOfToday=function(){return(0,r.endOfDay)(Date.now())};var r=n(1907)},8863:(e,t)=>{"use strict";t.endOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(23,59,59,999),o}},300:(e,t,n)=>{"use strict";t.endOfWeek=function(e,t){var n,i,a,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(i=null!==(a=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:c.weekStartsOn)&&void 0!==i?i:null===(u=c.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0,f=(0,r.toDate)(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setDate(f.getDate()+h),f.setHours(23,59,59,999),f};var r=n(5083),o=n(7784)},3877:(e,t,n)=>{"use strict";t.endOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var r=n(5083)},8934:(e,t)=>{"use strict";t.endOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(23,59,59,999),o}},6945:(e,t,n)=>{"use strict";t.format=t.formatDate=function(e,t,n){var f,p,g,y,v,b,w,x,k,D,S,E,C,M;const O=(0,o.getDefaultOptions)(),N=null!==(f=null!==(p=null===n||void 0===n?void 0:n.locale)&&void 0!==p?p:O.locale)&&void 0!==f?f:r.defaultLocale,A=null!==(g=null!==(y=null!==(v=null!==(b=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==b?b:null===n||void 0===n||null===(w=n.locale)||void 0===w||null===(w=w.options)||void 0===w?void 0:w.firstWeekContainsDate)&&void 0!==v?v:O.firstWeekContainsDate)&&void 0!==y?y:null===(x=O.locale)||void 0===x||null===(x=x.options)||void 0===x?void 0:x.firstWeekContainsDate)&&void 0!==g?g:1,P=null!==(k=null!==(D=null!==(S=null!==(E=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==E?E:null===n||void 0===n||null===(C=n.locale)||void 0===C||null===(C=C.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==S?S:O.weekStartsOn)&&void 0!==D?D:null===(M=O.locale)||void 0===M||null===(M=M.options)||void 0===M?void 0:M.weekStartsOn)&&void 0!==k?k:0,_=(0,u.toDate)(e);if(!(0,l.isValid)(_))throw new RangeError("Invalid time value");let j=t.match(d).map((e=>{const t=e[0];if("p"===t||"P"===t){return(0,a.longFormatters[t])(e,N.formatLong)}return e})).join("").match(c).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:m(e)};if(i.formatters[t])return{isToken:!0,value:e};if(t.match(h))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));N.localize.preprocessor&&(j=N.localize.preprocessor(_,j));const T={firstWeekContainsDate:A,weekStartsOn:P,locale:N};return j.map((r=>{if(!r.isToken)return r.value;const o=r.value;(null!==n&&void 0!==n&&n.useAdditionalWeekYearTokens||!(0,s.isProtectedWeekYearToken)(o))&&(null!==n&&void 0!==n&&n.useAdditionalDayOfYearTokens||!(0,s.isProtectedDayOfYearToken)(o))||(0,s.warnOrThrowProtectedError)(o,t,String(e));return(0,i.formatters[o[0]])(_,o,N.localize,T)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return i.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var r=n(1610),o=n(7784),i=n(5718),a=n(5696),s=n(8157),l=n(3478),u=n(5083);const c=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,p=/''/g,h=/[a-zA-Z]/;function m(e){const t=e.match(f);return t?t[1].replace(p,"'"):e}},990:(e,t,n)=>{"use strict";t.formatDistance=function(e,t,n){var d,f;const p=(0,u.getDefaultOptions)(),h=null!==(d=null!==(f=null===n||void 0===n?void 0:n.locale)&&void 0!==f?f:p.locale)&&void 0!==d?d:l.defaultLocale,m=(0,r.compareAsc)(e,t);if(isNaN(m))throw new RangeError("Invalid time value");const g=Object.assign({},n,{addSuffix:null===n||void 0===n?void 0:n.addSuffix,comparison:m});let y,v;m>0?(y=(0,s.toDate)(t),v=(0,s.toDate)(e)):(y=(0,s.toDate)(e),v=(0,s.toDate)(t));const b=(0,a.differenceInSeconds)(v,y),w=((0,c.getTimezoneOffsetInMilliseconds)(v)-(0,c.getTimezoneOffsetInMilliseconds)(y))/1e3,x=Math.round((b-w)/60);let k;if(x<2)return null!==n&&void 0!==n&&n.includeSeconds?b<5?h.formatDistance("lessThanXSeconds",5,g):b<10?h.formatDistance("lessThanXSeconds",10,g):b<20?h.formatDistance("lessThanXSeconds",20,g):b<40?h.formatDistance("halfAMinute",0,g):b<60?h.formatDistance("lessThanXMinutes",1,g):h.formatDistance("xMinutes",1,g):0===x?h.formatDistance("lessThanXMinutes",1,g):h.formatDistance("xMinutes",x,g);if(x<45)return h.formatDistance("xMinutes",x,g);if(x<90)return h.formatDistance("aboutXHours",1,g);if(x<o.minutesInDay){const e=Math.round(x/60);return h.formatDistance("aboutXHours",e,g)}if(x<2520)return h.formatDistance("xDays",1,g);if(x<o.minutesInMonth){const e=Math.round(x/o.minutesInDay);return h.formatDistance("xDays",e,g)}if(x<2*o.minutesInMonth)return k=Math.round(x/o.minutesInMonth),h.formatDistance("aboutXMonths",k,g);if(k=(0,i.differenceInMonths)(v,y),k<12){const e=Math.round(x/o.minutesInMonth);return h.formatDistance("xMonths",e,g)}{const e=k%12,t=Math.trunc(k/12);return e<3?h.formatDistance("aboutXYears",t,g):e<9?h.formatDistance("overXYears",t,g):h.formatDistance("almostXYears",t+1,g)}};var r=n(1442),o=n(6865),i=n(7561),a=n(1985),s=n(5083),l=n(1610),u=n(7784),c=n(5648)},4179:(e,t,n)=>{"use strict";t.formatDistanceStrict=function(e,t,n){var c,d,f;const p=(0,o.getDefaultOptions)(),h=null!==(c=null!==(d=null===n||void 0===n?void 0:n.locale)&&void 0!==d?d:p.locale)&&void 0!==c?c:r.defaultLocale,m=(0,s.compareAsc)(e,t);if(isNaN(m))throw new RangeError("Invalid time value");const g=Object.assign({},n,{addSuffix:null===n||void 0===n?void 0:n.addSuffix,comparison:m});let y,v;m>0?(y=(0,u.toDate)(t),v=(0,u.toDate)(e)):(y=(0,u.toDate)(e),v=(0,u.toDate)(t));const b=(0,i.getRoundingMethod)(null!==(f=null===n||void 0===n?void 0:n.roundingMethod)&&void 0!==f?f:"round"),w=v.getTime()-y.getTime(),x=w/l.millisecondsInMinute,k=(0,a.getTimezoneOffsetInMilliseconds)(v)-(0,a.getTimezoneOffsetInMilliseconds)(y),D=(w-k)/l.millisecondsInMinute,S=null===n||void 0===n?void 0:n.unit;let E;E=S||(x<1?"second":x<60?"minute":x<l.minutesInDay?"hour":D<l.minutesInMonth?"day":D<l.minutesInYear?"month":"year");if("second"===E){const e=b(w/1e3);return h.formatDistance("xSeconds",e,g)}if("minute"===E){const e=b(x);return h.formatDistance("xMinutes",e,g)}if("hour"===E){const e=b(x/60);return h.formatDistance("xHours",e,g)}if("day"===E){const e=b(D/l.minutesInDay);return h.formatDistance("xDays",e,g)}if("month"===E){const e=b(D/l.minutesInMonth);return 12===e&&"month"!==S?h.formatDistance("xYears",1,g):h.formatDistance("xMonths",e,g)}{const e=b(D/l.minutesInYear);return h.formatDistance("xYears",e,g)}};var r=n(1610),o=n(7784),i=n(6708),a=n(5648),s=n(1442),l=n(6865),u=n(5083)},699:(e,t,n)=>{"use strict";t.formatDistanceToNow=function(e,t){return(0,o.formatDistance)(e,(0,r.constructNow)(e),t)};var r=n(9793),o=n(990)},466:(e,t,n)=>{"use strict";t.formatDistanceToNowStrict=function(e,t){return(0,r.formatDistanceStrict)(e,(0,o.constructNow)(e),t)};var r=n(4179),o=n(9793)},1381:(e,t,n)=>{"use strict";t.formatDuration=function(e,t){var n,a,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(a=null===t||void 0===t?void 0:t.locale)&&void 0!==a?a:c.locale)&&void 0!==n?n:r.defaultLocale,f=null!==(s=null===t||void 0===t?void 0:t.format)&&void 0!==s?s:i,p=null!==(l=null===t||void 0===t?void 0:t.zero)&&void 0!==l&&l,h=null!==(u=null===t||void 0===t?void 0:t.delimiter)&&void 0!==u?u:" ";if(!d.formatDistance)return"";return f.reduce(((t,n)=>{const r="x".concat(n.replace(/(^.)/,(e=>e.toUpperCase()))),o=e[n];return void 0!==o&&(p||e[n])?t.concat(d.formatDistance(r,o)):t}),[]).join(h)};var r=n(1610),o=n(7784);const i=["years","months","weeks","days","hours","minutes","seconds"]},6236:(e,t,n)=>{"use strict";t.formatISO=function(e,t){var n,i;const a=(0,r.toDate)(e);if(isNaN(a.getTime()))throw new RangeError("Invalid time value");const s=null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended",l=null!==(i=null===t||void 0===t?void 0:t.representation)&&void 0!==i?i:"complete";let u="",c="";const d="extended"===s?"-":"",f="extended"===s?":":"";if("time"!==l){const e=(0,o.addLeadingZeros)(a.getDate(),2),t=(0,o.addLeadingZeros)(a.getMonth()+1,2),n=(0,o.addLeadingZeros)(a.getFullYear(),4);u="".concat(n).concat(d).concat(t).concat(d).concat(e)}if("date"!==l){const e=a.getTimezoneOffset();if(0!==e){const t=Math.abs(e),n=(0,o.addLeadingZeros)(Math.trunc(t/60),2),r=(0,o.addLeadingZeros)(t%60,2);c="".concat(e<0?"+":"-").concat(n,":").concat(r)}else c="Z";const t=""===u?"":"T",n=[(0,o.addLeadingZeros)(a.getHours(),2),(0,o.addLeadingZeros)(a.getMinutes(),2),(0,o.addLeadingZeros)(a.getSeconds(),2)].join(f);u="".concat(u).concat(t).concat(n).concat(c)}return u};var r=n(5083),o=n(3023)},6389:(e,t,n)=>{"use strict";t.formatISO9075=function(e,t){var n,a;const s=(0,o.toDate)(e);if(!(0,r.isValid)(s))throw new RangeError("Invalid time value");const l=null!==(n=null===t||void 0===t?void 0:t.format)&&void 0!==n?n:"extended",u=null!==(a=null===t||void 0===t?void 0:t.representation)&&void 0!==a?a:"complete";let c="";const d="extended"===l?"-":"",f="extended"===l?":":"";if("time"!==u){const e=(0,i.addLeadingZeros)(s.getDate(),2),t=(0,i.addLeadingZeros)(s.getMonth()+1,2),n=(0,i.addLeadingZeros)(s.getFullYear(),4);c="".concat(n).concat(d).concat(t).concat(d).concat(e)}if("date"!==u){const e=(0,i.addLeadingZeros)(s.getHours(),2),t=(0,i.addLeadingZeros)(s.getMinutes(),2),n=(0,i.addLeadingZeros)(s.getSeconds(),2),r=""===c?"":" ";c="".concat(c).concat(r).concat(e).concat(f).concat(t).concat(f).concat(n)}return c};var r=n(3478),o=n(5083),i=n(3023)},6200:(e,t)=>{"use strict";t.formatISODuration=function(e){const{years:t=0,months:n=0,days:r=0,hours:o=0,minutes:i=0,seconds:a=0}=e;return"P".concat(t,"Y").concat(n,"M").concat(r,"DT").concat(o,"H").concat(i,"M").concat(a,"S")}},6290:(e,t,n)=>{"use strict";t.formatRFC3339=function(e,t){var n;const a=(0,o.toDate)(e);if(!(0,r.isValid)(a))throw new RangeError("Invalid time value");const s=null!==(n=null===t||void 0===t?void 0:t.fractionDigits)&&void 0!==n?n:0,l=(0,i.addLeadingZeros)(a.getDate(),2),u=(0,i.addLeadingZeros)(a.getMonth()+1,2),c=a.getFullYear(),d=(0,i.addLeadingZeros)(a.getHours(),2),f=(0,i.addLeadingZeros)(a.getMinutes(),2),p=(0,i.addLeadingZeros)(a.getSeconds(),2);let h="";if(s>0){const e=a.getMilliseconds(),t=Math.trunc(e*Math.pow(10,s-3));h="."+(0,i.addLeadingZeros)(t,s)}let m="";const g=a.getTimezoneOffset();if(0!==g){const e=Math.abs(g),t=(0,i.addLeadingZeros)(Math.trunc(e/60),2),n=(0,i.addLeadingZeros)(e%60,2);m="".concat(g<0?"+":"-").concat(t,":").concat(n)}else m="Z";return"".concat(c,"-").concat(u,"-").concat(l,"T").concat(d,":").concat(f,":").concat(p).concat(h).concat(m)};var r=n(3478),o=n(5083),i=n(3023)},4885:(e,t,n)=>{"use strict";t.formatRFC7231=function(e){const t=(0,o.toDate)(e);if(!(0,r.isValid)(t))throw new RangeError("Invalid time value");const n=a[t.getUTCDay()],l=(0,i.addLeadingZeros)(t.getUTCDate(),2),u=s[t.getUTCMonth()],c=t.getUTCFullYear(),d=(0,i.addLeadingZeros)(t.getUTCHours(),2),f=(0,i.addLeadingZeros)(t.getUTCMinutes(),2),p=(0,i.addLeadingZeros)(t.getUTCSeconds(),2);return"".concat(n,", ").concat(l," ").concat(u," ").concat(c," ").concat(d,":").concat(f,":").concat(p," GMT")};var r=n(3478),o=n(5083),i=n(3023);const a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},9969:(e,t,n)=>{"use strict";t.formatRelative=function(e,t,n){var l,u,c,d,f,p,h,m;const g=(0,i.toDate)(e),y=(0,i.toDate)(t),v=(0,s.getDefaultOptions)(),b=null!==(l=null!==(u=null===n||void 0===n?void 0:n.locale)&&void 0!==u?u:v.locale)&&void 0!==l?l:a.defaultLocale,w=null!==(c=null!==(d=null!==(f=null!==(p=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==p?p:null===n||void 0===n||null===(h=n.locale)||void 0===h||null===(h=h.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==f?f:v.weekStartsOn)&&void 0!==d?d:null===(m=v.locale)||void 0===m||null===(m=m.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==c?c:0,x=(0,r.differenceInCalendarDays)(g,y);if(isNaN(x))throw new RangeError("Invalid time value");let k;k=x<-6?"other":x<-1?"lastWeek":x<0?"yesterday":x<1?"today":x<2?"tomorrow":x<7?"nextWeek":"other";const D=b.formatRelative(k,g,y,{locale:b,weekStartsOn:w});return(0,o.format)(g,D,{locale:b,weekStartsOn:w})};var r=n(4395),o=n(6945),i=n(5083),a=n(1610),s=n(7784)},6057:(e,t,n)=>{"use strict";t.fromUnixTime=function(e){return(0,r.toDate)(1e3*e)};var r=n(5083)},1556:(e,t,n)=>{"use strict";t.getDate=function(e){const t=(0,r.toDate)(e);return t.getDate()};var r=n(5083)},7636:(e,t,n)=>{"use strict";t.getDay=function(e){const t=(0,r.toDate)(e);return t.getDay()};var r=n(5083)},9372:(e,t,n)=>{"use strict";t.getDayOfYear=function(e){const t=(0,i.toDate)(e),n=(0,r.differenceInCalendarDays)(t,(0,o.startOfYear)(t));return n+1};var r=n(4395),o=n(9928),i=n(5083)},9468:(e,t,n)=>{"use strict";t.getDaysInMonth=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),i=t.getMonth(),a=(0,o.constructFrom)(e,0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()};var r=n(5083),o=n(2781)},4169:(e,t,n)=>{"use strict";t.getDaysInYear=function(e){const t=(0,o.toDate)(e);if("Invalid Date"===String(new Date(t)))return NaN;return(0,r.isLeapYear)(t)?366:365};var r=n(9741),o=n(5083)},6256:(e,t,n)=>{"use strict";t.getDecade=function(e){const t=(0,r.toDate)(e).getFullYear();return 10*Math.floor(t/10)};var r=n(5083)},2869:(e,t,n)=>{"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,r.getDefaultOptions)())};var r=n(7784)},2797:(e,t,n)=>{"use strict";t.getHours=function(e){const t=(0,r.toDate)(e);return t.getHours()};var r=n(5083)},9853:(e,t,n)=>{"use strict";t.getISODay=function(e){let t=(0,r.toDate)(e).getDay();0===t&&(t=7);return t};var r=n(5083)},1387:(e,t,n)=>{"use strict";t.getISOWeek=function(e){const t=(0,a.toDate)(e),n=+(0,o.startOfISOWeek)(t)-+(0,i.startOfISOWeekYear)(t);return Math.round(n/r.millisecondsInWeek)+1};var r=n(6865),o=n(9388),i=n(517),a=n(5083)},4958:(e,t,n)=>{"use strict";t.getISOWeekYear=function(e){const t=(0,i.toDate)(e),n=t.getFullYear(),a=(0,r.constructFrom)(e,0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);const s=(0,o.startOfISOWeek)(a),l=(0,r.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const u=(0,o.startOfISOWeek)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var r=n(2781),o=n(9388),i=n(5083)},2192:(e,t,n)=>{"use strict";t.getISOWeeksInYear=function(e){const t=(0,i.startOfISOWeekYear)(e),n=+(0,i.startOfISOWeekYear)((0,r.addWeeks)(t,60))-+t;return Math.round(n/o.millisecondsInWeek)};var r=n(5670),o=n(6865),i=n(517)},9598:(e,t,n)=>{"use strict";t.getMilliseconds=function(e){const t=(0,r.toDate)(e);return t.getMilliseconds()};var r=n(5083)},9375:(e,t,n)=>{"use strict";t.getMinutes=function(e){const t=(0,r.toDate)(e);return t.getMinutes()};var r=n(5083)},8564:(e,t,n)=>{"use strict";t.getMonth=function(e){const t=(0,r.toDate)(e);return t.getMonth()};var r=n(5083)},2143:(e,t,n)=>{"use strict";t.getOverlappingDaysInIntervals=function(e,t){const[n,a]=[+(0,i.toDate)(e.start),+(0,i.toDate)(e.end)].sort(((e,t)=>e-t)),[s,l]=[+(0,i.toDate)(t.start),+(0,i.toDate)(t.end)].sort(((e,t)=>e-t));if(!(n<l&&s<a))return 0;const u=s<n?n:s,c=u-(0,r.getTimezoneOffsetInMilliseconds)(u),d=l>a?a:l,f=d-(0,r.getTimezoneOffsetInMilliseconds)(d);return Math.ceil((f-c)/o.millisecondsInDay)};var r=n(5648),o=n(6865),i=n(5083)},4602:(e,t,n)=>{"use strict";t.getQuarter=function(e){const t=(0,r.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var r=n(5083)},5639:(e,t,n)=>{"use strict";t.getSeconds=function(e){const t=(0,r.toDate)(e);return t.getSeconds()};var r=n(5083)},3229:(e,t,n)=>{"use strict";t.getTime=function(e){const t=(0,r.toDate)(e);return t.getTime()};var r=n(5083)},5379:(e,t,n)=>{"use strict";t.getUnixTime=function(e){return Math.trunc(+(0,r.toDate)(e)/1e3)};var r=n(5083)},1416:(e,t,n)=>{"use strict";t.getWeek=function(e,t){const n=(0,a.toDate)(e),s=+(0,o.startOfWeek)(n,t)-+(0,i.startOfWeekYear)(n,t);return Math.round(s/r.millisecondsInWeek)+1};var r=n(6865),o=n(613),i=n(8996),a=n(5083)},759:(e,t,n)=>{"use strict";t.getWeekOfMonth=function(e,t){var n,s,l,u,c,d;const f=(0,a.getDefaultOptions)(),p=null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==u?u:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==n?n:0,h=(0,r.getDate)(e);if(isNaN(h))return NaN;const m=(0,o.getDay)((0,i.startOfMonth)(e));let g=p-m;g<=0&&(g+=7);const y=h-g;return Math.ceil(y/7)+1};var r=n(1556),o=n(7636),i=n(1831),a=n(7784)},3833:(e,t,n)=>{"use strict";t.getWeekYear=function(e,t){var n,s,l,u,c,d;const f=(0,i.toDate)(e),p=f.getFullYear(),h=(0,a.getDefaultOptions)(),m=null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:h.firstWeekContainsDate)&&void 0!==s?s:null===(d=h.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,g=(0,r.constructFrom)(e,0);g.setFullYear(p+1,0,m),g.setHours(0,0,0,0);const y=(0,o.startOfWeek)(g,t),v=(0,r.constructFrom)(e,0);v.setFullYear(p,0,m),v.setHours(0,0,0,0);const b=(0,o.startOfWeek)(v,t);return f.getTime()>=y.getTime()?p+1:f.getTime()>=b.getTime()?p:p-1};var r=n(2781),o=n(613),i=n(5083),a=n(7784)},6088:(e,t,n)=>{"use strict";t.getWeeksInMonth=function(e,t){return(0,r.differenceInCalendarWeeks)((0,o.lastDayOfMonth)(e),(0,i.startOfMonth)(e),t)+1};var r=n(6359),o=n(1369),i=n(1831)},305:(e,t,n)=>{"use strict";t.getYear=function(e){return(0,r.toDate)(e).getFullYear()};var r=n(5083)},484:(e,t,n)=>{"use strict";t.hoursToMilliseconds=function(e){return Math.trunc(e*r.millisecondsInHour)};var r=n(6865)},8829:(e,t,n)=>{"use strict";t.hoursToMinutes=function(e){return Math.trunc(e*r.minutesInHour)};var r=n(6865)},593:(e,t,n)=>{"use strict";t.hoursToSeconds=function(e){return Math.trunc(e*r.secondsInHour)};var r=n(6865)},9868:(e,t,n)=>{"use strict";var r=n(4471);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(5650);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(6592);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(8172);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 s=n(4278);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 l=n(3105);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 u=n(3794);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 c=n(4940);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(726);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 f=n(2670);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 p=n(5670);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(6417);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(9055);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 g=n(4895);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 y=n(7926);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 v=n(8834);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 b=n(1442);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 w=n(386);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 x=n(2781);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 k=n(9793);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 D=n(6831);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 S=n(9415);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 E=n(4395);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 C=n(101);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 M=n(7134);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 O=n(9963);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 N=n(7785);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 A=n(6359);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 P=n(2868);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 _=n(9073);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 j=n(5711);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(9199);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 R=n(2516);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 F=n(8333);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 I=n(7561);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 L=n(9959);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 z=n(1985);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 B=n(9825);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 Y=n(6274);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(1785);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 W=n(7909);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 V=n(6415);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 U=n(6781);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(1931);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 q=n(2995);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 K=n(1994);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 Q=n(9246);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(682);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 J=n(6434);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(1907);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 X=n(8076);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 ee=n(6098);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(8687);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(3466);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 re=n(5476);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(9688);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(1686);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(2020);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 se=n(4551);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 le=n(8863);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 ue=n(300);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 ce=n(3877);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(8934);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 fe=n(6945);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 pe=n(990);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(4179);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(699);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 ge=n(466);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 ye=n(1381);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 ve=n(6236);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 be=n(6389);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 we=n(6200);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 xe=n(6290);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 ke=n(4885);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 De=n(9969);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 Se=n(6057);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 Ee=n(1556);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 Ce=n(7636);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 Me=n(9372);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 Oe=n(9468);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 Ne=n(4169);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 Ae=n(6256);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 Pe=n(2869);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 _e=n(2797);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 je=n(9853);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(1387);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 Re=n(4958);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 Fe=n(2192);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 Ie=n(9598);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 Le=n(9375);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 ze=n(8564);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 Be=n(2143);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 Ye=n(4602);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(5639);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 We=n(3229);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 Ve=n(5379);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 Ue=n(1416);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 $e=n(759);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 qe=n(3833);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 Ke=n(6088);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 Qe=n(305);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(484);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 Je=n(8829);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(593);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 Xe=n(8003);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 et=n(2454);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(722);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(4209);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 rt=n(1102);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(4261);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(638);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(184);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 st=n(10);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 lt=n(4993);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 ut=n(5873);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 ct=n(6637);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(7337);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 ft=n(9741);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 pt=n(6029);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(9518);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(8442);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 gt=n(8752);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 yt=n(6626);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 vt=n(5935);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 bt=n(4522);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 wt=n(5332);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 xt=n(5752);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 kt=n(5510);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 Dt=n(9076);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 St=n(8204);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 Et=n(8965);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 Ct=n(3005);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 Mt=n(1870);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 Ot=n(3804);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 Nt=n(7693);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 At=n(4426);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 Pt=n(1230);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 _t=n(964);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 jt=n(1742);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(3030);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 Rt=n(3835);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 Ft=n(7568);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 It=n(2165);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 Lt=n(413);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 zt=n(7867);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 Bt=n(3478);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 Yt=n(2784);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(7169);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 Wt=n(9192);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 Vt=n(2416);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 Ut=n(799);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 $t=n(9998);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 qt=n(7459);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 Kt=n(1369);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 Qt=n(7011);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(547);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 Jt=n(2866);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(5523);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 Xt=n(4926);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 en=n(6444);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(4866);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(788);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 rn=n(5255);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(4144);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 an=n(4745);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 sn=n(730);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 ln=n(7523);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 un=n(1721);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 cn=n(5044);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(3169);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 fn=n(5432);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 pn=n(6451);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(3696);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(8903);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 gn=n(166);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 yn=n(4200);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 vn=n(7927);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 bn=n(7599);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 wn=n(4502);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 xn=n(2597);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 kn=n(3841);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 Dn=n(7512);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 Sn=n(7219);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 En=n(7552);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 Cn=n(9575);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 Mn=n(5977);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 On=n(2952);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 Nn=n(8823);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 An=n(8177);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 Pn=n(4650);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 _n=n(5080);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 jn=n(6534);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(565);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 Rn=n(790);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 Fn=n(423);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 In=n(2180);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 Ln=n(6768);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 zn=n(8152);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 Bn=n(9416);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 Yn=n(9049);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(9017);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 Wn=n(9553);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 Vn=n(1335);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 Un=n(2546);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 $n=n(7290);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 qn=n(4531);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 Kn=n(8416);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 Qn=n(5726);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(35);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 Jn=n(8676);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(8845);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 Xn=n(5597);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 er=n(5755);Object.keys(er).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return er[e]}}))}));var tr=n(3965);Object.keys(tr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tr[e]}}))}));var nr=n(7355);Object.keys(nr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nr[e]}}))}));var rr=n(9388);Object.keys(rr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rr[e]}}))}));var or=n(517);Object.keys(or).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return or[e]}}))}));var ir=n(4573);Object.keys(ir).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ir[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ir[e]}}))}));var ar=n(1831);Object.keys(ar).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ar[e]}}))}));var sr=n(2801);Object.keys(sr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sr[e]}}))}));var lr=n(3845);Object.keys(lr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lr[e]}}))}));var ur=n(8260);Object.keys(ur).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ur[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ur[e]}}))}));var cr=n(8110);Object.keys(cr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cr[e]}}))}));var dr=n(613);Object.keys(dr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dr[e]}}))}));var fr=n(8996);Object.keys(fr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fr[e]}}))}));var pr=n(9928);Object.keys(pr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pr[e]}}))}));var hr=n(3137);Object.keys(hr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hr[e]}}))}));var mr=n(5810);Object.keys(mr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mr[e]}}))}));var gr=n(5487);Object.keys(gr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gr[e]}}))}));var yr=n(3321);Object.keys(yr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yr[e]}}))}));var vr=n(8199);Object.keys(vr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vr[e]}}))}));var br=n(4951);Object.keys(br).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===br[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return br[e]}}))}));var wr=n(748);Object.keys(wr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wr[e]}}))}));var xr=n(5301);Object.keys(xr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xr[e]}}))}));var kr=n(2097);Object.keys(kr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kr[e]}}))}));var Dr=n(8175);Object.keys(Dr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dr[e]}}))}));var Sr=n(9529);Object.keys(Sr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sr[e]}}))}));var Er=n(5993);Object.keys(Er).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Er[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Er[e]}}))}));var Cr=n(8858);Object.keys(Cr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cr[e]}}))}));var Mr=n(5083);Object.keys(Mr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mr[e]}}))}));var Or=n(971);Object.keys(Or).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Or[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Or[e]}}))}));var Nr=n(3971);Object.keys(Nr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nr[e]}}))}));var Ar=n(6296);Object.keys(Ar).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ar[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ar[e]}}))}));var Pr=n(1876);Object.keys(Pr).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pr[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pr[e]}}))}));var _r=n(5310);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]}}))}))},8003:(e,t,n)=>{"use strict";t.interval=function(e,t,n){const o=(0,r.toDate)(e);if(isNaN(+o))throw new TypeError("Start date is invalid");const i=(0,r.toDate)(t);if(isNaN(+i))throw new TypeError("End date is invalid");if(null!==n&&void 0!==n&&n.assertPositive&&+o>+i)throw new TypeError("End date must be after start date");return{start:o,end:i}};var r=n(5083)},2454:(e,t,n)=>{"use strict";t.intervalToDuration=function(e){const t=(0,c.toDate)(e.start),n=(0,c.toDate)(e.end),d={},f=(0,u.differenceInYears)(n,t);f&&(d.years=f);const p=(0,r.add)(t,{years:d.years}),h=(0,s.differenceInMonths)(n,p);h&&(d.months=h);const m=(0,r.add)(p,{months:d.months}),g=(0,o.differenceInDays)(n,m);g&&(d.days=g);const y=(0,r.add)(m,{days:d.days}),v=(0,i.differenceInHours)(n,y);v&&(d.hours=v);const b=(0,r.add)(y,{hours:d.hours}),w=(0,a.differenceInMinutes)(n,b);w&&(d.minutes=w);const x=(0,r.add)(b,{minutes:d.minutes}),k=(0,l.differenceInSeconds)(n,x);k&&(d.seconds=k);return d};var r=n(4471),o=n(9073),i=n(5711),a=n(8333),s=n(7561),l=n(1985),u=n(6274),c=n(5083)},722:(e,t,n)=>{"use strict";t.intlFormat=function(e,t,n){var o;let i;a=t,void 0===a||"locale"in a?n=t:i=t;var a;return new Intl.DateTimeFormat(null===(o=n)||void 0===o?void 0:o.locale,i).format((0,r.toDate)(e))};var r=n(5083)},4209:(e,t,n)=>{"use strict";t.intlFormatDistance=function(e,t,n){let p,h=0;const m=(0,f.toDate)(e),g=(0,f.toDate)(t);if(null!==n&&void 0!==n&&n.unit)p=null===n||void 0===n?void 0:n.unit,"second"===p?h=(0,d.differenceInSeconds)(m,g):"minute"===p?h=(0,c.differenceInMinutes)(m,g):"hour"===p?h=(0,u.differenceInHours)(m,g):"day"===p?h=(0,o.differenceInCalendarDays)(m,g):"week"===p?h=(0,s.differenceInCalendarWeeks)(m,g):"month"===p?h=(0,i.differenceInCalendarMonths)(m,g):"quarter"===p?h=(0,a.differenceInCalendarQuarters)(m,g):"year"===p&&(h=(0,l.differenceInCalendarYears)(m,g));else{const e=(0,d.differenceInSeconds)(m,g);Math.abs(e)<r.secondsInMinute?(h=(0,d.differenceInSeconds)(m,g),p="second"):Math.abs(e)<r.secondsInHour?(h=(0,c.differenceInMinutes)(m,g),p="minute"):Math.abs(e)<r.secondsInDay&&Math.abs((0,o.differenceInCalendarDays)(m,g))<1?(h=(0,u.differenceInHours)(m,g),p="hour"):Math.abs(e)<r.secondsInWeek&&(h=(0,o.differenceInCalendarDays)(m,g))&&Math.abs(h)<7?p="day":Math.abs(e)<r.secondsInMonth?(h=(0,s.differenceInCalendarWeeks)(m,g),p="week"):Math.abs(e)<r.secondsInQuarter?(h=(0,i.differenceInCalendarMonths)(m,g),p="month"):Math.abs(e)<r.secondsInYear&&(0,a.differenceInCalendarQuarters)(m,g)<4?(h=(0,a.differenceInCalendarQuarters)(m,g),p="quarter"):(h=(0,l.differenceInCalendarYears)(m,g),p="year")}return new Intl.RelativeTimeFormat(null===n||void 0===n?void 0:n.locale,{localeMatcher:null===n||void 0===n?void 0:n.localeMatcher,numeric:(null===n||void 0===n?void 0:n.numeric)||"auto",style:null===n||void 0===n?void 0:n.style}).format(h,p)};var r=n(6865),o=n(4395),i=n(9963),a=n(7785),s=n(6359),l=n(2868),u=n(5711),c=n(8333),d=n(1985),f=n(5083)},1102:(e,t,n)=>{"use strict";t.isAfter=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getTime()>o.getTime()};var r=n(5083)},4261:(e,t,n)=>{"use strict";t.isBefore=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return+n<+o};var r=n(5083)},638:(e,t)=>{"use strict";t.isDate=function(e){return e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},184:(e,t,n)=>{"use strict";t.isEqual=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return+n===+o};var r=n(5083)},10:(e,t)=>{"use strict";t.isExists=function(e,t,n){const r=new Date(e,t,n);return r.getFullYear()===e&&r.getMonth()===t&&r.getDate()===n}},4993:(e,t,n)=>{"use strict";t.isFirstDayOfMonth=function(e){return 1===(0,r.toDate)(e).getDate()};var r=n(5083)},5873:(e,t,n)=>{"use strict";t.isFriday=function(e){return 5===(0,r.toDate)(e).getDay()};var r=n(5083)},6637:(e,t,n)=>{"use strict";t.isFuture=function(e){return+(0,r.toDate)(e)>Date.now()};var r=n(5083)},7337:(e,t,n)=>{"use strict";t.isLastDayOfMonth=function(e){const t=(0,i.toDate)(e);return+(0,r.endOfDay)(t)===+(0,o.endOfMonth)(t)};var r=n(1907),o=n(9688),i=n(5083)},9741:(e,t,n)=>{"use strict";t.isLeapYear=function(e){const t=(0,r.toDate)(e).getFullYear();return t%400===0||t%4===0&&t%100!==0};var r=n(5083)},6029:(e,t,n)=>{"use strict";t.isMatch=function(e,t,n){return(0,r.isValid)((0,o.parse)(e,t,new Date,n))};var r=n(3478),o=n(7599)},9518:(e,t,n)=>{"use strict";t.isMonday=function(e){return 1===(0,r.toDate)(e).getDay()};var r=n(5083)},8442:(e,t,n)=>{"use strict";t.isPast=function(e){return+(0,r.toDate)(e)<Date.now()};var r=n(5083)},8752:(e,t,n)=>{"use strict";t.isSameDay=function(e,t){const n=(0,r.startOfDay)(e),o=(0,r.startOfDay)(t);return+n===+o};var r=n(5755)},6626:(e,t,n)=>{"use strict";t.isSameHour=function(e,t){const n=(0,r.startOfHour)(e),o=(0,r.startOfHour)(t);return+n===+o};var r=n(7355)},5935:(e,t,n)=>{"use strict";t.isSameISOWeek=function(e,t){return(0,r.isSameWeek)(e,t,{weekStartsOn:1})};var r=n(8204)},4522:(e,t,n)=>{"use strict";t.isSameISOWeekYear=function(e,t){const n=(0,r.startOfISOWeekYear)(e),o=(0,r.startOfISOWeekYear)(t);return+n===+o};var r=n(517)},5332:(e,t,n)=>{"use strict";t.isSameMinute=function(e,t){const n=(0,r.startOfMinute)(e),o=(0,r.startOfMinute)(t);return+n===+o};var r=n(4573)},5752:(e,t,n)=>{"use strict";t.isSameMonth=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()};var r=n(5083)},5510:(e,t,n)=>{"use strict";t.isSameQuarter=function(e,t){const n=(0,r.startOfQuarter)(e),o=(0,r.startOfQuarter)(t);return+n===+o};var r=n(2801)},9076:(e,t,n)=>{"use strict";t.isSameSecond=function(e,t){const n=(0,r.startOfSecond)(e),o=(0,r.startOfSecond)(t);return+n===+o};var r=n(3845)},8204:(e,t,n)=>{"use strict";t.isSameWeek=function(e,t,n){const o=(0,r.startOfWeek)(e,n),i=(0,r.startOfWeek)(t,n);return+o===+i};var r=n(613)},8965:(e,t,n)=>{"use strict";t.isSameYear=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t);return n.getFullYear()===o.getFullYear()};var r=n(5083)},3005:(e,t,n)=>{"use strict";t.isSaturday=function(e){return 6===(0,r.toDate)(e).getDay()};var r=n(5083)},1870:(e,t,n)=>{"use strict";t.isSunday=function(e){return 0===(0,r.toDate)(e).getDay()};var r=n(5083)},3804:(e,t,n)=>{"use strict";t.isThisHour=function(e){return(0,o.isSameHour)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(6626)},7693:(e,t,n)=>{"use strict";t.isThisISOWeek=function(e){return(0,o.isSameISOWeek)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(5935)},4426:(e,t,n)=>{"use strict";t.isThisMinute=function(e){return(0,o.isSameMinute)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(5332)},1230:(e,t,n)=>{"use strict";t.isThisMonth=function(e){return(0,o.isSameMonth)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(5752)},964:(e,t,n)=>{"use strict";t.isThisQuarter=function(e){return(0,o.isSameQuarter)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(5510)},1742:(e,t,n)=>{"use strict";t.isThisSecond=function(e){return(0,o.isSameSecond)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(9076)},3030:(e,t,n)=>{"use strict";t.isThisWeek=function(e,t){return(0,o.isSameWeek)(e,(0,r.constructNow)(e),t)};var r=n(9793),o=n(8204)},3835:(e,t,n)=>{"use strict";t.isThisYear=function(e){return(0,o.isSameYear)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(8965)},7568:(e,t,n)=>{"use strict";t.isThursday=function(e){return 4===(0,r.toDate)(e).getDay()};var r=n(5083)},2165:(e,t,n)=>{"use strict";t.isToday=function(e){return(0,o.isSameDay)(e,(0,r.constructNow)(e))};var r=n(9793),o=n(8752)},413:(e,t,n)=>{"use strict";t.isTomorrow=function(e){return(0,i.isSameDay)(e,(0,r.addDays)((0,o.constructNow)(e),1))};var r=n(6592),o=n(9793),i=n(8752)},7867:(e,t,n)=>{"use strict";t.isTuesday=function(e){return 2===(0,r.toDate)(e).getDay()};var r=n(5083)},3478:(e,t,n)=>{"use strict";t.isValid=function(e){if(!(0,r.isDate)(e)&&"number"!==typeof e)return!1;const t=(0,o.toDate)(e);return!isNaN(Number(t))};var r=n(638),o=n(5083)},2784:(e,t,n)=>{"use strict";t.isWednesday=function(e){return 3===(0,r.toDate)(e).getDay()};var r=n(5083)},7169:(e,t,n)=>{"use strict";t.isWeekend=function(e){const t=(0,r.toDate)(e).getDay();return 0===t||6===t};var r=n(5083)},9192:(e,t,n)=>{"use strict";t.isWithinInterval=function(e,t){const n=+(0,r.toDate)(e),[o,i]=[+(0,r.toDate)(t.start),+(0,r.toDate)(t.end)].sort(((e,t)=>e-t));return n>=o&&n<=i};var r=n(5083)},2416:(e,t,n)=>{"use strict";t.isYesterday=function(e){return(0,o.isSameDay)(e,(0,i.subDays)((0,r.constructNow)(e),1))};var r=n(9793),o=n(8752),i=n(3321)},799:(e,t,n)=>{"use strict";t.lastDayOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=9+10*Math.floor(n/10);return t.setFullYear(o+1,0,0),t.setHours(0,0,0,0),t};var r=n(5083)},9998:(e,t,n)=>{"use strict";t.lastDayOfISOWeek=function(e){return(0,r.lastDayOfWeek)(e,{weekStartsOn:1})};var r=n(547)},7459:(e,t,n)=>{"use strict";t.lastDayOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const a=(0,o.startOfISOWeek)(n);return a.setDate(a.getDate()-1),a};var r=n(4958),o=n(9388),i=n(2781)},1369:(e,t,n)=>{"use strict";t.lastDayOfMonth=function(e){const t=(0,r.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t};var r=n(5083)},7011:(e,t,n)=>{"use strict";t.lastDayOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3+3;return t.setMonth(o,0),t.setHours(0,0,0,0),t};var r=n(5083)},547:(e,t,n)=>{"use strict";t.lastDayOfWeek=function(e,t){var n,i,a,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(i=null!==(a=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:c.weekStartsOn)&&void 0!==i?i:null===(u=c.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0,f=(0,r.toDate)(e),p=f.getDay(),h=6+(p<d?-7:0)-(p-d);return f.setHours(0,0,0,0),f.setDate(f.getDate()+h),f};var r=n(5083),o=n(7784)},2866:(e,t,n)=>{"use strict";t.lastDayOfYear=function(e){const t=(0,r.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t};var r=n(5083)},5523:(e,t,n)=>{"use strict";t.lightFormat=function(e,t){const n=(0,o.toDate)(e);if(!(0,r.isValid)(n))throw new RangeError("Invalid time value");const c=t.match(a);if(!c)return"";return c.map((e=>{if("''"===e)return"'";const t=e[0];if("'"===t)return function(e){const t=e.match(s);if(!t)return e;return t[1].replace(l,"'")}(e);const r=i.lightFormatters[t];if(r)return r(n,e);if(t.match(u))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("")},Object.defineProperty(t,"lightFormatters",{enumerable:!0,get:function(){return i.lightFormatters}});var r=n(3478),o=n(5083),i=n(6562);const a=/(\w)\1*|''|'(''|[^'])+('|$)|./g,s=/^'([^]*?)'?$/,l=/''/g,u=/[a-zA-Z]/},6481:(e,t)=>{"use strict";t.buildFormatLongFn=function(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},2759:(e,t)=>{"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let r;if("formatting"===(null!==n&&void 0!==n&&n.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):t;r=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=null!==n&&void 0!==n&&n.width?String(n.width):e.defaultWidth;r=e.values[o]||e.values[t]}return r[e.argumentCallback?e.argumentCallback(t):t]}}},4119:(e,t)=>{"use strict";t.buildMatchFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n;return}(s,(e=>e.test(a))):function(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n;return}(s,(e=>e.test(a)));let u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;return{value:u,rest:t.slice(a.length)}}}},597:(e,t)=>{"use strict";t.buildMatchPatternFn=function(e){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;return{value:a,rest:t.slice(o.length)}}}},4785:(e,t,n)=>{"use strict";t.enUS=void 0;var r=n(3815),o=n(3282),i=n(4084),a=n(2092),s=n(5054);t.enUS={code:"en-US",formatDistance:r.formatDistance,formatLong:o.formatLong,formatRelative:i.formatRelative,localize:a.localize,match:s.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},3815:(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,r)=>{let o;const i=n[e];return o="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==r&&void 0!==r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o}},3282:(e,t,n)=>{"use strict";t.formatLong=void 0;var r=n(6481);t.formatLong={date:(0,r.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.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,r.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},4084:(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,r,o)=>n[e]},2092:(e,t,n)=>{"use strict";t.localize=void 0;var r=n(2759);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.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,r.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,r.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,r.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"})}},5054:(e,t,n)=>{"use strict";t.match=void 0;var r=n(4119),o=n(597);t.match={ordinalNumber:(0,o.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,r.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,r.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,r.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,r.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,r.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"})}},4926:(e,t,n)=>{"use strict";t.max=function(e){let t;return e.forEach((function(e){const n=(0,r.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)};var r=n(5083)},6444:(e,t,n)=>{"use strict";t.milliseconds=function(e){let{years:t,months:n,weeks:o,days:i,hours:a,minutes:s,seconds:l}=e,u=0;t&&(u+=t*r.daysInYear);n&&(u+=n*(r.daysInYear/12));o&&(u+=7*o);i&&(u+=i);let c=24*u*60*60;a&&(c+=60*a*60);s&&(c+=60*s);l&&(c+=l);return Math.trunc(1e3*c)};var r=n(6865)},4866:(e,t,n)=>{"use strict";t.millisecondsToHours=function(e){const t=e/r.millisecondsInHour;return Math.trunc(t)};var r=n(6865)},788:(e,t,n)=>{"use strict";t.millisecondsToMinutes=function(e){const t=e/r.millisecondsInMinute;return Math.trunc(t)};var r=n(6865)},5255:(e,t,n)=>{"use strict";t.millisecondsToSeconds=function(e){const t=e/r.millisecondsInSecond;return Math.trunc(t)};var r=n(6865)},4144:(e,t,n)=>{"use strict";t.min=function(e){let t;return e.forEach((e=>{const n=(0,r.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)};var r=n(5083)},4745:(e,t,n)=>{"use strict";t.minutesToHours=function(e){const t=e/r.minutesInHour;return Math.trunc(t)};var r=n(6865)},730:(e,t,n)=>{"use strict";t.minutesToMilliseconds=function(e){return Math.trunc(e*r.millisecondsInMinute)};var r=n(6865)},7523:(e,t,n)=>{"use strict";t.minutesToSeconds=function(e){return Math.trunc(e*r.secondsInMinute)};var r=n(6865)},1721:(e,t,n)=>{"use strict";t.monthsToQuarters=function(e){const t=e/r.monthsInQuarter;return Math.trunc(t)};var r=n(6865)},5044:(e,t,n)=>{"use strict";t.monthsToYears=function(e){const t=e/r.monthsInYear;return Math.trunc(t)};var r=n(6865)},3169:(e,t,n)=>{"use strict";t.nextDay=function(e,t){let n=t-(0,o.getDay)(e);n<=0&&(n+=7);return(0,r.addDays)(e,n)};var r=n(6592),o=n(7636)},5432:(e,t,n)=>{"use strict";t.nextFriday=function(e){return(0,r.nextDay)(e,5)};var r=n(3169)},6451:(e,t,n)=>{"use strict";t.nextMonday=function(e){return(0,r.nextDay)(e,1)};var r=n(3169)},3696:(e,t,n)=>{"use strict";t.nextSaturday=function(e){return(0,r.nextDay)(e,6)};var r=n(3169)},8903:(e,t,n)=>{"use strict";t.nextSunday=function(e){return(0,r.nextDay)(e,0)};var r=n(3169)},166:(e,t,n)=>{"use strict";t.nextThursday=function(e){return(0,r.nextDay)(e,4)};var r=n(3169)},4200:(e,t,n)=>{"use strict";t.nextTuesday=function(e){return(0,r.nextDay)(e,2)};var r=n(3169)},7927:(e,t,n)=>{"use strict";t.nextWednesday=function(e){return(0,r.nextDay)(e,3)};var r=n(3169)},7599:(e,t,n)=>{"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return s.longFormatters}}),t.parse=function(e,t,n,y){var v,b,w,x,k,D,S,E,C,M,O,N,A,P;const _=(0,o.getDefaultOptions)(),j=null!==(v=null!==(b=null===y||void 0===y?void 0:y.locale)&&void 0!==b?b:_.locale)&&void 0!==v?v:i.defaultLocale,T=null!==(w=null!==(x=null!==(k=null!==(D=null===y||void 0===y?void 0:y.firstWeekContainsDate)&&void 0!==D?D:null===y||void 0===y||null===(S=y.locale)||void 0===S||null===(S=S.options)||void 0===S?void 0:S.firstWeekContainsDate)&&void 0!==k?k:_.firstWeekContainsDate)&&void 0!==x?x:null===(E=_.locale)||void 0===E||null===(E=E.options)||void 0===E?void 0:E.firstWeekContainsDate)&&void 0!==w?w:1,R=null!==(C=null!==(M=null!==(O=null!==(N=null===y||void 0===y?void 0:y.weekStartsOn)&&void 0!==N?N:null===y||void 0===y||null===(A=y.locale)||void 0===A||null===(A=A.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==O?O:_.weekStartsOn)&&void 0!==M?M:null===(P=_.locale)||void 0===P||null===(P=P.options)||void 0===P?void 0:P.weekStartsOn)&&void 0!==C?C:0;if(""===t)return""===e?(0,a.toDate)(n):(0,r.constructFrom)(n,NaN);const F={firstWeekContainsDate:T,weekStartsOn:R,locale:j},I=[new c.DateToSystemTimezoneSetter],L=t.match(f).map((e=>{const t=e[0];if(t in s.longFormatters){return(0,s.longFormatters[t])(e,j.formatLong)}return e})).join("").match(d),z=[];for(let o of L){null!==y&&void 0!==y&&y.useAdditionalWeekYearTokens||!(0,l.isProtectedWeekYearToken)(o)||(0,l.warnOrThrowProtectedError)(o,t,e),null!==y&&void 0!==y&&y.useAdditionalDayOfYearTokens||!(0,l.isProtectedDayOfYearToken)(o)||(0,l.warnOrThrowProtectedError)(o,t,e);const i=o[0],a=u.parsers[i];if(a){const{incompatibleTokens:t}=a;if(Array.isArray(t)){const e=z.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError("The format string mustn't contain `".concat(e.fullToken,"` and `").concat(o,"` at the same time"))}else if("*"===a.incompatibleTokens&&z.length>0)throw new RangeError("The format string mustn't contain `".concat(o,"` and any other token at the same time"));z.push({token:i,fullToken:o});const s=a.run(e,o,j.match,F);if(!s)return(0,r.constructFrom)(n,NaN);I.push(s.setter),e=s.rest}else{if(i.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===o?o="'":"'"===i&&(o=o.match(p)[1].replace(h,"'")),0!==e.indexOf(o))return(0,r.constructFrom)(n,NaN);e=e.slice(o.length)}}if(e.length>0&&m.test(e))return(0,r.constructFrom)(n,NaN);const B=I.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>I.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let Y=(0,a.toDate)(n);if(isNaN(Y.getTime()))return(0,r.constructFrom)(n,NaN);const H={};for(const o of B){if(!o.validate(Y,F))return(0,r.constructFrom)(n,NaN);const e=o.set(Y,H,F);Array.isArray(e)?(Y=e[0],Object.assign(H,e[1])):Y=e}return(0,r.constructFrom)(n,Y)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return u.parsers}});var r=n(2781),o=n(2869),i=n(1610),a=n(5083),s=n(5696),l=n(8157),u=n(8089),c=n(6666);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,f=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,m=/\S/,g=/[a-zA-Z]/},8218:(e,t,n)=>{"use strict";t.Parser=void 0;var r=n(6666);t.Parser=class{run(e,t,n,o){const i=this.parse(e,t,n,o);return i?{setter:new r.ValueSetter(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}},6666:(e,t,n)=>{"use strict";var r=n(3693).default;t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var o=n(971),i=n(2781);class a{constructor(){r(this,"subPriority",0)}validate(e,t){return!0}}t.Setter=a;t.ValueSetter=class extends a{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}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{constructor(){super(...arguments),r(this,"priority",10),r(this,"subPriority",-1)}set(e,t){return t.timestampIsSet?e:(0,i.constructFrom)(e,(0,o.transpose)(e,Date))}}},7340:(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/}},8089:(e,t,n)=>{"use strict";t.parsers=void 0;var r=n(1371),o=n(6506),i=n(2379),a=n(5109),s=n(3407),l=n(5641),u=n(1924),c=n(1287),d=n(3534),f=n(162),p=n(2520),h=n(8503),m=n(7423),g=n(2471),y=n(6316),v=n(4995),b=n(1790),w=n(630),x=n(4586),k=n(9890),D=n(6598),S=n(5905),E=n(3420),C=n(1507),M=n(8283),O=n(4819),N=n(8136),A=n(6363),P=n(435),_=n(1410),j=n(5135);t.parsers={G:new r.EraParser,y:new o.YearParser,Y:new i.LocalWeekYearParser,R:new a.ISOWeekYearParser,u:new s.ExtendedYearParser,Q:new l.QuarterParser,q:new u.StandAloneQuarterParser,M:new c.MonthParser,L:new d.StandAloneMonthParser,w:new f.LocalWeekParser,I:new p.ISOWeekParser,d:new h.DateParser,D:new m.DayOfYearParser,E:new g.DayParser,e:new y.LocalDayParser,c:new v.StandAloneLocalDayParser,i:new b.ISODayParser,a:new w.AMPMParser,b:new x.AMPMMidnightParser,B:new k.DayPeriodParser,h:new D.Hour1to12Parser,H:new S.Hour0to23Parser,K:new E.Hour0To11Parser,k:new C.Hour1To24Parser,m:new M.MinuteParser,s:new O.SecondParser,S:new N.FractionOfSecondParser,X:new A.ISOTimezoneWithZParser,x:new P.ISOTimezoneParser,t:new _.TimestampSecondsParser,T:new j.TimestampMillisecondsParser}},4586:(e,t,n)=>{"use strict";var r=n(3693).default;t.AMPMMidnightParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","B","H","k","t","T"])}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}}t.AMPMMidnightParser=a},630:(e,t,n)=>{"use strict";var r=n(3693).default;t.AMPMParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["b","B","H","k","t","T"])}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}}t.AMPMParser=a},8503:(e,t,n)=>{"use strict";var r=n(3693).default;t.DateParser=void 0;var o=n(7340),i=n(8218),a=n(9072);const s=[31,28,31,30,31,30,31,31,30,31,30,31],l=[31,29,31,30,31,30,31,31,30,31,30,31];class u extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subPriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return(0,a.parseNumericPattern)(o.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(),r=(0,a.isLeapYearIndex)(n),o=e.getMonth();return r?t>=1&&t<=l[o]:t>=1&&t<=s[o]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}}t.DateParser=u},7423:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayOfYearParser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"subpriority",1),r(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return(0,a.parseNumericPattern)(o.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}}t.DayOfYearParser=s},2471:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayParser=void 0;var o=n(8152),i=n(8218);class a extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["D","i","e","c","t","T"])}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,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.DayParser=a},9890:(e,t,n)=>{"use strict";var r=n(3693).default;t.DayPeriodParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",80),r(this,"incompatibleTokens",["a","b","t","T"])}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}}t.DayPeriodParser=a},1371:(e,t,n)=>{"use strict";var r=n(3693).default;t.EraParser=void 0;var o=n(8218);class i extends o.Parser{constructor(){super(...arguments),r(this,"priority",140),r(this,"incompatibleTokens",["R","u","t","T"])}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}}t.EraParser=i},3407:(e,t,n)=>{"use strict";var r=n(3693).default;t.ExtendedYearParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}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}}t.ExtendedYearParser=a},8136:(e,t,n)=>{"use strict";var r=n(3693).default;t.FractionOfSecondParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",30),r(this,"incompatibleTokens",["t","T"])}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}}t.FractionOfSecondParser=a},3420:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour0To11Parser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return(0,a.parseNumericPattern)(o.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}}t.Hour0To11Parser=s},5905:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour0to23Parser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return(0,a.parseNumericPattern)(o.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}}t.Hour0to23Parser=s},1507:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour1To24Parser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return(0,a.parseNumericPattern)(o.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 r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}}t.Hour1To24Parser=s},6598:(e,t,n)=>{"use strict";var r=n(3693).default;t.Hour1to12Parser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",70),r(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return(0,a.parseNumericPattern)(o.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 r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):r||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}}t.Hour1to12Parser=s},1790:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISODayParser=void 0;var o=n(9553),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){const r=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"}),r);case"iiiii":return(0,a.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return(0,a.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);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"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,o.setISODay)(e,n)).setHours(0,0,0,0),e}}t.ISODayParser=s},435:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOTimezoneParser=void 0;var o=n(2781),i=n(5648),a=n(7340),s=n(8218),l=n(9072);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,l.parseTimezonePattern)(a.timezonePatterns.basic,e);case"xxxx":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,l.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneParser=u},6363:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOTimezoneWithZParser=void 0;var o=n(2781),i=n(5648),a=n(7340),s=n(8218),l=n(9072);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",10),r(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,l.parseTimezonePattern)(a.timezonePatterns.basic,e);case"XXXX":return(0,l.parseTimezonePattern)(a.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,l.parseTimezonePattern)(a.timezonePatterns.extendedOptionalSeconds,e);default:return(0,l.parseTimezonePattern)(a.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,o.constructFrom)(e,e.getTime()-(0,i.getTimezoneOffsetInMilliseconds)(e)-n)}}t.ISOTimezoneWithZParser=u},2520:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOWeekParser=void 0;var o=n(1335),i=n(9388),a=n(7340),s=n(8218),l=n(9072);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return(0,l.parseNumericPattern)(a.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,i.startOfISOWeek)((0,o.setISOWeek)(e,n))}}t.ISOWeekParser=u},5109:(e,t,n)=>{"use strict";var r=n(3693).default;t.ISOWeekYearParser=void 0;var o=n(9388),i=n(2781),a=n(8218),s=n(9072);class l extends a.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return"R"===t?(0,s.parseNDigitsSigned)(4,e):(0,s.parseNDigitsSigned)(t.length,e)}set(e,t,n){const r=(0,i.constructFrom)(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),(0,o.startOfISOWeek)(r)}}t.ISOWeekYearParser=l},6316:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalDayParser=void 0;var o=n(8152),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),o);case"eo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);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,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.LocalDayParser=s},162:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalWeekParser=void 0;var o=n(8676),i=n(613),a=n(7340),s=n(8218),l=n(9072);class u extends s.Parser{constructor(){super(...arguments),r(this,"priority",100),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return(0,l.parseNumericPattern)(a.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,l.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return(0,i.startOfWeek)((0,o.setWeek)(e,n,r),r)}}t.LocalWeekParser=u},2379:(e,t,n)=>{"use strict";var r=n(3693).default;t.LocalWeekYearParser=void 0;var o=n(3833),i=n(613),a=n(8218),s=n(9072);class l extends a.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,s.mapValue)((0,s.parseNDigits)(4,e),r);case"Yo":return(0,s.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,s.mapValue)((0,s.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){const a=(0,o.getWeekYear)(e,r);if(n.isTwoDigitYear){const t=(0,s.normalizeTwoDigitYear)(n.year,a);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,i.startOfWeek)(e,r)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),(0,i.startOfWeek)(e,r)}}t.LocalWeekYearParser=l},8283:(e,t,n)=>{"use strict";var r=n(3693).default;t.MinuteParser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",60),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return(0,a.parseNumericPattern)(o.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}}t.MinuteParser=s},1287:(e,t,n)=>{"use strict";var r=n(3693).default;t.MonthParser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),r(this,"priority",110)}parse(e,t,n){const r=e=>e-1;switch(t){case"M":return(0,a.mapValue)((0,a.parseNumericPattern)(o.numericPatterns.month,e),r);case"MM":return(0,a.mapValue)((0,a.parseNDigits)(2,e),r);case"Mo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);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=s},5641:(e,t,n)=>{"use strict";var r=n(3693).default;t.QuarterParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}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}}t.QuarterParser=a},4819:(e,t,n)=>{"use strict";var r=n(3693).default;t.SecondParser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",50),r(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return(0,a.parseNumericPattern)(o.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}}t.SecondParser=s},4995:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneLocalDayParser=void 0;var o=n(8152),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",90),r(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){const o=e=>{const t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),o);case"co":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"day"}),o);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,r){return(e=(0,o.setDay)(e,n,r)).setHours(0,0,0,0),e}}t.StandAloneLocalDayParser=s},3534:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneMonthParser=void 0;var o=n(7340),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",110),r(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){const r=e=>e-1;switch(t){case"L":return(0,a.mapValue)((0,a.parseNumericPattern)(o.numericPatterns.month,e),r);case"LL":return(0,a.mapValue)((0,a.parseNDigits)(2,e),r);case"Lo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"month"}),r);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}}t.StandAloneMonthParser=s},1924:(e,t,n)=>{"use strict";var r=n(3693).default;t.StandAloneQuarterParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",120),r(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}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}}t.StandAloneQuarterParser=a},5135:(e,t,n)=>{"use strict";var r=n(3693).default;t.TimestampMillisecondsParser=void 0;var o=n(2781),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",20),r(this,"incompatibleTokens","*")}parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,o.constructFrom)(e,n),{timestampIsSet:!0}]}}t.TimestampMillisecondsParser=s},1410:(e,t,n)=>{"use strict";var r=n(3693).default;t.TimestampSecondsParser=void 0;var o=n(2781),i=n(8218),a=n(9072);class s extends i.Parser{constructor(){super(...arguments),r(this,"priority",40),r(this,"incompatibleTokens","*")}parse(e){return(0,a.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,o.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}}t.TimestampSecondsParser=s},6506:(e,t,n)=>{"use strict";var r=n(3693).default;t.YearParser=void 0;var o=n(8218),i=n(9072);class a extends o.Parser{constructor(){super(...arguments),r(this,"priority",130),r(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){const r=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,i.mapValue)((0,i.parseNDigits)(4,e),r);case"yo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"year"}),r);default:return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const r=e.getFullYear();if(n.isTwoDigitYear){const t=(0,i.normalizeTwoDigitYear)(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const o="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(o,0,1),e.setHours(0,0,0,0),e}}t.YearParser=a},9072:(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){if(!e)return e;return{value:t(e.value),rest:e.rest}},t.normalizeTwoDigitYear=function(e,t){const n=t>0,r=n?t:1-t;let o;if(r<=50)o=e||100;else{const t=r+50;o=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?o:1-o},t.parseAnyDigitsSigned=function(e){return i(o.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return i(o.numericPatterns.singleDigit,t);case 2:return i(o.numericPatterns.twoDigits,t);case 3:return i(o.numericPatterns.threeDigits,t);case 4:return i(o.numericPatterns.fourDigits,t);default:return i(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return i(o.numericPatterns.singleDigitSigned,t);case 2:return i(o.numericPatterns.twoDigitsSigned,t);case 3:return i(o.numericPatterns.threeDigitsSigned,t);case 4:return i(o.numericPatterns.fourDigitsSigned,t);default:return i(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=i,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 o="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,s=n[5]?parseInt(n[5],10):0;return{value:o*(i*r.millisecondsInHour+a*r.millisecondsInMinute+s*r.millisecondsInSecond),rest:t.slice(n[0].length)}};var r=n(6865),o=n(7340);function i(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},4502:(e,t,n)=>{"use strict";t.parseISO=function(e,t){var n;const f=null!==(n=null===t||void 0===t?void 0:t.additionalDigits)&&void 0!==n?n:2,p=function(e){const t={},n=e.split(o.dateTimeDelimiter);let r;if(n.length>2)return t;/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],o.timeZoneDelimiter.test(t.date)&&(t.date=e.split(o.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length)));if(r){const e=o.timezone.exec(r);e?(t.time=r.replace(e[1],""),t.timezone=e[1]):t.time=r}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)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,i=r[2]?parseInt(r[2]):null;return{year:null===i?o:100*i,restDateString:e.slice((r[1]||r[2]).length)}}(p.date,f);h=function(e,t){if(null===t)return new Date(NaN);const n=e.match(i);if(!n)return new Date(NaN);const r=!!n[4],o=l(n[1]),a=l(n[2])-1,s=l(n[3]),u=l(n[4]),f=l(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,u,f)?function(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,i=7*(t-1)+n+1-o;return r.setUTCDate(r.getUTCDate()+i),r}(t,u,f):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(c[t]||(d(e)?29:28))}(t,a,s)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,o)?(e.setUTCFullYear(t,a,Math.max(o,s)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!h||isNaN(h.getTime()))return new Date(NaN);const m=h.getTime();let g,y=0;if(p.time&&(y=function(e){const t=e.match(a);if(!t)return NaN;const n=u(t[1]),o=u(t[2]),i=u(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,o,i))return NaN;return n*r.millisecondsInHour+o*r.millisecondsInMinute+1e3*i}(p.time),isNaN(y)))return new Date(NaN);if(!p.timezone){const e=new Date(m+y),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}if(g=function(e){if("Z"===e)return 0;const t=e.match(s);if(!t)return 0;const n="+"===t[1]?-1:1,o=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return n*(o*r.millisecondsInHour+i*r.millisecondsInMinute)}(p.timezone),isNaN(g))return new Date(NaN);return new Date(m+y+g)};var r=n(6865);const o={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,a=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,s=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function u(e){return e&&parseFloat(e.replace(",","."))||0}const c=[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}},2597:(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})?)?/);if(t)return 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)));return new Date(NaN)}},3841:(e,t,n)=>{"use strict";t.previousDay=function(e,t){let n=(0,r.getDay)(e)-t;n<=0&&(n+=7);return(0,o.subDays)(e,n)};var r=n(7636),o=n(3321)},7512:(e,t,n)=>{"use strict";t.previousFriday=function(e){return(0,r.previousDay)(e,5)};var r=n(3841)},7219:(e,t,n)=>{"use strict";t.previousMonday=function(e){return(0,r.previousDay)(e,1)};var r=n(3841)},7552:(e,t,n)=>{"use strict";t.previousSaturday=function(e){return(0,r.previousDay)(e,6)};var r=n(3841)},9575:(e,t,n)=>{"use strict";t.previousSunday=function(e){return(0,r.previousDay)(e,0)};var r=n(3841)},5977:(e,t,n)=>{"use strict";t.previousThursday=function(e){return(0,r.previousDay)(e,4)};var r=n(3841)},2952:(e,t,n)=>{"use strict";t.previousTuesday=function(e){return(0,r.previousDay)(e,2)};var r=n(3841)},8823:(e,t,n)=>{"use strict";t.previousWednesday=function(e){return(0,r.previousDay)(e,3)};var r=n(3841)},8177:(e,t,n)=>{"use strict";t.quartersToMonths=function(e){return Math.trunc(e*r.monthsInQuarter)};var r=n(6865)},4650:(e,t,n)=>{"use strict";t.quartersToYears=function(e){const t=e/r.quartersInYear;return Math.trunc(t)};var r=n(6865)},5080:(e,t,n)=>{"use strict";t.roundToNearestHours=function(e,t){var n,a;const s=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(s<1||s>12)return(0,o.constructFrom)(e,NaN);const l=(0,i.toDate)(e),u=l.getMinutes()/60,c=l.getSeconds()/60/60,d=l.getMilliseconds()/1e3/60/60,f=l.getHours()+u+c+d,p=null!==(a=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==a?a:"round",h=(0,r.getRoundingMethod)(p)(f/s)*s,m=(0,o.constructFrom)(e,l);return m.setHours(h,0,0,0),m};var r=n(6708),o=n(2781),i=n(5083)},6534:(e,t,n)=>{"use strict";t.roundToNearestMinutes=function(e,t){var n,a;const s=null!==(n=null===t||void 0===t?void 0:t.nearestTo)&&void 0!==n?n:1;if(s<1||s>30)return(0,o.constructFrom)(e,NaN);const l=(0,i.toDate)(e),u=l.getSeconds()/60,c=l.getMilliseconds()/1e3/60,d=l.getMinutes()+u+c,f=null!==(a=null===t||void 0===t?void 0:t.roundingMethod)&&void 0!==a?a:"round",p=(0,r.getRoundingMethod)(f)(d/s)*s,h=(0,o.constructFrom)(e,l);return h.setMinutes(p,0,0),h};var r=n(6708),o=n(2781),i=n(5083)},565:(e,t,n)=>{"use strict";t.secondsToHours=function(e){const t=e/r.secondsInHour;return Math.trunc(t)};var r=n(6865)},790:(e,t,n)=>{"use strict";t.secondsToMilliseconds=function(e){return e*r.millisecondsInSecond};var r=n(6865)},423:(e,t,n)=>{"use strict";t.secondsToMinutes=function(e){const t=e/r.secondsInMinute;return Math.trunc(t)};var r=n(6865)},2180:(e,t,n)=>{"use strict";t.set=function(e,t){let n=(0,i.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);null!=t.year&&n.setFullYear(t.year);null!=t.month&&(n=(0,o.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);return n};var r=n(2781),o=n(8416),i=n(5083)},6768:(e,t,n)=>{"use strict";t.setDate=function(e,t){const n=(0,r.toDate)(e);return n.setDate(t),n};var r=n(5083)},8152:(e,t,n)=>{"use strict";t.setDay=function(e,t,n){var a,s,l,u,c,d;const f=(0,i.getDefaultOptions)(),p=null!==(a=null!==(s=null!==(l=null!==(u=null===n||void 0===n?void 0:n.weekStartsOn)&&void 0!==u?u:null===n||void 0===n||null===(c=n.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==a?a:0,h=(0,o.toDate)(e),m=h.getDay(),g=(t%7+7)%7,y=7-p,v=t<0||t>6?t-(m+y)%7:(g+y)%7-(m+y)%7;return(0,r.addDays)(h,v)};var r=n(6592),o=n(5083),i=n(7784)},9416:(e,t,n)=>{"use strict";t.setDayOfYear=function(e,t){const n=(0,r.toDate)(e);return n.setMonth(0),n.setDate(t),n};var r=n(5083)},9049:(e,t,n)=>{"use strict";t.setDefaultOptions=function(e){const t={},n=(0,r.getDefaultOptions)();for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(void 0===e[r]?delete t[r]:t[r]=e[r]);(0,r.setDefaultOptions)(t)};var r=n(7784)},9017:(e,t,n)=>{"use strict";t.setHours=function(e,t){const n=(0,r.toDate)(e);return n.setHours(t),n};var r=n(5083)},9553:(e,t,n)=>{"use strict";t.setISODay=function(e,t){const n=(0,i.toDate)(e),a=(0,o.getISODay)(n),s=t-a;return(0,r.addDays)(n,s)};var r=n(6592),o=n(9853),i=n(5083)},1335:(e,t,n)=>{"use strict";t.setISOWeek=function(e,t){const n=(0,o.toDate)(e),i=(0,r.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*i),n};var r=n(1387),o=n(5083)},2546:(e,t,n)=>{"use strict";t.setISOWeekYear=function(e,t){let n=(0,a.toDate)(e);const s=(0,o.differenceInCalendarDays)(n,(0,i.startOfISOWeekYear)(n)),l=(0,r.constructFrom)(e,0);return l.setFullYear(t,0,4),l.setHours(0,0,0,0),n=(0,i.startOfISOWeekYear)(l),n.setDate(n.getDate()+s),n};var r=n(2781),o=n(4395),i=n(517),a=n(5083)},7290:(e,t,n)=>{"use strict";t.setMilliseconds=function(e,t){const n=(0,r.toDate)(e);return n.setMilliseconds(t),n};var r=n(5083)},4531:(e,t,n)=>{"use strict";t.setMinutes=function(e,t){const n=(0,r.toDate)(e);return n.setMinutes(t),n};var r=n(5083)},8416:(e,t,n)=>{"use strict";t.setMonth=function(e,t){const n=(0,i.toDate)(e),a=n.getFullYear(),s=n.getDate(),l=(0,r.constructFrom)(e,0);l.setFullYear(a,t,15),l.setHours(0,0,0,0);const u=(0,o.getDaysInMonth)(l);return n.setMonth(t,Math.min(s,u)),n};var r=n(2781),o=n(9468),i=n(5083)},5726:(e,t,n)=>{"use strict";t.setQuarter=function(e,t){const n=(0,o.toDate)(e),i=Math.trunc(n.getMonth()/3)+1,a=t-i;return(0,r.setMonth)(n,n.getMonth()+3*a)};var r=n(8416),o=n(5083)},35:(e,t,n)=>{"use strict";t.setSeconds=function(e,t){const n=(0,r.toDate)(e);return n.setSeconds(t),n};var r=n(5083)},8676:(e,t,n)=>{"use strict";t.setWeek=function(e,t,n){const i=(0,o.toDate)(e),a=(0,r.getWeek)(i,n)-t;return i.setDate(i.getDate()-7*a),i};var r=n(1416),o=n(5083)},8845:(e,t,n)=>{"use strict";t.setWeekYear=function(e,t,n){var l,u,c,d,f,p;const h=(0,s.getDefaultOptions)(),m=null!==(l=null!==(u=null!==(c=null!==(d=null===n||void 0===n?void 0:n.firstWeekContainsDate)&&void 0!==d?d:null===n||void 0===n||null===(f=n.locale)||void 0===f||null===(f=f.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==c?c:h.firstWeekContainsDate)&&void 0!==u?u:null===(p=h.locale)||void 0===p||null===(p=p.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:1;let g=(0,a.toDate)(e);const y=(0,o.differenceInCalendarDays)(g,(0,i.startOfWeekYear)(g,n)),v=(0,r.constructFrom)(e,0);return v.setFullYear(t,0,m),v.setHours(0,0,0,0),g=(0,i.startOfWeekYear)(v,n),g.setDate(g.getDate()+y),g};var r=n(2781),o=n(4395),i=n(8996),a=n(5083),s=n(7784)},5597:(e,t,n)=>{"use strict";t.setYear=function(e,t){const n=(0,o.toDate)(e);if(isNaN(+n))return(0,r.constructFrom)(e,NaN);return n.setFullYear(t),n};var r=n(2781),o=n(5083)},5755:(e,t,n)=>{"use strict";t.startOfDay=function(e){const t=(0,r.toDate)(e);return t.setHours(0,0,0,0),t};var r=n(5083)},3965:(e,t,n)=>{"use strict";t.startOfDecade=function(e){const t=(0,r.toDate)(e),n=t.getFullYear(),o=10*Math.floor(n/10);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t};var r=n(5083)},7355:(e,t,n)=>{"use strict";t.startOfHour=function(e){const t=(0,r.toDate)(e);return t.setMinutes(0,0,0),t};var r=n(5083)},9388:(e,t,n)=>{"use strict";t.startOfISOWeek=function(e){return(0,r.startOfWeek)(e,{weekStartsOn:1})};var r=n(613)},517:(e,t,n)=>{"use strict";t.startOfISOWeekYear=function(e){const t=(0,r.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,o.startOfISOWeek)(n)};var r=n(4958),o=n(9388),i=n(2781)},4573:(e,t,n)=>{"use strict";t.startOfMinute=function(e){const t=(0,r.toDate)(e);return t.setSeconds(0,0),t};var r=n(5083)},1831:(e,t,n)=>{"use strict";t.startOfMonth=function(e){const t=(0,r.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(5083)},2801:(e,t,n)=>{"use strict";t.startOfQuarter=function(e){const t=(0,r.toDate)(e),n=t.getMonth(),o=n-n%3;return t.setMonth(o,1),t.setHours(0,0,0,0),t};var r=n(5083)},3845:(e,t,n)=>{"use strict";t.startOfSecond=function(e){const t=(0,r.toDate)(e);return t.setMilliseconds(0),t};var r=n(5083)},8260:(e,t,n)=>{"use strict";t.startOfToday=function(){return(0,r.startOfDay)(Date.now())};var r=n(5755)},8110:(e,t)=>{"use strict";t.startOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r+1),o.setHours(0,0,0,0),o}},613:(e,t,n)=>{"use strict";t.startOfWeek=function(e,t){var n,i,a,s,l,u;const c=(0,o.getDefaultOptions)(),d=null!==(n=null!==(i=null!==(a=null!==(s=null===t||void 0===t?void 0:t.weekStartsOn)&&void 0!==s?s:null===t||void 0===t||null===(l=t.locale)||void 0===l||null===(l=l.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==a?a:c.weekStartsOn)&&void 0!==i?i:null===(u=c.locale)||void 0===u||null===(u=u.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0,f=(0,r.toDate)(e),p=f.getDay(),h=(p<d?7:0)+p-d;return f.setDate(f.getDate()-h),f.setHours(0,0,0,0),f};var r=n(5083),o=n(7784)},8996:(e,t,n)=>{"use strict";t.startOfWeekYear=function(e,t){var n,s,l,u,c,d;const f=(0,a.getDefaultOptions)(),p=null!==(n=null!==(s=null!==(l=null!==(u=null===t||void 0===t?void 0:t.firstWeekContainsDate)&&void 0!==u?u:null===t||void 0===t||null===(c=t.locale)||void 0===c||null===(c=c.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==l?l:f.firstWeekContainsDate)&&void 0!==s?s:null===(d=f.locale)||void 0===d||null===(d=d.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==n?n:1,h=(0,o.getWeekYear)(e,t),m=(0,r.constructFrom)(e,0);m.setFullYear(h,0,p),m.setHours(0,0,0,0);return(0,i.startOfWeek)(m,t)};var r=n(2781),o=n(3833),i=n(613),a=n(7784)},9928:(e,t,n)=>{"use strict";t.startOfYear=function(e){const t=(0,r.toDate)(e),n=(0,o.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var r=n(5083),o=n(2781)},3137:(e,t)=>{"use strict";t.startOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),r=e.getDate(),o=new Date(0);return o.setFullYear(t,n,r-1),o.setHours(0,0,0,0),o}},5810:(e,t,n)=>{"use strict";t.sub=function(e,t){const{years:n=0,months:a=0,weeks:s=0,days:l=0,hours:u=0,minutes:c=0,seconds:d=0}=t,f=(0,o.subMonths)(e,a+12*n),p=(0,r.subDays)(f,l+7*s),h=1e3*(d+60*(c+60*u));return(0,i.constructFrom)(e,p.getTime()-h)};var r=n(3321),o=n(2097),i=n(2781)},5487:(e,t,n)=>{"use strict";t.subBusinessDays=function(e,t){return(0,r.addBusinessDays)(e,-t)};var r=n(5650)},3321:(e,t,n)=>{"use strict";t.subDays=function(e,t){return(0,r.addDays)(e,-t)};var r=n(6592)},8199:(e,t,n)=>{"use strict";t.subHours=function(e,t){return(0,r.addHours)(e,-t)};var r=n(8172)},4951:(e,t,n)=>{"use strict";t.subISOWeekYears=function(e,t){return(0,r.addISOWeekYears)(e,-t)};var r=n(4278)},748:(e,t,n)=>{"use strict";t.subMilliseconds=function(e,t){return(0,r.addMilliseconds)(e,-t)};var r=n(3105)},5301:(e,t,n)=>{"use strict";t.subMinutes=function(e,t){return(0,r.addMinutes)(e,-t)};var r=n(3794)},2097:(e,t,n)=>{"use strict";t.subMonths=function(e,t){return(0,r.addMonths)(e,-t)};var r=n(4940)},8175:(e,t,n)=>{"use strict";t.subQuarters=function(e,t){return(0,r.addQuarters)(e,-t)};var r=n(726)},9529:(e,t,n)=>{"use strict";t.subSeconds=function(e,t){return(0,r.addSeconds)(e,-t)};var r=n(2670)},5993:(e,t,n)=>{"use strict";t.subWeeks=function(e,t){return(0,r.addWeeks)(e,-t)};var r=n(5670)},8858:(e,t,n)=>{"use strict";t.subYears=function(e,t){return(0,r.addYears)(e,-t)};var r=n(6417)},5083:(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)}},971:(e,t,n)=>{"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,r.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 r=n(2781)},3971:(e,t,n)=>{"use strict";t.weeksToDays=function(e){return Math.trunc(e*r.daysInWeek)};var r=n(6865)},6296:(e,t,n)=>{"use strict";t.yearsToDays=function(e){return Math.trunc(e*r.daysInYear)};var r=n(6865)},1876:(e,t,n)=>{"use strict";t.yearsToMonths=function(e){return Math.trunc(e*r.monthsInYear)};var r=n(6865)},5310:(e,t,n)=>{"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*r.quartersInYear)};var r=n(6865)},7004:(e,t,n)=>{"use strict";var r=n(8853),o=n(5043),i=n(7950);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),x=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var k=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var D=Symbol.for("react.memo_cache_sentinel"),S=Symbol.iterator;function E(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=S&&e[S]||e["@@iterator"])?e:null}var C=Symbol.for("react.client.reference");function M(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===C?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case d:return"Fragment";case c:return"Portal";case p:return"Profiler";case f:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case g:return(e.displayName||"Context")+".Provider";case m:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(t=e.displayName||null)?t:M(e.type)||"Memo";case x:t=e._payload,e=e._init;try{return M(e(t))}catch(n){}}return null}var O,N,A=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=Object.assign;function _(e){if(void 0===O)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);O=t&&t[1]||"",N=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+O+e+N}var j=!1;function T(e,t){if(!e||j)return"";j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"===typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"===typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{j=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_(n):""}function R(e){switch(e.tag){case 26:case 27:case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 15:return e=T(e.type,!1);case 11:return e=T(e.type.render,!1);case 1:return e=T(e.type,!0);default:return""}}function F(e){try{var t="";do{t+=R(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function L(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 z(e){if(I(e)!==e)throw Error(a(188))}function B(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=B(e)))return t;e=e.sibling}return null}var Y=Array.isArray,H=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},V=[],U=-1;function $(e){return{current:e}}function q(e){0>U||(e.current=V[U],V[U]=null,U--)}function K(e,t){U++,V[U]=e.current,e.current=t}var Q=$(null),G=$(null),J=$(null),Z=$(null);function X(e,t){switch(K(J,t),K(G,e),K(Q,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Gc(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Jc(e=Gc(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(Q),K(Q,t)}function ee(){q(Q),q(G),q(J)}function te(e){null!==e.memoizedState&&K(Z,e);var t=Q.current,n=Jc(t,e.type);t!==n&&(K(G,e),K(Q,n))}function ne(e){G.current===e&&(q(Q),q(G)),Z.current===e&&(q(Z),Fd._currentValue=W)}var re=Object.prototype.hasOwnProperty,oe=r.unstable_scheduleCallback,ie=r.unstable_cancelCallback,ae=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"===typeof me&&ge(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(xe(e)/ke|0)|0},xe=Math.log,ke=Math.LN2;var De=128,Se=4194304;function Ee(e){var t=42&e;if(0!==t)return t;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:return 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 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ce(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=e.warmLanes;e=0!==e.finishedLanes;var s=134217727&n;return 0!==s?0!==(n=s&~o)?r=Ee(n):0!==(i&=s)?r=Ee(i):e||0!==(a=s&~a)&&(r=Ee(a)):0!==(s=n&~o)?r=Ee(s):0!==i?r=Ee(i):e||0!==(a=n&~a)&&(r=Ee(a)),0===r?0:0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(a=t&-t)||32===o&&0!==(4194176&a))?t:r}function Me(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;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 Ne(){var e=De;return 0===(4194176&(De<<=1))&&(De=128),e}function Ae(){var e=Se;return 0===(62914560&(Se<<=1))&&(Se=4194304),e}function Pe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _e(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function je(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Te(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function Re(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Fe(){var e=H.p;return 0!==e?e:void 0===(e=window.event)?32:Jd(e.type)}var Ie=Math.random().toString(36).slice(2),Le="__reactFiber$"+Ie,ze="__reactProps$"+Ie,Be="__reactContainer$"+Ie,Ye="__reactEvents$"+Ie,He="__reactListeners$"+Ie,We="__reactHandles$"+Ie,Ve="__reactResources$"+Ie,Ue="__reactMarker$"+Ie;function $e(e){delete e[Le],delete e[ze],delete e[Ye],delete e[He],delete e[We]}function qe(e){var t=e[Le];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Be]||n[Le]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ld(e);null!==e;){if(n=e[Le])return n;e=ld(e)}return t}n=(e=n).parentNode}return null}function Ke(e){if(e=e[Le]||e[Be]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Ge(e){var t=e[Ve];return t||(t=e[Ve]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Je(e){e[Ue]=!0}var Ze=new Set,Xe={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Xe[e]=t,e=0;e<t.length;e++)Ze.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),rt=RegExp("^[: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]*$"),ot={},it={};function at(e,t,n){if(o=t,re.call(it,o)||!re.call(ot,o)&&(rt.test(o)?it[o]=!0:(ot[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function st(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ct(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function dt(e){e._valueTracker||(e._valueTracker=function(e){var t=ct(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ct(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ht=/[\n"\\]/g;function mt(e){return e.replace(ht,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function gt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ut(t)):e.value!==""+ut(t)&&(e.value=""+ut(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?vt(e,a,ut(t)):null!=n?vt(e,a,ut(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!==typeof o&&"symbol"!==typeof o),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+ut(s):e.removeAttribute("name")}function yt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return;n=null!=n?""+ut(n):"",t=null!=t?""+ut(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:o)&&"symbol"!==typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.name=a)}function vt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ut(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function wt(e,t,n){null==t||((t=""+ut(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ut(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function xt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(Y(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ut(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function kt(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 Dt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function St(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||Dt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Et(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&St(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&St(e,i,t[i])}function Ct(e){if(-1===e.indexOf("-"))return!1;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 Mt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ot=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Nt(e){return Ot.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var At=null;function Pt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _t=null,jt=null;function Tt(e){var t=Ke(e);if(t&&(e=t.stateNode)){var n=e[ze]||null;e:switch(e=t.stateNode,t.type){case"input":if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[ze]||null;if(!o)throw Error(a(90));gt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ft(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Rt=!1;function Ft(e,t,n){if(Rt)return e(t,n);Rt=!0;try{return e(t)}finally{if(Rt=!1,(null!==_t||null!==jt)&&(Lu(),_t&&(t=_t,e=jt,jt=_t=null,Tt(t),e)))for(t=0;t<e.length;t++)Tt(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var r=n[ze]||null;if(null===r)return null;n=r[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":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Lt=!1;if(nt)try{var zt={};Object.defineProperty(zt,"passive",{get:function(){Lt=!0}}),window.addEventListener("test",zt,zt),window.removeEventListener("test",zt,zt)}catch(kf){Lt=!1}var Bt=null,Yt=null,Ht=null;function Wt(){if(Ht)return Ht;var e,t,n=Yt,r=n.length,o="value"in Bt?Bt.value:Bt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Ht=o.slice(e,1<t?1-t:void 0)}function Vt(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 Ut(){return!0}function $t(){return!1}function qt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Ut:$t,this.isPropagationStopped=$t,this}return P(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=Ut)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ut)},persist:function(){},isPersistent:Ut}),t}var Kt,Qt,Gt,Jt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zt=qt(Jt),Xt=P({},Jt,{view:0,detail:0}),en=qt(Xt),tn=P({},Xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,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!==Gt&&(Gt&&"mousemove"===e.type?(Kt=e.screenX-Gt.screenX,Qt=e.screenY-Gt.screenY):Qt=Kt=0,Gt=e),Kt)},movementY:function(e){return"movementY"in e?e.movementY:Qt}}),nn=qt(tn),rn=qt(P({},tn,{dataTransfer:0})),on=qt(P({},Xt,{relatedTarget:0})),an=qt(P({},Jt,{animationName:0,elapsedTime:0,pseudoElement:0})),sn=qt(P({},Jt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=qt(P({},Jt,{data:0})),un={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},cn={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"},dn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=dn[e])&&!!t[e]}function pn(){return fn}var hn=qt(P({},Xt,{key:function(e){if(e.key){var t=un[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Vt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?cn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?Vt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Vt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mn=qt(P({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=qt(P({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),yn=qt(P({},Jt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=qt(P({},tn,{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})),bn=qt(P({},Jt,{newState:0,oldState:0})),wn=[9,13,27,32],xn=nt&&"CompositionEvent"in window,kn=null;nt&&"documentMode"in document&&(kn=document.documentMode);var Dn=nt&&"TextEvent"in window&&!kn,Sn=nt&&(!xn||kn&&8<kn&&11>=kn),En=String.fromCharCode(32),Cn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function On(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Nn=!1;var An={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 Pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!An[e.type]:"textarea"===t}function _n(e,t,n,r){_t?jt?jt.push(r):jt=[r]:_t=r,0<(t=Fc(t,"onChange")).length&&(n=new Zt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jn=null,Tn=null;function Rn(e){Oc(e,0)}function Fn(e){if(ft(Qe(e)))return e}function In(e,t){if("change"===e)return t}var Ln=!1;if(nt){var zn;if(nt){var Bn="oninput"in document;if(!Bn){var Yn=document.createElement("div");Yn.setAttribute("oninput","return;"),Bn="function"===typeof Yn.oninput}zn=Bn}else zn=!1;Ln=zn&&(!document.documentMode||9<document.documentMode)}function Hn(){jn&&(jn.detachEvent("onpropertychange",Wn),Tn=jn=null)}function Wn(e){if("value"===e.propertyName&&Fn(Tn)){var t=[];_n(t,Tn,e,Pt(e)),Ft(Rn,t)}}function Vn(e,t,n){"focusin"===e?(Hn(),Tn=n,(jn=t).attachEvent("onpropertychange",Wn)):"focusout"===e&&Hn()}function Un(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Fn(Tn)}function $n(e,t){if("click"===e)return Fn(t)}function qn(e,t){if("input"===e||"change"===e)return Fn(t)}var Kn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Qn(e,t){if(Kn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!re.call(t,o)||!Kn(e[o],t[o]))return!1}return!0}function Gn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jn(e,t){var n,r=Gn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function Zn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Zn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Xn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function er(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 tr(e,t){var n=Xn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Zn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var o=t.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!n.extend&&i>r&&(o=r,r=i,i=o),o=Jn(t,i);var a=Jn(t,r);o&&a&&(1!==n.rangeCount||n.anchorNode!==o.node||n.anchorOffset!==o.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&((e=e.createRange()).setStart(o.node,o.offset),n.removeAllRanges(),i>r?(n.addRange(e),n.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var nr=nt&&"documentMode"in document&&11>=document.documentMode,rr=null,or=null,ir=null,ar=!1;function sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ar||null==rr||rr!==pt(r)||("selectionStart"in(r=rr)&&er(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},ir&&Qn(ir,r)||(ir=r,0<(r=Fc(or,"onSelect")).length&&(t=new Zt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ur={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},cr={},dr={};function fr(e){if(cr[e])return cr[e];if(!ur[e])return e;var t,n=ur[e];for(t in n)if(n.hasOwnProperty(t)&&t in dr)return cr[e]=n[t];return e}nt&&(dr=document.createElement("div").style,"AnimationEvent"in window||(delete ur.animationend.animation,delete ur.animationiteration.animation,delete ur.animationstart.animation),"TransitionEvent"in window||delete ur.transitionend.transition);var pr=fr("animationend"),hr=fr("animationiteration"),mr=fr("animationstart"),gr=fr("transitionrun"),yr=fr("transitionstart"),vr=fr("transitioncancel"),br=fr("transitionend"),wr=new Map,xr="abort auxClick beforeToggle 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 scrollEnd toggle touchMove waiting wheel".split(" ");function kr(e,t){wr.set(e,t),et(t,[e])}var Dr=[],Sr=0,Er=0;function Cr(){for(var e=Sr,t=Er=Sr=0;t<e;){var n=Dr[t];Dr[t++]=null;var r=Dr[t];Dr[t++]=null;var o=Dr[t];Dr[t++]=null;var i=Dr[t];if(Dr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Ar(n,o,i)}}function Mr(e,t,n,r){Dr[Sr++]=e,Dr[Sr++]=t,Dr[Sr++]=n,Dr[Sr++]=r,Er|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Or(e,t,n,r){return Mr(e,t,n,r),Pr(e)}function Nr(e,t){return Mr(e,null,null,t),Pr(e)}function Ar(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;o&&null!==t&&3===e.tag&&(i=e.stateNode,o=31-we(n),null===(e=(i=i.hiddenUpdates)[o])?i[o]=[t]:e.push(t),t.lane=536870912|n)}function Pr(e){if(50<Ou)throw Ou=0,Nu=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var _r={},jr=new WeakMap;function Tr(e,t){if("object"===typeof e&&null!==e){var n=jr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:F(t)},jr.set(e,t),t)}return{value:e,source:t,stack:F(t)}}var Rr=[],Fr=0,Ir=null,Lr=0,zr=[],Br=0,Yr=null,Hr=1,Wr="";function Vr(e,t){Rr[Fr++]=Lr,Rr[Fr++]=Ir,Ir=e,Lr=t}function Ur(e,t,n){zr[Br++]=Hr,zr[Br++]=Wr,zr[Br++]=Yr,Yr=e;var r=Hr;e=Wr;var o=32-we(r)-1;r&=~(1<<o),n+=1;var i=32-we(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Hr=1<<32-we(t)+o|n<<o|r,Wr=i+e}else Hr=1<<i|n<<o|r,Wr=e}function $r(e){null!==e.return&&(Vr(e,1),Ur(e,1,0))}function qr(e){for(;e===Ir;)Ir=Rr[--Fr],Rr[Fr]=null,Lr=Rr[--Fr],Rr[Fr]=null;for(;e===Yr;)Yr=zr[--Br],zr[Br]=null,Wr=zr[--Br],zr[Br]=null,Hr=zr[--Br],zr[Br]=null}var Kr=null,Qr=null,Gr=!1,Jr=null,Zr=!1,Xr=Error(a(519));function eo(e){throw io(Tr(Error(a(418,"")),e)),Xr}function to(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Le]=e,t[ze]=r,n){case"dialog":Nc("cancel",t),Nc("close",t);break;case"iframe":case"object":case"embed":Nc("load",t);break;case"video":case"audio":for(n=0;n<Cc.length;n++)Nc(Cc[n],t);break;case"source":Nc("error",t);break;case"img":case"image":case"link":Nc("error",t),Nc("load",t);break;case"details":Nc("toggle",t);break;case"input":Nc("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),dt(t);break;case"select":Nc("invalid",t);break;case"textarea":Nc("invalid",t),xt(t,r.value,r.defaultValue,r.children),dt(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Hc(t.textContent,n)?(null!=r.popover&&(Nc("beforetoggle",t),Nc("toggle",t)),null!=r.onScroll&&Nc("scroll",t),null!=r.onScrollEnd&&Nc("scrollend",t),null!=r.onClick&&(t.onclick=Wc),t=!0):t=!1,t||eo(e)}function no(e){for(Kr=e.return;Kr;)switch(Kr.tag){case 3:case 27:return void(Zr=!0);case 5:case 13:return void(Zr=!1);default:Kr=Kr.return}}function ro(e){if(e!==Kr)return!1;if(!Gr)return no(e),Gr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Zc(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Qr&&eo(e),no(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Qr=sd(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Qr=null}}else Qr=Kr?sd(e.stateNode.nextSibling):null;return!0}function oo(){Qr=Kr=null,Gr=!1}function io(e){null===Jr?Jr=[e]:Jr.push(e)}var ao=Error(a(460)),so=Error(a(474)),lo={then:function(){}};function uo(e){return"fulfilled"===(e=e.status)||"rejected"===e}function co(){}function fo(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(co,co),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===ao)throw Error(a(483));throw e;default:if("string"===typeof t.status)t.then(co,co);else{if(null!==(e=tu)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===ao)throw Error(a(483));throw e}throw po=t,ao}}var po=null;function ho(){if(null===po)throw Error(a(459));var e=po;return po=null,e}var mo=null,go=0;function yo(e){var t=go;return go+=1,null===mo&&(mo=[]),fo(mo,e,t)}function vo(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function bo(e,t){if(t.$$typeof===l)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Il(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n,r){var i=n.type;return i===d?h(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===x&&wo(i)===t.type)?(vo(t=o(t,n.props),n),t.return=e,t):(vo(t=zl(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function p(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function h(e,t,n,r,i){return null===t||7!==t.tag?((t=Bl(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Hl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case u:return vo(n=zl(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case c:return(t=Wl(t,e.mode,n)).return=e,t;case x:return m(e,t=(0,t._init)(t._payload),n)}if(Y(t)||E(t))return(t=Bl(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return m(e,yo(t),n);if(t.$$typeof===g)return m(e,Cs(e,t),n);bo(e,t)}return null}function y(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case u:return n.key===o?f(e,t,n,r):null;case c:return n.key===o?p(e,t,n,r):null;case x:return y(e,t,n=(o=n._init)(n._payload),r)}if(Y(n)||E(n))return null!==o?null:h(e,t,n,r,null);if("function"===typeof n.then)return y(e,t,yo(n),r);if(n.$$typeof===g)return y(e,t,Cs(e,n),r);bo(e,n)}return null}function v(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case u:return f(t,e=e.get(null===r.key?n:r.key)||null,r,o);case c:return p(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return v(e,t,n,r=(0,r._init)(r._payload),o)}if(Y(r)||E(r))return h(t,e=e.get(n)||null,r,o,null);if("function"===typeof r.then)return v(e,t,n,yo(r),o);if(r.$$typeof===g)return v(e,t,n,Cs(t,r),o);bo(t,r)}return null}function b(l,f,p,h){if("object"===typeof p&&null!==p&&p.type===d&&null===p.key&&(p=p.props.children),"object"===typeof p&&null!==p){switch(p.$$typeof){case u:e:{for(var w=p.key;null!==f;){if(f.key===w){if((w=p.type)===d){if(7===f.tag){n(l,f.sibling),(h=o(f,p.props.children)).return=l,l=h;break e}}else if(f.elementType===w||"object"===typeof w&&null!==w&&w.$$typeof===x&&wo(w)===f.type){n(l,f.sibling),vo(h=o(f,p.props),p),h.return=l,l=h;break e}n(l,f);break}t(l,f),f=f.sibling}p.type===d?((h=Bl(p.props.children,l.mode,h,p.key)).return=l,l=h):(vo(h=zl(p.type,p.key,p.props,null,l.mode,h),p),h.return=l,l=h)}return s(l);case c:e:{for(w=p.key;null!==f;){if(f.key===w){if(4===f.tag&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(l,f.sibling),(h=o(f,p.children||[])).return=l,l=h;break e}n(l,f);break}t(l,f),f=f.sibling}(h=Wl(p,l.mode,h)).return=l,l=h}return s(l);case x:return b(l,f,p=(w=p._init)(p._payload),h)}if(Y(p))return function(o,a,s,l){for(var u=null,c=null,d=a,f=a=0,p=null;null!==d&&f<s.length;f++){d.index>f?(p=d,d=null):p=d.sibling;var h=y(o,d,s[f],l);if(null===h){null===d&&(d=p);break}e&&d&&null===h.alternate&&t(o,d),a=i(h,a,f),null===c?u=h:c.sibling=h,c=h,d=p}if(f===s.length)return n(o,d),Gr&&Vr(o,f),u;if(null===d){for(;f<s.length;f++)null!==(d=m(o,s[f],l))&&(a=i(d,a,f),null===c?u=d:c.sibling=d,c=d);return Gr&&Vr(o,f),u}for(d=r(d);f<s.length;f++)null!==(p=v(d,o,f,s[f],l))&&(e&&null!==p.alternate&&d.delete(null===p.key?f:p.key),a=i(p,a,f),null===c?u=p:c.sibling=p,c=p);return e&&d.forEach((function(e){return t(o,e)})),Gr&&Vr(o,f),u}(l,f,p,h);if(E(p)){if("function"!==typeof(w=E(p)))throw Error(a(150));return function(o,s,l,u){if(null==l)throw Error(a(151));for(var c=null,d=null,f=s,p=s=0,h=null,g=l.next();null!==f&&!g.done;p++,g=l.next()){f.index>p?(h=f,f=null):h=f.sibling;var b=y(o,f,g.value,u);if(null===b){null===f&&(f=h);break}e&&f&&null===b.alternate&&t(o,f),s=i(b,s,p),null===d?c=b:d.sibling=b,d=b,f=h}if(g.done)return n(o,f),Gr&&Vr(o,p),c;if(null===f){for(;!g.done;p++,g=l.next())null!==(g=m(o,g.value,u))&&(s=i(g,s,p),null===d?c=g:d.sibling=g,d=g);return Gr&&Vr(o,p),c}for(f=r(f);!g.done;p++,g=l.next())null!==(g=v(f,o,p,g.value,u))&&(e&&null!==g.alternate&&f.delete(null===g.key?p:g.key),s=i(g,s,p),null===d?c=g:d.sibling=g,d=g);return e&&f.forEach((function(e){return t(o,e)})),Gr&&Vr(o,p),c}(l,f,p=w.call(p),h)}if("function"===typeof p.then)return b(l,f,yo(p),h);if(p.$$typeof===g)return b(l,f,Cs(l,p),h);bo(l,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==f&&6===f.tag?(n(l,f.sibling),(h=o(f,p)).return=l,l=h):(n(l,f),(h=Hl(p,l.mode,h)).return=l,l=h),s(l)):n(l,f)}return function(e,t,n,r){try{go=0;var o=b(e,t,n,r);return mo=null,o}catch(a){if(a===ao)throw a;var i=Rl(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var ko=xo(!0),Do=xo(!1),So=$(null),Eo=$(0);function Co(e,t){K(Eo,e=uu),K(So,t),uu=e|t.baseLanes}function Mo(){K(Eo,uu),K(So,So.current)}function Oo(){uu=Eo.current,q(So),q(Eo)}var No=$(null),Ao=null;function Po(e){var t=e.alternate;K(Ro,1&Ro.current),K(No,e),null===Ao&&(null===t||null!==So.current||null!==t.memoizedState)&&(Ao=e)}function _o(e){if(22===e.tag){if(K(Ro,Ro.current),K(No,e),null===Ao){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Ao=e)}}else jo()}function jo(){K(Ro,Ro.current),K(No,No.current)}function To(e){q(No),Ao===e&&(Ao=null),q(Ro)}var Ro=$(0);function Fo(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(0!==(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 Io="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Lo=r.unstable_scheduleCallback,zo=r.unstable_NormalPriority,Bo={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yo(){return{controller:new Io,data:new Map,refCount:0}}function Ho(e){e.refCount--,0===e.refCount&&Lo(zo,(function(){e.controller.abort()}))}var Wo=null,Vo=0,Uo=0,$o=null;function qo(){if(0===--Vo&&null!==Wo){null!==$o&&($o.status="fulfilled");var e=Wo;Wo=null,Uo=0,$o=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ko=A.S;A.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Wo){var n=Wo=[];Vo=0,Uo=xc(),$o={status:"pending",value:void 0,then:function(e){n.push(e)}}}Vo++,t.then(qo,qo)}(0,t),null!==Ko&&Ko(e,t)};var Qo=$(null);function Go(){var e=Qo.current;return null!==e?e:tu.pooledCache}function Jo(e,t){K(Qo,null===t?Qo.current:t.pool)}function Zo(){var e=Go();return null===e?null:{parent:Bo._currentValue,pool:e}}var Xo=0,ei=null,ti=null,ni=null,ri=!1,oi=!1,ii=!1,ai=0,si=0,li=null,ui=0;function ci(){throw Error(a(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Kn(e[n],t[n]))return!1;return!0}function fi(e,t,n,r,o,i){return Xo=i,ei=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=null===e||null===e.memoizedState?Ca:Ma,ii=!1,i=n(r,o),ii=!1,oi&&(i=hi(t,n,r,o)),pi(e),i}function pi(e){A.H=Ea;var t=null!==ti&&null!==ti.next;if(Xo=0,ni=ti=ei=null,ri=!1,si=0,li=null,t)throw Error(a(300));null===e||Va||null!==(e=e.dependencies)&&Ds(e)&&(Va=!0)}function hi(e,t,n,r){ei=e;var o=0;do{if(oi&&(li=null),si=0,oi=!1,25<=o)throw Error(a(301));if(o+=1,ni=ti=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}A.H=Oa,i=t(n,r)}while(oi);return i}function mi(){var e=A.H,t=e.useState()[0];return t="function"===typeof t.then?xi(t):t,e=e.useState()[0],(null!==ti?ti.memoizedState:null)!==e&&(ei.flags|=1024),t}function gi(){var e=0!==ai;return ai=0,e}function yi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vi(e){if(ri){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ri=!1}Xo=0,ni=ti=ei=null,oi=!1,si=ai=0,li=null}function bi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function wi(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e){if(null===ei.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function xi(e){var t=si;return si+=1,null===li&&(li=[]),e=fo(li,e,t),t=ei,null===(null===ni?t.memoizedState:ni.next)&&(t=t.alternate,A.H=null===t||null===t.memoizedState?Ca:Ma),e}function ki(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return xi(e);if(e.$$typeof===g)return Es(e)}throw Error(a(438,String(e)))}function Di(e){var t=null,n=ei.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=ei.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function Si(e,t){return"function"===typeof t?t(e):t}function Ei(e){return Ci(wi(),ti,e)}function Ci(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=s=null,u=null,c=t=o.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(ru&f)===f:(Xo&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Uo&&(d=!0);else{if((Xo&p)===p){c=c.next,p===Uo&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,ei.lanes|=p,du|=p}f=c.action,ii&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,ei.lanes|=f,du|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!Kn(i,e.memoizedState)&&(Va=!0,d&&null!==(n=$o)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Mi(e){var t=wi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Kn(i,t.memoizedState)||(Va=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Oi(e,t,n){var r=ei,o=wi(),i=Gr;if(i){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Kn((ti||o).memoizedState,n);if(s&&(o.memoizedState=n,Va=!0),o=o.queue,Xi(Pi.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==ni&&1&ni.memoizedState.tag){if(r.flags|=2048,Ki(9,Ai.bind(null,r,o,n,t),{destroy:void 0},null),null===tu)throw Error(a(349));i||0!==(60&Xo)||Ni(r,t,n)}return n}function Ni(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ei.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ai(e,t,n,r){t.value=n,t.getSnapshot=r,_i(t)&&ji(e)}function Pi(e,t,n){return n((function(){_i(t)&&ji(e)}))}function _i(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kn(e,n)}catch(r){return!0}}function ji(e){var t=Nr(e,2);null!==t&&_u(t,e,2)}function Ti(e){var t=bi();if("function"===typeof e){var n=e;if(e=n(),ii){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:e},t}function Ri(e,t,n,r){return e.baseState=n,Ci(e,ti,"function"===typeof r?r:Si)}function Fi(e,t,n,r,o){if(ka(e))throw Error(a(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==A.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,Ii(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Ii(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=A.T,a={};A.T=a;try{var s=n(o,r),l=A.S;null!==l&&l(a,s),Li(e,t,s)}catch(u){Bi(e,t,u)}finally{A.T=i}}else try{Li(e,t,i=n(o,r))}catch(c){Bi(e,t,c)}}function Li(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then((function(n){zi(e,t,n)}),(function(n){return Bi(e,t,n)})):zi(e,t,n)}function zi(e,t,n){t.status="fulfilled",t.value=n,Yi(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ii(e,n)))}function Bi(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Yi(t),t=t.next}while(t!==r)}e.action=null}function Yi(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hi(e,t){return t}function Wi(e,t){if(Gr){var n=tu.formState;if(null!==n){e:{var r=ei;if(Gr){if(Qr){t:{for(var o=Qr,i=Zr;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=sd(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){Qr=sd(o.nextSibling),r="F!"===o.data;break e}}eo(r)}r=!1}r&&(t=n[0])}}return(n=bi()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hi,lastRenderedState:t},n.queue=r,n=ba.bind(null,ei,r),r.dispatch=n,r=Ti(!1),i=xa.bind(null,ei,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=bi()).queue=o,n=Fi.bind(null,ei,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Vi(e){return Ui(wi(),ti,e)}function Ui(e,t,n){t=Ci(e,t,Hi)[0],e=Ei(Si)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?xi(t):t;var r=wi(),o=r.queue,i=o.dispatch;return n!==r.memoizedState&&(ei.flags|=2048,Ki(9,$i.bind(null,o,n),{destroy:void 0},null)),[t,i,e]}function $i(e,t){e.action=t}function qi(e){var t=wi(),n=ti;if(null!==n)return Ui(t,n,e);wi(),t=t.memoizedState;var r=(n=wi()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ki(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=ei.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},ei.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Qi(){return wi().memoizedState}function Gi(e,t,n,r){var o=bi();ei.flags|=e,o.memoizedState=Ki(1|t,n,{destroy:void 0},void 0===r?null:r)}function Ji(e,t,n,r){var o=wi();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==ti&&null!==r&&di(r,ti.memoizedState.deps)?o.memoizedState=Ki(t,n,i,r):(ei.flags|=e,o.memoizedState=Ki(1|t,n,i,r))}function Zi(e,t){Gi(8390656,8,e,t)}function Xi(e,t){Ji(2048,8,e,t)}function ea(e,t){return Ji(4,2,e,t)}function ta(e,t){return Ji(4,4,e,t)}function na(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ra(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Ji(4,4,na.bind(null,t,e),n)}function oa(){}function ia(e,t){var n=wi();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&di(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function aa(e,t){var n=wi();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&di(t,r[1]))return r[0];if(r=e(),ii){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function sa(e,t,n){return void 0===n||0!==(1073741824&Xo)?e.memoizedState=t:(e.memoizedState=n,e=Pu(),ei.lanes|=e,du|=e,n)}function la(e,t,n,r){return Kn(n,t)?n:null!==So.current?(e=sa(e,n,r),Kn(e,t)||(Va=!0),e):0===(42&Xo)?(Va=!0,e.memoizedState=n):(e=Pu(),ei.lanes|=e,du|=e,t)}function ua(e,t,n,r,o){var i=H.p;H.p=0!==i&&8>i?i:8;var a=A.T,s={};A.T=s,xa(e,!1,t,n);try{var l=o(),u=A.S;if(null!==u&&u(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)wa(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then((function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)}),(function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)})),r}(l,r),Au());else wa(e,t,r,Au())}catch(c){wa(e,t,{then:function(){},status:"rejected",reason:c},Au())}finally{H.p=i,A.T=a}}function ca(){}function da(e,t,n,r){if(5!==e.tag)throw Error(a(476));var o=fa(e).queue;ua(e,o,t,W,null===n?ca:function(){return pa(e),n(r)})}function fa(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:W},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function pa(e){wa(e,fa(e).next.queue,{},Au())}function ha(){return Es(Fd)}function ma(){return wi().memoizedState}function ga(){return wi().memoizedState}function ya(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Au(),r=_s(t,e=Ps(n),n);return null!==r&&(_u(r,t,n),js(r,t,n)),t={cache:Yo()},void(e.payload=t)}t=t.return}}function va(e,t,n){var r=Au();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ka(e)?Da(t,n):null!==(n=Or(e,t,n,r))&&(_u(n,e,r),Sa(n,t,r))}function ba(e,t,n){wa(e,t,n,Au())}function wa(e,t,n,r){var o={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ka(e))Da(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Kn(s,a))return Mr(e,t,o,0),null===tu&&Cr(),!1}catch(l){}if(null!==(n=Or(e,t,o,r)))return _u(n,e,r),Sa(n,t,r),!0}return!1}function xa(e,t,n,r){if(r={lane:2,revertLane:xc(),action:r,hasEagerState:!1,eagerState:null,next:null},ka(e)){if(t)throw Error(a(479))}else null!==(t=Or(e,n,r,2))&&_u(t,e,2)}function ka(e){var t=e.alternate;return e===ei||null!==t&&t===ei}function Da(e,t){oi=ri=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sa(e,t,n){if(0!==(4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}var Ea={readContext:Es,use:ki,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useInsertionEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useSyncExternalStore:ci,useId:ci};Ea.useCacheRefresh=ci,Ea.useMemoCache=ci,Ea.useHostTransitionStatus=ci,Ea.useFormState=ci,Ea.useActionState=ci,Ea.useOptimistic=ci;var Ca={readContext:Es,use:ki,useCallback:function(e,t){return bi().memoizedState=[e,void 0===t?null:t],e},useContext:Es,useEffect:Zi,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Gi(4194308,4,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gi(4194308,4,e,t)},useInsertionEffect:function(e,t){Gi(4,2,e,t)},useMemo:function(e,t){var n=bi();t=void 0===t?null:t;var r=e();if(ii){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=bi();if(void 0!==n){var o=n(t);if(ii){be(!0);try{n(t)}finally{be(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=va.bind(null,ei,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bi().memoizedState=e},useState:function(e){var t=(e=Ti(e)).queue,n=ba.bind(null,ei,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:oa,useDeferredValue:function(e,t){return sa(bi(),e,t)},useTransition:function(){var e=Ti(!1);return e=ua.bind(null,ei,e.queue,!0,!1),bi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ei,o=bi();if(Gr){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===tu)throw Error(a(349));0!==(60&ru)||Ni(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zi(Pi.bind(null,r,i,e),[e]),r.flags|=2048,Ki(9,Ai.bind(null,r,i,n,t),{destroy:void 0},null),n},useId:function(){var e=bi(),t=tu.identifierPrefix;if(Gr){var n=Wr;t=":"+t+"R"+(n=(Hr&~(1<<32-we(Hr)-1)).toString(32)+n),0<(n=ai++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ui++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return bi().memoizedState=ya.bind(null,ei)}};Ca.useMemoCache=Di,Ca.useHostTransitionStatus=ha,Ca.useFormState=Wi,Ca.useActionState=Wi,Ca.useOptimistic=function(e){var t=bi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=xa.bind(null,ei,!0,n),n.dispatch=t,[e,t]};var Ma={readContext:Es,use:ki,useCallback:ia,useContext:Es,useEffect:Xi,useImperativeHandle:ra,useInsertionEffect:ea,useLayoutEffect:ta,useMemo:aa,useReducer:Ei,useRef:Qi,useState:function(){return Ei(Si)},useDebugValue:oa,useDeferredValue:function(e,t){return la(wi(),ti.memoizedState,e,t)},useTransition:function(){var e=Ei(Si)[0],t=wi().memoizedState;return["boolean"===typeof e?e:xi(e),t]},useSyncExternalStore:Oi,useId:ma};Ma.useCacheRefresh=ga,Ma.useMemoCache=Di,Ma.useHostTransitionStatus=ha,Ma.useFormState=Vi,Ma.useActionState=Vi,Ma.useOptimistic=function(e,t){return Ri(wi(),0,e,t)};var Oa={readContext:Es,use:ki,useCallback:ia,useContext:Es,useEffect:Xi,useImperativeHandle:ra,useInsertionEffect:ea,useLayoutEffect:ta,useMemo:aa,useReducer:Mi,useRef:Qi,useState:function(){return Mi(Si)},useDebugValue:oa,useDeferredValue:function(e,t){var n=wi();return null===ti?sa(n,e,t):la(n,ti.memoizedState,e,t)},useTransition:function(){var e=Mi(Si)[0],t=wi().memoizedState;return["boolean"===typeof e?e:xi(e),t]},useSyncExternalStore:Oi,useId:ma};function Na(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:P({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Oa.useCacheRefresh=ga,Oa.useMemoCache=Di,Oa.useHostTransitionStatus=ha,Oa.useFormState=qi,Oa.useActionState=qi,Oa.useOptimistic=function(e,t){var n=wi();return null!==ti?Ri(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Aa={isMounted:function(e){return!!(e=e._reactInternals)&&I(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Au(),o=Ps(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=_s(e,o,r))&&(_u(t,e,r),js(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Au(),o=Ps(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=_s(e,o,r))&&(_u(t,e,r),js(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Au(),r=Ps(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=_s(e,r,n))&&(_u(t,e,n),js(t,e,n))}};function Pa(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(n,r)||!Qn(o,i))}function _a(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Aa.enqueueReplaceState(t,t.state,null)}function ja(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=P({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}var Ta="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Ra(e){Ta(e)}function Fa(e){console.error(e)}function Ia(e){Ta(e)}function La(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout((function(){throw n}))}}function za(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout((function(){throw r}))}}function Ba(e,t,n){return(n=Ps(n)).tag=3,n.payload={element:null},n.callback=function(){La(e,t)},n}function Ya(e){return(e=Ps(e)).tag=3,e}function Ha(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"===typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){za(t,n,r)}}var a=n.stateNode;null!==a&&"function"===typeof a.componentDidCatch&&(e.callback=function(){za(t,n,r),"function"!==typeof o&&(null===ku?ku=new Set([this]):ku.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Wa=Error(a(461)),Va=!1;function Ua(e,t,n,r){t.child=null===e?Do(t,null,n,r):ko(t,e.child,n,r)}function $a(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Ss(t),r=fi(e,t,n,a,i,o),s=gi(),null===e||Va?(Gr&&s&&$r(t),t.flags|=1,Ua(e,t,r,o),t.child):(yi(e,t,o),fs(e,t,o))}function qa(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Fl(i)||void 0!==i.defaultProps||null!==n.compare?((e=zl(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ka(e,t,i,r,o))}if(i=e.child,!ps(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Qn)(a,r)&&e.ref===t.ref)return fs(e,t,o)}return t.flags|=1,(e=Il(i,r)).ref=t.ref,e.return=t,t.child=e}function Ka(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Qn(i,r)&&e.ref===t.ref){if(Va=!1,t.pendingProps=r=i,!ps(e,o))return t.lanes=e.lanes,fs(e,t,o);0!==(131072&e.flags)&&(Va=!0)}}return Za(e,t,n,r,o)}function Qa(e,t,n){var r=t.pendingProps,o=r.children,i=0!==(2&t.stateNode._pendingVisibility),a=null!==e?e.memoizedState:null;if(Ja(e,t),"hidden"===r.mode||i){if(0!==(128&t.flags)){if(r=null!==a?a.baseLanes|n:n,null!==e){for(o=t.child=e.child,i=0;null!==o;)i=i|o.lanes|o.childLanes,o=o.sibling;t.childLanes=i&~r}else t.childLanes=0,t.child=null;return Ga(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Ga(e,t,null!==a?a.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Jo(0,null!==a?a.cachePool:null),null!==a?Co(t,a):Mo(),_o(t)}else null!==a?(Jo(0,a.cachePool),Co(t,a),jo(),t.memoizedState=null):(null!==e&&Jo(0,null),Mo(),jo());return Ua(e,t,o,n),t.child}function Ga(e,t,n,r){var o=Go();return o=null===o?null:{parent:Bo._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Jo(0,null),Mo(),_o(t),null!==e&&ks(e,t,r,!0),null}function Ja(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Za(e,t,n,r,o){return Ss(t),n=fi(e,t,n,r,void 0,o),r=gi(),null===e||Va?(Gr&&r&&$r(t),t.flags|=1,Ua(e,t,n,o),t.child):(yi(e,t,o),fs(e,t,o))}function Xa(e,t,n,r,o,i){return Ss(t),t.updateQueue=null,n=hi(t,r,n,o),pi(e),r=gi(),null===e||Va?(Gr&&r&&$r(t),t.flags|=1,Ua(e,t,n,i),t.child):(yi(e,t,i),fs(e,t,i))}function es(e,t,n,r,o){if(Ss(t),null===t.stateNode){var i=_r,a=n.contextType;"object"===typeof a&&null!==a&&(i=Es(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Aa,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},Ns(t),a=n.contextType,i.context="object"===typeof a&&null!==a?Es(a):_r,i.state=t.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(Na(t,n,a,r),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(a=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&Aa.enqueueReplaceState(i,i.state,null),Is(t,r,i,o),Fs(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=ja(n,s);i.props=l;var u=i.context,c=n.contextType;a=_r,"object"===typeof c&&null!==c&&(a=Es(c));var d=n.getDerivedStateFromProps;c="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s||u!==a)&&_a(t,i,r,a),Os=!1;var f=t.memoizedState;i.state=f,Is(t,r,i,o),Fs(),u=t.memoizedState,s||f!==u||Os?("function"===typeof d&&(Na(t,n,d,r),u=t.memoizedState),(l=Os||Pa(t,n,l,r,f,u,a))?(c||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,As(e,t),c=ja(n,a=t.memoizedProps),i.props=c,d=t.pendingProps,f=i.context,u=n.contextType,l=_r,"object"===typeof u&&null!==u&&(l=Es(u)),(u="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(a!==d||f!==l)&&_a(t,i,r,l),Os=!1,f=t.memoizedState,i.state=f,Is(t,r,i,o),Fs();var p=t.memoizedState;a!==d||f!==p||Os||null!==e&&null!==e.dependencies&&Ds(e.dependencies)?("function"===typeof s&&(Na(t,n,s,r),p=t.memoizedState),(c=Os||Pa(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Ds(e.dependencies))?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Ja(e,t),r=0!==(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,n,o)):Ua(e,t,n,o),t.memoizedState=i.state,e=t.child):e=fs(e,t,o),e}function ts(e,t,n,r){return oo(),t.flags|=256,Ua(e,t,n,r),t.child}var ns={dehydrated:null,treeContext:null,retryLane:0};function rs(e){return{baseLanes:e,cachePool:Zo()}}function os(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hu),e}function is(e,t,n){var r,o=t.pendingProps,i=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&Ro.current)),r&&(i=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(Gr){if(i?Po(t):jo(),Gr){var l,u=Qr;if(l=u){e:{for(l=u,u=Zr;8!==l.nodeType;){if(!u){u=null;break e}if(null===(l=sd(l.nextSibling))){u=null;break e}}u=l}null!==u?(t.memoizedState={dehydrated:u,treeContext:null!==Yr?{id:Hr,overflow:Wr}:null,retryLane:536870912},(l=Rl(18,null,null,0)).stateNode=u,l.return=t,t.child=l,Kr=t,Qr=null,l=!0):l=!1}l||eo(t)}if(null!==(u=t.memoizedState)&&null!==(u=u.dehydrated))return"$!"===u.data?t.lanes=16:t.lanes=536870912,null;To(t)}return u=o.children,o=o.fallback,i?(jo(),u=ss({mode:"hidden",children:u},i=t.mode),o=Bl(o,i,n,null),u.return=t,o.return=t,u.sibling=o,t.child=u,(i=t.child).memoizedState=rs(n),i.childLanes=os(e,r,n),t.memoizedState=ns,o):(Po(t),as(t,u))}if(null!==(l=e.memoizedState)&&null!==(u=l.dehydrated)){if(s)256&t.flags?(Po(t),t.flags&=-257,t=ls(e,t,n)):null!==t.memoizedState?(jo(),t.child=e.child,t.flags|=128,t=null):(jo(),i=o.fallback,u=t.mode,o=ss({mode:"visible",children:o.children},u),(i=Bl(i,u,n,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,ko(t,e.child,null,n),(o=t.child).memoizedState=rs(n),o.childLanes=os(e,r,n),t.memoizedState=ns,t=i);else if(Po(t),"$!"===u.data){if(r=u.nextSibling&&u.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(a(419))).stack="",o.digest=r,io({value:o,source:null,stack:null}),t=ls(e,t,n)}else if(Va||ks(e,t,n,!1),r=0!==(n&e.childLanes),Va||r){if(null!==(r=tu)){if(0!==(42&(o=n&-n)))o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;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:o=64;break;case 268435456:o=134217728;break;default:o=0}if(0!==(o=0!==(o&(r.suspendedLanes|n))?0:o)&&o!==l.retryLane)throw l.retryLane=o,Nr(e,o),_u(r,e,o),Wa}"$?"===u.data||Vu(),t=ls(e,t,n)}else"$?"===u.data?(t.flags|=128,t.child=e.child,t=sc.bind(null,e),u._reactRetry=t,t=null):(e=l.treeContext,Qr=sd(u.nextSibling),Kr=t,Gr=!0,Jr=null,Zr=!1,null!==e&&(zr[Br++]=Hr,zr[Br++]=Wr,zr[Br++]=Yr,Hr=e.id,Wr=e.overflow,Yr=t),(t=as(t,o.children)).flags|=4096);return t}return i?(jo(),i=o.fallback,u=t.mode,c=(l=e.child).sibling,(o=Il(l,{mode:"hidden",children:o.children})).subtreeFlags=31457280&l.subtreeFlags,null!==c?i=Il(c,i):(i=Bl(i,u,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,null===(u=e.child.memoizedState)?u=rs(n):(null!==(l=u.cachePool)?(c=Bo._currentValue,l=l.parent!==c?{parent:c,pool:c}:l):l=Zo(),u={baseLanes:u.baseLanes|n,cachePool:l}),i.memoizedState=u,i.childLanes=os(e,r,n),t.memoizedState=ns,o):(Po(t),e=(n=e.child).sibling,(n=Il(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function as(e,t){return(t=ss({mode:"visible",children:t},e.mode)).return=e,e.child=t}function ss(e,t){return Yl(e,t,0,null)}function ls(e,t,n){return ko(t,e.child,null,n),(e=as(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),ws(e.return,t,n)}function cs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function ds(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ua(e,t,r.children,n),0!==(2&(r=Ro.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&us(e,n,t);else if(19===e.tag)us(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}r&=1}switch(K(Ro,r),o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Fo(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),cs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Fo(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}cs(t,!0,n,null,i);break;case"together":cs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),du|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(ks(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Il(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Il(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ps(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ds(e))}function hs(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Va=!0;else{if(!ps(e,n)&&0===(128&t.flags))return Va=!1,function(e,t,n){switch(t.tag){case 3:X(t,t.stateNode.containerInfo),vs(t,Bo,e.memoizedState.cache),oo();break;case 27:case 5:te(t);break;case 4:X(t,t.stateNode.containerInfo);break;case 10:vs(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Po(t),t.flags|=128,null):0!==(n&t.child.childLanes)?is(e,t,n):(Po(t),null!==(e=fs(e,t,n))?e.sibling:null);Po(t);break;case 19:var o=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(ks(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return ds(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Ro,Ro.current),r)break;return null;case 22:case 23:return t.lanes=0,Qa(e,t,n);case 24:vs(t,Bo,e.memoizedState.cache)}return fs(e,t,n)}(e,t,n);Va=0!==(131072&e.flags)}else Va=!1,Gr&&0!==(1048576&t.flags)&&Ur(t,Lr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,o=r._init;if(r=o(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((o=r.$$typeof)===y){t.tag=11,t=$a(null,t,r,e,n);break e}if(o===w){t.tag=14,t=qa(null,t,r,e,n);break e}}throw t=M(r)||r,Error(a(306,t,""))}Fl(r)?(e=ja(r,e),t.tag=1,t=es(null,t,r,e,n)):(t.tag=0,t=Za(null,t,r,e,n))}return t;case 0:return Za(e,t,t.type,t.pendingProps,n);case 1:return es(e,t,r=t.type,o=ja(r,t.pendingProps),n);case 3:e:{if(X(t,t.stateNode.containerInfo),null===e)throw Error(a(387));var i=t.pendingProps;r=(o=t.memoizedState).element,As(e,t),Is(t,i,null,n);var s=t.memoizedState;if(i=s.cache,vs(t,Bo,i),i!==o.cache&&xs(t,[Bo],n,!0),Fs(),i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=ts(e,t,i,n);break e}if(i!==r){io(r=Tr(Error(a(424)),t)),t=ts(e,t,i,n);break e}for(Qr=sd(t.stateNode.containerInfo.firstChild),Kr=t,Gr=!0,Jr=null,Zr=!0,n=Do(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(oo(),i===r){t=fs(e,t,n);break e}Ua(e,t,i,n)}t=t.child}return t;case 26:return Ja(e,t),null===e?(n=gd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Gr||(n=t.type,e=t.pendingProps,(r=Qc(J.current).createElement(n))[Le]=t,r[ze]=e,$c(r,n,e),Je(r),t.stateNode=r):t.memoizedState=gd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Gr&&(r=t.stateNode=ud(t.type,t.pendingProps,J.current),Kr=t,Zr=!0,Qr=sd(r.firstChild)),r=t.pendingProps.children,null!==e||Gr?Ua(e,t,r,n):t.child=ko(t,null,r,n),Ja(e,t),t.child;case 5:return null===e&&Gr&&((o=r=Qr)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ue])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=sd(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,Zr))?(t.stateNode=r,Kr=t,Qr=sd(r.firstChild),Zr=!1,o=!0):o=!1),o||eo(t)),te(t),o=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,r=i.children,Zc(o,i)?r=null:null!==s&&Zc(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=fi(e,t,mi,null,null,n),Fd._currentValue=o),Ja(e,t),Ua(e,t,r,n),t.child;case 6:return null===e&&Gr&&((e=n=Qr)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=sd(e.nextSibling)))return null}return e}(n,t.pendingProps,Zr))?(t.stateNode=n,Kr=t,Qr=null,e=!0):e=!1),e||eo(t)),null;case 13:return is(e,t,n);case 4:return X(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):Ua(e,t,r,n),t.child;case 11:return $a(e,t,t.type,t.pendingProps,n);case 7:return Ua(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ua(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,vs(t,t.type,r.value),Ua(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ss(t),r=r(o=Es(o)),t.flags|=1,Ua(e,t,r,n),t.child;case 14:return qa(e,t,t.type,t.pendingProps,n);case 15:return Ka(e,t,t.type,t.pendingProps,n);case 19:return ds(e,t,n);case 22:return Qa(e,t,n);case 24:return Ss(t),r=Es(Bo),null===e?(null===(o=Go())&&(o=tu,i=Yo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},Ns(t),vs(t,Bo,o)):(0!==(e.lanes&n)&&(As(e,t),Is(t,null,null,n),Fs()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),vs(t,Bo,r)):(r=i.cache,vs(t,Bo,r),r!==o.cache&&xs(t,[Bo],n,!0))),Ua(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}var ms=$(null),gs=null,ys=null;function vs(e,t,n){K(ms,t._currentValue),t._currentValue=n}function bs(e){e._currentValue=ms.current,q(ms)}function ws(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xs(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var s=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),ws(i.return,n,e),r||(s=null);break e}i=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),ws(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function ks(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(0!==(524288&o.flags))i=!0;else if(0!==(262144&o.flags))break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=o.type;Kn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===Z.current){if(null===(s=o.alternate))throw Error(a(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(Fd):e=[Fd])}o=o.return}null!==e&&xs(t,e,n,r),t.flags|=262144}function Ds(e){for(e=e.firstContext;null!==e;){if(!Kn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ss(e){gs=e,ys=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Es(e){return Ms(gs,e)}function Cs(e,t){return null===gs&&Ss(e),Ms(e,t)}function Ms(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ys){if(null===e)throw Error(a(308));ys=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ys=ys.next=t;return n}var Os=!1;function Ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function As(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ps(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _s(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&eu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Pr(e),Ar(e,null,n),t}return Mr(e,r,t,n),Pr(e)}function js(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Te(e,n)}}function Ts(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Rs=!1;function Fs(){if(Rs){if(null!==$o)throw $o}}function Is(e,t,n,r){Rs=!1;var o=e.updateQueue;Os=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=-536870913&s.lane,p=f!==s.lane;if(p?(ru&f)===f:(r&f)===f){0!==f&&f===Uo&&(Rs=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var h=e,m=s;f=t;var g=n;switch(m.tag){case 1:if("function"===typeof(h=m.payload)){d=h.call(g,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(f="function"===typeof(h=m.payload)?h.call(g,d,f):h)||void 0===f)break e;d=P({},d,f);break e;case 2:Os=!0}}null!==(f=s.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=o.callbacks)?o.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(p=s).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),du|=a,e.lanes=a,e.memoizedState=d}}function Ls(e,t){if("function"!==typeof e)throw Error(a(191,e));e.call(t)}function zs(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ls(n[e],t)}function Bs(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){rc(t,t.return,s)}}function Ys(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n;try{s()}catch(u){rc(o,l,u)}}}r=r.next}while(r!==i)}}catch(u){rc(t,t.return,u)}}function Hs(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{zs(t,n)}catch(r){rc(e,e.return,r)}}}function Ws(e,t,n){n.props=ja(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){rc(e,t,r)}}function Vs(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var o=r;break;default:o=r}"function"===typeof n?e.refCleanup=n(o):n.current=o}}catch(i){rc(e,t,i)}}function Us(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(o){rc(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){rc(e,t,i)}else n.current=null}function $s(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){rc(e,e.return,o)}}function qs(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||Vc(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:h!==f&&Vc(e,t,p,h,r,f)}}return void gt(e,s,l,u,c,d,i,o);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||Vc(e,t,i,null,r,u)}for(o in r)if(i=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&Vc(e,t,o,i,r,u)}return t=l,n=s,r=h,void(null!=p?bt(e,!!n,p,!1):!!r!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Vc(e,t,l,null,r,o)}for(s in r)if(o=r[s],i=n[s],r.hasOwnProperty(s)&&(null!=o||null!=i))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(a(91));break;default:o!==i&&Vc(e,t,s,o,r,i)}return void wt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else Vc(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else Vc(e,t,u,p,r,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&Vc(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:Vc(e,t,c,p,r,h)}return;default:if(Ct(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&Uc(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||Uc(e,t,d,p,r,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&Vc(e,t,v,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||Vc(e,t,f,p,r,h)}(r,e.type,n,t),r[ze]=t}catch(o){rc(e,e.return,o)}}function Ks(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Qs(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ks(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==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 Gs(e,t,n){var r=e.tag;if(5===r||6===r)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)&&void 0!==n||null!==t.onclick||(t.onclick=Wc));else if(4!==r&&27!==r&&null!==(e=e.child))for(Gs(e,t,n),e=e.sibling;null!==e;)Gs(e,t,n),e=e.sibling}function Js(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(Js(e,t,n),e=e.sibling;null!==e;)Js(e,t,n),e=e.sibling}var Zs=!1,Xs=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),4&r&&Bs(5,n);break;case 1:if(yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(s){rc(n,n.return,s)}else{var o=ja(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){rc(n,n.return,l)}}64&r&&Hs(n),512&r&&Vs(n,n.return);break;case 3:if(yl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{zs(r,e)}catch(s){rc(n,n.return,s)}}break;case 26:yl(e,n),512&r&&Vs(n,n.return);break;case 27:case 5:yl(e,n),null===t&&4&r&&$s(n),512&r&&Vs(n,n.return);break;case 12:default:yl(e,n);break;case 13:yl(e,n),4&r&&cl(e,n);break;case 22:if(!(o=null!==n.memoizedState||Zs)){t=null!==t&&null!==t.memoizedState||Xs;var i=Zs,a=Xs;Zs=o,(Xs=t)&&!a?bl(e,n,0!==(8772&n.subtreeFlags)):yl(e,n),Zs=i,Xs=a}512&r&&("manual"===n.memoizedProps.mode?Vs(n,n.return):Us(n,n.return))}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&$e(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var al=null,sl=!1;function ll(e,t,n){for(n=n.child;null!==n;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(a){}switch(n.tag){case 26:Xs||Us(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Xs||Us(n,t);var r=al,o=sl;for(al=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);$e(n),al=r,sl=o;break;case 5:Xs||Us(n,t);case 6:o=al;var i=sl;if(al=null,ll(e,t,n),sl=i,null!==(al=o))if(sl)try{e=al,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(s){rc(n,t,s)}else try{al.removeChild(n.stateNode)}catch(s){rc(n,t,s)}break;case 18:null!==al&&(sl?(t=al,n=n.stateNode,8===t.nodeType?id(t.parentNode,n):1===t.nodeType&&id(t,n),gf(t)):id(al,n.stateNode));break;case 4:r=al,o=sl,al=n.stateNode.containerInfo,sl=!0,ll(e,t,n),al=r,sl=o;break;case 0:case 11:case 14:case 15:Xs||Ys(2,n,t),Xs||Ys(4,n,t),ll(e,t,n);break;case 1:Xs||(Us(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&Ws(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Xs||Us(n,t),Xs=(r=Xs)||null!==n.memoizedState,ll(e,t,n),Xs=r;break;default:ll(e,t,n)}}function cl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{gf(e)}catch(n){rc(t,t.return,n)}}function dl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(a(435,e.tag))}}(e);t.forEach((function(t){var r=lc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function fl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:case 5:al=l.stateNode,sl=!1;break e;case 3:case 4:al=l.stateNode.containerInfo,sl=!0;break e}l=l.return}if(null===al)throw Error(a(160));ul(i,s,o),al=null,sl=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}var pl=null;function hl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fl(t,e),ml(e),4&r&&(Ys(3,e,e.return),Bs(3,e),Ys(5,e,e.return));break;case 1:fl(t,e),ml(e),512&r&&(Xs||null===n||Us(n,n.return)),64&r&&Zs&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=pl;if(fl(t,e),ml(e),512&r&&(Xs||null===n||Us(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ue]||i[Le]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),$c(i,r,n),i[Le]=e,Je(i),r=i;break e;case"link":var s=Md("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}$c(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(s=Md("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}$c(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(a(468,r))}i[Le]=e,Je(i),r=i}e.stateNode=r}else Od(o,e.type,e.stateNode);else e.stateNode=kd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?Od(o,e.type,e.stateNode):kd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&qs(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){o=e.stateNode,i=e.memoizedProps;try{for(var u=o.firstChild;u;){var c=u.nextSibling,d=u.nodeName;u[Ue]||"HEAD"===d||"BODY"===d||"SCRIPT"===d||"STYLE"===d||"LINK"===d&&"stylesheet"===u.rel.toLowerCase()||o.removeChild(u),u=c}for(var f=e.type,p=o.attributes;p.length;)o.removeAttributeNode(p[0]);$c(o,f,i),o[Le]=e,o[ze]=i}catch(m){rc(e,e.return,m)}}case 5:if(fl(t,e),ml(e),512&r&&(Xs||null===n||Us(n,n.return)),32&e.flags){o=e.stateNode;try{kt(o,"")}catch(m){rc(e,e.return,m)}}4&r&&null!=e.stateNode&&qs(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(el=!0);break;case 6:if(fl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){rc(e,e.return,m)}}break;case 3:if(Cd=null,o=pl,pl=fd(t.containerInfo),fl(t,e),pl=o,ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{gf(t.containerInfo)}catch(m){rc(e,e.return,m)}el&&(el=!1,gl(e));break;case 4:r=pl,pl=fd(e.stateNode.containerInfo),fl(t,e),ml(e),pl=r;break;case 12:fl(t,e),ml(e);break;case 13:fl(t,e),ml(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bu=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 22:if(512&r&&(Xs||null===n||Us(n,n.return)),u=null!==e.memoizedState,c=null!==n&&null!==n.memoizedState,Zs=(d=Zs)||u,Xs=(f=Xs)||c,fl(t,e),Xs=f,Zs=d,ml(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=u?-2&t._visibility:1|t._visibility,u&&(t=Zs||Xs,null===n||c||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){c=n=t;try{if(o=c.stateNode,u)"function"===typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none";else{s=c.stateNode;var h=void 0!==(l=c.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;s.style.display=null==h||"boolean"===typeof h?"":(""+h).trim()}}catch(m){rc(c,c.return,m)}}}else if(6===t.tag){if(null===n){c=t;try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(m){rc(c,c.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,dl(e,n))));break;case 19:fl(t,e),ml(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,dl(e,r)));break;case 21:break;default:fl(t,e),ml(e)}}function ml(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Ks(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 27:var o=r.stateNode;Js(e,Qs(e),o);break;case 5:var i=r.stateNode;32&r.flags&&(kt(i,""),r.flags&=-33),Js(e,Qs(e),i);break;case 3:case 4:var s=r.stateNode.containerInfo;Gs(e,Qs(e),s);break;default:throw Error(a(161))}}}catch(l){rc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)ol(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ys(4,t,t.return),vl(t);break;case 1:Us(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&Ws(t,t.return,n),vl(t);break;case 26:case 27:case 5:Us(t,t.return),vl(t);break;case 22:Us(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:bl(o,i,n),Bs(4,i);break;case 1:if(bl(o,i,n),"function"===typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(u){rc(r,r.return,u)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Ls(l[o],s)}catch(u){rc(r,r.return,u)}}n&&64&a&&Hs(i),Vs(i,i.return);break;case 26:case 27:case 5:bl(o,i,n),n&&null===r&&4&a&&$s(i),Vs(i,i.return);break;case 12:default:bl(o,i,n);break;case 13:bl(o,i,n),n&&4&a&&cl(o,i);break;case 22:null===i.memoizedState&&bl(o,i,n),Vs(i,i.return)}t=t.sibling}}function wl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ho(n))}function xl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e))}function kl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:kl(e,t,n,r),2048&o&&Bs(9,t);break;case 3:kl(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ho(e)));break;case 12:if(2048&o){kl(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"===typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){rc(t,t.return,l)}}else kl(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,null!==t.memoizedState?4&i._visibility?kl(e,t,n,r):El(e,t):4&i._visibility?kl(e,t,n,r):(i._visibility|=4,Sl(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&o&&wl(t.alternate,t);break;case 24:kl(e,t,n,r),2048&o&&xl(t.alternate,t);break;default:kl(e,t,n,r)}}function Sl(e,t,n,r,o){for(o=o&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,s,l,o),Bs(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?4&c._visibility?Sl(i,a,s,l,o):El(i,a):(c._visibility|=4,Sl(i,a,s,l,o)),o&&2048&u&&wl(a.alternate,a);break;case 24:Sl(i,a,s,l,o),o&&2048&u&&xl(a.alternate,a);break;default:Sl(i,a,s,l,o)}t=t.sibling}}function El(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:El(n,r),2048&o&&wl(r.alternate,r);break;case 24:El(n,r),2048&o&&xl(r.alternate,r);break;default:El(n,r)}t=t.sibling}}var Cl=8192;function Ml(e){if(e.subtreeFlags&Cl)for(e=e.child;null!==e;)Ol(e),e=e.sibling}function Ol(e){switch(e.tag){case 26:Ml(e),e.flags&Cl&&null!==e.memoizedState&&function(e,t,n){if(null===Ad)throw Error(a(475));var r=Ad;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var o=yd(n.href),i=e.querySelector(vd(o));if(i)return null!==(e=i._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=_d.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=i,void Je(i);i=e.ownerDocument||e,n=bd(n),(o=cd.get(o))&&Sd(n,o),Je(i=i.createElement("link"));var s=i;s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),$c(i,"link",n),t.instance=i}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=_d.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(pl,e.memoizedState,e.memoizedProps);break;case 5:default:Ml(e);break;case 3:case 4:var t=pl;pl=fd(e.stateNode.containerInfo),Ml(e),pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=Cl,Cl=16777216,Ml(e),Cl=t):Ml(e))}}function Nl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Al(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,jl(r,e)}Nl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Al(e),2048&e.flags&&Ys(9,e,e.return);break;case 3:case 12:default:Al(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,_l(e)):Al(e)}}function _l(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,jl(r,e)}Nl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:Ys(8,t,t.return),_l(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,_l(t));break;default:_l(t)}e=e.sibling}}function jl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:Ys(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ho(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var o=(r=nl).sibling,i=r.return;if(il(r),r===n){nl=null;break e}if(null!==o){o.return=i,nl=o;break e}nl=i}}}function Tl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rl(e,t,n,r){return new Tl(e,t,n,r)}function Fl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Il(e,t){var n=e.alternate;return null===n?((n=Rl(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=31457280&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.refCleanup=e.refCleanup,n}function Ll(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zl(e,t,n,r,o,i){var s=0;if(r=e,"function"===typeof e)Fl(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,Q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case d:return Bl(n.children,o,i,t);case f:s=8,o|=24;break;case p:return(e=Rl(12,n,t,2|o)).elementType=p,e.lanes=i,e;case v:return(e=Rl(13,n,t,o)).elementType=v,e.lanes=i,e;case b:return(e=Rl(19,n,t,o)).elementType=b,e.lanes=i,e;case k:return Yl(n,o,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:case g:s=10;break e;case m:s=9;break e;case y:s=11;break e;case w:s=14;break e;case x:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Rl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Bl(e,t,n,r){return(e=Rl(7,e,r,t)).lanes=n,e}function Yl(e,t,n,r){(e=Rl(22,e,r,t)).elementType=k,e.lanes=n;var o={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=o._current;if(null===e)throw Error(a(456));if(0===(2&o._pendingVisibility)){var t=Nr(e,2);null!==t&&(o._pendingVisibility|=2,_u(t,e,2))}},attach:function(){var e=o._current;if(null===e)throw Error(a(456));if(0!==(2&o._pendingVisibility)){var t=Nr(e,2);null!==t&&(o._pendingVisibility&=-3,_u(t,e,2))}}};return e.stateNode=o,e}function Hl(e,t,n){return(e=Rl(6,e,null,t)).lanes=n,e}function Wl(e,t,n){return(t=Rl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vl(e){e.flags|=4}function Ul(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Nd(t)){if(null!==(t=No.current)&&((4194176&ru)===ru?null!==Ao:(62914560&ru)!==ru&&0===(536870912&ru)||t!==Ao))throw po=lo,so;e.flags|=8192}}function $l(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Ae():536870912,e.lanes|=t,mu|=t)}function ql(e,t){if(!Gr)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 r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Kl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=31457280&o.subtreeFlags,r|=31457280&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(qr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Kl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),bs(Bo),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ro(t)?Vl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Jr&&(Tu(Jr),Jr=null))),Kl(t),null;case 26:return n=t.memoizedState,null===e?(Vl(t),null!==n?(Kl(t),Ul(t,n)):(Kl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Vl(t),Kl(t),Ul(t,n)):(Kl(t),t.flags&=-16777217):(e.memoizedProps!==r&&Vl(t),Kl(t),t.flags&=-16777217),null;case 27:ne(t),n=J.current;var o=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Vl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Kl(t),null}e=Q.current,ro(t)?to(t):(e=ud(o,r,n),t.stateNode=e,Vl(t))}return Kl(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&Vl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Kl(t),null}if(e=Q.current,ro(t))to(t);else{switch(o=Qc(J.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=o.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?o.createElement(n,{is:r.is}):o.createElement(n)}}e[Le]=t,e[ze]=r;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&27!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch($c(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Vl(t)}}return Kl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&Vl(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=J.current,ro(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=Kr))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Le]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Hc(e.nodeValue,n)))||eo(t)}else(e=Qc(e).createTextNode(r))[Le]=t,t.stateNode=e}return Kl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=ro(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[Le]=t}else oo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Kl(t),o=!1}else null!==Jr&&(Tu(Jr),Jr=null),o=!0;if(!o)return 256&t.flags?(To(t),t):(To(t),null)}if(To(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool);var i=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),$l(t,t.updateQueue),Kl(t),null;case 4:return ee(),null===e&&_c(t.stateNode.containerInfo),Kl(t),null;case 10:return bs(t.type),Kl(t),null;case 19:if(q(Ro),null===(o=t.memoizedState))return Kl(t),null;if(r=0!==(128&t.flags),null===(i=o.rendering))if(r)ql(o,!1);else{if(0!==cu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Fo(e))){for(t.flags|=128,ql(o,!1),e=i.updateQueue,t.updateQueue=e,$l(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Ll(n,e),n=n.sibling;return K(Ro,1&Ro.current|2),t.child}e=e.sibling}null!==o.tail&&le()>wu&&(t.flags|=128,r=!0,ql(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Fo(i))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,$l(t,e),ql(o,!0),null===o.tail&&"hidden"===o.tailMode&&!i.alternate&&!Gr)return Kl(t),null}else 2*le()-o.renderingStartTime>wu&&536870912!==n&&(t.flags|=128,r=!0,ql(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=o.last)?e.sibling=i:t.child=i,o.last=i)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=le(),t.sibling=null,e=Ro.current,K(Ro,r?1&e|2:1&e),t):(Kl(t),null);case 22:case 23:return To(t),Oo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(Kl(t),6&t.subtreeFlags&&(t.flags|=8192)):Kl(t),null!==(n=t.updateQueue)&&$l(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&q(Qo),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bs(Bo),Kl(t),null;case 25:return null}throw Error(a(156,t.tag))}function Gl(e,t){switch(qr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bs(Bo),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(To(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));oo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return q(Ro),null;case 4:return ee(),null;case 10:return bs(t.type),null;case 22:case 23:return To(t),Oo(),null!==e&&q(Qo),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bs(Bo),null;default:return null}}function Jl(e,t){switch(qr(t),t.tag){case 3:bs(Bo),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:To(t);break;case 19:q(Ro);break;case 10:bs(t.type);break;case 22:case 23:To(t),Oo(),null!==e&&q(Qo);break;case 24:bs(Bo)}}var Zl={getCacheForType:function(e){var t=Es(Bo),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Xl="function"===typeof WeakMap?WeakMap:Map,eu=0,tu=null,nu=null,ru=0,ou=0,iu=null,au=!1,su=!1,lu=!1,uu=0,cu=0,du=0,fu=0,pu=0,hu=0,mu=0,gu=null,yu=null,vu=!1,bu=0,wu=1/0,xu=null,ku=null,Du=!1,Su=null,Eu=0,Cu=0,Mu=null,Ou=0,Nu=null;function Au(){if(0!==(2&eu)&&0!==ru)return ru&-ru;if(null!==A.T){return 0!==Uo?Uo:xc()}return Fe()}function Pu(){0===hu&&(hu=0===(536870912&ru)||Gr?Ne():536870912);var e=No.current;return null!==e&&(e.flags|=32),hu}function _u(e,t,n){(e===tu&&2===ou||null!==e.cancelPendingCommit)&&(Bu(e,0),Iu(e,ru,hu,!1)),_e(e,n),0!==(2&eu)&&e===tu||(e===tu&&(0===(2&eu)&&(fu|=n),4===cu&&Iu(e,ru,hu,!1)),mc(e))}function ju(e,t,n){if(0!==(6&eu))throw Error(a(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||Me(e,t),o=r?function(e,t){var n=eu;eu|=2;var r=Hu(),o=Wu();tu!==e||ru!==t?(xu=null,wu=le()+500,Bu(e,t)):su=Me(e,t);e:for(;;)try{if(0!==ou&&null!==nu){t=nu;var i=iu;t:switch(ou){case 1:ou=0,iu=null,Gu(e,t,i,1);break;case 2:if(uo(i)){ou=0,iu=null,Qu(t);break}t=function(){2===ou&&tu===e&&(ou=7),mc(e)},i.then(t,t);break e;case 3:ou=7;break e;case 4:ou=5;break e;case 7:uo(i)?(ou=0,iu=null,Qu(t)):(ou=0,iu=null,Gu(e,t,i,7));break;case 5:var s=null;switch(nu.tag){case 26:s=nu.memoizedState;case 5:case 27:var l=nu;if(!s||Nd(s)){ou=0,iu=null;var u=l.sibling;if(null!==u)nu=u;else{var c=l.return;null!==c?(nu=c,Ju(c)):nu=null}break t}}ou=0,iu=null,Gu(e,t,i,5);break;case 6:ou=0,iu=null,Gu(e,t,i,6);break;case 8:zu(),cu=6;break e;default:throw Error(a(462))}}qu();break}catch(d){Yu(e,d)}return ys=gs=null,A.H=r,A.A=o,eu=n,null!==nu?0:(tu=null,ru=0,Cr(),cu)}(e,t):Uu(e,t,!0),i=r;;){if(0===o){su&&!r&&Iu(e,t,0,!1);break}if(6===o)Iu(e,t,0,!au);else{if(n=e.current.alternate,i&&!Fu(n)){o=Uu(e,t,!1),i=!1;continue}if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=gu;var u=l.current.memoizedState.isDehydrated;if(u&&(Bu(l,s).flags|=256),2!==(s=Uu(l,s,!1))){if(lu&&!u){l.errorRecoveryDisabledLanes|=i,fu|=i,o=4;break e}i=yu,yu=o,null!==i&&Tu(i)}o=s}if(i=!1,2!==o)continue}}if(1===o){Bu(e,0),Iu(e,t,0,!0);break}e:{switch(r=e,o){case 0:case 1:throw Error(a(345));case 4:if((4194176&t)===t){Iu(r,t,hu,!au);break e}break;case 2:yu=null;break;case 3:case 5:break;default:throw Error(a(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(i=bu+300-le())){if(Iu(r,t,hu,!au),0!==Ce(r,0))break e;r.timeoutHandle=ed(Ru.bind(null,r,n,yu,xu,vu,t,hu,fu,mu,au,2,-0,0),i)}else Ru(r,n,yu,xu,vu,t,hu,fu,mu,au,0,-0,0)}}break}mc(e)}function Tu(e){null===yu?yu=e:yu.push.apply(yu,e)}function Ru(e,t,n,r,o,i,s,l,u,c,d,f,p){var h=t.subtreeFlags;if((8192&h||16785408===(16785408&h))&&(Ad={stylesheets:null,count:0,unsuspend:Pd},Ol(t),null!==(t=function(){if(null===Ad)throw Error(a(475));var e=Ad;return e.stylesheets&&0===e.count&&Td(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Td(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Xu.bind(null,e,n,r,o,s,l,u,1,f,p)),void Iu(e,i,s,!c);Xu(e,n,r,o,s,l,u,d,f,p)}function Fu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Kn(i(),o))return!1}catch(a){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}function Iu(e,t,n,r){t&=~pu,t&=~fu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-we(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&je(e,n,t)}function Lu(){return 0!==(6&eu)||(gc(0,!1),!1)}function zu(){if(null!==nu){if(0===ou)var e=nu.return;else ys=gs=null,vi(e=nu),mo=null,go=0,e=nu;for(;null!==e;)Jl(e.alternate,e),e=e.return;nu=null}}function Bu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,td(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),zu(),tu=e,nu=n=Il(e.current,null),ru=t,ou=0,iu=null,au=!1,su=Me(e,t),lu=!1,mu=hu=pu=fu=du=cu=0,yu=gu=null,vu=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-we(r),i=1<<o;t|=e[o],r&=~i}return uu=t,Cr(),n}function Yu(e,t){ei=null,A.H=Ea,t===ao?(t=ho(),ou=3):t===so?(t=ho(),ou=4):ou=t===Wa?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,iu=t,null===nu&&(cu=1,La(e,Tr(t,e.current)))}function Hu(){var e=A.H;return A.H=Ea,null===e?Ea:e}function Wu(){var e=A.A;return A.A=Zl,e}function Vu(){cu=4,au||(4194176&ru)!==ru&&null!==No.current||(su=!0),0===(134217727&du)&&0===(134217727&fu)||null===tu||Iu(tu,ru,hu,!1)}function Uu(e,t,n){var r=eu;eu|=2;var o=Hu(),i=Wu();tu===e&&ru===t||(xu=null,Bu(e,t)),t=!1;var a=cu;e:for(;;)try{if(0!==ou&&null!==nu){var s=nu,l=iu;switch(ou){case 8:zu(),a=6;break e;case 3:case 2:case 6:null===No.current&&(t=!0);var u=ou;if(ou=0,iu=null,Gu(e,s,l,u),n&&su){a=0;break e}break;default:u=ou,ou=0,iu=null,Gu(e,s,l,u)}}$u(),a=cu;break}catch(c){Yu(e,c)}return t&&e.shellSuspendCounter++,ys=gs=null,eu=r,A.H=o,A.A=i,null===nu&&(tu=null,ru=0,Cr()),a}function $u(){for(;null!==nu;)Ku(nu)}function qu(){for(;null!==nu&&!ae();)Ku(nu)}function Ku(e){var t=hs(e.alternate,e,uu);e.memoizedProps=e.pendingProps,null===t?Ju(e):nu=t}function Qu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xa(n,t,t.pendingProps,t.type,void 0,ru);break;case 11:t=Xa(n,t,t.pendingProps,t.type.render,t.ref,ru);break;case 5:vi(t);default:Jl(n,t),t=hs(n,t=nu=Ll(t,uu),uu)}e.memoizedProps=e.pendingProps,null===t?Ju(e):nu=t}function Gu(e,t,n,r){ys=gs=null,vi(t),mo=null,go=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&ks(t,n,o,!0),null!==(n=No.current)){switch(n.tag){case 13:return null===Ao?Vu():null===n.alternate&&0===cu&&(cu=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===lo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),oc(e,r,o)),!1;case 22:return n.flags|=65536,r===lo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),oc(e,r,o)),!1}throw Error(a(435,n.tag))}return oc(e,r,o),Vu(),!1}if(Gr)return null!==(t=No.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==Xr&&io(Tr(e=Error(a(422),{cause:r}),n))):(r!==Xr&&io(Tr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Tr(r,n),Ts(e,o=Ba(e.stateNode,r,o)),4!==cu&&(cu=2)),!1;var i=Error(a(520),{cause:r});if(i=Tr(i,n),null===gu?gu=[i]:gu.push(i),4!==cu&&(cu=2),null===t)return!0;r=Tr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Ts(n,e=Ba(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===ku||!ku.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,Ha(o=Ya(o),e,n,r),Ts(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,ru))return cu=1,La(e,Tr(n,e.current)),void(nu=null)}catch(i){if(null!==o)throw nu=o,i;return cu=1,La(e,Tr(n,e.current)),void(nu=null)}32768&t.flags?(Gr||1===r?e=!0:su||0!==(536870912&ru)?e=!1:(au=e=!0,(2===r||3===r||6===r)&&(null!==(r=No.current)&&13===r.tag&&(r.flags|=16384))),Zu(t,e)):Ju(t)}function Ju(e){var t=e;do{if(0!==(32768&t.flags))return void Zu(t,au);e=t.return;var n=Ql(t.alternate,t,uu);if(null!==n)return void(nu=n);if(null!==(t=t.sibling))return void(nu=t);nu=t=e}while(null!==t);0===cu&&(cu=5)}function Zu(e,t){do{var n=Gl(e.alternate,e);if(null!==n)return n.flags&=32767,void(nu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nu=e);nu=e=n}while(null!==e);cu=6,nu=null}function Xu(e,t,n,r,o,i,s,l,u,c){var d=A.T,f=H.p;try{H.p=2,A.T=null,function(e,t,n,r,o,i,s,l){do{tc()}while(null!==Su);if(0!==(6&eu))throw Error(a(327));var u=e.finishedWork;if(r=e.finishedLanes,null===u)return null;if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-we(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&je(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,r,c|=Er,i,s,l),e===tu&&(nu=tu=null,ru=0),0===(10256&u.subtreeFlags)&&0===(10256&u.flags)||Du||(Du=!0,Cu=c,Mu=n,function(e,t){oe(e,t)}(fe,(function(){return tc(),null}))),n=0!==(15990&u.flags),0!==(15990&u.subtreeFlags)||n?(n=A.T,A.T=null,i=H.p,H.p=2,s=eu,eu|=4,function(e,t){if(e=e.containerInfo,qc=Vd,er(e=Xn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===i&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kc={focusedElem:e,selectionRange:n},Vd=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(i=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=ja(n.type,o,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){rc(n,n.return,y)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ad(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}m=rl,rl=!1}(e,u),hl(u,e),tr(Kc,e.containerInfo),Vd=!!qc,Kc=qc=null,e.current=u,ol(e,u.alternate,u),se(),eu=s,H.p=i,A.T=n):e.current=u,Du?(Du=!1,Su=e,Eu=r):ec(e,c),c=e.pendingLanes,0===c&&(ku=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,e,void 0,128===(128&e.current.flags))}catch(t){}}(u.stateNode),mc(e),null!==t)for(o=e.onRecoverableError,u=0;u<t.length;u++)c=t[u],o(c.value,{componentStack:c.stack});0!==(3&Eu)&&tc(),c=e.pendingLanes,0!==(4194218&r)&&0!==(42&c)?e===Nu?Ou++:(Ou=0,Nu=e):Ou=0,gc(0,!1)}(e,t,n,r,f,o,i,s)}finally{A.T=d,H.p=f}}function ec(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ho(t)))}function tc(){if(null!==Su){var e=Su,t=Cu;Cu=0;var n=Re(Eu),r=A.T,o=H.p;try{if(H.p=32>n?32:n,A.T=null,null===Su)var i=!1;else{n=Mu,Mu=null;var s=Su,l=Eu;if(Su=null,Eu=0,0!==(6&eu))throw Error(a(331));var u=eu;if(eu|=4,Pl(s.current),Dl(s,s.current,l,n),eu=u,gc(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,s)}catch(c){}i=!0}return i}finally{H.p=o,A.T=r,ec(e,t)}}return!1}function nc(e,t,n){t=Tr(n,t),null!==(e=_s(e,t=Ba(e.stateNode,t,2),2))&&(_e(e,2),mc(e))}function rc(e,t,n){if(3===e.tag)nc(e,e,n);else for(;null!==t;){if(3===t.tag){nc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===ku||!ku.has(r))){e=Tr(n,e),null!==(r=_s(t,n=Ya(2),2))&&(Ha(n,r,t,e),_e(r,2),mc(r));break}}t=t.return}}function oc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Xl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(lu=!0,o.add(n),e=ic.bind(null,e,t,n),t.then(e,e))}function ic(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tu===e&&(ru&n)===n&&(4===cu||3===cu&&(62914560&ru)===ru&&300>le()-bu?0===(2&eu)&&Bu(e,0):pu|=n,mu===ru&&(mu=0)),mc(e)}function ac(e,t){0===t&&(t=Ae()),null!==(e=Nr(e,t))&&(_e(e,t),mc(e))}function sc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ac(e,n)}function lc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),ac(e,n)}var uc=null,cc=null,dc=!1,fc=!1,pc=!1,hc=0;function mc(e){var t;e!==cc&&null===e.next&&(null===cc?uc=cc=e:cc=cc.next=e),fc=!0,dc||(dc=!0,t=yc,rd((function(){0!==(6&eu)?oe(ce,t):t()})))}function gc(e,t){if(!pc&&fc){pc=!0;do{for(var n=!1,r=uc;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-we(42|e)+1)-1,i=201326677&(i&=o&~(a&~s))?201326677&i|1:i?2|i:0}0!==i&&(n=!0,wc(r,i))}else i=ru,0===(3&(i=Ce(r,r===tu?i:0)))||Me(r,i)||(n=!0,wc(r,i));r=r.next}}while(n);pc=!1}}function yc(){fc=dc=!1;var e=0;0!==hc&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Xc&&(Xc=e,!0);return Xc=null,!1}()&&(e=hc),hc=0);for(var t=le(),n=null,r=uc;null!==r;){var o=r.next,i=vc(r,t);0===i?(r.next=null,null===n?uc=o:n.next=o,null===o&&(cc=n)):(n=r,(0!==e||0!==(3&i))&&(fc=!0)),r=o}gc(e,!1)}function vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-we(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=ru,n=Ce(e,e===(t=tu)?n:0),r=e.callbackNode,0===n||e===t&&2===ou||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ie(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Me(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ie(r),Re(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=bc.bind(null,e),n=oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ie(r),e.callbackPriority=2,e.callbackNode=null,2}function bc(e,t){var n=e.callbackNode;if(tc()&&e.callbackNode!==n)return null;var r=ru;return 0===(r=Ce(e,e===tu?r:0))?null:(ju(e,r,t),vc(e,le()),null!=e.callbackNode&&e.callbackNode===n?bc.bind(null,e):null)}function wc(e,t){if(tc())return null;ju(e,t,!0)}function xc(){return 0===hc&&(hc=Ne()),hc}function kc(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Nt(""+e)}function Dc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Sc=0;Sc<xr.length;Sc++){var Ec=xr[Sc];kr(Ec.toLowerCase(),"on"+(Ec[0].toUpperCase()+Ec.slice(1)))}kr(pr,"onAnimationEnd"),kr(hr,"onAnimationIteration"),kr(mr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(gr,"onTransitionRun"),kr(yr,"onTransitionStart"),kr(vr,"onTransitionCancel"),kr(br,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cc="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(" "),Mc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cc));function Oc(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(c){Ta(c)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(c){Ta(c)}o.currentTarget=null,i=l}}}}function Nc(e,t){var n=t[Ye];void 0===n&&(n=t[Ye]=new Set);var r=e+"__bubble";n.has(r)||(jc(t,e,2,!1),n.add(r))}function Ac(e,t,n){var r=0;t&&(r|=4),jc(n,e,r,t)}var Pc="_reactListening"+Math.random().toString(36).slice(2);function _c(e){if(!e[Pc]){e[Pc]=!0,Ze.forEach((function(t){"selectionchange"!==t&&(Mc.has(t)||Ac(t,!1,e),Ac(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Pc]||(t[Pc]=!0,Ac("selectionchange",!1,t))}}function jc(e,t,n,r){switch(Jd(t)){case 2:var o=Ud;break;case 8:o=$d;break;default:o=qd}n=o.bind(null,t,n,e),o=void 0,!Lt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Tc(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=qe(s)))return;if(5===(l=a.tag)||6===l||26===l||27===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Ft((function(){var r=i,o=Pt(n),a=[];e:{var s=wr.get(e);if(void 0!==s){var l=Zt,u=e;switch(e){case"keypress":if(0===Vt(n))break e;case"keydown":case"keyup":l=hn;break;case"focusin":u="focus",l=on;break;case"focusout":u="blur",l=on;break;case"beforeblur":case"afterblur":l=on;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=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=gn;break;case pr:case hr:case mr:l=an;break;case br:l=yn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=sn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=mn;break;case"toggle":case"beforetoggle":l=bn}var c=0!==(4&t),d=!c&&("scroll"===e||"scrollend"===e),f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var m=h;if(p=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===p||null===f||null!=(m=It(h,f))&&c.push(Rc(h,m,p)),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===At||!(u=n.relatedTarget||n.fromElement)||!qe(u)&&!u[Be])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?qe(u):null)&&(d=I(u),c=u.tag,u!==d||5!==c&&27!==c&&6!==c)&&(u=null)):(l=null,u=r),l!==u)){if(c=nn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=mn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:Qe(l),p=null==u?s:Qe(u),(s=new c(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,qe(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Ic(p))h++;for(p=0,m=f;m;m=Ic(m))p++;for(;0<h-p;)c=Ic(c),h--;for(;0<p-h;)f=Ic(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Ic(c),f=Ic(f)}c=null}else c=null;null!==l&&Lc(a,s,l,c,!1),null!==u&&null!==d&&Lc(a,d,u,c,!0)}if("select"===(l=(s=r?Qe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=In;else if(Pn(s))if(Ln)g=qn;else{g=Un;var y=Vn}else!(l=s.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Ct(r.elementType)&&(g=In):g=$n;switch(g&&(g=g(e,r))?_n(a,g,n,o):(y&&y(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&vt(s,"number",s.value)),y=r?Qe(r):window,e){case"focusin":(Pn(y)||"true"===y.contentEditable)&&(rr=y,or=r,ir=null);break;case"focusout":ir=or=rr=null;break;case"mousedown":ar=!0;break;case"contextmenu":case"mouseup":case"dragend":ar=!1,sr(a,n,o);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":sr(a,n,o)}var v;if(xn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Nn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Sn&&"ko"!==n.locale&&(Nn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Nn&&(v=Wt()):(Yt="value"in(Bt=o)?Bt.value:Bt.textContent,Nn=!0)),0<(y=Fc(r,b)).length&&(b=new ln(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=On(n))&&(b.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return On(t);case"keypress":return 32!==t.which?null:(Cn=!0,En);case"textInput":return(e=t.data)===En&&Cn?null:e;default:return null}}(e,n):function(e,t){if(Nn)return"compositionend"===e||!xn&&Mn(e,t)?(e=Wt(),Ht=Yt=Bt=null,Nn=!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 Sn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Fc(r,"onBeforeInput")).length&&(y=new ln("onBeforeInput","beforeinput",null,n,o),a.push({event:y,listeners:b}),y.data=v)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=kc((o[ze]||null).action),a=r.submitter;a&&null!==(t=(t=a[ze]||null)?kc(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new Zt("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==hc){var e=a?Dc(o,a):new FormData(o);da(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"===typeof i&&(s.preventDefault(),e=a?Dc(o,a):new FormData(o),da(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Oc(a,t)}))}function Rc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Fc(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=It(e,n))&&r.unshift(Rc(e,o,i)),null!=(o=It(e,t))&&r.push(Rc(e,o,i))),e=e.return}return r}function Ic(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Lc(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=It(n,i))&&a.unshift(Rc(n,u,l)):o||null!=(u=It(n,i))&&a.push(Rc(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var zc=/\r\n?/g,Bc=/\u0000|\uFFFD/g;function Yc(e){return("string"===typeof e?e:""+e).replace(zc,"\n").replace(Bc,"")}function Hc(e,t){return t=Yc(t),Yc(e)===t}function Wc(){}function Vc(e,t,n,r,o,i){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||kt(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&kt(e,""+r);break;case"className":st(e,"class",r);break;case"tabIndex":st(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":st(e,n,r);break;case"style":Et(e,r,i);break;case"data":if("object"!==t){st(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Nt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof i&&("formAction"===n?("input"!==t&&Vc(e,t,"name",o.name,o,null),Vc(e,t,"formEncType",o.formEncType,o,null),Vc(e,t,"formMethod",o.formMethod,o,null),Vc(e,t,"formTarget",o.formTarget,o,null)):(Vc(e,t,"encType",o.encType,o,null),Vc(e,t,"method",o.method,o,null),Vc(e,t,"target",o.target,o,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=Nt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"onScroll":null!=r&&Nc("scroll",e);break;case"onScrollEnd":null!=r&&Nc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=Nt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Nc("beforetoggle",e),Nc("toggle",e),at(e,"popover",r);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":at(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&at(e,n=Mt.get(n)||n,r)}}function Uc(e,t,n,r,o,i){switch(n){case"style":Et(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"===typeof r?kt(e,r):("number"===typeof r||"bigint"===typeof r)&&kt(e,""+r);break;case"onScroll":null!=r&&Nc("scroll",e);break;case"onScrollEnd":null!=r&&Nc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Wc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Xe.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"===typeof(i=null!=(i=e[ze]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):at(e,n,r):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function $c(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nc("error",e),Nc("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Vc(e,t,r,s,n,null)}}return i&&Vc(e,t,"srcSet",n.srcSet,n,null),void(o&&Vc(e,t,"src",n.src,n,null));case"input":Nc("invalid",e);var l=r=s=i=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:Vc(e,t,o,d,n,null)}}return yt(e,r,l,u,c,s,i,!1),void dt(e);case"select":for(i in Nc("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:Vc(e,t,i,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?bt(e,!!o,t,!1):null!=n&&bt(e,!!o,n,!0));case"textarea":for(s in Nc("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:Vc(e,t,s,l,n,null)}return xt(e,o,i,r),void dt(e);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))if("selected"===u)e.selected=o&&"function"!==typeof o&&"symbol"!==typeof o;else Vc(e,t,u,o,n,null);return;case"dialog":Nc("cancel",e),Nc("close",e);break;case"iframe":case"object":Nc("load",e);break;case"video":case"audio":for(o=0;o<Cc.length;o++)Nc(Cc[o],e);break;case"image":Nc("error",e),Nc("load",e);break;case"details":Nc("toggle",e);break;case"embed":case"source":case"link":Nc("error",e),Nc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:Vc(e,t,c,o,n,null)}return;default:if(Ct(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&Uc(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&Vc(e,t,l,o,n,null))}var qc=null,Kc=null;function Qc(e){return 9===e.nodeType?e:e.ownerDocument}function Gc(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jc(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Zc(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Xc=null;var ed="function"===typeof setTimeout?setTimeout:void 0,td="function"===typeof clearTimeout?clearTimeout:void 0,nd="function"===typeof Promise?Promise:void 0,rd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nd?function(e){return nd.resolve(null).then(e).catch(od)}:ed;function od(e){setTimeout((function(){throw e}))}function id(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void gf(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);gf(t)}function ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ad(n),$e(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function sd(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||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function ld(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}function ud(e,t,n){switch(t=Qc(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}var cd=new Map,dd=new Set;function fd(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var pd=H.d;H.d={f:function(){var e=pd.f(),t=Lu();return e||t},r:function(e){var t=Ke(e);null!==t&&5===t.tag&&"form"===t.type?pa(t):pd.r(e)},D:function(e){pd.D(e),md("dns-prefetch",e,null)},C:function(e,t){pd.C(e,t),md("preconnect",e,t)},L:function(e,t,n){pd.L(e,t,n);var r=hd;if(r&&e&&t){var o='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(o+='[imagesizes="'+mt(n.imageSizes)+'"]')):o+='[href="'+mt(e)+'"]';var i=o;switch(t){case"style":i=yd(e);break;case"script":i=wd(e)}cd.has(i)||(e=P({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),cd.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(vd(i))||"script"===t&&r.querySelector(xd(i))||($c(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}},m:function(e,t){pd.m(e,t);var n=hd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=wd(e)}if(!cd.has(i)&&(e=P({rel:"modulepreload",href:e},t),cd.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(xd(i)))return}$c(r=n.createElement("link"),"link",e),Je(r),n.head.appendChild(r)}}},X:function(e,t){pd.X(e,t);var n=hd;if(n&&e){var r=Ge(n).hoistableScripts,o=wd(e),i=r.get(o);i||((i=n.querySelector(xd(o)))||(e=P({src:e,async:!0},t),(t=cd.get(o))&&Ed(e,t),Je(i=n.createElement("script")),$c(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){pd.S(e,t,n);var r=hd;if(r&&e){var o=Ge(r).hoistableStyles,i=yd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(vd(i)))s.loading=5;else{e=P({rel:"stylesheet",href:e,"data-precedence":t},n),(n=cd.get(i))&&Sd(e,n);var l=a=r.createElement("link");Je(l),$c(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){s.loading|=1})),l.addEventListener("error",(function(){s.loading|=2})),s.loading|=4,Dd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){pd.M(e,t);var n=hd;if(n&&e){var r=Ge(n).hoistableScripts,o=wd(e),i=r.get(o);i||((i=n.querySelector(xd(o)))||(e=P({src:e,async:!0,type:"module"},t),(t=cd.get(o))&&Ed(e,t),Je(i=n.createElement("script")),$c(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var hd="undefined"===typeof document?null:document;function md(e,t,n){var r=hd;if(r&&"string"===typeof t&&t){var o=mt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"===typeof n&&(o+='[crossorigin="'+n+'"]'),dd.has(o)||(dd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&($c(t=r.createElement("link"),"link",e),Je(t),r.head.appendChild(t)))}}function gd(e,t,n,r){var o,i,s,l,u=(u=J.current)?fd(u):null;if(!u)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=yd(n.href),(r=(n=Ge(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=yd(n.href);var c=Ge(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(vd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),cd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},cd.set(e,n),c||(o=u,i=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",(function(){return l.loading|=1})),i.addEventListener("error",(function(){return l.loading|=2})),$c(i,"link",s),Je(i),o.head.appendChild(i))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=wd(n),(r=(n=Ge(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function yd(e){return'href="'+mt(e)+'"'}function vd(e){return'link[rel="stylesheet"]['+e+"]"}function bd(e){return P({},e,{"data-precedence":e.precedence,precedence:null})}function wd(e){return'[src="'+mt(e)+'"]'}function xd(e){return"script[async]"+e}function kd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Je(r),r;var o=P({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Je(r=(e.ownerDocument||e).createElement("style")),$c(r,"style",o),Dd(r,n.precedence,e),t.instance=r;case"stylesheet":o=yd(n.href);var i=e.querySelector(vd(o));if(i)return t.state.loading|=4,t.instance=i,Je(i),i;r=bd(n),(o=cd.get(o))&&Sd(r,o),Je(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),$c(i,"link",r),t.state.loading|=4,Dd(i,n.precedence,e),t.instance=i;case"script":return i=wd(n.src),(o=e.querySelector(xd(i)))?(t.instance=o,Je(o),o):(r=n,(o=cd.get(i))&&Ed(r=P({},n),o),Je(o=(e=e.ownerDocument||e).createElement("script")),$c(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Dd(r,n.precedence,e));return t.instance}function Dd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Sd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Ed(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var Cd=null;function Md(e,t,n){if(null===Cd){var r=new Map,o=Cd=new Map;o.set(n,r)}else(r=(o=Cd).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ue]||i[Le]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function Od(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Nd(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Ad=null;function Pd(){}function _d(){if(this.count--,0===this.count)if(this.stylesheets)Td(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var jd=null;function Td(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,jd=new Map,t.forEach(Rd,e),jd=null,_d.call(e))}function Rd(e,t){if(!(4&t.state.loading)){var n=jd.get(e);if(n)var r=n.get(null);else{n=new Map,jd.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=_d.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var Fd={$$typeof:g,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function Id(e,t,n,r,o,i,a,s){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pe(0),this.hiddenUpdates=Pe(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Ld(e,t,n,r,o,i,a,s,l,u,c,d){return e=new Id(e,t,n,a,s,l,u,d),t=1,!0===i&&(t|=24),i=Rl(3,null,null,t),e.current=i,i.stateNode=e,(t=Yo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Ns(i),e}function zd(e){return e?e=_r:_r}function Bd(e,t,n,r,o,i){o=zd(o),null===r.context?r.context=o:r.pendingContext=o,(r=Ps(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=_s(e,r,t))&&(_u(n,0,t),js(n,e,t))}function Yd(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Hd(e,t){Yd(e,t),(e=e.alternate)&&Yd(e,t)}function Wd(e){if(13===e.tag){var t=Nr(e,67108864);null!==t&&_u(t,0,67108864),Hd(e,67108864)}}var Vd=!0;function Ud(e,t,n,r){var o=A.T;A.T=null;var i=H.p;try{H.p=2,qd(e,t,n,r)}finally{H.p=i,A.T=o}}function $d(e,t,n,r){var o=A.T;A.T=null;var i=H.p;try{H.p=8,qd(e,t,n,r)}finally{H.p=i,A.T=o}}function qd(e,t,n,r){if(Vd){var o=Kd(r);if(null===o)Tc(e,t,r,Qd,n),sf(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Xd=lf(Xd,e,t,n,r,o),!0;case"dragenter":return ef=lf(ef,e,t,n,r,o),!0;case"mouseover":return tf=lf(tf,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return nf.set(i,lf(nf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,rf.set(i,lf(rf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(sf(e,r),4&t&&-1<af.indexOf(e)){for(;null!==o;){var i=Ke(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Ee(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-we(a);s.entanglements[1]|=l,a&=~l}mc(i),0===(6&eu)&&(wu=le()+500,gc(0,!1))}}break;case 13:null!==(s=Nr(i,2))&&_u(s,0,2),Lu(),Hd(i,2)}if(null===(i=Kd(r))&&Tc(e,t,r,Qd,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Tc(e,t,r,null,n)}}function Kd(e){return Gd(e=Pt(e))}var Qd=null;function Gd(e){if(Qd=null,null!==(e=qe(e))){var t=I(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=L(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 Qd=e,null}function Jd(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Zd=!1,Xd=null,ef=null,tf=null,nf=new Map,rf=new Map,of=[],af="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".split(" ");function sf(e,t){switch(e){case"focusin":case"focusout":Xd=null;break;case"dragenter":case"dragleave":ef=null;break;case"mouseover":case"mouseout":tf=null;break;case"pointerover":case"pointerout":nf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rf.delete(t.pointerId)}}function lf(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ke(t))&&Wd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function uf(e){var t=qe(e.target);if(null!==t){var n=I(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=L(n)))return e.blockedOn=t,void function(e,t){var n=H.p;try{return H.p=e,t()}finally{H.p=n}}(e.priority,(function(){if(13===n.tag){var e=Au(),t=Nr(n,e);null!==t&&_u(t,0,e),Hd(n,e)}}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function cf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kd(e.nativeEvent);if(null!==n)return null!==(t=Ke(n))&&Wd(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);At=r,n.target.dispatchEvent(r),At=null,t.shift()}return!0}function df(e,t,n){cf(e)&&n.delete(t)}function ff(){Zd=!1,null!==Xd&&cf(Xd)&&(Xd=null),null!==ef&&cf(ef)&&(ef=null),null!==tf&&cf(tf)&&(tf=null),nf.forEach(df),rf.forEach(df)}function pf(e,t){e.blockedOn===t&&(e.blockedOn=null,Zd||(Zd=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,ff)))}var hf=null;function mf(e){hf!==e&&(hf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){hf===e&&(hf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!==typeof r){if(null===Gd(r||n))continue;break}var i=Ke(n);null!==i&&(e.splice(t,3),t-=3,da(i,{pending:!0,data:o,method:n.method,action:r},r,o))}})))}function gf(e){function t(t){return pf(t,e)}null!==Xd&&pf(Xd,e),null!==ef&&pf(ef,e),null!==tf&&pf(tf,e),nf.forEach(t),rf.forEach(t);for(var n=0;n<of.length;n++){var r=of[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<of.length&&null===(n=of[0]).blockedOn;)uf(n),null===n.blockedOn&&of.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[ze]||null;if("function"===typeof i)a||mf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[ze]||null)s=a.formAction;else if(null!==Gd(o))continue}else s=a.action;"function"===typeof s?n[r+1]=s:(n.splice(r,3),r-=3),mf(n)}}}function yf(e){this._internalRoot=e}function vf(e){this._internalRoot=e}vf.prototype.render=yf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Bd(t.current,Au(),e,t,null,null)},vf.prototype.unmount=yf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tc(),Bd(e.current,2,null,e,null,null),Lu(),t[Be]=null}},vf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<of.length&&0!==t&&t<of[n].priority;n++);of.splice(n,0,e),0===n&&uf(e)}};var bf=o.version;if("19.0.0"!==bf)throw Error(a(527,bf,"19.0.0"));H.findDOMNode=function(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 e=function(e){var t=e.alternate;if(!t){if(null===(t=I(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return z(o),e;if(i===r)return z(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?B(e):null)?null:e.stateNode};var wf={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:A,findFiberByHostInstance:qe,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var xf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xf.isDisabled&&xf.supportsFiber)try{ye=xf.inject(wf),ve=xf}catch(Df){}}t.createRoot=function(e,t){if(!s(e))throw Error(a(299));var n=!1,r="",o=Ra,i=Fa,l=Ia;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Ld(e,1,!1,null,0,n,r,o,i,l,0,null),e[Be]=t.current,_c(8===e.nodeType?e.parentNode:e),new yf(t)},t.hydrateRoot=function(e,t,n){if(!s(e))throw Error(a(299));var r=!1,o="",i=Ra,l=Fa,u=Ia,c=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(u=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(c=n.formState)),(t=Ld(e,1,!0,t,0,r,o,i,l,u,0,c)).context=zd(null),n=t.current,(o=Ps(r=Au())).callback=null,_s(n,o,r),t.current.lanes=r,_e(t,r),mc(t),e[Be]=t.current,_c(e),new vf(t)},t.version="19.0.0"},6672:(e,t,n)=>{"use strict";var r=n(5043);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function i(){}var a={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin),o="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=u(t.as,t.crossOrigin);a.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},4391:(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(t){console.error(t)}}(),e.exports=n(7004)},7950:(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(t){console.error(t)}}(),e.exports=n(6672)},2799:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4288:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function S(e,t,r,o,i,a){return r=a.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:a}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function M(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 O(){}function N(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return N((c=e._init)(e._payload),t,o,i,a)}}if(c)return a=a(e),c=""===i?"."+M(e,0):i,x(a)?(o="",null!=c&&(o=c.replace(C,"$&/")+"/"),N(a,t,o,"",(function(e){return e}))):null!=a&&(E(a)&&(l=a,u=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(C,"$&/")+"/")+c,a=S(l.type,u,void 0,0,0,l.props)),t.push(a)),1;c=0;var d,h=""===i?".":i+":";if(x(e))for(var m=0;m<e.length;m++)c+=N(i=e[m],t,o,s=h+M(i,m),a);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=p&&d[p]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)c+=N(i=i.value,t,o,s=h+M(i,m++),a);else if("object"===s){if("function"===typeof e.then)return N(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(O,O):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,a);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 c}function A(e,t,n){if(null==e)return e;var r=[],o=0;return N(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(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 _="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function j(){}t.Children={map:A,forEach:function(e,t,n){A(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return A(e,(function(){t++})),t},toArray:function(e){return A(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(o=""+t.key),t)!D.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return S(e.type,o,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)D.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return S(e,i,void 0,0,0,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),o=k.S;null!==o&&o(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(j,_)}catch(i){_(i)}finally{k.T=t}},t.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},t.use=function(e){return k.H.use(e)},t.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},t.useCallback=function(e,t){return k.H.useCallback(e,t)},t.useContext=function(e){return k.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return k.H.useEffect(e,t)},t.useId=function(){return k.H.useId()},t.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return k.H.useMemo(e,t)},t.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},t.useRef=function(e){return k.H.useRef(e)},t.useState=function(e){return k.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return k.H.useTransition()},t.version="19.0.0"},5043:(e,t,n)=>{"use strict";e.exports=n(4288)},579:(e,t,n)=>{"use strict";e.exports=n(2799)},5896:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function x(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,P();else{var t=r(c);null!==t&&_(x,t.startTime-e)}}var k,D=!1,S=-1,E=5,C=-1;function M(){return!(t.unstable_now()-C<E)}function O(){if(D){var e=t.unstable_now();C=e;var n=!0;try{e:{m=!1,g&&(g=!1,v(S),S=-1),h=!0;var i=p;try{t:{for(w(e),f=r(u);null!==f&&!(f.expirationTime>e&&M());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){f.callback=s,w(e),n=!0;break t}f===r(u)&&o(u),w(e)}else o(u);f=r(u)}if(null!==f)n=!0;else{var l=r(c);null!==l&&_(x,l.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?k():D=!1}}}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=O,k=function(){A.postMessage(null)}}else k=function(){y(O,0)};function P(){D||(D=!0,k())}function _(e,n){S=y((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(){m||h||(m=!0,P())},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"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=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=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(v(S),S=-1):g=!0,_(x,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,P())),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},8853:(e,t,n)=>{"use strict";e.exports=n(5896)},8365:(e,t,n)=>{"use strict";var r=n(5043);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue},7237:(e,t,n)=>{"use strict";n(8365)},3693:(e,t,n)=>{var r=n(7736);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},9045:(e,t,n)=>{var r=n(3738).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7736:(e,t,n)=>{var r=n(3738).default,o=n(9045);e.exports=function(e){var t=o(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7051:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(9526);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},3986:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{A:()=>r})},9526:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}n.d(t,{A:()=>o})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".f2764878.chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="phcdc-members:";n.l=(r,o,i,a)=>{if(e[r])e[r].push(o);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var d=u[c];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+i){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[o];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{var e={792:0};n.f.j=(t,r)=>{var o=n.o(e,t)?e[t]:void 0;if(0!==o)if(o)r.push(o[2]);else{var i=new Promise(((n,r)=>o=e[t]=[n,r]));r.push(o[2]=i);var a=n.p+n.u(t),s=new Error;n.l(a,(r=>{if(n.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",s.name="ChunkLoadError",s.type=i,s.request=a,o[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var o,i,a=r[0],s=r[1],l=r[2],u=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(l)l(n)}for(t&&t(r);u<a.length;u++)i=a[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkphcdc_members=self.webpackChunkphcdc_members||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>ir,hasStandardBrowserEnv:()=>sr,hasStandardBrowserWebWorkerEnv:()=>lr,navigator:()=>ar,origin:()=>ur});var t,r=n(5043),o=n.t(r,2),i=n(4391),a=n(7950),s=n.t(a,2);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const u="popstate";function c(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function d(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function f(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,n,r){return void 0===n&&(n=null),l({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?m(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function m(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function g(e,n,r,o){void 0===o&&(o={});let{window:i=document.defaultView,v5Compat:a=!1}=o,s=i.history,d=t.Pop,m=null,g=y();function y(){return(s.state||{idx:null}).idx}function v(){d=t.Pop;let e=y(),n=null==e?null:e-g;g=e,m&&m({action:d,location:w.location,delta:n})}function b(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:h(e);return n=n.replace(/ $/,"%20"),c(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==g&&(g=0,s.replaceState(l({},s.state,{idx:g}),""));let w={get action(){return d},get location(){return e(i,s)},listen(e){if(m)throw new Error("A history only accepts one active listener");return i.addEventListener(u,v),m=e,()=>{i.removeEventListener(u,v),m=null}},createHref:e=>n(i,e),createURL:b,encodeLocation(e){let t=b(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,n){d=t.Push;let o=p(w.location,e,n);r&&r(o,e),g=y()+1;let l=f(o,g),u=w.createHref(o);try{s.pushState(l,"",u)}catch(c){if(c instanceof DOMException&&"DataCloneError"===c.name)throw c;i.location.assign(u)}a&&m&&m({action:d,location:w.location,delta:1})},replace:function(e,n){d=t.Replace;let o=p(w.location,e,n);r&&r(o,e),g=y();let i=f(o,g),l=w.createHref(o);s.replaceState(i,"",l),a&&m&&m({action:d,location:w.location,delta:0})},go:e=>s.go(e)};return w}var y;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(y||(y={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function v(e,t,n){return void 0===n&&(n="/"),b(e,t,n,!1)}function b(e,t,n,r){let o=j(("string"===typeof t?m(t):t).pathname||"/",n);if(null==o)return null;let i=w(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s){let e=_(o);a=A(i[s],e,r)}return a}function w(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let o=(e,o,i)=>{let a={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:o,route:e};a.relativePath.startsWith("/")&&(c(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=L([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(c(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),w(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:N(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of x(e.path))o(e,t,r);else o(e,t)})),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=x(r.join("/")),s=[];return s.push(...a.map((e=>""===e?i:[i,e].join("/")))),o&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const k=/^:[\w-]+$/,D=3,S=2,E=1,C=10,M=-2,O=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(O)&&(r+=M),t&&(r+=S),n.filter((e=>!O(e))).reduce(((e,t)=>e+(k.test(t)?D:""===t?E:C)),r)}function A(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},u),d=e.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=P({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:L([i,c.pathname]),pathnameBase:z(L([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=L([i,c.pathnameBase]))}return a}function P(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);d("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))");let i=new RegExp(o,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function _(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function j(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function T(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function F(e,t){let n=R(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function I(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=m(e):(o=l({},e),c(!o.pathname||!o.pathname.includes("?"),T("?","pathname","search",o)),c(!o.pathname||!o.pathname.includes("#"),T("#","pathname","hash",o)),c(!o.search||!o.search.includes("#"),T("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let u=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?m(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:B(r),hash:Y(o)}}(o,i),d=s&&"/"!==s&&s.endsWith("/"),f=(a||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!f||(u.pathname+="/"),u}const L=e=>e.join("/").replace(/\/\/+/g,"/"),z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function H(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const W=["post","put","patch","delete"],V=(new Set(W),["get",...W]);new Set(V),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}const $=r.createContext(null);const q=r.createContext(null);const K=r.createContext(null);const Q=r.createContext(null);const G=r.createContext({outlet:null,matches:[],isDataRoute:!1});const J=r.createContext(null);function Z(){return null!=r.useContext(Q)}function X(){return Z()||c(!1),r.useContext(Q).location}function ee(e){r.useContext(K).static||r.useLayoutEffect(e)}function te(){let{isDataRoute:e}=r.useContext(G);return e?function(){let{router:e}=fe(ce.UseNavigateStable),t=he(de.UseNavigateStable),n=r.useRef(!1);ee((()=>{n.current=!0}));let o=r.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,U({fromRouteId:t},o)))}),[e,t]);return o}():function(){Z()||c(!1);let e=r.useContext($),{basename:t,future:n,navigator:o}=r.useContext(K),{matches:i}=r.useContext(G),{pathname:a}=X(),s=JSON.stringify(F(i,n.v7_relativeSplatPath)),l=r.useRef(!1);ee((()=>{l.current=!0}));let u=r.useCallback((function(n,r){if(void 0===r&&(r={}),!l.current)return;if("number"===typeof n)return void o.go(n);let i=I(n,JSON.parse(s),a,"path"===r.relative);null==e&&"/"!==t&&(i.pathname="/"===i.pathname?t:L([t,i.pathname])),(r.replace?o.replace:o.push)(i,r.state,r)}),[t,o,s,a,e]);return u}()}function ne(){let{matches:e}=r.useContext(G),t=e[e.length-1];return t?t.params:{}}function re(e,t){let{relative:n}=void 0===t?{}:t,{future:o}=r.useContext(K),{matches:i}=r.useContext(G),{pathname:a}=X(),s=JSON.stringify(F(i,o.v7_relativeSplatPath));return r.useMemo((()=>I(e,JSON.parse(s),a,"path"===n)),[e,s,a,n])}function oe(e,n,o,i){Z()||c(!1);let{navigator:a}=r.useContext(K),{matches:s}=r.useContext(G),l=s[s.length-1],u=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let f,p=X();if(n){var h;let e="string"===typeof n?m(n):n;"/"===d||(null==(h=e.pathname)?void 0:h.startsWith(d))||c(!1),f=e}else f=p;let g=f.pathname||"/",y=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");y="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=v(e,{pathname:y});let w=ue(b&&b.map((e=>Object.assign({},e,{params:Object.assign({},u,e.params),pathname:L([d,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:L([d,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,o,i);return n&&w?r.createElement(Q.Provider,{value:{location:U({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:t.Pop}},w):w}function ie(){let e=function(){var e;let t=r.useContext(J),n=pe(de.UseRouteError),o=he(de.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[o]}(),t=H(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o};return r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,null)}const ae=r.createElement(ie,null);class se extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?r.createElement(G.Provider,{value:this.props.routeContext},r.createElement(J.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext($);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(G.Provider,{value:t},o)}function ue(e,t,n,o){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===o&&(o=null),null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=o)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,l=null==(i=n)?void 0:i.errors;if(null!=l){let e=s.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||c(!1),s=s.slice(0,Math.min(s.length,e+1))}let u=!1,d=-1;if(n&&o&&o.v7_partialHydration)for(let r=0;r<s.length;r++){let e=s[r];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(d=r),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){u=!0,s=d>=0?s.slice(0,d+1):[s[0]];break}}}return s.reduceRight(((e,o,i)=>{let a,c=!1,f=null,p=null;var h;n&&(a=l&&o.route.id?l[o.route.id]:void 0,f=o.route.errorElement||ae,u&&(d<0&&0===i?(h="route-fallback",!1||me[h]||(me[h]=!0),c=!0,p=null):d===i&&(c=!0,p=o.route.hydrateFallbackElement||null)));let m=t.concat(s.slice(0,i+1)),g=()=>{let t;return t=a?f:c?p:o.route.Component?r.createElement(o.route.Component,null):o.route.element?o.route.element:e,r.createElement(le,{match:o,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(o.route.ErrorBoundary||o.route.errorElement||0===i)?r.createElement(se,{location:n.location,revalidation:n.revalidation,component:f,error:a,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):g()}),null)}var ce=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ce||{}),de=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(de||{});function fe(e){let t=r.useContext($);return t||c(!1),t}function pe(e){let t=r.useContext(q);return t||c(!1),t}function he(e){let t=function(){let e=r.useContext(G);return e||c(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||c(!1),n.route.id}const me={};const ge={};const ye=(e,t,n)=>{var r;ge[r="\u26a0\ufe0f React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+n+"."]||(ge[r]=!0,console.warn(r))};function ve(e,t){void 0===(null==e?void 0:e.v7_startTransition)&&ye("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&t.v7_relativeSplatPath||ye("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(void 0===t.v7_fetcherPersist&&ye("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&ye("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&ye("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&ye("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}o.startTransition;function be(e){c(!1)}function we(e){let{basename:n="/",children:o=null,location:i,navigationType:a=t.Pop,navigator:s,static:l=!1,future:u}=e;Z()&&c(!1);let d=n.replace(/^\/*/,"/"),f=r.useMemo((()=>({basename:d,navigator:s,static:l,future:U({v7_relativeSplatPath:!1},u)})),[d,u,s,l]);"string"===typeof i&&(i=m(i));let{pathname:p="/",search:h="",hash:g="",state:y=null,key:v="default"}=i,b=r.useMemo((()=>{let e=j(p,d);return null==e?null:{location:{pathname:e,search:h,hash:g,state:y,key:v},navigationType:a}}),[d,p,h,g,y,v,a]);return null==b?null:r.createElement(K.Provider,{value:f},r.createElement(Q.Provider,{children:o,value:b}))}function xe(e){let{children:t,location:n}=e;return oe(ke(t),n)}new Promise((()=>{}));r.Component;function ke(e,t){void 0===t&&(t=[]);let n=[];return r.Children.forEach(e,((e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,ke(e.props.children,i));e.type!==be&&c(!1),e.props.index&&e.props.children&&c(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ke(e.props.children,i)),n.push(a)})),n}function De(){return De=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},De.apply(this,arguments)}function Se(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Ee=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(ak){}new Map;const Ce=o.startTransition;s.flushSync,o.useId;function Me(e){let{basename:t,children:n,future:o,window:i}=e,a=r.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),g((function(e,t){let{pathname:n,search:r,hash:o}=e.location;return p("",{pathname:n,search:r,hash:o},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:h(t)}),null,e)}({window:i,v5Compat:!0}));let s=a.current,[l,u]=r.useState({action:s.action,location:s.location}),{v7_startTransition:c}=o||{},d=r.useCallback((e=>{c&&Ce?Ce((()=>u(e))):u(e)}),[u,c]);return r.useLayoutEffect((()=>s.listen(d)),[s,d]),r.useEffect((()=>ve(o)),[o]),r.createElement(we,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:o})}const Oe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ae=r.forwardRef((function(e,t){let n,{onClick:o,relative:i,reloadDocument:a,replace:s,state:l,target:u,to:d,preventScrollReset:f,viewTransition:p}=e,m=Se(e,Ee),{basename:g}=r.useContext(K),y=!1;if("string"===typeof d&&Ne.test(d)&&(n=d,Oe))try{let e=new URL(window.location.href),t=d.startsWith("//")?new URL(e.protocol+d):new URL(d),n=j(t.pathname,g);t.origin===e.origin&&null!=n?d=n+t.search+t.hash:y=!0}catch(ak){}let v=function(e,t){let{relative:n}=void 0===t?{}:t;Z()||c(!1);let{basename:o,navigator:i}=r.useContext(K),{hash:a,pathname:s,search:l}=re(e,{relative:n}),u=s;return"/"!==o&&(u="/"===s?o:L([o,s])),i.createHref({pathname:u,search:l,hash:a})}(d,{relative:i}),b=function(e,t){let{target:n,replace:o,state:i,preventScrollReset:a,relative:s,viewTransition:l}=void 0===t?{}:t,u=te(),c=X(),d=re(e,{relative:s});return r.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==o?o:h(c)===h(d);u(e,{replace:n,state:i,preventScrollReset:a,relative:s,viewTransition:l})}}),[c,u,d,o,i,n,e,a,s,l])}(d,{replace:s,state:l,target:u,preventScrollReset:f,relative:i,viewTransition:p});return r.createElement("a",De({},m,{href:n||v,onClick:y||a?o:function(e){o&&o(e),e.defaultPrevented||b(e)},ref:t,target:u}))}));var Pe,_e;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Pe||(Pe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(_e||(_e={}));const je="SET_ALERT",Te="REMOVE_ALERT",Re="USER_LOADED",Fe="LOGIN_SUCCESS",Ie="LOGIN_FAIL",Le="LOGOUT",ze="GET_PROFILE",Be="CLEAR_PROFILE",Ye="GET_MEMBERS",He="CLEAR_MEMBER",We="GET_MEMBER_DATA",Ve="SET_PLANS",Ue="CLEAR_PLANS",$e="GET_PAYMENTS",qe="CLEAR_PAYMENTS",Ke="INCR_EMAIL_COUNT",Qe="RESET_EMAIL_COUNT",Ge=(e,t,n,r)=>o=>{o({type:je,payload:{title:t,errors:n,alertType:r,key:e}})},Je=e=>t=>{t({type:Te,payload:e})};var Ze=n(7051),Xe=n(3986);n(7237);const et=["initMapStateToProps","initMapDispatchToProps","initMergeProps"],tt=["reactReduxForwardedRef"];var nt=r.version.startsWith("19"),rt=Symbol.for(nt?"react.transitional.element":"react.element"),ot=Symbol.for("react.portal"),it=Symbol.for("react.fragment"),at=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),lt=Symbol.for("react.consumer"),ut=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),ft=Symbol.for("react.suspense_list"),pt=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),mt=ct,gt=pt;function yt(e){if("object"===typeof e&&null!==e){const{$$typeof:t}=e;switch(t){case rt:switch(e=e.type){case it:case st:case at:case dt:case ft:return e;default:switch(e=e&&e.$$typeof){case ut:case ct:case ht:case pt:case lt:return e;default:return t}}case ot:return t}}}function vt(e,t,n,r,o){let i,a,s,l,u,{areStatesEqual:c,areOwnPropsEqual:d,areStatePropsEqual:f}=o,p=!1;function h(o,p){const h=!d(p,a),m=!c(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a),u):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),u=n(s,l,a),u):m?function(){const t=e(i,a),r=!f(t,s);return s=t,r&&(u=n(s,l,a)),u}():u}return function(o,c){return p?h(o,c):(i=o,a=c,s=e(i,a),l=t(r,a),u=n(s,l,a),p=!0,u)}}function bt(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function wt(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function xt(e,t){return function(t,n){let{displayName:r}=n;const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=wt(e);let r=o(t,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=wt(r),r=o(t,n)),r},o}}function kt(e,t){return(n,r)=>{throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function Dt(e,t,n){return(0,Ze.A)((0,Ze.A)((0,Ze.A)({},n),e),t)}function St(e){e()}var Et={notify(){},get:()=>[]};function Ct(e,t){let n,r=Et,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function s(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){St((()=>{let t=e;for(;t;)t.callback(),t=t.next}))},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){r&&null!==e&&(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}())}function l(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=Et)}const u={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,s())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return u}var Mt=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),Ot=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),Nt=(()=>Mt||Ot?r.useLayoutEffect:r.useEffect)();function At(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function Pt(e,t){if(At(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!At(e[n[o]],t[n[o]]))return!1;return!0}var _t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},jt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Tt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Rt={[mt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[gt]:Tt};function Ft(e){return yt(e)===pt?Tt:Rt[e.$$typeof]||_t}var It=Object.defineProperty,Lt=Object.getOwnPropertyNames,zt=Object.getOwnPropertySymbols,Bt=Object.getOwnPropertyDescriptor,Yt=Object.getPrototypeOf,Ht=Object.prototype;function Wt(e,t){if("string"!==typeof t){if(Ht){const n=Yt(t);n&&n!==Ht&&Wt(e,n)}let n=Lt(t);zt&&(n=n.concat(zt(t)));const r=Ft(e),o=Ft(t);for(let i=0;i<n.length;++i){const a=n[i];if(!jt[a]&&(!o||!o[a])&&(!r||!r[a])){const n=Bt(t,a);try{It(e,a,n)}catch(ak){}}}}return e}var Vt=Symbol.for("react-redux-context"),Ut="undefined"!==typeof globalThis?globalThis:{};function $t(){var e;if(!r.createContext)return{};const t=null!==(e=Ut[Vt])&&void 0!==e?e:Ut[Vt]=new Map;let n=t.get(r.createContext);return n||(n=r.createContext(null),t.set(r.createContext,n)),n}var qt=$t(),Kt=[null,null];function Qt(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function Gt(e,t){return e===t}var Jt=function(e,t,n){let{pure:o,areStatesEqual:i=Gt,areOwnPropsEqual:a=Pt,areStatePropsEqual:s=Pt,areMergedPropsEqual:l=Pt,forwardRef:u=!1,context:c=qt}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=c,f=function(e){return e?"function"===typeof e?xt(e):kt(e,"mapStateToProps"):bt((()=>({})))}(e),p=function(e){return e&&"object"===typeof e?bt((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=function(){return t(o(...arguments))})}return n}(e,t))):e?"function"===typeof e?xt(e):kt(e,"mapDispatchToProps"):bt((e=>({dispatch:e})))}(t),h=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:o,areMergedPropsEqual:i}=n,a=!1;return function(t,n,o){const s=e(t,n,o);return a?i(s,r)||(r=s):(a=!0,r=s),r}}}(e):kt(e,"mergeProps"):()=>Dt}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),o={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:f,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:a,areMergedPropsEqual:l};function c(t){const[n,i,a]=r.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,Xe.A)(t,tt);return[t.context,e,n]}),[t]),s=r.useMemo((()=>{let e=d;return null!==n&&void 0!==n&&n.Consumer,e}),[n,d]),l=r.useContext(s),u=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(l)&&Boolean(l.store);const f=u?t.store:l.store,p=c?l.getServerState:f.getState,h=r.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=(0,Xe.A)(t,et);return vt(n(e,i),r(e,i),o(e,i),e,i)}(f.dispatch,o)),[f]),[g,y]=r.useMemo((()=>{if(!m)return Kt;const e=Ct(f,u?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,u,l]),v=r.useMemo((()=>u?l:(0,Ze.A)((0,Ze.A)({},l),{},{subscription:g})),[u,l,g]),b=r.useRef(void 0),w=r.useRef(a),x=r.useRef(void 0),k=r.useRef(!1),D=r.useRef(!1),S=r.useRef(void 0);Nt((()=>(D.current=!0,()=>{D.current=!1})),[]);const E=r.useMemo((()=>()=>x.current&&a===w.current?x.current:h(f.getState(),a)),[f,a]),C=r.useMemo((()=>e=>g?function(e,t,n,r,o,i,a,s,l,u,c){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(ak){p=ak,f=ak}p||(f=null),n===i.current?a.current||u():(i.current=n,l.current=n,a.current=!0,c())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(m,f,g,h,w,b,k,D,x,y,e):()=>{}),[g]);var M,O,N;let A;M=Qt,O=[w,b,k,a,x,y],Nt((()=>M(...O)),N);try{A=r.useSyncExternalStore(C,E,p?()=>h(p(),a):E)}catch(_){throw S.current&&(_.message+="\nThe error may be correlated with this previous error:\n".concat(S.current.stack,"\n\n")),_}Nt((()=>{S.current=void 0,x.current=void 0,b.current=A}));const P=r.useMemo((()=>r.createElement(e,(0,Ze.A)((0,Ze.A)({},A),{},{ref:i}))),[i,e,A]);return r.useMemo((()=>m?r.createElement(s.Provider,{value:v},P):P),[s,P,v])}const g=r.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=n,u){const t=r.forwardRef((function(e,t){return r.createElement(g,(0,Ze.A)((0,Ze.A)({},e),{},{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,Wt(t,e)}return Wt(g,e)}};var Zt=function(e){const{children:t,context:n,serverState:o,store:i}=e,a=r.useMemo((()=>{const e=Ct(i);return{store:i,subscription:e,getServerState:o?()=>o:void 0}}),[i,o]),s=r.useMemo((()=>i.getState()),[i]);Nt((()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[a,s]);const l=n||qt;return r.createElement(l.Provider,{value:a},t)};function Xt(e,t){return function(){return e.apply(t,arguments)}}const{toString:en}=Object.prototype,{getPrototypeOf:tn}=Object,nn=(rn=Object.create(null),e=>{const t=en.call(e);return rn[t]||(rn[t]=t.slice(8,-1).toLowerCase())});var rn;const on=e=>(e=e.toLowerCase(),t=>nn(t)===e),an=e=>t=>typeof t===e,{isArray:sn}=Array,ln=an("undefined");const un=on("ArrayBuffer");const cn=an("string"),dn=an("function"),fn=an("number"),pn=e=>null!==e&&"object"===typeof e,hn=e=>{if("object"!==nn(e))return!1;const t=tn(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mn=on("Date"),gn=on("File"),yn=on("Blob"),vn=on("FileList"),bn=on("URLSearchParams"),[wn,xn,kn,Dn]=["ReadableStream","Request","Response","Headers"].map(on);function Sn(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),sn(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function En(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Cn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,Mn=e=>!ln(e)&&e!==Cn;const On=(Nn="undefined"!==typeof Uint8Array&&tn(Uint8Array),e=>Nn&&e instanceof Nn);var Nn;const An=on("HTMLFormElement"),Pn=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),_n=on("RegExp"),jn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Tn="abcdefghijklmnopqrstuvwxyz",Rn="0123456789",Fn={DIGIT:Rn,ALPHA:Tn,ALPHA_DIGIT:Tn+Tn.toUpperCase()+Rn};const In=on("AsyncFunction"),Ln=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],Cn.addEventListener("message",(e=>{let{source:t,data:o}=e;t===Cn&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),Cn.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,dn(Cn.postMessage)),zn="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Cn):"undefined"!==typeof process&&process.nextTick||Ln,Bn={isArray:sn,isArrayBuffer:un,isBuffer:function(e){return null!==e&&!ln(e)&&null!==e.constructor&&!ln(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||dn(e.append)&&("formdata"===(t=nn(e))||"object"===t&&dn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&un(e.buffer),t},isString:cn,isNumber:fn,isBoolean:e=>!0===e||!1===e,isObject:pn,isPlainObject:hn,isReadableStream:wn,isRequest:xn,isResponse:kn,isHeaders:Dn,isUndefined:ln,isDate:mn,isFile:gn,isBlob:yn,isRegExp:_n,isFunction:dn,isStream:e=>pn(e)&&dn(e.pipe),isURLSearchParams:bn,isTypedArray:On,isFileList:vn,forEach:Sn,merge:function e(){const{caseless:t}=Mn(this)&&this||{},n={},r=(r,o)=>{const i=t&&En(n,o)||o;hn(n[i])&&hn(r)?n[i]=e(n[i],r):hn(r)?n[i]=e({},r):sn(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Sn(arguments[o],r);return n},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Sn(t,((t,r)=>{n&&dn(t)?e[r]=Xt(t,n):e[r]=t}),{allOwnKeys:r}),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,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&tn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:nn,kindOfTest:on,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(sn(e))return e;let t=e.length;if(!fn(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 r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:An,hasOwnProperty:Pn,hasOwnProp:Pn,reduceDescriptors:jn,freezeMethods:e=>{jn(e,((t,n)=>{if(dn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];dn(r)&&(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={},r=e=>{e.forEach((e=>{n[e]=!0}))};return sn(e)?r(e):r(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:En,global:Cn,isContextDefined:Mn,ALPHABET:Fn,generateString:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fn.ALPHA_DIGIT,n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&dn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(pn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=sn(e)?[]:{};return Sn(e,((e,t)=>{const i=n(e,r+1);!ln(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:In,isThenable:e=>e&&(pn(e)||dn(e))&&dn(e.then)&&dn(e.catch),setImmediate:Ln,asap:zn};function Yn(e,t,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Bn.inherits(Yn,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:Bn.toJSONObject(this.config),code:this.code,status:this.status}}});const Hn=Yn.prototype,Wn={};["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=>{Wn[e]={value:e}})),Object.defineProperties(Yn,Wn),Object.defineProperty(Hn,"isAxiosError",{value:!0}),Yn.from=(e,t,n,r,o,i)=>{const a=Object.create(Hn);return Bn.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Yn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const Vn=Yn;function Un(e){return Bn.isPlainObject(e)||Bn.isArray(e)}function $n(e){return Bn.endsWith(e,"[]")?e.slice(0,-2):e}function qn(e,t,n){return e?e.concat(t).map((function(e,t){return e=$n(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Kn=Bn.toFlatObject(Bn,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Qn=function(e,t,n){if(!Bn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Bn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Bn.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&Bn.isSpecCompliantForm(t);if(!Bn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Bn.isDate(e))return e.toISOString();if(!s&&Bn.isBlob(e))throw new Vn("Blob is not supported. Use a Buffer instead.");return Bn.isArrayBuffer(e)||Bn.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(Bn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Bn.isArray(e)&&function(e){return Bn.isArray(e)&&!e.some(Un)}(e)||(Bn.isFileList(e)||Bn.endsWith(n,"[]"))&&(s=Bn.toArray(e)))return n=$n(n),s.forEach((function(e,r){!Bn.isUndefined(e)&&null!==e&&t.append(!0===a?qn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Un(e)||(t.append(qn(o,n,i),l(e)),!1)}const c=[],d=Object.assign(Kn,{defaultVisitor:u,convertValue:l,isVisitable:Un});if(!Bn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Bn.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),Bn.forEach(n,(function(n,i){!0===(!(Bn.isUndefined(n)||null===n)&&o.call(t,n,Bn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),c.pop()}}(e),t};function Gn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Jn(e,t){this._pairs=[],e&&Qn(e,this,t)}const Zn=Jn.prototype;Zn.append=function(e,t){this._pairs.push([e,t])},Zn.toString=function(e){const t=e?function(t){return e.call(this,t,Gn)}:Gn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Xn=Jn;function er(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tr(e,t,n){if(!t)return e;const r=n&&n.encode||er;Bn.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Bn.isURLSearchParams(t)?t.toString():new Xn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const nr=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){Bn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},rr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},or={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Xn,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ir="undefined"!==typeof window&&"undefined"!==typeof document,ar="object"===typeof navigator&&navigator||void 0,sr=ir&&(!ar||["ReactNative","NativeScript","NS"].indexOf(ar.product)<0),lr="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,ur=ir&&window.location.href||"http://localhost",cr=(0,Ze.A)((0,Ze.A)({},e),or);const dr=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Bn.isArray(r)?r.length:i,s)return Bn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Bn.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Bn.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Bn.isFormData(e)&&Bn.isFunction(e.entries)){const n={};return Bn.forEachEntry(e,((e,r)=>{t(function(e){return Bn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const fr={transitional:rr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Bn.isObject(e);o&&Bn.isHTMLForm(e)&&(e=new FormData(e));if(Bn.isFormData(e))return r?JSON.stringify(dr(e)):e;if(Bn.isArrayBuffer(e)||Bn.isBuffer(e)||Bn.isStream(e)||Bn.isFile(e)||Bn.isBlob(e)||Bn.isReadableStream(e))return e;if(Bn.isArrayBufferView(e))return e.buffer;if(Bn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Qn(e,new cr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return cr.isNode&&Bn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Bn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Qn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Bn.isString(e))try{return(t||JSON.parse)(e),Bn.trim(e)}catch(ak){if("SyntaxError"!==ak.name)throw ak}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Bn.isResponse(e)||Bn.isReadableStream(e))return e;if(e&&Bn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(ak){if(n){if("SyntaxError"===ak.name)throw Vn.from(ak,Vn.ERR_BAD_RESPONSE,this,null,this.response);throw ak}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:cr.classes.FormData,Blob:cr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Bn.forEach(["delete","get","head","post","put","patch"],(e=>{fr.headers[e]={}}));const pr=fr,hr=Bn.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"]),mr=Symbol("internals");function gr(e){return e&&String(e).trim().toLowerCase()}function yr(e){return!1===e||null==e?e:Bn.isArray(e)?e.map(yr):String(e)}function vr(e,t,n,r,o){return Bn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Bn.isString(t)?Bn.isString(r)?-1!==t.indexOf(r):Bn.isRegExp(r)?r.test(t):void 0:void 0)}class br{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=gr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Bn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=yr(e))}const i=(e,t)=>Bn.forEach(e,((e,n)=>o(e,n,t)));if(Bn.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Bn.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&hr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Bn.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=gr(e)){const n=Bn.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 r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Bn.isFunction(t))return t.call(this,e,n);if(Bn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=gr(e)){const n=Bn.findKey(this,e);return!(!n||void 0===this[n]||t&&!vr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=gr(e)){const o=Bn.findKey(n,e);!o||t&&!vr(0,n[o],o,t)||(delete n[o],r=!0)}}return Bn.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!vr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Bn.forEach(this,((r,o)=>{const i=Bn.findKey(n,o);if(i)return t[i]=yr(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=yr(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Bn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Bn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[mr]=this[mr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=gr(e);t[r]||(!function(e,t){const n=Bn.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Bn.isArray(e)?e.forEach(r):r(e),this}}br.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Bn.reduceDescriptors(br.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),Bn.freezeMethods(br);const wr=br;function xr(e,t){const n=this||pr,r=t||n,o=wr.from(r.headers);let i=r.data;return Bn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function kr(e){return!(!e||!e.__CANCEL__)}function Dr(e,t,n){Vn.call(this,null==e?"canceled":e,Vn.ERR_CANCELED,t,n),this.name="CanceledError"}Bn.inherits(Dr,Vn,{__CANCEL__:!0});const Sr=Dr;function Er(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Vn("Request failed with status code "+n.status,[Vn.ERR_BAD_REQUEST,Vn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Cr=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}};const Mr=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},Or=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=Cr(50,250);return Mr((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Nr=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ar=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Bn.asap((()=>e(...n)))},Pr=cr.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,cr.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(cr.origin),cr.navigator&&/(msie|trident)/i.test(cr.navigator.userAgent)):()=>!0,_r=cr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Bn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Bn.isString(r)&&a.push("path="+r),Bn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.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 jr(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 Tr=e=>e instanceof wr?(0,Ze.A)({},e):e;function Rr(e,t){t=t||{};const n={};function r(e,t,n,r){return Bn.isPlainObject(e)&&Bn.isPlainObject(t)?Bn.merge.call({caseless:r},e,t):Bn.isPlainObject(t)?Bn.merge({},t):Bn.isArray(t)?t.slice():t}function o(e,t,n,o){return Bn.isUndefined(t)?Bn.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Bn.isUndefined(t))return r(void 0,t)}function a(e,t){return Bn.isUndefined(t)?Bn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Tr(e),Tr(t),0,!0)};return Bn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Bn.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Fr=e=>{const t=Rr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=wr.from(s),t.url=tr(jr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Bn.isFormData(r))if(cr.hasStandardBrowserEnv||cr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(cr.hasStandardBrowserEnv&&(o&&Bn.isFunction(o)&&(o=o(t)),o||!1!==o&&Pr(t.url))){const e=i&&a&&_r.read(a);e&&s.set(i,e)}return t},Ir="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Fr(e);let o=r.data;const i=wr.from(r.headers).normalize();let a,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=wr.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Er((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Vn("Request aborted",Vn.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Vn("Network Error",Vn.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||rr;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Vn(t,o.clarifyTimeoutError?Vn.ETIMEDOUT:Vn.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Bn.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Bn.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,c]=Or(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,u]=Or(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Sr(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===cr.protocols.indexOf(y)?n(new Vn("Unsupported protocol "+y+":",Vn.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Lr=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Vn?t:new Sr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Vn("timeout ".concat(t," of ms exceeded"),Vn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Bn.asap(a),s}};function zr(e,t){this.v=e,this.k=t}function Br(e){return function(){return new Yr(e.apply(this,arguments))}}function Yr(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof zr;Promise.resolve(s?a.v:a).then((function(n){if(s){var l="return"===t?"return":"next";if(!a.k||n.done)return r(l,n);n=e[l](n).value}o(i.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function Hr(e){return new zr(e,0)}function Wr(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise((function(n){n(e[t](r))})),{done:!1,value:new zr(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Vr(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Ur(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Ur(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Ur=function(e){this.s=e,this.n=e.next},Ur.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Ur(e)}Yr.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Yr.prototype.next=function(e){return this._invoke("next",e)},Yr.prototype.throw=function(e){return this._invoke("throw",e)},Yr.prototype.return=function(e){return this._invoke("return",e)};const $r=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},qr=function(){var e=Br((function*(e,t){var n,r=!1,o=!1;try{for(var i,a=Vr(Kr(e));r=!(i=yield Hr(a.next())).done;r=!1){const e=i.value;yield*Wr(Vr($r(e,t)))}}catch(s){o=!0,n=s}finally{try{r&&null!=a.return&&(yield Hr(a.return()))}finally{if(o)throw n}}}));return function(t,n){return e.apply(this,arguments)}}(),Kr=function(){var e=Br((function*(e){if(e[Symbol.asyncIterator])return void(yield*Wr(Vr(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield Hr(t.read());if(e)break;yield n}}finally{yield Hr(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),Qr=(e,t,n,r)=>{const o=qr(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Gr="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Jr=Gr&&"function"===typeof ReadableStream,Zr=Gr&&("function"===typeof TextEncoder?(Xr=new TextEncoder,e=>Xr.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Xr;const eo=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(ak){return!1}},to=Jr&&eo((()=>{let e=!1;const t=new Request(cr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),no=Jr&&eo((()=>Bn.isReadableStream(new Response("").body))),ro={stream:no&&(e=>e.body)};var oo;Gr&&(oo=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!ro[e]&&(ro[e]=Bn.isFunction(oo[e])?t=>t[e]():(t,n)=>{throw new Vn("Response type '".concat(e,"' is not supported"),Vn.ERR_NOT_SUPPORT,n)})})));const io=async(e,t)=>{const n=Bn.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Bn.isBlob(e))return e.size;if(Bn.isSpecCompliantForm(e)){const t=new Request(cr.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Bn.isArrayBufferView(e)||Bn.isArrayBuffer(e)?e.byteLength:(Bn.isURLSearchParams(e)&&(e+=""),Bn.isString(e)?(await Zr(e)).byteLength:void 0)})(t):n},ao=Gr&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:d="same-origin",fetchOptions:f}=Fr(e);u=u?(u+"").toLowerCase():"text";let p,h=Lr([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&to&&"get"!==n&&"head"!==n&&0!==(g=await io(c,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Bn.isFormData(r)&&(e=n.headers.get("content-type"))&&c.setContentType(e),n.body){const[e,t]=Nr(g,Or(Ar(l)));r=Qr(n.body,65536,e,t)}}Bn.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,(0,Ze.A)((0,Ze.A)({},f),{},{signal:h,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0}));let i=await fetch(p);const a=no&&("stream"===u||"response"===u);if(no&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Bn.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Nr(t,Or(Ar(s),!0))||[];i=new Response(Qr(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let y=await ro[Bn.findKey(ro,u)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Er(t,n,{data:y,headers:wr.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(y){if(m&&m(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Vn("Network Error",Vn.ERR_NETWORK,e,p),{cause:y.cause||y});throw Vn.from(y,y&&y.code,e,p)}}),so={http:null,xhr:Ir,fetch:ao};Bn.forEach(so,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(ak){}Object.defineProperty(e,"adapterName",{value:t})}}));const lo=e=>"- ".concat(e),uo=e=>Bn.isFunction(e)||null===e||!1===e,co=e=>{e=Bn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!uo(n)&&(r=so[(t=String(n)).toLowerCase()],void 0===r))throw new Vn("Unknown adapter '".concat(t,"'"));if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let n=t?e.length>1?"since :\n"+e.map(lo).join("\n"):" "+lo(e[0]):"as no adapter specified";throw new Vn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function fo(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Sr(null,e)}function po(e){fo(e),e.headers=wr.from(e.headers),e.data=xr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return co(e.adapter||pr.adapter)(e).then((function(t){return fo(e),t.data=xr.call(e,e.transformResponse,t),t.headers=wr.from(t.headers),t}),(function(t){return kr(t)||(fo(e),t&&t.response&&(t.response.data=xr.call(e,e.transformResponse,t.response),t.response.headers=wr.from(t.response.headers))),Promise.reject(t)}))}const ho="1.7.9",mo={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{mo[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const go={};mo.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Vn(r(o," has been removed"+(t?" in "+t:"")),Vn.ERR_DEPRECATED);return t&&!go[o]&&(go[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},mo.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const yo={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Vn("options must be an object",Vn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Vn("option "+i+" must be "+n,Vn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Vn("Unknown option "+i,Vn.ERR_BAD_OPTION)}},validators:mo},vo=yo.validators;class bo{constructor(e){this.defaults=e,this.interceptors={request:new nr,response:new nr}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(ak){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Rr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&yo.assertOptions(n,{silentJSONParsing:vo.transitional(vo.boolean),forcedJSONParsing:vo.transitional(vo.boolean),clarifyTimeoutError:vo.transitional(vo.boolean)},!1),null!=r&&(Bn.isFunction(r)?t.paramsSerializer={serialize:r}:yo.assertOptions(r,{encode:vo.function,serialize:vo.function},!0)),yo.assertOptions(t,{baseUrl:vo.spelling("baseURL"),withXsrfToken:vo.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Bn.merge(o.common,o[t.method]);o&&Bn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=wr.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let c,d=0;if(!s){const e=[po.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let f=t;for(d=0;d<c;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{u=po.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return tr(jr((e=Rr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Bn.forEach(["delete","get","head","options"],(function(e){bo.prototype[e]=function(t,n){return this.request(Rr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Bn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Rr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}bo.prototype[e]=t(),bo.prototype[e+"Form"]=t(!0)}));const wo=bo;class xo{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 r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Sr(e,r,o),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 xo((function(t){e=t})),cancel:e}}}const ko=xo;const Do={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(Do).forEach((e=>{let[t,n]=e;Do[n]=t}));const So=Do;const Eo=function e(t){const n=new wo(t),r=Xt(wo.prototype.request,n);return Bn.extend(r,wo.prototype,n,{allOwnKeys:!0}),Bn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Rr(t,n))},r}(pr);Eo.Axios=wo,Eo.CanceledError=Sr,Eo.CancelToken=ko,Eo.isCancel=kr,Eo.VERSION=ho,Eo.toFormData=Qn,Eo.AxiosError=Vn,Eo.Cancel=Eo.CanceledError,Eo.all=function(e){return Promise.all(e)},Eo.spread=function(e){return function(t){return e.apply(null,t)}},Eo.isAxiosError=function(e){return Bn.isObject(e)&&!0===e.isAxiosError},Eo.mergeConfig=Rr,Eo.AxiosHeaders=wr,Eo.formToJSON=e=>dr(Bn.isHTMLForm(e)?new FormData(e):e),Eo.getAdapter=co,Eo.HttpStatusCode=So,Eo.default=Eo;const Co=Eo;var Mo=n(6178),Oo=n.n(Mo);const No=()=>{document.location.href;return"https://api.pennhillscdc.org/v1"},Ao=()=>document.location.href.includes("localhost")?"pk_test_uAnC1YeCudsoqqGVMmbrrwMx00kwe7jCEF":"pk_live_CRAKkT6PtnPl7KJxFmxTb1v700LRYEK7cv",Po=()=>{let e=parseInt(Oo()().format("YYYY")),t=parseInt(Oo()().format("M")),n=e;if(t>10)n++;else if(10===t){let t=14,r=!1,o="";do{t++,o="10/"+t+"/"+e,r="Thu"===Oo()(o,"MM/DD/YYYY",!0).format("ddd")}while(!r);o="10/"+(t-4)+"/"+e;n=parseInt(Oo()().format("YYYYMMDD"))>parseInt(Oo()(o,"MM/DD/YYYY",!0).format("YYYYMMDD"))?n+1:n}return n},_o={style:{base:{backgroundColor:"#FFFFFF",padding:"5px",color:"#32325d",fontFamily:'"Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontSmoothing:"antialiased",fontSize:"16px",borderWidth:"1px",borderRadius:"4px",borderColor:"#ADB5BD",marginTop:"2px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}},jo=e=>e[0].toUpperCase()+e.substring(1),To=e=>e.toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),Ro=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(e),Fo=e=>{e*=100;try{let t=e.toString();return t=e.toFixed(0),t.replace(/\B(?=(\d{3})+(?!\d))/g,",")}catch(t){return"0"}},Io=e=>{e?Co.defaults.headers.common.Authorization=e:delete Co.defaults.headers.common.Authorization},Lo=(e,t)=>async n=>{const r={headers:{"Content-Type":"application/json"}},o={email:e.trim(),password:t.trim()};try{const e=await Co.post(No()+"/auth/token",o,r);e.data.success&&(await(async(e,t)=>{try{return await localStorage.setItem(e,t),!0}catch(n){return!1}})("auth_user",JSON.stringify(e.data.user)),Io(e.data.user.token),n({type:Fe,payload:e.data.user}),n(Je("signinError")))}catch(i){n(Ge("signinError","Invalid Username / Password",[],"danger")),n({type:Ie})}},zo=()=>e=>{delete Co.defaults.headers.common.Authorization,e({type:Le}),e({type:He}),e({type:Be}),e({type:Ue}),e({type:qe})},Bo=e=>async t=>{t(Je("setPwError"));try{const n=await Co.put(No()+"/auth/setpw",e);return!!n.data.success||(t(Ge("setPwError","Error Updating Password",n.data.errors,"danger")),!1)}catch(n){return t(Ge("setPwError","Error Updating Password",[],"danger")),!1}},Yo=n.p+"static/media/logo.352c8d4ea746f87e2d7b.png";var Ho=n(579);const Wo=Jt(null,{removeAlert:Je})((e=>{const[t,n]=(0,r.useState)(!0),{color:o,className:i,icon:a,children:s,alertKey:l,removeAlert:u}=e;let c;switch(o){case"info":c=(0,Ho.jsx)("i",{className:"far fa-info-circle"});break;case"success":c=(0,Ho.jsx)("i",{className:"far fa-check-circle fa-lg"});break;case"warning":c=(0,Ho.jsx)("i",{className:"far fa-exclamation-triangle fa-lg"});break;case"danger":c=(0,Ho.jsx)("i",{className:"fas fa-exclamation-triangle"})}return(0,Ho.jsxs)("div",{className:"alert alert-custom alert-"+o,role:"alert",children:[a&&(0,Ho.jsx)("div",{className:"alert-icon",children:c}),(0,Ho.jsx)("div",{className:"alert-content",children:s}),(0,Ho.jsx)("button",{className:"close",type:"button",onClick:e=>{return t=l,e.preventDefault(),void u(t);var t},children:(0,Ho.jsx)("i",{className:"far fa-times"})})]})})),Vo=Jt(((e,t)=>({alert:e.alert,alertKey:t.alertKey})))((e=>{const{alert:t,alertKey:n}=e;let r=[];return t&&t.length>0&&(r=t.filter((e=>e.key===n)),r.length&&(r=r[0])),r&&(r.title||r.errors&&r.errors.length)?(0,Ho.jsxs)(Wo,{color:r.alertType,icon:!0,className:"alert--bordered",alertKey:r.key,children:[r.title.length>0&&(0,Ho.jsx)("strong",{children:r.title}),r.errors.map((e=>(0,Ho.jsx)("div",{children:e},n)))]}):(0,Ho.jsx)(Ho.Fragment,{})})),Uo=Jt((e=>({auth:e.auth})),{setAlert:Ge,login:Lo,logout:zo})((e=>{const{auth:t,setAlert:n,login:o,logout:i}=e;let a=te();const[s,l]=(0,r.useState)(""),[u,c]=(0,r.useState)(""),[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(""),m=!!(t&&t.user_id&&t.token);return m&&"1"===t.admin?a("/dashboard"):m&&a("/my-account"),(0,Ho.jsxs)("div",{className:"pf-login",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("h1",{children:"PHCDC Membership Manager"}),(0,Ho.jsx)(Vo,{alertKey:"signinError"}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email Address"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-envelope"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:s,onChange:e=>l(e.target.value)})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Password"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-key"})})}),(0,Ho.jsx)("input",{type:"password",className:"form-control",value:u,onChange:e=>c(e.target.value)})]})]}),(0,Ho.jsxs)("button",{className:"btn btn-primary btn-block btn-lg btn-flex",onClick:()=>o(s,u),children:[(0,Ho.jsx)("div",{children:"Sign In"}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]})]}),(0,Ho.jsxs)("div",{className:"more-actions",children:[(0,Ho.jsxs)(Ae,{to:"/register",className:"btn btn-opt btn-block btn-lg btn-flex",children:[(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("i",{className:"fas fa-star fa-fw"})," \xa0Become a PHCDC Member"]}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]}),(0,Ho.jsxs)(Ae,{to:"/donate",className:"btn btn-opt btn-block btn-lg btn-flex",children:[(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("i",{className:"fas fa-donate fa-fw"})," \xa0Make a Donation"]}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]}),(0,Ho.jsxs)(Ae,{to:"/newsletter",className:"btn btn-opt btn-block btn-lg btn-flex",children:[(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("i",{className:"fas fa-envelope fa-fw"})," \xa0Sign Up for Our Email Newsletter"]}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]}),(0,Ho.jsxs)("a",{href:"https://pennhillscdc.org/sms",target:"_blank",className:"btn btn-opt btn-block btn-lg btn-flex",children:[(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("i",{className:"fas fa-phone-alt fa-fw"})," \xa0Sign Up for Text Message Alerts"]}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]}),(0,Ho.jsxs)(Ae,{to:"/pwreset",className:"btn btn-opt btn-block btn-lg btn-flex",children:[(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("i",{className:"fas fa-lock-alt fa-fw"})," \xa0Reset Your Password"]}),(0,Ho.jsx)("i",{className:"fas fa-arrow-right"})]})]})]})}));class $o extends r.PureComponent{render(){const{children:e}=this.props;return(0,Ho.jsxs)("div",{className:"app-wrapper",children:[(0,Ho.jsx)("header",{}),(0,Ho.jsx)("main",{children:e}),(0,Ho.jsx)("footer",{})]})}}const qo=$o,Ko=()=>async e=>{try{const t={headers:{"Content-Type":"application/json"}},n=await Co.get(No()+"/members/list",t);n.data.members&&n.data.members.length&&e({type:Ye,payload:n.data.members})}catch(t){console.log("Error getting user list")}},Qo=(e,t)=>async n=>{console.log("getting member by id",e);try{const r={headers:{"Content-Type":"application/json"}},o=await Co.get(No()+"/members/detail/"+e+"/"+t,r);if(o.data&&o.data.members.length){const t={members:o.data.members,payments:o.data.payments,groupId:parseInt(o.data.groupId),memberId:parseInt(e),plan:o.data.plan};return n({type:We,payload:t}),t}}catch(r){console.log("Error getting member data")}},Go=e=>async t=>{try{const n={headers:{"Content-Type":"application/json"}},r=await Co.put(No()+"/members/member/"+e.member_id,e,n);return r.data.success?(t(Ko()),t(Qo(e.member_id,"member")),r):r}catch(n){return console.log("Error updating member data",n),{success:!1,error:n}}},Jo=(e,t)=>async n=>{try{const r={headers:{"Content-Type":"application/json"}},o=await Co.post(No()+"/members/member/"+t,e,r);return o.data.success?(n(Ko()),n(Qo(o.data.member_id,"member")),o):o}catch(r){return console.log("Error creating new member"),{success:!1,error:r}}},Zo=()=>async e=>{try{const e=await Co.get(No()+"/members/households");return e.data.success?e.data.households:[]}catch(t){return console.log("Error fetching households"),[]}},Xo=(e,t)=>async n=>{try{const n={member_id:e,group_id:t};return(await Co.put(No()+"/members/household",n)).data.success}catch(r){return console.log("Error fetching households"),!1}},ei=Jt((e=>({})),{updateMember:Go,createMember:Jo})((e=>{const{membersArray:t,tableView:n,changeView:r,setNewMemberOpen:o,counts:i,updateMember:a,createMember:s}=e,l=parseInt(Oo()().format("YYYY")),u=async(e,t)=>{window.confirm(0===t?"Are you sure you want to remove "+e.fname+" "+e.lname+" from the email list?":"Are you sure you want to re-add "+e.fname+" "+e.lname+" to the email list?")&&(e.maillist=t,await a(e))};return(0,Ho.jsxs)("div",{className:"member-table",children:[(0,Ho.jsxs)("div",{className:"header",children:[(0,Ho.jsx)("h3",{children:"Members"}),(0,Ho.jsxs)("div",{className:"member-btn-group",children:[(0,Ho.jsxs)("button",{className:"btn btn-link"+("active"===n?" active":""),onClick:()=>r("active"),children:["Active (",i.active,")"]}),(0,Ho.jsxs)("button",{className:"btn btn-link"+("expired"===n?" active":""),onClick:()=>r("expired"),children:["Expired (",i.expired,")"]}),(0,Ho.jsxs)("button",{className:"btn btn-link"+("recruits"===n?" active":""),onClick:()=>r("recruits"),children:["Recruits (",i.recruits,")"]}),(0,Ho.jsxs)("button",{className:"btn btn-link"+("all"===n?" active":""),onClick:()=>r("all"),children:["All (",i.all,")"]})]}),(0,Ho.jsxs)("div",{className:"new-member-btn",children:[(0,Ho.jsxs)("button",{className:"btn btn-link new",onClick:()=>o(!0),children:[(0,Ho.jsx)("i",{className:"fas fa-plus-circle"})," Member"]}),(0,Ho.jsxs)(Ae,{to:"/email-campaigns",className:"btn btn-link new",children:[" \xa0 ",(0,Ho.jsx)("i",{className:"fas fa-envelope"})," Emails"]}),(0,Ho.jsxs)(Ae,{to:"/payment-log",className:"btn btn-link new",children:[" \xa0 ",(0,Ho.jsx)("i",{className:"fas fa-usd-circle"})," Payments"]})]})]}),(0,Ho.jsxs)("table",{className:"table table-hover table-striped",children:[(0,Ho.jsx)("thead",{children:(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("th",{children:"ID"}),(0,Ho.jsx)("th",{children:"Name"}),(0,Ho.jsx)("th",{className:"hide-730",children:"Email"}),(0,Ho.jsx)("th",{className:"hide-890",children:"Phone"}),(0,Ho.jsx)("th",{className:"hide-1100",children:"Address"}),(0,Ho.jsx)("th",{children:"Plan"}),(0,Ho.jsx)("th",{children:"Paid Thru"}),(0,Ho.jsx)("th",{className:"hide-475",children:"Actions"})]})}),(0,Ho.jsx)("tbody",{children:t.map((e=>{return(0,Ho.jsxs)("tr",{className:parseInt(e.paid_thru)<l?"expired":"",children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)(Ae,{to:"/member/"+e.member_id,children:e.member_id})}),(0,Ho.jsxs)("td",{children:[e.lname,", ",e.fname]}),(0,Ho.jsx)("td",{className:"hide-730",children:(0,Ho.jsx)("a",{href:"mailto:"+e.email,children:e.email})}),(0,Ho.jsx)("td",{className:"text-nowrap hide-890",children:(0,Ho.jsx)("a",{href:"tel:"+e.phone,children:(t=e.phone,t.substring(0,3)+"-"+t.substring(3,6)+"-"+t.substring(6))})}),(0,Ho.jsx)("td",{className:"hide-1100",children:e.address1+(e.address2.length?", "+e.address2:"")}),(0,Ho.jsx)("td",{children:e.plan_name}),(0,Ho.jsx)("td",{children:e.paid_thru}),(0,Ho.jsxs)("td",{className:"hide-475",children:[(0,Ho.jsx)(Ae,{to:"/member/"+e.member_id,children:(0,Ho.jsx)("i",{className:"fas fa-edit fa-fw edit-member",style:{color:"#005ecc"}})}),(0,Ho.jsx)("i",{className:"fas fa-fw fa-user-slash",style:{color:"#DD0000"},onClick:()=>(async e=>{window.confirm("Are you sure you want to delete this "+e.fname+" "+e.lname+" from the members list?")&&(e.maillist=0,e.visible=0,await a(e))})(e)}),1===parseInt(e.maillist)?(0,Ho.jsx)("i",{className:"fas fa-fw fa-bell-slash",style:{color:"#444444"},onClick:()=>u(e,0)}):(0,Ho.jsx)("i",{className:"fas fa-fw fa-bell",style:{color:"#009900"},onClick:()=>u(e,1)})]})]},e.member_id);var t}))})]})]})})),ti=Jt((e=>({auth:e.auth})),{updatePassword:Bo})((e=>{const{auth:t,updatePassword:n,cancel:o}=e,[i,a]=(0,r.useState)(""),[s,l]=(0,r.useState)(""),[u,c]=(0,r.useState)(""),[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(!1);return(0,Ho.jsx)("div",{className:"cdc-panel member-panel pay-form",children:(0,Ho.jsxs)("div",{style:{fontSize:"16px"},children:[(0,Ho.jsx)("h3",{children:"Change My Password"}),p&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)("div",{className:"alert alert-success text-center",children:(0,Ho.jsx)("b",{children:"Password updated successfully!"})}),(0,Ho.jsx)("div",{className:"text-center",children:(0,Ho.jsx)("button",{className:"btn btn-danger",onClick:()=>o(),disabled:d,children:"Close Panel"})})]}),(0,Ho.jsx)(Vo,{alertKey:"setPwError"}),!p&&(0,Ho.jsxs)("form",{children:[(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"User's Email:"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",disabled:!0,value:t.email})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Current Password:"}),(0,Ho.jsx)("input",{type:"password",className:"form-control",value:i,onChange:e=>a(e.target.value)})]})]}),(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"New Password:"}),(0,Ho.jsx)("input",{type:"password",className:"form-control",value:s,onChange:e=>l(e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Confirm New Password:"}),(0,Ho.jsx)("input",{type:"password",className:"form-control",value:u,onChange:e=>c(e.target.value)})]})]})]}),(0,Ho.jsxs)("div",{className:"wb-modal-footer",children:[(0,Ho.jsx)("button",{className:"btn btn-success",onClick:()=>(async()=>{f(!0);const e={user_id:t.user_id,oldpw:i,pw1:s,pw2:u};await n(e)&&h(!0),f(!1),a(""),l(""),c("")})(),disabled:d,children:"Change Password"}),"\xa0 \xa0",(0,Ho.jsx)("button",{className:"btn btn-danger",onClick:()=>o(),disabled:d,children:"Cancel"})]})]})]})})})),ni=Jt((e=>({auth:e.auth,members:e.members})),{logout:zo,getMembers:Ko,createNewMemberPlan:e=>async t=>{try{return(await Co.post(No()+"/members/create",e)).data}catch(n){return console.log("Error fetching households"),{success:!1}}}})((e=>{const{auth:t,members:n,logout:o,getMembers:i,createNewMemberPlan:a}=e;let s=te();const[l,u]=(0,r.useState)("active"),[c,d]=(0,r.useState)({lname:"",fname:"",email:"",phone:"",address1:"",address2:"",city:"Penn Hills",state:"PA",zip:"15235",plan_id:0}),[f,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(!1),[g,y]=(0,r.useState)(""),[v,b]=(0,r.useState)(""),[w,x]=(0,r.useState)(!1);(0,r.useEffect)((()=>{n.loaded||(async()=>{await i()})()}),[n.loaded]);const k=(new Date).getFullYear(),D=[...n.list],S=D.filter((e=>parseInt(e.paid_thru)<k&&parseInt(e.paid_thru)>1999||null===e.paid_thru)),E=D.filter((e=>parseInt(e.paid_thru)>=k)),C=D.filter((e=>1999===parseInt(e.paid_thru))),M={active:E.length,expired:S.length,all:D.length,recruits:C.length};let O=[];"active"===l&&(O=E),"expired"===l&&(O=S),"all"===l&&(O=D),"recruits"===l&&(O=C);const N=(e,t)=>{let n=(0,Ze.A)({},c);"phone"===e&&"1"===(t=t.replace(/\D/g,"")).substr(0,1)&&(t=t.substr(1)),n[e]=t,d(n)};""!==g&&s(g);return!!(t&&t.user_id&&t.token)&&"1"===t.admin||s("/login"),(0,Ho.jsxs)("div",{className:"dashboard",children:[(0,Ho.jsxs)("h3",{className:"title",children:[(0,Ho.jsx)("button",{className:"btn btn-danger btn-sm signout",onClick:()=>o(),children:"Sign Out"}),(0,Ho.jsx)("button",{className:"btn btn-warning btn-sm signout",onClick:()=>x(!w),style:{marginRight:"12px"},children:"Change Password"}),"Member Manager"]}),w&&(0,Ho.jsx)("div",{children:(0,Ho.jsx)(ti,{cancel:()=>{x(!1)}})}),(0,Ho.jsxs)("div",{className:"breadcrumb",children:[(0,Ho.jsx)(Ae,{to:"/",children:"Home"})," \xa0\xa0/\xa0 Members"]}),(0,Ho.jsx)(ei,{membersArray:O,tableView:l,changeView:u,setNewMemberOpen:p,counts:M}),(0,Ho.jsx)("div",{className:"dashboard-body"}),(0,Ho.jsx)("div",{className:"wb-modal small"+(f?" open":""),children:(0,Ho.jsx)("div",{className:"wb-modal-wrap",children:(0,Ho.jsxs)("div",{className:"wb-modal-body",children:[(0,Ho.jsx)("h3",{children:"Create Member Plan"}),""!==v&&(0,Ho.jsxs)("div",{className:"alert alert-danger",children:[(0,Ho.jsx)("b",{children:"An error occurred while creating this member plan."}),(0,Ho.jsx)("br",{}),v]}),(0,Ho.jsx)("form",{children:(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Member Plan Type"}),(0,Ho.jsxs)("select",{name:"plan_id",value:c.plan_id,className:"form-control",onChange:e=>N(e.target.name,e.target.value),children:[(0,Ho.jsx)("option",{value:0,children:"-- SELECT PLAN --"}),(0,Ho.jsx)("option",{value:1,children:"Individual"}),(0,Ho.jsx)("option",{value:2,children:"Household"})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"First Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"fname",value:c.fname,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Last Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"lname",value:c.lname,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"email",value:c.email,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Phone (numeric)"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"phone",value:c.phone,maxLength:10,onChange:e=>N(e.target.name,e.target.value),placeholder:"4125551212"})]})]}),(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 1"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address1",value:c.address1,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 2"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address2",value:c.address2,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"City"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"city",value:c.city,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"State"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"state",value:c.state,maxLength:2,onChange:e=>N(e.target.name,e.target.value)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Zip Code"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"zip",value:c.zip,maxLength:5,onChange:e=>N(e.target.name,e.target.value)})]})]})]})}),(0,Ho.jsxs)("div",{className:"wb-modal-footer",children:[(0,Ho.jsx)("button",{className:"btn btn-success",onClick:()=>(async()=>{m(!0);const e=await a(c);e.success?(await i(),m(!1),p(!1),y("/member/"+e.member_id)):(m(!1),b(e.error))})(),disabled:h,children:"Submit New Member"}),(0,Ho.jsx)("button",{className:"btn btn-danger",onClick:()=>p(!1),children:"Cancel"})]}),(0,Ho.jsxs)("div",{className:"wb-modal-close",onClick:()=>p(!1),children:[(0,Ho.jsx)("i",{className:"fas fa-circle"}),(0,Ho.jsx)("i",{className:"far fa-times-circle"})]})]})})})]})})),ri=Jt((e=>({})),{updateMember:Go,createMember:Jo})((e=>{const{membersArray:t,updateMember:n,createMember:o,groupId:i,isAdmin:a}=e,s={member_id:"0",fname:"",lname:"",email:"",phone:""},[l,u]=(0,r.useState)(!1),[c,d]=(0,r.useState)(0),[f,p]=(0,r.useState)({}),[h,m]=(0,r.useState)(""),g=e=>{e.preventDefault();let t=(0,Ze.A)({},f);t[e.target.name]=e.target.value,p(t)};return(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("h3",{children:[a&&(0,Ho.jsxs)("span",{className:"green",onClick:()=>(()=>{let e=(0,Ze.A)((0,Ze.A)({},t[0]),s);d(0),p(e),u(!0)})(),children:[(0,Ho.jsx)("i",{className:"fas fa-plus-circle"})," Add"]}),a?"Group Members":"Plan Members"]}),(0,Ho.jsx)("div",{className:"member-table group-table",children:(0,Ho.jsxs)("table",{className:"table table-hover table-striped",children:[(0,Ho.jsx)("thead",{children:(0,Ho.jsxs)("tr",{children:[a&&(0,Ho.jsx)("th",{children:"Lead"}),(0,Ho.jsx)("th",{children:"Name"}),(0,Ho.jsx)("th",{className:"hide-500",children:"Address"}),(0,Ho.jsx)("th",{})]})}),(0,Ho.jsx)("tbody",{children:t.map((e=>(0,Ho.jsxs)("tr",{children:[a&&(0,Ho.jsx)("td",{children:"1"===e.lead?(0,Ho.jsx)("i",{className:"fas fa-star"}):(0,Ho.jsx)("i",{className:"far fa-star"})}),(0,Ho.jsxs)("td",{className:"text-nowrap",children:[e.lname,", ",e.fname]}),(0,Ho.jsx)("td",{className:"hide-500",children:e.address1+(e.address2.length?", "+e.address2:"")}),(0,Ho.jsxs)("td",{children:[(0,Ho.jsx)("i",{className:"fas fa-edit edit-member fa-fw",onClick:()=>(e=>{let n=t.filter((t=>t.member_id===e)).pop();d(e),p(n),u(!0)})(e.member_id)}),a?"":"EDIT",a&&(0,Ho.jsx)("a",{href:"mailto:"+e.email,children:(0,Ho.jsx)("i",{className:"fas fa-envelope fa-fw"})}),a&&(0,Ho.jsx)("a",{href:"tel:"+e.phone,children:(0,Ho.jsx)("i",{className:"fas fa-phone fa-fw"})})]})]},e.member_id)))})]})}),(0,Ho.jsx)("div",{className:"wb-modal small"+(l?" open":""),children:(0,Ho.jsx)("div",{className:"wb-modal-wrap",children:(0,Ho.jsxs)("div",{className:"wb-modal-body",children:[0===c?(0,Ho.jsx)("h3",{children:"Add New Member to Group"}):(0,Ho.jsxs)("h3",{children:["Editing ",f.fname," ",f.lname]}),(0,Ho.jsxs)("form",{children:[h.length?(0,Ho.jsxs)("div",{className:"alert alert-danger",children:[(0,Ho.jsx)("b",{children:"Update Failed:"})," ",h]}):(0,Ho.jsx)(Ho.Fragment,{}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"First Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"fname",value:f.fname,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Last Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"lname",value:f.lname,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"email",value:f.email,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Phone"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"phone",value:f.phone,onChange:e=>g(e)})]})]}),(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 1"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address1",value:f.address1,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 2"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address2",value:f.address2,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"City"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"city",value:f.city,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"State"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"state",value:f.state,onChange:e=>g(e)})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Zip Code"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"zip",value:f.zip,onChange:e=>g(e)})]})]})]})]}),(0,Ho.jsxs)("div",{className:"wb-modal-footer",children:[(0,Ho.jsx)("button",{className:"btn btn-success",onClick:()=>(async()=>{let e=null;m(""),e=0===c?await o(f,parseInt(i)):await n(f),e.data.success?u(!1):m(e.data.error)})(),children:"Submit Changes"}),(0,Ho.jsx)("button",{className:"btn btn-danger",onClick:()=>u(!1),children:"Cancel"})]}),(0,Ho.jsxs)("div",{className:"wb-modal-close",onClick:()=>u(!1),children:[(0,Ho.jsx)("i",{className:"fas fa-circle"}),(0,Ho.jsx)("i",{className:"far fa-times-circle"})]})]})})})]})}));var oi=n(1899),ii=n.n(oi),ai=n(3393);const si=Jt((e=>({auth:e.auth,members:e.members})),{getMembers:Ko})((e=>{const{groupId:t,paymentsArray:n,auth:o,members:i,refreshGroup:a,memberId:s,getMembers:l,isAdmin:u,userId:c}=e,[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(u?"cash":"credit"),[m,g]=(0,r.useState)("renewal"),[y,v]=(0,r.useState)(i.edit.data.plan.plan_price),[b,w]=(0,r.useState)(""),[x,k]=(0,r.useState)(new Date),[D,S]=(0,r.useState)(!1),[E,C]=(0,r.useState)(!1),[M,O]=(0,r.useState)(""),N=Po(),A=(0,ai.useStripe)(),P=(0,ai.useElements)(),_=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S(!0);const t={group_id:parseInt(i.edit.data.groupId),user_id:parseInt(o.user_id),pay_date:parseInt(Oo()(x).format("YYYYMMDD")),pay_amount:parseFloat(y),pay_method:p,pay_type:m,logged_by:parseInt(o.user_id),pay_details:b,pay_data:e,year_applied:Po()};console.log("data",t);try{let e=await Co.post(No()+"/payments/renewal",t);e.data.success?(await a(c),await l(),h("cash"),g("renewal"),v(i.edit.data.plan.plan_price),w(""),k(new Date),S(!1),O(""),S(!1),C(!0),f(!1)):(S(!1),O(e.data.errors[0]))}catch(n){S(!1),O("There was an error submitting your payment.")}};return(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("div",{className:"cdc-panel member-panel",children:[(0,Ho.jsx)("h3",{children:"Payments"}),(0,Ho.jsx)("div",{className:"member-table group-table",children:(0,Ho.jsxs)("table",{className:"table table-hover table-striped",children:[(0,Ho.jsx)("thead",{children:(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("th",{children:"Date"}),(0,Ho.jsx)("th",{children:"Amount"}),(0,Ho.jsx)("th",{children:"Type"}),(0,Ho.jsx)("th",{className:"hide-500",children:"Logged By"})]})}),(0,Ho.jsxs)("tbody",{children:[n.map((e=>(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:Oo()(e.pay_date).format("MM/DD/YYYY")}),(0,Ho.jsxs)("td",{children:["$",e.pay_amount]}),(0,Ho.jsxs)("td",{children:[jo(e.pay_method)," ",jo(e.pay_type)]}),(0,Ho.jsxs)("td",{className:"hide-500",children:[e.fname.substring(0,1).toLowerCase(),e.lname.toLowerCase()]})]},e.pay_id))),!n.length&&(0,Ho.jsx)("tr",{children:(0,Ho.jsxs)("td",{colSpan:4,className:"text-center",children:[(0,Ho.jsx)("br",{}),(0,Ho.jsx)("b",{children:"No payment data to display"}),(0,Ho.jsx)("br",{}),"\xa0"]})})]})]})})]}),(0,Ho.jsx)("div",{className:"cdc-panel member-panel",children:(0,Ho.jsx)("div",{className:"pay-form",children:(0,Ho.jsx)("div",{className:"",children:(0,Ho.jsxs)("div",{className:"",children:[(0,Ho.jsx)("h3",{children:"Submit Payment"}),E?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("div",{className:"alert alert-success",style:{fontSize:"16px"},children:[(0,Ho.jsx)("b",{children:"Payment Successful!"}),(0,Ho.jsx)("br",{}),"Please check your email for payment receipt."]}),(0,Ho.jsx)("button",{className:"btn btn-primary",onClick:()=>window.location.reload(),children:"Submit Another Payment"})]}):(0,Ho.jsxs)("div",{children:[""!==M&&(0,Ho.jsx)("div",{className:"alert alert-danger",style:{fontSize:"16px",position:"relative",top:"-12px"},children:(0,Ho.jsx)("b",{children:M})}),(0,Ho.jsxs)("form",{children:[(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Payment Date"}),(0,Ho.jsx)(ii(),{selected:x,className:"form-control",onChange:e=>k(e),disabled:!u})]}),u&&(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Payment Method"}),(0,Ho.jsxs)("select",{name:"ttype",value:p,className:"form-control",onChange:e=>h(e.target.value),children:[(0,Ho.jsx)("option",{value:"cash",children:"Cash"}),(0,Ho.jsx)("option",{value:"credit",children:"Credit Card"}),(0,Ho.jsx)("option",{value:"paypal",children:"PayPal"}),(0,Ho.jsx)("option",{value:"other",children:"Other"})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Payment Type"}),(0,Ho.jsxs)("select",{name:"ttype",value:m,className:"form-control",onChange:e=>{return t=e.target.value,v("renewal"===t?i.edit.data.plan.plan_price:"0.00"),void g(t);var t},children:[(0,Ho.jsx)("option",{value:"renewal",children:"Membership Renewal"}),(0,Ho.jsx)("option",{value:"donation",children:"Donation"})]})]})]}),(0,Ho.jsxs)("div",{className:"col-lg-6",children:[(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Payment Amount"}),(0,Ho.jsxs)("div",{className:"input-group mb-3",children:[(0,Ho.jsx)("span",{className:"input-group-text",children:"$"}),(0,Ho.jsx)("input",{type:"number",className:"form-control",value:y,min:"0",step:"0.01",onChange:e=>v(e.target.value),placeholder:"0.00","aria-label":"Amount (to the nearest dollar)",disabled:!u&&"renewal"===m})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Notes"}),(0,Ho.jsx)("div",{className:"input-group mb-3",children:(0,Ho.jsx)("textarea",{onChange:e=>w(e.target.value),value:b,className:"form-control"})})]})]})]}),"credit"===p&&(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("br",{}),(0,Ho.jsx)("label",{children:"Credit Card"}),(0,Ho.jsx)("div",{className:"form-control",style:{paddingTop:"6px"},children:(0,Ho.jsx)(ai.CardElement,{options:_o})})]})})})]}),(0,Ho.jsxs)("div",{className:"wb-modal-footer",children:["renewal"===m&&(0,Ho.jsxs)("div",{className:"alert alert-success",style:{fontSize:"16px",position:"relative",top:"-12px"},children:["This payment will renew your membership through ",N]}),"credit"===p&&(0,Ho.jsxs)("p",{children:["By clicking the Submit Payment button, you authorize the Penn Hills CDC to charge your credit card in the amount of $",y,". Charges will appear on your statement as PENNHILLSCDC."]}),(0,Ho.jsxs)("button",{className:"btn btn-success",onClick:()=>"credit"===p?(async()=>{if(!A||!P)return;S(!0);const e=P.getElement(ai.CardElement),t=await A.createToken(e);if(t.error)console.log(t.error.message);else{let e="",r="";i.edit.data.members.map(((t,n)=>{n>0&&(e+=", "),e+=t.fname+" "+t.lname,"1"===t.lead&&(r=t.email)}));const o="renewal"===m?{Type:"Membership Renewal",Plan:i.edit.data.plan.plan_name,Price:i.edit.data.plan.plan_price,Members:e,Notes:b}:{Type:"Donation",Donors:e,Amount:"$"+y,Notes:b},a={token:t.token.id,amount:100*parseInt(y),metadata:o,email:r,description:"renewal"===m?"PHCDC Membership "+m+" payment for "+Po():"PHCDC Donation"};try{const e=await Co.post(No()+"/payments/charge",a);console.log("payRes",e),e.data.success&&await _(e.data.chargeResponse)}catch(n){S(!1),O("There was an error processing this credit card.")}}})():_(),disabled:D,children:[" ",D?"Submitting your payment...":"Submit Payment"]})]})]})]})})})})]})})),li=(e,t)=>async n=>{try{const n={group_id:e,plan_id:t};return(await Co.put(No()+"/auth/plan",n)).data.success}catch(r){return console.log("error getting plans"),!1}};var ui="https://js.stripe.com/v3",ci=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,di="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",fi=null,pi=function(e){return null!==fi||(fi=new Promise((function(t,n){if("undefined"!==typeof window&&"undefined"!==typeof document)if(window.Stripe&&e&&console.warn(di),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e=document.querySelectorAll('script[src^="'.concat(ui,'"]')),t=0;t<e.length;t++){var n=e[t];if(ci.test(n.src))return n}return null}();r&&e?console.warn(di):r||(r=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(ui).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n}(e)),r.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),r.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(o){return void n(o)}else t(null)}))),fi},hi=Promise.resolve().then((function(){return pi(null)})),mi=!1;hi.catch((function(e){mi||console.warn(e)}));var gi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];mi=!0;var r=Date.now();return hi.then((function(e){return function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:t})}(r,n),r}(e,t,r)}))};const yi=Jt((e=>({auth:e.auth,members:e.members,plans:e.plans})),{logout:zo,getMemberById:Qo,setGroupPlan:li,getMembers:Ko,getHouseholds:Zo,addToHousehold:Xo})((e=>{const{match:t,auth:n,members:o,getMemberById:i,logout:a,plans:s,setGroupPlan:l,getMembers:u,getHouseholds:c,addToHousehold:d}=e,f=ne()||{id:"0"},p=parseInt(f.id),[h,m]=(0,r.useState)(!1),[g,y]=(0,r.useState)(o.edit.loaded?o.edit.data.plan.plan_name:"Individual"),[v,b]=(0,r.useState)(""),[w,x]=(0,r.useState)([]),[k,D]=(0,r.useState)(""),S=gi(Ao()),E=s.plans.filter((e=>e.plan_name===g)).pop(),C=o.edit.loaded?o.edit.data.plan.plan_name:"",M=async e=>await i(e,"member");return(0,r.useEffect)((()=>{(!o.edit.loaded||o.edit.loaded&&o.edit.memberId!==p)&&(async()=>{await i(p,"member")})()}),[]),o.edit.loaded&&(0,Ho.jsx)(Ho.Fragment,{children:(0,Ho.jsxs)("div",{className:"dashboard",children:[(0,Ho.jsxs)("h3",{className:"title",children:[(0,Ho.jsx)("button",{className:"btn btn-danger btn-sm signout",onClick:()=>a(),children:"Sign Out"}),"Group ",o.edit.loaded?"#"+o.edit.data.groupId:""," Details"]}),(0,Ho.jsxs)("div",{className:"breadcrumb",children:[(0,Ho.jsx)(Ae,{to:"/",children:"Home"})," \xa0\xa0/\xa0\xa0 ",(0,Ho.jsx)(Ae,{to:"/dashboard",children:"Members"})," \xa0\xa0/\xa0 Edit Group"]}),(0,Ho.jsx)("div",{className:"dashboard-body",children:(0,Ho.jsx)("div",{className:"container",children:(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6 col-md-12",children:[(0,Ho.jsx)("div",{className:"cdc-panel member-panel",children:o.edit.loaded&&(0,Ho.jsx)(ri,{groupId:o.edit.data.groupId,membersArray:o.edit.data.members,isAdmin:!0})}),(0,Ho.jsxs)("div",{className:"cdc-panel member-panel",children:[(0,Ho.jsxs)("h3",{children:[h?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("span",{className:"red",onClick:()=>m(!1),style:{marginLeft:"12px"},children:[(0,Ho.jsx)("i",{className:"fas fa-times-circle"})," Cancel"]}),(0,Ho.jsxs)("span",{className:"green",onClick:()=>(async()=>{let e;e="ExistingHousehold"===g?await d(p,parseInt(k)):await l(o.edit.data.groupId,E.plan_id),e?(await M(p),b(""),m(!1),await u()):(m(!1),b("An error occurred while attempting to update this group's plan."))})(),children:[(0,Ho.jsx)("i",{className:"fas fa-save"})," Save"]})]}):(0,Ho.jsxs)("span",{className:"green",onClick:()=>(async()=>{let e=await c();x(e),y(o.edit.loaded?o.edit.data.plan.plan_name:"Individual"),m(!0)})(),children:[(0,Ho.jsx)("i",{className:"fas fa-edit"})," Change Plan"]}),"Group Details"]}),v&&(0,Ho.jsx)("div",{className:"alert alert-danger",children:v}),(0,Ho.jsx)("div",{className:"member-table group-table",children:o.edit.loaded&&(0,Ho.jsx)("table",{className:"table table-hover table-striped",children:h?(0,Ho.jsxs)("tbody",{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{width:125,children:(0,Ho.jsx)("b",{children:"Plan Name"})}),(0,Ho.jsxs)("td",{children:[(0,Ho.jsxs)("select",{value:g,onChange:e=>y(e.target.value),className:"form-control",children:[(0,Ho.jsx)("option",{value:"Individual",children:"Individual"}),(0,Ho.jsx)("option",{value:"Household",children:"Household"}),"Individual"===C&&(0,Ho.jsx)("option",{value:"ExistingHousehold",children:"Existing Household"})]}),"ExistingHousehold"===g&&(0,Ho.jsxs)("select",{value:k,onChange:e=>D(e.target.value),className:"form-control",style:{marginTop:"10px"},children:[(0,Ho.jsx)("option",{value:0,children:"*** Select a Household Plan ***"}),w.map((e=>(0,Ho.jsxs)("option",{value:e.group_id,children:[e.group_id,": ",e.group_title]},e.group_id)))]})]})]}),"ExistingHousehold"!==g&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Plan Price"})}),(0,Ho.jsxs)("td",{children:["$",E.plan_price,"/yr"]})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Seats"})}),(0,Ho.jsx)("td",{children:E.plan_seats})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Paid Through"})}),(0,Ho.jsx)("td",{children:o.edit.data.members[0].paid_thru})]})]})]}):(0,Ho.jsxs)("tbody",{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{width:125,children:(0,Ho.jsx)("b",{children:"Plan Name"})}),(0,Ho.jsx)("td",{children:o.edit.data.plan.plan_name})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Plan Price"})}),(0,Ho.jsxs)("td",{children:["$",o.edit.data.plan.plan_price,"/yr"]})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Seats"})}),(0,Ho.jsxs)("td",{children:[o.edit.data.members.length," / ",o.edit.data.plan.plan_seats]})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Paid Through"})}),(0,Ho.jsx)("td",{children:o.edit.data.members[0].paid_thru})]})]})})})]})]}),(0,Ho.jsx)("div",{className:"col-lg-6 col-md-12",children:o.edit.loaded&&(0,Ho.jsx)(ai.Elements,{stripe:S,children:(0,Ho.jsx)(si,{groupId:o.edit.data.groupId,paymentsArray:o.edit.data.payments,refreshGroup:M,memberId:p,isAdmin:!0})})})]})})})]})})})),vi=Jt((e=>({})),{})((e=>{const{}=e,t={lname:"",fname:"",email:"",phone:"",address1:"",address2:"",city:"Penn Hills",state:"PA",zip:"15235",plan_id:"1",password:""},[n,o]=(0,r.useState)(t),[i,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(""),[u,c]=(0,r.useState)(!1),[d,f]=(0,r.useState)(!1),[p,h]=(0,r.useState)(""),m=(Po(),(0,ai.useStripe)()),g=(0,ai.useElements)(),y=(e,t)=>{let r=(0,Ze.A)({},n);console.log(e,t),"phone"===e&&"1"===(t=t.replace(/\D/g,"")).substr(0,1)&&(t=t.substr(1)),r[e]=t,o(r)},v=async()=>{if(c(!1),!m||!g)return;a(!0),l("");if((()=>{let e=!0;return n.lname.length?n.fname.length?To(n.email)?n.phone.length?n.address1.length?n.city.length?n.state.length?n.zip.length||(e=!1,l("Zip Code is a required field.")):(e=!1,l("State is a required field.")):(e=!1,l("City is a required field.")):(e=!1,l("Address 1 is a required field.")):(e=!1,l("Phone Number is a required field.")):(e=!1,l("Please enter a valid email address.")):(e=!1,l("First Name is a required field.")):(e=!1,l("Last Name is a required field.")),e||a(!1),e})()){const t=g.getElement(ai.CardElement),r=await m.createToken(t);if(r.error)console.log(r.error.message);else{const t={Type:"New Membership",Plan:"1"===n.plan_id?"Individual":"Household",Price:"1"===n.plan_id?"$20":"$40",Members:n.fname+" "+n.lname,Notes:""},o={token:r.token.id,amount:"1"===n.plan_id?2e3:4e3,metadata:t,email:n.email,description:"New PHCDC Membership payment for "+Po()};try{const e=await Co.post(No()+"/payments/charge",o);console.log("payRes",e),e.data.success&&await b(e.data.chargeResponse)}catch(e){a(!1),l("There was an error processing this credit card.")}}}},b=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(!0);const r={group_id:null,user_id:null,pay_date:parseInt(Oo()().format("YYYYMMDD")),pay_amount:"1"===n.plan_id?20:40,pay_method:"credit",pay_type:"newMembership",logged_by:null,pay_details:"",pay_data:e,year_applied:Po(),new_user:n};try{let e=await Co.post(No()+"/members/account",r);e.data.success?(a(!1),h(n.plan_id),o(t),a(!1),l("")):(a(!1),l(e.data.errors[0]))}catch(i){a(!1),l("There was an error submitting your payment."+i.errors[0])}};return(0,Ho.jsxs)("div",{className:"member-form",children:[(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsx)("h4",{children:"New Member Registration"})})}),""!==p?(0,Ho.jsx)(Ho.Fragment,{children:(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsxs)("div",{className:"col-sm-12",children:[(0,Ho.jsxs)("div",{className:"alert alert-success",style:{fontSize:"16px"},children:[(0,Ho.jsx)("b",{children:"Registration Successful!"}),"1"===p?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)("br",{}),"You may now sign in to your account using the email address and password you specified."]}):(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)("br",{}),"You may now sign in to your account using the email address and password you specified. There you can add the remaining members of your household."]})]}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)(Ae,{to:"/login",className:"btn btn-success",children:"\xa0 \xa0 Sign In \xa0 \xa0"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]})})}):(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("div",{className:"form-group check-choices",children:[(0,Ho.jsx)("h5",{children:"Choose a plan:"}),(0,Ho.jsxs)("div",{className:"check-choice"+("1"===n.plan_id?" selected":""),onClick:()=>y("plan_id","1"),children:[(0,Ho.jsx)("i",{className:"fa-circle"+("1"===n.plan_id?" fas":" far")}),(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("b",{children:"Individual \xa0 \xa0 ($20/year)"}),(0,Ho.jsx)("br",{}),"Choose this option if you are joining by yourself."]})]}),(0,Ho.jsxs)("div",{className:"check-choice"+("2"===n.plan_id?" selected":""),onClick:()=>y("plan_id","2"),children:[(0,Ho.jsx)("i",{className:"fa-circle"+("2"===n.plan_id?" fas":" far")}),(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("b",{children:"Household \xa0 \xa0 ($40/year)"}),(0,Ho.jsx)("br",{}),"Choose this option if more than one person in your household will be a member. Other members can be added once your registration is complete."]})]})]}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsx)("div",{className:"col-12",children:"1"===n.plan_id?(0,Ho.jsx)("h5",{children:"Your Information:"}):(0,Ho.jsx)("h5",{children:"Primary Member Info:"})}),(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"First Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"fname",value:n.fname,onChange:e=>y(e.target.name,e.target.value)})]})}),(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Last Name"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"lname",value:n.lname,onChange:e=>y(e.target.name,e.target.value)})]})})]}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"email",value:n.email,onChange:e=>y(e.target.name,e.target.value)})]})}),(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Phone (numeric)"}),(0,Ho.jsx)("input",{type:"number",className:"form-control",name:"phone",value:n.phone,maxLength:10,onChange:e=>y(e.target.name,e.target.value),placeholder:"4125551212"})]})})]}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 1"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address1",value:n.address1,onChange:e=>y(e.target.name,e.target.value)})]})}),(0,Ho.jsx)("div",{className:"col-6",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Address 2"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"address2",value:n.address2,onChange:e=>y(e.target.name,e.target.value)})]})})]}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsx)("div",{className:"col-4",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"City"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"city",value:n.city,onChange:e=>y(e.target.name,e.target.value)})]})}),(0,Ho.jsx)("div",{className:"col-4",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"State"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"state",value:n.state,maxLength:2,onChange:e=>y(e.target.name,e.target.value)})]})}),(0,Ho.jsx)("div",{className:"col-4",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Zip Code"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",name:"zip",value:n.zip,maxLength:5,onChange:e=>y(e.target.name,e.target.value)})]})})]}),(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsxs)("div",{className:"col-sm-12",children:[(0,Ho.jsx)("br",{}),(0,Ho.jsx)("h5",{children:"Account Security:"}),(0,Ho.jsx)("label",{children:"Create Account Password:"}),(0,Ho.jsxs)("div",{className:"input-group mb-3",children:[(0,Ho.jsx)("input",{type:d?"text":"password",className:"form-control",name:"password",value:n.password,onChange:e=>y(e.target.name,e.target.value)}),(0,Ho.jsx)("span",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"fas fa-fw "+(d?"fa-eye-slash":"fa-eye"),onClick:()=>f(!d)})})]})]})}),(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsxs)("div",{className:"col-sm-12",children:[(0,Ho.jsx)("br",{}),(0,Ho.jsx)("h5",{children:"Payment Information:"}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Credit Card"}),(0,Ho.jsx)("div",{className:"form-control",style:{padding:"8px 14px 20px",height:"40px"},children:(0,Ho.jsx)(ai.CardElement,{options:_o})})]})]})}),(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsxs)("div",{className:"col-sm-12",children:[(0,Ho.jsxs)("p",{children:["By clicking the Submit Payment button, you authorize the Penn Hills CDC to charge your credit card in the amount of ","1"===n.plan_id?"$20.00":"$40.00 ",". Charges will appear on your statement as PENNHILLSCDC."]}),""!==s&&(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsx)("div",{className:"alert alert-danger",style:{fontSize:"16px",marginTop:"24px"},children:(0,Ho.jsx)("b",{children:s})})})}),u&&(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsxs)("div",{className:"alert alert-danger",style:{fontSize:"16px",marginTop:"24px"},children:[(0,Ho.jsx)("b",{children:"Account Already Exists"}),(0,Ho.jsx)("br",{}),"It appears an account already exists for this member. Try using the ",(0,Ho.jsx)(Ae,{to:"/pwreset",children:'"Password Reset"'})," form to recover your password."]})})}),(0,Ho.jsx)("button",{className:"btn btn-success",style:{marginTop:"16px",paddingLeft:"20px",paddingRight:"20px"},onClick:()=>(async()=>{c(!1),(await Co.post(No()+"/members/exists",n)).data.success?v():c(!0)})(),disabled:i,children:"\xa0 \xa0 Submit Payment \xa0 \xa0"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]})})]})]})})),bi=Jt((e=>({auth:e.auth})),{setAlert:Ge,login:Lo,logout:zo,register:e=>async t=>{try{const n=await Co.post(No()+"/auth/user",e);return n.data.success?(t(Je("registerError")),n.data):n.data}catch(n){return{success:!1}}}})((e=>{const{auth:t,setAlert:n,login:o,logout:i,register:a}=e,[s,l]=(0,r.useState)(""),[u,c]=(0,r.useState)(""),[d,f]=(0,r.useState)(""),[p,h]=(0,r.useState)(""),[m,g]=(0,r.useState)(!1),[y,v]=(0,r.useState)(""),[b,w]=(0,r.useState)(""),x=gi(Ao());return(0,Ho.jsxs)("div",{className:"pf-login",id:"homescreen",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),""===b?(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[""!==y&&(0,Ho.jsx)("div",{className:"alert alert-danger",children:(0,Ho.jsx)("b",{children:"An error occurred creating your account"})}),(0,Ho.jsx)(ai.Elements,{stripe:x,children:(0,Ho.jsx)(vi,{})})]}):(0,Ho.jsx)("div",{className:"container",children:(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsxs)("div",{className:"alert alert-success",children:[(0,Ho.jsx)("b",{children:"Registration Success!"}),(0,Ho.jsx)("br",{}),"Your account has been created successfully. An administrator has been notified of your registration. Please await further instruction.",(0,Ho.jsx)("br",{}),"\xa0",(0,Ho.jsx)("p",{children:(0,Ho.jsx)(Ae,{to:"/",children:"Back to Home Page"})})]})})})})]})})),wi=Jt((e=>({auth:e.auth,members:e.members,plans:e.plans})),{logout:zo,setGroupPlan:li,addToHousehold:Xo,clearMember:()=>async e=>{e({type:He,payload:null})},getHouseholds:Zo,getMemberById:Qo,getMembers:Ko,updatePassword:Bo})((e=>{const{auth:t,members:n,plans:o,logout:i,addToHousehold:a,setGroupPlan:s,clearMember:l,getHouseholds:u,getMemberById:c,getMembers:d,updatePassword:f}=e,[p,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(n.edit.loaded?n.edit.data.plan.plan_name:"Individual"),[y,v]=(0,r.useState)(""),[b,w]=(0,r.useState)([]),[x,k]=(0,r.useState)(""),[D,S]=(0,r.useState)(0),[E,C]=(0,r.useState)(!1),M=gi(Ao()),O=o.plans.filter((e=>e.plan_name===m)).pop(),N=n.edit.loaded?n.edit.data.plan.plan_name:"",A=async e=>{let n=await c(e,"user"),r=0;n.members.map((e=>{e.user_id===t.user_id&&(r=e.user_id)})),S(r)};return(0,r.useEffect)((()=>{n.edit.loaded||A(t.user_id)}),[n.edit.loaded]),(0,Ho.jsx)(Ho.Fragment,{children:(0,Ho.jsx)("div",{className:"dashboard",children:(0,Ho.jsx)("div",{className:"dashboard-body",children:(0,Ho.jsxs)("div",{className:"container",children:[(0,Ho.jsx)("div",{className:"row",children:(0,Ho.jsx)("div",{className:"col-sm-12",children:(0,Ho.jsxs)("h3",{className:"mytitle",children:[(0,Ho.jsx)("div",{children:"My PHCDC Account"}),(0,Ho.jsxs)("div",{children:[(0,Ho.jsx)("button",{className:"btn btn-warning btn-sm",onClick:()=>C(!E),children:"Change Password"}),"\xa0",(0,Ho.jsx)("button",{className:"btn btn-danger btn-sm",onClick:()=>i(),children:"Sign Out"})]})]})})}),(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-lg-6 col-md-12",children:[E&&(0,Ho.jsx)(ti,{cancel:()=>{C(!1)}}),(0,Ho.jsx)("div",{className:"cdc-panel member-panel",children:(0,Ho.jsxs)("a",{href:"https://pennhillscdc.org/sms",target:"_blank",style:{fontSize:"18px",color:"#222222"},children:[(0,Ho.jsx)("i",{className:"fas fa-sms",style:{fontSize:"24px",color:"#ec7a17"}}),"\xa0\xa0Sign up to receive text alerts from the PHCDC \xa0\xa0",(0,Ho.jsx)("i",{className:"fas fa-chevron-double-right",style:{fontSize:"18px",color:"#ec7a17"}})]})}),(0,Ho.jsxs)("div",{className:"cdc-panel member-panel",children:[(0,Ho.jsxs)("h3",{children:[p?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("span",{className:"red",onClick:()=>h(!1),style:{marginLeft:"12px"},children:[(0,Ho.jsx)("i",{className:"fas fa-times-circle"})," Cancel"]}),(0,Ho.jsxs)("span",{className:"green",onClick:()=>(async()=>{let e;e="ExistingHousehold"===m?await a(D,parseInt(x)):await s(n.edit.data.groupId,O.plan_id),e?(await A(D),v(""),h(!1),await d()):(h(!1),v("An error occurred while attempting to update this group's plan."))})(),children:[(0,Ho.jsx)("i",{className:"fas fa-save"})," Save"]})]}):(0,Ho.jsx)(Ho.Fragment,{}),"Plan Details"]}),y&&(0,Ho.jsx)("div",{className:"alert alert-danger",children:y}),(0,Ho.jsx)("div",{className:"member-table group-table",children:n.edit.loaded&&(0,Ho.jsx)("table",{className:"table table-hover table-striped",children:p?(0,Ho.jsxs)("tbody",{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{width:125,children:(0,Ho.jsx)("b",{children:"Plan Name"})}),(0,Ho.jsxs)("td",{children:[(0,Ho.jsxs)("select",{value:m,onChange:e=>g(e.target.value),className:"form-control",children:[(0,Ho.jsx)("option",{value:"Individual",children:"Individual"}),(0,Ho.jsx)("option",{value:"Household",children:"Household"}),"Individual"===N&&(0,Ho.jsx)("option",{value:"ExistingHousehold",children:"Existing Household"})]}),"ExistingHousehold"===m&&(0,Ho.jsxs)("select",{value:x,onChange:e=>k(e.target.value),className:"form-control",style:{marginTop:"10px"},children:[(0,Ho.jsx)("option",{value:0,children:"*** Select a Household Plan ***"}),b.map((e=>(0,Ho.jsxs)("option",{value:e.group_id,children:[e.group_id,": ",e.group_title]},e.group_id)))]})]})]}),"ExistingHousehold"!==m&&(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Plan Price"})}),(0,Ho.jsxs)("td",{children:["$",O.plan_price,"/yr"]})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Seats"})}),(0,Ho.jsx)("td",{children:O.plan_seats})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Paid Through"})}),(0,Ho.jsx)("td",{children:"1999"===n.edit.data.members[0].paid_thru?"-":n.edit.data.members[0].paid_thru})]})]})]}):(0,Ho.jsxs)("tbody",{children:[(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{width:125,children:(0,Ho.jsx)("b",{children:"Plan Name"})}),(0,Ho.jsx)("td",{children:n.edit.data.plan.plan_name})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Plan Price"})}),(0,Ho.jsxs)("td",{children:["$",n.edit.data.plan.plan_price,"/yr"]})]}),"Individual"!==n.edit.data.plan.plan_name&&(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Seats"})}),(0,Ho.jsxs)("td",{children:[n.edit.data.members.length," / ",n.edit.data.plan.plan_seats]})]}),(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:(0,Ho.jsx)("b",{children:"Paid Through"})}),(0,Ho.jsx)("td",{children:"1999"===n.edit.data.members[0].paid_thru?"-":n.edit.data.members[0].paid_thru})]})]})})}),(0,Ho.jsx)("br",{}),n.edit.loaded&&(0,Ho.jsx)(ri,{groupId:n.edit.data.groupId,membersArray:n.edit.data.members,isAdmin:!1})]})]}),(0,Ho.jsx)("div",{className:"col-lg-6 col-md-12",children:n.edit.loaded&&(0,Ho.jsx)(ai.Elements,{stripe:M,children:(0,Ho.jsx)(si,{groupId:n.edit.data.groupId,paymentsArray:n.edit.data.payments,refreshGroup:A,memberId:D,userId:t.user_id,isAdmin:!1})})})]})]})})})})}));function xi(e){this.content=e}xi.prototype={constructor:xi,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,o=r.find(e),i=r.content.slice();return-1==o?i.push(n||e,t):(i[o+1]=t,n&&(i[o]=n)),new xi(i)},remove:function(e){var t=this.find(e);if(-1==t)return this;var n=this.content.slice();return n.splice(t,2),new xi(n)},addToStart:function(e,t){return new xi([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new xi(n)},addBefore:function(e,t,n){var r=this.remove(t),o=r.content.slice(),i=r.find(e);return o.splice(-1==i?o.length:i,0,t,n),new xi(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=xi.from(e)).size?new xi(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=xi.from(e)).size?new xi(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=xi.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach((function(t,n){e[t]=n})),e},get size(){return this.content.length>>1}},xi.from=function(e){if(e instanceof xi)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new xi(t)};const ki=xi;function Di(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let o=e.child(r),i=t.child(r);if(o!=i){if(!o.sameMarkup(i))return n;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)n++;return n}if(o.content.size||i.content.size){let e=Di(o.content,i.content,n+1);if(null!=e)return e}n+=o.nodeSize}else n+=o.nodeSize}}function Si(e,t,n,r){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:n,b:r};let a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:n,b:r};if(a.isText&&a.text!=s.text){let e=0,t=Math.min(a.text.length,s.text.length);for(;e<t&&a.text[a.text.length-e-1]==s.text[s.text.length-e-1];)e++,n--,r--;return{a:n,b:r}}if(a.content.size||s.content.size){let e=Si(a.content,s.content,n-1,r-1);if(e)return e}n-=l,r-=l}else n-=l,r-=l}}class Ei{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let n=0;n<e.length;n++)this.size+=e[n].nodeSize}nodesBetween(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4?arguments[4]:void 0;for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==n(s,r+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),n,r+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let o="",i=!0;return this.nodesBetween(e,t,((a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?r?"function"===typeof r?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&n&&(i?i=!1:o+=n),o+=l}),0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),o=1);o<e.content.length;o++)r.push(e.content[o]);return new Ei(r,this.size+e.size)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==e&&t==this.size)return this;let n=[],r=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),n.push(a),r+=a.nodeSize),i=s}return new Ei(n,r)}cutByIndex(e,t){return e==t?Ei.empty:0==e&&t==this.content.length?this:new Ei(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),o=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new Ei(r,o)}addToStart(e){return new Ei([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ei(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e){return Di(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}findDiffEnd(e){return Si(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size)}findIndex(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(0==e)return Mi(0,e);if(e==this.size)return Mi(this.content.length,e);if(e>this.size||e<0)throw new RangeError("Position ".concat(e," outside of fragment (").concat(this,")"));for(let n=0,r=0;;n++){let o=r+this.child(n).nodeSize;if(o>=e)return o==e||t>0?Mi(n+1,o):Mi(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return Ei.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ei(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ei.empty;let t,n=0;for(let r=0;r<e.length;r++){let o=e[r];n+=o.nodeSize,r&&o.isText&&e[r-1].sameMarkup(o)?(t||(t=e.slice(0,r)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new Ei(t||e,n)}static from(e){if(!e)return Ei.empty;if(e instanceof Ei)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ei([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ei.empty=new Ei([],0);const Ci={index:0,offset:0};function Mi(e,t){return Ci.index=e,Ci.offset=t,Ci}function Oi(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!Oi(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Oi(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}class Ni{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let o=e[r];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,r));else{if(o.type.excludes(this.type))return e;!n&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(o)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Oi(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let n=e.marks[t.type];if(!n)throw new RangeError("There is no mark type ".concat(t.type," in this schema"));let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return Ni.none;if(e instanceof Ni)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}Ni.none=[];class Ai extends Error{}class Pi{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=ji(this.content,e+this.openStart,t);return n&&new Pi(n,this.openStart,this.openEnd)}removeBetween(e,t){return new Pi(_i(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return Pi.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new Pi(Ei.fromJSON(e,t.content),n,r)}static maxOpen(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0,r=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)n++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)r++;return new Pi(e,n,r)}}function _i(e,t,n){let{index:r,offset:o}=e.findIndex(t),i=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(o==t||i.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,i.copy(_i(i.content,t-o-1,n-o-1)))}function ji(e,t,n,r){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return r&&!r.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=ji(a.content,t-i-1,n);return s&&e.replaceChild(o,a.copy(s))}function Ti(e,t,n){if(n.openStart>e.depth)throw new Ai("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ai("Inconsistent open depths");return Ri(e,t,n,0)}function Ri(e,t,n,r){let o=e.index(r),i=e.node(r);if(o==t.index(r)&&r<e.depth-n.openStart){let a=Ri(e,t,n,r+1);return i.copy(i.content.replaceChild(o,a))}if(n.content.size){if(n.openStart||n.openEnd||e.depth!=r||t.depth!=r){let{start:o,end:a}=function(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let o=n-1;o>=0;o--)r=t.node(o).copy(Ei.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}(n,e);return Bi(i,Yi(e,o,a,t,r))}{let r=e.parent,o=r.content;return Bi(r,o.cut(0,e.parentOffset).append(n.content).append(o.cut(t.parentOffset)))}}return Bi(i,Hi(e,t,r))}function Fi(e,t){if(!t.type.compatibleContent(e.type))throw new Ai("Cannot join "+t.type.name+" onto "+e.type.name)}function Ii(e,t,n){let r=e.node(n);return Fi(r,t.node(n)),r}function Li(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function zi(e,t,n,r){let o=(t||e).node(n),i=0,a=t?t.index(n):o.childCount;e&&(i=e.index(n),e.depth>n?i++:e.textOffset&&(Li(e.nodeAfter,r),i++));for(let s=i;s<a;s++)Li(o.child(s),r);t&&t.depth==n&&t.textOffset&&Li(t.nodeBefore,r)}function Bi(e,t){return e.type.checkContent(t),e.copy(t)}function Yi(e,t,n,r,o){let i=e.depth>o&&Ii(e,t,o+1),a=r.depth>o&&Ii(n,r,o+1),s=[];return zi(null,e,o,s),i&&a&&t.index(o)==n.index(o)?(Fi(i,a),Li(Bi(i,Yi(e,t,n,r,o+1)),s)):(i&&Li(Bi(i,Hi(e,t,o+1)),s),zi(t,n,o,s),a&&Li(Bi(a,Hi(n,r,o+1)),s)),zi(r,null,o,s),new Ei(s)}function Hi(e,t,n){let r=[];if(zi(null,e,n,r),e.depth>n){Li(Bi(Ii(e,t,n+1),Hi(e,t,n+1)),r)}return zi(t,null,n,r),new Ei(r)}Pi.empty=new Pi(Ei.empty,0,0);class Wi{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let o=0;o<e;o++)r+=n.child(o).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return Ni.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let o=n.marks;for(var i=0;i<o.length;i++)!1!==o[i].type.spec.inclusive||r&&o[i].isInSet(r.marks)||(o=o[i--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var o=0;o<n.length;o++)!1!==n[o].type.spec.inclusive||r&&n[o].isInSet(r.marks)||(n=n[o--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new qi(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,o=t;for(let i=e;;){let{index:e,offset:t}=i.content.findIndex(o),a=o-t;if(n.push(i,e,r+t),!a)break;if(i=i.child(e),i.isText)break;o=a-1,r+=t+1}return new Wi(t,n,o)}static resolveCached(e,t){let n=$i.get(e);if(n)for(let o=0;o<n.elts.length;o++){let e=n.elts[o];if(e.pos==t)return e}else $i.set(e,n=new Vi);let r=n.elts[n.i]=Wi.resolve(e,t);return n.i=(n.i+1)%Ui,r}}class Vi{constructor(){this.elts=[],this.i=0}}const Ui=12,$i=new WeakMap;class qi{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Ki=Object.create(null);class Qi{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ni.none;this.type=e,this.attrs=t,this.marks=r,this.content=n||Ei.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&Oi(this.attrs,t||e.defaultAttrs||Ki)&&Ni.sameSet(this.marks,n||Ni.none)}copy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e==this.content?this:new Qi(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Qi(this.type,this.attrs,this.content,e)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return Pi.empty;let r=this.resolve(e),o=this.resolve(t),i=n?0:r.sharedDepth(t),a=r.start(i),s=r.node(i).content.cut(r.pos-a,o.pos-a);return new Pi(s,r.depth-i,o.depth-i)}replace(e,t,n){return Ti(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Wi.resolveCached(this,e)}resolveNoCache(e){return Wi.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,(e=>(n.isInSet(e.marks)&&(r=!0),!r))),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Ji(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ei.empty,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.childCount,i=this.contentMatchAt(e).matchFragment(n,r,o),a=i&&i.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let s=r;s<o;s++)if(!this.type.allowsMarks(n.child(s).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let o=this.contentMatchAt(e).matchType(n),i=o&&o.matchFragment(this.content,t);return!!i&&i.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Ni.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!Ni.sameSet(e,this.marks))throw new RangeError("Invalid collection of marks for node ".concat(this.type.name,": ").concat(this.marks.map((e=>e.type.name))));this.content.forEach((e=>e.check()))}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map((e=>e.toJSON()))),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=Ei.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,r,n);return o.type.checkAttrs(o.attrs),o}}Qi.prototype.text=void 0;class Gi extends Qi{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ji(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Gi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Gi(this.type,this.attrs,e,this.marks)}cut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Ji(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class Zi{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new Xi(e,t);if(null==n.next)return Zi.empty;let r=ea(n);n.next&&n.err("Unexpected trailing text");let o=function(e){let t=Object.create(null);return n(aa(e,0));function n(r){let o=[];r.forEach((t=>{e[t].forEach((t=>{let n,{term:r,to:i}=t;if(r){for(let e=0;e<o.length;e++)o[e][0]==r&&(n=o[e][1]);aa(e,i).forEach((e=>{n||o.push([r,n=[]]),-1==n.indexOf(e)&&n.push(e)}))}}))}));let i=t[r.join(",")]=new Zi(r.indexOf(e.length-1)>-1);for(let e=0;e<o.length;e++){let r=o[e][1].sort(ia);i.next.push({type:o[e][0],next:t[r.join(",")]||n(r)})}return i}}(function(e){let t=[[]];return o(i(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let o={term:r,to:n};return t[e].push(o),o}function o(e,t){e.forEach((e=>e.to=t))}function i(e,t){if("choice"==e.type)return e.exprs.reduce(((e,n)=>e.concat(i(n,t))),[]);if("seq"!=e.type){if("star"==e.type){let a=n();return r(t,a),o(i(e.expr,a),a),[r(a)]}if("plus"==e.type){let a=n();return o(i(e.expr,t),a),o(i(e.expr,a),a),[r(a)]}if("opt"==e.type)return[r(t)].concat(i(e.expr,t));if("range"==e.type){let a=t;for(let t=0;t<e.min;t++){let t=n();o(i(e.expr,a),t),a=t}if(-1==e.max)o(i(e.expr,a),a);else for(let t=e.min;t<e.max;t++){let t=n();r(a,t),o(i(e.expr,a),t),a=t}return[r(a)]}if("name"==e.type)return[r(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let r=0;;r++){let a=i(e.exprs[r],t);if(r==e.exprs.length-1)return a;o(a,t=n())}}}(r));return function(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],o=!e.validEnd,i=[];for(let t=0;t<e.next.length;t++){let{type:n,next:a}=e.next[t];i.push(n.name),!o||n.isText||n.hasRequiredAttrs()||(o=!1),-1==r.indexOf(a)&&r.push(a)}o&&t.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(o,n),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,r=this;for(let o=t;r&&o<n;o++)r=r.matchType(e.child(o).type);return r}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[this];return function o(i,a){let s=i.matchFragment(e,n);if(s&&(!t||s.validEnd))return Ei.from(a.map((e=>e.createAndFill())));for(let e=0;e<i.next.length;e++){let{type:t,next:n}=i.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==r.indexOf(n)){r.push(n);let e=o(n,a.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let n=0;n<this.wrapCache.length;n+=2)if(this.wrapCache[n]==e)return this.wrapCache[n+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),o=r.match;if(o.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<o.next.length;e++){let{type:i,next:a}=o.next[e];i.isLeaf||i.hasRequiredAttrs()||i.name in t||r.type&&!a.validEnd||(n.push({match:i.contentMatch,type:i,via:r}),t[i.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError("There's no ".concat(e,"th edge in this content match"));return this.next[e]}toString(){let e=[];return function t(n){e.push(n);for(let r=0;r<n.next.length;r++)-1==e.indexOf(n.next[r].next)&&t(n.next[r].next)}(this),e.map(((t,n)=>{let r=n+(t.validEnd?"*":" ")+" ";for(let o=0;o<t.next.length;o++)r+=(o?", ":"")+t.next[o].type.name+"->"+e.indexOf(t.next[o].next);return r})).join("\n")}}Zi.empty=new Zi(!0);class Xi{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function ea(e){let t=[];do{t.push(ta(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function ta(e){let t=[];do{t.push(na(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function na(e){let t=function(e){if(e.eat("(")){let t=ea(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let o=[];for(let i in n){let e=n[i];e.isInGroup(t)&&o.push(e)}0==o.length&&e.err("No node type or group '"+t+"' found");return o}(e,e.next).map((t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t})));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=oa(e,t)}return t}function ra(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function oa(e,t){let n=ra(e),r=n;return e.eat(",")&&(r="}"!=e.next?ra(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function ia(e,t){return t-e}function aa(e,t){let n=[];return function t(r){let o=e[r];if(1==o.length&&!o[0].term)return t(o[0].to);n.push(r);for(let e=0;e<o.length;e++){let{term:r,to:i}=o[e];r||-1!=n.indexOf(i)||t(i)}}(t),n.sort(ia)}function sa(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function la(e,t){let n=Object.create(null);for(let r in e){let o=t&&t[r];if(void 0===o){let t=e[r];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+r);o=t.default}n[r]=o}return n}function ua(e,t,n,r){for(let o in t)if(!(o in e))throw new RangeError("Unsupported attribute ".concat(o," for ").concat(n," of type ").concat(o));for(let o in e){let n=e[o];n.validate&&n.validate(t[o])}}function ca(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new fa(e,r,t[r]);return n}class da{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(" "):[],this.attrs=ca(e,n.attrs),this.defaultAttrs=sa(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Zi.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:la(this.attrs,e)}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Qi(this,this.computeAttrs(e),Ei.from(t),Ni.setFrom(n))}createChecked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return t=Ei.from(t),this.checkContent(t),new Qi(this,this.computeAttrs(e),t,Ni.setFrom(n))}createAndFill(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),t=Ei.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),o=r&&r.fillBefore(Ei.empty,!0);return o?new Qi(this,e,t.append(o),Ni.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let n=0;n<e.childCount;n++)if(!this.allowsMarks(e.child(n).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError("Invalid content for node ".concat(this.name,": ").concat(e.toString().slice(0,50)))}checkAttrs(e){ua(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||(t=e.slice(0,n));return t?t.length?t:Ni.none:e}static compile(e,t){let n=Object.create(null);e.forEach(((e,r)=>n[e]=new da(e,t,r)));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let o in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class fa{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,"default"),this.default=n.default,this.validate="string"==typeof n.validate?function(e,t,n){let r=n.split("|");return n=>{let o=null===n?"null":typeof n;if(r.indexOf(o)<0)throw new RangeError("Expected value of type ".concat(r," for attribute ").concat(t," on type ").concat(e,", got ").concat(o))}}(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}}class pa{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ca(e,r.attrs),this.excluded=null;let o=sa(this.attrs);this.instance=o?new Ni(this,o):null}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new Ni(this,la(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach(((e,o)=>n[e]=new pa(e,r++,t,o))),n}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){ua(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class ha{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=ki.from(e.nodes),t.marks=ki.from(e.marks||{}),this.nodes=da.compile(this.spec.nodes,this),this.marks=pa.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",o=e.spec.marks;if(e.contentMatch=n[t]||(n[t]=Zi.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==o?null:o?ma(this,o.split(" ")):""!=o&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:ma(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof da))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Gi(n,n.defaultAttrs,e,Ni.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return Qi.fromJSON(this,e)}markFromJSON(e){return Ni.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ma(e,t){let n=[];for(let r=0;r<t.length;r++){let o=t[r],i=e.marks[o],a=i;if(i)n.push(i);else for(let t in e.marks){let r=e.marks[t];("_"==o||r.spec.group&&r.spec.group.split(" ").indexOf(o)>-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class ga{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach((e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)}))}parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new ka(this,t,!1);return n.addAll(e,Ni.none,t.from,t.to),n.finish()}parseSlice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new ka(this,t,!0);return n.addAll(e,Ni.none,t.from,t.to),Pi.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Da(e,n.tag)&&(void 0===n.namespace||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(!1===t)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let o=r?this.styles.indexOf(r)+1:0;o<this.styles.length;o++){let r=this.styles[o],i=r.style;if(!(0!=i.indexOf(e)||r.context&&!n.matchesContext(r.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((null==e.priority?50:e.priority)<n)break}t.splice(r,0,e)}for(let r in e.marks){let t=e.marks[r].spec.parseDOM;t&&t.forEach((e=>{n(e=Sa(e)),e.mark||e.ignore||e.clearMark||(e.mark=r)}))}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach((e=>{n(e=Sa(e)),e.node||e.ignore||e.mark||(e.node=r)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new ga(e,ga.schemaRules(e)))}}const ya={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},va={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ba={ol:!0,ul:!0};function wa(e,t,n){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&n}class xa{constructor(e,t,n,r,o,i){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=i,this.content=[],this.activeMarks=Ni.none,this.match=o||(4&i?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(Ei.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=Ei.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(Ei.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!ya.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ka{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r,o=t.topNode,i=wa(null,t.preserveWhitespace,0)|(n?4:0);r=o?new xa(o.type,o.attrs,Ni.none,!0,t.topMatch||o.type.contentMatch,i):new xa(n?null:e.schema.topNodeType,null,Ni.none,!0,null,i),this.nodes=[r],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,o=2&r.options?"full":this.localPreserveWS||(1&r.options)>0;if("full"===o||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(o)n="full"!==o?n.replace(/\r?\n|\r/g," "):n.replace(/\r\n?/g,"\n");else if(n=n.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],o=e.previousSibling;(!t||o&&"BR"==o.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(this.parser.schema.text(n),t),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,o=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i,a=e.nodeName.toLowerCase();ba.hasOwnProperty(a)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ba.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,n));e:if(s?s.ignore:va.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(ya.hasOwnProperty(a))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),n=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let i=s&&s.skip?t:this.readStyles(e,t);i&&this.addAll(e,i),n&&this.sync(o),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,!1===s.consuming?i:void 0)}this.localPreserveWS=r}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let e=this.parser.matchedStyles[r],o=n.getPropertyValue(e);if(o)for(let n;;){let r=this.parser.matchStyle(e,o,this,n);if(!r)break;if(r.ignore)return null;if(t=r.clearMark?t.filter((e=>!r.clearMark(e))):t.concat(this.parser.schema.marks[r.mark].create(r.attrs)),!1!==r.consuming)break;n=r}}return t}addElementByRule(e,t,n,r){let o,i;if(t.node)if(i=this.parser.schema.nodes[t.node],i.isLeaf)this.insertNode(i.create(t.attrs),n)||this.leafFallback(e,n);else{let e=this.enter(i,t.attrs||null,n,t.preserveWhitespace);e&&(o=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e,n)));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}o&&this.sync(a)&&this.open--}addAll(e,t,n,r){let o=n||0;for(let i=n?e.childNodes[n]:e.firstChild,a=null==r?null:e.childNodes[r];i!=a;i=i.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(i,t);this.findAtPoint(e,o)}findPlace(e,t){let n,r;for(let o=this.open;o>=0;o--){let t=this.nodes[o],i=t.findWrapping(e);if(i&&(!n||n.length>i.length)&&(n=i,r=t,!i.length))break;if(t.solid)break}if(!n)return null;this.sync(r);for(let o=0;o<n.length;o++)t=this.enterInner(n[o],null,t,!1);return t}insertNode(e,t){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=Ni.none;for(let o of n.concat(e.marks))(t.type?t.type.allowsMarkType(o.type):Ea(o.type,e.type))&&(r=o.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,n,r){let o=this.findPlace(e.create(t),n);return o&&(o=this.enterInner(e,t,n,!0,r)),o}enterInner(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=wa(e,o,i.options);4&i.options&&0==i.content.length&&(a|=4);let s=Ni.none;return n=n.filter((t=>!(i.type?i.type.allowsMarkType(t.type):Ea(t.type,e))||(s=t.addToSet(s),!1))),this.nodes.push(new xa(e,t,s,r,null,a)),this.open++,n}closeExtra(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)if(null==this.find[r].pos&&1==e.nodeType&&e.contains(this.find[r].node)){t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),o=-(n?n.depth+1:0)+(r?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=o?n.node(a-o).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function Da(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Sa(e){let t={};for(let n in e)t[n]=e[n];return t}function Ea(e,t){let n=t.schema.nodes;for(let r in n){let o=n[r];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:o}=e.edge(n);if(r==t)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class Ca{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;n||(n=Oa(t).createDocumentFragment());let r=n,o=[];return e.forEach((e=>{if(o.length||e.marks.length){let n=0,i=0;for(;n<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[n][0])||!1===t.type.spec.spanning)break;n++,i++}else i++}for(;n<o.length;)r=o.pop()[1];for(;i<e.marks.length;){let n=e.marks[i++],a=this.serializeMark(n,e.isInline,t);a&&(o.push([n,r]),r.appendChild(a.dom),r=a.contentDOM||a.dom)}}r.appendChild(this.serializeNodeInner(e,t))})),n}serializeNodeInner(e,t){let{dom:n,contentDOM:r}=Pa(Oa(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,r)}return n}serializeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let o=this.serializeMark(e.marks[r],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(n),n=o.dom)}return n}serializeMark(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.marks[e.type.name];return r&&Pa(Oa(n),r(e,t),null,e.attrs)}static renderSpec(e,t){return Pa(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ca(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ma(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Ma(e.marks)}}function Ma(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Oa(e){return e.document||window.document}const Na=new WeakMap;function Aa(e){let t=Na.get(e);return void 0===t&&Na.set(e,t=function(e){let t=null;function n(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}(e)),t}function Pa(e,t,n,r){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let o,i=t[0];if("string"!=typeof i)throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=Aa(r))&&o.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let a,s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let l=n?e.createElementNS(n,i):e.createElement(i),u=t[1],c=1;if(u&&"object"==typeof u&&null==u.nodeType&&!Array.isArray(u)){c=2;for(let e in u)if(null!=u[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),u[e]):l.setAttribute(e,u[e])}}for(let d=c;d<t.length;d++){let o=t[d];if(0===o){if(d<t.length-1||d>c)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:i}=Pa(e,o,n,r);if(l.appendChild(t),i){if(a)throw new RangeError("Multiple content holes");a=i}}}return{dom:l,contentDOM:a}}const _a=Math.pow(2,16);function ja(e,t){return e+t*_a}function Ta(e){return 65535&e}class Ra{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class Fa{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ranges=e,this.inverted=t,!e.length&&Fa.empty)return Fa.empty}recover(e){let t=0,n=Ta(e);if(!this.inverted)for(let r=0;r<n;r++)t+=this.ranges[3*r+2]-this.ranges[3*r+1];return this.ranges[3*n]+t+function(e){return(e-(65535&e))/_a}(e)}mapResult(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}_map(e,t,n){let r=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?r:0);if(s>e)break;let l=this.ranges[a+o],u=this.ranges[a+i],c=s+l;if(e<=c){let o=s+r+((l?e==s?-1:e==c?1:t:t)<0?0:u);if(n)return o;let i=e==(t<0?s:c)?null:ja(a/3,e-s),d=e==s?2:e==c?1:4;return(t<0?e!=s:e!=c)&&(d|=8),new Ra(o,d,i)}r+=u-l}return n?e+r:new Ra(e+r,0,null)}touches(e,t){let n=0,r=Ta(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let t=this.ranges[a]-(this.inverted?n:0);if(t>e)break;let s=this.ranges[a+o];if(e<=t+s&&a==3*r)return!0;n+=this.ranges[a+i]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[r+t],u=this.ranges[r+n];e(a,a+l,s,s+u),o+=u-l}}invert(){return new Fa(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?Fa.empty:new Fa(e<0?[0,-e,0]:[0,0,e])}}Fa.empty=new Fa([]);class Ia{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;this.maps=e,this.mirror=t,this.from=n,this.to=r}slice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new Ia(this.maps,this.mirror,e,t)}copy(){return new Ia(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,n=this.maps.length;t<e.maps.length;t++){let r=e.getMirror(t);this.appendMap(e.maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this.maps.length+e.maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new Ia;return e.appendMappingInverted(this),e}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this.maps[n].map(e,t);return e}mapResult(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let o=this.from;o<this.to;o++){let n=this.maps[o].mapResult(e,t);if(null!=n.recover){let t=this.getMirror(o);if(null!=t&&t>o&&t<this.to){o=t,e=this.maps[t].recover(n.recover);continue}}r|=n.delInfo,e=n.pos}return n?e:new Ra(e,r,null)}}const La=Object.create(null);class za{getMap(){return Fa.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let n=La[t.stepType];if(!n)throw new RangeError("No step type ".concat(t.stepType," defined"));return n.fromJSON(e,t)}static jsonID(e,t){if(e in La)throw new RangeError("Duplicate use of step JSON ID "+e);return La[e]=t,t.prototype.jsonID=e,t}}class Ba{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Ba(e,null)}static fail(e){return new Ba(null,e)}static fromReplace(e,t,n,r){try{return Ba.ok(e.replace(t,n,r))}catch(ak){if(ak instanceof Ai)return Ba.fail(ak.message);throw ak}}}function Ya(e,t,n){let r=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(Ya(i.content,t,i))),i.isInline&&(i=t(i,n,o)),r.push(i)}return Ei.fromArray(r)}class Ha extends za{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),o=new Pi(Ya(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),r),t.openStart,t.openEnd);return Ba.fromReplace(e,this.from,this.to,o)}invert(){return new Wa(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new Ha(t.pos,n.pos,this.mark)}merge(e){return e instanceof Ha&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ha(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ha(t.from,t.to,e.markFromJSON(t.mark))}}za.jsonID("addMark",Ha);class Wa extends za{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new Pi(Ya(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return Ba.fromReplace(e,this.from,this.to,n)}invert(){return new Ha(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new Wa(t.pos,n.pos,this.mark)}merge(e){return e instanceof Wa&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wa(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Wa(t.from,t.to,e.markFromJSON(t.mark))}}za.jsonID("removeMark",Wa);class Va extends za{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ba.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Ba.fromReplace(e,this.pos,this.pos+1,new Pi(Ei.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new Va(this.pos,t.marks[n]);return new Va(this.pos,this.mark)}}return new Ua(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Va(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Va(t.pos,e.markFromJSON(t.mark))}}za.jsonID("addNodeMark",Va);class Ua extends za{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ba.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Ba.fromReplace(e,this.pos,this.pos+1,new Pi(Ei.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new Va(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Ua(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Ua(t.pos,e.markFromJSON(t.mark))}}za.jsonID("removeNodeMark",Ua);class $a extends za{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&Ka(e,this.from,this.to)?Ba.fail("Structure replace would overwrite content"):Ba.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Fa([this.from,this.to-this.from,this.slice.size])}invert(e){return new $a(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deletedAcross&&n.deletedAcross?null:new $a(t.pos,Math.max(t.pos,n.pos),this.slice)}merge(e){if(!(e instanceof $a)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?Pi.empty:new Pi(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new $a(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?Pi.empty:new Pi(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new $a(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new $a(t.from,t.to,Pi.fromJSON(e,t.slice),!!t.structure)}}za.jsonID("replace",$a);class qa extends za{constructor(e,t,n,r,o,i){let a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Ka(e,this.from,this.gapFrom)||Ka(e,this.gapTo,this.to)))return Ba.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ba.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?Ba.fromReplace(e,this.from,this.to,n):Ba.fail("Content does not fit in gap")}getMap(){return new Fa([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new qa(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new qa(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new qa(t.from,t.to,t.gapFrom,t.gapTo,Pi.fromJSON(e,t.slice),t.insert,!!t.structure)}}function Ka(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function Qa(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.contentMatch,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l<i.childCount;l++){let t=i.child(l),u=s+t.nodeSize,c=r.matchType(t.type);if(c){r=c;for(let r=0;r<t.marks.length;r++)n.allowsMarkType(t.marks[r].type)||e.step(new Wa(s,u,t.marks[r]));if(o&&t.isText&&"pre"!=n.whitespace){let e,r,o=/\r?\n|\r/g;for(;e=o.exec(t.text);)r||(r=new Pi(Ei.from(n.schema.text(" ",n.allowedMarks(t.marks))),0,0)),a.push(new $a(s+e.index,s+e.index+e[0].length,r))}}else a.push(new $a(s,u,Pi.empty));s=u}if(!r.validEnd){let t=r.fillBefore(Ei.empty,!0);e.replace(s,s,new Pi(t,0,0))}for(let l=a.length-1;l>=0;l--)e.step(a[l])}function Ga(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function Ja(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth;;--n){let r=e.$from.node(n),o=e.$from.index(n),i=e.$to.indexAfter(n);if(n<e.depth&&r.canReplace(o,i,t))return n;if(0==n||r.type.spec.isolating||!Ga(r,o,i))break}return null}function Za(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return n.canReplaceWith(r,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let l=r;s&&l<o;l++)s=s.matchType(n.child(l).type);return s&&s.validEnd?a:null}(r,t);return i?o.map(Xa).concat({type:t,attrs:n}).concat(i.map(Xa)):null}function Xa(e){return{type:e,attrs:null}}function es(e,t,n,r){t.forEach(((o,i)=>{if(o.isText){let a,s=/\r?\n|\r/g;for(;a=s.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+a.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}}))}function ts(e,t,n,r){t.forEach(((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}}))}function ns(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=e.resolve(t),i=o.depth-n,a=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let u=o.depth-1,c=n-2;u>i;u--,c--){let e=o.node(u),t=o.index(u);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),i=r&&r[c+1];i&&(n=n.replaceChild(0,i.type.create(i.attrs)));let a=r&&r[c]||e;if(!e.canReplace(t+1,e.childCount)||!a.type.validContent(n))return!1}let s=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function rs(e,t){let n=e.resolve(t),r=n.index();return is(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function is(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),a=i.type==r?e.type.schema.nodes.text:i.type;if(n=n.matchType(a),!n)return!1;if(!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(e,t))}function as(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=e.resolve(t);for(let o=r.depth;;o--){let e,i,a=r.index(o);if(o==r.depth?(e=r.nodeBefore,i=r.nodeAfter):n>0?(e=r.node(o+1),a++,i=r.node(o).maybeChild(a)):(e=r.node(o).maybeChild(a-1),i=r.node(o+1)),e&&!e.isTextblock&&is(e,i)&&r.node(o).canReplace(a,a+1))return t;if(0==o)break;t=n<0?r.before(o):r.after(o)}}function ss(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let i=0;i<n.openStart;i++)o=o.firstChild.content;for(let i=1;i<=(0==n.openStart&&n.size?2:1);i++)for(let e=r.depth;e>=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==i)s=a.canReplace(n,n,o);else{let e=a.contentMatchAt(n).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function ls(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Pi.empty;if(t==n&&!r.size)return null;let o=e.resolve(t),i=e.resolve(n);return us(o,i,r)?new $a(t,n,r):new cs(o,i,r).fit()}function us(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}za.jsonID("replaceAround",qa);class cs{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=Ei.empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=Ei.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let o=this.placed,i=n.depth,a=r.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new Pi(o,i,a);return e>-1?new qa(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new $a(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=ps(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let o=e.firstChild;for(let i=this.depth;i>=0;i--){let e,{type:a,match:s}=this.frontier[i],l=null;if(1==t&&(o?s.matchType(o.type)||(l=s.fillBefore(Ei.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:i,parent:r,inject:l};if(2==t&&o&&(e=s.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:i,parent:r,wrap:e};if(r&&s.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ps(e,t);return!(!r.childCount||r.firstChild.isLeaf)&&(this.unplaced=new Pi(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=ps(e,t);if(r.childCount<=1&&t>0){let o=e.size-t<=t+r.size;this.unplaced=new Pi(ds(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new Pi(ds(e,t,1),t,n)}placeNodes(e){let{sliceDepth:t,frontierDepth:n,parent:r,inject:o,wrap:i}=e;for(;this.depth>n;)this.closeFrontierNode();if(i)for(let m=0;m<i.length;m++)this.openFrontierNode(i[m]);let a=this.unplaced,s=r?r.content:a.content,l=a.openStart-t,u=0,c=[],{match:d,type:f}=this.frontier[n];if(o){for(let e=0;e<o.childCount;e++)c.push(o.child(e));d=d.matchFragment(o)}let p=s.size+t-(a.content.size-a.openEnd);for(;u<s.childCount;){let e=s.child(u),t=d.matchType(e.type);if(!t)break;u++,(u>1||0==l||e.content.size)&&(d=t,c.push(hs(e.mark(f.allowedMarks(e.marks)),1==u?l:0,u==s.childCount?p:-1)))}let h=u==s.childCount;h||(p=-1),this.placed=fs(this.placed,n,Ei.from(c)),this.frontier[n].match=d,h&&p<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=s;m<p;m++){let e=g.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),g=e.content}this.unplaced=h?0==t?Pi.empty:new Pi(ds(a.content,t-1,1),t-1,p<0?a.openEnd:t-1):new Pi(ds(a.content,t,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!ms(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=ms(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=ms(e,n,r,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=fs(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=fs(this.placed,this.depth,Ei.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(Ei.empty,!0);e.childCount&&(this.placed=fs(this.placed,this.frontier.length,e))}}function ds(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(ds(e.firstChild.content,t-1,n)))}function fs(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(fs(e.lastChild.content,t-1,n)))}function ps(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function hs(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,hs(r.firstChild,t-1,1==r.childCount?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(Ei.empty,!0)))),e.copy(r)}function ms(e,t,n,r,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!n.compatibleContent(i.type))return null;let s=r.fillBefore(i.content,!0,a);return s&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,a)?s:null}function gs(e,t,n,r,o){if(t<n){let o=e.firstChild;e=e.replaceChild(0,o.copy(gs(o.content,t+1,n,r,o)))}if(t>r){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(Ei.empty,!0))}return e}function ys(e,t){let n=[];for(let r=Math.min(e.depth,t.depth);r>=0;r--){let o=e.start(r);if(o<e.pos-(e.depth-r)||t.end(r)>t.pos+(t.depth-r)||e.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==e.depth&&r==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&n.push(r)}return n}class vs extends za{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ba.fail("No node at attribute step's position");let n=Object.create(null);for(let o in t.attrs)n[o]=t.attrs[o];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return Ba.fromReplace(e,this.pos,this.pos+1,new Pi(Ei.from(r),0,t.isLeaf?0:1))}getMap(){return Fa.empty}invert(e){return new vs(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new vs(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new vs(t.pos,t.attr,t.value)}}za.jsonID("attr",vs);class bs extends za{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return Ba.ok(n)}getMap(){return Fa.empty}invert(e){return new bs(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new bs(t.attr,t.value)}}za.jsonID("docAttr",bs);let ws=class extends Error{};ws=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},(ws.prototype=Object.create(Error.prototype)).constructor=ws,ws.prototype.name="TransformError";class xs{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ia}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new ws(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pi.empty,r=ls(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new Pi(Ei.from(n),0,0))}delete(e,t){return this.replace(e,t,Pi.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return function(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let o=e.doc.resolve(t),i=e.doc.resolve(n);if(us(o,i,r))return e.step(new $a(t,n,r));let a=ys(o,e.doc.resolve(n));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let p=o.depth,h=o.pos-1;p>0;p--,h--){let e=o.node(p).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;a.indexOf(p)>-1?s=p:o.before(p)==h&&a.splice(1,0,-p)}let l=a.indexOf(s),u=[],c=r.openStart;for(let p=r.content,h=0;;h++){let e=p.firstChild;if(u.push(e),h==r.openStart)break;p=e.content}for(let p=c-1;p>=0;p--){let e=u[p],t=(d=e.type).spec.defining||d.spec.definingForContent;if(t&&!e.sameMarkup(o.node(Math.abs(s)-1)))c=p;else if(t||!e.type.isTextblock)break}var d;for(let p=r.openStart;p>=0;p--){let t=(p+c+1)%(r.openStart+1),s=u[t];if(s)for(let u=0;u<a.length;u++){let c=a[(u+l)%a.length],d=!0;c<0&&(d=!1,c=-c);let f=o.node(c-1),p=o.index(c-1);if(f.canReplaceWith(p,p,s.type,s.marks))return e.replace(o.before(c),d?i.after(c):n,new Pi(gs(r.content,0,r.openStart,t),t,r.openEnd))}}let f=e.steps.length;for(let p=a.length-1;p>=0&&(e.replace(t,n,r),!(e.steps.length>f));p--){let e=a[p];e<0||(t=o.before(e),n=i.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){return function(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let o=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let o=r.depth-1;o>=0;o--){let e=r.index(o);if(r.node(o).canReplaceWith(e,e,n))return r.before(o+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let o=r.depth-1;o>=0;o--){let e=r.indexAfter(o);if(r.node(o).canReplaceWith(e,e,n))return r.after(o+1);if(e<r.node(o).childCount)return null}return null}(e.doc,t,r.type);null!=o&&(t=n=o)}e.replaceRange(t,n,new Pi(Ei.from(r),0,0))}(this,e,t,n),this}deleteRange(e,t){return function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n),i=ys(r,o);for(let a=0;a<i.length;a++){let t=i[a],n=a==i.length-1;if(n&&0==t||r.node(t).type.contentMatch.validEnd)return e.delete(r.start(t),o.end(t));if(t>0&&(n||r.node(t-1).canReplace(r.index(t-1),o.indexAfter(t-1))))return e.delete(r.before(t),o.after(t))}for(let a=1;a<=r.depth&&a<=o.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&o.end(a)-n!=o.depth-a&&r.start(a-1)==o.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),o.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return function(e,t,n){let{$from:r,$to:o,depth:i}=t,a=r.before(i+1),s=o.after(i+1),l=a,u=s,c=Ei.empty,d=0;for(let h=i,m=!1;h>n;h--)m||r.index(h)>0?(m=!0,c=Ei.from(r.node(h).copy(c)),d++):l--;let f=Ei.empty,p=0;for(let h=i,m=!1;h>n;h--)m||o.after(h+1)<o.end(h)?(m=!0,f=Ei.from(o.node(h).copy(f)),p++):u++;e.step(new qa(l,u,a,s,new Pi(c.append(f),d,p),c.size-d,!0))}(this,e,t),this}join(e){return function(e,t,n){let r=null,{linebreakReplacement:o}=e.doc.type.schema,i=e.doc.resolve(t-n),a=i.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(!1===r){let r=e.doc.resolve(t+n);ts(e,r.node(),r.before(),s)}a.inlineContent&&Qa(e,t+n-1,a,i.node().contentMatchAt(i.index()),null==r);let l=e.mapping.slice(s),u=l.map(t-n);if(e.step(new $a(u,l.map(t+n,-1),Pi.empty,!0)),!0===r){let t=e.doc.resolve(u);es(e,t.node(),t.before(),e.steps.length)}}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this}wrap(e,t){return function(e,t,n){let r=Ei.empty;for(let a=n.length-1;a>=0;a--){if(r.size){let e=n[a].type.contentMatch.matchFragment(r);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ei.from(n[a].type.create(n[a].attrs,r))}let o=t.start,i=t.end;e.step(new qa(o,i,o,i,new Pi(r,0,0),n.length,!0))}(this,e,t),this}setBlockType(e){return function(e,t,n,r,o){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,n,((t,n)=>{let a="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(r,a)&&function(e,t,n){let r=e.resolve(t),o=r.index();return r.parent.canReplaceWith(o,o+1,n)}(e.doc,e.mapping.slice(i).map(n),r)){let o=null;if(r.schema.linebreakReplacement){let e="pre"==r.whitespace,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&ts(e,t,n,i),Qa(e,e.mapping.slice(i).map(n,1),r,void 0,null===o);let s=e.mapping.slice(i),l=s.map(n,1),u=s.map(n+t.nodeSize,1);return e.step(new qa(l,u,l+1,u-1,new Pi(Ei.from(r.create(a,null,t.marks)),0,0),1,!0)),!0===o&&es(e,t,n,i),!1}}))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,arguments.length>2?arguments[2]:void 0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),this}setNodeMarkup(e,t){return function(e,t,n,r,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let a=n.create(r,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new qa(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new Pi(Ei.from(a),0,0),1,!0))}(this,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0),this}setNodeAttribute(e,t,n){return this.step(new vs(e,t,n)),this}setDocAttribute(e,t){return this.step(new bs(e,t)),this}addNodeMark(e,t){return this.step(new Va(e,t)),this}removeNodeMark(e,t){if(!(t instanceof Ni)){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(n.marks)))return this}return this.step(new Ua(e,t)),this}split(e){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=e.doc.resolve(t),i=Ei.empty,a=Ei.empty;for(let s=o.depth,l=o.depth-n,u=n-1;s>l;s--,u--){i=Ei.from(o.node(s).copy(i));let e=r&&r[u];a=Ei.from(e?e.type.create(e.attrs,a):o.node(s).copy(a))}e.step(new $a(t,t,new Pi(i.append(a),n,n),!0))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2?arguments[2]:void 0),this}addMark(e,t,n){return function(e,t,n,r){let o,i,a=[],s=[];e.doc.nodesBetween(t,n,((e,l,u)=>{if(!e.isInline)return;let c=e.marks;if(!r.isInSet(c)&&u.type.allowsMarkType(r.type)){let u=Math.max(l,t),d=Math.min(l+e.nodeSize,n),f=r.addToSet(c);for(let e=0;e<c.length;e++)c[e].isInSet(f)||(o&&o.to==u&&o.mark.eq(c[e])?o.to=d:a.push(o=new Wa(u,d,c[e])));i&&i.to==u?i.to=d:s.push(i=new Ha(u,d,r))}})),a.forEach((t=>e.step(t))),s.forEach((t=>e.step(t)))}(this,e,t,n),this}removeMark(e,t,n){return function(e,t,n,r){let o=[],i=0;e.doc.nodesBetween(t,n,((e,a)=>{if(!e.isInline)return;i++;let s=null;if(r instanceof pa){let t,n=e.marks;for(;t=r.isInSet(n);)(s||(s=[])).push(t),n=t.removeFromSet(n)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(a+e.nodeSize,n);for(let e=0;e<s.length;e++){let n,l=s[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(n=t)}n?(n.to=r,n.step=i):o.push({style:l,from:Math.max(a,t),to:r,step:i})}}})),o.forEach((t=>e.step(new Wa(t.from,t.to,t.style))))}(this,e,t,n),this}clearIncompatible(e,t,n){return Qa(this,e,t,n),this}}const ks=Object.create(null);class Ds{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Ss(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pi.empty,n=t.content.lastChild,r=null;for(let a=0;a<t.openEnd;a++)r=n,n=n.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],u=e.mapping.slice(o);e.replaceRange(u.map(s.pos),u.map(l.pos),a?Pi.empty:t),0==a&&Ts(e,o,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let o=0;o<r.length;o++){let{$from:i,$to:a}=r[o],s=e.mapping.slice(n),l=s.map(i.pos),u=s.map(a.pos);o?e.deleteRange(l,u):(e.replaceRangeWith(l,u,t),Ts(e,n,t.isInline?-1:1))}}static findFrom(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.parent.inlineContent?new Ms(e):js(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let o=e.depth-1;o>=0;o--){let r=t<0?js(e.node(0),e.node(o),e.before(o+1),e.index(o),t,n):js(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,n);if(r)return r}return null}static near(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new Ps(e.node(0))}static atStart(e){return js(e,e,0,0,1)||new Ps(e)}static atEnd(e){return js(e,e,e.content.size,e.childCount,-1)||new Ps(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=ks[t.type];if(!n)throw new RangeError("No selection type ".concat(t.type," defined"));return n.fromJSON(e,t)}static jsonID(e,t){if(e in ks)throw new RangeError("Duplicate use of selection JSON ID "+e);return ks[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ms.between(this.$anchor,this.$head).getBookmark()}}Ds.prototype.visible=!0;class Ss{constructor(e,t){this.$from=e,this.$to=t}}let Es=!1;function Cs(e){Es||e.parent.inlineContent||(Es=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Ms extends Ds{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;Cs(e),Cs(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return Ds.near(n);let r=e.resolve(t.map(this.anchor));return new Ms(r.parent.inlineContent?r:n,n)}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pi.empty;if(super.replace(e,t),t==Pi.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof Ms&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Os(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ms(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=Ds.findFrom(t,n,!0)||Ds.findFrom(t,-n,!0);if(!e)return Ds.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r||(e=(Ds.findFrom(e,-n,!0)||Ds.findFrom(e,n,!0)).$anchor).pos<t.pos!=r<0)&&(e=t),new Ms(e,t)}}Ds.jsonID("text",Ms);class Os{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Os(e.map(this.anchor),e.map(this.head))}resolve(e){return Ms.between(e.resolve(this.anchor),e.resolve(this.head))}}class Ns extends Ds{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(e,t){let{deleted:n,pos:r}=t.mapResult(this.anchor),o=e.resolve(r);return n?Ds.near(o):new Ns(o)}content(){return new Pi(Ei.from(this.node),0,0)}eq(e){return e instanceof Ns&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new As(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Ns(e.resolve(t.anchor))}static create(e,t){return new Ns(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}Ns.prototype.visible=!1,Ds.jsonID("node",Ns);class As{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:n}=e.mapResult(this.anchor);return t?new Os(n,n):new As(n)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Ns.isSelectable(n)?new Ns(t):Ds.near(t)}}class Ps extends Ds{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pi.empty;if(t==Pi.empty){e.delete(0,e.doc.content.size);let t=Ds.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new Ps(e)}map(e){return new Ps(e)}eq(e){return e instanceof Ps}getBookmark(){return _s}}Ds.jsonID("all",Ps);const _s={map(){return this},resolve:e=>new Ps(e)};function js(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return Ms.create(e,n);for(let a=r-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let r=t.child(a);if(r.isAtom){if(!i&&Ns.isSelectable(r))return Ns.create(e,n-(o<0?r.nodeSize:0))}else{let t=js(e,r,n+o,o<0?r.childCount:0,o,i);if(t)return t}n+=r.nodeSize*o}return null}function Ts(e,t,n){let r=e.steps.length-1;if(r<t)return;let o,i=e.steps[r];(i instanceof $a||i instanceof qa)&&(e.mapping.maps[r].forEach(((e,t,n,r)=>{null==o&&(o=r)})),e.setSelection(Ds.near(e.doc.resolve(o),n)))}class Rs extends xs{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return Ni.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||Ni.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let o=this.storedMarks;if(!o){let e=this.doc.resolve(t);o=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,o)),this.selection.empty||this.setSelection(Ds.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function Fs(e,t){return t&&e?e.bind(t):e}class Is{constructor(e,t,n){this.name=e,this.init=Fs(t.init,n),this.apply=Fs(t.apply,n)}}const Ls=[new Is("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new Is("selection",{init:(e,t)=>e.selection||Ds.atStart(t.doc),apply:e=>e.selection}),new Is("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,n,r)=>r.selection.$cursor?e.storedMarks:null}),new Is("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class zs{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Ls.slice(),t&&t.forEach((e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new Is(e.key,e.spec.state,e))}))}}class Bs{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let o=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let s=r?r[i].n:0,l=r?r[i].state:this,u=s<t.length&&a.spec.appendTransaction.call(a,s?t.slice(s):t,l,n);if(u&&n.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<i?{state:n,n:t.length}:{state:this,n:0})}t.push(u),n=n.applyInner(u),o=!0}r&&(r[i]={state:n,n:t.length})}}if(!o)return{state:n,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Bs(this.config),n=this.config.fields;for(let r=0;r<n.length;r++){let o=n[r];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new Rs(this)}static create(e){let t=new zs(e.doc?e.doc.type.schema:e.schema,e.plugins),n=new Bs(t);for(let r=0;r<t.fields.length;r++)n[t.fields[r].name]=t.fields[r].init(e,n);return n}reconfigure(e){let t=new zs(this.schema,e.plugins),n=t.fields,r=new Bs(t);for(let o=0;o<n.length;o++){let t=n[o].name;r[t]=this.hasOwnProperty(t)?this[t]:n[o].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map((e=>e.toJSON()))),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],o=r.spec.state;o&&o.toJSON&&(t[n]=o.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new zs(e.schema,e.plugins),o=new Bs(r);return r.fields.forEach((r=>{if("doc"==r.name)o.doc=Qi.fromJSON(e.schema,t.doc);else if("selection"==r.name)o.selection=Ds.fromJSON(o.doc,t.selection);else if("storedMarks"==r.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let i in n){let a=n[i],s=a.spec.state;if(a.key==r.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,i))return void(o[r.name]=s.fromJSON.call(a,e,t[i],o))}o[r.name]=r.init(e,o)}})),o}}function Ys(e,t,n){for(let r in e){let o=e[r];o instanceof Function?o=o.bind(t):"handleDOMEvents"==r&&(o=Ys(o,t,{})),n[r]=o}return n}class Hs{constructor(e){this.spec=e,this.props={},e.props&&Ys(e.props,this,this.props),this.key=e.key?e.key.key:Vs("plugin")}getState(e){return e[this.key]}}const Ws=Object.create(null);function Vs(e){return e in Ws?e+"$"+ ++Ws[e]:(Ws[e]=0,e+"$")}class Us{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"key";this.key=Vs(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const $s=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},qs=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let Ks=null;const Qs=function(e,t,n){let r=Ks||(Ks=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},Gs=function(e,t,n,r){return n&&(Zs(e,t,n,r,-1)||Zs(e,t,n,r,1))},Js=/^(img|br|input|textarea|hr)$/i;function Zs(e,t,n,r,o){for(;;){if(e==n&&t==r)return!0;if(t==(o<0?0:Xs(e))){let n=e.parentNode;if(!n||1!=n.nodeType||el(e)||Js.test(e.nodeName)||"false"==e.contentEditable)return!1;t=$s(e)+(o<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?Xs(e):0}}}function Xs(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function el(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const tl=function(e){return e.focusNode&&Gs(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function nl(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}const rl="undefined"!=typeof navigator?navigator:null,ol="undefined"!=typeof document?document:null,il=rl&&rl.userAgent||"",al=/Edge\/(\d+)/.exec(il),sl=/MSIE \d/.exec(il),ll=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(il),ul=!!(sl||ll||al),cl=sl?document.documentMode:ll?+ll[1]:al?+al[1]:0,dl=!ul&&/gecko\/(\d+)/i.test(il);dl&&(/Firefox\/(\d+)/.exec(il)||[0,0])[1];const fl=!ul&&/Chrome\/(\d+)/.exec(il),pl=!!fl,hl=fl?+fl[1]:0,ml=!ul&&!!rl&&/Apple Computer/.test(rl.vendor),gl=ml&&(/Mobile\/\w+/.test(il)||!!rl&&rl.maxTouchPoints>2),yl=gl||!!rl&&/Mac/.test(rl.platform),vl=!!rl&&/Win/.test(rl.platform),bl=/Android \d/.test(il),wl=!!ol&&"webkitFontSmoothing"in ol.documentElement.style,xl=wl?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function kl(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Dl(e,t){return"number"==typeof e?e:e[t]}function Sl(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function El(e,t,n){let r=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,i=e.dom.ownerDocument;for(let a=n||e.dom;a;a=qs(a)){if(1!=a.nodeType)continue;let e=a,n=e==i.body,s=n?kl(i):Sl(e),l=0,u=0;if(t.top<s.top+Dl(r,"top")?u=-(s.top-t.top+Dl(o,"top")):t.bottom>s.bottom-Dl(r,"bottom")&&(u=t.bottom-t.top>s.bottom-s.top?t.top+Dl(o,"top")-s.top:t.bottom-s.bottom+Dl(o,"bottom")),t.left<s.left+Dl(r,"left")?l=-(s.left-t.left+Dl(o,"left")):t.right>s.right-Dl(r,"right")&&(l=t.right-s.right+Dl(o,"right")),l||u)if(n)i.defaultView.scrollBy(l,u);else{let n=e.scrollLeft,r=e.scrollTop;u&&(e.scrollTop+=u),l&&(e.scrollLeft+=l);let o=e.scrollLeft-n,i=e.scrollTop-r;t={left:t.left-o,top:t.top-i,right:t.right-o,bottom:t.bottom-i}}if(n||/^(fixed|sticky)$/.test(getComputedStyle(a).position))break}}function Cl(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=qs(r));return t}function Ml(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:o,left:i}=e[n];r.scrollTop!=o+t&&(r.scrollTop=o+t),r.scrollLeft!=i&&(r.scrollLeft=i)}}let Ol=null;function Nl(e,t){let n,r,o,i,a=2e8,s=0,l=t.top,u=t.top;for(let c=e.firstChild,d=0;c;c=c.nextSibling,d++){let e;if(1==c.nodeType)e=c.getClientRects();else{if(3!=c.nodeType)continue;e=Qs(c).getClientRects()}for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=l&&p.bottom>=u){l=Math.max(p.bottom,l),u=Math.min(p.top,u);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<a){n=c,a=e,r=e&&3==n.nodeType?{left:p.right<t.left?p.right:p.left,top:t.top}:t,1==c.nodeType&&e&&(s=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!o&&p.left<=t.left&&p.right>=t.left&&(o=c,i={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(s=d+1)}}return!n&&o&&(n=o,r=i,a=0),n&&3==n.nodeType?function(e,t){let n=e.nodeValue.length,r=document.createRange();for(let o=0;o<n;o++){r.setEnd(e,o+1),r.setStart(e,o);let n=Tl(r,1);if(n.top!=n.bottom&&Al(t,n))return{node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}(n,r):!n||a&&1==n.nodeType?{node:e,offset:s}:Nl(n,r)}function Al(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function Pl(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let o=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),i=o;;){let n=e.childNodes[i];if(1==n.nodeType){let e=n.getClientRects();for(let r=0;r<e.length;r++){let o=e[r];if(Al(t,o))return Pl(n,t,o)}}if((i=(i+1)%r)==o)break}return e}function _l(e,t){let n,r=e.dom.ownerDocument,o=0,i=function(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(Xs(r.offsetNode),r.offset)}}catch(gx){}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(Xs(r.startContainer),r.startOffset)}}}(r,t.left,t.top);i&&({node:n,offset:o}=i);let a,s=(e.root.elementFromPoint?e.root:r).elementFromPoint(t.left,t.top);if(!s||!e.dom.contains(1!=s.nodeType?s.parentNode:s)){let n=e.dom.getBoundingClientRect();if(!Al(t,n))return null;if(s=Pl(e.dom,t,n),!s)return null}if(ml)for(let u=s;n&&u;u=qs(u))u.draggable&&(n=void 0);if(s=function(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}(s,t),n){if(dl&&1==n.nodeType&&(o=Math.min(o,n.childNodes.length),o<n.childNodes.length)){let e,r=n.childNodes[o];"IMG"==r.nodeName&&(e=r.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&o++}let r;wl&&o&&1==n.nodeType&&1==(r=n.childNodes[o-1]).nodeType&&"false"==r.contentEditable&&r.getBoundingClientRect().top>=t.top&&o--,n==e.dom&&o==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?a=e.state.doc.content.size:0!=o&&1==n.nodeType&&"BR"==n.childNodes[o-1].nodeName||(a=function(e,t,n,r){let o=-1;for(let i=t,a=!1;i!=e.dom;){let t,n=e.docView.nearestDesc(i,!0);if(!n)return null;if(1==n.dom.nodeType&&(n.node.isBlock&&n.parent||!n.contentDOM)&&((t=n.dom.getBoundingClientRect()).width||t.height)&&(n.node.isBlock&&n.parent&&(!a&&t.left>r.left||t.top>r.top?o=n.posBefore:(!a&&t.right<r.left||t.bottom<r.top)&&(o=n.posAfter),a=!0),!n.contentDOM&&o<0&&!n.node.isText))return(n.node.isBlock?r.top<(t.top+t.bottom)/2:r.left<(t.left+t.right)/2)?n.posBefore:n.posAfter;i=n.dom.parentNode}return o>-1?o:e.docView.posFromDOM(t,n,-1)}(e,n,o,t))}null==a&&(a=function(e,t,n){let{node:r,offset:o}=Nl(t,n),i=-1;if(1==r.nodeType&&!r.firstChild){let e=r.getBoundingClientRect();i=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,o,i)}(e,s,t));let l=e.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function jl(e){return e.top<e.bottom||e.left<e.right}function Tl(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(jl(e))return e}return Array.prototype.find.call(n,jl)||e.getBoundingClientRect()}const Rl=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Fl(e,t,n){let{node:r,offset:o,atom:i}=e.docView.domFromPos(t,n<0?-1:1),a=wl||dl;if(3==r.nodeType){if(!a||!Rl.test(r.nodeValue)&&(n<0?o:o!=r.nodeValue.length)){let e=o,t=o,i=n<0?1:-1;return n<0&&!o?(t++,i=-1):n>=0&&o==r.nodeValue.length?(e--,i=1):n<0?e--:t++,Il(Tl(Qs(r,e,t),i),i<0)}{let e=Tl(Qs(r,o,o),n);if(dl&&o&&/\s/.test(r.nodeValue[o-1])&&o<r.nodeValue.length){let t=Tl(Qs(r,o-1,o-1),-1);if(t.top==e.top){let n=Tl(Qs(r,o,o+1),-1);if(n.top!=e.top)return Il(n,n.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(i||0)).parent.inlineContent){if(null==i&&o&&(n<0||o==Xs(r))){let e=r.childNodes[o-1];if(1==e.nodeType)return Ll(e.getBoundingClientRect(),!1)}if(null==i&&o<Xs(r)){let e=r.childNodes[o];if(1==e.nodeType)return Ll(e.getBoundingClientRect(),!0)}return Ll(r.getBoundingClientRect(),n>=0)}if(null==i&&o&&(n<0||o==Xs(r))){let e=r.childNodes[o-1],t=3==e.nodeType?Qs(e,Xs(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return Il(Tl(t,1),!1)}if(null==i&&o<Xs(r)){let e=r.childNodes[o];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?Qs(e,0,a?0:1):1==e.nodeType?e:null:null;if(t)return Il(Tl(t,-1),!0)}return Il(Tl(3==r.nodeType?Qs(r):r,-n),n>=0)}function Il(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Ll(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function zl(e,t,n){let r=e.state,o=e.root.activeElement;r!=t&&e.updateState(t),o!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),o!=e.dom&&o&&o.focus()}}const Bl=/[\u0590-\u08ac]/;let Yl=null,Hl=null,Wl=!1;function Vl(e,t,n){return Yl==t&&Hl==n?Wl:(Yl=t,Hl=n,Wl="up"==n||"down"==n?function(e,t,n){let r=t.selection,o="up"==n?r.$from:r.$to;return zl(e,t,(()=>{let{node:t}=e.docView.domFromPos(o.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=Fl(e,o.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=Qs(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let o=t[e];if(o.bottom>o.top+1&&("up"==n?r.top-o.top>2*(o.bottom-r.top):o.bottom-r.bottom>2*(r.bottom-o.top)))return!1}}return!0}))}(e,t,n):function(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let o=r.parentOffset,i=!o,a=o==r.parent.content.size,s=e.domSelection();return s?Bl.test(r.parent.textContent)&&s.modify?zl(e,t,(()=>{let{focusNode:t,focusOffset:o,anchorNode:i,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let u=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:c,focusOffset:d}=e.domSelectionRange(),f=c&&!u.contains(1==c.nodeType?c:c.parentNode)||t==c&&o==d;try{s.collapse(i,a),t&&(t!=i||o!=a)&&s.extend&&s.extend(t,o)}catch(gx){}return null!=l&&(s.caretBidiLevel=l),f})):"left"==n||"backward"==n?i:a:r.pos==r.start()||r.pos==r.end()}(e,t,n))}class Ul{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=0,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&(!(r=n.pmViewDesc)||r.parent!=this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}}let r;if(e==this.dom&&this.contentDOM)r=t>$s(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let n=!0,r=e;r;r=r.parentNode){let o,i=this.getDesc(r);if(i&&(!t||i.node)){if(!n||!(o=i.nodeDOM)||(1==o.nodeType?o.contains(1==e.nodeType?e:e.parentNode):o==e))return i;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],o=n+r.size;if(n==e&&o!=n){for(;!r.border&&r.children.length;)r=r.children[0];return r}if(e<o)return r.descAt(e-n-r.border);n=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let o=0;n<this.children.length;n++){let t=this.children[n],i=o+t.size;if(i>e||t instanceof Zl){r=e-o;break}o=i}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let o;n&&!(o=this.children[n-1]).size&&o instanceof $l&&o.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,e&&e.dom.parentNode!=this.contentDOM;n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?$s(e.dom)+1:0}}{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,e&&e.dom.parentNode!=this.contentDOM;n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?$s(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,o=-1;for(let i=n,a=0;;a++){let n=this.children[a],s=i+n.size;if(-1==r&&e<=s){let o=i+n.border;if(e>=o&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,o);e=i;for(let t=a;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=$s(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(s>t||a==this.children.length-1)){t=s;for(let e=a+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){o=$s(n.dom);break}t+=n.size}-1==o&&(o=this.contentDOM.childNodes.length);break}i=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(1!=t.nodeType||n==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[n]}setSelection(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=Math.min(e,t),i=Math.max(e,t);for(let f=0,p=0;f<this.children.length;f++){let a=this.children[f],s=p+a.size;if(o>p&&i<s)return a.setSelection(e-p-a.border,t-p-a.border,n,r);p=s}let a=this.domFromPos(e,e?-1:1),s=t==e?a:this.domFromPos(t,t?-1:1),l=n.root.getSelection(),u=n.domSelectionRange(),c=!1;if((dl||ml)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(c=!(!t||"\n"!=e.nodeValue[t-1]),c&&t==e.nodeValue.length)for(let n,r=e;r;r=r.parentNode){if(n=r.nextSibling){"BR"==n.nodeName&&(a=s={node:n.parentNode,offset:$s(n)+1});break}let e=r.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];c=n&&("BR"==n.nodeName||"false"==n.contentEditable)}}if(dl&&u.focusNode&&u.focusNode!=s.node&&1==u.focusNode.nodeType){let e=u.focusNode.childNodes[u.focusOffset];e&&"false"==e.contentEditable&&(r=!0)}if(!(r||c&&ml)&&Gs(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Gs(s.node,s.offset,u.focusNode,u.focusOffset))return;let d=!1;if((l.extend||e==t)&&!c){l.collapse(a.node,a.offset);try{e!=t&&l.extend(s.node,s.offset),d=!0}catch(gx){}}if(!d){if(e>t){let e=a;a=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(a.node,a.offset),l.removeAllRanges(),l.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let o=this.children[r],i=n+o.size;if(n==i?e<=i&&t>=n:e<i&&t>n){let r=n+o.border,a=i-o.border;if(e>=r&&t<=a)return this.dirty=e==n||t==i?2:1,void(e!=r||t!=a||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(e-r,t-r):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}n=i}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?2:1;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class $l extends Ul{constructor(e,t,n,r){let o,i=t.type.toDOM;if("function"==typeof i&&(i=i(n,(()=>o?o.parent?o.parent.posBeforeChild(o):void 0:r))),!t.type.spec.raw){if(1!=i.nodeType){let e=document.createElement("span");e.appendChild(i),i=e}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class ql extends Ul{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class Kl extends Ul{constructor(e,t,n,r,o){super(e,[],n,r),this.mark=t,this.spec=o}static create(e,t,n,r){let o=r.nodeViews[t.type.name],i=o&&o(t,r,n);return i&&i.dom||(i=Ca.renderSpec(document,t.type.spec.toDOM(t,n),null,t.attrs)),new Kl(e,t,i.dom,i.contentDOM||i.dom,i)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,n){let r=Kl.create(this.parent,this.mark,!0,n),o=this.children,i=this.size;t<i&&(o=du(o,t,i,n)),e>0&&(o=du(o,0,e,n));for(let a=0;a<o.length;a++)o[a].parent=r;return r.children=o,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ql extends Ul{constructor(e,t,n,r,o,i,a,s,l){super(e,[],o,i),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=a}static create(e,t,n,r,o,i){let a,s=o.nodeViews[t.type.name],l=s&&s(t,o,(()=>a?a.parent?a.parent.posBeforeChild(a):void 0:i),n,r),u=l&&l.dom,c=l&&l.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=Ca.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:c}=e)}c||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let d=u;return u=au(u,n,t),l?a=new Xl(e,t,n,r,u,c||null,d,l,o,i+1):t.isText?new Jl(e,t,n,r,u,d,o):new Ql(e,t,n,r,u,c||null,d,o,i+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Ei.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return 0==this.dirty&&e.eq(this.node)&&su(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,i=o&&o.pos>-1?o:null,a=o&&o.pos<0,s=new uu(this,i&&i.node,e);!function(e,t,n,r){let o=t.locals(e),i=0;if(0==o.length){for(let n=0;n<e.childCount;n++){let a=e.child(n);r(a,o,t.forChild(i,a),n),i+=a.nodeSize}return}let a=0,s=[],l=null;for(let u=0;;){let c,d,f,p;for(;a<o.length&&o[a].to==i;){let e=o[a++];e.widget&&(c?(d||(d=[c])).push(e):c=e)}if(c)if(d){d.sort(cu);for(let e=0;e<d.length;e++)n(d[e],u,!!l)}else n(c,u,!!l);if(l)p=-1,f=l,l=null;else{if(!(u<e.childCount))break;p=u,f=e.child(u++)}for(let e=0;e<s.length;e++)s[e].to<=i&&s.splice(e--,1);for(;a<o.length&&o[a].from<=i&&o[a].to>i;)s.push(o[a++]);let h=i+f.nodeSize;if(f.isText){let e=h;a<o.length&&o[a].from<e&&(e=o[a].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<h&&(l=f.cut(e-i),f=f.cut(0,e-i),h=e,p=-1)}else for(;a<o.length&&o[a].to<h;)a++;let m=f.isInline&&!f.isLeaf?s.filter((e=>!e.inline)):s.slice();r(f,m,t.forChild(i,f),p),i=h}}(this.node,this.innerDeco,((t,o,i)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!i&&s.syncToMarks(o==this.node.childCount?Ni.none:this.node.child(o).marks,n,e),s.placeWidget(t,e,r)}),((t,i,l,u)=>{let c;s.syncToMarks(t.marks,n,e),s.findNodeMatch(t,i,l,u)||a&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(c=s.findIndexWithChild(o.node))>-1&&s.updateNodeAt(t,i,l,c,e)||s.updateNextNode(t,i,l,e,u,r)||s.addNode(t,i,l,e,r),r+=t.nodeSize})),s.syncToMarks([],n,e),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||2==this.dirty)&&(i&&this.protectLocalComposition(e,i),eu(this.contentDOM,this.children,e),gl&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof Ms)||n<t||r>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let e=o.nodeValue,i=function(e,t,n,r){for(let o=0,i=0;o<e.childCount&&i<=r;){let a=e.child(o++),s=i;if(i+=a.nodeSize,!a.isText)continue;let l=a.text;for(;o<e.childCount;){let t=e.child(o++);if(i+=t.nodeSize,!t.isText)break;l+=t.text}if(i>=n){if(i>=r&&l.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?l.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}(this.node.content,e,n-t,r-t);return i<0?null:{node:o,pos:i,text:e}}return{node:o,pos:-1,text:""}}protectLocalComposition(e,t){let{node:n,pos:r,text:o}=t;if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new ql(this,i,n,o);e.input.compositionNodes.push(a),this.children=du(this.children,r,r+o.length,e,a)}update(e,t,n,r){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(su(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=ou(this.dom,this.nodeDOM,ru(this.outerDeco,this.node,t),ru(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Gl(e,t,n,r,o){au(r,t,e);let i=new Ql(void 0,e,t,n,r,r,r,o,0);return i.contentDOM&&i.updateChildren(o,0),i}class Jl extends Ql{constructor(e,t,n,r,o,i,a){super(e,t,n,r,o,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),o=document.createTextNode(r.text);return new Jl(this.parent,r,this.outerDeco,this.innerDeco,o,o,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Zl extends Ul{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Xl extends Ql{constructor(e,t,n,r,o,i,a,s,l,u){super(e,t,n,r,o,i,a,l,u),this.spec=s}update(e,t,n,r){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,n);return o&&this.updateInner(e,t,n,r),o}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function eu(e,t,n){let r=e.firstChild,o=!1;for(let i=0;i<t.length;i++){let a=t[i],s=a.dom;if(s.parentNode==e){for(;s!=r;)r=lu(r),o=!0;r=r.nextSibling}else o=!0,e.insertBefore(s,r);if(a instanceof Kl){let t=r?r.previousSibling:e.lastChild;eu(a.contentDOM,a.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=lu(r),o=!0;o&&n.trackWrites==e&&(n.trackWrites=null)}const tu=function(e){e&&(this.nodeName=e)};tu.prototype=Object.create(null);const nu=[new tu];function ru(e,t,n){if(0==e.length)return nu;let r=n?nu[0]:new tu,o=[r];for(let i=0;i<e.length;i++){let a=e[i].type.attrs;if(a){a.nodeName&&o.push(r=new tu(a.nodeName));for(let e in a){let i=a[e];null!=i&&(n&&1==o.length&&o.push(r=new tu(t.isInline?"span":"div")),"class"==e?r.class=(r.class?r.class+" ":"")+i:"style"==e?r.style=(r.style?r.style+";":"")+i:"nodeName"!=e&&(r[e]=i))}}}return o}function ou(e,t,n,r){if(n==nu&&r==nu)return t;let o=t;for(let i=0;i<r.length;i++){let t=r[i],a=n[i];if(i){let n;a&&a.nodeName==t.nodeName&&o!=e&&(n=o.parentNode)&&n.nodeName.toLowerCase()==t.nodeName||(n=document.createElement(t.nodeName),n.pmIsDeco=!0,n.appendChild(o),a=nu[0]),o=n}iu(o,a||nu[0],t)}return o}function iu(e,t,n){for(let r in t)"class"==r||"style"==r||"nodeName"==r||r in n||e.removeAttribute(r);for(let r in n)"class"!=r&&"style"!=r&&"nodeName"!=r&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(" ").filter(Boolean):[],o=n.class?n.class.split(" ").filter(Boolean):[];for(let t=0;t<r.length;t++)-1==o.indexOf(r[t])&&e.classList.remove(r[t]);for(let t=0;t<o.length;t++)-1==r.indexOf(o[t])&&e.classList.add(o[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=n.style){if(t.style){let n,r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;n=r.exec(t.style);)e.style.removeProperty(n[1])}n.style&&(e.style.cssText+=n.style)}}function au(e,t,n){return ou(e,e,nu,ru(t,n,1!=e.nodeType))}function su(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function lu(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class uu{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let n=t,r=n.children.length,o=e.childCount,i=new Map,a=[];e:for(;o>0;){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof Kl)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(o-1))break;--o,i.set(s,o),a.push(s)}}return{index:o,matched:i,matches:a.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n){let r=0,o=this.stack.length>>1,i=Math.min(o,e.length);for(;r<i&&(r==o-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&!1!==e[r].type.spec.spanning;)r++;for(;r<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let r=-1;for(let t=this.index;t<Math.min(this.index+3,this.top.children.length);t++){let n=this.top.children[t];if(n.matchesMark(e[o])&&!this.isLocked(n.dom)){r=t;break}}if(r>-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=Kl.create(this.top,e[o],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,n,r){let o,i=-1;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(e,t,n))i=this.top.children.indexOf(o,this.index);else for(let a=this.index,s=Math.min(this.top.children.length,a+5);a<s;a++){let r=this.top.children[a];if(r.matchesNode(e,t,n)&&!this.preMatch.matched.has(r)){i=a;break}}return!(i<0)&&(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,o){let i=this.top.children[r];return 3==i.dirty&&i.dom==i.contentDOM&&(i.dirty=2),!!i.update(e,t,n,o)&&(this.destroyBetween(this.index,r),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,n,r,o,i){for(let a=this.index;a<this.top.children.length;a++){let s=this.top.children[a];if(s instanceof Ql){let l=this.preMatch.matched.get(s);if(null!=l&&l!=o)return!1;let u,c=s.dom,d=this.isLocked(c)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&3!=s.dirty&&su(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,a),s.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=2,u.updateChildren(r,i+1),u.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,o,i){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!su(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=Ql.create(this.top,t,n,r,o,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let e of a.children)e.parent=a}return e.destroy(),a}addNode(e,t,n,r,o){let i=Ql.create(this.top,e,t,n,r,o);i.contentDOM&&i.updateChildren(r,o+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(!r||!r.matchesWidget(e)||e!=r.widget&&r.widget.type.toDOM.parentNode){let r=new $l(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Kl;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Jl)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((ml||pl)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);"IMG"==e&&(n.className="ProseMirror-separator",n.alt=""),"BR"==e&&(n.className="ProseMirror-trailingBreak");let r=new Zl(this.top,[],n,null);t!=this.top?t.children.push(r):t.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function cu(e,t){return e.type.side-t.type.side}function du(e,t,n,r,o){let i=[];for(let a=0,s=0;a<e.length;a++){let l=e[a],u=s,c=s+=l.size;u>=n||c<=t?i.push(l):(u<t&&i.push(l.slice(0,t-u,r)),o&&(i.push(o),o=void 0),c>n&&i.push(l.slice(n-u,l.size,r)))}return i}function fu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let s,l,u=r.resolve(a);if(tl(n)){for(s=a;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&Ns.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,n){for(let r=0==t,o=t==Xs(e);r||o;){if(e==n)return!0;let t=$s(e);if(!(e=e.parentNode))return!1;r=r&&0==t,o=o&&t==Xs(e)}}(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;l=new Ns(a==e?u:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=a,o=a;for(let r=0;r<n.rangeCount;r++){let i=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(i.startContainer,i.startOffset,1)),o=Math.max(o,e.docView.posFromDOM(i.endContainer,i.endOffset,-1))}if(t<0)return null;[s,a]=o==e.state.selection.anchor?[o,t]:[t,o],u=r.resolve(a)}else s=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(s<0)return null}let c=r.resolve(s);if(!l){l=xu(e,c,u,"pointer"==t||e.state.selection.head<u.pos&&!i?1:-1)}return l}function pu(e){return e.editable?e.hasFocus():Du(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function hu(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.state.selection;if(bu(e,n),pu(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&pl){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&Gs(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),n=document.createRange();if(!t)return;let r=e.cursorWrapper.dom,o="IMG"==r.nodeName;o?n.setStart(r.parentNode,$s(r)+1):n.setStart(r,0);n.collapse(!0),t.removeAllRanges(),t.addRange(n),!o&&!e.state.selection.visible&&ul&&cl<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let r,o,{anchor:i,head:a}=n;!mu||n instanceof Ms||(n.$from.parent.inlineContent||(r=gu(e,n.from)),n.empty||n.$from.parent.inlineContent||(o=gu(e,n.to))),e.docView.setSelection(i,a,e,t),mu&&(r&&vu(r),o&&vu(o)),n.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,o=n.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{n.anchorNode==r&&n.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{pu(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const mu=ml||pl&&hl<63;function gu(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),o=r<n.childNodes.length?n.childNodes[r]:null,i=r?n.childNodes[r-1]:null;if(ml&&o&&"false"==o.contentEditable)return yu(o);if((!o||"false"==o.contentEditable)&&(!i||"false"==i.contentEditable)){if(o)return yu(o);if(i)return yu(i)}}function yu(e){return e.contentEditable="true",ml&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function vu(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function bu(e,t){if(t instanceof Ns){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(wu(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else wu(e)}function wu(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function xu(e,t,n,r){return e.someProp("createSelectionBetween",(r=>r(e,t,n)))||Ms.between(t,n,r)}function ku(e){return!(e.editable&&!e.hasFocus())&&Du(e)}function Du(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(gx){return!1}}function Su(e,t){let{$anchor:n,$head:r}=e.selection,o=t>0?n.max(r):n.min(r),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&Ds.findFrom(i,t)}function Eu(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Cu(e,t,n){let r=e.state.selection;if(!(r instanceof Ms)){if(r instanceof Ns&&r.node.isInline)return Eu(e,new Ms(t>0?r.$to:r.$from));{let n=Su(e.state,t);return!!n&&Eu(e,n)}}if(n.indexOf("s")>-1){let{$head:n}=r,o=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(n.pos+o.nodeSize*(t<0?-1:1));return Eu(e,new Ms(r.$anchor,i))}if(!r.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let n=Su(e.state,t);return!!(n&&n instanceof Ns)&&Eu(e,n)}if(!(yl&&n.indexOf("m")>-1)){let n,o=r.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let a=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(n=e.docView.descAt(a))&&!n.contentDOM)&&(Ns.isSelectable(i)?Eu(e,new Ns(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!wl&&Eu(e,new Ms(e.state.doc.resolve(t<0?a:a+i.nodeSize))))}}function Mu(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ou(e,t){let n=e.pmViewDesc;return n&&0==n.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Nu(e,t){return t<0?function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=!1;dl&&1==n.nodeType&&r<Mu(n)&&Ou(n.childNodes[r],-1)&&(a=!0);for(;;)if(r>0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(Ou(e,-1))o=n,i=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(Au(n))break;{let t=n.previousSibling;for(;t&&Ou(t,-1);)o=n.parentNode,i=$s(t),t=t.previousSibling;if(t)n=t,r=Mu(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}a?Pu(e,n,r):o&&Pu(e,o,i)}(e):function(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let o,i,a=Mu(n);for(;;)if(r<a){if(1!=n.nodeType)break;if(!Ou(n.childNodes[r],1))break;o=n,i=++r}else{if(Au(n))break;{let t=n.nextSibling;for(;t&&Ou(t,1);)o=t.parentNode,i=$s(t)+1,t=t.nextSibling;if(t)n=t,r=0,a=Mu(n);else{if(n=n.parentNode,n==e.dom)break;r=a=0}}}o&&Pu(e,o,i)}(e)}function Au(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Pu(e,t,n){if(3!=t.nodeType){let e,r;(r=function(e,t){for(;e&&t==e.childNodes.length&&!el(e);)t=$s(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;e=n,t=0}}(t,n))?(t=r,n=0):(e=function(e,t){for(;e&&!t&&!el(e);)t=$s(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(3==n.nodeType)return n;if(1==n.nodeType&&"false"==n.contentEditable)break;t=(e=n).childNodes.length}}(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(tl(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:o}=e;setTimeout((()=>{e.state==o&&hu(e)}),50)}function _u(e,t){let n=e.state.doc.resolve(t);if(!pl&&!vl&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?"ltr":"rtl"}if(t<n.end()){let n=e.coordsAtPos(t+1),o=(n.top+n.bottom)/2;if(o>r.top&&o<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function ju(e,t,n){let r=e.state.selection;if(r instanceof Ms&&!r.empty||n.indexOf("s")>-1)return!1;if(yl&&n.indexOf("m")>-1)return!1;let{$from:o,$to:i}=r;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=Su(e.state,t);if(n&&n instanceof Ns)return Eu(e,n)}if(!o.parent.inlineContent){let n=t<0?o:i,a=r instanceof Ps?Ds.near(n,t):Ds.findFrom(n,t);return!!a&&Eu(e,a)}return!1}function Tu(e,t){if(!(e.state.selection instanceof Ms))return!0;let{$head:n,$anchor:r,empty:o}=e.state.selection;if(!n.sameParent(r))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let r=e.state.tr;return t<0?r.delete(n.pos-i.nodeSize,n.pos):r.delete(n.pos,n.pos+i.nodeSize),e.dispatch(r),!0}return!1}function Ru(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Fu(e,t){let n=t.keyCode,r=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==n||yl&&72==n&&"c"==r)return Tu(e,-1)||Nu(e,-1);if(46==n&&!t.shiftKey||yl&&68==n&&"c"==r)return Tu(e,1)||Nu(e,1);if(13==n||27==n)return!0;if(37==n||yl&&66==n&&"c"==r){let t=37==n?"ltr"==_u(e,e.state.selection.from)?-1:1:-1;return Cu(e,t,r)||Nu(e,t)}if(39==n||yl&&70==n&&"c"==r){let t=39==n?"ltr"==_u(e,e.state.selection.from)?1:-1:1;return Cu(e,t,r)||Nu(e,t)}return 38==n||yl&&80==n&&"c"==r?ju(e,-1,r)||Nu(e,-1):40==n||yl&&78==n&&"c"==r?function(e){if(!ml||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;Ru(e,n,"true"),setTimeout((()=>Ru(e,n,"false")),20)}return!1}(e)||ju(e,1,r)||Nu(e,1):r==(yl?"m":"c")&&(66==n||73==n||89==n||90==n)}function Iu(e,t){e.someProp("transformCopied",(n=>{t=n(t,e)}));let n=[],{content:r,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==r.childCount&&1==r.firstChild.childCount;){o--,i--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let a=e.someProp("clipboardSerializer")||Ca.fromSchema(e.state.schema),s=qu(),l=s.createElement("div");l.appendChild(a.serializeFragment(r,{document:s}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=Uu[c.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),d++}c=l.firstChild}c&&1==c.nodeType&&c.setAttribute("data-pm-slice","".concat(o," ").concat(i).concat(d?" -".concat(d):""," ").concat(JSON.stringify(n)));let f=e.someProp("clipboardTextSerializer",(n=>n(t,e)))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:l,text:f,slice:t}}function Lu(e,t,n,r,o){let i,a,s=o.parent.type.spec.code;if(!n&&!t)return null;let l=t&&(r||s||!n);if(l){if(e.someProp("transformPastedText",(n=>{t=n(t,s||r,e)})),s)return t?new Pi(Ei.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):Pi.empty;let n=e.someProp("clipboardTextParser",(n=>n(t,o,r,e)));if(n)a=n;else{let n=o.marks(),{schema:r}=e.state,a=Ca.fromSchema(r);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(r.text(e,n)))}))}}else e.someProp("transformPastedHTML",(t=>{n=t(n,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=qu().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(n=o&&Uu[o[1].toLowerCase()])&&(e=n.map((e=>"<"+e+">")).join("")+e+n.map((e=>"</"+e+">")).reverse().join(""));if(r.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;Ku||(Ku=t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return Ku.createHTML(e)}(e),n)for(let i=0;i<n.length;i++)r=r.querySelector(n[i])||r;return r}(n),wl&&function(e){let t=e.querySelectorAll(pl?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<t.length;n++){let r=t[n];1==r.childNodes.length&&"\xa0"==r.textContent&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),r)}}(i);let u=i&&i.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let d=+c[3];d>0;d--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||ga.fromSchema(e.state.schema);a=t.parseSlice(i,{preserveWhitespace:!(!l&&!c),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||zu.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(c)a=function(e,t){if(!e.size)return e;let n,r=e.content.firstChild.type.schema;try{n=JSON.parse(t)}catch(ak){return e}let{content:o,openStart:i,openEnd:a}=e;for(let s=n.length-2;s>=0;s-=2){let e=r.nodes[n[s]];if(!e||e.hasRequiredAttrs())break;o=Ei.from(e.create(n[s+1],o)),i++,a++}return new Pi(o,i,a)}(Vu(a,+c[1],+c[2]),c[4]);else if(a=Pi.maxOpen(function(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n).contentMatchAt(t.index(n)),i=[];if(e.forEach((e=>{if(!i)return;let t,n=o.findWrapping(e.type);if(!n)return i=null;if(t=i.length&&r.length&&Yu(n,r,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=Hu(i[i.length-1],r.length));let t=Bu(e,n);i.push(t),o=o.matchType(t.type),r=n}})),i)return Ei.from(i)}return e}(a.content,o),!0),a.openStart||a.openEnd){let e=0,t=0;for(let n=a.content.firstChild;e<a.openStart&&!n.type.spec.isolating;e++,n=n.firstChild);for(let n=a.content.lastChild;t<a.openEnd&&!n.type.spec.isolating;t++,n=n.lastChild);a=Vu(a,e,t)}return e.someProp("transformPasted",(t=>{a=t(a,e)})),a}const zu=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Bu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(let r=t.length-1;r>=n;r--)e=t[r].create(null,Ei.from(e));return e}function Yu(e,t,n,r,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=Yu(e,t,n,r.lastChild,o+1);if(i)return r.copy(r.content.replaceChild(r.childCount-1,i));if(r.contentMatchAt(r.childCount).matchType(o==e.length-1?n.type:e[o+1]))return r.copy(r.content.append(Ei.from(Bu(n,e,o+1))))}}function Hu(e,t){if(0==t)return e;let n=e.content.replaceChild(e.childCount-1,Hu(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(Ei.empty,!0);return e.copy(n.append(r))}function Wu(e,t,n,r,o,i){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<r-1&&(s=Wu(s,t,n,r,o+1,i)),o>=n&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(Ei.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Vu(e,t,n){return t<e.openStart&&(e=new Pi(Wu(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new Pi(Wu(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}const Uu={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let $u=null;function qu(){return $u||($u=document.implementation.createHTMLDocument("title"))}let Ku=null;const Qu={},Gu={},Ju={touchstart:!0,touchmove:!0};class Zu{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Xu(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function ec(e){e.someProp("handleDOMEvents",(t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>tc(e,t))}))}function tc(e,t){return e.someProp("handleDOMEvents",(n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)}))}function nc(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function rc(e){return{left:e.clientX,top:e.clientY}}function oc(e,t,n,r,o){if(-1==r)return!1;let i=e.state.doc.resolve(r);for(let a=i.depth+1;a>0;a--)if(e.someProp(t,(t=>a>i.depth?t(e,n,i.nodeAfter,i.before(a),o,!0):t(e,n,i.node(a),i.before(a),o,!1))))return!0;return!1}function ic(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function ac(e,t,n,r,o){return oc(e,"handleClickOn",t,n,r)||e.someProp("handleClick",(n=>n(e,t,r)))||(o?function(e,t){if(-1==t)return!1;let n,r,o=e.state.selection;o instanceof Ns&&(n=o.node);let i=e.state.doc.resolve(t);for(let a=i.depth+1;a>0;a--){let e=a>i.depth?i.nodeAfter:i.node(a);if(Ns.isSelectable(e)){r=n&&o.$from.depth>0&&a>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(a);break}}return null!=r&&(ic(e,Ns.create(e.state.doc,r),"pointer"),!0)}(e,n):function(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return!!(r&&r.isAtom&&Ns.isSelectable(r))&&(ic(e,new Ns(n),"pointer"),!0)}(e,n))}function sc(e,t,n,r){return oc(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",(n=>n(e,t,r)))}function lc(e,t,n,r){return oc(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",(n=>n(e,t,r)))||function(e,t,n){if(0!=n.button)return!1;let r=e.state.doc;if(-1==t)return!!r.inlineContent&&(ic(e,Ms.create(r,0,r.content.size),"pointer"),!0);let o=r.resolve(t);for(let i=o.depth+1;i>0;i--){let t=i>o.depth?o.nodeAfter:o.node(i),n=o.before(i);if(t.inlineContent)ic(e,Ms.create(r,n+1,n+1+t.content.size),"pointer");else{if(!Ns.isSelectable(t))continue;ic(e,Ns.create(r,n),"pointer")}return!0}}(e,n,r)}function uc(e){return yc(e)}Gu.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!fc(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!bl||!pl||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!gl||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",(t=>t(e,n)))||Fu(e,n)?n.preventDefault():Xu(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,nl(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},Gu.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Gu.keypress=(e,t)=>{let n=t;if(fc(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||yl&&n.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,n))))return void n.preventDefault();let r=e.state.selection;if(!(r instanceof Ms)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(n=>n(e,r.$from.pos,r.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const cc=yl?"metaKey":"ctrlKey";Qu.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=uc(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}(n,e.input.lastClick)&&!n[cc]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:i};let a=e.posAtCoords(rc(n));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new dc(e,a,n,!!r)):("doubleClick"==i?sc:lc)(e,a.pos,a.inside,n)?n.preventDefault():Xu(e,"pointer"))};class dc{constructor(e,t,n,r){let o,i;if(this.view=e,this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[cc],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,i=n.depth?n.before():0}const a=r?null:n.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s&&1==s.dom.nodeType?s.dom:null;let{selection:l}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof Ns&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!dl||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),Xu(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>hu(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(rc(e))),this.updateAllowDefault(e),this.allowDefault||!t?Xu(this.view,"pointer"):ac(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||ml&&this.mightDrag&&!this.mightDrag.node.isAtom||pl&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(ic(this.view,Ds.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):Xu(this.view,"pointer")}move(e){this.updateAllowDefault(e),Xu(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function fc(e,t){return!!e.composing||!!(ml&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Qu.touchstart=e=>{e.input.lastTouch=Date.now(),uc(e),Xu(e,"pointer")},Qu.touchmove=e=>{e.input.lastTouch=Date.now(),Xu(e,"pointer")},Qu.contextmenu=e=>uc(e);const pc=bl?5e3:-1;function hc(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>yc(e)),t))}function mc(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function gc(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=Xs(e=e.childNodes[t-1])}else{if(!e.parentNode||el(e))return null;t=$s(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),r=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||el(e))return null;t=$s(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,o=e.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(e&&e.isText(n.nodeValue))return r}}return n||r}function yc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(bl&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),mc(e),t||e.docView&&e.docView.dirty){let n=fu(e);return n&&!n.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(n)):!e.markCursor&&!t||e.state.selection.empty?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}Gu.compositionstart=Gu.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof Ms&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||n.marks(),yc(e,!0),e.markCursor=null;else if(yc(e,!t.selection.empty),dl&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}hc(e,pc)},Gu.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,hc(e,20))};const vc=ul&&cl<15||gl&&xl<604;function bc(e,t,n,r,o){let i=Lu(e,t,n,r,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,o,i||Pi.empty))))return!0;if(!i)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,r):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function wc(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Qu.copy=Gu.cut=(e,t)=>{let n=t,r=e.state.selection,o="cut"==n.type;if(r.empty)return;let i=vc?null:n.clipboardData,a=r.content(),{dom:s,text:l}=Iu(e,a);i?(n.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(o),setTimeout((()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()}),50)}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Gu.paste=(e,t)=>{let n=t;if(e.composing&&!bl)return;let r=vc?null:n.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;r&&bc(e,wc(r),r.getData("text/html"),o,n)?n.preventDefault():function(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?bc(e,r.value,null,o,t):bc(e,r.textContent,r.innerHTML,o,t)}),50)}(e,n)};class xc{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}}const kc=yl?"altKey":"ctrlKey";Qu.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let o,i=e.state.selection,a=i.empty?null:e.posAtCoords(rc(n));if(a&&a.pos>=i.from&&a.pos<=(i instanceof Ns?i.to-1:i.to));else if(r&&r.mightDrag)o=Ns.create(e.state.doc,r.mightDrag.pos);else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=Ns.create(e.state.doc,t.posBefore))}let s=(o||e.state.selection).content(),{dom:l,text:u,slice:c}=Iu(e,s);(!n.dataTransfer.files.length||!pl||hl>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(vc?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",vc||n.dataTransfer.setData("text/plain",u),e.dragging=new xc(c,!n[kc],o)},Qu.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},Gu.dragover=Gu.dragenter=(e,t)=>t.preventDefault(),Gu.drop=(e,t)=>{let n=t,r=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(rc(n));if(!o)return;let i=e.state.doc.resolve(o.pos),a=r&&r.slice;a?e.someProp("transformPasted",(t=>{a=t(a,e)})):a=Lu(e,wc(n.dataTransfer),vc?null:n.dataTransfer.getData("text/html"),!1,i);let s=!(!r||n[kc]);if(e.someProp("handleDrop",(t=>t(e,n,a||Pi.empty,s))))return void n.preventDefault();if(!a)return;n.preventDefault();let l=a?ss(e.state.doc,i.pos,a):i.pos;null==l&&(l=i.pos);let u=e.state.tr;if(s){let{node:e}=r;e?e.replace(u):u.deleteSelection()}let c=u.mapping.map(l),d=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,f=u.doc;if(d?u.replaceRangeWith(c,c,a.content.firstChild):u.replaceRange(c,c,a),u.doc.eq(f))return;let p=u.doc.resolve(c);if(d&&Ns.isSelectable(a.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(a.content.firstChild))u.setSelection(new Ns(p));else{let t=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach(((e,n,r,o)=>t=o)),u.setSelection(xu(e,p,u.doc.resolve(t)))}e.focus(),e.dispatch(u.setMeta("uiEvent","drop"))},Qu.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&hu(e)}),20))},Qu.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Qu.beforeinput=(e,t)=>{if(pl&&bl&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,nl(8,"Backspace")))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())}),50)}};for(let n in Gu)Qu[n]=Gu[n];function Dc(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class Sc{constructor(e,t){this.toDOM=e,this.spec=t||Nc,this.side=this.spec.side||0}map(e,t,n,r){let{pos:o,deleted:i}=e.mapResult(t.from+r,this.side<0?-1:1);return i?null:new Mc(o-n,o-n,this)}valid(){return!0}eq(e){return this==e||e instanceof Sc&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Dc(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Ec{constructor(e,t){this.attrs=e,this.spec=t||Nc}map(e,t,n,r){let o=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,i=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return o>=i?null:new Mc(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof Ec&&Dc(this.attrs,e.attrs)&&Dc(this.spec,e.spec)}static is(e){return e.type instanceof Ec}destroy(){}}class Cc{constructor(e,t){this.attrs=e,this.spec=t||Nc}map(e,t,n,r){let o=e.mapResult(t.from+r,1);if(o.deleted)return null;let i=e.mapResult(t.to+r,-1);return i.deleted||i.pos<=o.pos?null:new Mc(o.pos-n,i.pos-n,this)}valid(e,t){let n,{index:r,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(n=e.child(r)).isText&&o+n.nodeSize==t.to}eq(e){return this==e||e instanceof Cc&&Dc(this.attrs,e.attrs)&&Dc(this.spec,e.spec)}destroy(){}}class Mc{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(e,t){return new Mc(e,t,this.type)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(e,t,n){return new Mc(e,e,new Sc(t,n))}static inline(e,t,n,r){return new Mc(e,t,new Ec(n,r))}static node(e,t,n,r){return new Mc(e,t,new Cc(n,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof Ec}get widget(){return this.type instanceof Sc}}const Oc=[],Nc={};class Ac{constructor(e,t){this.local=e.length?e:Oc,this.children=t.length?t:Oc}static create(e,t){return t.length?Fc(t,e,0,Nc):Pc}find(e,t,n){let r=[];return this.findInner(null==e?0:e,null==t?1e9:t,r,0,n),r}findInner(e,t,n,r,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,n,r+a,o)}}map(e,t,n){return this==Pc||0==e.maps.length?this:this.mapInner(e,t,0,0,n||Nc)}mapInner(e,t,n,r,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,n,r);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,n,r,o,i,a){let s=e.slice();for(let u=0,c=i;u<n.maps.length;u++){let e=0;n.maps[u].forEach(((t,n,r,o)=>{let i=o-r-(n-t);for(let a=0;a<s.length;a+=3){let r=s[a+1];if(r<0||t>r+c-e)continue;let o=s[a]+c-e;n>=o?s[a+1]=t<=o?-2:-1:t>=c&&i&&(s[a]+=i,s[a+1]+=i)}e+=i})),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<s.length;u+=3)if(s[u+1]<0){if(-2==s[u+1]){l=!0,s[u+1]=-1;continue}let t=n.map(e[u]+i),c=t-o;if(c<0||c>=r.content.size){l=!0;continue}let d=n.map(e[u+1]+i,-1)-o,{index:f,offset:p}=r.content.findIndex(c),h=r.maybeChild(f);if(h&&p==c&&p+h.nodeSize==d){let r=s[u+2].mapInner(n,h,t+1,e[u]+i+1,a);r!=Pc?(s[u]=c,s[u+1]=d,s[u+2]=r):(s[u+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,n,r,o,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(r,o,t);s?n.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let l=0;l<e.length;l+=3)-1==e[l+1]&&s(e[l+2],t[l]+i+1);return n}(s,e,t,n,o,i,a),u=Fc(l,r,0,a);t=u.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<u.children.length;e+=3){let n=u.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,u.children[e],u.children[e+1],u.children[e+2])}}return new Ac(t.sort(Ic),s)}(this.children,i||[],e,t,n,r,o):i?new Ac(i.sort(Ic),Oc):Pc}add(e,t){return t.length?this==Pc?Ac.create(e,t):this.addInner(e,t,0):this}addInner(e,t,n){let r,o=0;e.forEach(((e,i)=>{let a,s=i+n;if(a=Tc(t,e,s)){for(r||(r=this.children.slice());o<r.length&&r[o]<i;)o+=3;r[o]==i?r[o+2]=r[o+2].addInner(e,a,s+1):r.splice(o,0,i,i+e.nodeSize,Fc(a,e,s+1,Nc)),o+=3}}));let i=jc(o?Rc(t):t,-n);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||i.splice(a--,1);return new Ac(i.length?this.local.concat(i).sort(Ic):this.local,r||this.children)}remove(e){return 0==e.length||this==Pc?this:this.removeInner(e,0)}removeInner(e,t){let n=this.children,r=this.local;for(let o=0;o<n.length;o+=3){let r,i=n[o]+t,a=n[o+1]+t;for(let t,n=0;n<e.length;n++)(t=e[n])&&t.from>i&&t.to<a&&(e[n]=null,(r||(r=[])).push(t));if(!r)continue;n==this.children&&(n=this.children.slice());let s=n[o+2].removeInner(r,i+1);s!=Pc?n[o+2]=s:(n.splice(o,3),o-=3)}if(r.length)for(let o,i=0;i<e.length;i++)if(o=e[i])for(let e=0;e<r.length;e++)r[e].eq(o,t)&&(r==this.local&&(r=this.local.slice()),r.splice(e--,1));return n==this.children&&r==this.local?this:r.length||n.length?new Ac(r,n):Pc}forChild(e,t){if(this==Pc)return this;if(t.isLeaf)return Ac.empty;let n,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(n=this.children[a+2]);break}let o=e+1,i=o+t.content.size;for(let a=0;a<this.local.length;a++){let e=this.local[a];if(e.from<i&&e.to>o&&e.type instanceof Ec){let t=Math.max(o,e.from)-o,n=Math.min(i,e.to)-o;t<n&&(r||(r=[])).push(e.copy(t,n))}}if(r){let e=new Ac(r.sort(Ic),Oc);return n?new _c([e,n]):e}return n||Pc}eq(e){if(this==e)return!0;if(!(e instanceof Ac)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Lc(this.localsInner(e))}localsInner(e){if(this==Pc)return Oc;if(e.inlineContent||!this.local.some(Ec.is))return this.local;let t=[];for(let n=0;n<this.local.length;n++)this.local[n].type instanceof Ec||t.push(this.local[n]);return t}forEachSet(e){e(this)}}Ac.empty=new Ac([],[]),Ac.removeOverlap=Lc;const Pc=Ac.empty;class _c{constructor(e){this.members=e}map(e,t){const n=this.members.map((n=>n.map(e,t,Nc)));return _c.from(n)}forChild(e,t){if(t.isLeaf)return Ac.empty;let n=[];for(let r=0;r<this.members.length;r++){let o=this.members[r].forChild(e,t);o!=Pc&&(o instanceof _c?n=n.concat(o.members):n.push(o))}return _c.from(n)}eq(e){if(!(e instanceof _c)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let o=this.members[r].localsInner(e);if(o.length)if(t){n&&(t=t.slice(),n=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Lc(n?t:t.sort(Ic)):Oc}static from(e){switch(e.length){case 0:return Pc;case 1:return e[0];default:return new _c(e.every((e=>e instanceof Ac))?e:e.reduce(((e,t)=>e.concat(t instanceof Ac?t:t.members)),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function jc(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let o=e[r];n.push(new Mc(o.from+t,o.to+t,o.type))}return n}function Tc(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,o=null;for(let i,a=0;a<e.length;a++)(i=e[a])&&i.from>n&&i.to<r&&((o||(o=[])).push(i),e[a]=null);return o}function Rc(e){let t=[];for(let n=0;n<e.length;n++)null!=e[n]&&t.push(e[n]);return t}function Fc(e,t,n,r){let o=[],i=!1;t.forEach(((t,a)=>{let s=Tc(e,t,a+n);if(s){i=!0;let e=Fc(s,t,n+a+1,r);e!=Pc&&o.push(a,a+t.nodeSize,e)}}));let a=jc(i?Rc(e):e,-n).sort(Ic);for(let s=0;s<a.length;s++)a[s].type.valid(t,a[s])||(r.onRemove&&r.onRemove(a[s].spec),a.splice(s--,1));return a.length||o.length?new Ac(a,o):Pc}function Ic(e,t){return e.from-t.from||e.to-t.to}function Lc(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let o=n+1;o<t.length;o++){let i=t[o];if(i.from!=r.from){i.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,i.from),zc(t,o,r.copy(i.from,r.to)));break}i.to!=r.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,r.to),zc(t,o+1,i.copy(r.to,i.to)))}}return t}function zc(e,t,n){for(;t<e.length&&Ic(n,e[t])>0;)t++;e.splice(t,0,n)}function Bc(e){let t=[];return e.someProp("decorations",(n=>{let r=n(e.state);r&&r!=Pc&&t.push(r)})),e.cursorWrapper&&t.push(Ac.create(e.state.doc,[e.cursorWrapper.deco])),_c.from(t)}const Yc={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Hc=ul&&cl<=11;class Wc{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Vc{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Wc,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver((e=>{for(let t=0;t<e.length;t++)this.queue.push(e[t]);ul&&cl<=11&&e.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Hc&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout((()=>{this.flushingSoon=-1,this.flush()}),20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,Yc)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout((()=>this.flush()),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout((()=>this.suppressingSelectionUpdates=!1),50)}onSelectionChange(){if(ku(this.view)){if(this.suppressingSelectionUpdates)return hu(this.view);if(ul&&cl<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Gs(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let o=e.focusNode;o;o=qs(o))n.add(o);for(let o=e.anchorNode;o;o=qs(o))if(n.has(o)){t=o;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&ku(e)&&!this.ignoreSelectionChange(n),o=-1,i=-1,a=!1,s=[];if(e.editable)for(let u=0;u<t.length;u++){let e=this.registerMutation(t[u],s);e&&(o=o<0?e.from:Math.min(e.from,o),i=i<0?e.to:Math.max(e.to,i),e.typeOver&&(a=!0))}if(dl&&s.length){let t=s.filter((e=>"BR"==e.nodeName));if(2==t.length){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;!t||"LI"!=t.nodeName||n&&Kc(e,n)==t||r.remove()}}}let l=null;o<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&tl(n)&&(l=fu(e))&&l.eq(Ds.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hu(e),this.currentSelection.set(n),e.scrollToSelection()):(o>-1||r)&&(o>-1&&(e.docView.markDirty(o,i),function(e){if(Uc.has(e))return;if(Uc.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=dl,$c)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),$c=!0}}(e)),this.handleDOMChange(o,i,a,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||hu(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),3==r.nodeType&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,o=e.nextSibling;if(ul&&cl<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:i}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!i||Array.prototype.indexOf.call(e.addedNodes,i)<0)&&(o=i)}let i=r&&r.parentNode==e.target?$s(r)+1:0,a=n.localPosFromDOM(e.target,i,-1),s=o&&o.parentNode==e.target?$s(o):e.target.childNodes.length;return{from:a,to:n.localPosFromDOM(e.target,s,1)}}return"attributes"==e.type?{from:n.posAtStart-n.border,to:n.posAtEnd+n.border}:(this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Uc=new WeakMap,$c=!1;function qc(e,t){let n=t.startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,a=e.domAtPos(e.state.selection.anchor);return Gs(a.node,a.offset,o,i)&&([n,r,o,i]=[o,i,n,r]),{anchorNode:n,anchorOffset:r,focusNode:o,focusOffset:i}}function Kc(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function Qc(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(ml&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||ml&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Gc=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Jc(e,t,n,r,o){let i=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=fu(e,t);if(n&&!e.state.selection.eq(n)){if(pl&&bl&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",(t=>t(e,nl(13,"Enter")))))return;let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),i&&r.setMeta("composition",i),e.dispatch(r)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l,u,c=e.state.selection,d=function(e,t,n){let r,{node:o,fromOffset:i,toOffset:a,from:s,to:l}=e.docView.parseRange(t,n),u=e.domSelectionRange(),c=u.anchorNode;if(c&&e.dom.contains(1==c.nodeType?c:c.parentNode)&&(r=[{node:c,offset:u.anchorOffset}],tl(u)||r.push({node:u.focusNode,offset:u.focusOffset})),pl&&8===e.input.lastKeyCode)for(let g=a;g>i;g--){let e=o.childNodes[g-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){a=g;break}if(!t||t.size)break}let d=e.state.doc,f=e.someProp("domParser")||ga.fromSchema(e.state.schema),p=d.resolve(s),h=null,m=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:Qc,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),h={anchor:e+s,head:t+s}}return{doc:m,sel:h,from:s,to:l}}(e,t,n),f=e.state.doc,p=f.slice(d.from,d.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(l=e.state.selection.to,u="end"):(l=e.state.selection.from,u="start"),e.input.lastKeyCode=null;let h=function(e,t,n,r,o){let i=e.findDiffStart(t,n);if(null==i)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==o){r-=a+Math.max(0,i-Math.min(a,s))-i}if(a<i&&e.size<t.size){let e=r<=i&&r>=a?i-r:0;i-=e,i&&i<t.size&&ed(t.textBetween(i-1,i+1))&&(i+=e?1:-1),s=i+(s-a),a=i}else if(s<i){let t=r<=i&&r>=s?i-r:0;i-=t,i&&i<e.size&&ed(e.textBetween(i-1,i+1))&&(i+=t?1:-1),a=i+(a-s),s=i}return{start:i,endA:a,endB:s}}(p.content,d.doc.content,d.from,l,u);if(h&&e.input.domChangeCount++,(gl&&e.input.lastIOSEnter>Date.now()-225||bl)&&o.some((e=>1==e.nodeType&&!Gc.test(e.nodeName)))&&(!h||h.endA>=h.endB)&&e.someProp("handleKeyDown",(t=>t(e,nl(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(!h){if(!(r&&c instanceof Ms&&!c.empty&&c.$head.sameParent(c.$anchor))||e.composing||d.sel&&d.sel.anchor!=d.sel.head){if(d.sel){let t=Zc(e,e.state.doc,d.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);i&&n.setMeta("composition",i),e.dispatch(n)}}return}h={start:c.from,endA:c.to,endB:c.to}}e.state.selection.from<e.state.selection.to&&h.start==h.endB&&e.state.selection instanceof Ms&&(h.start>e.state.selection.from&&h.start<=e.state.selection.from+2&&e.state.selection.from>=d.from?h.start=e.state.selection.from:h.endA<e.state.selection.to&&h.endA>=e.state.selection.to-2&&e.state.selection.to<=d.to&&(h.endB+=e.state.selection.to-h.endA,h.endA=e.state.selection.to)),ul&&cl<=11&&h.endB==h.start+1&&h.endA==h.start&&h.start>d.from&&" \xa0"==d.doc.textBetween(h.start-d.from-1,h.start-d.from+1)&&(h.start--,h.endA--,h.endB--);let m,g=d.doc.resolveNoCache(h.start-d.from),y=d.doc.resolveNoCache(h.endB-d.from),v=f.resolve(h.start),b=g.sameParent(y)&&g.parent.inlineContent&&v.end()>=h.endA;if((gl&&e.input.lastIOSEnter>Date.now()-225&&(!b||o.some((e=>"DIV"==e.nodeName||"P"==e.nodeName)))||!b&&g.pos<d.doc.content.size&&!g.sameParent(y)&&(m=Ds.findFrom(d.doc.resolve(g.pos+1),1,!0))&&m.head==y.pos)&&e.someProp("handleKeyDown",(t=>t(e,nl(13,"Enter")))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>h.start&&function(e,t,n,r,o){if(n-t<=o.pos-r.pos||Xc(r,!0,!1)<o.pos)return!1;let i=e.resolve(t);if(!r.parent.isTextblock){let e=i.nodeAfter;return null!=e&&n==t+e.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=e.resolve(Xc(i,!0,!0));return!(!a.parent.isTextblock||a.pos>n||Xc(a,!0,!1)<n)&&r.parent.content.cut(r.parentOffset).eq(a.parent.content)}(f,h.start,h.endA,g,y)&&e.someProp("handleKeyDown",(t=>t(e,nl(8,"Backspace")))))return void(bl&&pl&&e.domObserver.suppressSelectionUpdates());pl&&h.endB==h.start&&(e.input.lastChromeDelete=Date.now()),bl&&!b&&g.start()!=y.start()&&0==y.parentOffset&&g.depth==y.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==h.endA&&(h.endB-=2,y=d.doc.resolveNoCache(h.endB-d.from),setTimeout((()=>{e.someProp("handleKeyDown",(function(t){return t(e,nl(13,"Enter"))}))}),20));let w,x,k,D=h.start,S=h.endA;if(b)if(g.pos==y.pos)ul&&cl<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout((()=>hu(e)),20)),w=e.state.tr.delete(D,S),x=f.resolve(h.start).marksAcross(f.resolve(h.endA));else if(h.endA==h.endB&&(k=function(e,t){let n,r,o,i=e.firstChild.marks,a=t.firstChild.marks,s=i,l=a;for(let c=0;c<a.length;c++)s=a[c].removeFromSet(s);for(let c=0;c<i.length;c++)l=i[c].removeFromSet(l);if(1==s.length&&0==l.length)r=s[0],n="add",o=e=>e.mark(r.addToSet(e.marks));else{if(0!=s.length||1!=l.length)return null;r=l[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let c=0;c<t.childCount;c++)u.push(o(t.child(c)));if(Ei.from(u).eq(e))return{mark:r,type:n}}(g.parent.content.cut(g.parentOffset,y.parentOffset),v.parent.content.cut(v.parentOffset,h.endA-v.start()))))w=e.state.tr,"add"==k.type?w.addMark(D,S,k.mark):w.removeMark(D,S,k.mark);else if(g.parent.child(g.index()).isText&&g.index()==y.index()-(y.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,y.parentOffset);if(e.someProp("handleTextInput",(n=>n(e,D,S,t))))return;w=e.state.tr.insertText(t,D,S)}if(w||(w=e.state.tr.replace(D,S,d.doc.slice(h.start-d.from,h.endB-d.from))),d.sel){let t=Zc(e,w.doc,d.sel);t&&!(pl&&e.composing&&t.empty&&(h.start!=h.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==D||t.head==w.mapping.map(S)-1)||ul&&t.empty&&t.head==D)&&w.setSelection(t)}x&&w.ensureMarks(x),i&&w.setMeta("composition",i),e.dispatch(w.scrollIntoView())}function Zc(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:xu(e,t.resolve(n.anchor),t.resolve(n.head))}function Xc(e,t,n){let r=e.depth,o=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,o++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,o++}return o}function ed(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),n=e.charCodeAt(1);return t>=56320&&t<=57343&&n>=55296&&n<=56319}class td{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Zu,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(ad),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=od(this),rd(this),this.nodeViews=id(this),this.docView=Gl(this.state.doc,nd(this),Bc(this),this.dom,this),this.domObserver=new Vc(this,((e,t,n,r)=>Jc(this,e,t,n,r))),this.domObserver.start(),function(e){for(let t in Qu){let n=Qu[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!nc(e,t)||tc(e,t)||!e.editable&&t.type in Gu||n(e,t)},Ju[t]?{passive:!0}:void 0)}ml&&e.dom.addEventListener("input",(()=>null)),ec(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ec(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(ad),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var n;let r=this.state,o=!1,i=!1;e.storedMarks&&this.composing&&(mc(this),i=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=id(this);(function(e,t){let n=0,r=0;for(let o in e){if(e[o]!=t[o])return!0;n++}for(let o in t)r++;return n!=r})(e,this.nodeViews)&&(this.nodeViews=e,o=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&ec(this),this.editable=od(this),rd(this);let s=Bc(this),l=nd(this),u=r.plugins==e.plugins||r.doc.eq(e.doc)?e.scrollToSelection>r.scrollToSelection?"to selection":"preserve":"reset",c=o||!this.docView.matchesNode(e.doc,l,s);!c&&e.selection.eq(r.selection)||(i=!0);let d="preserve"==u&&i&&null==this.dom.style.overflowAnchor&&function(e){let t,n,r=e.dom.getBoundingClientRect(),o=Math.max(0,r.top);for(let i=(r.left+r.right)/2,a=o+1;a<Math.min(innerHeight,r.bottom);a+=5){let r=e.root.elementFromPoint(i,a);if(!r||r==e.dom||!e.dom.contains(r))continue;let s=r.getBoundingClientRect();if(s.top>=o-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:Cl(e.dom)}}(this);if(i){this.domObserver.stop();let t=c&&(ul||pl)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&function(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}(r.selection,e.selection);if(c){let n=pl?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=gc(this)),!o&&this.docView.update(e.doc,l,s,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=Gl(e.doc,l,s,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Gs(t.node,t.offset,n.anchorNode,n.anchorOffset)}(this))?hu(this,t):(bu(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),(null===(n=this.dragging)||void 0===n?void 0:n.node)&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),"reset"==u?this.dom.scrollTop=0:"to selection"==u?this.scrollToSelection():d&&function(e){let{refDOM:t,refTop:n,stack:r}=e,o=t?t.getBoundingClientRect().top:0;Ml(r,0==o?0:o-n)}(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",(e=>e(this))));else if(this.state.selection instanceof Ns){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&El(this,t.getBoundingClientRect(),e)}else El(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let n=e.node,r=-1;if(this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new xc(e.slice,e.move,r<0?void 0:Ns.create(this.state.doc,r))}someProp(e,t){let n,r=this._props&&this._props[e];if(null!=r&&(n=t?t(r):r))return n;for(let i=0;i<this.directPlugins.length;i++){let r=this.directPlugins[i].props[e];if(null!=r&&(n=t?t(r):r))return n}let o=this.state.plugins;if(o)for(let i=0;i<o.length;i++){let r=o[i].props[e];if(null!=r&&(n=t?t(r):r))return n}}hasFocus(){if(ul){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(Ol)return e.focus(Ol);let t=Cl(e);e.focus(null==Ol?{get preventScroll(){return Ol={preventScroll:!0},!0}}:void 0),Ol||(Ol=!1,Ml(t,0))}(this.dom),hu(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}updateRoot(){this._root=null}posAtCoords(e){return _l(this,e)}coordsAtPos(e){return Fl(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)}domAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return Vl(this,t||this.state,e)}pasteHTML(e,t){return bc(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return bc(this,e,null,!0,t||new ClipboardEvent("paste"))}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Bc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Ks=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){tc(e,t)||!Qu[t.type]||!e.editable&&t.type in Gu||Qu[t.type](e,t)}(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?ml&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return qc(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",r,!0),n?qc(e,n):null}(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function nd(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",(n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e?t.class+=" "+n[e]:"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))})),t.translate||(t.translate="no"),[Mc.node(0,e.state.doc.content.size,t)]}function rd(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Mc.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function od(e){return!e.someProp("editable",(t=>!1===t(e.state)))}function id(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ad(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var sd={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ld={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ud="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),cd="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),dd=0;dd<10;dd++)sd[48+dd]=sd[96+dd]=String(dd);for(dd=1;dd<=24;dd++)sd[dd+111]="F"+dd;for(dd=65;dd<=90;dd++)sd[dd]=String.fromCharCode(dd+32),ld[dd]=String.fromCharCode(dd);for(var fd in sd)ld.hasOwnProperty(fd)||(ld[fd]=sd[fd]);const pd="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function hd(e){let t,n,r,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let s=0;s<i.length-1;s++){let e=i[s];if(/^(cmd|meta|m)$/i.test(e))o=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))r=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);pd?o=!0:n=!0}}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}function md(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function gd(e){let t=function(e){let t=Object.create(null);for(let n in e)t[hd(n)]=e[n];return t}(e);return function(e,n){let r,o=function(e){var t=!(ud&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||cd&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?ld:sd)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(n),i=t[md(o,n)];if(i&&i(e.state,e.dispatch,e))return!0;if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[md(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.shiftKey||n.altKey||n.metaKey||o.charCodeAt(0)>127)&&(r=sd[n.keyCode])&&r!=o){let o=t[md(r,n)];if(o&&o(e.state,e.dispatch,e))return!0}}return!1}}const yd=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function vd(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const bd=(e,t,n)=>{let r=vd(e,n);if(!r)return!1;let o=Dd(r);if(!o){let n=r.blockRange(),o=n&&Ja(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(Rd(e,o,t,-1))return!0;if(0==r.parent.content.size&&(xd(i,"end")||Ns.isSelectable(i)))for(let a=r.depth;;a--){let n=ls(e.doc,r.before(a),r.after(a),Pi.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(xd(i,"end")?Ds.findFrom(r.doc.resolve(r.mapping.map(o.pos,-1)),-1):Ns.create(r.doc,o.pos-i.nodeSize)),t(r.scrollIntoView())}return!0}if(1==a||r.node(a-1).childCount>1)break}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)};function wd(e,t,n){let r=t.nodeBefore,o=t.pos-1;for(;!r.isTextblock;o--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let i=t.nodeAfter,a=t.pos+1;for(;!i.isTextblock;a++){if(i.type.spec.isolating)return!1;let e=i.firstChild;if(!e)return!1;i=e}let s=ls(e.doc,o,a,Pi.empty);if(!s||s.from!=o||s instanceof $a&&s.slice.size>=a-o)return!1;if(n){let t=e.tr.step(s);t.setSelection(Ms.create(t.doc,o)),n(t.scrollIntoView())}return!0}function xd(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let r=e;r;r="start"==t?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&1!=r.childCount)return!1}return!1}const kd=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;i=Dd(r)}let a=i&&i.nodeBefore;return!(!a||!Ns.isSelectable(a))&&(t&&t(e.tr.setSelection(Ns.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function Dd(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Sd(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)?null:n}const Ed=(e,t,n)=>{let r=Sd(e,n);if(!r)return!1;let o=Md(r);if(!o)return!1;let i=o.nodeAfter;if(Rd(e,o,t,1))return!0;if(0==r.parent.content.size&&(xd(i,"start")||Ns.isSelectable(i))){let n=ls(e.doc,r.before(),r.after(),Pi.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(xd(i,"start")?Ds.findFrom(r.doc.resolve(r.mapping.map(o.pos)),1):Ns.create(r.doc,r.mapping.map(o.pos))),t(r.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=r.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)},Cd=(e,t,n)=>{let{$head:r,empty:o}=e.selection,i=r;if(!o)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)return!1;i=Md(r)}let a=i&&i.nodeAfter;return!(!a||!Ns.isSelectable(a))&&(t&&t(e.tr.setSelection(Ns.create(e.doc,i.pos)).scrollIntoView()),!0)};function Md(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}const Od=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function Nd(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Ad=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let o=n.node(-1),i=n.indexAfter(-1),a=Nd(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let r=n.after(),o=e.tr.replaceWith(r,r,a.createAndFill());o.setSelection(Ds.near(o.doc.resolve(r),1)),t(o.scrollIntoView())}return!0},Pd=(e,t)=>{let n=e.selection,{$from:r,$to:o}=n;if(n instanceof Ps||r.parent.inlineContent||o.parent.inlineContent)return!1;let i=Nd(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let n=(!r.parentOffset&&o.index()<o.parent.childCount?r:o).pos,a=e.tr.insert(n,i.createAndFill());a.setSelection(Ms.create(a.doc,n+1)),t(a.scrollIntoView())}return!0},_d=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(ns(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),o=r&&Ja(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)};const jd=(e,t)=>{let{$from:n,$to:r}=e.selection;if(e.selection instanceof Ns&&e.selection.node.isBlock)return!(!n.parentOffset||!ns(e.doc,n.pos))&&(t&&t(e.tr.split(n.pos).scrollIntoView()),!0);if(!n.depth)return!1;let o,i,a=[],s=!1,l=!1;for(let f=n.depth;;f--){if(n.node(f).isBlock){s=n.end(f)==n.pos+(n.depth-f),l=n.start(f)==n.pos-(n.depth-f),i=Nd(n.node(f-1).contentMatchAt(n.indexAfter(f-1)));let e=Td&&Td(r.parent,s,n);a.unshift(e||(s&&i?{type:i}:null)),o=f;break}if(1==f)return!1;a.unshift(null)}let u=e.tr;(e.selection instanceof Ms||e.selection instanceof Ps)&&u.deleteSelection();let c=u.mapping.map(n.pos),d=ns(u.doc,c,a.length,a);if(d||(a[0]=i?{type:i}:null,d=ns(u.doc,c,a.length,a)),u.split(c,a.length,a),!s&&l&&n.node(o).type!=i){let e=u.mapping.map(n.before(o)),t=u.doc.resolve(e);i&&n.node(o-1).canReplaceWith(t.index(),t.index()+1,i)&&u.setNodeMarkup(u.mapping.map(n.before(o)),i)}return t&&t(u.scrollIntoView()),!0};var Td;function Rd(e,t,n,r){let o,i,a=t.nodeBefore,s=t.nodeAfter,l=a.type.spec.isolating||s.type.spec.isolating;if(!l&&function(e,t,n){let r=t.nodeBefore,o=t.nodeAfter,i=t.index();return!!(r&&o&&r.type.compatibleContent(o.type))&&(!r.content.size&&t.parent.canReplace(i-1,i)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(i,i+1)||!o.isTextblock&&!rs(e.doc,t.pos))&&(n&&n(e.tr.join(t.pos).scrollIntoView()),!0))}(e,t,n))return!0;let u=!l&&t.parent.canReplace(t.index(),t.index()+1);if(u&&(o=(i=a.contentMatchAt(a.childCount)).findWrapping(s.type))&&i.matchType(o[0]||s.type).validEnd){if(n){let r=t.pos+s.nodeSize,i=Ei.empty;for(let e=o.length-1;e>=0;e--)i=Ei.from(o[e].create(null,i));i=Ei.from(a.copy(i));let l=e.tr.step(new qa(t.pos-1,r,t.pos,r,new Pi(i,1,0),o.length,!0)),u=l.doc.resolve(r+2*o.length);u.nodeAfter&&u.nodeAfter.type==a.type&&rs(l.doc,u.pos)&&l.join(u.pos),n(l.scrollIntoView())}return!0}let c=s.type.spec.isolating||r>0&&l?null:Ds.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),f=d&&Ja(d);if(null!=f&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(u&&xd(s,"start",!0)&&xd(a,"end")){let r=a,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let i=s,l=1;for(;!i.isTextblock;i=i.firstChild)l++;if(r.canReplace(r.childCount,r.childCount,i.content)){if(n){let r=Ei.empty;for(let e=o.length-1;e>=0;e--)r=Ei.from(o[e].copy(r));n(e.tr.step(new qa(t.pos-o.length,t.pos+s.nodeSize,t.pos+l,t.pos+s.nodeSize-l,new Pi(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Fd(e){return function(t,n){let r=t.selection,o=e<0?r.$from:r.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(n&&n(t.tr.setSelection(Ms.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const Id=Fd(-1),Ld=Fd(1);function zd(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){let o=!1;for(let i=0;i<n.selection.ranges.length&&!o;i++){let{$from:{pos:r},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(r,a,((r,i)=>{if(o)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)o=!0;else{let t=n.doc.resolve(i),r=t.index();o=t.parent.canReplaceWith(r,r+1,e)}}))}if(!o)return!1;if(r){let o=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[r];o.setBlockType(i,a,e,t)}r(o.scrollIntoView())}return!0}}function Bd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){for(let o=0;o<t.length;o++)if(t[o](e,n,r))return!0;return!1}}let Yd=Bd(yd,bd,kd),Hd=Bd(yd,Ed,Cd);const Wd={Enter:Bd(Od,Pd,_d,jd),"Mod-Enter":Ad,Backspace:Yd,"Mod-Backspace":Yd,"Shift-Backspace":Yd,Delete:Hd,"Mod-Delete":Hd,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new Ps(e.doc))),!0)},Vd={"Ctrl-h":Wd.Backspace,"Alt-Backspace":Wd["Mod-Backspace"],"Ctrl-d":Wd.Delete,"Ctrl-Alt-Backspace":Wd["Mod-Delete"],"Alt-Delete":Wd["Mod-Delete"],"Alt-d":Wd["Mod-Delete"],"Ctrl-a":Id,"Ctrl-e":Ld};for(let n in Wd)Vd[n]=Wd[n];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function Ud(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i);if(!a)return!1;let s=r?n.tr:null;return!!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=!1,i=t,a=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=a.resolve(t.start-2);i=new qi(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new qi(t.$from,a.resolve(t.$to.end(t.depth)),t.depth)),o=!0}let s=Za(i,n,r,t);if(!s)return!1;e&&function(e,t,n,r,o){let i=Ei.empty;for(let c=n.length-1;c>=0;c--)i=Ei.from(n[c].type.create(n[c].attrs,i));e.step(new qa(t.start-(r?2:0),t.end,t.start,t.end,new Pi(i,0,0),n.length,!0));let a=0;for(let c=0;c<n.length;c++)n[c].type==o&&(a=c+1);let s=n.length-a,l=t.start+n.length-(r?2:0),u=t.parent;for(let c=t.startIndex,d=t.endIndex,f=!0;c<d;c++,f=!1)!f&&ns(e.doc,l,s)&&(e.split(l,s),l+=2*s),l+=u.child(c).nodeSize}(e,t,s,o,n);return!0}(s,a,e,t)&&(r&&r(s.scrollIntoView()),!0)}}function $d(e){return function(t,n){let{$from:r,$to:o}=t.selection,i=r.blockRange(o,(t=>t.childCount>0&&t.firstChild.type==e));return!!i&&(!n||(r.node(i.depth-1).type==e?function(e,t,n,r){let o=e.tr,i=r.end,a=r.$to.end(r.depth);i<a&&(o.step(new qa(i-1,a,i,a,new Pi(Ei.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new qi(o.doc.resolve(r.$from.pos),o.doc.resolve(a),r.depth));const s=Ja(r);if(null==s)return!1;o.lift(r,s);let l=o.mapping.map(i,-1)-1;rs(o.doc,l)&&o.join(l);return t(o.scrollIntoView()),!0}(t,n,e,i):function(e,t,n){let r=e.tr,o=n.parent;for(let p=n.end,h=n.endIndex-1,m=n.startIndex;h>m;h--)p-=o.child(h).nodeSize,r.delete(p-1,p+1);let i=r.doc.resolve(n.start),a=i.nodeAfter;if(r.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let s=0==n.startIndex,l=n.endIndex==o.childCount,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(s?0:1),c+1,a.content.append(l?Ei.empty:Ei.from(o))))return!1;let d=i.pos,f=d+a.nodeSize;return r.step(new qa(d-(s?1:0),f+(l?1:0),d+1,f-1,new Pi((s?Ei.empty:Ei.from(o.copy(Ei.empty))).append(l?Ei.empty:Ei.from(o.copy(Ei.empty))),s?0:1,l?0:1),s?0:1)),t(r.scrollIntoView()),!0}(t,n,i)))}}function qd(e){const{state:t,transaction:n}=e;let{selection:r}=n,{doc:o}=n,{storedMarks:i}=n;return(0,Ze.A)((0,Ze.A)({},t),{},{apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return i},get selection(){return r},get doc(){return o},get tr(){return r=n.selection,o=n.doc,i=n.storedMarks,n}})}class Kd{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){var e=this;const{rawCommands:t,editor:n,state:r}=this,{view:o}=n,{tr:i}=r,a=this.buildProps(i);return Object.fromEntries(Object.entries(t).map((t=>{let[n,r]=t;return[n,function(){const t=r(...arguments)(a);return i.getMeta("preventDispatch")||e.hasCustomState||o.dispatch(i),t}]})))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e){var t=this;let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{rawCommands:r,editor:o,state:i}=this,{view:a}=o,s=[],l=!!e,u=e||i.tr,c=(0,Ze.A)((0,Ze.A)({},Object.fromEntries(Object.entries(r).map((e=>{let[r,o]=e;return[r,function(){const e=t.buildProps(u,n),r=o(...arguments)(e);return s.push(r),c}]})))),{},{run:()=>(l||!n||u.getMeta("preventDispatch")||this.hasCustomState||a.dispatch(u),s.every((e=>!0===e)))});return c}createCan(e){const{rawCommands:t,state:n}=this,r=!1,o=e||n.tr,i=this.buildProps(o,r),a=Object.fromEntries(Object.entries(t).map((e=>{let[t,n]=e;return[t,function(){return n(...arguments)((0,Ze.A)((0,Ze.A)({},i),{},{dispatch:void 0}))}]})));return(0,Ze.A)((0,Ze.A)({},a),{},{chain:()=>this.createChain(o,r)})}buildProps(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{rawCommands:n,editor:r,state:o}=this,{view:i}=r,a={tr:e,editor:r,view:i,state:qd({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map((e=>{let[t,n]=e;return[t,function(){return n(...arguments)(a)}]})))}};return a}}class Qd{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const o=this.callbacks[e];return o&&o.forEach((e=>e.apply(this,n))),this}off(e,t){const n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter((e=>e!==t)):delete this.callbacks[e]),this}once(e,t){var n=this;const r=function(){n.off(e,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];t.apply(n,i)};return this.on(e,r)}removeAllListeners(){this.callbacks={}}}function Gd(e,t,n){if(void 0===e.config[t]&&e.parent)return Gd(e.parent,t,n);if("function"===typeof e.config[t]){return e.config[t].bind((0,Ze.A)((0,Ze.A)({},n),{},{parent:e.parent?Gd(e.parent,t,n):null}))}return e.config[t]}function Jd(e){return{baseExtensions:e.filter((e=>"extension"===e.type)),nodeExtensions:e.filter((e=>"node"===e.type)),markExtensions:e.filter((e=>"mark"===e.type))}}function Zd(e){const t=[],{nodeExtensions:n,markExtensions:r}=Jd(e),o=[...n,...r],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach((e=>{const n=Gd(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:o});if(!n)return;n().forEach((e=>{e.types.forEach((n=>{Object.entries(e.attributes).forEach((e=>{let[r,o]=e;t.push({type:n,name:r,attribute:(0,Ze.A)((0,Ze.A)({},i),o)})}))}))}))})),o.forEach((e=>{const n={name:e.name,options:e.options,storage:e.storage},r=Gd(e,"addAttributes",n);if(!r)return;const o=r();Object.entries(o).forEach((n=>{let[r,o]=n;const a=(0,Ze.A)((0,Ze.A)({},i),o);"function"===typeof(null===a||void 0===a?void 0:a.default)&&(a.default=a.default()),(null===a||void 0===a?void 0:a.isRequired)&&void 0===(null===a||void 0===a?void 0:a.default)&&delete a.default,t.push({type:e.name,name:r,attribute:a})}))})),t}function Xd(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error("There is no node type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.nodes[e]}return e}function ef(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e=>!!e)).reduce(((e,t)=>{const n=(0,Ze.A)({},e);return Object.entries(t).forEach((e=>{let[t,r]=e;if(n[t])if("class"===t){const e=r?r.split(" "):[],o=n[t]?n[t].split(" "):[],i=e.filter((e=>!o.includes(e)));n[t]=[...o,...i].join(" ")}else if("style"===t){const e=r?r.split(";").map((e=>e.trim())).filter(Boolean):[],o=n[t]?n[t].split(";").map((e=>e.trim())).filter(Boolean):[],i=new Map;o.forEach((e=>{const[t,n]=e.split(":").map((e=>e.trim()));i.set(t,n)})),e.forEach((e=>{const[t,n]=e.split(":").map((e=>e.trim()));i.set(t,n)})),n[t]=Array.from(i.entries()).map((e=>{let[t,n]=e;return"".concat(t,": ").concat(n)})).join("; ")}else n[t]=r;else n[t]=r})),n}),{})}function tf(e,t){return t.filter((t=>t.type===e.type.name)).filter((e=>e.attribute.rendered)).map((t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]})).reduce(((e,t)=>ef(e,t)),{})}function nf(e){return"function"===typeof e}function rf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(nf(e)){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t?e.bind(t)(...r):e(...r)}return e}function of(e,t){return"style"in e?e:(0,Ze.A)((0,Ze.A)({},e),{},{getAttrs:n=>{const r=e.getAttrs?e.getAttrs(n):e.attrs;if(!1===r)return!1;const o=t.reduce(((e,t)=>{const r=t.attribute.parseHTML?t.attribute.parseHTML(n):function(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(n.getAttribute(t.name));return null===r||void 0===r?e:(0,Ze.A)((0,Ze.A)({},e),{},{[t.name]:r})}),{});return(0,Ze.A)((0,Ze.A)({},r),o)}})}function af(e){return Object.fromEntries(Object.entries(e).filter((e=>{let[t,n]=e;return("attrs"!==t||!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length&&e.constructor===Object}(n))&&(null!==n&&void 0!==n)})))}function sf(e,t){var n;const r=Zd(e),{nodeExtensions:o,markExtensions:i}=Jd(e),a=null===(n=o.find((e=>Gd(e,"topNode"))))||void 0===n?void 0:n.name,s=Object.fromEntries(o.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=e.reduce(((e,t)=>{const r=Gd(t,"extendNodeSchema",i);return(0,Ze.A)((0,Ze.A)({},e),r?r(n):{})}),{}),s=af((0,Ze.A)((0,Ze.A)({},a),{},{content:rf(Gd(n,"content",i)),marks:rf(Gd(n,"marks",i)),group:rf(Gd(n,"group",i)),inline:rf(Gd(n,"inline",i)),atom:rf(Gd(n,"atom",i)),selectable:rf(Gd(n,"selectable",i)),draggable:rf(Gd(n,"draggable",i)),code:rf(Gd(n,"code",i)),whitespace:rf(Gd(n,"whitespace",i)),linebreakReplacement:rf(Gd(n,"linebreakReplacement",i)),defining:rf(Gd(n,"defining",i)),isolating:rf(Gd(n,"isolating",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))})),l=rf(Gd(n,"parseHTML",i));l&&(s.parseDOM=l.map((e=>of(e,o))));const u=Gd(n,"renderHTML",i);u&&(s.toDOM=e=>u({node:e,HTMLAttributes:tf(e,o)}));const c=Gd(n,"renderText",i);return c&&(s.toText=c),[n.name,s]}))),l=Object.fromEntries(i.map((n=>{const o=r.filter((e=>e.type===n.name)),i={name:n.name,options:n.options,storage:n.storage,editor:t},a=e.reduce(((e,t)=>{const r=Gd(t,"extendMarkSchema",i);return(0,Ze.A)((0,Ze.A)({},e),r?r(n):{})}),{}),s=af((0,Ze.A)((0,Ze.A)({},a),{},{inclusive:rf(Gd(n,"inclusive",i)),excludes:rf(Gd(n,"excludes",i)),group:rf(Gd(n,"group",i)),spanning:rf(Gd(n,"spanning",i)),code:rf(Gd(n,"code",i)),attrs:Object.fromEntries(o.map((e=>{var t;return[e.name,{default:null===(t=null===e||void 0===e?void 0:e.attribute)||void 0===t?void 0:t.default}]})))})),l=rf(Gd(n,"parseHTML",i));l&&(s.parseDOM=l.map((e=>of(e,o))));const u=Gd(n,"renderHTML",i);return u&&(s.toDOM=e=>u({mark:e,HTMLAttributes:tf(e,o)})),[n.name,s]})));return new ha({topNode:a,nodes:s,marks:l})}function lf(e,t){return t.nodes[e]||t.marks[e]||null}function uf(e,t){return Array.isArray(t)?t.some((t=>("string"===typeof t?t:t.name)===e.name)):t}function cf(e,t){const n=Ca.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function df(e){return"[object RegExp]"===Object.prototype.toString.call(e)}class ff{constructor(e){this.find=e.find,this.handler=e.handler}}function pf(e){var t;const{editor:n,from:r,to:o,text:i,rules:a,plugin:s}=e,{view:l}=n;if(l.composing)return!1;const u=l.state.doc.resolve(r);if(u.parent.type.spec.code||(null===(t=u.nodeBefore||u.nodeAfter)||void 0===t?void 0:t.marks.find((e=>e.type.spec.code))))return!1;let c=!1;const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n="";const r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,((e,t,o,i)=>{var a,s;const l=(null===(s=(a=e.type.spec).toText)||void 0===s?void 0:s.call(a,{node:e,pos:t,parent:o,index:i}))||e.textContent||"%leaf%";n+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,r-t))})),n}(u)+i;return a.forEach((e=>{if(c)return;const t=((e,t)=>{if(df(t))return t.exec(e);const n=t(e);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r})(d,e.find);if(!t)return;const a=l.state.tr,u=qd({state:l.state,transaction:a}),f={from:r-(t[0].length-i.length),to:o},{commands:p,chain:h,can:m}=new Kd({editor:n,state:u});null!==e.handler({state:u,range:f,match:t,commands:p,chain:h,can:m})&&a.steps.length&&(a.setMeta(s,{transform:a,from:r,to:o,text:i}),l.dispatch(a),c=!0)})),c}function hf(e){const{editor:t,rules:n}=e,r=new Hs({state:{init:()=>null,apply(e,o,i){const a=e.getMeta(r);if(a)return a;const s=e.getMeta("applyInputRules");return!!s&&setTimeout((()=>{let{text:e}=s;"string"===typeof e||(e=cf(Ei.from(e),i.schema));const{from:o}=s,a=o+e.length;pf({editor:t,from:o,to:a,text:e,rules:n,plugin:r})})),e.selectionSet||e.docChanged?null:o}},props:{handleTextInput:(e,o,i,a)=>pf({editor:t,from:o,to:i,text:a,rules:n,plugin:r}),handleDOMEvents:{compositionend:e=>(setTimeout((()=>{const{$cursor:o}=e.state.selection;o&&pf({editor:t,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})})),!1)},handleKeyDown(e,o){if("Enter"!==o.key)return!1;const{$cursor:i}=e.state.selection;return!!i&&pf({editor:t,from:i.pos,to:i.pos,text:"\n",rules:n,plugin:r})}},isInputRules:!0});return r}function mf(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function gf(e,t){const n=(0,Ze.A)({},e);return mf(e)&&mf(t)&&Object.keys(t).forEach((r=>{mf(t[r])&&mf(e[r])?n[r]=gf(e[r],t[r]):n[r]=t[r]})),n}class yf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,Ze.A)((0,Ze.A)({},this.config),e),this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=rf(Gd(this,"addOptions",{name:this.name}))),this.storage=rf(Gd(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(){return new yf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}configure(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.extend((0,Ze.A)((0,Ze.A)({},this.config),{},{addOptions:()=>gf(this.options,e)}));return t.name=this.name,t.parent=this.parent,t}extend(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new yf(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(t.name,'".')),t.options=rf(Gd(t,"addOptions",{name:t.name})),t.storage=rf(Gd(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit(e){let{editor:t,mark:n}=e;const{tr:r}=t.state,o=t.state.selection.$from;if(o.pos===o.end()){const e=o.marks(),i=!!e.find((e=>(null===e||void 0===e?void 0:e.type.name)===n.name));if(!i)return!1;const a=e.find((e=>(null===e||void 0===e?void 0:e.type.name)===n.name));return a&&r.removeStoredMark(a),r.insertText(" ",o.pos),t.view.dispatch(r),!0}return!1}}class vf{constructor(e){this.find=e.find,this.handler=e.handler}}function bf(e){const{editor:t,state:n,from:r,to:o,rule:i,pasteEvent:a,dropEvent:s}=e,{commands:l,chain:u,can:c}=new Kd({editor:t,state:n}),d=[];n.doc.nodesBetween(r,o,((e,t)=>{if(!e.isTextblock||e.type.spec.code)return;const f=Math.max(r,t),p=Math.min(o,t+e.content.size),h=((e,t,n)=>{if(df(t))return[...e.matchAll(t)];const r=t(e,n);return r?r.map((t=>{const n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),n.push(t.replaceWith)),n})):[]})(e.textBetween(f-t,p-t,void 0,"\ufffc"),i.find,a);h.forEach((e=>{if(void 0===e.index)return;const t=f+e.index+1,r=t+e[0].length,o={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=i.handler({state:n,range:o,match:e,commands:l,chain:u,can:c,pasteEvent:a,dropEvent:s});d.push(p)}))}));return d.every((e=>null!==e))}function wf(e){const{editor:t,rules:n}=e;let r,o=null,i=!1,a=!1,s="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{r="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch(ak){r=null}const l=e=>{let{state:n,from:o,to:i,rule:a,pasteEvt:l}=e;const u=n.tr,c=qd({state:n,transaction:u});if(bf({editor:t,state:c,from:Math.max(o-1,0),to:i.b-1,rule:a,pasteEvent:l,dropEvent:r})&&u.steps.length){try{r="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch(ak){r=null}return s="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null,u}};return n.map((e=>new Hs({view(e){const t=t=>{var n;o=(null===(n=e.dom.parentElement)||void 0===n?void 0:n.contains(t.target))?e.dom.parentElement:null};return window.addEventListener("dragstart",t),{destroy(){window.removeEventListener("dragstart",t)}}},props:{handleDOMEvents:{drop:(e,t)=>(a=o===e.dom.parentElement,r=t,!1),paste:(e,t)=>{var n;const r=null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/html");return s=t,i=!!(null===r||void 0===r?void 0:r.includes("data-pm-slice")),!1}}},appendTransaction:(t,n,r)=>{const o=t[0],u="paste"===o.getMeta("uiEvent")&&!i,c="drop"===o.getMeta("uiEvent")&&!a,d=o.getMeta("applyPasteRules"),f=!!d;if(!u&&!c&&!f)return;if(f){let{text:t}=d;"string"===typeof t||(t=cf(Ei.from(t),r.schema));const{from:n}=d,o=n+t.length,i=(e=>{var t;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null===(t=n.clipboardData)||void 0===t||t.setData("text/html",e),n})(t);return l({rule:e,state:r,from:n,to:{b:o},pasteEvt:i})}const p=n.doc.content.findDiffStart(r.doc.content),h=n.doc.content.findDiffEnd(r.doc.content);return"number"===typeof p&&h&&p!==h.b?l({rule:e,state:r,from:p,to:h,pasteEvt:s}):void 0}})))}class xf{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=xf.resolve(e),this.schema=sf(this.extensions,t),this.setupExtensions()}static resolve(e){const t=xf.sort(xf.flatten(e)),n=function(e){const t=e.filter(((t,n)=>e.indexOf(t)!==n));return Array.from(new Set(t))}(t.map((e=>e.name)));return n.length&&console.warn("[tiptap warn]: Duplicate extension names found: [".concat(n.map((e=>"'".concat(e,"'"))).join(", "),"]. This can lead to issues.")),t}static flatten(e){return e.map((e=>{const t=Gd(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e})).flat(10)}static sort(e){return e.sort(((e,t)=>{const n=Gd(e,"priority")||100,r=Gd(t,"priority")||100;return n>r?-1:n<r?1:0}))}get commands(){return this.extensions.reduce(((e,t)=>{const n=Gd(t,"addCommands",{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:lf(t.name,this.schema)});return n?(0,Ze.A)((0,Ze.A)({},e),n()):e}),{})}get plugins(){const{editor:e}=this,t=xf.sort([...this.extensions].reverse()),n=[],r=[],o=t.map((t=>{const o={name:t.name,options:t.options,storage:t.storage,editor:e,type:lf(t.name,this.schema)},i=[],a=Gd(t,"addKeyboardShortcuts",o);let s={};if("mark"===t.type&&Gd(t,"exitable",o)&&(s.ArrowRight=()=>yf.handleExit({editor:e,mark:t})),a){const t=Object.fromEntries(Object.entries(a()).map((t=>{let[n,r]=t;return[n,()=>r({editor:e})]})));s=(0,Ze.A)((0,Ze.A)({},s),t)}const l=new Hs({props:{handleKeyDown:gd(s)}});i.push(l);const u=Gd(t,"addInputRules",o);uf(t,e.options.enableInputRules)&&u&&n.push(...u());const c=Gd(t,"addPasteRules",o);uf(t,e.options.enablePasteRules)&&c&&r.push(...c());const d=Gd(t,"addProseMirrorPlugins",o);if(d){const e=d();i.push(...e)}return i})).flat();return[hf({editor:e,rules:n}),...wf({editor:e,rules:r}),...o]}get attributes(){return Zd(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=Jd(this.extensions);return Object.fromEntries(t.filter((e=>!!Gd(e,"addNodeView"))).map((t=>{const n=this.attributes.filter((e=>e.type===t.name)),r={name:t.name,options:t.options,storage:t.storage,editor:e,type:Xd(t.name,this.schema)},o=Gd(t,"addNodeView",r);if(!o)return[];return[t.name,(r,i,a,s,l)=>{const u=tf(r,n);return o()({node:r,view:i,getPos:a,decorations:s,innerDecorations:l,editor:e,extension:t,HTMLAttributes:u})}]})))}setupExtensions(){this.extensions.forEach((e=>{var t;this.editor.extensionStorage[e.name]=e.storage;const n={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:lf(e.name,this.schema)};if("mark"===e.type){(null===(t=rf(Gd(e,"keepOnSplit",n)))||void 0===t||t)&&this.splittableMarks.push(e.name)}const r=Gd(e,"onBeforeCreate",n),o=Gd(e,"onCreate",n),i=Gd(e,"onUpdate",n),a=Gd(e,"onSelectionUpdate",n),s=Gd(e,"onTransaction",n),l=Gd(e,"onFocus",n),u=Gd(e,"onBlur",n),c=Gd(e,"onDestroy",n);r&&this.editor.on("beforeCreate",r),o&&this.editor.on("create",o),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),s&&this.editor.on("transaction",s),l&&this.editor.on("focus",l),u&&this.editor.on("blur",u),c&&this.editor.on("destroy",c)}))}}class kf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,Ze.A)((0,Ze.A)({},this.config),e),this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=rf(Gd(this,"addOptions",{name:this.name}))),this.storage=rf(Gd(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(){return new kf(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}configure(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.extend((0,Ze.A)((0,Ze.A)({},this.config),{},{addOptions:()=>gf(this.options,e)}));return t.name=this.name,t.parent=this.parent,t}extend(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new kf((0,Ze.A)((0,Ze.A)({},this.config),e));return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(t.name,'".')),t.options=rf(Gd(t,"addOptions",{name:t.name})),t.storage=rf(Gd(t,"addStorage",{name:t.name,options:t.options})),t}}function Df(e,t,n){const{from:r,to:o}=t,{blockSeparator:i="\n\n",textSerializers:a={}}=n||{};let s="";return e.nodesBetween(r,o,((e,n,l,u)=>{var c;e.isBlock&&n>r&&(s+=i);const d=null===a||void 0===a?void 0:a[e.type.name];if(d)return l&&(s+=d({node:e,pos:n,parent:l,index:u,range:t})),!1;e.isText&&(s+=null===(c=null===e||void 0===e?void 0:e.text)||void 0===c?void 0:c.slice(Math.max(r,n)-n,o-n))})),s}function Sf(e){return Object.fromEntries(Object.entries(e.nodes).filter((e=>{let[,t]=e;return t.spec.toText})).map((e=>{let[t,n]=e;return[t,n.spec.toText]})))}const Ef=kf.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new Hs({key:new Us("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:o}=t,{ranges:i}=o,a=Math.min(...i.map((e=>e.$from.pos))),s=Math.max(...i.map((e=>e.$to.pos))),l=Sf(n);return Df(r,{from:a,to:s},(0,Ze.A)((0,Ze.A)({},void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{}),{},{textSerializers:l}))}}})]}});function Cf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0};const r=Object.keys(t);return!r.length||r.every((r=>n.strict?t[r]===e[r]:df(t[r])?t[r].test(e[r]):t[r]===e[r]))}function Mf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.find((e=>e.type===t&&Cf(Object.fromEntries(Object.keys(n).map((t=>[t,e.attrs[t]]))),n)))}function Of(e,t){return!!Mf(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function Nf(e,t,n){var r;if(!e||!t)return;let o=e.parent.childAfter(e.parentOffset);if(o.node&&o.node.marks.some((e=>e.type===t))||(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some((e=>e.type===t)))return;n=n||(null===(r=o.node.marks[0])||void 0===r?void 0:r.attrs);if(!Mf([...o.node.marks],t,n))return;let i=o.index,a=e.start()+o.offset,s=i+1,l=a+o.node.nodeSize;for(;i>0&&Of([...e.parent.child(i-1).marks],t,n);)i-=1,a-=e.parent.child(i).nodeSize;for(;s<e.parent.childCount&&Of([...e.parent.child(s).marks],t,n);)l+=e.parent.child(s).nodeSize,s+=1;return{from:a,to:l}}function Af(e,t){if("string"===typeof e){if(!t.marks[e])throw Error("There is no mark type named '".concat(e,"'. Maybe you forgot to add the extension?"));return t.marks[e]}return e}function Pf(e){return e instanceof Ms}function _f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(Math.max(e,t),n)}function jf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;const n=Ds.atStart(e),r=Ds.atEnd(e);if("start"===t||!0===t)return n;if("end"===t)return r;const o=n.from,i=r.to;return"all"===t?Ms.create(e,_f(0,o,i),_f(e.content.size,o,i)):Ms.create(e,_f(t,o,i),_f(t,o,i))}function Tf(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Rf=e=>{const t=e.childNodes;for(let n=t.length-1;n>=0;n-=1){const r=t[n];3===r.nodeType&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):1===r.nodeType&&Rf(r)}return e};function Ff(e){const t="<body>".concat(e,"</body>"),n=(new window.DOMParser).parseFromString(t,"text/html").body;return Rf(n)}function If(e,t,n){if(e instanceof Qi||e instanceof Ei)return e;n=(0,Ze.A)({slice:!0,parseOptions:{}},n);const r="string"===typeof e;if("object"===typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return Ei.fromArray(e.map((e=>t.nodeFromJSON(e))));const r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),If("",t,n)}if(r){if(n.errorOnInvalidContent){let r=!1,o="";const i=new ha({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(r=!0,o="string"===typeof e?e:e.outerHTML,null)}]}})});if(n.slice?ga.fromSchema(i).parseSlice(Ff(e),n.parseOptions):ga.fromSchema(i).parse(Ff(e),n.parseOptions),n.errorOnInvalidContent&&r)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error("Invalid element found: ".concat(o))})}const r=ga.fromSchema(t);return n.slice?r.parseSlice(Ff(e),n.parseOptions).content:r.parse(Ff(e),n.parseOptions)}return If("",t,n)}function Lf(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}function zf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{from:r,to:o,empty:i}=e.selection,a=t?Xd(t,e.schema):null,s=[];e.doc.nodesBetween(r,o,((e,t)=>{if(e.isText)return;const n=Math.max(r,t),i=Math.min(o,t+e.nodeSize);s.push({node:e,from:n,to:i})}));const l=o-r,u=s.filter((e=>!a||a.name===e.node.type.name)).filter((e=>Cf(e.node.attrs,n,{strict:!1})));if(i)return!!u.length;return u.reduce(((e,t)=>e+t.to-t.from),0)>=l}function Bf(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function Yf(e,t){const n="string"===typeof t?[t]:t;return Object.keys(e).reduce(((t,r)=>(n.includes(r)||(t[r]=e[r]),t)),{})}function Hf(e,t){return If(e,t,{slice:!1,parseOptions:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},errorOnInvalidContent:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).errorOnInvalidContent})}function Wf(e,t){const n=Af(t,e.schema),{from:r,to:o,empty:i}=e.selection,a=[];i?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,o,(e=>{a.push(...e.marks)}));const s=a.find((e=>e.type.name===n.name));return s?(0,Ze.A)({},s.attrs):{}}function Vf(e){return t=>function(e,t){for(let n=e.depth;n>0;n-=1){const r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}(t.$from,e)}function Uf(e,t){return Df(e,{from:0,to:e.content.size},t)}function $f(e,t){const n=Bf("string"===typeof t?t:t.name,e.schema);return"node"===n?function(e,t){const n=Xd(t,e.schema),{from:r,to:o}=e.selection,i=[];e.doc.nodesBetween(r,o,(e=>{i.push(e)}));const a=i.reverse().find((e=>e.type.name===n.name));return a?(0,Ze.A)({},a.attrs):{}}(e,t):"mark"===n?Wf(e,t):{}}function qf(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify;const n={};return e.filter((e=>{const r=t(e);return!Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=!0)}))}(e);return 1===t.length?t:t.filter(((e,n)=>{const r=t.filter(((e,t)=>t!==n));return!r.some((t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}))}function Kf(e,t,n){const r=[];return e===t?n.resolve(e).marks().forEach((t=>{const o=Nf(n.resolve(e),t.type);o&&r.push((0,Ze.A)({mark:t},o))})):n.nodesBetween(e,t,((e,t)=>{e&&void 0!==(null===e||void 0===e?void 0:e.nodeSize)&&r.push(...e.marks.map((n=>({from:t,to:t+e.nodeSize,mark:n}))))})),r}function Qf(e,t,n){return Object.fromEntries(Object.entries(n).filter((n=>{let[r]=n;const o=e.find((e=>e.type===t&&e.name===r));return!!o&&o.attribute.keepOnSplit})))}function Gf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{empty:r,ranges:o}=e.selection,i=t?Af(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter((e=>!i||i.name===e.type.name)).find((e=>Cf(e.attrs,n,{strict:!1})));let a=0;const s=[];if(o.forEach((t=>{let{$from:n,$to:r}=t;const o=n.pos,i=r.pos;e.doc.nodesBetween(o,i,((e,t)=>{if(!e.isText&&!e.marks.length)return;const n=Math.max(o,t),r=Math.min(i,t+e.nodeSize);a+=r-n,s.push(...e.marks.map((e=>({mark:e,from:n,to:r}))))}))})),0===a)return!1;const l=s.filter((e=>!i||i.name===e.mark.type.name)).filter((e=>Cf(e.mark.attrs,n,{strict:!1}))).reduce(((e,t)=>e+t.to-t.from),0),u=s.filter((e=>!i||e.mark.type!==i&&e.mark.type.excludes(i))).reduce(((e,t)=>e+t.to-t.from),0);return(l>0?l+u:l)>=a}function Jf(e,t){const{nodeExtensions:n}=Jd(t),r=n.find((t=>t.name===e));if(!r)return!1;const o=rf(Gd(r,"group",{name:r.name,options:r.options,storage:r.storage}));return"string"===typeof o&&o.split(" ").includes("list")}function Zf(e){let{checkChildren:t=!0,ignoreWhitespace:n=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var r;if(n){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!==(r=e.text)&&void 0!==r?r:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let r=!0;return e.content.forEach((e=>{!1!==r&&(Zf(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))})),r}return!1}function Xf(e,t){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const r=n.filter((e=>null===t||void 0===t?void 0:t.includes(e.type.name)));e.tr.ensureMarks(r)}}const ep=(e,t)=>{const n=Vf((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null===o||void 0===o?void 0:o.type)||!rs(e.doc,n.pos)||(e.join(n.pos),!0)},tp=(e,t)=>{const n=Vf((e=>e.type===t))(e.selection);if(!n)return!0;const r=e.doc.resolve(n.start).after(n.depth);if(void 0===r)return!0;const o=e.doc.nodeAt(r);return n.node.type!==(null===o||void 0===o?void 0:o.type)||!rs(e.doc,r)||(e.join(r),!0)};var np=Object.freeze({__proto__:null,blur:()=>e=>{let{editor:t,view:n}=e;return requestAnimationFrame((()=>{var e;t.isDestroyed||(n.dom.blur(),null===(e=null===window||void 0===window?void 0:window.getSelection())||void 0===e||e.removeAllRanges())})),!0},clearContent:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t=>{let{commands:n}=t;return n.setContent("",e)}},clearNodes:()=>e=>{let{state:t,tr:n,dispatch:r}=e;const{selection:o}=n,{ranges:i}=o;return!r||(i.forEach((e=>{let{$from:r,$to:o}=e;t.doc.nodesBetween(r.pos,o.pos,((e,t)=>{if(e.type.isText)return;const{doc:r,mapping:o}=n,i=r.resolve(o.map(t)),a=r.resolve(o.map(t+e.nodeSize)),s=i.blockRange(a);if(!s)return;const l=Ja(s);if(e.type.isTextblock){const{defaultType:e}=i.parent.contentMatchAt(i.index());n.setNodeMarkup(s.start,e)}(l||0===l)&&n.lift(s,l)}))})),!0)},command:e=>t=>e(t),createParagraphNear:()=>e=>{let{state:t,dispatch:n}=e;return Pd(t,n)},cut:(e,t)=>n=>{let{editor:r,tr:o}=n;const{state:i}=r,a=i.doc.slice(e.from,e.to);o.deleteRange(e.from,e.to);const s=o.mapping.map(t);return o.insert(s,a.content),o.setSelection(new Ms(o.doc.resolve(s-1))),!0},deleteCurrentNode:()=>e=>{let{tr:t,dispatch:n}=e;const{selection:r}=t,o=r.$anchor.node();if(o.content.size>0)return!1;const i=t.selection.$anchor;for(let a=i.depth;a>0;a-=1){if(i.node(a).type===o.type){if(n){const e=i.before(a),n=i.after(a);t.delete(e,n).scrollIntoView()}return!0}}return!1},deleteNode:e=>t=>{let{tr:n,state:r,dispatch:o}=t;const i=Xd(e,r.schema),a=n.selection.$anchor;for(let e=a.depth;e>0;e-=1){if(a.node(e).type===i){if(o){const t=a.before(e),r=a.after(e);n.delete(t,r).scrollIntoView()}return!0}}return!1},deleteRange:e=>t=>{let{tr:n,dispatch:r}=t;const{from:o,to:i}=e;return r&&n.delete(o,i),!0},deleteSelection:()=>e=>{let{state:t,dispatch:n}=e;return yd(t,n)},enter:()=>e=>{let{commands:t}=e;return t.keyboardShortcut("Enter")},exitCode:()=>e=>{let{state:t,dispatch:n}=e;return Ad(t,n)},extendMarkRange:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{tr:r,state:o,dispatch:i}=n;const a=Af(e,o.schema),{doc:s,selection:l}=r,{$from:u,from:c,to:d}=l;if(i){const e=Nf(u,a,t);if(e&&e.from<=c&&e.to>=d){const t=Ms.create(s,e.from,e.to);r.setSelection(t)}}return!0}},first:e=>t=>{const n="function"===typeof e?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1},focus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{editor:r,view:o,tr:i,dispatch:a}=n;t=(0,Ze.A)({scrollIntoView:!0},t);const s=()=>{Tf()&&o.dom.focus(),requestAnimationFrame((()=>{r.isDestroyed||(o.focus(),(null===t||void 0===t?void 0:t.scrollIntoView)&&r.commands.scrollIntoView())}))};if(o.hasFocus()&&null===e||!1===e)return!0;if(a&&null===e&&!Pf(r.state.selection))return s(),!0;const l=jf(i.doc,e)||r.state.selection,u=r.state.selection.eq(l);return a&&(u||i.setSelection(l),u&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0}},forEach:(e,t)=>n=>e.every(((e,r)=>t(e,(0,Ze.A)((0,Ze.A)({},n),{},{index:r})))),insertContent:(e,t)=>n=>{let{tr:r,commands:o}=n;return o.insertContentAt({from:r.selection.from,to:r.selection.to},e,t)},insertContentAt:(e,t,n)=>r=>{let{tr:o,dispatch:i,editor:a}=r;var s;if(i){let r;n=(0,Ze.A)({parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1},n);try{r=If(t,a.schema,{parseOptions:(0,Ze.A)({preserveWhitespace:"full"},n.parseOptions),errorOnInvalidContent:null!==(s=n.errorOnInvalidContent)&&void 0!==s?s:a.options.enableContentCheck})}catch(ak){return a.emit("contentError",{editor:a,error:ak,disableCollaboration:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}}),!1}let{from:i,to:l}="number"===typeof e?{from:e,to:e}:{from:e.from,to:e.to},u=!0,c=!0;if(("type"in r?[r]:r).forEach((e=>{e.check(),u=!!u&&(e.isText&&0===e.marks.length),c=!!c&&e.isBlock})),i===l&&c){const{parent:e}=o.doc.resolve(i);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(i-=1,l+=1)}let d;if(u){if(Array.isArray(t))d=t.map((e=>e.text||"")).join("");else if(t instanceof Ei){let e="";t.forEach((t=>{t.text&&(e+=t.text)})),d=e}else d="object"===typeof t&&t&&t.text?t.text:t;o.insertText(d,i,l)}else d=r,o.replaceWith(i,l,d);n.updateSelection&&function(e,t,n){const r=e.steps.length-1;if(r<t)return;const o=e.steps[r];if(!(o instanceof $a||o instanceof qa))return;const i=e.mapping.maps[r];let a=0;i.forEach(((e,t,n,r)=>{0===a&&(a=r)})),e.setSelection(Ds.near(e.doc.resolve(a),n))}(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:i,text:d}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:i,text:d})}return!0},joinBackward:()=>e=>{let{state:t,dispatch:n}=e;return bd(t,n)},joinDown:()=>e=>{let{state:t,dispatch:n}=e;return((e,t)=>{let n,r=e.selection;if(r instanceof Ns){if(r.node.isTextblock||!rs(e.doc,r.to))return!1;n=r.to}else if(n=as(e.doc,r.to,1),null==n)return!1;return t&&t(e.tr.join(n).scrollIntoView()),!0})(t,n)},joinForward:()=>e=>{let{state:t,dispatch:n}=e;return Ed(t,n)},joinItemBackward:()=>e=>{let{state:t,dispatch:n,tr:r}=e;try{const e=as(t.doc,t.selection.$from.pos,-1);return null!==e&&void 0!==e&&(r.join(e,2),n&&n(r),!0)}catch(ak){return!1}},joinItemForward:()=>e=>{let{state:t,dispatch:n,tr:r}=e;try{const e=as(t.doc,t.selection.$from.pos,1);return null!==e&&void 0!==e&&(r.join(e,2),n&&n(r),!0)}catch(ak){return!1}},joinTextblockBackward:()=>e=>{let{state:t,dispatch:n}=e;return((e,t,n)=>{let r=vd(e,n);if(!r)return!1;let o=Dd(r);return!!o&&wd(e,o,t)})(t,n)},joinTextblockForward:()=>e=>{let{state:t,dispatch:n}=e;return((e,t,n)=>{let r=Sd(e,n);if(!r)return!1;let o=Md(r);return!!o&&wd(e,o,t)})(t,n)},joinUp:()=>e=>{let{state:t,dispatch:n}=e;return((e,t)=>{let n,r=e.selection,o=r instanceof Ns;if(o){if(r.node.isTextblock||!rs(e.doc,r.from))return!1;n=r.from}else if(n=as(e.doc,r.from,-1),null==n)return!1;if(t){let r=e.tr.join(n);o&&r.setSelection(Ns.create(r.doc,n-e.doc.resolve(n).nodeBefore.nodeSize)),t(r.scrollIntoView())}return!0})(t,n)},keyboardShortcut:e=>t=>{let{editor:n,view:r,tr:o,dispatch:i}=t;const a=function(e){const t=e.split(/-(?!$)/);let n,r,o,i,a=t[t.length-1];"Space"===a&&(a=" ");for(let s=0;s<t.length-1;s+=1){const e=t[s];if(/^(cmd|meta|m)$/i.test(e))i=!0;else if(/^a(lt)?$/i.test(e))n=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))o=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: ".concat(e));Tf()||Lf()?i=!0:r=!0}}return n&&(a="Alt-".concat(a)),r&&(a="Ctrl-".concat(a)),i&&(a="Meta-".concat(a)),o&&(a="Shift-".concat(a)),a}(e).split(/-(?!$)/),s=a.find((e=>!["Alt","Ctrl","Meta","Shift"].includes(e))),l=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:a.includes("Alt"),ctrlKey:a.includes("Ctrl"),metaKey:a.includes("Meta"),shiftKey:a.includes("Shift"),bubbles:!0,cancelable:!0}),u=n.captureTransaction((()=>{r.someProp("handleKeyDown",(e=>e(r,l)))}));return null===u||void 0===u||u.steps.forEach((e=>{const t=e.map(o.mapping);t&&i&&o.maybeStep(t)})),!0},lift:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{state:r,dispatch:o}=n;return!!zf(r,Xd(e,r.schema),t)&&((e,t)=>{let{$from:n,$to:r}=e.selection,o=n.blockRange(r),i=o&&Ja(o);return null!=i&&(t&&t(e.tr.lift(o,i).scrollIntoView()),!0)})(r,o)}},liftEmptyBlock:()=>e=>{let{state:t,dispatch:n}=e;return _d(t,n)},liftListItem:e=>t=>{let{state:n,dispatch:r}=t;return $d(Xd(e,n.schema))(n,r)},newlineInCode:()=>e=>{let{state:t,dispatch:n}=e;return Od(t,n)},resetAttributes:(e,t)=>n=>{let{tr:r,state:o,dispatch:i}=n,a=null,s=null;const l=Bf("string"===typeof e?e:e.name,o.schema);return!!l&&("node"===l&&(a=Xd(e,o.schema)),"mark"===l&&(s=Af(e,o.schema)),i&&r.selection.ranges.forEach((e=>{o.doc.nodesBetween(e.$from.pos,e.$to.pos,((e,n)=>{a&&a===e.type&&r.setNodeMarkup(n,void 0,Yf(e.attrs,t)),s&&e.marks.length&&e.marks.forEach((o=>{s===o.type&&r.addMark(n,n+e.nodeSize,s.create(Yf(o.attrs,t)))}))}))})),!0)},scrollIntoView:()=>e=>{let{tr:t,dispatch:n}=e;return n&&t.scrollIntoView(),!0},selectAll:()=>e=>{let{tr:t,commands:n}=e;return n.setTextSelection({from:0,to:t.doc.content.size})},selectNodeBackward:()=>e=>{let{state:t,dispatch:n}=e;return kd(t,n)},selectNodeForward:()=>e=>{let{state:t,dispatch:n}=e;return Cd(t,n)},selectParentNode:()=>e=>{let{state:t,dispatch:n}=e;return((e,t)=>{let n,{$from:r,to:o}=e.selection,i=r.sharedDepth(o);return 0!=i&&(n=r.before(i),t&&t(e.tr.setSelection(Ns.create(e.doc,n))),!0)})(t,n)},selectTextblockEnd:()=>e=>{let{state:t,dispatch:n}=e;return Ld(t,n)},selectTextblockStart:()=>e=>{let{state:t,dispatch:n}=e;return Id(t,n)},setContent:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o=>{let{editor:i,tr:a,dispatch:s,commands:l}=o;var u,c;const{doc:d}=a;if("full"!==n.preserveWhitespace){const o=Hf(e,i.schema,n,{errorOnInvalidContent:null!==(u=r.errorOnInvalidContent)&&void 0!==u?u:i.options.enableContentCheck});return s&&a.replaceWith(0,d.content.size,o).setMeta("preventUpdate",!t),!0}return s&&a.setMeta("preventUpdate",!t),l.insertContentAt({from:0,to:d.content.size},e,{parseOptions:n,errorOnInvalidContent:null!==(c=r.errorOnInvalidContent)&&void 0!==c?c:i.options.enableContentCheck})}},setMark:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{tr:r,state:o,dispatch:i}=n;const{selection:a}=r,{empty:s,ranges:l}=a,u=Af(e,o.schema);if(i)if(s){const e=Wf(o,u);r.addStoredMark(u.create((0,Ze.A)((0,Ze.A)({},e),t)))}else l.forEach((e=>{const n=e.$from.pos,i=e.$to.pos;o.doc.nodesBetween(n,i,((e,o)=>{const a=Math.max(o,n),s=Math.min(o+e.nodeSize,i);e.marks.find((e=>e.type===u))?e.marks.forEach((e=>{u===e.type&&r.addMark(a,s,u.create((0,Ze.A)((0,Ze.A)({},e.attrs),t)))})):r.addMark(a,s,u.create(t))}))}));return function(e,t,n){var r;const{selection:o}=t;let i=null;if(Pf(o)&&(i=o.$cursor),i){const t=null!==(r=e.storedMarks)&&void 0!==r?r:i.marks();return!!n.isInSet(t)||!t.some((e=>e.type.excludes(n)))}const{ranges:a}=o;return a.some((t=>{let{$from:r,$to:o}=t,i=0===r.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(n);return e.doc.nodesBetween(r.pos,o.pos,((e,t,r)=>{if(i)return!1;if(e.isInline){const t=!r||r.type.allowsMarkType(n),o=!!n.isInSet(e.marks)||!e.marks.some((e=>e.type.excludes(n)));i=t&&o}return!i})),i}))}(o,r,u)}},setMeta:(e,t)=>n=>{let{tr:r}=n;return r.setMeta(e,t),!0},setNode:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{state:r,dispatch:o,chain:i}=n;const a=Xd(e,r.schema);let s;return r.selection.$anchor.sameParent(r.selection.$head)&&(s=r.selection.$anchor.parent.attrs),a.isTextblock?i().command((e=>{let{commands:n}=e;return!!zd(a,(0,Ze.A)((0,Ze.A)({},s),t))(r)||n.clearNodes()})).command((e=>{let{state:n}=e;return zd(a,(0,Ze.A)((0,Ze.A)({},s),t))(n,o)})).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)}},setNodeSelection:e=>t=>{let{tr:n,dispatch:r}=t;if(r){const{doc:t}=n,r=_f(e,0,t.content.size),o=Ns.create(t,r);n.setSelection(o)}return!0},setTextSelection:e=>t=>{let{tr:n,dispatch:r}=t;if(r){const{doc:t}=n,{from:r,to:o}="number"===typeof e?{from:e,to:e}:e,i=Ms.atStart(t).from,a=Ms.atEnd(t).to,s=_f(r,i,a),l=_f(o,i,a),u=Ms.create(t,s,l);n.setSelection(u)}return!0},sinkListItem:e=>t=>{let{state:n,dispatch:r}=t;const o=Xd(e,n.schema);return(i=o,function(e,t){let{$from:n,$to:r}=e.selection,o=n.blockRange(r,(e=>e.childCount>0&&e.firstChild.type==i));if(!o)return!1;let a=o.startIndex;if(0==a)return!1;let s=o.parent,l=s.child(a-1);if(l.type!=i)return!1;if(t){let n=l.lastChild&&l.lastChild.type==s.type,r=Ei.from(n?i.create():null),a=new Pi(Ei.from(i.create(null,Ei.from(s.type.create(null,r)))),n?3:1,0),u=o.start,c=o.end;t(e.tr.step(new qa(u-(n?3:1),c,u,c,a,1,!0)).scrollIntoView())}return!0})(n,r);var i},splitBlock:function(){let{keepMarks:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{tr:n,state:r,dispatch:o,editor:i}=t;const{selection:a,doc:s}=n,{$from:l,$to:u}=a,c=Qf(i.extensionManager.attributes,l.node().type.name,l.node().attrs);if(a instanceof Ns&&a.node.isBlock)return!(!l.parentOffset||!ns(s,l.pos))&&(o&&(e&&Xf(r,i.extensionManager.splittableMarks),n.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const d=u.parentOffset===u.parent.content.size,f=0===l.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}(l.node(-1).contentMatchAt(l.indexAfter(-1)));let p=d&&f?[{type:f,attrs:c}]:void 0,h=ns(n.doc,n.mapping.map(l.pos),1,p);if(p||h||!ns(n.doc,n.mapping.map(l.pos),1,f?[{type:f}]:void 0)||(h=!0,p=f?[{type:f,attrs:c}]:void 0),o){if(h&&(a instanceof Ms&&n.deleteSelection(),n.split(n.mapping.map(l.pos),1,p),f&&!d&&!l.parentOffset&&l.parent.type!==f)){const e=n.mapping.map(l.before()),t=n.doc.resolve(e);l.node(-1).canReplaceWith(t.index(),t.index()+1,f)&&n.setNodeMarkup(n.mapping.map(l.before()),f)}e&&Xf(r,i.extensionManager.splittableMarks),n.scrollIntoView()}return h}},splitListItem:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{tr:r,state:o,dispatch:i,editor:a}=n;var s;const l=Xd(e,o.schema),{$from:u,$to:c}=o.selection,d=o.selection.node;if(d&&d.isBlock||u.depth<2||!u.sameParent(c))return!1;const f=u.node(-1);if(f.type!==l)return!1;const p=a.extensionManager.attributes;if(0===u.parent.content.size&&u.node(-1).childCount===u.indexAfter(-1)){if(2===u.depth||u.node(-3).type!==l||u.index(-2)!==u.node(-2).childCount-1)return!1;if(i){let e=Ei.empty;const n=u.index(-1)?1:u.index(-2)?2:3;for(let t=u.depth-n;t>=u.depth-3;t-=1)e=Ei.from(u.node(t).copy(e));const o=u.indexAfter(-1)<u.node(-2).childCount?1:u.indexAfter(-2)<u.node(-3).childCount?2:3,i=(0,Ze.A)((0,Ze.A)({},Qf(p,u.node().type.name,u.node().attrs)),t),a=(null===(s=l.contentMatch.defaultType)||void 0===s?void 0:s.createAndFill(i))||void 0;e=e.append(Ei.from(l.createAndFill(null,a)||void 0));const c=u.before(u.depth-(n-1));r.replace(c,u.after(-o),new Pi(e,4-n,0));let d=-1;r.doc.nodesBetween(c,r.doc.content.size,((e,t)=>{if(d>-1)return!1;e.isTextblock&&0===e.content.size&&(d=t+1)})),d>-1&&r.setSelection(Ms.near(r.doc.resolve(d))),r.scrollIntoView()}return!0}const h=c.pos===u.end()?f.contentMatchAt(0).defaultType:null,m=(0,Ze.A)((0,Ze.A)({},Qf(p,f.type.name,f.attrs)),t),g=(0,Ze.A)((0,Ze.A)({},Qf(p,u.node().type.name,u.node().attrs)),t);r.delete(u.pos,c.pos);const y=h?[{type:l,attrs:m},{type:h,attrs:g}]:[{type:l,attrs:m}];if(!ns(r.doc,u.pos,2))return!1;if(i){const{selection:e,storedMarks:t}=o,{splittableMarks:n}=a.extensionManager,s=t||e.$to.parentOffset&&e.$from.marks();if(r.split(u.pos,2,y).scrollIntoView(),!s||!i)return!0;const l=s.filter((e=>n.includes(e.type.name)));r.ensureMarks(l)}return!0}},toggleList:function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return o=>{let{editor:i,tr:a,state:s,dispatch:l,chain:u,commands:c,can:d}=o;const{extensions:f,splittableMarks:p}=i.extensionManager,h=Xd(e,s.schema),m=Xd(t,s.schema),{selection:g,storedMarks:y}=s,{$from:v,$to:b}=g,w=v.blockRange(b),x=y||g.$to.parentOffset&&g.$from.marks();if(!w)return!1;const k=Vf((e=>Jf(e.type.name,f)))(g);if(w.depth>=1&&k&&w.depth-k.depth<=1){if(k.node.type===h)return c.liftListItem(m);if(Jf(k.node.type.name,f)&&h.validContent(k.node.content)&&l)return u().command((()=>(a.setNodeMarkup(k.pos,h),!0))).command((()=>ep(a,h))).command((()=>tp(a,h))).run()}return n&&x&&l?u().command((()=>{const e=d().wrapInList(h,r),t=x.filter((e=>p.includes(e.type.name)));return a.ensureMarks(t),!!e||c.clearNodes()})).wrapInList(h,r).command((()=>ep(a,h))).command((()=>tp(a,h))).run():u().command((()=>!!d().wrapInList(h,r)||c.clearNodes())).wrapInList(h,r).command((()=>ep(a,h))).command((()=>tp(a,h))).run()}},toggleMark:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let{state:o,commands:i}=r;const{extendEmptyMarkRange:a=!1}=n,s=Af(e,o.schema);return Gf(o,s,t)?i.unsetMark(s,{extendEmptyMarkRange:a}):i.setMark(s,t)}},toggleNode:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=>{let{state:o,commands:i}=r;const a=Xd(e,o.schema),s=Xd(t,o.schema),l=zf(o,a,n);let u;return o.selection.$anchor.sameParent(o.selection.$head)&&(u=o.selection.$anchor.parent.attrs),l?i.setNode(s,u):i.setNode(a,(0,Ze.A)((0,Ze.A)({},u),n))}},toggleWrap:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{state:r,commands:o}=n;const i=Xd(e,r.schema);return zf(r,i,t)?o.lift(i):o.wrapIn(i,t)}},undoInputRule:()=>e=>{let{state:t,dispatch:n}=e;const r=t.plugins;for(let o=0;o<r.length;o+=1){const e=r[o];let i;if(e.spec.isInputRules&&(i=e.getState(t))){if(n){const e=t.tr,n=i.transform;for(let t=n.steps.length-1;t>=0;t-=1)e.step(n.steps[t].invert(n.docs[t]));if(i.text){const n=e.doc.resolve(i.from).marks();e.replaceWith(i.from,i.to,t.schema.text(i.text,n))}else e.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>e=>{let{tr:t,dispatch:n}=e;const{selection:r}=t,{empty:o,ranges:i}=r;return o||n&&i.forEach((e=>{t.removeMark(e.$from.pos,e.$to.pos)})),!0},unsetMark:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{tr:r,state:o,dispatch:i}=n;var a;const{extendEmptyMarkRange:s=!1}=t,{selection:l}=r,u=Af(e,o.schema),{$from:c,empty:d,ranges:f}=l;if(!i)return!0;if(d&&s){let{from:e,to:t}=l;const n=null===(a=c.marks().find((e=>e.type===u)))||void 0===a?void 0:a.attrs,o=Nf(c,u,n);o&&(e=o.from,t=o.to),r.removeMark(e,t,u)}else f.forEach((e=>{r.removeMark(e.$from.pos,e.$to.pos,u)}));return r.removeStoredMark(u),!0}},updateAttributes:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{tr:r,state:o,dispatch:i}=n,a=null,s=null;const l=Bf("string"===typeof e?e:e.name,o.schema);return!!l&&("node"===l&&(a=Xd(e,o.schema)),"mark"===l&&(s=Af(e,o.schema)),i&&r.selection.ranges.forEach((e=>{const n=e.$from.pos,i=e.$to.pos;let l,u,c,d;r.selection.empty?o.doc.nodesBetween(n,i,((e,t)=>{a&&a===e.type&&(c=Math.max(t,n),d=Math.min(t+e.nodeSize,i),l=t,u=e)})):o.doc.nodesBetween(n,i,((e,o)=>{o<n&&a&&a===e.type&&(c=Math.max(o,n),d=Math.min(o+e.nodeSize,i),l=o,u=e),o>=n&&o<=i&&(a&&a===e.type&&r.setNodeMarkup(o,void 0,(0,Ze.A)((0,Ze.A)({},e.attrs),t)),s&&e.marks.length&&e.marks.forEach((a=>{if(s===a.type){const l=Math.max(o,n),u=Math.min(o+e.nodeSize,i);r.addMark(l,u,s.create((0,Ze.A)((0,Ze.A)({},a.attrs),t)))}})))})),u&&(void 0!==l&&r.setNodeMarkup(l,void 0,(0,Ze.A)((0,Ze.A)({},u.attrs),t)),s&&u.marks.length&&u.marks.forEach((e=>{s===e.type&&r.addMark(c,d,s.create((0,Ze.A)((0,Ze.A)({},e.attrs),t)))})))})),!0)}},wrapIn:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{state:r,dispatch:o}=n;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(n,r){let{$from:o,$to:i}=n.selection,a=o.blockRange(i),s=a&&Za(a,e,t);return!!s&&(r&&r(n.tr.wrap(a,s).scrollIntoView()),!0)}}(Xd(e,r.schema),t)(r,o)}},wrapInList:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{let{state:r,dispatch:o}=n;return Ud(Xd(e,r.schema),t)(r,o)}}});const rp=kf.create({name:"commands",addCommands:()=>(0,Ze.A)({},np)}),op=kf.create({name:"drop",addProseMirrorPlugins(){return[new Hs({key:new Us("tiptapDrop"),props:{handleDrop:(e,t,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),ip=kf.create({name:"editable",addProseMirrorPlugins(){return[new Hs({key:new Us("editable"),props:{editable:()=>this.editor.options.editable}})]}}),ap=kf.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new Hs({key:new Us("focusEvents"),props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;const r=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;const r=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return t.dispatch(r),!1}}}})]}}),sp=kf.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first((e=>{let{commands:t}=e;return[()=>t.undoInputRule(),()=>t.command((e=>{let{tr:n}=e;const{selection:r,doc:o}=n,{empty:i,$anchor:a}=r,{pos:s,parent:l}=a,u=a.parent.isTextblock&&s>0?n.doc.resolve(s-1):a,c=u.parent.type.spec.isolating,d=a.pos-a.parentOffset,f=c&&1===u.parent.childCount?d===a.pos:Ds.atStart(o).from===s;return!(!i||!l.type.isTextblock||l.textContent.length||!f||f&&"paragraph"===a.parent.type.name)&&t.clearNodes()})),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()]})),t=()=>this.editor.commands.first((e=>{let{commands:t}=e;return[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()]})),n={Enter:()=>this.editor.commands.first((e=>{let{commands:t}=e;return[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()]})),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r=(0,Ze.A)({},n),o=(0,Ze.A)((0,Ze.A)({},n),{},{"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()});return Tf()||Lf()?o:r},addProseMirrorPlugins(){return[new Hs({key:new Us("clearDocument"),appendTransaction:(e,t,n)=>{const r=e.some((e=>e.docChanged))&&!t.doc.eq(n.doc),o=e.some((e=>e.getMeta("preventClearDocument")));if(!r||o)return;const{empty:i,from:a,to:s}=t.selection,l=Ds.atStart(t.doc).from,u=Ds.atEnd(t.doc).to;if(i||!(a===l&&s===u))return;if(!Zf(n.doc))return;const c=n.tr,d=qd({state:n,transaction:c}),{commands:f}=new Kd({editor:this.editor,state:d});return f.clearNodes(),c.steps.length?c:void 0}})]}}),lp=kf.create({name:"paste",addProseMirrorPlugins(){return[new Hs({key:new Us("tiptapPaste"),props:{handlePaste:(e,t,n)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:n})}}})]}}),up=kf.create({name:"tabindex",addProseMirrorPlugins(){return[new Hs({key:new Us("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class cp{get name(){return this.node.type.name}constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!==(e=this.actualDepth)&&void 0!==e?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(0===this.content.size)return void console.error("You can\u2019t set content on a block node. Tried to set content on ".concat(this.name," at ").concat(this.pos));t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new cp(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new cp(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new cp(e,this.editor)}get children(){const e=[];return this.node.content.forEach(((t,n)=>{const r=t.isBlock&&!t.isTextblock,o=t.isAtom&&!t.isText,i=this.pos+n+(o?0:1),a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const s=new cp(a,this.editor,r,r?t:null);r&&(s.actualDepth=this.depth+1),e.push(new cp(a,this.editor,r,r?t:null))})),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){const e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){const o=n[r];if(e[o]!==t[o])break}}else n=r;r=r.parent}return n}querySelector(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];if(!this.children||0===this.children.length)return r;const o=Object.keys(t);return this.children.forEach((i=>{if(!(n&&r.length>0)){if(i.node.type.name===e){o.every((e=>t[e]===i.node.attrs[e]))&&r.push(i)}n&&r.length>0||(r=r.concat(i.querySelectorAll(e,t,n)))}})),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,(0,Ze.A)((0,Ze.A)({},this.node.attrs),e)),this.editor.view.dispatch(t)}}class dp extends Qd{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:e=>{let{error:t}=e;throw t},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",(e=>{let{event:t,slice:n,moved:r}=e;return this.options.onDrop(t,n,r)})),this.on("paste",(e=>{let{event:t,slice:n}=e;return this.options.onPaste(t,n)})),window.setTimeout((()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)}),0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function(e,t,n){const r=document.querySelector("style[data-tiptap-style".concat(n?"-".concat(n):"","]"));if(null!==r)return r;const o=document.createElement("style");return t&&o.setAttribute("nonce",t),o.setAttribute("data-tiptap-style".concat(n?"-".concat(n):""),""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}('.ProseMirror {\n  position: relative;\n}\n\n.ProseMirror {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  white-space: break-spaces;\n  -webkit-font-variant-ligatures: none;\n  font-variant-ligatures: none;\n  font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n  white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n  white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n  white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n  display: inline !important;\n  border: none !important;\n  margin: 0 !important;\n  width: 0 !important;\n  height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n  display: none;\n  pointer-events: none;\n  position: absolute;\n  margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n  content: "";\n  display: block;\n  position: absolute;\n  top: -2px;\n  width: 20px;\n  border-top: 1px solid black;\n  animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n  to {\n    visibility: hidden;\n  }\n}\n\n.ProseMirror-hideselection *::selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n  background: transparent;\n}\n\n.ProseMirror-hideselection * {\n  caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n  display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n  opacity: 0\n}',this.options.injectNonce))}setOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options=(0,Ze.A)((0,Ze.A)({},this.options),e),this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const n=nf(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let n=t;if([].concat(e).forEach((e=>{const r="string"===typeof e?"".concat(e,"$"):e.key;n=t.filter((e=>!e.key.startsWith(r)))})),t.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;const n=[...this.options.enableCoreExtensions?[ip,Ef.configure({blockSeparator:null===(t=null===(e=this.options.coreExtensionOptions)||void 0===e?void 0:e.clipboardTextSerializer)||void 0===t?void 0:t.blockSeparator}),rp,ap,sp,up,op,lp].filter((e=>"object"!==typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name])):[],...this.options.extensions].filter((e=>["extension","node","mark"].includes(null===e||void 0===e?void 0:e.type)));this.extensionManager=new xf(n,this)}createCommandManager(){this.commandManager=new Kd({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let t;try{t=Hf(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(ak){if(!(ak instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(ak.message))throw ak;this.emit("contentError",{editor:this,error:ak,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter((e=>"collaboration"!==e.name)),this.createExtensionManager()}}),t=Hf(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=jf(t,this.options.autofocus);this.view=new td(this.options.element,(0,Ze.A)((0,Ze.A)({},this.options.editorProps),{},{attributes:(0,Ze.A)({role:"textbox"},null===(e=this.options.editorProps)||void 0===e?void 0:e.attributes),dispatchTransaction:this.dispatchTransaction.bind(this),state:Bs.create({doc:t,selection:n||void 0})}));const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className="tiptap ".concat(this.view.dom.className)}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach((e=>{var t;return null===(t=this.capturedTransaction)||void 0===t?void 0:t.step(e)})):void(this.capturedTransaction=e);const t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),o=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),e.docChanged&&!e.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return $f(this.state,e)}isActive(e,t){const n="string"===typeof e?e:null,r="string"===typeof e?t:e;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return zf(e,null,n)||Gf(e,null,n);const r=Bf(t,e.schema);return"node"===r?zf(e,t,n):"mark"===r&&Gf(e,t,n)}(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return cf(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:n={}}=e||{};return Uf(this.state.doc,{blockSeparator:t,textSerializers:(0,Ze.A)((0,Ze.A)({},Sf(this.schema)),n)})}get isEmpty(){return Zf(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(null===(e=this.view)||void 0===e?void 0:e.docView)}$node(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelector(e,t))||null}$nodes(e,t){var n;return(null===(n=this.$doc)||void 0===n?void 0:n.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new cp(t,this)}get $doc(){return this.$pos(0)}}function fp(e){return new ff({find:e.find,handler:t=>{let{state:n,range:r,match:o}=t;const i=rf(e.getAttributes,void 0,o);if(!1===i||null===i)return null;const{tr:a}=n,s=o[o.length-1],l=o[0];if(s){const t=l.search(/\S/),o=r.from+l.indexOf(s),u=o+s.length;if(Kf(r.from,r.to,n.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>o)).length)return null;u<r.to&&a.delete(u,r.to),o>r.from&&a.delete(r.from+t,o);const c=r.from+t+s.length;a.addMark(r.from+t,c,e.type.create(i||{})),a.removeStoredMark(e.type)}}})}function pp(e){return new ff({find:e.find,handler:t=>{let{state:n,range:r,match:o}=t;const i=rf(e.getAttributes,void 0,o)||{},{tr:a}=n,s=r.from;let l=r.to;const u=e.type.create(i);if(o[1]){let e=s+o[0].lastIndexOf(o[1]);e>l?e=l:l=e+o[1].length;const t=o[0][o[0].length-1];a.insertText(t,s+o[0].length-1),a.replaceWith(e,l,u)}else if(o[0]){const t=e.type.isInline?s:s-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(s),a.mapping.map(l))}a.scrollIntoView()}})}function hp(e){return new ff({find:e.find,handler:t=>{let{state:n,range:r,match:o}=t;const i=n.doc.resolve(r.from),a=rf(e.getAttributes,void 0,o)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;n.tr.delete(r.from,r.to).setBlockType(r.from,r.from,e.type,a)}})}function mp(e){return new ff({find:e.find,handler:t=>{let{state:n,range:r,match:o,chain:i}=t;const a=rf(e.getAttributes,void 0,o)||{},s=n.tr.delete(r.from,r.to),l=s.doc.resolve(r.from).blockRange(),u=l&&Za(l,e.type,a);if(!u)return null;if(s.wrap(l,u),e.keepMarks&&e.editor){const{selection:t,storedMarks:r}=n,{splittableMarks:o}=e.editor.extensionManager,i=r||t.$to.parentOffset&&t.$from.marks();if(i){const e=i.filter((e=>o.includes(e.type.name)));s.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";i().updateAttributes(t,a).run()}const c=s.doc.resolve(r.from-1).nodeBefore;c&&c.type===e.type&&rs(s.doc,r.from-1)&&(!e.joinPredicate||e.joinPredicate(o,c))&&s.join(r.from-1)}})}class gp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config=(0,Ze.A)((0,Ze.A)({},this.config),e),this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(this.name,'".')),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=rf(Gd(this,"addOptions",{name:this.name}))),this.storage=rf(Gd(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(){return new gp(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}configure(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.extend((0,Ze.A)((0,Ze.A)({},this.config),{},{addOptions:()=>gf(this.options,e)}));return t.name=this.name,t.parent=this.parent,t}extend(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new gp(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn('[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "'.concat(t.name,'".')),t.options=rf(Gd(t,"addOptions",{name:t.name})),t.storage=rf(Gd(t,"addStorage",{name:t.name,options:t.options})),t}}function yp(e){return new vf({find:e.find,handler:t=>{let{state:n,range:r,match:o,pasteEvent:i}=t;const a=rf(e.getAttributes,void 0,o,i);if(!1===a||null===a)return null;const{tr:s}=n,l=o[o.length-1],u=o[0];let c=r.to;if(l){const t=u.search(/\S/),o=r.from+u.indexOf(l),i=o+l.length;if(Kf(r.from,r.to,n.doc).filter((t=>t.mark.type.excluded.find((n=>n===e.type&&n!==t.mark.type)))).filter((e=>e.to>o)).length)return null;i<r.to&&s.delete(i,r.to),o>r.from&&s.delete(r.from+t,o),c=r.from+t+l.length,s.addMark(r.from+t,c,e.type.create(a||{})),s.removeStoredMark(e.type)}}})}const vp=["editor","innerRef"];function bp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wp,xp={exports:{}},kp={};xp.exports=function(){if(wp)return kp;wp=1;var e=r,t="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},n=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function s(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!t(e,r)}catch(ex){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),l=n({inst:{value:r,getSnapshot:t}}),u=l[0].inst,c=l[1];return i((function(){u.value=r,u.getSnapshot=t,s(u)&&c({inst:u})}),[e,r,t]),o((function(){return s(u)&&c({inst:u}),e((function(){s(u)&&c({inst:u})}))}),[e]),a(r),r};return kp.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:l,kp}();var Dp=xp.exports;const Sp=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)}))}},Ep=e=>{let{contentComponent:t}=e;const n=Dp.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return r.createElement(r.Fragment,null,Object.values(n))};class Cp extends r.Component{constructor(e){var t;super(e),this.editorContentRef=r.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:Boolean(null===(t=e.editor)||void 0===t?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=function(){const e=new Set;let t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(n,r){t=(0,Ze.A)((0,Ze.A)({},t),{},{[n]:a.createPortal(r.reactElement,r.element,n)}),e.forEach((e=>e()))},removeRenderer(n){const r=(0,Ze.A)({},t);delete r[n],t=r,e.forEach((e=>e()))}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe((()=>{this.setState((e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0})),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()}))),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e)return;if(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild)return;const t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){const e=this.props,{editor:t,innerRef:n}=e,o=(0,Xe.A)(e,vp);return r.createElement(r.Fragment,null,r.createElement("div",(0,Ze.A)({ref:Sp(n,this.editorContentRef)},o)),(null===t||void 0===t?void 0:t.contentComponent)&&r.createElement(Ep,{contentComponent:t.contentComponent}))}}const Mp=(0,r.forwardRef)(((e,t)=>{const n=r.useMemo((()=>Math.floor(4294967295*Math.random()).toString()),[e.editor]);return r.createElement(Cp,(0,Ze.A)({key:n,innerRef:t},e))})),Op=r.memo(Mp);var Np,Ap=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,o,i;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(!e(t[o],n[o]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],n.get(o[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o of t.entries())if(!n.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((r=t.length)!=n.length)return!1;for(o=r;0!==o--;)if(t[o]!==n[o])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!==o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!==o--;){var a=i[o];if(("_owner"!==a||!t.$$typeof)&&!e(t[a],n[a]))return!1}return!0}return t!==t&&n!==n},Pp=bp(Ap),_p={exports:{}},jp={};_p.exports=function(){if(Np)return jp;Np=1;var e=r,t=Dp,n="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,l=e.useDebugValue;return jp.useSyncExternalStoreWithSelector=function(e,t,r,u,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s((function(){function e(e){if(!a){if(a=!0,o=e,e=u(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,n(o,e))return t;var r=u(e);return void 0!==c&&c(t,r)?t:(o=e,i=r)}var o,i,a=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]}),[t,r,u,c]);var p=o(e,d[0],d[1]);return a((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p},jp}();var Tp=_p.exports;const Rp="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;class Fp{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach((e=>e()))},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}}const Ip="undefined"===typeof window,Lp=Ip||Boolean("undefined"!==typeof window&&window.next);class zp{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach((e=>e()))}getInitialEditor(){return void 0===this.options.current.immediatelyRender?Ip||Lp?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){var e=this;const t=(0,Ze.A)((0,Ze.A)({},this.options.current),{},{onBeforeCreate:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onBeforeCreate)||void 0===n?void 0:n.call(t,...o)},onBlur:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onBlur)||void 0===n?void 0:n.call(t,...o)},onCreate:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onCreate)||void 0===n?void 0:n.call(t,...o)},onDestroy:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onDestroy)||void 0===n?void 0:n.call(t,...o)},onFocus:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onFocus)||void 0===n?void 0:n.call(t,...o)},onSelectionUpdate:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onSelectionUpdate)||void 0===n?void 0:n.call(t,...o)},onTransaction:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onTransaction)||void 0===n?void 0:n.call(t,...o)},onUpdate:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onUpdate)||void 0===n?void 0:n.call(t,...o)},onContentError:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onContentError)||void 0===n?void 0:n.call(t,...o)},onDrop:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onDrop)||void 0===n?void 0:n.call(t,...o)},onPaste:function(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return null===(n=(t=e.options.current).onPaste)||void 0===n?void 0:n.call(t,...o)}});return new dp(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===e.length?this.editor.setOptions((0,Ze.A)((0,Ze.A)({},this.options.current),{},{editable:this.editor.isEditable})):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps)return void(this.previousDeps=e);const t=this.previousDeps.length===e.length&&this.previousDeps.every(((t,n)=>t===e[n]));if(t)return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout((()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))}),1)}}function Bp(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=(0,r.useRef)(e);n.current=e;const[o]=(0,r.useState)((()=>new zp(n))),i=Dp.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return(0,r.useDebugValue)(i),(0,r.useEffect)(o.onRender(t)),function(e){var t;const[n]=(0,r.useState)((()=>new Fp(e.editor))),o=Tp.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,e.selector,null!==(t=e.equalityFn)&&void 0!==t?t:Pp);Rp((()=>n.watch(e.editor)),[e.editor,n]),(0,r.useDebugValue)(o)}({editor:i,selector:t=>{let{transactionNumber:n}=t;return!1===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===n?0:n+1}}),i}const Yp=(0,r.createContext)({editor:null});Yp.Consumer;const Hp=(0,r.createContext)({onDragStart:void 0}),Wp=()=>(0,r.useContext)(Hp);r.forwardRef(((e,t)=>{const{onDragStart:n}=Wp(),o=e.as||"div";return r.createElement(o,(0,Ze.A)((0,Ze.A)({},e),{},{ref:t,"data-node-view-wrapper":"",onDragStart:n,style:(0,Ze.A)({whiteSpace:"normal"},e.style)}))}));const Vp=/^\s*>\s$/,Up=gp.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML(e){let{HTMLAttributes:t}=e;return["blockquote",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>e=>{let{commands:t}=e;return t.wrapIn(this.name)},toggleBlockquote:()=>e=>{let{commands:t}=e;return t.toggleWrap(this.name)},unsetBlockquote:()=>e=>{let{commands:t}=e;return t.lift(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[mp({find:Vp,type:this.type})]}}),$p=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,qp=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Kp=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Qp=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Gp=yf.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML(e){let{HTMLAttributes:t}=e;return["strong",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setBold:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleBold:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetBold:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[fp({find:$p,type:this.type}),fp({find:Kp,type:this.type})]},addPasteRules(){return[yp({find:qp,type:this.type}),yp({find:Qp,type:this.type})]}}),Jp="textStyle",Zp=/^\s*([-+*])\s$/,Xp=gp.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return"".concat(this.options.itemTypeName,"+")},parseHTML:()=>[{tag:"ul"}],renderHTML(e){let{HTMLAttributes:t}=e;return["ul",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleBulletList:()=>e=>{let{commands:t,chain:n}=e;return this.options.keepAttributes?n().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(Jp)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=mp({find:Zp,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mp({find:Zp,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Jp),editor:this.editor})),[e]}}),eh=/(?<!`)`([^`]+)`(?!`)/,th=/(?<!`)`([^`]+)`(?!`)/g,nh=yf.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML(e){let{HTMLAttributes:t}=e;return["code",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setCode:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleCode:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetCode:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[fp({find:eh,type:this.type})]},addPasteRules(){return[yp({find:th,type:this.type})]}}),rh=/^```([a-z]+)?[\s\n]$/,oh=/^~~~([a-z]+)?[\s\n]$/,ih=gp.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:n}=this.options,r=[...(null===(t=e.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter((e=>e.startsWith(n))).map((e=>e.replace(n,"")))[0];return r||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML(e){let{node:t,HTMLAttributes:n}=e;return["pre",ef(this.options.HTMLAttributes,n),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},addCommands(){return{setCodeBlock:e=>t=>{let{commands:n}=t;return n.setNode(this.name,e)},toggleCodeBlock:e=>t=>{let{commands:n}=t;return n.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,n=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!n&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Enter:e=>{let{editor:t}=e;if(!this.options.exitOnTripleEnter)return!1;const{state:n}=t,{selection:r}=n,{$from:o,empty:i}=r;if(!i||o.parent.type!==this.type)return!1;const a=o.parentOffset===o.parent.nodeSize-2,s=o.parent.textContent.endsWith("\n\n");return!(!a||!s)&&t.chain().command((e=>{let{tr:t}=e;return t.delete(o.pos-2,o.pos),!0})).exitCode().run()},ArrowDown:e=>{let{editor:t}=e;if(!this.options.exitOnArrowDown)return!1;const{state:n}=t,{selection:r,doc:o}=n,{$from:i,empty:a}=r;if(!a||i.parent.type!==this.type)return!1;if(!(i.parentOffset===i.parent.nodeSize-2))return!1;const s=i.after();if(void 0===s)return!1;return o.nodeAt(s)?t.commands.command((e=>{let{tr:t}=e;return t.setSelection(Ds.near(o.resolve(s))),!0})):t.commands.exitCode()}}},addInputRules(){return[hp({find:rh,type:this.type,getAttributes:e=>({language:e[1]})}),hp({find:oh,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new Hs({key:new Us("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const n=t.clipboardData.getData("text/plain"),r=t.clipboardData.getData("vscode-editor-data"),o=r?JSON.parse(r):void 0,i=null===o||void 0===o?void 0:o.mode;if(!n||!i)return!1;const{tr:a,schema:s}=e.state,l=s.text(n.replace(/\r\n?/g,"\n"));return a.replaceSelectionWith(this.type.create({language:i},l)),a.selection.$from.parent.type!==this.type&&a.setSelection(Ms.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta("paste",!0),e.dispatch(a),!0}}})]}}),ah=gp.create({name:"doc",topNode:!0,content:"block+"});function sh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Hs({view:t=>new lh(t,e)})}class lh{constructor(e,t){var n;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(n=t.width)&&void 0!==n?n:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}}))}destroy(){this.handlers.forEach((e=>{let{name:t,handler:n}=e;return this.editorView.dom.removeEventListener(t,n)}))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),n=!t.parent.inlineContent;if(n){let n=t.nodeBefore,r=t.nodeAfter;if(n||r){let t=this.editorView.nodeDOM(this.cursorPos-(n?n.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=n?o.bottom:o.top;n&&r&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",n),this.element.classList.toggle("prosemirror-dropcursor-inline",!n),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let e=i.getBoundingClientRect();r=e.left-i.scrollLeft,o=e.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,t,e):r;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=ss(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const uh=kf.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[sh(this.options)]}});class ch extends Ds{constructor(e){super(e,e)}map(e,t){let n=e.resolve(t.map(this.head));return ch.valid(n)?new ch(n):Ds.near(n)}content(){return Pi.empty}eq(e){return e instanceof ch&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new ch(e.resolve(t.pos))}getBookmark(){return new dh(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(0!=n)for(let e=r.child(n-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n!=r.childCount)for(let e=r.child(n);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||e.isAtom||e.type.spec.isolating)return!0;if(e.inlineContent)return!1}else if(r.type.spec.isolating)return!0}return!0}(e))return!1;let n=t.type.spec.allowGapCursor;if(null!=n)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e:for(;;){if(!n&&ch.valid(e))return e;let r=e.pos,o=null;for(let n=e.depth;;n--){let i=e.node(n);if(t>0?e.indexAfter(n)<i.childCount:e.index(n)>0){o=i.child(t>0?e.indexAfter(n):e.index(n)-1);break}if(0==n)return null;r+=t;let a=e.doc.resolve(r);if(ch.valid(a))return a}for(;;){let i=t>0?o.firstChild:o.lastChild;if(!i){if(o.isAtom&&!o.isText&&!Ns.isSelectable(o)){e=e.doc.resolve(r+o.nodeSize*t),n=!1;continue e}break}o=i,r+=t;let a=e.doc.resolve(r);if(ch.valid(a))return a}return null}}}ch.prototype.visible=!1,ch.findFrom=ch.findGapCursorFrom,Ds.jsonID("gapcursor",ch);class dh{constructor(e){this.pos=e}map(e){return new dh(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return ch.valid(t)?new ch(t):Ds.near(t)}}const fh=gd({ArrowLeft:ph("horiz",-1),ArrowRight:ph("horiz",1),ArrowUp:ph("vert",-1),ArrowDown:ph("vert",1)});function ph(e,t){const n="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,r,o){let i=e.selection,a=t>0?i.$to:i.$from,s=i.empty;if(i instanceof Ms){if(!o.endOfTextblock(n)||0==a.depth)return!1;s=!1,a=e.doc.resolve(t>0?a.after():a.before())}let l=ch.findGapCursorFrom(a,t,s);return!!l&&(r&&r(e.tr.setSelection(new ch(l))),!0)}}function hh(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!ch.valid(r))return!1;let o=e.posAtCoords({left:n.clientX,top:n.clientY});return!(o&&o.inside>-1&&Ns.isSelectable(e.state.doc.nodeAt(o.inside)))&&(e.dispatch(e.state.tr.setSelection(new ch(r))),!0)}function mh(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof ch))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let o=Ei.empty;for(let a=r.length-1;a>=0;a--)o=Ei.from(r[a].createAndFill(null,o));let i=e.state.tr.replace(n.pos,n.pos,new Pi(o,0,0));return i.setSelection(Ms.near(i.doc.resolve(n.pos+1))),e.dispatch(i),!1}function gh(e){if(!(e.selection instanceof ch))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",Ac.create(e.doc,[Mc.widget(e.selection.head,t,{key:"gapcursor"})])}const yh=kf.create({name:"gapCursor",addProseMirrorPlugins:()=>[new Hs({props:{decorations:gh,createSelectionBetween:(e,t,n)=>t.pos==n.pos&&ch.valid(n)?new ch(n):null,handleClick:hh,handleKeyDown:fh,handleDOMEvents:{beforeinput:mh}}})],extendNodeSchema(e){var t;return{allowGapCursor:null!==(t=rf(Gd(e,"allowGapCursor",{name:e.name,options:e.options,storage:e.storage})))&&void 0!==t?t:null}}}),vh=gp.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML(e){let{HTMLAttributes:t}=e;return["br",ef(this.options.HTMLAttributes,t)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>e=>{let{commands:t,chain:n,state:r,editor:o}=e;return t.first([()=>t.exitCode(),()=>t.command((()=>{const{selection:e,storedMarks:t}=r;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=o.extensionManager,s=t||e.$to.parentOffset&&e.$from.marks();return n().insertContent({type:this.name}).command((e=>{let{tr:t,dispatch:n}=e;if(n&&s&&i){const e=s.filter((e=>a.includes(e.type.name)));t.ensureMarks(e)}return!0})).run()}))])}}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),bh=gp.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map((e=>({tag:"h".concat(e),attrs:{level:e}})))},renderHTML(e){let{node:t,HTMLAttributes:n}=e;const r=this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0];return["h".concat(r),ef(this.options.HTMLAttributes,n),0]},addCommands(){return{setHeading:e=>t=>{let{commands:n}=t;return!!this.options.levels.includes(e.level)&&n.setNode(this.name,e)},toggleHeading:e=>t=>{let{commands:n}=t;return!!this.options.levels.includes(e.level)&&n.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){return this.options.levels.reduce(((e,t)=>(0,Ze.A)((0,Ze.A)({},e),{["Mod-Alt-".concat(t)]:()=>this.editor.commands.toggleHeading({level:t})})),{})},addInputRules(){return this.options.levels.map((e=>hp({find:new RegExp("^(#{1,".concat(e,"})\\s$")),type:this.type,getAttributes:{level:e}})))}});var wh=200,xh=function(){};xh.prototype.append=function(e){return e.length?(e=xh.from(e),!this.length&&e||e.length<wh&&this.leafAppend(e)||this.length<wh&&e.leafPrepend(this)||this.appendInner(e)):this},xh.prototype.prepend=function(e){return e.length?xh.from(e).append(this):this},xh.prototype.appendInner=function(e){return new Dh(this,e)},xh.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?xh.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},xh.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},xh.prototype.forEach=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},xh.prototype.map=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=this.length);var r=[];return this.forEach((function(t,n){return r.push(e(t,n))}),t,n),r},xh.from=function(e){return e instanceof xh?e:e&&e.length?new kh(e):xh.empty};var kh=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return 0==e&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var o=t;o<n;o++)if(!1===e(this.values[o],r+o))return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var o=t-1;o>=n;o--)if(!1===e(this.values[o],r+o))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=wh)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=wh)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(xh);xh.empty=new kh([]);var Dh=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var o=this.left.length;return!(t<o&&!1===this.left.forEachInner(e,t,Math.min(n,o),r))&&(!(n>o&&!1===this.right.forEachInner(e,Math.max(t-o,0),Math.min(this.length,n)-o,r+o))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,n,r){var o=this.left.length;return!(t>o&&!1===this.right.forEachInvertedInner(e,t-o,Math.max(n,o)-o,r+o))&&(!(n<o&&!1===this.left.forEachInvertedInner(e,Math.min(t,o),n,r))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(xh);const Sh=xh;class Eh{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let n,r,o=this.items.length;for(;;o--){if(this.items.get(o-1).selection){--o;break}}t&&(n=this.remapping(o,this.items.length),r=n.maps.length);let i,a,s=e.tr,l=[],u=[];return this.items.forEach(((e,t)=>{if(!e.step)return n||(n=this.remapping(o,t+1),r=n.maps.length),r--,void u.push(e);if(n){u.push(new Ch(e.map));let t,o=e.step.map(n.slice(r));o&&s.maybeStep(o).doc&&(t=s.mapping.maps[s.mapping.maps.length-1],l.push(new Ch(t,void 0,void 0,l.length+u.length))),r--,t&&n.appendMap(t,r)}else s.maybeStep(e.step);return e.selection?(i=n?e.selection.map(n.slice(r)):e.selection,a=new Eh(this.items.slice(0,o).append(u.reverse().concat(l)),this.eventCount-1),!1):void 0}),this.items.length,0),{remaining:a,transform:s,selection:i}}addTransform(e,t,n,r){let o=[],i=this.eventCount,a=this.items,s=!r&&a.length?a.get(a.length-1):null;for(let u=0;u<e.steps.length;u++){let n,l=e.steps[u].invert(e.docs[u]),c=new Ch(e.mapping.maps[u],l,t);(n=s&&s.merge(c))&&(c=n,u?o.pop():a=a.slice(0,a.length-1)),o.push(c),t&&(i++,t=void 0),r||(s=c)}let l=i-n.depth;return l>Oh&&(a=function(e,t){let n;return e.forEach(((e,r)=>{if(e.selection&&0==t--)return n=r,!1})),e.slice(n)}(a,l),i-=l),new Eh(a.append(o),i)}remapping(e,t){let n=new Ia;return this.items.forEach(((t,r)=>{let o=null!=t.mirrorOffset&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,o)}),e,t),n}addMaps(e){return 0==this.eventCount?this:new Eh(this.items.append(e.map((e=>new Ch(e)))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let n=[],r=Math.max(0,this.items.length-t),o=e.mapping,i=e.steps.length,a=this.eventCount;this.items.forEach((e=>{e.selection&&a--}),r);let s=t;this.items.forEach((t=>{let r=o.getMirror(--s);if(null==r)return;i=Math.min(i,r);let l=o.maps[r];if(t.step){let i=e.steps[r].invert(e.docs[r]),u=t.selection&&t.selection.map(o.slice(s+1,r));u&&a++,n.push(new Ch(l,i,u))}else n.push(new Ch(l))}),r);let l=[];for(let d=t;d<i;d++)l.push(new Ch(o.maps[d]));let u=this.items.slice(0,r).append(l).append(n),c=new Eh(u,a);return c.emptyItemCount()>500&&(c=c.compress(this.items.length-n.length)),c}emptyItemCount(){let e=0;return this.items.forEach((t=>{t.step||e++})),e}compress(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.remapping(0,e),n=t.maps.length,r=[],o=0;return this.items.forEach(((i,a)=>{if(a>=e)r.push(i),i.selection&&o++;else if(i.step){let e=i.step.map(t.slice(n)),a=e&&e.getMap();if(n--,a&&t.appendMap(a,n),e){let s=i.selection&&i.selection.map(t.slice(n));s&&o++;let l,u=new Ch(a.invert(),e,s),c=r.length-1;(l=r.length&&r[c].merge(u))?r[c]=l:r.push(u)}}else i.map&&n--}),this.items.length,0),new Eh(Sh.from(r.reverse()),o)}}Eh.empty=new Eh(Sh.empty,0);class Ch{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Ch(t.getMap().invert(),t,this.selection)}}}class Mh{constructor(e,t,n,r,o){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=o}}const Oh=20;function Nh(e){let t=[];for(let n=e.length-1;n>=0&&0==t.length;n--)e[n].forEach(((e,n,r,o)=>t.push(r,o)));return t}function Ah(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let o=t.map(e[r],1),i=t.map(e[r+1],-1);o<=i&&n.push(o,i)}return n}let Ph=!1,_h=null;function jh(e){let t=e.plugins;if(_h!=t){Ph=!1,_h=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Ph=!0;break}}return Ph}const Th=new Us("history"),Rh=new Us("closeHistory");function Fh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new Hs({key:Th,state:{init:()=>new Mh(Eh.empty,Eh.empty,null,0,-1),apply:(t,n,r)=>function(e,t,n,r){let o,i=n.getMeta(Th);if(i)return i.historyState;n.getMeta(Rh)&&(e=new Mh(e.done,e.undone,null,0,-1));let a=n.getMeta("appendedTransaction");if(0==n.steps.length)return e;if(a&&a.getMeta(Th))return a.getMeta(Th).redo?new Mh(e.done.addTransform(n,void 0,r,jh(t)),e.undone,Nh(n.mapping.maps),e.prevTime,e.prevComposition):new Mh(e.done,e.undone.addTransform(n,void 0,r,jh(t)),null,e.prevTime,e.prevComposition);if(!1===n.getMeta("addToHistory")||a&&!1===a.getMeta("addToHistory"))return(o=n.getMeta("rebased"))?new Mh(e.done.rebased(n,o),e.undone.rebased(n,o),Ah(e.prevRanges,n.mapping),e.prevTime,e.prevComposition):new Mh(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),Ah(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);{let o=n.getMeta("composition"),i=0==e.prevTime||!a&&e.prevComposition!=o&&(e.prevTime<(n.time||0)-r.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach(((e,r)=>{for(let o=0;o<t.length;o+=2)e<=t[o+1]&&r>=t[o]&&(n=!0)})),n}(n,e.prevRanges)),s=a?Ah(e.prevRanges,n.mapping):Nh(n.mapping.maps);return new Mh(e.done.addTransform(n,i?t.selection.getBookmark():void 0,r,jh(t)),Eh.empty,s,n.time,null==o?e.prevComposition:o)}}(n,r,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r="historyUndo"==n?Lh:"historyRedo"==n?zh:null;return!!r&&(t.preventDefault(),r(e.state,e.dispatch))}}}})}function Ih(e,t){return(n,r)=>{let o=Th.getState(n);if(!o||0==(e?o.undone:o.done).eventCount)return!1;if(r){let i=function(e,t,n){let r=jh(t),o=Th.get(t).spec.config,i=(n?e.undone:e.done).popEvent(t,r);if(!i)return null;let a=i.selection.resolve(i.transform.doc),s=(n?e.done:e.undone).addTransform(i.transform,t.selection.getBookmark(),o,r),l=new Mh(n?s:i.remaining,n?i.remaining:s,null,0,-1);return i.transform.setSelection(a).setMeta(Th,{redo:n,historyState:l})}(o,n,e);i&&r(t?i.scrollIntoView():i)}return!0}}const Lh=Ih(!1,!0),zh=Ih(!0,!0);Ih(!1,!1),Ih(!0,!1);const Bh=kf.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>e=>{let{state:t,dispatch:n}=e;return Lh(t,n)},redo:()=>e=>{let{state:t,dispatch:n}=e;return zh(t,n)}}),addProseMirrorPlugins(){return[Fh(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),Yh=gp.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML(e){let{HTMLAttributes:t}=e;return["hr",ef(this.options.HTMLAttributes,t)]},addCommands(){return{setHorizontalRule:()=>e=>{let{chain:t,state:n}=e;const{selection:r}=n,{$from:o,$to:i}=r,a=t();return 0===o.parentOffset?a.insertContentAt({from:Math.max(o.pos-1,0),to:i.pos},{type:this.name}):r instanceof Ns?a.insertContentAt(i.pos,{type:this.name}):a.insertContent({type:this.name}),a.command((e=>{let{tr:t,dispatch:n}=e;var r;if(n){const{$to:e}=t.selection,n=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?t.setSelection(Ms.create(t.doc,e.pos+1)):e.nodeAfter.isBlock?t.setSelection(Ns.create(t.doc,e.pos)):t.setSelection(Ms.create(t.doc,e.pos));else{const o=null===(r=e.parent.type.contentMatch.defaultType)||void 0===r?void 0:r.create();o&&(t.insert(n,o),t.setSelection(Ms.create(t.doc,n+1)))}t.scrollIntoView()}return!0})).run()}}},addInputRules(){return[pp({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),Hh=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Wh=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,Vh=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Uh=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,$h=yf.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML(e){let{HTMLAttributes:t}=e;return["em",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleItalic:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetItalic:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[fp({find:Hh,type:this.type}),fp({find:Vh,type:this.type})]},addPasteRules(){return[yp({find:Wh,type:this.type}),yp({find:Uh,type:this.type})]}}),qh=gp.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML(e){let{HTMLAttributes:t}=e;return["li",ef(this.options.HTMLAttributes,t),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Kh=["start"],Qh="textStyle",Gh=/^(\d+)\.\s$/,Jh=gp.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return"".concat(this.options.itemTypeName,"+")},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:void 0,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML(e){let{HTMLAttributes:t}=e;const{start:n}=t,r=(0,Xe.A)(t,Kh);return 1===n?["ol",ef(this.options.HTMLAttributes,r),0]:["ol",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{toggleOrderedList:()=>e=>{let{commands:t,chain:n}=e;return this.options.keepAttributes?n().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(Qh)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=mp({find:Gh,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=mp({find:Gh,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>(0,Ze.A)({start:+e[1]},this.editor.getAttributes(Qh)),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),Zh=gp.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML(e){let{HTMLAttributes:t}=e;return["p",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>e=>{let{commands:t}=e;return t.setNode(this.name)}}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Xh=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,em=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,tm=yf.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["s",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setStrike:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleStrike:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetStrike:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[fp({find:Xh,type:this.type})]},addPasteRules(){return[yp({find:em,type:this.type})]}}),nm=gp.create({name:"text",group:"inline"}),rm=kf.create({name:"starterKit",addExtensions(){var e,t,n,r,o,i,a,s,l,u,c,d,f,p,h,m,g,y;const v=[];return!1!==this.options.bold&&v.push(Gp.configure(null===(e=this.options)||void 0===e?void 0:e.bold)),!1!==this.options.blockquote&&v.push(Up.configure(null===(t=this.options)||void 0===t?void 0:t.blockquote)),!1!==this.options.bulletList&&v.push(Xp.configure(null===(n=this.options)||void 0===n?void 0:n.bulletList)),!1!==this.options.code&&v.push(nh.configure(null===(r=this.options)||void 0===r?void 0:r.code)),!1!==this.options.codeBlock&&v.push(ih.configure(null===(o=this.options)||void 0===o?void 0:o.codeBlock)),!1!==this.options.document&&v.push(ah.configure(null===(i=this.options)||void 0===i?void 0:i.document)),!1!==this.options.dropcursor&&v.push(uh.configure(null===(a=this.options)||void 0===a?void 0:a.dropcursor)),!1!==this.options.gapcursor&&v.push(yh.configure(null===(s=this.options)||void 0===s?void 0:s.gapcursor)),!1!==this.options.hardBreak&&v.push(vh.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&v.push(bh.configure(null===(u=this.options)||void 0===u?void 0:u.heading)),!1!==this.options.history&&v.push(Bh.configure(null===(c=this.options)||void 0===c?void 0:c.history)),!1!==this.options.horizontalRule&&v.push(Yh.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&v.push($h.configure(null===(f=this.options)||void 0===f?void 0:f.italic)),!1!==this.options.listItem&&v.push(qh.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&v.push(Jh.configure(null===(h=this.options)||void 0===h?void 0:h.orderedList)),!1!==this.options.paragraph&&v.push(Zh.configure(null===(m=this.options)||void 0===m?void 0:m.paragraph)),!1!==this.options.strike&&v.push(tm.configure(null===(g=this.options)||void 0===g?void 0:g.strike)),!1!==this.options.text&&v.push(nm.configure(null===(y=this.options)||void 0===y?void 0:y.text)),v}}),om=yf.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["u",ef(this.options.HTMLAttributes,t),0]},addCommands(){return{setUnderline:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleUnderline:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetUnderline:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),im=(e,t)=>{for(const n in t)e[n]=t[n];return e},am="numeric",sm="ascii",lm="alpha",um="asciinumeric",cm="alphanumeric",dm="domain",fm="emoji",pm="scheme",hm="slashscheme",mm="whitespace";function gm(e,t){return e in t||(t[e]=[]),t[e]}function ym(e,t,n){t[am]&&(t[um]=!0,t[cm]=!0),t[sm]&&(t[um]=!0,t[lm]=!0),t[um]&&(t[cm]=!0),t[lm]&&(t[cm]=!0),t[cm]&&(t[dm]=!0),t[fm]&&(t[dm]=!0);for(const r in t){const t=gm(r,n);t.indexOf(e)<0&&t.push(e)}}function vm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.j={},this.jr=[],this.jd=null,this.t=e}vm.groups={},vm.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let r=0;r<t.jr.length;r++){const n=t.jr[r][0],o=t.jr[r][1];if(o&&n.test(e))return o}return t.jd},has(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let o=0;o<e.length;o++)this.tt(e[o],t,n,r)},tr(e,t,n,r){let o;return r=r||vm.groups,t&&t.j?o=t:(o=new vm(t),n&&r&&ym(t,n,r)),this.jr.push([e,o]),o},ts(e,t,n,r){let o=this;const i=e.length;if(!i)return o;for(let a=0;a<i-1;a++)o=o.tt(e[a]);return o.tt(e[i-1],t,n,r)},tt(e,t,n,r){r=r||vm.groups;const o=this;if(t&&t.j)return o.j[e]=t,t;const i=t;let a,s=o.go(e);if(s?(a=new vm,im(a.j,s.j),a.jr.push.apply(a.jr,s.jr),a.jd=s.jd,a.t=s.t):a=new vm,i){if(r)if(a.t&&"string"===typeof a.t){const e=im(function(e,t){const n={};for(const r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}(a.t,r),n);ym(i,e,r)}else n&&ym(i,n,r);a.t=i}return o.j[e]=a,a}};const bm=(e,t,n,r,o)=>e.ta(t,n,r,o),wm=(e,t,n,r,o)=>e.tr(t,n,r,o),xm=(e,t,n,r,o)=>e.ts(t,n,r,o),km=(e,t,n,r,o)=>e.tt(t,n,r,o),Dm="WORD",Sm="UWORD",Em="ASCIINUMERICAL",Cm="ALPHANUMERICAL",Mm="LOCALHOST",Om="TLD",Nm="UTLD",Am="SCHEME",Pm="SLASH_SCHEME",_m="NUM",jm="WS",Tm="NL",Rm="OPENBRACE",Fm="CLOSEBRACE",Im="OPENBRACKET",Lm="CLOSEBRACKET",zm="OPENPAREN",Bm="CLOSEPAREN",Ym="OPENANGLEBRACKET",Hm="CLOSEANGLEBRACKET",Wm="FULLWIDTHLEFTPAREN",Vm="FULLWIDTHRIGHTPAREN",Um="LEFTCORNERBRACKET",$m="RIGHTCORNERBRACKET",qm="LEFTWHITECORNERBRACKET",Km="RIGHTWHITECORNERBRACKET",Qm="FULLWIDTHLESSTHAN",Gm="FULLWIDTHGREATERTHAN",Jm="AMPERSAND",Zm="APOSTROPHE",Xm="ASTERISK",eg="AT",tg="BACKSLASH",ng="BACKTICK",rg="CARET",og="COLON",ig="COMMA",ag="DOLLAR",sg="DOT",lg="EQUALS",ug="EXCLAMATION",cg="HYPHEN",dg="PERCENT",fg="PIPE",pg="PLUS",hg="POUND",mg="QUERY",gg="QUOTE",yg="FULLWIDTHMIDDLEDOT",vg="SEMI",bg="SLASH",wg="TILDE",xg="UNDERSCORE",kg="EMOJI",Dg="SYM";var Sg=Object.freeze({__proto__:null,WORD:Dm,UWORD:Sm,ASCIINUMERICAL:Em,ALPHANUMERICAL:Cm,LOCALHOST:Mm,TLD:Om,UTLD:Nm,SCHEME:Am,SLASH_SCHEME:Pm,NUM:_m,WS:jm,NL:Tm,OPENBRACE:Rm,CLOSEBRACE:Fm,OPENBRACKET:Im,CLOSEBRACKET:Lm,OPENPAREN:zm,CLOSEPAREN:Bm,OPENANGLEBRACKET:Ym,CLOSEANGLEBRACKET:Hm,FULLWIDTHLEFTPAREN:Wm,FULLWIDTHRIGHTPAREN:Vm,LEFTCORNERBRACKET:Um,RIGHTCORNERBRACKET:$m,LEFTWHITECORNERBRACKET:qm,RIGHTWHITECORNERBRACKET:Km,FULLWIDTHLESSTHAN:Qm,FULLWIDTHGREATERTHAN:Gm,AMPERSAND:Jm,APOSTROPHE:Zm,ASTERISK:Xm,AT:eg,BACKSLASH:tg,BACKTICK:ng,CARET:rg,COLON:og,COMMA:ig,DOLLAR:ag,DOT:sg,EQUALS:lg,EXCLAMATION:ug,HYPHEN:cg,PERCENT:dg,PIPE:fg,PLUS:pg,POUND:hg,QUERY:mg,QUOTE:gg,FULLWIDTHMIDDLEDOT:yg,SEMI:vg,SLASH:bg,TILDE:wg,UNDERSCORE:xg,EMOJI:kg,SYM:Dg});const Eg=/[a-z]/,Cg=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])/,Mg=/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9\uDEF0-\uDEF8])/,Og=/\d/,Ng=/\s/;let Ag=null,Pg=null;function _g(e,t){const n=function(e){const t=[],n=e.length;let r=0;for(;r<n;){let o,i=e.charCodeAt(r),a=i<55296||i>56319||r+1===n||(o=e.charCodeAt(r+1))<56320||o>57343?e[r]:e.slice(r,r+2);t.push(a),r+=a.length}return t}(t.replace(/[A-Z]/g,(e=>e.toLowerCase()))),r=n.length,o=[];let i=0,a=0;for(;a<r;){let s=e,l=null,u=0,c=null,d=-1,f=-1;for(;a<r&&(l=s.go(n[a]));)s=l,s.accepts()?(d=0,f=0,c=s):d>=0&&(d+=n[a].length,f++),u+=n[a].length,i+=n[a].length,a++;i-=d,a-=f,u-=d,o.push({t:c.t,v:t.slice(i-u,i),s:i-u,e:i})}return o}function jg(e,t,n,r,o){let i;const a=t.length;for(let s=0;s<a-1;s++){const n=t[s];e.j[n]?i=e.j[n]:(i=new vm(r),i.jr=o.slice(),e.j[n]=i),e=i}return i=new vm(n),i.jr=o.slice(),e.j[t[a-1]]=i,i}function Tg(e){const t=[],n=[];let r=0;for(;r<e.length;){let o=0;for(;"0123456789".indexOf(e[r+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let t=parseInt(e.substring(r,r+o),10);t>0;t--)n.pop();r+=o}else n.push(e[r]),r++}return t}const Rg={defaultProtocol:"http",events:null,format:Ig,formatHref:Ig,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Fg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=im({},Rg);e&&(n=im(n,e instanceof Fg?e.o:e));const r=n.ignoreTags,o=[];for(let i=0;i<r.length;i++)o.push(r[i].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=o}function Ig(e){return e}Fg.prototype={o:Rg,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const r=null!=t;let o=this.o[e];return o?("object"===typeof o?(o=n.t in o?o[n.t]:Rg[e],"function"===typeof o&&r&&(o=o(t,n))):"function"===typeof o&&r&&(o=o(t,n.t,n)),o):o},getObj(e,t,n){let r=this.o[e];return"function"===typeof r&&null!=t&&(r=r(t,n.t,n)),r},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Lg(e,t){this.t="token",this.v=e,this.tk=t}function zg(e,t){class n extends Lg{constructor(t,n){super(t,n),this.t=e}}for(const r in t)n.prototype[r]=t[r];return n.t=e,n}Lg.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),r=e.get("format",t,this);return n&&r.length>n?r.substring(0,n)+"\u2026":r},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rg.defaultProtocol;return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),r=e.get("formatHref",n,this),o=e.get("tagName",n,t),i=this.toFormattedString(e),a={},s=e.get("className",n,t),l=e.get("target",n,t),u=e.get("rel",n,t),c=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return a.href=r,s&&(a.class=s),l&&(a.target=l),u&&(a.rel=u),c&&im(a,c),{tagName:o,attributes:a,content:i,eventListeners:d}}};const Bg=zg("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Yg=zg("text"),Hg=zg("nl"),Wg=zg("url",{isLink:!0,toHref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rg.defaultProtocol;return this.hasProtocol()?this.v:"".concat(e,"://").concat(this.v)},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Mm&&e[1].t===og}});const Vg=e=>new vm(e);function Ug(e,t,n){const r=n[0].s,o=n[n.length-1].e;return new e(t.slice(r,o),n)}const $g="undefined"!==typeof console&&console&&console.warn||(()=>{}),qg="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Kg={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Qg(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Kg.initialized&&$g('linkifyjs: already initialized - will not register custom scheme "'.concat(e,'" ').concat(qg)),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');Kg.customSchemes.push([e,t])}function Gg(){Kg.scanner=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={};vm.groups=t;const n=new vm;null==Ag&&(Ag=Tg("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==Pg&&(Pg=Tg("\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2")),km(n,"'",Zm),km(n,"{",Rm),km(n,"}",Fm),km(n,"[",Im),km(n,"]",Lm),km(n,"(",zm),km(n,")",Bm),km(n,"<",Ym),km(n,">",Hm),km(n,"\uff08",Wm),km(n,"\uff09",Vm),km(n,"\u300c",Um),km(n,"\u300d",$m),km(n,"\u300e",qm),km(n,"\u300f",Km),km(n,"\uff1c",Qm),km(n,"\uff1e",Gm),km(n,"&",Jm),km(n,"*",Xm),km(n,"@",eg),km(n,"`",ng),km(n,"^",rg),km(n,":",og),km(n,",",ig),km(n,"$",ag),km(n,".",sg),km(n,"=",lg),km(n,"!",ug),km(n,"-",cg),km(n,"%",dg),km(n,"|",fg),km(n,"+",pg),km(n,"#",hg),km(n,"?",mg),km(n,'"',gg),km(n,"/",bg),km(n,";",vg),km(n,"~",wg),km(n,"_",xg),km(n,"\\",tg),km(n,"\u30fb",yg);const r=wm(n,Og,_m,{[am]:!0});wm(r,Og,r);const o=wm(r,Eg,Em,{[um]:!0}),i=wm(r,Cg,Cm,{[cm]:!0}),a=wm(n,Eg,Dm,{[sm]:!0});wm(a,Og,o),wm(a,Eg,a),wm(o,Og,o),wm(o,Eg,o);const s=wm(n,Cg,Sm,{[lm]:!0});wm(s,Eg),wm(s,Og,i),wm(s,Cg,s),wm(i,Og,i),wm(i,Eg),wm(i,Cg,i);const l=km(n,"\n",Tm,{[mm]:!0}),u=km(n,"\r",jm,{[mm]:!0}),c=wm(n,Ng,jm,{[mm]:!0});km(n,"\ufffc",c),km(u,"\n",l),km(u,"\ufffc",c),wm(u,Ng,c),km(c,"\r"),km(c,"\n"),wm(c,Ng,c),km(c,"\ufffc",c);const d=wm(n,Mg,kg,{[fm]:!0});km(d,"#"),wm(d,Mg,d),km(d,"\ufe0f",d);const f=km(d,"\u200d");km(f,"#"),wm(f,Mg,d);const p=[[Eg,a],[Og,o]],h=[[Eg,null],[Cg,s],[Og,i]];for(let m=0;m<Ag.length;m++)jg(n,Ag[m],Om,Dm,p);for(let m=0;m<Pg.length;m++)jg(n,Pg[m],Nm,Sm,h);ym(Om,{tld:!0,ascii:!0},t),ym(Nm,{utld:!0,alpha:!0},t),jg(n,"file",Am,Dm,p),jg(n,"mailto",Am,Dm,p),jg(n,"http",Pm,Dm,p),jg(n,"https",Pm,Dm,p),jg(n,"ftp",Pm,Dm,p),jg(n,"ftps",Pm,Dm,p),ym(Am,{scheme:!0,ascii:!0},t),ym(Pm,{slashscheme:!0,ascii:!0},t),e=e.sort(((e,t)=>e[0]>t[0]?1:-1));for(let m=0;m<e.length;m++){const t=e[m][0],r=e[m][1]?{[pm]:!0}:{[hm]:!0};t.indexOf("-")>=0?r[dm]=!0:Eg.test(t)?Og.test(t)?r[um]=!0:r[sm]=!0:r[am]=!0,xm(n,t,t,r)}return xm(n,"localhost",Mm,{ascii:!0}),n.jd=new vm(Dg),{start:n,tokens:im({groups:t},Sg)}}(Kg.customSchemes);for(let e=0;e<Kg.tokenQueue.length;e++)Kg.tokenQueue[e][1]({scanner:Kg.scanner});Kg.parser=function(e){let{groups:t}=e;const n=t.domain.concat([Jm,Xm,eg,tg,ng,rg,ag,lg,cg,_m,dg,fg,pg,hg,bg,Dg,wg,xg]),r=[og,ig,sg,ug,dg,mg,gg,vg,Ym,Hm,Rm,Fm,Lm,Im,zm,Bm,Wm,Vm,Um,$m,qm,Km,Qm,Gm],o=[Jm,Zm,Xm,tg,ng,rg,ag,lg,cg,Rm,Fm,dg,fg,pg,hg,mg,bg,Dg,wg,xg],i=Vg(),a=km(i,wg);bm(a,o,a),bm(a,t.domain,a);const s=Vg(),l=Vg(),u=Vg();bm(i,t.domain,s),bm(i,t.scheme,l),bm(i,t.slashscheme,u),bm(s,o,a),bm(s,t.domain,s);const c=km(s,eg);km(a,eg,c),km(l,eg,c),km(u,eg,c);const d=km(a,sg);bm(d,o,a),bm(d,t.domain,a);const f=Vg();bm(c,t.domain,f),bm(f,t.domain,f);const p=km(f,sg);bm(p,t.domain,f);const h=Vg(Bg);bm(p,t.tld,h),bm(p,t.utld,h),km(c,Mm,h);const m=km(f,cg);km(m,cg,m),bm(m,t.domain,f),bm(h,t.domain,f),km(h,sg,p),km(h,cg,m);const g=km(h,og);bm(g,t.numeric,Bg);const y=km(s,cg),v=km(s,sg);km(y,cg,y),bm(y,t.domain,s),bm(v,o,a),bm(v,t.domain,s);const b=Vg(Wg);bm(v,t.tld,b),bm(v,t.utld,b),bm(b,t.domain,s),bm(b,o,a),km(b,sg,v),km(b,cg,y),km(b,eg,c);const w=km(b,og),x=Vg(Wg);bm(w,t.numeric,x);const k=Vg(Wg),D=Vg();bm(k,n,k),bm(k,r,D),bm(D,n,k),bm(D,r,D),km(b,bg,k),km(x,bg,k);const S=km(l,og),E=km(u,og),C=km(E,bg),M=km(C,bg);bm(l,t.domain,s),km(l,sg,v),km(l,cg,y),bm(u,t.domain,s),km(u,sg,v),km(u,cg,y),bm(S,t.domain,k),km(S,bg,k),km(S,mg,k),bm(M,t.domain,k),bm(M,n,k),km(M,bg,k);const O=[[Rm,Fm],[Im,Lm],[zm,Bm],[Ym,Hm],[Wm,Vm],[Um,$m],[qm,Km],[Qm,Gm]];for(let N=0;N<O.length;N++){const[e,t]=O[N],o=km(k,e);km(D,e,o),km(o,t,k);const i=Vg(Wg);bm(o,n,i);const a=Vg();bm(o,r),bm(i,n,i),bm(i,r,a),bm(a,n,i),bm(a,r,a),km(i,t,k),km(a,t,k)}return km(i,Mm,b),km(i,Tm,Hg),{start:i,tokens:Sg}}(Kg.scanner.tokens);for(let e=0;e<Kg.pluginQueue.length;e++)Kg.pluginQueue[e][1]({scanner:Kg.scanner,parser:Kg.parser});return Kg.initialized=!0,Kg}function Jg(e){return Kg.initialized||Gg(),function(e,t,n){let r=n.length,o=0,i=[],a=[];for(;o<r;){let s=e,l=null,u=null,c=0,d=null,f=-1;for(;o<r&&!(l=s.go(n[o].t));)a.push(n[o++]);for(;o<r&&(u=l||s.go(n[o].t));)l=null,s=u,s.accepts()?(f=0,d=s):f>=0&&f++,o++,c++;if(f<0)o-=c,o<r&&(a.push(n[o]),o++);else{a.length>0&&(i.push(Ug(Yg,t,a)),a=[]),o-=f,c-=f;const e=d.t,r=n.slice(o-c,o);i.push(Ug(e,t,r))}}return a.length>0&&i.push(Ug(Yg,t,a)),i}(Kg.parser.start,e,_g(Kg.scanner.start,e))}function Zg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"===typeof t){if(n)throw Error("linkifyjs: Invalid link type ".concat(t,"; must be a string"));n=t,t=null}const r=new Fg(n),o=Jg(e),i=[];for(let a=0;a<o.length;a++){const e=o[a];!e.isLink||t&&e.t!==t||!r.check(e)||i.push(e.toFormattedObject(r))}return i}function Xg(e){return new Hs({key:new Us("autolink"),appendTransaction:(t,n,r)=>{const o=t.some((e=>e.docChanged))&&!n.doc.eq(r.doc),i=t.some((e=>e.getMeta("preventAutolink")));if(!o||i)return;const{tr:a}=r,s=function(e,t){const n=new xs(e);return t.forEach((e=>{e.steps.forEach((e=>{n.step(e)}))})),n}(n.doc,[...t]),l=function(e){const{mapping:t,steps:n}=e,r=[];return t.maps.forEach(((e,o)=>{const i=[];if(e.ranges.length)e.forEach(((e,t)=>{i.push({from:e,to:t})}));else{const{from:e,to:t}=n[o];if(void 0===e||void 0===t)return;i.push({from:e,to:t})}i.forEach((e=>{let{from:n,to:i}=e;const a=t.slice(o).map(n,-1),s=t.slice(o).map(i),l=t.invert().map(a,-1),u=t.invert().map(s);r.push({oldRange:{from:l,to:u},newRange:{from:a,to:s}})}))})),qf(r)}(s);return l.forEach((t=>{let{newRange:n}=t;const o=function(e,t,n){const r=[];return e.nodesBetween(t.from,t.to,((e,t)=>{n(e)&&r.push({node:e,pos:t})})),r}(r.doc,n,(e=>e.isTextblock));let i,s;if(o.length>1?(i=o[0],s=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0," ")):o.length&&r.doc.textBetween(n.from,n.to," "," ").endsWith(" ")&&(i=o[0],s=r.doc.textBetween(i.pos,n.to,void 0," ")),i&&s){const t=s.split(" ").filter((e=>""!==e));if(t.length<=0)return!1;const n=t[t.length-1],o=i.pos+s.lastIndexOf(n);if(!n)return!1;const u=Jg(n).map((t=>t.toObject(e.defaultProtocol)));if(!(1===(l=u).length?l[0].isLink:3===l.length&&l[1].isLink&&["()","[]"].includes(l[0].value+l[2].value)))return!1;u.filter((e=>e.isLink)).map((e=>(0,Ze.A)((0,Ze.A)({},e),{},{from:o+e.start+1,to:o+e.end+1}))).filter((e=>!r.schema.marks.code||!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code))).filter((t=>e.validate(t.value))).filter((t=>e.shouldAutoLink(t.value))).forEach((t=>{Kf(t.from,t.to,r.doc).some((t=>t.mark.type===e.type))||a.addMark(t.from,t.to,e.type.create({href:t.href}))}))}var l})),a.steps.length?a:void 0}})}Jg.scan=_g;const ey=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function ty(e,t){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach((e=>{const t="string"===typeof e?e:e.scheme;t&&n.push(t)})),!e||e.replace(ey,"").match(new RegExp("^(?:(?:".concat(n.join("|"),"):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))"),"i"))}const ny=yf.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach((e=>{"string"!==typeof e?Qg(e.scheme,e.optionalSlashes):Qg(e)}))},onDestroy(){vm.groups={},Kg.scanner=null,Kg.parser=null,Kg.tokenQueue=[],Kg.pluginQueue=[],Kg.customSchemes=[],Kg.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!ty(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!(!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!ty(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&null}}]},renderHTML(e){let{HTMLAttributes:t}=e;return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!ty(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",ef(this.options.HTMLAttributes,t),0]:["a",ef(this.options.HTMLAttributes,(0,Ze.A)((0,Ze.A)({},t),{},{href:""})),0]},addCommands(){return{setLink:e=>t=>{let{chain:n}=t;const{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!ty(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&n().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>t=>{let{chain:n}=t;const{href:r}=e;return!!this.options.isAllowedUri(r,{defaultValidate:e=>!!ty(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&n().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>e=>{let{chain:t}=e;return t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}},addPasteRules(){return[yp({find:e=>{const t=[];if(e){const{protocols:n,defaultProtocol:r}=this.options,o=Zg(e).filter((e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!ty(e,n),protocols:n,defaultProtocol:r})));o.length&&o.forEach((e=>t.push({text:e.value,data:{href:e.href},index:e.start})))}return t},type:this.type,getAttributes:e=>{var t;return{href:null===(t=e.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(Xg({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!ty(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),!0===this.options.openOnClick&&e.push(function(e){return new Hs({key:new Us("handleClickLink"),props:{handleClick:(t,n,r)=>{var o,i;if(0!==r.button)return!1;if(!t.editable)return!1;let a=r.target;const s=[];for(;"DIV"!==a.nodeName;)s.push(a),a=a.parentNode;if(!s.find((e=>"A"===e.nodeName)))return!1;const l=$f(t.state,e.type.name),u=r.target,c=null!==(o=null===u||void 0===u?void 0:u.href)&&void 0!==o?o:l.href,d=null!==(i=null===u||void 0===u?void 0:u.target)&&void 0!==i?i:l.target;return!(!u||!c)&&(window.open(c,d),!0)}}})}({type:this.type})),this.options.linkOnPaste&&e.push(function(e){return new Hs({key:new Us("handlePasteLink"),props:{handlePaste:(t,n,r)=>{const{state:o}=t,{selection:i}=o,{empty:a}=i;if(a)return!1;let s="";r.content.forEach((e=>{s+=e.textContent}));const l=Zg(s,{defaultProtocol:e.defaultProtocol}).find((e=>e.isLink&&e.value===s));return!(!s||!l)&&(e.editor.commands.setMark(e.type,{href:l.href}),!0)}}})}({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),ry=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,oy=gp.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML(e){let{HTMLAttributes:t}=e;return["img",ef(this.options.HTMLAttributes,t)]},addCommands(){return{setImage:e=>t=>{let{commands:n}=t;return n.insertContent({type:this.name,attrs:e})}}},addInputRules(){return[pp({find:ry,type:this.type,getAttributes:e=>{const[,,t,n,r]=e;return{src:n,alt:t,title:r}}})]}}),iy=kf.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:e=>{const t=e.style.textAlign||this.options.defaultAlignment;return this.options.alignments.includes(t)?t:this.options.defaultAlignment},renderHTML:e=>e.textAlign===this.options.defaultAlignment?{}:{style:"text-align: ".concat(e.textAlign)}}}}]},addCommands(){return{setTextAlign:e=>t=>{let{commands:n}=t;return!!this.options.alignments.includes(e)&&this.options.types.map((t=>n.updateAttributes(t,{textAlign:e}))).every((e=>e))},unsetTextAlign:()=>e=>{let{commands:t}=e;return this.options.types.map((e=>t.resetAttributes(e,"textAlign"))).every((e=>e))}}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}});function ay(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sy(Object(n),!0).forEach((function(t){ay(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const uy=()=>{};let cy={},dy={},fy=null,py={mark:uy,measure:uy};try{"undefined"!==typeof window&&(cy=window),"undefined"!==typeof document&&(dy=document),"undefined"!==typeof MutationObserver&&(fy=MutationObserver),"undefined"!==typeof performance&&(py=performance)}catch(ak){}const{userAgent:hy=""}=cy.navigator||{},my=cy,gy=dy,yy=fy,vy=py,by=(my.document,!!gy.documentElement&&!!gy.head&&"function"===typeof gy.addEventListener&&"function"===typeof gy.createElement),wy=~hy.indexOf("MSIE")||~hy.indexOf("Trident/");var xy={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},ky=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Dy="classic",Sy="duotone",Ey=[Dy,Sy,"sharp","sharp-duotone"],Cy=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),My=["fak","fa-kit","fakd","fa-kit-duotone"],Oy={fak:"kit","fa-kit":"kit"},Ny={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},Ay=["fak","fakd"],Py={kit:"fak"},_y={"kit-duotone":"fakd"},jy={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Ty=["fak","fa-kit","fakd","fa-kit-duotone"],Ry={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},Fy=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Iy=[1,2,3,4,5,6,7,8,9,10],Ly=Iy.concat([11,12,13,14,15,16,17,18,19,20]),zy=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",jy.GROUP,jy.SWAP_OPACITY,jy.PRIMARY,jy.SECONDARY].concat(Iy.map((e=>"".concat(e,"x")))).concat(Ly.map((e=>"w-".concat(e))));const By="___FONT_AWESOME___",Yy=16,Hy="svg-inline--fa",Wy="data-fa-i2svg",Vy="data-fa-pseudo-element",Uy="data-prefix",$y="data-icon",qy="fontawesome-i2svg",Ky=["HTML","HEAD","STYLE","SCRIPT"],Qy=(()=>{try{return!0}catch(e){return!1}})();function Gy(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Dy]})}const Jy=ly({},xy);Jy[Dy]=ly(ly(ly(ly({},{"fa-duotone":"duotone"}),xy[Dy]),Oy),Ny);const Zy=Gy(Jy),Xy=ly({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Xy[Dy]=ly(ly(ly(ly({},{duotone:"fad"}),Xy[Dy]),Py),_y);const ev=Gy(Xy),tv=ly({},Ry);tv[Dy]=ly(ly({},tv[Dy]),{fak:"fa-kit"});const nv=Gy(tv),rv=ly({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});rv[Dy]=ly(ly({},rv[Dy]),{"fa-kit":"fak"});Gy(rv);const ov=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,iv="fa-layers-text",av=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,sv=(Gy(ly({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),lv={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},uv=["kit",...zy],cv=my.FontAwesomeConfig||{};if(gy&&"function"===typeof gy.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=gy.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));void 0!==r&&null!==r&&(cv[n]=r)}))}const dv={styleDefault:"solid",familyDefault:Dy,cssPrefix:"fa",replacementClass:Hy,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};cv.familyPrefix&&(cv.cssPrefix=cv.familyPrefix);const fv=ly(ly({},dv),cv);fv.autoReplaceSvg||(fv.observeMutations=!1);const pv={};Object.keys(dv).forEach((e=>{Object.defineProperty(pv,e,{enumerable:!0,set:function(t){fv[e]=t,hv.forEach((e=>e(pv)))},get:function(){return fv[e]}})})),Object.defineProperty(pv,"familyPrefix",{enumerable:!0,set:function(e){fv.cssPrefix=e,hv.forEach((e=>e(pv)))},get:function(){return fv.cssPrefix}}),my.FontAwesomeConfig=pv;const hv=[];const mv=Yy,gv={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function yv(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function vv(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function bv(e){return e.classList?vv(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function wv(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function xv(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function kv(e){return e.size!==gv.size||e.x!==gv.x||e.y!==gv.y||e.rotate!==gv.rotate||e.flipX||e.flipY}function Dv(){const e="fa",t=Hy,n=pv.cssPrefix,r=pv.replacementClass;let o=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    animation-delay: -1ms;\n    animation-duration: 1ms;\n    animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    transform: scale(1);\n  }\n  45% {\n    transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(-15deg);\n  }\n  4% {\n    transform: rotate(15deg);\n  }\n  8%, 24% {\n    transform: rotate(-18deg);\n  }\n  12%, 28% {\n    transform: rotate(18deg);\n  }\n  16% {\n    transform: rotate(-22deg);\n  }\n  20% {\n    transform: rotate(22deg);\n  }\n  32% {\n    transform: rotate(-12deg);\n  }\n  36% {\n    transform: rotate(12deg);\n  }\n  40%, 100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}';if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let Sv=!1;function Ev(){pv.autoAddCss&&!Sv&&(!function(e){if(!e||!by)return;const t=gy.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=gy.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const e=n[o],t=(e.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(t)>-1&&(r=e)}gy.head.insertBefore(t,r)}(Dv()),Sv=!0)}var Cv={mixout:()=>({dom:{css:Dv,insertCss:Ev}}),hooks:()=>({beforeDOMElementCreation(){Ev()},beforeI2svg(){Ev()}})};const Mv=my||{};Mv[By]||(Mv[By]={}),Mv[By].styles||(Mv[By].styles={}),Mv[By].hooks||(Mv[By].hooks={}),Mv[By].shims||(Mv[By].shims=[]);var Ov=Mv[By];const Nv=[],Av=function(){gy.removeEventListener("DOMContentLoaded",Av),Pv=1,Nv.map((e=>e()))};let Pv=!1;function _v(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"===typeof e?wv(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(wv(e[n]),'" ')),"").trim()}(n),">").concat(r.map(_v).join(""),"</").concat(t,">")}function jv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}by&&(Pv=(gy.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(gy.readyState),Pv||gy.addEventListener("DOMContentLoaded",Av));var Tv=function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,u=void 0!==r?function(e,t){return function(n,r,o,i){return e.call(t,n,r,o,i)}}(t,r):t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<l;o++)a=u(a,e[i=s[o]],i,e);return a};function Rv(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function Fv(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function Iv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=Fv(t);"function"!==typeof Ov.hooks.addPack||r?Ov.styles[e]=ly(ly({},Ov.styles[e]||{}),o):Ov.hooks.addPack(e,Fv(t)),"fas"===e&&Iv("fa",t)}const{styles:Lv,shims:zv}=Ov,Bv=Object.keys(nv),Yv=Bv.reduce(((e,t)=>(e[t]=Object.keys(nv[t]),e)),{});let Hv=null,Wv={},Vv={},Uv={},$v={},qv={};function Kv(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||(i=o,~uv.indexOf(i))?null:o;var i}const Qv=()=>{const e=e=>Tv(Lv,((t,n,r)=>(t[r]=Tv(n,e,{}),t)),{});Wv=e(((e,t,n)=>{if(t[3]&&(e[t[3]]=n),t[2]){t[2].filter((e=>"number"===typeof e)).forEach((t=>{e[t.toString(16)]=n}))}return e})),Vv=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"===typeof e)).forEach((t=>{e[t]=n}))}return e})),qv=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in Lv||pv.autoFetchSvg,n=Tv(zv,((e,n)=>{const r=n[0];let o=n[1];const i=n[2];return"far"!==o||t||(o="fas"),"string"===typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"===typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});Uv=n.names,$v=n.unicodes,Hv=tb(pv.styleDefault,{family:pv.familyDefault})};var Gv;function Jv(e,t){return(Wv[e]||{})[t]}function Zv(e,t){return(qv[e]||{})[t]}function Xv(e){return Uv[e]||{prefix:null,iconName:null}}function eb(){return Hv}Gv=e=>{Hv=tb(e.styleDefault,{family:pv.familyDefault})},hv.push(Gv),Qv();function tb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Dy}=t,r=Zy[n][e];if(n===Sy&&!e)return"fad";const o=ev[n][e]||ev[n][r],i=e in Ov.styles?e:null;return o||i||null}function nb(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function rb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=Fy.concat(Ty),i=nb(e.filter((e=>o.includes(e)))),a=nb(e.filter((e=>!Fy.includes(e)))),s=i.filter((e=>(r=e,!ky.includes(e)))),[l=null]=s,u=function(e){let t=Dy;const n=Bv.reduce(((e,t)=>(e[t]="".concat(pv.cssPrefix,"-").concat(t),e)),{});return Ey.forEach((r=>{(e.includes(n[r])||e.some((e=>Yv[r].includes(e))))&&(t=r)})),t}(i),c=ly(ly({},function(e){let t=[],n=null;return e.forEach((e=>{const r=Kv(pv.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(a)),{},{prefix:tb(l,{family:u})});return ly(ly(ly({},c),function(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:a={}}=e,s=n===Sy,l=t.includes("fa-duotone")||t.includes("fad"),u="duotone"===a.familyDefault,c="fad"===r.prefix||"fa-duotone"===r.prefix;!s&&(l||u||c)&&(r.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab");if(!r.prefix&&ob.includes(n)){if(Object.keys(i).find((e=>ib.includes(e)))||a.autoFetchSvg){const e=Cy.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Zv(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==o||(r.prefix=eb()||"fas");return r}({values:e,family:u,styles:Lv,config:pv,canonical:c,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i="fa"===t?Xv(o):{},a=Zv(r,o);o=i.iconName||a||o,r=i.prefix||r,"far"!==r||Lv.far||!Lv.fas||pv.autoFetchSvg||(r="fas");return{prefix:r,iconName:o}}(n,r,c))}const ob=Ey.filter((e=>e!==Dy||e!==Sy)),ib=Object.keys(Ry).filter((e=>e!==Dy)).map((e=>Object.keys(Ry[e]))).flat();let ab=[],sb={};const lb={},ub=Object.keys(lb);function cb(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(sb[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function db(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(sb[e]||[]).forEach((e=>{e.apply(null,n)}))}function fb(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return lb[e]?lb[e].apply(null,t):void 0}function pb(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||eb();if(t)return t=Zv(n,t)||t,jv(hb.definitions,n,t)||jv(Ov.styles,n,t)}const hb=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]=ly(ly({},this.definitions[e]||{}),r[e]),Iv(e,r[e]);const t=nv[Dy][e];t&&Iv(t,r[e]),Qv()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:o,icon:i}=n[t],a=i[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"===typeof t&&(e[r][t]=i)})),e[r][o]=i})),e}},mb={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return by?(db("beforeI2svg",e),fb("pseudoElements2svg",e),fb("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===pv.autoReplaceSvg&&(pv.autoReplaceSvg=!0),pv.observeMutations=!0,n=()=>{vb({autoReplaceSvgRoot:t}),db("watch",e)},by&&(Pv?setTimeout(n,0):Nv.push(n))}},gb={icon:e=>{if(null===e)return null;if("object"===typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Zv(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=tb(e[0]);return{prefix:n,iconName:Zv(n,t)||t}}if("string"===typeof e&&(e.indexOf("".concat(pv.cssPrefix,"-"))>-1||e.match(ov))){const t=rb(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||eb(),iconName:Zv(t.prefix,t.iconName)||t.iconName}}if("string"===typeof e){const t=eb();return{prefix:t,iconName:Zv(t,e)||e}}}},yb={noAuto:()=>{pv.autoReplaceSvg=!1,pv.observeMutations=!1,db("noAuto")},config:pv,dom:mb,parse:gb,library:hb,findIconDefinition:pb,toHtml:_v},vb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=gy}=e;(Object.keys(Ov.styles).length>0||pv.autoFetchSvg)&&by&&pv.autoReplaceSvg&&yb.dom.i2svg({node:t})};function bb(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>_v(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!by)return;const t=gy.createElement("div");return t.innerHTML=e.html,t.children}}),e}function wb(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h=Ay.includes(r),m=[pv.replacementClass,o?"".concat(pv.cssPrefix,"-").concat(o):""].filter((e=>-1===c.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(c.classes).join(" ");let g={children:[],attributes:ly(ly({},c.attributes),{},{"data-prefix":r,"data-icon":o,class:m,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)})};const y=h&&!~c.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(g.attributes[Wy]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(u||yv())},children:[s]}),delete g.attributes.title);const v=ly(ly({},g),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:ly(ly({},y),c.styles)}),{children:b,attributes:w}=n.found&&t.found?fb("generateAbstractMask",v)||{children:[],attributes:{}}:fb("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat(pv.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ly(ly({},o),{},{id:a}),children:r}]}]}(v):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(kv(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=xv(ly(ly({},i),{},{"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(v)}function xb(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l=ly(ly(ly({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[Wy]="");const u=ly({},a.styles);kv(o)&&(u.transform=function(e){let{transform:t,width:n=Yy,height:r=Yy,startCentered:o=!1}=e,i="";return i+=o&&wy?"translate(".concat(t.x/mv-n/2,"em, ").concat(t.y/mv-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/mv,"em), calc(-50% + ").concat(t.y/mv,"em)) "):"translate(".concat(t.x/mv,"em, ").concat(t.y/mv,"em) "),i+="scale(".concat(t.size/mv*(t.flipX?-1:1),", ").concat(t.size/mv*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:o,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const c=xv(u);c.length>0&&(l.style=c);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:kb}=Ov;function Db(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return o=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(pv.cssPrefix,"-").concat(lv.GROUP)},children:[{tag:"path",attributes:{class:"".concat(pv.cssPrefix,"-").concat(lv.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(pv.cssPrefix,"-").concat(lv.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const Sb={found:!1,width:512,height:512};function Eb(e,t){let n=t;return"fa"===t&&null!==pv.styleDefault&&(t=eb()),new Promise(((r,o)=>{if("fa"===n){const n=Xv(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&kb[t]&&kb[t][e]){return r(Db(kb[t][e]))}!function(e,t){Qy||pv.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(ly(ly({},Sb),{},{icon:pv.showMissingIcons&&e&&fb("missingIconAbstract")||{}}))}))}const Cb=()=>{},Mb=pv.measurePerformance&&vy&&vy.mark&&vy.measure?vy:{mark:Cb,measure:Cb},Ob='FA "6.7.2"',Nb=e=>{Mb.mark("".concat(Ob," ").concat(e," ends")),Mb.measure("".concat(Ob," ").concat(e),"".concat(Ob," ").concat(e," begins"),"".concat(Ob," ").concat(e," ends"))};var Ab=e=>(Mb.mark("".concat(Ob," ").concat(e," begins")),()=>Nb(e));const Pb=()=>{};function _b(e){return"string"===typeof(e.getAttribute?e.getAttribute(Wy):null)}function jb(e){return gy.createElementNS("http://www.w3.org/2000/svg",e)}function Tb(e){return gy.createElement(e)}function Rb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?jb:Tb)}=t;if("string"===typeof e)return gy.createTextNode(e);const r=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])}));return(e.children||[]).forEach((function(e){r.appendChild(Rb(e,{ceFn:n}))})),r}const Fb={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Rb(e),t)})),null===t.getAttribute(Wy)&&pv.keepOriginalSource){let e=gy.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~bv(t).indexOf(pv.replacementClass))return Fb.replace(e);const r=new RegExp("".concat(pv.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===pv.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const o=n.map((e=>_v(e))).join("\n");t.setAttribute(Wy,""),t.innerHTML=o}};function Ib(e){e()}function Lb(e,t){const n="function"===typeof t?t:Pb;if(0===e.length)n();else{let t=Ib;"async"===pv.mutateApproach&&(t=my.requestAnimationFrame||Ib),t((()=>{const t=!0===pv.autoReplaceSvg?Fb.replace:Fb[pv.autoReplaceSvg]||Fb.replace,r=Ab("mutate");e.map(t),r(),n()}))}}let zb=!1;function Bb(){zb=!0}function Yb(){zb=!1}let Hb=null;function Wb(e){if(!yy)return;if(!pv.observeMutations)return;const{treeCallback:t=Pb,nodeCallback:n=Pb,pseudoElementsCallback:r=Pb,observeMutationsRoot:o=gy}=e;Hb=new yy((e=>{if(zb)return;const o=eb();vv(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!_b(e.addedNodes[0])&&(pv.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&pv.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&_b(e.target)&&~sv.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Uy):null,n=e.getAttribute?e.getAttribute($y):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=rb(bv(e.target));e.target.setAttribute(Uy,t||o),n&&e.target.setAttribute($y,n)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(pv.replacementClass)&&n(e.target);var i}))})),by&&Hb.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Vb(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=rb(bv(e));return o.prefix||(o.prefix=eb()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=function(e,t){return(Vv[e]||{})[t]}(o.prefix,e.innerText)||Jv(o.prefix,Rv(e.innerText))),!o.iconName&&pv.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function Ub(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=Vb(e),i=function(e){const t=vv(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return pv.autoA11y&&(n?t["aria-labelledby"]="".concat(pv.replacementClass,"-title-").concat(r||yv()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=cb("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return ly({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:gv,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:$b}=Ov;function qb(e){const t="nest"===pv.autoReplaceSvg?Ub(e,{styleParser:!1}):Ub(e);return~t.extra.classes.indexOf(iv)?fb("generateLayersText",e,t):fb("generateSvgReplacementMutation",e,t)}function Kb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!by)return Promise.resolve();const n=gy.documentElement.classList,r=e=>n.add("".concat(qy,"-").concat(e)),o=e=>n.remove("".concat(qy,"-").concat(e)),i=pv.autoFetchSvg?[...My,...Fy]:ky.concat(Object.keys($b));i.includes("fa")||i.push("fa");const a=[".".concat(iv,":not([").concat(Wy,"])")].concat(i.map((e=>".".concat(e,":not([").concat(Wy,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=vv(e.querySelectorAll(a))}catch(c){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=Ab("onTree"),u=s.reduce(((e,t)=>{try{const n=qb(t);n&&e.push(n)}catch(c){Qy||"MissingIcon"===c.name&&console.error(c)}return e}),[]);return new Promise(((e,n)=>{Promise.all(u).then((n=>{Lb(n,(()=>{r("active"),r("complete"),o("pending"),"function"===typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Qb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;qb(e).then((e=>{e&&Lb([e],t)}))}const Gb=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=gv,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return bb(ly({type:"icon"},e),(()=>(db("beforeDOMElementCreation",{iconDefinition:e,params:t}),pv.autoA11y&&(a?u["aria-labelledby"]="".concat(pv.replacementClass,"-title-").concat(s||yv()):(u["aria-hidden"]="true",u.focusable="false")),wb({icons:{main:Db(p),mask:o?Db(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:ly(ly({},gv),n),symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:u,styles:c,classes:l}}))))};var Jb={mixout(){return{icon:(e=Gb,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:pb(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:pb(o||{})),e(r,ly(ly({},n),{},{mask:o}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Kb,e.nodeCallback=Qb,e)}),provides(e){e.i2svg=function(e){const{node:t=gy,callback:n=()=>{}}=e;return Kb(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:o,prefix:i,transform:a,symbol:s,mask:l,maskId:u,extra:c}=t;return new Promise(((t,d)=>{Promise.all([Eb(n,i),l.iconName?Eb(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,wb({icons:{main:d,mask:f},prefix:i,iconName:n,transform:a,symbol:s,maskId:u,title:r,titleId:o,extra:c,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:o,styles:i}=e;const a=xv(i);let s;return a.length>0&&(n.style=a),kv(o)&&(s=fb("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Zb={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return bb({type:"layer"},(()=>{db("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(pv.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Xb={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return bb({type:"counter",content:e},(()=>(db("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o=ly(ly(ly({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=xv(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(pv.cssPrefix,"-layers-counter"),...r]}}))))}})},ew={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=gv,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return bb({type:"text",content:e},(()=>(db("beforeDOMElementCreation",{content:e,params:t}),xb({content:e,transform:ly(ly({},gv),n),title:r,extra:{attributes:i,styles:a,classes:["".concat(pv.cssPrefix,"-layers-text"),...o]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:o}=t;let i=null,a=null;if(wy){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return pv.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,xb({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const tw=new RegExp('"',"ug"),nw=[1105920,1112319],rw=ly(ly(ly(ly({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),ow=Object.keys(rw).reduce(((e,t)=>(e[t.toLowerCase()]=rw[t],e)),{}),iw=Object.keys(ow).reduce(((e,t)=>{const n=ow[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function aw(e,t){const n="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((r,o)=>{if(null!==e.getAttribute(n))return r();const i=vv(e.children).filter((e=>e.getAttribute(Vy)===t))[0],a=my.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(av),u=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(i&&!l)return e.removeChild(i),r();if(l&&"none"!==c&&""!==c){const c=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(ow[n]||{})[o]||iw[n]}(s,u);const{value:f,isSecondary:p}=function(e){const t=e.replace(tw,""),n=function(e,t){const n=e.length;let r,o=e.charCodeAt(t);return o>=55296&&o<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(o-55296)+r-56320+65536:o}(t,0),r=n>=nw[0]&&n<=nw[1],o=2===t.length&&t[0]===t[1];return{value:Rv(o?t[0]:t),isSecondary:r||o}}(c),h=l[0].startsWith("FontAwesome");let m=Jv(d,f),g=m;if(h){const e=function(e){const t=$v[e],n=Jv("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(m=e.iconName,d=e.prefix)}if(!m||p||i&&i.getAttribute(Uy)===d&&i.getAttribute($y)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:gv,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[Vy]=t,Eb(m,d).then((o=>{const i=wb(ly(ly({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:s,watchable:!0})),l=gy.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>_v(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function sw(e){return Promise.all([aw(e,"::before"),aw(e,"::after")])}function lw(e){return e.parentNode!==document.head&&!~Ky.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Vy)&&(!e.parentNode||"svg"!==e.parentNode.tagName)}function uw(e){if(by)return new Promise(((t,n)=>{const r=vv(e.querySelectorAll("*")).filter(lw).map(sw),o=Ab("searchPseudoElements");Bb(),Promise.all(r).then((()=>{o(),Yb(),t()})).catch((()=>{o(),Yb(),n()}))}))}var cw={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=uw,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=gy}=e;pv.searchPseudoElements&&uw(t)}}};let dw=!1;var fw={mixout:()=>({dom:{unwatch(){Bb(),dw=!0}}}),hooks:()=>({bootstrap(){Wb(cb("mutationObserverCallbacks",{}))},noAuto(){Hb&&Hb.disconnect()},watch(e){const{observeMutationsRoot:t}=e;dw?Yb():Wb(cb("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const pw=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var hw={mixout:()=>({parse:{transform:e=>pw(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=pw(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:o}=e;const i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:ly({},u.outer),children:[{tag:"g",attributes:ly({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:ly(ly({},t.icon.attributes),u.path)}]}]}}}};const mw={x:0,y:0,width:"100%",height:"100%"};function gw(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var yw={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?rb(n.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return r.prefix||(r.prefix=eb()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:o,maskId:i,transform:a}=e;const{width:s,icon:l}=r,{width:u,icon:c}=o,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:u,iconWidth:s}),f={tag:"rect",attributes:ly(ly({},mw),{},{fill:"white"})},p=l.children?{children:l.children.map(gw)}:{},h={tag:"g",attributes:ly({},d.inner),children:[gw(ly({tag:l.tag,attributes:ly(ly({},l.attributes),d.path)},p))]},m={tag:"g",attributes:ly({},d.outer),children:[h]},g="mask-".concat(i||yv()),y="clip-".concat(i||yv()),v={tag:"mask",attributes:ly(ly({},mw),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(w=c,"g"===w.tag?w.children:[w])},v]};var w;return t.push(b,{tag:"rect",attributes:ly({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},mw)}),{children:t,attributes:n}}}},vw={provides(e){let t=!1;my.matchMedia&&(t=my.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:ly(ly({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=ly(ly({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:ly(ly({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:ly(ly({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ly(ly({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:ly(ly({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ly(ly({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:ly(ly({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ly(ly({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:n}=t;ab=e,sb={},Object.keys(lb).forEach((e=>{-1===ub.indexOf(e)&&delete lb[e]})),ab.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"===typeof t[e]&&(n[e]=t[e]),"object"===typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{sb[e]||(sb[e]=[]),sb[e].push(t[e])}))}e.provides&&e.provides(lb)}))}([Cv,Jb,Zb,Xb,ew,cw,fw,hw,yw,vw,{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:yb});const bw=yb.parse,ww=yb.icon;var xw=n(5173),kw=n.n(xw);function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dw(Object(n),!0).forEach((function(t){Cw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ew(e){return Ew="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},Ew(e)}function Cw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ow(e){return function(e){if(Array.isArray(e))return Nw(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Nw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nw(e,t)}(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 Nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aw(e){return t=e,(t-=0)===t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Pw=["style"];var _w=!1;try{_w=!0}catch(ak){}function jw(e){return e&&"object"===Ew(e)&&e.prefix&&e.iconName&&e.icon?e:bw.icon?bw.icon(e):null===e?null:e&&"object"===Ew(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"===typeof e?{prefix:"fas",iconName:e}:void 0}function Tw(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Cw({},e,t):{}}var Rw={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Fw=r.forwardRef((function(e,t){var n=Sw(Sw({},Rw),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,u=n.maskId,c=jw(r),d=Tw("classes",[].concat(Ow(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,y=e.size,v=e.rotation,b=e.pull,w=(Cw(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),"undefined"!==typeof y&&null!==y),Cw(t,"fa-rotate-".concat(v),"undefined"!==typeof v&&null!==v&&0!==v),Cw(t,"fa-pull-".concat(b),"undefined"!==typeof b&&null!==b),Cw(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(n)),Ow((a||"").split(" ")))),f=Tw("transform","string"===typeof n.transform?bw.transform(n.transform):n.transform),p=Tw("mask",jw(o)),h=ww(c,Sw(Sw(Sw(Sw({},d),f),p),{},{symbol:i,title:s,titleId:l,maskId:u}));if(!h)return function(){var e;!_w&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var m=h.abstract,g={ref:t};return Object.keys(n).forEach((function(e){Rw.hasOwnProperty(e)||(g[e]=n[e])})),Iw(m[0],g)}));Fw.displayName="FontAwesomeIcon",Fw.propTypes={beat:kw().bool,border:kw().bool,beatFade:kw().bool,bounce:kw().bool,className:kw().string,fade:kw().bool,flash:kw().bool,mask:kw().oneOfType([kw().object,kw().array,kw().string]),maskId:kw().string,fixedWidth:kw().bool,inverse:kw().bool,flip:kw().oneOf([!0,!1,"horizontal","vertical","both"]),icon:kw().oneOfType([kw().object,kw().array,kw().string]),listItem:kw().bool,pull:kw().oneOf(["right","left"]),pulse:kw().bool,rotation:kw().oneOf([0,90,180,270]),shake:kw().bool,size:kw().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:kw().bool,spinPulse:kw().bool,spinReverse:kw().bool,symbol:kw().oneOfType([kw().bool,kw().string]),title:kw().string,titleId:kw().string,transform:kw().oneOfType([kw().string,kw().object]),swapOpacity:kw().bool};var Iw=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=function(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),o=Aw(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{})}(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Aw(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Mw(r,Pw);return i.attrs.style=Sw(Sw({},i.attrs.style),s),t.apply(void 0,[n.tag,Sw(Sw({},i.attrs),l)].concat(Ow(o)))}.bind(null,r.createElement);const Lw={prefix:"fas",iconName:"strikethrough",icon:[512,512,[],"f0cc","M161.3 144c3.2-17.2 14-30.1 33.7-38.6c21.1-9 51.8-12.3 88.6-6.5c11.9 1.9 48.8 9.1 60.1 12c17.1 4.5 34.6-5.6 39.2-22.7s-5.6-34.6-22.7-39.2c-14.3-3.8-53.6-11.4-66.6-13.4c-44.7-7-88.3-4.2-123.7 10.9c-36.5 15.6-64.4 44.8-71.8 87.3c-.1 .6-.2 1.1-.2 1.7c-2.8 23.9 .5 45.6 10.1 64.6c4.5 9 10.2 16.9 16.7 23.9L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l448 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-209.9 0-.4-.1-1.1-.3c-36-10.8-65.2-19.6-85.2-33.1c-9.3-6.3-15-12.6-18.2-19.1c-3.1-6.1-5.2-14.6-3.8-27.4zM348.9 337.2c2.7 6.5 4.4 15.8 1.9 30.1c-3 17.6-13.8 30.8-33.9 39.4c-21.1 9-51.7 12.3-88.5 6.5c-18-2.9-49.1-13.5-74.4-22.1c-5.6-1.9-11-3.7-15.9-5.4c-16.8-5.6-34.9 3.5-40.5 20.3s3.5 34.9 20.3 40.5c3.6 1.2 7.9 2.7 12.7 4.3c0 0 0 0 0 0s0 0 0 0c24.9 8.5 63.6 21.7 87.6 25.6c0 0 0 0 0 0l.2 0c44.7 7 88.3 4.2 123.7-10.9c36.5-15.6 64.4-44.8 71.8-87.3c3.6-21 2.7-40.4-3.1-58.1l-75.7 0c7 5.6 11.4 11.2 13.9 17.2z"]},zw={prefix:"fas",iconName:"heading",icon:[448,512,["header"],"f1dc","M0 64C0 46.3 14.3 32 32 32l48 0 48 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 112 224 0 0-112-16 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l48 0 48 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 144 0 176 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48 0-48 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-144-224 0 0 144 16 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-48 0-48 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-176L48 96 32 96C14.3 96 0 81.7 0 64z"]},Bw={prefix:"fas",iconName:"underline",icon:[448,512,[],"f0cd","M16 64c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 53 43 96 96 96s96-43 96-96l0-128-16 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-16 0 0 128c0 88.4-71.6 160-160 160s-160-71.6-160-160L64 96 48 96C30.3 96 16 81.7 16 64zM0 448c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32z"]},Yw={prefix:"fas",iconName:"bold",icon:[384,512,[],"f032","M0 64C0 46.3 14.3 32 32 32l48 0 16 0 128 0c70.7 0 128 57.3 128 128c0 31.3-11.3 60.1-30 82.3c37.1 22.4 62 63.1 62 109.7c0 70.7-57.3 128-128 128L96 480l-16 0-48 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l16 0 0-160L48 96 32 96C14.3 96 0 81.7 0 64zM224 224c35.3 0 64-28.7 64-64s-28.7-64-64-64L112 96l0 128 112 0zM112 288l0 128 144 0c35.3 0 64-28.7 64-64s-28.7-64-64-64l-32 0-112 0z"]},Hw={prefix:"fas",iconName:"italic",icon:[384,512,[],"f033","M128 64c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-58.7 0L160 416l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l58.7 0L224 96l-64 0c-17.7 0-32-14.3-32-32z"]},Ww={prefix:"fas",iconName:"list-ol",icon:[512,512,["list-1-2","list-numeric"],"f0cb","M24 56c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24l0 120 16 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l16 0 0-96-8 0C34.7 80 24 69.3 24 56zM86.7 341.2c-6.5-7.4-18.3-6.9-24 1.2L51.5 357.9c-7.7 10.8-22.7 13.3-33.5 5.6s-13.3-22.7-5.6-33.5l11.1-15.6c23.7-33.2 72.3-35.6 99.2-4.9c21.3 24.4 20.8 60.9-1.1 84.7L86.8 432l33.2 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-88 0c-9.5 0-18.2-5.6-22-14.4s-2.1-18.9 4.3-25.9l72-78c5.3-5.8 5.4-14.6 .3-20.5zM224 64l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 160l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Vw={prefix:"fas",iconName:"quote-right",icon:[448,512,[8221,"quote-right-alt"],"f10e","M448 296c0 66.3-53.7 120-120 120l-8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l8 0c30.9 0 56-25.1 56-56l0-8-64 0c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l64 0c35.3 0 64 28.7 64 64l0 32 0 32 0 72zm-256 0c0 66.3-53.7 120-120 120l-8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l8 0c30.9 0 56-25.1 56-56l0-8-64 0c-35.3 0-64-28.7-64-64l0-64c0-35.3 28.7-64 64-64l64 0c35.3 0 64 28.7 64 64l0 32 0 32 0 72z"]},Uw={prefix:"fas",iconName:"align-left",icon:[448,512,[],"f036","M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},$w={prefix:"fas",iconName:"align-center",icon:[448,512,[],"f037","M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z"]},qw={prefix:"fas",iconName:"eraser",icon:[576,512,[],"f12d","M290.7 57.4L57.4 290.7c-25 25-25 65.5 0 90.5l80 80c12 12 28.3 18.7 45.3 18.7L288 480l9.4 0L512 480c17.7 0 32-14.3 32-32s-14.3-32-32-32l-124.1 0L518.6 285.3c25-25 25-65.5 0-90.5L381.3 57.4c-25-25-65.5-25-90.5 0zM297.4 416l-9.4 0-105.4 0-80-80L227.3 211.3 364.7 348.7 297.4 416z"]},Kw={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},Qw={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]};const Gw=Jt((e=>({auth:e.auth,members:e.members})),{getMembers:Ko,sendEmail:e=>async t=>{console.log("data",e);await Co.post(No()+"/mail/sendone",e,{headers:{"Content-Type":"application/json"}});t({type:Ke,payload:null})},resetEmailCount:()=>async e=>{e({type:Qe,payload:null})}})((e=>{const{auth:t,members:n,getMembers:o,sendEmail:i,resetEmailCount:a}=e,[s,l]=(0,r.useState)("<p>Your content here...</p><p>&nbsp;</p>"),[u,c]=(0,r.useState)("PHCDC: --Subject--"),[d,f]=(0,r.useState)("all"),[p,h]=(0,r.useState)("composing"),[m,g]=(0,r.useState)(0),[y,v]=(0,r.useState)(""),[b,w]=(0,r.useState)(t.email),[x,k]=(0,r.useState)("No Reply||noreply@pennhillscdc.org"),[D,S]=(0,r.useState)([]),E=(0,r.useRef)(!1),C=(0,r.useRef)(!1),M=((0,r.useRef)(0),(new Date).getFullYear()),O=[...n.list],N=O.filter((e=>parseInt(e.paid_thru)<M&&parseInt(e.paid_thru)>1999||null===e.paid_thru)),A=O.filter((e=>parseInt(e.paid_thru)>=M)),P=O.filter((e=>1999===parseInt(e.paid_thru))),_=O.filter((e=>1===parseInt(e.admin))),j=O.filter((e=>e.email===b)),T={active:A.length,expired:N.length,all:O.length,recruits:P.length,admins:_.length,test:1},R={active:[...A],expired:[...N],all:[...O],recruits:[...P],admins:[..._],test:[...j]},F=()=>{f("all"),c("PHCDC: --Subject--"),h("composing"),v("")},I=async()=>{let e="",t=!0;switch(d){case"all":e="ALL SUBSCRIBED USERS";break;case"admins":e="SYSTEM ADMINS";break;case"active":e="ACTIVE MEMBERS ONLY";break;case"expired":e="EXPIRED MEMBERS ONLY";break;case"recruits":e="RECRUITING MEMBERS ONLY";break;case"test":e="TEST EMAIL"}const n=window.confirm("Are you sure you are ready to send this email to "+e+"? It will be sent immediately to your selected list...");""===s&&(v("Cannot send email, you didn't write a message"),h("error"),t=!1),"test"===d&&""===b&&(v("If sending a test email, you must specify an address to send your test email to."),h("error"),t=!1),n&&t&&await(async()=>{h("sending"),console.log("emailList",d),console.log("recips",R[d]),g(T[d]),R[d].map((e=>{const t=(0,Ze.A)((0,Ze.A)({},e),{},{from:x,testEmail:b,subject:u,body:s});i(t)})),h("success"),a()})()};(0,r.useCallback)((e=>new Promise(((t,n)=>{const r=new FormData;r.append("image",e),fetch("https://api.imgbb.com/1/upload?key=63d6e4967b43139d8dcf1dd03ad7b47a",{method:"POST",body:r}).then((e=>e.json())).then((e=>t(e.data.url))).catch((()=>n(new Error("Upload failed"))))}))),[]);(0,r.useEffect)((()=>{C.current||((async()=>{const e=await Co.get(No()+"/auth/admins");S(e.data.admins)})(),C.current=!0),E.current||n.list.length||((async()=>{await o()})(),E.current=!0)}),[C,E,n.list]);const L=Bp({extensions:[rm,om,ny.configure({openOnClick:!1}),oy,iy.configure({types:["heading","paragraph"]})],content:s,onUpdate:e=>{let{editor:t}=e;l(t.getHTML())}});if(!L)return null;const z=[{icon:Yw,action:()=>L.chain().focus().toggleBold().run(),isActive:L.isActive("bold")},{icon:Hw,action:()=>L.chain().focus().toggleItalic().run(),isActive:L.isActive("italic")},{icon:Bw,action:()=>L.chain().focus().toggleUnderline().run(),isActive:L.isActive("underline")},{icon:Lw,action:()=>L.chain().focus().toggleStrike().run(),isActive:L.isActive("strike")},{icon:zw,action:()=>L.chain().focus().toggleHeading({level:1}).run(),isActive:L.isActive("heading",{level:1})},{icon:Qw,action:()=>L.chain().focus().toggleBulletList().run(),isActive:L.isActive("bulletList")},{icon:Ww,action:()=>L.chain().focus().toggleOrderedList().run(),isActive:L.isActive("orderedList")},{icon:Kw,action:()=>{const e=prompt("Enter the link URL:");e&&L.chain().focus().extendMarkRange("link").setLink({href:e}).run()}},{icon:Vw,action:()=>L.chain().focus().toggleBlockquote().run(),isActive:L.isActive("blockquote")},{icon:Uw,action:()=>L.chain().focus().setTextAlign("left").run(),isActive:L.isActive({textAlign:"left"})},{icon:$w,action:()=>L.chain().focus().setTextAlign("center").run(),isActive:L.isActive({textAlign:"center"})},{icon:qw,action:()=>L.chain().focus().clearNodes().unsetAllMarks().run()}];return(0,Ho.jsxs)("div",{className:"dashboard",children:[(0,Ho.jsx)("h3",{className:"title",children:"Create New Email"}),(0,Ho.jsxs)("div",{className:"breadcrumb",children:[(0,Ho.jsx)(Ae,{to:"/",children:"Home"}),"\xa0\xa0/\xa0\xa0 ",(0,Ho.jsx)(Ae,{to:"/dashboard",children:"Members"}),"\xa0\xa0/\xa0\xa0 ",(0,Ho.jsx)(Ae,{to:"/email-campaigns",children:"Email Campaigns"}),"\xa0\xa0/\xa0\xa0 Create New Email"]}),(0,Ho.jsx)("div",{className:"container",children:(0,Ho.jsxs)("div",{className:"row",children:[(0,Ho.jsxs)("div",{className:"col-md-4",children:[(0,Ho.jsxs)("div",{style:{maxWidth:"600px",margin:"20px auto"},children:[(0,Ho.jsx)("label",{style:{color:"#222222"},children:"Send To:"}),(0,Ho.jsxs)("select",{className:"form-control",disabled:"composing"!==p,value:d,onChange:e=>f(e.target.value),children:[(0,Ho.jsx)("option",{value:"all",children:"All Subscribed"}),(0,Ho.jsx)("option",{value:"admins",children:"System Admins"}),(0,Ho.jsx)("option",{value:"active",children:"Active Members"}),(0,Ho.jsx)("option",{value:"expired",children:"Expired Members"}),(0,Ho.jsx)("option",{value:"recruits",children:"Recruits"}),(0,Ho.jsx)("option",{value:"test",children:"Test Email"})]})]}),"test"===d?(0,Ho.jsxs)("div",{style:{maxWidth:"600px",margin:"20px auto"},children:[(0,Ho.jsx)("label",{style:{color:"#222222"},children:"Send Test Email To:"}),(0,Ho.jsx)("select",{className:"form-control",disabled:"composing"!==p,value:b,onChange:e=>w(e.target.value),children:D.map((e=>(0,Ho.jsx)("option",{value:e.email,children:e.email})))})]}):(0,Ho.jsx)(Ho.Fragment,{}),(0,Ho.jsxs)("div",{style:{maxWidth:"600px",margin:"20px auto"},children:[(0,Ho.jsx)("label",{style:{color:"#222222"},children:"From / Reply To:"}),(0,Ho.jsxs)("select",{className:"form-control",disabled:"composing"!==p,value:x,onChange:e=>k(e.target.value),children:[(0,Ho.jsx)("option",{value:"No Reply||noreply@pennhillscdc.org",children:"No Reply"}),D.map((e=>(0,Ho.jsxs)("option",{value:e.fname+" "+e.lname+"||"+e.email,children:[e.lname,", ",e.fname]})))]})]}),(0,Ho.jsxs)("div",{style:{maxWidth:"600px",margin:"20px auto"},children:[(0,Ho.jsx)("label",{style:{color:"#222222"},children:"Email Subject:"}),(0,Ho.jsx)("input",{type:"text",className:"form-control",placeholder:"PHCDC: ",disabled:"composing"!==p,value:u,onChange:e=>c(e.target.value)})]}),(0,Ho.jsx)("div",{style:{width:"100%",marginTop:"100px",textAlign:"center"},children:"success"===p?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsxs)("div",{className:"alert alert-success",children:["All emails queued successfully!",(0,Ho.jsx)("br",{}),"You may exit the page."]}),(0,Ho.jsx)("button",{className:"btn btn-success",onClick:()=>F(),children:"\xa0\xa0\xa0\xa0 Reset the Form \xa0\xa0\xa0\xa0"})]}):"error"===p?(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)("div",{className:"alert alert-warning",children:y}),(0,Ho.jsx)("button",{className:"btn btn-success",onClick:()=>F(),children:"\xa0\xa0\xa0\xa0 Reset the Form \xa0\xa0\xa0\xa0"})]}):(0,Ho.jsxs)(Ho.Fragment,{children:[(0,Ho.jsx)("button",{className:"btn btn-success",style:{width:"100%",textAlign:"center"},onClick:()=>I(),disabled:"sending"===p,children:"sending"===p?"SENDING ...":"Send Email? -- "+(()=>{let e="";switch(d){case"all":e="ALL SUBSCRIBED USERS -- ("+T[d]+")";break;case"admins":e="SYSTEM ADMINS -- ("+T[d]+")";break;case"active":e="ACTIVE MEMBERS ONLY -- ("+T[d]+")";break;case"expired":e="EXPIRED MEMBERS ONLY -- ("+T[d]+")";break;case"recruits":e="RECRUITING MEMBERS ONLY -- ("+T[d]+")";break;case"test":e="TEST EMAIL -- ("+T[d]+")"}return e})()}),"sending"===p?(0,Ho.jsxs)("div",{className:"alert alert-success",style:{marginTop:"20px"},children:[(0,Ho.jsx)("b",{children:"EMAILS ARE BEING SENT!"}),(0,Ho.jsx)("br",{}),n.emailCount," of ",m," emails sent.",(0,Ho.jsx)("br",{}),"DO NOT leave or refresh this page until you receive confirmation that the emails have sent."]}):(0,Ho.jsx)(Ho.Fragment,{})]})})]}),(0,Ho.jsx)("div",{className:"col-md-8",children:(0,Ho.jsx)("div",{style:{width:"100%",borderStyle:"solid",borderWidth:"1px",borderColor:"#999999",backgroundColor:"#F0F0F0"},children:(0,Ho.jsxs)("div",{style:{backgroundColor:"#FFFFFF",maxWidth:"600px",margin:"0 auto",fontSize:"16px",lineHeight:"1.6em"},children:[(0,Ho.jsx)("div",{style:{backgroundColor:"#33612a",padding:"20px",borderBottom:"solid 4px #efa72d"},children:(0,Ho.jsx)("a",{href:"https://pennhillscdc.org",target:"_blank",children:(0,Ho.jsx)("img",{src:"https://pennhillscdc.org/e/email-header.png",style:{maxWidth:"200px",display:"block",margin:"auto"}})})}),(0,Ho.jsx)("p",{style:{padding:"20px 0 0 20px",fontSize:"24px",color:"#efa72d",fontWeight:"bold"},children:u}),(0,Ho.jsx)("p",{style:{padding:"20px 0 0 20px"},children:"Hi [NAME],"}),(0,Ho.jsx)("div",{style:{borderTopRightRadius:"6px",borderTopLeftRadius:"6px",marginLeft:"20px",marginRight:"20px",backgroundColor:"#EEEEEE"},children:z.map(((e,t)=>(0,Ho.jsx)("button",{onClick:e.action,style:{padding:"5px 10px",margin:"0 5px",backgroundColor:e.isActive?"#007bff":"#f0f0f0",color:e.isActive?"#fff":"#000",border:"none",borderRadius:"5px",cursor:"pointer"},children:(0,Ho.jsx)(Fw,{icon:e.icon})},t)))}),(0,Ho.jsx)("div",{style:{borderBottomLeftRadius:"5px",borderBottomRightRadius:"5px",borderWidth:"1px",borderTopWidth:0,borderColor:"#EEEEEE",borderStyle:"solid",padding:"10px",marginLeft:"20px",marginRight:"20px"},className:"tiptap-editor",children:(0,Ho.jsx)(Op,{editor:L})}),(0,Ho.jsxs)("p",{style:{padding:"20px"},children:["Have a great day!",(0,Ho.jsx)("br",{}),"Your friends at the Penn Hills CDC"]}),(0,Ho.jsx)("p",{children:(0,Ho.jsx)("a",{href:"https://pennhillspassport.com",children:(0,Ho.jsx)("img",{src:"https://pennhillscdc.org/e/email-ad.jpg",style:{maxWidth:"100%"}})})}),(0,Ho.jsxs)("div",{style:{backgroundColor:"#33612a",padding:"20px",borderTop:"solid 4px #efa72d"},children:[(0,Ho.jsx)("a",{href:"https://pennhillscdc.org",target:"_blank",children:(0,Ho.jsx)("img",{src:"https://pennhillscdc.org/e/email-footer.png",style:{maxWidth:"180px",display:"block",margin:"auto"}})}),(0,Ho.jsxs)("p",{style:{color:"#FFFFFF",marginTop:"12px",fontSize:"13px",textAlign:"center",lineHeight:"1.3em"},children:[(0,Ho.jsx)("b",{style:{color:"#efa72d"},children:"Penn Hills Community Development Corporation"}),(0,Ho.jsx)("br",{}),"PO Box 17730",(0,Ho.jsx)("br",{}),"Penn Hills, PA 15235",(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("u",{style:{color:"#FFFFFF"},children:"unsubscribe"})]})]})]})})})]})})]})})),Jw=Jt((e=>({payments:e.payments})),{getPayments:()=>async e=>{try{const t={headers:{"Content-Type":"application/json"}},n=await Co.get(No()+"/payments/log",t);n.data.payments&&n.data.payments.length&&e({type:$e,payload:n.data.payments})}catch(t){console.log("Error getting user list")}}})((e=>{const{payments:t,getPayments:n}=e;return(0,r.useEffect)((()=>{t.loaded||(async()=>{await n()})()}),[t]),(0,Ho.jsxs)("div",{className:"dashboard",children:[(0,Ho.jsx)("h3",{className:"title",children:"Payments Log"}),(0,Ho.jsxs)("div",{className:"breadcrumb",children:[(0,Ho.jsx)(Ae,{to:"/",children:"Home"})," \xa0\xa0/\xa0\xa0 ",(0,Ho.jsx)(Ae,{to:"/dashboard",children:"Members"})," \xa0\xa0/\xa0\xa0 Payment Log"]}),(0,Ho.jsx)("div",{className:"member-table",children:(0,Ho.jsxs)("table",{className:"table table-hover table-striped",children:[(0,Ho.jsx)("thead",{children:(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("th",{children:"Pay ID"}),(0,Ho.jsx)("th",{children:"Date"}),(0,Ho.jsx)("th",{children:"Members"}),(0,Ho.jsx)("th",{children:"Method"}),(0,Ho.jsx)("th",{children:"Type"}),(0,Ho.jsx)("th",{children:"Amount"}),(0,Ho.jsx)("th",{children:"Logged By"}),(0,Ho.jsx)("th",{children:"Notes"})]})}),(0,Ho.jsx)("tbody",{children:t.log.map((e=>(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:e.pay_id}),(0,Ho.jsx)("td",{children:Oo()(e.pay_date).format("MM/DD/YYYY")}),(0,Ho.jsx)("td",{children:(0,Ho.jsx)(Ae,{to:"/member/"+e.mid,children:e.members})}),(0,Ho.jsx)("td",{children:e.pay_method}),(0,Ho.jsx)("td",{children:e.pay_type}),(0,Ho.jsxs)("td",{children:["$",e.pay_amount]}),(0,Ho.jsx)("td",{children:e.log_lname}),(0,Ho.jsx)("td",{children:e.pay_details})]},"pay-"+e.pay_id)))})]})})]})})),Zw=Jt((e=>({})),{})((e=>{const{}=e,[t,n]=(0,r.useState)([]),[o,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{o||(async()=>{let e=await Co.get(No()+"/mail/campaigns");console.log("res",e),n(e.data.data),i(!0)})()}),[o]),(0,Ho.jsxs)("div",{className:"dashboard",children:[(0,Ho.jsx)("h3",{className:"title",children:"Email Campaigns"}),(0,Ho.jsxs)("div",{className:"breadcrumb",children:[(0,Ho.jsx)(Ae,{to:"/",children:"Home"})," \xa0\xa0/\xa0\xa0 ",(0,Ho.jsx)(Ae,{to:"/dashboard",children:"Members"})," \xa0\xa0/\xa0\xa0 Email Campaigns"]}),(0,Ho.jsx)("p",{children:(0,Ho.jsxs)(Ae,{to:"/email-create",className:"btn btn-success",children:[(0,Ho.jsx)("i",{className:"fas fa-plus-circle"}),"  \xa0 Create New Email Campaign"]})}),(0,Ho.jsx)("div",{children:(0,Ho.jsxs)("table",{className:"table table-striped",children:[(0,Ho.jsx)("thead",{children:(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("th",{children:"ID"}),(0,Ho.jsx)("th",{children:"Subject"}),(0,Ho.jsx)("th",{children:"To Group"}),(0,Ho.jsx)("th",{children:"Day"}),(0,Ho.jsx)("th",{children:"Date"}),(0,Ho.jsx)("th",{children:"Time"}),(0,Ho.jsx)("th",{children:"Emails Sent"}),(0,Ho.jsx)("th",{children:"Reads"}),(0,Ho.jsx)("th",{children:"Read %"}),(0,Ho.jsx)("th",{children:"Unsub'd"})]})}),(0,Ho.jsx)("tbody",{children:t.map((e=>(0,Ho.jsxs)("tr",{children:[(0,Ho.jsx)("td",{children:e.id}),(0,Ho.jsx)("td",{children:e.subject}),(0,Ho.jsx)("td",{children:jo(e.recipients)}),(0,Ho.jsx)("td",{children:e.day}),(0,Ho.jsx)("td",{children:e.date}),(0,Ho.jsx)("td",{children:e.time}),(0,Ho.jsx)("td",{style:{textAlign:"center"},children:e.recipient_count}),(0,Ho.jsx)("td",{style:{textAlign:"center"},children:e.read}),(0,Ho.jsxs)("td",{style:{textAlign:"center"},children:[Fo(parseInt(e.read)/parseInt(e.recipient_count)),"%"]}),(0,Ho.jsx)("td",{style:{textAlign:"center"},children:e.unsubscribed})]})))})]})})]})}));var Xw=function(){return Xw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xw.apply(this,arguments)};var ex,tx=function(e,t){(function(e){var t;e?function(e){if(e)for(;e.lastChild;)e.lastChild.remove()}("string"==typeof e?document.getElementById(e):e):(t=document.querySelector(".grecaptcha-badge"))&&t.parentNode&&document.body.removeChild(t.parentNode)})(t),window.___grecaptcha_cfg=void 0;var n=document.querySelector("#"+e);n&&n.remove(),function(){var e=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]');e&&e.remove()}()},nx=function(e){console.warn(e)};!function(e){e.SCRIPT_NOT_AVAILABLE="Recaptcha script is not available"}(ex||(ex={}));var rx=(0,r.createContext)({executeRecaptcha:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}});rx.Consumer;function ox(e){var t=e.reCaptchaKey,n=e.useEnterprise,o=void 0!==n&&n,i=e.useRecaptchaNet,a=void 0!==i&&i,s=e.scriptProps,l=e.language,u=e.container,c=e.children,d=(0,r.useState)(null),f=d[0],p=d[1],h=(0,r.useRef)(t),m=JSON.stringify(s),g=JSON.stringify(null==u?void 0:u.parameters);(0,r.useEffect)((function(){if(t){var e=(null==s?void 0:s.id)||"google-recaptcha-v3",n=(null==s?void 0:s.onLoadCallbackName)||"onRecaptchaLoadCallback";return window[n]=function(){var e=o?window.grecaptcha.enterprise:window.grecaptcha,n=Xw({badge:"inline",size:"invisible",sitekey:t},(null==u?void 0:u.parameters)||{});h.current=e.render(null==u?void 0:u.element,n)},function(e){var t=e.render,n=e.onLoadCallbackName,r=e.language,o=e.onLoad,i=e.useRecaptchaNet,a=e.useEnterprise,s=e.scriptProps,l=void 0===s?{}:s,u=l.nonce,c=void 0===u?"":u,d=l.defer,f=void 0!==d&&d,p=l.async,h=void 0!==p&&p,m=l.id,g=void 0===m?"":m,y=l.appendTo,v=g||"google-recaptcha-v3";if(function(e){return!!document.querySelector("#"+e)}(v))o();else{var b=function(e){return"https://www."+(e.useRecaptchaNet?"recaptcha.net":"google.com")+"/recaptcha/"+(e.useEnterprise?"enterprise.js":"api.js")}({useEnterprise:a,useRecaptchaNet:i}),w=document.createElement("script");w.id=v,w.src=b+"?render="+t+("explicit"===t?"&onload="+n:"")+(r?"&hl="+r:""),c&&(w.nonce=c),w.defer=!!f,w.async=!!h,w.onload=o,("body"===y?document.body:document.getElementsByTagName("head")[0]).appendChild(w)}}({render:(null==u?void 0:u.element)?"explicit":t,onLoadCallbackName:n,useEnterprise:o,useRecaptchaNet:a,scriptProps:s,language:l,onLoad:function(){if(window&&window.grecaptcha){var e=o?window.grecaptcha.enterprise:window.grecaptcha;e.ready((function(){p(e)}))}else nx("<GoogleRecaptchaProvider /> "+ex.SCRIPT_NOT_AVAILABLE)},onError:function(){nx("Error loading google recaptcha script")}}),function(){tx(e,null==u?void 0:u.element)}}nx("<GoogleReCaptchaProvider /> recaptcha key not provided")}),[o,a,m,g,l,t,null==u?void 0:u.element]);var y=(0,r.useCallback)((function(e){if(!f||!f.execute)throw new Error("<GoogleReCaptchaProvider /> Google Recaptcha has not been loaded");return f.execute(h.current,{action:e})}),[f,h]),v=(0,r.useMemo)((function(){return{executeRecaptcha:f?y:void 0,container:null==u?void 0:u.element}}),[y,f,null==u?void 0:u.element]);return r.createElement(rx.Provider,{value:v},c)}function ix(e){var t=this,n=e.action,o=e.onVerify,i=e.refreshReCaptcha,a=(0,r.useContext)(rx);(0,r.useEffect)((function(){var e=a.executeRecaptcha;e&&function(e,t,n,r){new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}(t,void 0,void 0,(function(){var t;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}(this,(function(r){switch(r.label){case 0:return[4,e(n)];case 1:return t=r.sent(),o?(o(t),[2]):(nx("Please define an onVerify function"),[2])}}))}))}),[n,o,i,a]);var s=a.container;return"string"==typeof s?r.createElement("div",{id:s}):null}function ax(e,t){return e(t={exports:{}},t.exports),t.exports}var sx="function"==typeof Symbol&&Symbol.for,lx=sx?Symbol.for("react.element"):60103,ux=sx?Symbol.for("react.portal"):60106,cx=sx?Symbol.for("react.fragment"):60107,dx=sx?Symbol.for("react.strict_mode"):60108,fx=sx?Symbol.for("react.profiler"):60114,px=sx?Symbol.for("react.provider"):60109,hx=sx?Symbol.for("react.context"):60110,mx=sx?Symbol.for("react.async_mode"):60111,gx=sx?Symbol.for("react.concurrent_mode"):60111,yx=sx?Symbol.for("react.forward_ref"):60112,vx=sx?Symbol.for("react.suspense"):60113,bx=sx?Symbol.for("react.suspense_list"):60120,wx=sx?Symbol.for("react.memo"):60115,xx=sx?Symbol.for("react.lazy"):60116,kx=sx?Symbol.for("react.block"):60121,Dx=sx?Symbol.for("react.fundamental"):60117,Sx=sx?Symbol.for("react.responder"):60118,Ex=sx?Symbol.for("react.scope"):60119;function Cx(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case lx:switch(e=e.type){case mx:case gx:case cx:case fx:case dx:case vx:return e;default:switch(e=e&&e.$$typeof){case hx:case yx:case xx:case wx:case px:return e;default:return t}}case ux:return t}}}function Mx(e){return Cx(e)===gx}var Ox={AsyncMode:mx,ConcurrentMode:gx,ContextConsumer:hx,ContextProvider:px,Element:lx,ForwardRef:yx,Fragment:cx,Lazy:xx,Memo:wx,Portal:ux,Profiler:fx,StrictMode:dx,Suspense:vx,isAsyncMode:function(e){return Mx(e)||Cx(e)===mx},isConcurrentMode:Mx,isContextConsumer:function(e){return Cx(e)===hx},isContextProvider:function(e){return Cx(e)===px},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===lx},isForwardRef:function(e){return Cx(e)===yx},isFragment:function(e){return Cx(e)===cx},isLazy:function(e){return Cx(e)===xx},isMemo:function(e){return Cx(e)===wx},isPortal:function(e){return Cx(e)===ux},isProfiler:function(e){return Cx(e)===fx},isStrictMode:function(e){return Cx(e)===dx},isSuspense:function(e){return Cx(e)===vx},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===cx||e===gx||e===fx||e===dx||e===vx||e===bx||"object"==typeof e&&null!==e&&(e.$$typeof===xx||e.$$typeof===wx||e.$$typeof===px||e.$$typeof===hx||e.$$typeof===yx||e.$$typeof===Dx||e.$$typeof===Sx||e.$$typeof===Ex||e.$$typeof===kx)},typeOf:Cx},Nx=ax((function(e,t){})),Ax=(Nx.AsyncMode,Nx.ConcurrentMode,Nx.ContextConsumer,Nx.ContextProvider,Nx.Element,Nx.ForwardRef,Nx.Fragment,Nx.Lazy,Nx.Memo,Nx.Portal,Nx.Profiler,Nx.StrictMode,Nx.Suspense,Nx.isAsyncMode,Nx.isConcurrentMode,Nx.isContextConsumer,Nx.isContextProvider,Nx.isElement,Nx.isForwardRef,Nx.isFragment,Nx.isLazy,Nx.isMemo,Nx.isPortal,Nx.isProfiler,Nx.isStrictMode,Nx.isSuspense,Nx.isValidElementType,Nx.typeOf,ax((function(e){e.exports=Ox}))),Px={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_x={};_x[Ax.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_x[Ax.Memo]=Px;Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;const jx=Jt((e=>({})),{})((e=>{const{}=e,[t,n]=(0,r.useState)(""),[o,i]=(0,r.useState)(!1),[a,s]=(0,r.useState)(!1),[l,u]=(0,r.useState)(-1),[c,d]=(0,r.useState)(""),[f,p]=(0,r.useState)({name:"",email:"",phone:"",project:"PHCDC General Fund",amount:"10.00"}),h=(0,ai.useStripe)(),m=(0,ai.useElements)(),g=async()=>{if(console.log(f),!h||!m)return;s(!0),d("");if((()=>{let e=!0;return f.name.length?To(f.email)?f.phone.length?f.project.length?parseFloat(f.amount)<5&&(e=!1,d("Donations must be greater than $5.00")):(e=!1,d("Project is a required field.")):(e=!1,d("Phone Number is a required field.")):(e=!1,d("Please enter a valid email address.")):(e=!1,d("Name is a required field.")),e||s(!1),e})()){const t=m.getElement(ai.CardElement),n=await h.createToken(t);if(n.error)console.log(n.error.message);else{const t={Type:"Donation",Donor:f.name,Email:f.email,Phone:f.phone,Notes:""},r={token:n.token.id,amount:100*parseFloat(f.amount),metadata:t,email:f.email,description:"Donation: $"+f.amount+" to benefit "+f.project};try{const e=await Co.post(No()+"/payments/charge",r);if(console.log("payRes",e),e.data.success){const t=(0,Ze.A)((0,Ze.A)({},f),{},{metadata:e.data.chargeResponse});console.log("data",t),await Co.post(No()+"/payments/donation",t),s(!1),u(1)}}catch(e){s(!1),i(!o),d("There was an error processing this credit card.")}}}};return(0,Ho.jsxs)("div",{className:"pf-login",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),1!==l?(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("h1",{children:"Make a Donation"}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Your Name:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-user"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:f.name,placeholder:"John Doe",onChange:e=>p((0,Ze.A)((0,Ze.A)({},f),{},{name:e.target.value}))})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email Address:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-envelope"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:f.email,placeholder:"jdoe@example.com",onChange:e=>p((0,Ze.A)((0,Ze.A)({},f),{},{email:e.target.value}))})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Phone Number:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-phone"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:f.phone,placeholder:"412-555-1212",onChange:e=>p((0,Ze.A)((0,Ze.A)({},f),{},{phone:e.target.value}))})]})]}),(0,Ho.jsx)("br",{}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Donation Amount:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-dollar-sign"})})}),(0,Ho.jsx)("input",{type:"number",className:"form-control",value:f.amount,placeholder:"0.00",onChange:e=>p((0,Ze.A)((0,Ze.A)({},f),{},{amount:e.target.value}))})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Project to Support:"}),(0,Ho.jsx)("div",{className:"input-group",children:(0,Ho.jsxs)("select",{onChange:e=>p((0,Ze.A)((0,Ze.A)({},f),{},{project:e.target.value})),value:f.project,className:"form-control",children:[(0,Ho.jsxs)("optgroup",{label:"Penn Hills CDC",children:[(0,Ho.jsx)("option",{value:"PHCDC General Fund",children:"PHCDC General Fund"}),(0,Ho.jsx)("option",{value:"PHCDC Community Census Fund",children:"PHCDC Community Census Fund"}),(0,Ho.jsx)("option",{value:"PHCDC Beautification Fund",children:"PHCDC Beautification Fund"}),(0,Ho.jsx)("option",{value:"PHCDC Anti-Litter Fund",children:"PHCDC Anti-Litter Fund"})]}),(0,Ho.jsxs)("optgroup",{label:"PHCDC Partners",children:[(0,Ho.jsx)("option",{value:"Allegheny River Boulevard Preservation Assoc.",children:"Allegheny River Boulevard Preservation Assoc."}),(0,Ho.jsx)("option",{value:"Penn Hills Community Garden",children:"Penn Hills Community Garden"}),(0,Ho.jsx)("option",{value:"Penn Hills Garden Club",children:"Penn Hills Garden Club"}),(0,Ho.jsx)("option",{value:"Penn Hills Shade Tree Commission",children:"Penn Hills Shade Tree Commission"})]})]})})]}),(0,Ho.jsx)("div",{className:"form-group",children:(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Credit Card"}),(0,Ho.jsx)("div",{className:"form-control cc-wrap",style:{paddingTop:"6px"},children:(0,Ho.jsx)(ai.CardElement,{options:_o})})]})}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),""!==c&&(0,Ho.jsx)("div",{className:"alert alert-danger",style:{fontSize:"16px",marginTop:"24px"},children:(0,Ho.jsx)("b",{children:c})}),(0,Ho.jsxs)("p",{children:["By clicking the Submit Payment button, you authorize the Penn Hills CDC to charge your credit card in the amount of ",(0,Ho.jsx)("b",{children:Ro(f.amount)}),". Charges will appear on your statement as PENNHILLSCDC. A recipt for your donation will be emailed to the address you provided."]}),(0,Ho.jsx)("button",{className:"btn btn-success",style:{marginTop:"16px",paddingLeft:"40px",paddingRight:"40px"},onClick:()=>g(),disabled:a,children:"\xa0 \xa0 Submit Donation \xa0 \xa0"}),(0,Ho.jsx)(ox,{reCaptchaKey:"6Lc4uqEqAAAAAO5dyjMKxq1JVNDD7iPisx97hcCc",children:(0,Ho.jsx)(ix,{onVerify:e=>{n(e)},refreshReCaptcha:o})}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]}):(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("div",{className:"alert alert-success",children:(0,Ho.jsx)("b",{style:{fontSize:"20px"},children:"Donation Successful!"})}),(0,Ho.jsx)("br",{}),(0,Ho.jsxs)("p",{style:{fontSize:"16px"},children:["Your donation in the amount of ",(0,Ho.jsx)("b",{children:Ro(f.amount)})," supporting the ",(0,Ho.jsx)("b",{children:f.project})," has been successfully sent to the Penn Hills CDC. Please check your inbox for a receipt of this donation."]}),(0,Ho.jsxs)("p",{style:{fontSize:"16px"},children:["Questions? Please contact the PHCDC Treasurer at ",(0,Ho.jsx)("a",{href:"mailto:treasurer@pennhillscdc.org",children:"treasurer@pennhillscdc.org"})]}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)(Ae,{to:"/",className:"btn btn-primary",style:{paddingLeft:"40px",paddingRight:"40px"},children:"Back to Home"})]})]})})),Tx=Jt((e=>({})),{})((e=>{const{}=e,[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(-1),[a,s]=(0,r.useState)(""),[l,u]=(0,r.useState)({fname:"",lname:"",email:"",plan_id:1});return(0,Ho.jsxs)("div",{className:"pf-login",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),1!==o?(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("h1",{children:"Sign Up for Our Email Newsletter"}),(0,Ho.jsxs)("p",{children:["Sign up for the PHCDC Email Newsletter and we'll send you important news, announcements, and reminders of upcoming meetings and events, directly to your inbox.",(0,Ho.jsx)("br",{}),"\xa0"]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"First Name:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-user"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:l.fname,placeholder:"Jane",onChange:e=>u((0,Ze.A)((0,Ze.A)({},l),{},{fname:e.target.value}))})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Last Name:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-user"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:l.lname,placeholder:"Roe",onChange:e=>u((0,Ze.A)((0,Ze.A)({},l),{},{lname:e.target.value}))})]})]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email Address:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-envelope"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:l.email,placeholder:"jroe@example.com",onChange:e=>u((0,Ze.A)((0,Ze.A)({},l),{},{email:e.target.value}))})]})]}),""!==a&&(0,Ho.jsx)("div",{className:"alert alert-danger",style:{fontSize:"16px",marginTop:"24px"},children:(0,Ho.jsx)("b",{children:a})}),(0,Ho.jsx)("button",{className:"btn btn-success",style:{marginTop:"16px",paddingLeft:"60px",paddingRight:"60px"},onClick:()=>(async()=>{n(!0);try{(await Co.post(No()+"/mail/subscribe",l)).data.success?(await Co.post(No()+"/members/create",l)).data.success?i(1):(n(!1),s("There was an error while signing you up for the newsletter.")):i(1)}catch(e){n(!1),s("There was an error while signing you up for the newsletter.")}})(),disabled:t,children:"\xa0 \xa0 Submit \xa0 \xa0"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]}):(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("div",{className:"alert alert-success",children:(0,Ho.jsx)("b",{style:{fontSize:"20px"},children:"Signed-Up Successfully!"})}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("p",{style:{fontSize:"16px"},children:"You have successfully signed up to receive the Penn Hills CDC Newsletter! Thanks for your interest in the PHCDC!"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)(Ae,{to:"/",className:"btn btn-primary",style:{paddingLeft:"40px",paddingRight:"40px"},children:"Back to Home"})]})]})})),Rx=Jt((e=>({})),{})((e=>{const{}=e,[t,n]=(0,r.useState)(!1),[o,i]=(0,r.useState)(-1),[a,s]=(0,r.useState)(""),[l,u]=(0,r.useState)({email:""});return(0,Ho.jsxs)("div",{className:"pf-login",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),1!==o?(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("h1",{children:"Reset Your Password"}),(0,Ho.jsx)("p",{children:"Can't sign in to your account? Use this form to reset your password."}),(0,Ho.jsxs)("p",{children:["Enter your email address, and if it exists in our system you will receive an email with a special link where you can then change your password.",(0,Ho.jsx)("br",{}),"\xa0"]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"Email Address:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-envelope"})})}),(0,Ho.jsx)("input",{type:"text",className:"form-control",value:l.email,placeholder:"jroe@example.com",onChange:e=>u((0,Ze.A)((0,Ze.A)({},l),{},{email:e.target.value}))})]})]}),""!==a&&(0,Ho.jsx)("div",{className:"alert alert-danger",style:{fontSize:"16px",marginTop:"24px"},children:(0,Ho.jsx)("b",{children:a})}),(0,Ho.jsx)("button",{className:"btn btn-success",style:{marginTop:"16px",paddingLeft:"60px",paddingRight:"60px"},onClick:()=>(async()=>{n(!0);try{(await Co.post(No()+"/auth/pwreset",l)).data.success&&i(1),n(!1)}catch(e){n(!1),s("There was an error while signing you up for the PwReset.")}})(),disabled:t,children:"\xa0 \xa0 Submit \xa0 \xa0"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]}):(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("div",{className:"alert alert-success",children:(0,Ho.jsx)("b",{style:{fontSize:"20px"},children:"Email Sent!"})}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("p",{style:{fontSize:"16px"},children:"Please check your inbox for an email from the PHCDC. This email will contain a link that will redirect you to a special form allowing you to reset your password."}),(0,Ho.jsxs)("p",{style:{fontSize:"16px"},children:["Having problems? Please contact PHCDC Communications Director Alan Waldron at ",(0,Ho.jsx)("a",{href:"mailto:alan.waldron@pennhillscdc.org",children:"alan.waldron@pennhillscdc.org"})]}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)(Ae,{to:"/",className:"btn btn-primary",style:{paddingLeft:"40px",paddingRight:"40px"},children:"Back to Home"})]})]})})),Fx=Jt((e=>({})),{})((e=>{const{match:t}=e,[n,o]=(0,r.useState)(!1),[i,a]=(0,r.useState)(-1),[s,l]=(0,r.useState)({password:""}),[u,c]=(0,r.useState)(!1),d=(ne()||{hash:"0000"}).hash;return(0,Ho.jsxs)("div",{className:"pf-login",children:[(0,Ho.jsx)("img",{src:Yo}),(0,Ho.jsxs)("div",{className:"logo-title",children:[(0,Ho.jsx)("b",{children:"Penn Hills"})," Community Development Corporation"]}),1!==i?(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("h1",{children:"Reset Your Password"}),(0,Ho.jsxs)("p",{children:["Enter your new password below.",(0,Ho.jsx)("br",{}),"Tap/Click the lock icon to show or hide your password. ",(0,Ho.jsx)("br",{}),"\xa0"]}),(0,Ho.jsxs)("div",{className:"form-group",children:[(0,Ho.jsx)("label",{children:"New Password:"}),(0,Ho.jsxs)("div",{className:"input-group",children:[(0,Ho.jsx)("div",{className:"input-group-prepend",onClick:()=>c(!u),style:{cursor:"pointer"},children:(0,Ho.jsx)("div",{className:"input-group-text",children:(0,Ho.jsx)("i",{className:"far fa-lock"+(u?"-open":"")})})}),(0,Ho.jsx)("input",{type:u?"text":"password",className:"form-control",value:s.password,placeholder:"",onChange:e=>l((0,Ze.A)((0,Ze.A)({},s),{},{password:e.target.value}))})]})]}),(0,Ho.jsx)("button",{className:"btn btn-success",style:{marginTop:"16px",paddingLeft:"60px",paddingRight:"60px"},onClick:()=>(async()=>{o(!0);let e=(0,Ze.A)({},s);e.reset_hash=d;try{(await Co.post(No()+"/auth/pwresetsubmit",e)).data.success&&a(1)}catch(t){o(!1)}})(),disabled:n,children:"\xa0 \xa0 Submit \xa0 \xa0"}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{})]}):(0,Ho.jsxs)("div",{className:"pf-login-panel",children:[(0,Ho.jsx)("div",{className:"alert alert-success",children:(0,Ho.jsx)("b",{style:{fontSize:"20px"},children:"Password Reset Successfully!"})}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("p",{style:{fontSize:"16px"},children:"Please continue to the login screen to sign in with your new password."}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)("br",{}),(0,Ho.jsx)(Ae,{to:"/",className:"btn btn-primary",style:{paddingLeft:"40px",paddingRight:"40px"},children:"Continue to Login"})]})]})})),Ix=Jt((e=>({auth:e.auth,profile:e.profile,plans:e.plans})),{getCurrentProfile:e=>async t=>{try{const n=await Co.get(No()+"/auth.php?action=profile&u="+e);n.data.success?t({type:ze,payload:n.data.profile}):console.error("getProfileError",n.data.error)}catch(n){console.error("getProfileError",n)}},removeAlert:Je,loadUser:()=>async e=>{if(localStorage.auth_user){const t=JSON.parse(localStorage.auth_user),n=Math.floor(Date.now()/1e3);t.token_expires>n?(Io(t.token),e({type:Re,payload:t})):localStorage.removeItem("auth_user")}},getPlans:()=>async e=>{try{const t=await Co.get(No()+"/auth/plans");t.data.success&&e({type:Ve,payload:t.data.plans})}catch(t){console.log("error getting plans")}}})((e=>{const{removeAlert:t,auth:n,profile:o,plans:i,loadUser:a,getPlans:s}=e,[l,u]=(0,r.useState)(!1);(0,r.useEffect)((()=>{(async()=>{n.isAuthenticated||await a(),u(!0)})()}),[n]),(0,r.useEffect)((()=>{(async()=>{i.plansLoaded||await s()})()}),[i.plansLoaded]);const c=gi(Ao()),d=n.isAuthenticated;return(0,Ho.jsx)(qo,{children:l&&(0,Ho.jsx)(ai.Elements,{stripe:c,children:d?(0,Ho.jsxs)(xe,{children:[(0,Ho.jsx)(be,{path:"/member/:id",element:(0,Ho.jsx)(yi,{})}),(0,Ho.jsx)(be,{path:"/dashboard",element:(0,Ho.jsx)(ni,{})}),(0,Ho.jsx)(be,{path:"/my-account",element:(0,Ho.jsx)(wi,{})}),(0,Ho.jsx)(be,{path:"/email-campaigns",element:(0,Ho.jsx)(Zw,{})}),(0,Ho.jsx)(be,{path:"/email-create",element:(0,Ho.jsx)(Gw,{})}),(0,Ho.jsx)(be,{path:"/payment-log",element:(0,Ho.jsx)(Jw,{})}),(0,Ho.jsx)(be,{path:"/login",element:(0,Ho.jsx)(Uo,{})}),(0,Ho.jsx)(be,{path:"/",element:(0,Ho.jsx)(Uo,{})})]}):(0,Ho.jsxs)(xe,{children:[(0,Ho.jsx)(be,{path:"/dashboard",element:(0,Ho.jsx)(ni,{})}),(0,Ho.jsx)(be,{path:"/login",element:(0,Ho.jsx)(Uo,{})}),(0,Ho.jsx)(be,{path:"/register",element:(0,Ho.jsx)(bi,{})}),(0,Ho.jsx)(be,{path:"/donate",element:(0,Ho.jsx)(jx,{})}),(0,Ho.jsx)(be,{path:"/newsletter",element:(0,Ho.jsx)(Tx,{})}),(0,Ho.jsx)(be,{path:"/pwreset",element:(0,Ho.jsx)(Rx,{})}),(0,Ho.jsx)(be,{path:"/pwreset-form/:hash",element:(0,Ho.jsx)(Fx,{})}),(0,Ho.jsx)(be,{path:"/",element:(0,Ho.jsx)(Uo,{})})]})})})}));function Lx(){const{pathname:e}=X();return(0,r.useEffect)((()=>{const e=document.getElementById("appRoot");e&&e.scrollTo(0,0)}),[e]),null}function zx(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 Bx="function"===typeof Symbol&&Symbol.observable||"@@observable",Yx=function(){return Math.random().toString(36).substring(7).split("").join(".")},Hx={INIT:"@@redux/INIT"+Yx(),REPLACE:"@@redux/REPLACE"+Yx(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Yx()}};function Wx(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Vx(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(zx(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(zx(1));return n(Vx)(e,t)}if("function"!==typeof e)throw new Error(zx(2));var o=e,i=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(zx(3));return i}function d(e){if("function"!==typeof e)throw new Error(zx(4));if(l)throw new Error(zx(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(zx(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!Wx(e))throw new Error(zx(7));if("undefined"===typeof e.type)throw new Error(zx(8));if(l)throw new Error(zx(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:Hx.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!==typeof e)throw new Error(zx(10));o=e,f({type:Hx.REPLACE})}})[Bx]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(zx(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[Bx]=function(){return this},e},r}function Ux(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}const $x="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0!==t.length)return"object"===typeof t[0]?Ux:Ux(...t)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function qx(e){return t=>{let{dispatch:n,getState:r}=t;return t=>o=>"function"===typeof o?o(n,r,e):t(o)}}var Kx=qx();const Qx=[];const Gx={isAuthenticated:!1,loading:!0,token:localStorage.token?localStorage.token:null,email:localStorage.email?localStorage.email:null,user_id:localStorage.user_id?localStorage.user_id:null,admin:0,token_created:localStorage.token_created?new Date(localStorage.token_created):null,token_expires:localStorage.token_expires?new Date(localStorage.token_expires):null};const Jx={profile:null,loading:!0,error:{}};const Zx={list:[],edit:{loaded:!1,data:{}},loaded:!1,emailCount:0};const Xx={plansLoaded:!1,plans:[]};const ek={log:[],loaded:!1};const tk=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:Hx.INIT}))throw new Error(zx(12));if("undefined"===typeof n(void 0,{type:Hx.PROBE_UNKNOWN_ACTION()}))throw new Error(zx(13))}))}(n)}catch(ak){i=ak}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],u=n[l],c=e[l],d=u(c,t);if("undefined"===typeof d){t&&t.type;throw new Error(zx(14))}o[l]=d,r=r||d!==c}return(r=r||a.length!==Object.keys(e).length)?o:e}}({alert:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qx,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case je:return[...e,r];case Te:return e&&e.length?e.filter((e=>e.key!==r)):[];default:return e}},auth:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gx,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case Re:return(0,Ze.A)((0,Ze.A)((0,Ze.A)({},e),r),{},{isAuthenticated:!0,loading:!1});case"REGISTER_SUCCESS":case Fe:return localStorage.setItem("auth_user",JSON.stringify(r)),Io(r.token),(0,Ze.A)((0,Ze.A)((0,Ze.A)({},e),r),{},{isAuthenticated:!0,loading:!1});case"REGISTER_FAIL":case Ie:case"AUTH_ERROR":case Le:return localStorage.removeItem("auth_user"),(0,Ze.A)((0,Ze.A)({},e),{},{isAuthenticated:!1,loading:!0,token:null,email:null,user_id:null,admin:0,token_created:null,token_expires:null});default:return e}},profile:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Jx,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case ze:return(0,Ze.A)((0,Ze.A)({},e),{},{profile:r,loading:!1});case Be:return Jx;case"PROFILE_ERROR":return(0,Ze.A)((0,Ze.A)({},e),{},{error:r,loading:!1});default:return e}},plans:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Xx,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case Ve:return(0,Ze.A)((0,Ze.A)({},e),{},{plansLoaded:!0,plans:r});case Ue:return Xx;default:return e}},members:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zx,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case Ye:return(0,Ze.A)((0,Ze.A)({},e),{},{list:r,loaded:!0});case We:return(0,Ze.A)((0,Ze.A)({},e),{},{edit:(0,Ze.A)((0,Ze.A)({},e.edit),{},{loaded:!0,data:r})});case He:return Zx;case Ke:return(0,Ze.A)((0,Ze.A)({},e),{},{emailCount:e.emailCount+1});case Qe:return(0,Ze.A)((0,Ze.A)({},e),{},{emailCount:0});default:return e}},payments:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ek,t=arguments.length>1?arguments[1]:void 0;const{type:n,payload:r}=t;switch(n){case $e:return(0,Ze.A)((0,Ze.A)({},e),{},{log:r,loaded:!0});case qe:return ek;default:return e}}}),nk=Vx(tk,{},$x(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(zx(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=Ux.apply(void 0,i)(n.dispatch),(0,Ze.A)((0,Ze.A)({},n),{},{dispatch:r})}}}(...[Kx]))),rk=nk;const ok=function(){return(0,Ho.jsx)(Zt,{store:rk,children:(0,Ho.jsxs)(Me,{children:[(0,Ho.jsx)(Lx,{}),(0,Ho.jsx)(r.Fragment,{children:(0,Ho.jsx)(Ix,{})})]})})},ik=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,6453)).then((t=>{let{getCLS:n,getFID:r,getFCP:o,getLCP:i,getTTFB:a}=t;n(e),r(e),o(e),i(e),a(e)}))};i.createRoot(document.getElementById("root")).render((0,Ho.jsx)(r.StrictMode,{children:(0,Ho.jsx)(ok,{})})),ik()})()})();
//# sourceMappingURL=main.ec121618.js.map