/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ var bC=Object.create;var to=Object.defineProperty,IC=Object.defineProperties,CC=Object.getOwnPropertyDescriptor,SC=Object.getOwnPropertyDescriptors,wC=Object.getOwnPropertyNames,op=Object.getOwnPropertySymbols,xC=Object.getPrototypeOf,sp=Object.prototype.hasOwnProperty,EC=Object.prototype.propertyIsEnumerable;var ap=(e,t,n)=>t in e?to(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$=(e,t)=>{for(var n in t||(t={}))sp.call(t,n)&&ap(e,n,t[n]);if(op)for(var n of op(t))EC.call(t,n)&&ap(e,n,t[n]);return e},de=(e,t)=>IC(e,SC(t));var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),AC=(e,t)=>{for(var n in t)to(e,n,{get:t[n],enumerable:!0})},lp=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of wC(t))!sp.call(e,i)&&i!==n&&to(e,i,{get:()=>t[i],enumerable:!(r=CC(t,i))||r.enumerable});return e};var Ie=(e,t,n)=>(n=e!=null?bC(xC(e)):{},lp(t||!e||!e.__esModule?to(n,"default",{value:e,enumerable:!0}):n,e)),kC=e=>lp(to({},"__esModule",{value:!0}),e);var fe=(e,t,n)=>new Promise((r,i)=>{var a=d=>{try{u(n.next(d))}catch(p){i(p)}},l=d=>{try{u(n.throw(d))}catch(p){i(p)}},u=d=>d.done?r(d.value):Promise.resolve(d.value).then(a,l);u((n=n.apply(e,t)).next())});var bp=te(q=>{"use strict";var no=Symbol.for("react.element"),TC=Symbol.for("react.portal"),FC=Symbol.for("react.fragment"),NC=Symbol.for("react.strict_mode"),MC=Symbol.for("react.profiler"),DC=Symbol.for("react.provider"),PC=Symbol.for("react.context"),OC=Symbol.for("react.forward_ref"),_C=Symbol.for("react.suspense"),RC=Symbol.for("react.memo"),WC=Symbol.for("react.lazy"),up=Symbol.iterator;function GC(e){return e===null||typeof e!="object"?null:(e=up&&e[up]||e["@@iterator"],typeof e=="function"?e:null)}var fp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pp=Object.assign,hp={};function di(e,t,n){this.props=e,this.context=t,this.refs=hp,this.updater=n||fp}di.prototype.isReactComponent={};di.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};di.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mp(){}mp.prototype=di.prototype;function Ul(e,t,n){this.props=e,this.context=t,this.refs=hp,this.updater=n||fp}var Jl=Ul.prototype=new mp;Jl.constructor=Ul;pp(Jl,di.prototype);Jl.isPureReactComponent=!0;var cp=Array.isArray,gp=Object.prototype.hasOwnProperty,Ql={current:null},vp={key:!0,ref:!0,__self:!0,__source:!0};function yp(e,t,n){var r,i={},a=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(a=""+t.key),t)gp.call(t,r)&&!vp.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(u===1)i.children=n;else if(1{"use strict";Ip.exports=bp()});var Np=te(Ce=>{"use strict";function tu(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(0>>1;rwa(u,n))dwa(p,u)?(e[r]=p,e[d]=n,r=d):(e[r]=u,e[l]=n,r=l);else if(dwa(p,n))e[r]=p,e[d]=n,r=d;else break e}}return t}function wa(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Cp=performance,Ce.unstable_now=function(){return Cp.now()}):(Kl=Date,Sp=Kl.now(),Ce.unstable_now=function(){return Kl.now()-Sp});var Cp,Kl,Sp,En=[],ur=[],YC=1,$t=null,mt=3,Aa=!1,Br=!1,io=!1,Ep=typeof setTimeout=="function"?setTimeout:null,Ap=typeof clearTimeout=="function"?clearTimeout:null,wp=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nu(e){for(var t=fn(ur);t!==null;){if(t.callback===null)Ea(ur);else if(t.startTime<=e)Ea(ur),t.sortIndex=t.expirationTime,tu(En,t);else break;t=fn(ur)}}function ru(e){if(io=!1,nu(e),!Br)if(fn(En)!==null)Br=!0,ou(iu);else{var t=fn(ur);t!==null&&au(ru,t.startTime-e)}}function iu(e,t){Br=!1,io&&(io=!1,Ap(oo),oo=-1),Aa=!0;var n=mt;try{for(nu(t),$t=fn(En);$t!==null&&(!($t.expirationTime>t)||e&&!Fp());){var r=$t.callback;if(typeof r=="function"){$t.callback=null,mt=$t.priorityLevel;var i=r($t.expirationTime<=t);t=Ce.unstable_now(),typeof i=="function"?$t.callback=i:$t===fn(En)&&Ea(En),nu(t)}else Ea(En);$t=fn(En)}if($t!==null)var a=!0;else{var l=fn(ur);l!==null&&au(ru,l.startTime-t),a=!1}return a}finally{$t=null,mt=n,Aa=!1}}var ka=!1,xa=null,oo=-1,kp=5,Tp=-1;function Fp(){return!(Ce.unstable_now()-Tpe||125r?(e.sortIndex=n,tu(ur,e),fn(En)===null&&e===fn(ur)&&(io?(Ap(oo),oo=-1):io=!0,au(ru,n-r))):(e.sortIndex=i,tu(En,e),Br||Aa||(Br=!0,ou(iu))),e};Ce.unstable_shouldYield=Fp;Ce.unstable_wrapCallback=function(e){var t=mt;return function(){var n=mt;mt=t;try{return e.apply(this,arguments)}finally{mt=n}}}});var Dp=te((QE,Mp)=>{"use strict";Mp.exports=Np()});var Gg=te(Ut=>{"use strict";var Lh=Pe(),Xt=Dp();function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function kt(e,t,n,r,i,a,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new kt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new kt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new kt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new kt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new kt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new kt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new kt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new kt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new kt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Cc=/[\-:]([a-z])/g;function Sc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Cc,Sc);ot[t]=new kt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Cc,Sc);ot[t]=new kt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Cc,Sc);ot[t]=new kt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new kt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new kt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new kt(e,1,!1,e.toLowerCase(),null,!0,!0)});function wc(e,t,n,r){var i=ot.hasOwnProperty(t)?ot[t]:null;(i!==null?i.type!==0:r||!(2u||i[l]!==a[u]){var d=` `+i[l].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=l&&0<=u);break}}}finally{lu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?mo(e):""}function UC(e){switch(e.tag){case 5:return mo(e.type);case 16:return mo("Lazy");case 13:return mo("Suspense");case 19:return mo("SuspenseList");case 0:case 2:case 15:return e=uu(e.type,!1),e;case 11:return e=uu(e.type.render,!1),e;case 1:return e=uu(e.type,!0),e;default:return""}}function Pu(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case mi:return"Fragment";case hi:return"Portal";case Nu:return"Profiler";case xc:return"StrictMode";case Mu:return"Suspense";case Du:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Hh:return(e.displayName||"Context")+".Consumer";case Bh:return(e._context.displayName||"Context")+".Provider";case Ec:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ac:return t=e.displayName||null,t!==null?t:Pu(e.type)||"Memo";case dr:t=e._payload,e=e._init;try{return Pu(e(t))}catch(n){}}return null}function JC(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Pu(t);case 8:return t===xc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Er(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function QC(e){var t=Zh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,a.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fa(e){e._valueTracker||(e._valueTracker=QC(e))}function zh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Zh(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function rs(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Ou(e,t){var n=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function Rp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Er(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xh(e,t){t=t.checked,t!=null&&wc(e,"checked",t,!1)}function _u(e,t){Xh(e,t);var n=Er(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ru(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ru(e,t.type,Er(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ru(e,t,n){(t!=="number"||rs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var go=Array.isArray;function Ai(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Na.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$C=["Webkit","ms","Moz","O"];Object.keys(bo).forEach(function(e){$C.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bo[t]=bo[e]})});function Qh(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bo.hasOwnProperty(e)&&bo[e]?(""+t).trim():t+"px"}function $h(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Qh(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var KC=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Lu(e,t){if(t){if(KC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(_(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(_(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(_(61))}if(t.style!=null&&typeof t.style!="object")throw Error(_(62))}}function Vu(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Bu=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Hu=null,ki=null,Ti=null;function Vp(e){if(e=jo(e)){if(typeof Hu!="function")throw Error(_(280));var t=e.stateNode;t&&(t=Ms(t),Hu(e.stateNode,e.type,t))}}function Kh(e){ki?Ti?Ti.push(e):Ti=[e]:ki=e}function qh(){if(ki){var e=ki,t=Ti;if(Ti=ki=null,Vp(e),t)for(e=0;e>>=0,e===0?32:31-(uS(e)/cS|0)|0}var Ma=64,Da=4194304;function vo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ss(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,l=n&268435455;if(l!==0){var u=l&~i;u!==0?r=vo(u):(a&=l,a!==0&&(r=vo(a)))}else l=n&~i,l!==0?r=vo(l):a!==0&&(r=vo(a));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function zo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vn(t),e[t]=n}function hS(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Co),Jp=String.fromCharCode(32),Qp=!1;function bm(e,t){switch(e){case"keyup":return HS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Im(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gi=!1;function ZS(e,t){switch(e){case"compositionend":return Im(t);case"keypress":return t.which!==32?null:(Qp=!0,Jp);case"textInput":return e=t.data,e===Jp&&Qp?null:e;default:return null}}function zS(e,t){if(gi)return e==="compositionend"||!_c&&bm(e,t)?(e=vm(),Ua=Dc=mr=null,gi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=qp(n)}}function xm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Em(){for(var e=window,t=rs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=rs(e.document)}return t}function Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ew(e){var t=Em(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&xm(n.ownerDocument.documentElement,n)){if(r!==null&&Rc(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=eh(n,a);var l=eh(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,vi=null,Uu=null,wo=null,Ju=!1;function th(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ju||vi==null||vi!==rs(r)||(r=vi,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),wo&&_o(wo,r)||(wo=r,r=cs(Uu,"onSelect"),0Ii||(e.current=tc[Ii],tc[Ii]=null,Ii--)}function Se(e,t){Ii++,tc[Ii]=e.current,e.current=t}var Ar={},bt=Tr(Ar),Pt=Tr(!1),Jr=Ar;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Ar;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ot(e){return e=e.childContextTypes,e!=null}function fs(){ke(Pt),ke(bt)}function ch(e,t,n){if(bt.current!==Ar)throw Error(_(168));Se(bt,t),Se(Pt,n)}function Om(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(_(108,JC(e)||"Unknown",i));return De({},n,r)}function ps(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ar,Jr=bt.current,Se(bt,e),Se(Pt,Pt.current),!0}function dh(e,t,n){var r=e.stateNode;if(!r)throw Error(_(169));n?(e=Om(e,t,Jr),r.__reactInternalMemoizedMergedChildContext=e,ke(Pt),ke(bt),Se(bt,e)):ke(Pt),Se(Pt,n)}var jn=null,Ds=!1,Iu=!1;function _m(e){jn===null?jn=[e]:jn.push(e)}function cw(e){Ds=!0,_m(e)}function Fr(){if(!Iu&&jn!==null){Iu=!0;var e=0,t=he;try{var n=jn;for(he=1;e>=l,i-=l,Un=1<<32-vn(t)+i|n<D?(O=P,P=null):O=P.sibling;var B=I(g,P,C[D],E);if(B===null){P===null&&(P=O);break}e&&P&&B.alternate===null&&t(g,P),b=a(B,b,D),F===null?M=B:F.sibling=B,F=B,P=O}if(D===C.length)return n(g,P),Fe&&Hr(g,D),M;if(P===null){for(;DD?(O=P,P=null):O=P.sibling;var Z=I(g,P,B.value,E);if(Z===null){P===null&&(P=O);break}e&&P&&Z.alternate===null&&t(g,P),b=a(Z,b,D),F===null?M=Z:F.sibling=Z,F=Z,P=O}if(B.done)return n(g,P),Fe&&Hr(g,D),M;if(P===null){for(;!B.done;D++,B=C.next())B=v(g,B.value,E),B!==null&&(b=a(B,b,D),F===null?M=B:F.sibling=B,F=B);return Fe&&Hr(g,D),M}for(P=r(g,P);!B.done;D++,B=C.next())B=x(P,g,D,B.value,E),B!==null&&(e&&B.alternate!==null&&P.delete(B.key===null?D:B.key),b=a(B,b,D),F===null?M=B:F.sibling=B,F=B);return e&&P.forEach(function(ne){return t(g,ne)}),Fe&&Hr(g,D),M}function N(g,b,C,E){if(typeof C=="object"&&C!==null&&C.type===mi&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Ta:e:{for(var M=C.key,F=b;F!==null;){if(F.key===M){if(M=C.type,M===mi){if(F.tag===7){n(g,F.sibling),b=i(F,C.props.children),b.return=g,g=b;break e}}else if(F.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===dr&&yh(M)===F.type){n(g,F.sibling),b=i(F,C.props),b.ref=co(g,F,C),b.return=g,g=b;break e}n(g,F);break}else t(g,F);F=F.sibling}C.type===mi?(b=Ur(C.props.children,g.mode,E,C.key),b.return=g,g=b):(E=ns(C.type,C.key,C.props,null,g.mode,E),E.ref=co(g,b,C),E.return=g,g=E)}return l(g);case hi:e:{for(F=C.key;b!==null;){if(b.key===F)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(g,b.sibling),b=i(b,C.children||[]),b.return=g,g=b;break e}else{n(g,b);break}else t(g,b);b=b.sibling}b=Tu(C,g.mode,E),b.return=g,g=b}return l(g);case dr:return F=C._init,N(g,b,F(C._payload),E)}if(go(C))return w(g,b,C,E);if(ao(C))return A(g,b,C,E);Ya(g,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,b!==null&&b.tag===6?(n(g,b.sibling),b=i(b,C),b.return=g,g=b):(n(g,b),b=ku(C,g.mode,E),b.return=g,g=b),l(g)):n(g,b)}return N}var _i=Ym(!0),Zm=Ym(!1),Uo={},Nn=Tr(Uo),Lo=Tr(Uo),Vo=Tr(Uo);function Xr(e){if(e===Uo)throw Error(_(174));return e}function zc(e,t){switch(Se(Vo,t),Se(Lo,e),Se(Nn,Uo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Gu(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Gu(t,e)}ke(Nn),Se(Nn,t)}function Ri(){ke(Nn),ke(Lo),ke(Vo)}function zm(e){Xr(Vo.current);var t=Xr(Nn.current),n=Gu(t,e.type);t!==n&&(Se(Lo,e),Se(Nn,n))}function Xc(e){Lo.current===e&&(ke(Nn),ke(Lo))}var Ne=Tr(0);function bs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cu=[];function jc(){for(var e=0;en?n:4,e(!0);var r=Su.transition;Su.transition={};try{e(!1),t()}finally{he=n,Su.transition=r}}function sg(){return rn().memoizedState}function hw(e,t,n){var r=wr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lg(e))ug(t,n);else if(n=Lm(e,t,n,r),n!==null){var i=At();yn(n,e,r,i),cg(n,t,r)}}function mw(e,t,n){var r=wr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lg(e))ug(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var l=t.lastRenderedState,u=a(l,n);if(i.hasEagerState=!0,i.eagerState=u,bn(u,l)){var d=t.interleaved;d===null?(i.next=i,Yc(t)):(i.next=d.next,d.next=i),t.interleaved=i;return}}catch(p){}finally{}n=Lm(e,t,i,r),n!==null&&(i=At(),yn(n,e,r,i),cg(n,t,r))}}function lg(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function ug(e,t){xo=Is=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function cg(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fc(e,n)}}var Cs={readContext:nn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},gw={readContext:nn,useCallback:function(e,t){return kn().memoizedState=[e,t===void 0?null:t],e},useContext:nn,useEffect:Ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ka(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ka(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ka(4,2,e,t)},useMemo:function(e,t){var n=kn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hw.bind(null,Me,e),[r.memoizedState,e]},useRef:function(e){var t=kn();return e={current:e},t.memoizedState=e},useState:bh,useDebugValue:Kc,useDeferredValue:function(e){return kn().memoizedState=e},useTransition:function(){var e=bh(!1),t=e[0];return e=pw.bind(null,e[1]),kn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Me,i=kn();if(Fe){if(n===void 0)throw Error(_(407));n=n()}else{if(n=t(),Ke===null)throw Error(_(349));($r&30)!==0||Um(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ih(Qm.bind(null,r,a,e),[e]),r.flags|=2048,Yo(9,Jm.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=kn(),t=Ke.identifierPrefix;if(Fe){var n=Jn,r=Un;n=(r&~(1<<32-vn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Bo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Tn]=t,e[Go]=r,bg(e,t,!1,!1),t.stateNode=e;e:{switch(l=Vu(n,r),n){case"dialog":Ae("cancel",e),Ae("close",e),i=r;break;case"iframe":case"object":case"embed":Ae("load",e),i=r;break;case"video":case"audio":for(i=0;iGi&&(t.flags|=128,r=!0,fo(a,!1),t.lanes=4194304)}else{if(!r)if(e=bs(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!l.alternate&&!Fe)return vt(t),null}else 2*We()-a.renderingStartTime>Gi&&n!==1073741824&&(t.flags|=128,r=!0,fo(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(n=a.last,n!==null?n.sibling=l:t.child=l,a.last=l)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=We(),t.sibling=null,n=Ne.current,Se(Ne,r?n&1|2:n&1),t):(vt(t),null);case 22:case 23:return id(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Yt&1073741824)!==0&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),null;case 24:return null;case 25:return null}throw Error(_(156,t.tag))}function xw(e,t){switch(Gc(t),t.tag){case 1:return Ot(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ri(),ke(Pt),ke(bt),jc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Xc(t),null;case 13:if(ke(Ne),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(_(340));Oi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ke(Ne),null;case 4:return Ri(),null;case 10:return Hc(t.type._context),null;case 22:case 23:return id(),null;case 24:return null;default:return null}}var za=!1,yt=!1,Ew=typeof WeakSet=="function"?WeakSet:Set,V=null;function xi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function pc(e,t,n){try{n()}catch(r){Oe(e,t,r)}}var Fh=!1;function Aw(e,t){if(Qu=ls,e=Em(),Rc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(E){n=null;break e}var l=0,u=-1,d=-1,p=0,m=0,v=e,I=null;t:for(;;){for(var x;v!==n||i!==0&&v.nodeType!==3||(u=l+i),v!==a||r!==0&&v.nodeType!==3||(d=l+r),v.nodeType===3&&(l+=v.nodeValue.length),(x=v.firstChild)!==null;)I=v,v=x;for(;;){if(v===e)break t;if(I===n&&++p===i&&(u=l),I===a&&++m===r&&(d=l),(x=v.nextSibling)!==null)break;v=I,I=v.parentNode}v=x}n=u===-1||d===-1?null:{start:u,end:d}}else n=null}n=n||{start:0,end:0}}else n=null;for($u={focusedElem:e,selectionRange:n},ls=!1,V=t;V!==null;)if(t=V,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var w=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var A=w.memoizedProps,N=w.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?A:hn(t.type,A),N);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(E){Oe(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return w=Fh,Fh=!1,w}function Eo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&pc(t,n,a)}i=i.next}while(i!==r)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Sg(e){var t=e.alternate;t!==null&&(e.alternate=null,Sg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Tn],delete t[Go],delete t[ec],delete t[lw],delete t[uw])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wg(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ds));else if(r!==4&&(e=e.child,e!==null))for(mc(e,t,n),e=e.sibling;e!==null;)mc(e,t,n),e=e.sibling}function gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gc(e,t,n),e=e.sibling;e!==null;)gc(e,t,n),e=e.sibling}var rt=null,mn=!1;function cr(e,t,n){for(n=n.child;n!==null;)xg(e,t,n),n=n.sibling}function xg(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(ks,n)}catch(u){}switch(n.tag){case 5:yt||xi(n,t);case 6:var r=rt,i=mn;rt=null,cr(e,t,n),rt=r,mn=i,rt!==null&&(mn?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(mn?(e=rt,n=n.stateNode,e.nodeType===8?bu(e.parentNode,n):e.nodeType===1&&bu(e,n),Po(e)):bu(rt,n.stateNode));break;case 4:r=rt,i=mn,rt=n.stateNode.containerInfo,mn=!0,cr(e,t,n),rt=r,mn=i;break;case 0:case 11:case 14:case 15:if(!yt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,l=a.destroy;a=a.tag,l!==void 0&&((a&2)!==0||(a&4)!==0)&&pc(n,t,l),i=i.next}while(i!==r)}cr(e,t,n);break;case 1:if(!yt&&(xi(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){Oe(n,t,u)}cr(e,t,n);break;case 21:cr(e,t,n);break;case 22:n.mode&1?(yt=(r=yt)||n.memoizedState!==null,cr(e,t,n),yt=r):cr(e,t,n);break;default:cr(e,t,n)}}function Mh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ew),t.forEach(function(r){var i=_w.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function pn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=l),r&=~a}if(r=i,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tw(r/1960))-r,10e?16:e,gr===null)var r=!1;else{if(e=gr,gr=null,xs=0,(oe&6)!==0)throw Error(_(331));var i=oe;for(oe|=4,V=e.current;V!==null;){var a=V,l=a.child;if((V.flags&16)!==0){var u=a.deletions;if(u!==null){for(var d=0;dWe()-nd?jr(e,0):td|=n),_t(e,t)}function Dg(e,t){t===0&&((e.mode&1)===0?t=1:(t=Da,Da<<=1,(Da&130023424)===0&&(Da=4194304)));var n=At();e=qn(e,t),e!==null&&(zo(e,t,n),_t(e,n))}function Ow(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Dg(e,n)}function _w(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(t),Dg(e,n)}var Pg;Pg=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pt.current)Dt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Dt=!1,Sw(e,t,n);Dt=(e.flags&131072)!==0}else Dt=!1,Fe&&(t.flags&1048576)!==0&&Rm(t,ms,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qa(e,t),e=t.pendingProps;var i=Pi(t,bt.current);Ni(t,n),i=Jc(null,t,r,e,i,n);var a=Qc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ot(r)?(a=!0,ps(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zc(t),i.updater=Ps,t.stateNode=i,i._reactInternals=t,ac(t,r,e,n),t=uc(null,t,r,!0,a,n)):(t.tag=0,Fe&&a&&Wc(t),Et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qa(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ww(r),e=hn(r,e),i){case 0:t=lc(null,t,r,e,n);break e;case 1:t=Ah(null,t,r,e,n);break e;case 11:t=xh(null,t,r,e,n);break e;case 14:t=Eh(null,t,r,hn(r.type,e),n);break e}throw Error(_(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),lc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),Ah(e,t,r,i,n);case 3:e:{if(gg(t),e===null)throw Error(_(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Vm(e,t),ys(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Wi(Error(_(423)),t),t=kh(e,t,r,n,i);break e}else if(r!==i){i=Wi(Error(_(424)),t),t=kh(e,t,r,n,i);break e}else for(Zt=Ir(t.stateNode.containerInfo.firstChild),zt=t,Fe=!0,gn=null,n=Zm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Oi(),r===i){t=er(e,t,n);break e}Et(e,t,r,n)}t=t.child}return t;case 5:return zm(t),e===null&&rc(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,l=i.children,Ku(r,i)?l=null:a!==null&&Ku(r,a)&&(t.flags|=32),mg(e,t),Et(e,t,l,n),t.child;case 6:return e===null&&rc(t),null;case 13:return vg(e,t,n);case 4:return zc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=_i(t,null,r,n):Et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),xh(e,t,r,i,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value,Se(gs,r._currentValue),r._currentValue=l,a!==null)if(bn(a.value,l)){if(a.children===i.children&&!Pt.current){t=er(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var u=a.dependencies;if(u!==null){l=a.child;for(var d=u.firstContext;d!==null;){if(d.context===r){if(a.tag===1){d=Qn(-1,n&-n),d.tag=2;var p=a.updateQueue;if(p!==null){p=p.shared;var m=p.pending;m===null?d.next=d:(d.next=m.next,m.next=d),p.pending=d}}a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),ic(a.return,n,t),u.lanes|=n;break}d=d.next}}else if(a.tag===10)l=a.type===t.type?null:a.child;else if(a.tag===18){if(l=a.return,l===null)throw Error(_(341));l.lanes|=n,u=l.alternate,u!==null&&(u.lanes|=n),ic(l,n,t),l=a.sibling}else l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===t){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}Et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ni(t,n),i=nn(i),r=r(i),t.flags|=1,Et(e,t,r,n),t.child;case 14:return r=t.type,i=hn(r,t.pendingProps),i=hn(r.type,i),Eh(e,t,r,i,n);case 15:return pg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:hn(r,i),qa(e,t),t.tag=1,Ot(r)?(e=!0,ps(t)):e=!1,Ni(t,n),Hm(t,r,i),ac(t,r,i,n),uc(null,t,r,!0,e,n);case 19:return yg(e,t,n);case 22:return hg(e,t,n)}throw Error(_(156,t.tag))};function Og(e,t){return am(e,t)}function Rw(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.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 en(e,t,n,r){return new Rw(e,t,n,r)}function ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ww(e){if(typeof e=="function")return ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ec)return 11;if(e===Ac)return 14}return 2}function xr(e,t){var n=e.alternate;return n===null?(n=en(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ns(e,t,n,r,i,a){var l=2;if(r=e,typeof e=="function")ad(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case mi:return Ur(n.children,i,a,t);case xc:l=8,i|=8;break;case Nu:return e=en(12,n,t,i|2),e.elementType=Nu,e.lanes=a,e;case Mu:return e=en(13,n,t,i),e.elementType=Mu,e.lanes=a,e;case Du:return e=en(19,n,t,i),e.elementType=Du,e.lanes=a,e;case Yh:return Ws(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Bh:l=10;break e;case Hh:l=9;break e;case Ec:l=11;break e;case Ac:l=14;break e;case dr:l=16,r=null;break e}throw Error(_(130,e==null?e:typeof e,""))}return t=en(l,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ur(e,t,n,r){return e=en(7,e,r,t),e.lanes=n,e}function Ws(e,t,n,r){return e=en(22,e,r,t),e.elementType=Yh,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return e=en(6,e,null,t),e.lanes=n,e}function Tu(e,t,n){return t=en(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Gw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=du(0),this.expirationTimes=du(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=du(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function sd(e,t,n,r,i,a,l,u,d){return e=new Gw(e,t,n,u,d),t===1?(t=1,a===!0&&(t|=8)):t=0,a=en(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zc(a),e}function Lw(e,t,n){var r=3{"use strict";function Lg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lg)}catch(e){console.error(e)}}Lg(),Vg.exports=Gg()});var Ys=te(dd=>{"use strict";var Bg=Hs();dd.createRoot=Bg.createRoot,dd.hydrateRoot=Bg.hydrateRoot;var qE});var i0=te(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});function Qw(e){if(e.sheet)return e.sheet;for(var t=0;t{"use strict";o0.exports=i0()});var l0=te((Ks,s0)=>{(function(e,t){typeof Ks=="object"&&typeof s0!="undefined"?t(Ks):typeof define=="function"&&define.amd?define(["exports"],t):(e=e||self,t(e.stylis={}))})(Ks,function(e){"use strict";var t="-ms-",n="-moz-",r="-webkit-",i="comm",a="rule",l="decl",u="@page",d="@media",p="@import",m="@charset",v="@viewport",I="@supports",x="@document",w="@namespace",A="@keyframes",N="@font-face",g="@counter-style",b="@font-feature-values",C=Math.abs,E=String.fromCharCode,M=Object.assign;function F(y,L){return Z(y,0)^45?(((L<<2^Z(y,0))<<2^Z(y,1))<<2^Z(y,2))<<2^Z(y,3):0}function P(y){return y.trim()}function D(y,L){return(y=L.exec(y))?y[0]:y}function O(y,L,X){return y.replace(L,X)}function B(y,L){return y.indexOf(L)}function Z(y,L){return y.charCodeAt(L)|0}function ne(y,L,X){return y.slice(L,X)}function ce(y){return y.length}function ae(y){return y.length}function ee(y,L){return L.push(y),y}function Le(y,L){return y.map(L).join("")}e.line=1,e.column=1,e.length=0,e.position=0,e.character=0,e.characters="";function Ue(y,L,X,U,K,ct,xe){return{value:y,root:L,parent:X,type:U,props:K,children:ct,line:e.line,column:e.column,length:xe,return:""}}function ve(y,L){return M(Ue("",null,null,"",null,null,0),y,{length:-y.length},L)}function Ct(){return e.character}function at(){return e.character=e.position>0?Z(e.characters,--e.position):0,e.column--,e.character===10&&(e.column=1,e.line--),e.character}function we(){return e.character=e.position2||lt(e.character)>3?"":" "}function Dr(y){for(;we();)switch(lt(e.character)){case 0:ee(_r(e.position-1),y);break;case 2:ee(Gt(e.character),y);break;default:ee(E(e.character),y)}return y}function Pr(y,L){for(;--L&&we()&&!(e.character<48||e.character>102||e.character>57&&e.character<65||e.character>70&&e.character<97););return st(y,G()+(L<6&&se()==32&&we()==32))}function or(y){for(;we();)switch(e.character){case y:return e.position;case 34:case 39:y!==34&&y!==39&&or(e.character);break;case 40:y===41&&or(y);break;case 92:we();break}return e.position}function Or(y,L){for(;we()&&y+e.character!==47+10;)if(y+e.character===42+42&&se()===47)break;return"/*"+st(L,e.position-1)+"*"+E(y===47?y:we())}function _r(y){for(;!lt(se());)we();return st(y,e.position)}function kl(y){return tt(Rr("",null,null,null,[""],y=Ve(y),0,[0],y))}function Rr(y,L,X,U,K,ct,xe,Qe,Qt){for(var Nt=0,re=0,nt=xe,wn=0,ln=0,Lt=0,dt=1,un=1,ft=1,pt=0,Vt="",oi=K,Bt=ct,St=U,W=Vt;un;)switch(Lt=pt,pt=we()){case 40:if(Lt!=108&&Z(W,nt-1)==58){B(W+=O(Gt(pt),"&","&\f"),"&\f")!=-1&&(ft=-1);break}case 34:case 39:case 91:W+=Gt(pt);break;case 9:case 10:case 13:case 32:W+=ri(Lt);break;case 92:W+=Pr(G()-1,7);continue;case 47:switch(se()){case 42:case 47:ee(Be(Or(we(),G()),L,X),Qt);break;default:W+="/"}break;case 123*dt:Qe[Nt++]=ce(W)*ft;case 125*dt:case 59:case 0:switch(pt){case 0:case 125:un=0;case 59+re:ln>0&&ce(W)-nt&&ee(ln>32?ut(W+";",U,X,nt-1):ut(O(W," ","")+";",U,X,nt-2),Qt);break;case 59:W+=";";default:if(ee(St=Rn(W,L,X,Nt,re,K,Qe,Vt,oi=[],Bt=[],nt),ct),pt===123)if(re===0)Rr(W,L,St,St,oi,ct,nt,Qe,Bt);else switch(wn===99&&Z(W,3)===110?100:wn){case 100:case 109:case 115:Rr(y,St,St,U&&ee(Rn(y,St,St,0,0,K,Qe,Vt,K,oi=[],nt),Bt),K,Bt,nt,Qe,U?oi:Bt);break;default:Rr(W,St,St,St,[""],Bt,0,Qe,Bt)}}Nt=re=ln=0,dt=ft=1,Vt=W="",nt=xe;break;case 58:nt=1+ce(W),ln=Lt;default:if(dt<1){if(pt==123)--dt;else if(pt==125&&dt++==0&&at()==125)continue}switch(W+=E(pt),pt*dt){case 38:ft=re>0?1:(W+="\f",-1);break;case 44:Qe[Nt++]=(ce(W)-1)*ft,ft=1;break;case 64:se()===45&&(W+=Gt(we())),wn=se(),re=nt=ce(Vt=W+=_r(G())),pt++;break;case 45:Lt===45&&ce(W)==2&&(dt=0)}}return ct}function Rn(y,L,X,U,K,ct,xe,Qe,Qt,Nt,re){for(var nt=K-1,wn=K===0?ct:[""],ln=ae(wn),Lt=0,dt=0,un=0;Lt0?wn[ft]+" "+pt:O(pt,/&\f/g,wn[ft])))&&(Qt[un++]=Vt);return Ue(y,L,X,K===0?a:Qe,Qt,Nt,re)}function Be(y,L,X){return Ue(y,L,X,i,E(Ct()),ne(y,2,-2),0)}function ut(y,L,X,U){return Ue(y,L,X,l,ne(y,0,U),ne(y,U+1,-1),U)}function Wr(y,L,X){switch(F(y,L)){case 5103:return r+"print-"+y+y;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+y+y;case 4789:return n+y+y;case 5349:case 4246:case 4810:case 6968:case 2756:return r+y+n+y+t+y+y;case 5936:switch(Z(y,L+11)){case 114:return r+y+t+O(y,/[svh]\w+-[tblr]{2}/,"tb")+y;case 108:return r+y+t+O(y,/[svh]\w+-[tblr]{2}/,"tb-rl")+y;case 45:return r+y+t+O(y,/[svh]\w+-[tblr]{2}/,"lr")+y}case 6828:case 4268:case 2903:return r+y+t+y+y;case 6165:return r+y+t+"flex-"+y+y;case 5187:return r+y+O(y,/(\w+).+(:[^]+)/,r+"box-$1$2"+t+"flex-$1$2")+y;case 5443:return r+y+t+"flex-item-"+O(y,/flex-|-self/g,"")+(D(y,/flex-|baseline/)?"":t+"grid-row-"+O(y,/flex-|-self/g,""))+y;case 4675:return r+y+t+"flex-line-pack"+O(y,/align-content|flex-|-self/g,"")+y;case 5548:return r+y+t+O(y,"shrink","negative")+y;case 5292:return r+y+t+O(y,"basis","preferred-size")+y;case 6060:return r+"box-"+O(y,"-grow","")+r+y+t+O(y,"grow","positive")+y;case 4554:return r+O(y,/([^-])(transform)/g,"$1"+r+"$2")+y;case 6187:return O(O(O(y,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),y,"")+y;case 5495:case 3959:return O(y,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return O(O(y,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+t+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+y+y;case 4200:if(!D(y,/flex-|baseline/))return t+"grid-column-align"+ne(y,L)+y;break;case 2592:case 3360:return t+O(y,"template-","")+y;case 4384:case 3616:return X&&X.some(function(U,K){return L=K,D(U.props,/grid-\w+-end/)})?~B(y+(X=X[L].value),"span")?y:t+O(y,"-start","")+y+t+"grid-row-span:"+(~B(X,"span")?D(X,/\d+/):+D(X,/\d+/)-+D(y,/\d+/))+";":t+O(y,"-start","")+y;case 4896:case 4128:return X&&X.some(function(U){return D(U.props,/grid-\w+-start/)})?y:t+O(O(y,"-end","-span"),"span ","")+y;case 4095:case 3583:case 4068:case 2532:return O(y,/(.+)-inline(.+)/,r+"$1$2")+y;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ce(y)-1-L>6)switch(Z(y,L+1)){case 109:if(Z(y,L+4)!==45)break;case 102:return O(y,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+n+(Z(y,L+3)==108?"$3":"$2-$3"))+y;case 115:return~B(y,"stretch")?Wr(O(y,"stretch","fill-available"),L,X)+y:y}break;case 5152:case 5920:return O(y,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(U,K,ct,xe,Qe,Qt,Nt){return t+K+":"+ct+Nt+(xe?t+K+"-span:"+(Qe?Qt:+Qt-+ct)+Nt:"")+y});case 4949:if(Z(y,L+6)===121)return O(y,":",":"+r)+y;break;case 6444:switch(Z(y,Z(y,14)===45?18:11)){case 120:return O(y,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+r+(Z(y,14)===45?"inline-":"")+"box$3$1"+r+"$2$3$1"+t+"$2box$3")+y;case 100:return O(y,":",":"+t)+y}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(y,"scroll-","scroll-snap-")+y}return y}function Wn(y,L){for(var X="",U=ae(y),K=0;K-1&&!y.return)switch(y.type){case l:y.return=Wr(y.value,y.length,X);return;case A:return Wn([ve(y,{value:O(y.value,"@","@"+r)})],U);case a:if(y.length)return Le(y.props,function(K){switch(D(K,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([ve(y,{props:[O(K,/:(read-\w+)/,":"+n+"$1")]})],U);case"::placeholder":return Wn([ve(y,{props:[O(K,/:(plac\w+)/,":"+r+"input-$1")]}),ve(y,{props:[O(K,/:(plac\w+)/,":"+n+"$1")]}),ve(y,{props:[O(K,/:(plac\w+)/,t+"input-$1")]})],U)}return""})}}function J(y){switch(y.type){case a:y.props=y.props.map(function(L){return Le(_n(L),function(X,U,K){switch(Z(X,0)){case 12:return ne(X,1,ce(X));case 0:case 40:case 43:case 62:case 126:return X;case 58:K[++U]==="global"&&(K[U]="",K[++U]="\f"+ne(K[U],U=1,-1));case 32:return U===1?"":X;default:switch(U){case 0:return y=X,ae(K)>1?"":X;case(U=ae(K)-1):case 2:return U===2?X+y+y:X+y;default:return X}}})})}}e.CHARSET=m,e.COMMENT=i,e.COUNTER_STYLE=g,e.DECLARATION=l,e.DOCUMENT=x,e.FONT_FACE=N,e.FONT_FEATURE_VALUES=b,e.IMPORT=p,e.KEYFRAMES=A,e.MEDIA=d,e.MOZ=n,e.MS=t,e.NAMESPACE=w,e.PAGE=u,e.RULESET=a,e.SUPPORTS=I,e.VIEWPORT=v,e.WEBKIT=r,e.abs=C,e.alloc=Ve,e.append=ee,e.assign=M,e.caret=G,e.char=Ct,e.charat=Z,e.combine=Le,e.comment=Be,e.commenter=Or,e.compile=kl,e.copy=ve,e.dealloc=tt,e.declaration=ut,e.delimit=Gt,e.delimiter=or,e.escaping=Pr,e.from=E,e.hash=F,e.identifier=_r,e.indexof=B,e.match=D,e.middleware=Tl,e.namespace=J,e.next=we,e.node=Ue,e.parse=Rr,e.peek=se,e.prefix=Wr,e.prefixer=Ft,e.prev=at,e.replace=O,e.ruleset=Rn,e.rulesheet=ii,e.serialize=Wn,e.sizeof=ae,e.slice=st,e.stringify=Je,e.strlen=ce,e.substr=ne,e.token=lt,e.tokenize=_n,e.tokenizer=Dr,e.trim=P,e.whitespace=ri,Object.defineProperty(e,"__esModule",{value:!0})})});var u0=te(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});var qw=function(t){var n=new WeakMap;return function(r){if(n.has(r))return n.get(r);var i=t(r);return n.set(r,i),i}};Ad.default=qw});var qs=te((pk,c0)=>{"use strict";c0.exports=u0()});var d0=te(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});function ex(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}kd.default=ex});var Td=te((mk,f0)=>{"use strict";f0.exports=d0()});var g0=te(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var tx=a0(),T=l0(),nx=qs(),rx=Td();function h0(e){return e&&e.__esModule?e:{default:e}}var ix=h0(nx),ox=h0(rx),ax=function(t,n,r){for(var i=0,a=0;i=a,a=T.peek(),i===38&&a===12&&(n[r]=1),!T.token(a);)T.next();return T.slice(t,T.position)},sx=function(t,n){var r=-1,i=44;do switch(T.token(i)){case 0:i===38&&T.peek()===12&&(n[r]=1),t[r]+=ax(T.position-1,n,r);break;case 2:t[r]+=T.delimit(i);break;case 4:if(i===44){t[++r]=T.peek()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=T.from(i)}while(i=T.next());return t},lx=function(t,n){return T.dealloc(sx(T.alloc(t),n))},p0=new WeakMap,ux=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!p0.get(r))&&!i){p0.set(t,!0);for(var a=[],l=lx(n,a),u=r.props,d=0,p=0;d6)switch(T.charat(e,t+1)){case 109:if(T.charat(e,t+4)!==45)break;case 102:return T.replace(e,/(.+:)(.+)-([^]+)/,"$1"+T.WEBKIT+"$2-$3$1"+T.MOZ+(T.charat(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~T.indexof(e,"stretch")?m0(T.replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(T.charat(e,t+1)!==115)break;case 6444:switch(T.charat(e,T.strlen(e)-3-(~T.indexof(e,"!important")&&10))){case 107:return T.replace(e,":",":"+T.WEBKIT)+e;case 101:return T.replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T.WEBKIT+(T.charat(e,14)===45?"inline-":"")+"box$3$1"+T.WEBKIT+"$2$3$1"+T.MS+"$2box$3")+e}break;case 5936:switch(T.charat(e,t+11)){case 114:return T.WEBKIT+e+T.MS+T.replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T.WEBKIT+e+T.MS+T.replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T.WEBKIT+e+T.MS+T.replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T.WEBKIT+e+T.MS+e+e}return e}var dx=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case T.DECLARATION:t.return=m0(t.value,t.length);break;case T.KEYFRAMES:return T.serialize([T.copy(t,{value:T.replace(t.value,"@","@"+T.WEBKIT)})],i);case T.RULESET:if(t.length)return T.combine(t.props,function(a){switch(T.match(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return T.serialize([T.copy(t,{props:[T.replace(a,/:(read-\w+)/,":"+T.MOZ+"$1")]})],i);case"::placeholder":return T.serialize([T.copy(t,{props:[T.replace(a,/:(plac\w+)/,":"+T.WEBKIT+"input-$1")]}),T.copy(t,{props:[T.replace(a,/:(plac\w+)/,":"+T.MOZ+"$1")]}),T.copy(t,{props:[T.replace(a,/:(plac\w+)/,T.MS+"input-$1")]})],i)}return""})}},el=typeof document!="undefined",fx=el?void 0:ix.default(function(){return ox.default(function(){var e={};return function(t){return e[t]}})}),px=[dx],hx=function(t){var n=t.key;if(el&&n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var M=E.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var i=t.stylisPlugins||px,a={},l,u=[];el&&(l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var M=E.getAttribute("data-emotion").split(" "),F=1;F{"use strict";v0.exports=g0()});var Dd=te((yk,rr)=>{function Md(){return rr.exports=Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t{"use strict";var qe=typeof Symbol=="function"&&Symbol.for,Pd=qe?Symbol.for("react.element"):60103,Od=qe?Symbol.for("react.portal"):60106,tl=qe?Symbol.for("react.fragment"):60107,nl=qe?Symbol.for("react.strict_mode"):60108,rl=qe?Symbol.for("react.profiler"):60114,il=qe?Symbol.for("react.provider"):60109,ol=qe?Symbol.for("react.context"):60110,_d=qe?Symbol.for("react.async_mode"):60111,al=qe?Symbol.for("react.concurrent_mode"):60111,sl=qe?Symbol.for("react.forward_ref"):60112,ll=qe?Symbol.for("react.suspense"):60113,mx=qe?Symbol.for("react.suspense_list"):60120,ul=qe?Symbol.for("react.memo"):60115,cl=qe?Symbol.for("react.lazy"):60116,gx=qe?Symbol.for("react.block"):60121,vx=qe?Symbol.for("react.fundamental"):60117,yx=qe?Symbol.for("react.responder"):60118,bx=qe?Symbol.for("react.scope"):60119;function Jt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pd:switch(e=e.type,e){case _d:case al:case tl:case rl:case nl:case ll:return e;default:switch(e=e&&e.$$typeof,e){case ol:case sl:case cl:case ul:case il:return e;default:return t}}case Od:return t}}}function y0(e){return Jt(e)===al}ge.AsyncMode=_d;ge.ConcurrentMode=al;ge.ContextConsumer=ol;ge.ContextProvider=il;ge.Element=Pd;ge.ForwardRef=sl;ge.Fragment=tl;ge.Lazy=cl;ge.Memo=ul;ge.Portal=Od;ge.Profiler=rl;ge.StrictMode=nl;ge.Suspense=ll;ge.isAsyncMode=function(e){return y0(e)||Jt(e)===_d};ge.isConcurrentMode=y0;ge.isContextConsumer=function(e){return Jt(e)===ol};ge.isContextProvider=function(e){return Jt(e)===il};ge.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pd};ge.isForwardRef=function(e){return Jt(e)===sl};ge.isFragment=function(e){return Jt(e)===tl};ge.isLazy=function(e){return Jt(e)===cl};ge.isMemo=function(e){return Jt(e)===ul};ge.isPortal=function(e){return Jt(e)===Od};ge.isProfiler=function(e){return Jt(e)===rl};ge.isStrictMode=function(e){return Jt(e)===nl};ge.isSuspense=function(e){return Jt(e)===ll};ge.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===tl||e===al||e===rl||e===nl||e===ll||e===mx||typeof e=="object"&&e!==null&&(e.$$typeof===cl||e.$$typeof===ul||e.$$typeof===il||e.$$typeof===ol||e.$$typeof===sl||e.$$typeof===vx||e.$$typeof===yx||e.$$typeof===bx||e.$$typeof===gx)};ge.typeOf=Jt});var C0=te((Ik,I0)=>{"use strict";I0.exports=b0()});var Gd=te((Ck,k0)=>{"use strict";var Rd=C0(),Ix={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Cx={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Sx={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E0={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wd={};Wd[Rd.ForwardRef]=Sx;Wd[Rd.Memo]=E0;function S0(e){return Rd.isMemo(e)?E0:Wd[e.$$typeof]||Ix}var wx=Object.defineProperty,xx=Object.getOwnPropertyNames,w0=Object.getOwnPropertySymbols,Ex=Object.getOwnPropertyDescriptor,Ax=Object.getPrototypeOf,x0=Object.prototype;function A0(e,t,n){if(typeof t!="string"){if(x0){var r=Ax(t);r&&r!==x0&&A0(e,r,n)}var i=xx(t);w0&&(i=i.concat(w0(t)));for(var a=S0(e),l=S0(t),u=0;u{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});var kx=Gd();function Tx(e){return e&&e.__esModule?e:{default:e}}var Fx=Tx(kx),Nx=function(e,t){return Fx.default(e,t)};Ld.default=Nx});var F0=te(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var Bd=typeof document!="undefined";function Mx(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var T0=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Bd===!1&&t.compat!==void 0)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Dx=function(t,n,r){T0(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a="",l=n;do{var u=t.insert(n===l?"."+i:"",l,t.sheet,!0);!Bd&&u!==void 0&&(a+=u),l=l.next}while(l!==void 0);if(!Bd&&a.length!==0)return a}};qo.getRegisteredStyles=Mx;qo.insertStyles=Dx;qo.registerStyles=T0});var Hd=te((xk,N0)=>{"use strict";N0.exports=F0()});var M0=te(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});function Px(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}Yd.default=Px});var P0=te((Ak,D0)=>{"use strict";D0.exports=M0()});var O0=te(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});var Ox={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};Zd.default=Ox});var R0=te((Tk,_0)=>{"use strict";_0.exports=O0()});var B0=te(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});var _x=P0(),Rx=R0(),Wx=Td();function Xd(e){return e&&e.__esModule?e:{default:e}}var Gx=Xd(_x),Lx=Xd(Rx),Vx=Xd(Wx),Bx=/[A-Z]|^ms/g,Hx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,V0=function(t){return t.charCodeAt(1)===45},W0=function(t){return t!=null&&typeof t!="boolean"},zd=Vx.default(function(e){return V0(e)?e:e.replace(Bx,"-$&").toLowerCase()}),G0=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hx,function(r,i,a){return Mn={name:i,styles:a,next:Mn},i})}return Lx.default[t]!==1&&!V0(t)&&typeof n=="number"&&n!==0?n+"px":n};function ea(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Mn={name:n.name,styles:n.styles,next:Mn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Mn={name:r.name,styles:r.styles,next:Mn},r=r.next;var i=n.styles+";";return i}return Yx(e,t,n)}case"function":{if(e!==void 0){var a=Mn,l=n(e);return Mn=a,ea(e,t,l)}break}}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function Yx(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i{"use strict";H0.exports=B0()});var j0=te(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var z0=Pe();function zx(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Y0=zx(z0),Xx=typeof document!="undefined",Z0=function(t){return t()},X0=Y0["useInsertionEffect"]?Y0["useInsertionEffect"]:!1,jx=Xx&&X0||Z0,Ux=X0||z0.useLayoutEffect;dl.useInsertionEffectAlwaysWithSyncFallback=jx;dl.useInsertionEffectWithLayoutFallback=Ux});var Jd=te((Dk,U0)=>{"use strict";U0.exports=j0()});var q0=te(Rt=>{"use strict";var ze=Pe(),Jx=Nd(),Q0=Dd(),Qx=qs(),$x=Vd(),Qd=Hd(),Kx=Ud(),qx=Jd();function $0(e){return e&&e.__esModule?e:{default:e}}var K0=$0(Jx),J0=$0(Qx),Kd=typeof document!="undefined",qd={}.hasOwnProperty,ta=ze.createContext(typeof HTMLElement!="undefined"?K0.default({key:"css"}):null),e2=ta.Provider,t2=function(){return ze.useContext(ta)};Rt.withEmotionCache=function(t){return ze.forwardRef(function(n,r){var i=ze.useContext(ta);return t(n,i,r)})};Kd||(Rt.withEmotionCache=function(t){return function(n){var r=ze.useContext(ta);return r===null?(r=K0.default({key:"css"}),ze.createElement(ta.Provider,{value:r},t(n,r))):t(n,r)}});var Yi=ze.createContext({}),n2=function(){return ze.useContext(Yi)},r2=function(t,n){if(typeof n=="function"){var r=n(t);return r}return Q0({},t,n)},i2=J0.default(function(e){return J0.default(function(t){return r2(e,t)})}),o2=function(t){var n=ze.useContext(Yi);return t.theme!==n&&(n=i2(n)(t.theme)),ze.createElement(Yi.Provider,{value:n},t.children)};function a2(e){var t=e.displayName||e.name||"Component",n=function(a,l){var u=ze.useContext(Yi);return ze.createElement(e,Q0({theme:u,ref:l},a))},r=ze.forwardRef(n);return r.displayName="WithTheme("+t+")",$x.default(r,e)}var $d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",s2=function(t,n){var r={};for(var i in n)qd.call(n,i)&&(r[i]=n[i]);return r[$d]=t,r},l2=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;Qd.registerStyles(n,r,i);var a=qx.useInsertionEffectAlwaysWithSyncFallback(function(){return Qd.insertStyles(n,r,i)});if(!Kd&&a!==void 0){for(var l,u=r.name,d=r.next;d!==void 0;)u+=" "+d.name,d=d.next;return ze.createElement("style",(l={},l["data-emotion"]=n.key+" "+u,l.dangerouslySetInnerHTML={__html:a},l.nonce=n.sheet.nonce,l))}return null},u2=Rt.withEmotionCache(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[$d],a=[r],l="";typeof e.className=="string"?l=Qd.getRegisteredStyles(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var u=Kx.serializeStyles(a,void 0,ze.useContext(Yi));l+=t.key+"-"+u.name;var d={};for(var p in e)qd.call(e,p)&&p!=="css"&&p!==$d&&(d[p]=e[p]);return d.ref=n,d.className=l,ze.createElement(ze.Fragment,null,ze.createElement(l2,{cache:t,serialized:u,isStringTag:typeof i=="string"}),ze.createElement(i,d))});Rt.CacheProvider=e2;Rt.Emotion=u2;Rt.ThemeContext=Yi;Rt.ThemeProvider=o2;Rt.__unsafe_useEmotionCache=t2;Rt.createEmotionProps=s2;Rt.hasOwnProperty=qd;Rt.isBrowser=Kd;Rt.useTheme=n2;Rt.withTheme=a2});var nv=te(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});var Dn=Pe();Nd();var et=q0();Dd();qs();Gd();Vd();var fl=Hd(),tf=Ud(),ef=Jd(),ev=function(t,n){var r=arguments;if(n==null||!et.hasOwnProperty.call(n,"css"))return Dn.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=et.Emotion,a[1]=et.createEmotionProps(t,n);for(var l=2;l{"use strict";rv.exports=nv()});var Ly=te((Cf,ji)=>{(function(e,t){typeof Cf=="object"&&typeof ji!="undefined"?ji.exports=t():typeof define=="function"&&define.amd?define(t):e.moment=t()})(Cf,function(){"use strict";var e;function t(){return e.apply(null,arguments)}function n(o){e=o}function r(o){return o instanceof Array||Object.prototype.toString.call(o)==="[object Array]"}function i(o){return o!=null&&Object.prototype.toString.call(o)==="[object Object]"}function a(o,s){return Object.prototype.hasOwnProperty.call(o,s)}function l(o){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(o).length===0;var s;for(s in o)if(a(o,s))return!1;return!0}function u(o){return o===void 0}function d(o){return typeof o=="number"||Object.prototype.toString.call(o)==="[object Number]"}function p(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function m(o,s){var c=[],f,h=o.length;for(f=0;f>>0,f;for(f=0;f0)for(c=0;c=0;return(S?c?"+":"":"-")+Math.pow(10,Math.max(0,h)).toString().substr(1)+f}var Ct=/(\[[^\[]*\])|(\\)?([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,at=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,we={},se={};function G(o,s,c,f){var h=f;typeof f=="string"&&(h=function(){return this[f]()}),o&&(se[o]=h),s&&(se[s[0]]=function(){return ve(h.apply(this,arguments),s[1],s[2])}),c&&(se[c]=function(){return this.localeData().ordinal(h.apply(this,arguments),o)})}function st(o){return o.match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"")}function lt(o){var s=o.match(Ct),c,f;for(c=0,f=s.length;c=0&&at.test(o);)o=o.replace(at,f),at.lastIndex=0,c-=1;return o}var Gt={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 _n(o){var s=this._longDateFormat[o],c=this._longDateFormat[o.toUpperCase()];return s||!c?s:(this._longDateFormat[o]=c.match(Ct).map(function(f){return f==="MMMM"||f==="MM"||f==="DD"||f==="dddd"?f.slice(1):f}).join(""),this._longDateFormat[o])}var ri="Invalid date";function Dr(){return this._invalidDate}var Pr="%d",or=/\d{1,2}/;function Or(o){return this._ordinal.replace("%d",o)}var _r={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 kl(o,s,c,f){var h=this._relativeTime[c];return Z(h)?h(o,s,c,f):h.replace(/%d/i,o)}function Rr(o,s){var c=this._relativeTime[o>0?"future":"past"];return Z(c)?c(s):c.replace(/%s/i,s)}var Rn={};function Be(o,s){var c=o.toLowerCase();Rn[c]=Rn[c+"s"]=Rn[s]=o}function ut(o){return typeof o=="string"?Rn[o]||Rn[o.toLowerCase()]:void 0}function Wr(o){var s={},c,f;for(f in o)a(o,f)&&(c=ut(f),c&&(s[c]=o[f]));return s}var Wn={};function Je(o,s){Wn[o]=s}function Tl(o){var s=[],c;for(c in o)a(o,c)&&s.push({unit:c,priority:Wn[c]});return s.sort(function(f,h){return f.priority-h.priority}),s}function ii(o){return o%4===0&&o%100!==0||o%400===0}function Ft(o){return o<0?Math.ceil(o)||0:Math.floor(o)}function J(o){var s=+o,c=0;return s!==0&&isFinite(s)&&(c=Ft(s)),c}function y(o,s){return function(c){return c!=null?(X(this,o,c),t.updateOffset(this,s),this):L(this,o)}}function L(o,s){return o.isValid()?o._d["get"+(o._isUTC?"UTC":"")+s]():NaN}function X(o,s,c){o.isValid()&&!isNaN(c)&&(s==="FullYear"&&ii(o.year())&&o.month()===1&&o.date()===29?(c=J(c),o._d["set"+(o._isUTC?"UTC":"")+s](c,o.month(),la(c,o.month()))):o._d["set"+(o._isUTC?"UTC":"")+s](c))}function U(o){return o=ut(o),Z(this[o])?this[o]():this}function K(o,s){if(typeof o=="object"){o=Wr(o);var c=Tl(o),f,h=c.length;for(f=0;f68?1900:2e3)};var kf=y("FullYear",!0);function r1(){return ii(this.year())}function i1(o,s,c,f,h,S,k){var H;return o<100&&o>=0?(H=new Date(o+400,s,c,f,h,S,k),isFinite(H.getFullYear())&&H.setFullYear(o)):H=new Date(o,s,c,f,h,S,k),H}function Qi(o){var s,c;return o<100&&o>=0?(c=Array.prototype.slice.call(arguments),c[0]=o+400,s=new Date(Date.UTC.apply(null,c)),isFinite(s.getUTCFullYear())&&s.setUTCFullYear(o)):s=new Date(Date.UTC.apply(null,arguments)),s}function ua(o,s,c){var f=7+s-c,h=(7+Qi(o,0,f).getUTCDay()-s)%7;return-h+f-1}function Tf(o,s,c,f,h){var S=(7+c-f)%7,k=ua(o,f,h),H=1+7*(s-1)+S+k,Q,be;return H<=0?(Q=o-1,be=Ji(Q)+H):H>Ji(o)?(Q=o+1,be=H-Ji(o)):(Q=o,be=H),{year:Q,dayOfYear:be}}function $i(o,s,c){var f=ua(o.year(),s,c),h=Math.floor((o.dayOfYear()-f-1)/7)+1,S,k;return h<1?(k=o.year()-1,S=h+Vn(k,s,c)):h>Vn(o.year(),s,c)?(S=h-Vn(o.year(),s,c),k=o.year()+1):(k=o.year(),S=h),{week:S,year:k}}function Vn(o,s,c){var f=ua(o,s,c),h=ua(o+1,s,c);return(Ji(o)-f+h)/7}G("w",["ww",2],"wo","week"),G("W",["WW",2],"Wo","isoWeek"),Be("week","w"),Be("isoWeek","W"),Je("week",5),Je("isoWeek",5),W("w",re),W("ww",re,xe),W("W",re),W("WW",re,xe),Ui(["w","ww","W","WW"],function(o,s,c,f){s[f.substr(0,1)]=J(o)});function o1(o){return $i(o,this._week.dow,this._week.doy).week}var a1={dow:0,doy:6};function s1(){return this._week.dow}function l1(){return this._week.doy}function u1(o){var s=this.localeData().week(this);return o==null?s:this.add((o-s)*7,"d")}function c1(o){var s=$i(this,1,4).week;return o==null?s:this.add((o-s)*7,"d")}G("d",0,"do","day"),G("dd",0,0,function(o){return this.localeData().weekdaysMin(this,o)}),G("ddd",0,0,function(o){return this.localeData().weekdaysShort(this,o)}),G("dddd",0,0,function(o){return this.localeData().weekdays(this,o)}),G("e",0,0,"weekday"),G("E",0,0,"isoWeekday"),Be("day","d"),Be("weekday","e"),Be("isoWeekday","E"),Je("day",11),Je("weekday",11),Je("isoWeekday",11),W("d",re),W("e",re),W("E",re),W("dd",function(o,s){return s.weekdaysMinRegex(o)}),W("ddd",function(o,s){return s.weekdaysShortRegex(o)}),W("dddd",function(o,s){return s.weekdaysRegex(o)}),Ui(["dd","ddd","dddd"],function(o,s,c,f){var h=c._locale.weekdaysParse(o,f,c._strict);h!=null?s.d=h:w(c).invalidWeekday=o}),Ui(["d","e","E"],function(o,s,c,f){s[f]=J(o)});function d1(o,s){return typeof o!="string"?o:isNaN(o)?(o=s.weekdaysParse(o),typeof o=="number"?o:null):parseInt(o,10)}function f1(o,s){return typeof o=="string"?s.weekdaysParse(o)%7||7:isNaN(o)?null:o}function Nl(o,s){return o.slice(s,7).concat(o.slice(0,s))}var p1="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ff="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),h1="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),m1=Bt,g1=Bt,v1=Bt;function y1(o,s){var c=r(this._weekdays)?this._weekdays:this._weekdays[o&&o!==!0&&this._weekdays.isFormat.test(s)?"format":"standalone"];return o===!0?Nl(c,this._week.dow):o?c[o.day()]:c}function b1(o){return o===!0?Nl(this._weekdaysShort,this._week.dow):o?this._weekdaysShort[o.day()]:this._weekdaysShort}function I1(o){return o===!0?Nl(this._weekdaysMin,this._week.dow):o?this._weekdaysMin[o.day()]:this._weekdaysMin}function C1(o,s,c){var f,h,S,k=o.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)S=I([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(S,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(S,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(S,"").toLocaleLowerCase();return c?s==="dddd"?(h=Re.call(this._weekdaysParse,k),h!==-1?h:null):s==="ddd"?(h=Re.call(this._shortWeekdaysParse,k),h!==-1?h:null):(h=Re.call(this._minWeekdaysParse,k),h!==-1?h:null):s==="dddd"?(h=Re.call(this._weekdaysParse,k),h!==-1||(h=Re.call(this._shortWeekdaysParse,k),h!==-1)?h:(h=Re.call(this._minWeekdaysParse,k),h!==-1?h:null)):s==="ddd"?(h=Re.call(this._shortWeekdaysParse,k),h!==-1||(h=Re.call(this._weekdaysParse,k),h!==-1)?h:(h=Re.call(this._minWeekdaysParse,k),h!==-1?h:null)):(h=Re.call(this._minWeekdaysParse,k),h!==-1||(h=Re.call(this._weekdaysParse,k),h!==-1)?h:(h=Re.call(this._shortWeekdaysParse,k),h!==-1?h:null))}function S1(o,s,c){var f,h,S;if(this._weekdaysParseExact)return C1.call(this,o,s,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),f=0;f<7;f++){if(h=I([2e3,1]).day(f),c&&!this._fullWeekdaysParse[f]&&(this._fullWeekdaysParse[f]=new RegExp("^"+this.weekdays(h,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[f]=new RegExp("^"+this.weekdaysShort(h,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[f]=new RegExp("^"+this.weekdaysMin(h,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[f]||(S="^"+this.weekdays(h,"")+"|^"+this.weekdaysShort(h,"")+"|^"+this.weekdaysMin(h,""),this._weekdaysParse[f]=new RegExp(S.replace(".",""),"i")),c&&s==="dddd"&&this._fullWeekdaysParse[f].test(o))return f;if(c&&s==="ddd"&&this._shortWeekdaysParse[f].test(o))return f;if(c&&s==="dd"&&this._minWeekdaysParse[f].test(o))return f;if(!c&&this._weekdaysParse[f].test(o))return f}}function w1(o){if(!this.isValid())return o!=null?this:NaN;var s=this._isUTC?this._d.getUTCDay():this._d.getDay();return o!=null?(o=d1(o,this.localeData()),this.add(o-s,"d")):s}function x1(o){if(!this.isValid())return o!=null?this:NaN;var s=(this.day()+7-this.localeData()._week.dow)%7;return o==null?s:this.add(o-s,"d")}function E1(o){if(!this.isValid())return o!=null?this:NaN;if(o!=null){var s=f1(o,this.localeData());return this.day(this.day()%7?s:s-7)}else return this.day()||7}function A1(o){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ml.call(this),o?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=m1),this._weekdaysStrictRegex&&o?this._weekdaysStrictRegex:this._weekdaysRegex)}function k1(o){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ml.call(this),o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=g1),this._weekdaysShortStrictRegex&&o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function T1(o){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Ml.call(this),o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=v1),this._weekdaysMinStrictRegex&&o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ml(){function o(wt,zn){return zn.length-wt.length}var s=[],c=[],f=[],h=[],S,k,H,Q,be;for(S=0;S<7;S++)k=I([2e3,1]).day(S),H=Ht(this.weekdaysMin(k,"")),Q=Ht(this.weekdaysShort(k,"")),be=Ht(this.weekdays(k,"")),s.push(H),c.push(Q),f.push(be),h.push(H),h.push(Q),h.push(be);s.sort(o),c.sort(o),f.sort(o),h.sort(o),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Dl(){return this.hours()%12||12}function F1(){return this.hours()||24}G("H",["HH",2],0,"hour"),G("h",["hh",2],0,Dl),G("k",["kk",2],0,F1),G("hmm",0,0,function(){return""+Dl.apply(this)+ve(this.minutes(),2)}),G("hmmss",0,0,function(){return""+Dl.apply(this)+ve(this.minutes(),2)+ve(this.seconds(),2)}),G("Hmm",0,0,function(){return""+this.hours()+ve(this.minutes(),2)}),G("Hmmss",0,0,function(){return""+this.hours()+ve(this.minutes(),2)+ve(this.seconds(),2)});function Nf(o,s){G(o,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),s)})}Nf("a",!0),Nf("A",!1),Be("hour","h"),Je("hour",13);function Mf(o,s){return s._meridiemParse}W("a",Mf),W("A",Mf),W("H",re),W("h",re),W("k",re),W("HH",re,xe),W("hh",re,xe),W("kk",re,xe),W("hmm",nt),W("hmmss",wn),W("Hmm",nt),W("Hmmss",wn),ye(["H","HH"],He),ye(["k","kk"],function(o,s,c){var f=J(o);s[He]=f===24?0:f}),ye(["a","A"],function(o,s,c){c._isPm=c._locale.isPM(o),c._meridiem=o}),ye(["h","hh"],function(o,s,c){s[He]=J(o),w(c).bigHour=!0}),ye("hmm",function(o,s,c){var f=o.length-2;s[He]=J(o.substr(0,f)),s[cn]=J(o.substr(f)),w(c).bigHour=!0}),ye("hmmss",function(o,s,c){var f=o.length-4,h=o.length-2;s[He]=J(o.substr(0,f)),s[cn]=J(o.substr(f,2)),s[Ln]=J(o.substr(h)),w(c).bigHour=!0}),ye("Hmm",function(o,s,c){var f=o.length-2;s[He]=J(o.substr(0,f)),s[cn]=J(o.substr(f))}),ye("Hmmss",function(o,s,c){var f=o.length-4,h=o.length-2;s[He]=J(o.substr(0,f)),s[cn]=J(o.substr(f,2)),s[Ln]=J(o.substr(h))});function N1(o){return(o+"").toLowerCase().charAt(0)==="p"}var M1=/[ap]\.?m?\.?/i,D1=y("Hours",!0);function P1(o,s,c){return o>11?c?"pm":"PM":c?"am":"AM"}var Df={calendar:Le,longDateFormat:Gt,invalidDate:ri,ordinal:Pr,dayOfMonthOrdinalParse:or,relativeTime:_r,months:jy,monthsShort:Sf,week:a1,weekdays:p1,weekdaysMin:h1,weekdaysShort:Ff,meridiemParse:M1},Te={},Ki={},qi;function O1(o,s){var c,f=Math.min(o.length,s.length);for(c=0;c0;){if(h=ca(S.slice(0,c).join("-")),h)return h;if(f&&f.length>=c&&O1(S,f)>=c-1)break;c--}s++}return qi}function R1(o){return o.match("^[^/\\\\]*$")!=null}function ca(o){var s=null,c;if(Te[o]===void 0&&typeof ji!="undefined"&&ji&&ji.exports&&R1(o))try{s=qi._abbr,c=require,c("./locale/"+o),ar(s)}catch(f){Te[o]=null}return Te[o]}function ar(o,s){var c;return o&&(u(s)?c=Bn(o):c=Pl(o,s),c?qi=c:typeof console!="undefined"&&console.warn&&console.warn("Locale "+o+" not found. Did you forget to load it?")),qi._abbr}function Pl(o,s){if(s!==null){var c,f=Df;if(s.abbr=o,Te[o]!=null)B("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."),f=Te[o]._config;else if(s.parentLocale!=null)if(Te[s.parentLocale]!=null)f=Te[s.parentLocale]._config;else if(c=ca(s.parentLocale),c!=null)f=c._config;else return Ki[s.parentLocale]||(Ki[s.parentLocale]=[]),Ki[s.parentLocale].push({name:o,config:s}),null;return Te[o]=new ae(ce(f,s)),Ki[o]&&Ki[o].forEach(function(h){Pl(h.name,h.config)}),ar(o),Te[o]}else return delete Te[o],null}function W1(o,s){if(s!=null){var c,f,h=Df;Te[o]!=null&&Te[o].parentLocale!=null?Te[o].set(ce(Te[o]._config,s)):(f=ca(o),f!=null&&(h=f._config),s=ce(h,s),f==null&&(s.abbr=o),c=new ae(s),c.parentLocale=Te[o],Te[o]=c),ar(o)}else Te[o]!=null&&(Te[o].parentLocale!=null?(Te[o]=Te[o].parentLocale,o===ar()&&ar(o)):Te[o]!=null&&delete Te[o]);return Te[o]}function Bn(o){var s;if(o&&o._locale&&o._locale._abbr&&(o=o._locale._abbr),!o)return qi;if(!r(o)){if(s=ca(o),s)return s;o=[o]}return _1(o)}function G1(){return ee(Te)}function Ol(o){var s,c=o._a;return c&&w(o).overflow===-2&&(s=c[Gn]<0||c[Gn]>11?Gn:c[xn]<1||c[xn]>la(c[ht],c[Gn])?xn:c[He]<0||c[He]>24||c[He]===24&&(c[cn]!==0||c[Ln]!==0||c[Gr]!==0)?He:c[cn]<0||c[cn]>59?cn:c[Ln]<0||c[Ln]>59?Ln:c[Gr]<0||c[Gr]>999?Gr:-1,w(o)._overflowDayOfYear&&(sxn)&&(s=xn),w(o)._overflowWeeks&&s===-1&&(s=Zy),w(o)._overflowWeekday&&s===-1&&(s=zy),w(o).overflow=s),o}var L1=/^\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)?)?$/,V1=/^\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)?)?$/,B1=/Z|[+-]\d\d(?::?\d\d)?/,da=[["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]],_l=[["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/]],H1=/^\/?Date\((-?\d+)/i,Y1=/^(?:(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}))$/,Z1={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Of(o){var s,c,f=o._i,h=L1.exec(f)||V1.exec(f),S,k,H,Q,be=da.length,wt=_l.length;if(h){for(w(o).iso=!0,s=0,c=be;sJi(k)||o._dayOfYear===0)&&(w(o)._overflowDayOfYear=!0),c=Qi(k,0,o._dayOfYear),o._a[Gn]=c.getUTCMonth(),o._a[xn]=c.getUTCDate()),s=0;s<3&&o._a[s]==null;++s)o._a[s]=f[s]=h[s];for(;s<7;s++)o._a[s]=f[s]=o._a[s]==null?s===2?1:0:o._a[s];o._a[He]===24&&o._a[cn]===0&&o._a[Ln]===0&&o._a[Gr]===0&&(o._nextDay=!0,o._a[He]=0),o._d=(o._useUTC?Qi:i1).apply(null,f),S=o._useUTC?o._d.getUTCDay():o._d.getDay(),o._tzm!=null&&o._d.setUTCMinutes(o._d.getUTCMinutes()-o._tzm),o._nextDay&&(o._a[He]=24),o._w&&typeof o._w.d!="undefined"&&o._w.d!==S&&(w(o).weekdayMismatch=!0)}}function K1(o){var s,c,f,h,S,k,H,Q,be;s=o._w,s.GG!=null||s.W!=null||s.E!=null?(S=1,k=4,c=ai(s.GG,o._a[ht],$i(Ee(),1,4).year),f=ai(s.W,1),h=ai(s.E,1),(h<1||h>7)&&(Q=!0)):(S=o._locale._week.dow,k=o._locale._week.doy,be=$i(Ee(),S,k),c=ai(s.gg,o._a[ht],be.year),f=ai(s.w,be.week),s.d!=null?(h=s.d,(h<0||h>6)&&(Q=!0)):s.e!=null?(h=s.e+S,(s.e<0||s.e>6)&&(Q=!0)):h=S),f<1||f>Vn(c,S,k)?w(o)._overflowWeeks=!0:Q!=null?w(o)._overflowWeekday=!0:(H=Tf(c,f,h,S,k),o._a[ht]=H.year,o._dayOfYear=H.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function Wl(o){if(o._f===t.ISO_8601){Of(o);return}if(o._f===t.RFC_2822){_f(o);return}o._a=[],w(o).empty=!0;var s=""+o._i,c,f,h,S,k,H=s.length,Q=0,be,wt;for(h=tt(o._f,o._locale).match(Ct)||[],wt=h.length,c=0;c0&&w(o).unusedInput.push(k),s=s.slice(s.indexOf(f)+f.length),Q+=f.length),se[S]?(f?w(o).empty=!1:w(o).unusedTokens.push(S),Yy(S,f,o)):o._strict&&!f&&w(o).unusedTokens.push(S);w(o).charsLeftOver=H-Q,s.length>0&&w(o).unusedInput.push(s),o._a[He]<=12&&w(o).bigHour===!0&&o._a[He]>0&&(w(o).bigHour=void 0),w(o).parsedDateParts=o._a.slice(0),w(o).meridiem=o._meridiem,o._a[He]=q1(o._locale,o._a[He],o._meridiem),be=w(o).era,be!==null&&(o._a[ht]=o._locale.erasConvertYear(be,o._a[ht])),Rl(o),Ol(o)}function q1(o,s,c){var f;return c==null?s:o.meridiemHour!=null?o.meridiemHour(s,c):(o.isPM!=null&&(f=o.isPM(c),f&&s<12&&(s+=12),!f&&s===12&&(s=0)),s)}function eb(o){var s,c,f,h,S,k,H=!1,Q=o._f.length;if(Q===0){w(o).invalidFormat=!0,o._d=new Date(NaN);return}for(h=0;hthis?this:o:g()});function Gf(o,s){var c,f;if(s.length===1&&r(s[0])&&(s=s[0]),!s.length)return Ee();for(c=s[0],f=1;fthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Cb(){if(!u(this._isDSTShifted))return this._isDSTShifted;var o={},s;return E(o,this),o=Rf(o),o._a?(s=o._isUTC?I(o._a):Ee(o._a),this._isDSTShifted=this.isValid()&&fb(o._a,s.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sb(){return this.isValid()?!this._isUTC:!1}function wb(){return this.isValid()?this._isUTC:!1}function Vf(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Eb=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dn(o,s){var c=o,f=null,h,S,k;return pa(o)?c={ms:o._milliseconds,d:o._days,M:o._months}:d(o)||!isNaN(+o)?(c={},s?c[s]=+o:c.milliseconds=+o):(f=xb.exec(o))?(h=f[1]==="-"?-1:1,c={y:0,d:J(f[xn])*h,h:J(f[He])*h,m:J(f[cn])*h,s:J(f[Ln])*h,ms:J(Gl(f[Gr]*1e3))*h}):(f=Eb.exec(o))?(h=f[1]==="-"?-1:1,c={y:Lr(f[2],h),M:Lr(f[3],h),w:Lr(f[4],h),d:Lr(f[5],h),h:Lr(f[6],h),m:Lr(f[7],h),s:Lr(f[8],h)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(k=Ab(Ee(c.from),Ee(c.to)),c={},c.ms=k.milliseconds,c.M=k.months),S=new fa(c),pa(o)&&a(o,"_locale")&&(S._locale=o._locale),pa(o)&&a(o,"_isValid")&&(S._isValid=o._isValid),S}dn.fn=fa.prototype,dn.invalid=db;function Lr(o,s){var c=o&&parseFloat(o.replace(",","."));return(isNaN(c)?0:c)*s}function Bf(o,s){var c={};return c.months=s.month()-o.month()+(s.year()-o.year())*12,o.clone().add(c.months,"M").isAfter(s)&&--c.months,c.milliseconds=+s-+o.clone().add(c.months,"M"),c}function Ab(o,s){var c;return o.isValid()&&s.isValid()?(s=Vl(s,o),o.isBefore(s)?c=Bf(o,s):(c=Bf(s,o),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function Hf(o,s){return function(c,f){var h,S;return f!==null&&!isNaN(+f)&&(B(s,"moment()."+s+"(period, number) is deprecated. Please use moment()."+s+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),S=c,c=f,f=S),h=dn(c,f),Yf(this,h,o),this}}function Yf(o,s,c,f){var h=s._milliseconds,S=Gl(s._days),k=Gl(s._months);!o.isValid()||(f=f==null?!0:f,k&&xf(o,L(o,"Month")+k*c),S&&X(o,"Date",L(o,"Date")+S*c),h&&o._d.setTime(o._d.valueOf()+h*c),f&&t.updateOffset(o,S||k))}var kb=Hf(1,"add"),Tb=Hf(-1,"subtract");function Zf(o){return typeof o=="string"||o instanceof String}function Fb(o){return F(o)||p(o)||Zf(o)||d(o)||Mb(o)||Nb(o)||o===null||o===void 0}function Nb(o){var s=i(o)&&!l(o),c=!1,f=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h,S,k=f.length;for(h=0;hc.valueOf():c.valueOf()9999?Ve(c,s?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?s?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ve(c,"Z")):Ve(c,s?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function zb(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var o="moment",s="",c,f,h,S;return this.isLocal()||(o=this.utcOffset()===0?"moment.utc":"moment.parseZone",s="Z"),c="["+o+'("]',f=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",h="-MM-DD[T]HH:mm:ss.SSS",S=s+'[")]',this.format(c+f+h+S)}function Xb(o){o||(o=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var s=Ve(this,o);return this.localeData().postformat(s)}function jb(o,s){return this.isValid()&&(F(o)&&o.isValid()||Ee(o).isValid())?dn({to:this,from:o}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function Ub(o){return this.from(Ee(),o)}function Jb(o,s){return this.isValid()&&(F(o)&&o.isValid()||Ee(o).isValid())?dn({from:this,to:o}).locale(this.locale()).humanize(!s):this.localeData().invalidDate()}function Qb(o){return this.to(Ee(),o)}function zf(o){var s;return o===void 0?this._locale._abbr:(s=Bn(o),s!=null&&(this._locale=s),this)}var Xf=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(o){return o===void 0?this.localeData():this.locale(o)});function jf(){return this._locale}var ma=1e3,si=60*ma,ga=60*si,Uf=(365*400+97)*24*ga;function li(o,s){return(o%s+s)%s}function Jf(o,s,c){return o<100&&o>=0?new Date(o+400,s,c)-Uf:new Date(o,s,c).valueOf()}function Qf(o,s,c){return o<100&&o>=0?Date.UTC(o+400,s,c)-Uf:Date.UTC(o,s,c)}function $b(o){var s,c;if(o=ut(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Qf:Jf,o){case"year":s=c(this.year(),0,1);break;case"quarter":s=c(this.year(),this.month()-this.month()%3,1);break;case"month":s=c(this.year(),this.month(),1);break;case"week":s=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":s=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":s=c(this.year(),this.month(),this.date());break;case"hour":s=this._d.valueOf(),s-=li(s+(this._isUTC?0:this.utcOffset()*si),ga);break;case"minute":s=this._d.valueOf(),s-=li(s,si);break;case"second":s=this._d.valueOf(),s-=li(s,ma);break}return this._d.setTime(s),t.updateOffset(this,!0),this}function Kb(o){var s,c;if(o=ut(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Qf:Jf,o){case"year":s=c(this.year()+1,0,1)-1;break;case"quarter":s=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":s=c(this.year(),this.month()+1,1)-1;break;case"week":s=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":s=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":s=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":s=this._d.valueOf(),s+=ga-li(s+(this._isUTC?0:this.utcOffset()*si),ga)-1;break;case"minute":s=this._d.valueOf(),s+=si-li(s,si)-1;break;case"second":s=this._d.valueOf(),s+=ma-li(s,ma)-1;break}return this._d.setTime(s),t.updateOffset(this,!0),this}function qb(){return this._d.valueOf()-(this._offset||0)*6e4}function eI(){return Math.floor(this.valueOf()/1e3)}function tI(){return new Date(this.valueOf())}function nI(){var o=this;return[o.year(),o.month(),o.date(),o.hour(),o.minute(),o.second(),o.millisecond()]}function rI(){var o=this;return{years:o.year(),months:o.month(),date:o.date(),hours:o.hours(),minutes:o.minutes(),seconds:o.seconds(),milliseconds:o.milliseconds()}}function iI(){return this.isValid()?this.toISOString():null}function oI(){return N(this)}function aI(){return v({},w(this))}function sI(){return w(this).overflow}function lI(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}G("N",0,0,"eraAbbr"),G("NN",0,0,"eraAbbr"),G("NNN",0,0,"eraAbbr"),G("NNNN",0,0,"eraName"),G("NNNNN",0,0,"eraNarrow"),G("y",["y",1],"yo","eraYear"),G("y",["yy",2],0,"eraYear"),G("y",["yyy",3],0,"eraYear"),G("y",["yyyy",4],0,"eraYear"),W("N",Hl),W("NN",Hl),W("NNN",Hl),W("NNNN",bI),W("NNNNN",II),ye(["N","NN","NNN","NNNN","NNNNN"],function(o,s,c,f){var h=c._locale.erasParse(o,f,c._strict);h?w(c).era=h:w(c).invalidEra=o}),W("y",un),W("yy",un),W("yyy",un),W("yyyy",un),W("yo",CI),ye(["y","yy","yyy","yyyy"],ht),ye(["yo"],function(o,s,c,f){var h;c._locale._eraYearOrdinalRegex&&(h=o.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?s[ht]=c._locale.eraYearOrdinalParse(o,h):s[ht]=parseInt(o,10)});function uI(o,s){var c,f,h,S=this._eras||Bn("en")._eras;for(c=0,f=S.length;c=0)return S[f]}function dI(o,s){var c=o.since<=o.until?1:-1;return s===void 0?t(o.since).year():t(o.since).year()+(s-o.offset)*c}function fI(){var o,s,c,f=this.localeData().eras();for(o=0,s=f.length;oS&&(s=S),TI.call(this,o,s,c,f,h))}function TI(o,s,c,f,h){var S=Tf(o,s,c,f,h),k=Qi(S.year,0,S.dayOfYear);return this.year(k.getUTCFullYear()),this.month(k.getUTCMonth()),this.date(k.getUTCDate()),this}G("Q",0,"Qo","quarter"),Be("quarter","Q"),Je("quarter",7),W("Q",ct),ye("Q",function(o,s){s[Gn]=(J(o)-1)*3});function FI(o){return o==null?Math.ceil((this.month()+1)/3):this.month((o-1)*3+this.month()%3)}G("D",["DD",2],"Do","date"),Be("date","D"),Je("date",9),W("D",re),W("DD",re,xe),W("Do",function(o,s){return o?s._dayOfMonthOrdinalParse||s._ordinalParse:s._dayOfMonthOrdinalParseLenient}),ye(["D","DD"],xn),ye("Do",function(o,s){s[xn]=J(o.match(re)[0])});var Kf=y("Date",!0);G("DDD",["DDDD",3],"DDDo","dayOfYear"),Be("dayOfYear","DDD"),Je("dayOfYear",4),W("DDD",ln),W("DDDD",Qe),ye(["DDD","DDDD"],function(o,s,c){c._dayOfYear=J(o)});function NI(o){var s=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return o==null?s:this.add(o-s,"d")}G("m",["mm",2],0,"minute"),Be("minute","m"),Je("minute",14),W("m",re),W("mm",re,xe),ye(["m","mm"],cn);var MI=y("Minutes",!1);G("s",["ss",2],0,"second"),Be("second","s"),Je("second",15),W("s",re),W("ss",re,xe),ye(["s","ss"],Ln);var DI=y("Seconds",!1);G("S",0,0,function(){return~~(this.millisecond()/100)}),G(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),G(0,["SSS",3],0,"millisecond"),G(0,["SSSS",4],0,function(){return this.millisecond()*10}),G(0,["SSSSS",5],0,function(){return this.millisecond()*100}),G(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),G(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),G(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),G(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Be("millisecond","ms"),Je("millisecond",16),W("S",ln,ct),W("SS",ln,xe),W("SSS",ln,Qe);var sr,qf;for(sr="SSSS";sr.length<=9;sr+="S")W(sr,un);function PI(o,s){s[Gr]=J(("0."+o)*1e3)}for(sr="S";sr.length<=9;sr+="S")ye(sr,PI);qf=y("Milliseconds",!1),G("z",0,0,"zoneAbbr"),G("zz",0,0,"zoneName");function OI(){return this._isUTC?"UTC":""}function _I(){return this._isUTC?"Coordinated Universal Time":""}var R=M.prototype;R.add=kb,R.calendar=Ob,R.clone=_b,R.diff=Hb,R.endOf=Kb,R.format=Xb,R.from=jb,R.fromNow=Ub,R.to=Jb,R.toNow=Qb,R.get=U,R.invalidAt=sI,R.isAfter=Rb,R.isBefore=Wb,R.isBetween=Gb,R.isSame=Lb,R.isSameOrAfter=Vb,R.isSameOrBefore=Bb,R.isValid=oI,R.lang=Xf,R.locale=zf,R.localeData=jf,R.max=ob,R.min=ib,R.parsingFlags=aI,R.set=K,R.startOf=$b,R.subtract=Tb,R.toArray=nI,R.toObject=rI,R.toDate=tI,R.toISOString=Zb,R.inspect=zb,typeof Symbol!="undefined"&&Symbol.for!=null&&(R[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),R.toJSON=iI,R.toString=Yb,R.unix=eI,R.valueOf=qb,R.creationData=lI,R.eraName=fI,R.eraNarrow=pI,R.eraAbbr=hI,R.eraYear=mI,R.year=kf,R.isLeapYear=r1,R.weekYear=SI,R.isoWeekYear=wI,R.quarter=R.quarters=FI,R.month=Ef,R.daysInMonth=e1,R.week=R.weeks=u1,R.isoWeek=R.isoWeeks=c1,R.weeksInYear=AI,R.weeksInWeekYear=kI,R.isoWeeksInYear=xI,R.isoWeeksInISOWeekYear=EI,R.date=Kf,R.day=R.days=w1,R.weekday=x1,R.isoWeekday=E1,R.dayOfYear=NI,R.hour=R.hours=D1,R.minute=R.minutes=MI,R.second=R.seconds=DI,R.millisecond=R.milliseconds=qf,R.utcOffset=hb,R.utc=gb,R.local=vb,R.parseZone=yb,R.hasAlignedHourOffset=bb,R.isDST=Ib,R.isLocal=Sb,R.isUtcOffset=wb,R.isUtc=Vf,R.isUTC=Vf,R.zoneAbbr=OI,R.zoneName=_I,R.dates=D("dates accessor is deprecated. Use date instead.",Kf),R.months=D("months accessor is deprecated. Use month instead",Ef),R.years=D("years accessor is deprecated. Use year instead",kf),R.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mb),R.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Cb);function RI(o){return Ee(o*1e3)}function WI(){return Ee.apply(null,arguments).parseZone()}function ep(o){return o}var le=ae.prototype;le.calendar=Ue,le.longDateFormat=_n,le.invalidDate=Dr,le.ordinal=Or,le.preparse=ep,le.postformat=ep,le.relativeTime=kl,le.pastFuture=Rr,le.set=ne,le.eras=uI,le.erasParse=cI,le.erasConvertYear=dI,le.erasAbbrRegex=vI,le.erasNameRegex=gI,le.erasNarrowRegex=yI,le.months=Qy,le.monthsShort=$y,le.monthsParse=qy,le.monthsRegex=n1,le.monthsShortRegex=t1,le.week=o1,le.firstDayOfYear=l1,le.firstDayOfWeek=s1,le.weekdays=y1,le.weekdaysMin=I1,le.weekdaysShort=b1,le.weekdaysParse=S1,le.weekdaysRegex=A1,le.weekdaysShortRegex=k1,le.weekdaysMinRegex=T1,le.isPM=N1,le.meridiem=P1;function ya(o,s,c,f){var h=Bn(),S=I().set(f,s);return h[c](S,o)}function tp(o,s,c){if(d(o)&&(s=o,o=void 0),o=o||"",s!=null)return ya(o,s,c,"month");var f,h=[];for(f=0;f<12;f++)h[f]=ya(o,f,c,"month");return h}function Zl(o,s,c,f){typeof o=="boolean"?(d(s)&&(c=s,s=void 0),s=s||""):(s=o,c=s,o=!1,d(s)&&(c=s,s=void 0),s=s||"");var h=Bn(),S=o?h._week.dow:0,k,H=[];if(c!=null)return ya(s,(c+S)%7,f,"day");for(k=0;k<7;k++)H[k]=ya(s,(k+S)%7,f,"day");return H}function GI(o,s){return tp(o,s,"months")}function LI(o,s){return tp(o,s,"monthsShort")}function VI(o,s,c){return Zl(o,s,c,"weekdays")}function BI(o,s,c){return Zl(o,s,c,"weekdaysShort")}function HI(o,s,c){return Zl(o,s,c,"weekdaysMin")}ar("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(o){var s=o%10,c=J(o%100/10)===1?"th":s===1?"st":s===2?"nd":s===3?"rd":"th";return o+c}}),t.lang=D("moment.lang is deprecated. Use moment.locale instead.",ar),t.langData=D("moment.langData is deprecated. Use moment.localeData instead.",Bn);var Hn=Math.abs;function YI(){var o=this._data;return this._milliseconds=Hn(this._milliseconds),this._days=Hn(this._days),this._months=Hn(this._months),o.milliseconds=Hn(o.milliseconds),o.seconds=Hn(o.seconds),o.minutes=Hn(o.minutes),o.hours=Hn(o.hours),o.months=Hn(o.months),o.years=Hn(o.years),this}function np(o,s,c,f){var h=dn(s,c);return o._milliseconds+=f*h._milliseconds,o._days+=f*h._days,o._months+=f*h._months,o._bubble()}function ZI(o,s){return np(this,o,s,1)}function zI(o,s){return np(this,o,s,-1)}function rp(o){return o<0?Math.floor(o):Math.ceil(o)}function XI(){var o=this._milliseconds,s=this._days,c=this._months,f=this._data,h,S,k,H,Q;return o>=0&&s>=0&&c>=0||o<=0&&s<=0&&c<=0||(o+=rp(zl(c)+s)*864e5,s=0,c=0),f.milliseconds=o%1e3,h=Ft(o/1e3),f.seconds=h%60,S=Ft(h/60),f.minutes=S%60,k=Ft(S/60),f.hours=k%24,s+=Ft(k/24),Q=Ft(ip(s)),c+=Q,s-=rp(zl(Q)),H=Ft(c/12),c%=12,f.days=s,f.months=c,f.years=H,this}function ip(o){return o*4800/146097}function zl(o){return o*146097/4800}function jI(o){if(!this.isValid())return NaN;var s,c,f=this._milliseconds;if(o=ut(o),o==="month"||o==="quarter"||o==="year")switch(s=this._days+f/864e5,c=this._months+ip(s),o){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(s=this._days+Math.round(zl(this._months)),o){case"week":return s/7+f/6048e5;case"day":return s+f/864e5;case"hour":return s*24+f/36e5;case"minute":return s*1440+f/6e4;case"second":return s*86400+f/1e3;case"millisecond":return Math.floor(s*864e5)+f;default:throw new Error("Unknown unit "+o)}}function UI(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+J(this._months/12)*31536e6:NaN}function Yn(o){return function(){return this.as(o)}}var JI=Yn("ms"),QI=Yn("s"),$I=Yn("m"),KI=Yn("h"),qI=Yn("d"),eC=Yn("w"),tC=Yn("M"),nC=Yn("Q"),rC=Yn("y");function iC(){return dn(this)}function oC(o){return o=ut(o),this.isValid()?this[o+"s"]():NaN}function Vr(o){return function(){return this.isValid()?this._data[o]:NaN}}var aC=Vr("milliseconds"),sC=Vr("seconds"),lC=Vr("minutes"),uC=Vr("hours"),cC=Vr("days"),dC=Vr("months"),fC=Vr("years");function pC(){return Ft(this.days()/7)}var Zn=Math.round,ui={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function hC(o,s,c,f,h){return h.relativeTime(s||1,!!c,o,f)}function mC(o,s,c,f){var h=dn(o).abs(),S=Zn(h.as("s")),k=Zn(h.as("m")),H=Zn(h.as("h")),Q=Zn(h.as("d")),be=Zn(h.as("M")),wt=Zn(h.as("w")),zn=Zn(h.as("y")),lr=S<=c.ss&&["s",S]||S0,lr[4]=f,hC.apply(null,lr)}function gC(o){return o===void 0?Zn:typeof o=="function"?(Zn=o,!0):!1}function vC(o,s){return ui[o]===void 0?!1:s===void 0?ui[o]:(ui[o]=s,o==="s"&&(ui.ss=s-1),!0)}function yC(o,s){if(!this.isValid())return this.localeData().invalidDate();var c=!1,f=ui,h,S;return typeof o=="object"&&(s=o,o=!1),typeof o=="boolean"&&(c=o),typeof s=="object"&&(f=Object.assign({},ui,s),s.s!=null&&s.ss==null&&(f.ss=s.s-1)),h=this.localeData(),S=mC(this,!c,f,h),c&&(S=h.pastFuture(+this,S)),h.postformat(S)}var Xl=Math.abs;function ci(o){return(o>0)-(o<0)||+o}function ba(){if(!this.isValid())return this.localeData().invalidDate();var o=Xl(this._milliseconds)/1e3,s=Xl(this._days),c=Xl(this._months),f,h,S,k,H=this.asSeconds(),Q,be,wt,zn;return H?(f=Ft(o/60),h=Ft(f/60),o%=60,f%=60,S=Ft(c/12),c%=12,k=o?o.toFixed(3).replace(/\.?0+$/,""):"",Q=H<0?"-":"",be=ci(this._months)!==ci(H)?"-":"",wt=ci(this._days)!==ci(H)?"-":"",zn=ci(this._milliseconds)!==ci(H)?"-":"",Q+"P"+(S?be+S+"Y":"")+(c?be+c+"M":"")+(s?wt+s+"D":"")+(h||f||o?"T":"")+(h?zn+h+"H":"")+(f?zn+f+"M":"")+(o?zn+k+"S":"")):"P0D"}var ie=fa.prototype;ie.isValid=cb,ie.abs=YI,ie.add=ZI,ie.subtract=zI,ie.as=jI,ie.asMilliseconds=JI,ie.asSeconds=QI,ie.asMinutes=$I,ie.asHours=KI,ie.asDays=qI,ie.asWeeks=eC,ie.asMonths=tC,ie.asQuarters=nC,ie.asYears=rC,ie.valueOf=UI,ie._bubble=XI,ie.clone=iC,ie.get=oC,ie.milliseconds=aC,ie.seconds=sC,ie.minutes=lC,ie.hours=uC,ie.days=cC,ie.weeks=pC,ie.months=dC,ie.years=fC,ie.humanize=yC,ie.toISOString=ba,ie.toString=ba,ie.toJSON=ba,ie.locale=zf,ie.localeData=jf,ie.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ba),ie.lang=Xf,G("X",0,0,"unix"),G("x",0,0,"valueOf"),W("x",ft),W("X",oi),ye("X",function(o,s,c){c._d=new Date(parseFloat(o)*1e3)}),ye("x",function(o,s,c){c._d=new Date(J(o))});return t.version="2.29.4",n(Ee),t.fn=R,t.min=ab,t.max=sb,t.now=lb,t.utc=I,t.unix=RI,t.months=GI,t.isDate=p,t.locale=ar,t.invalid=g,t.duration=dn,t.isMoment=F,t.weekdays=VI,t.parseZone=WI,t.localeData=Bn,t.isDuration=pa,t.monthsShort=LI,t.weekdaysMin=HI,t.defineLocale=Pl,t.updateLocale=W1,t.locales=G1,t.weekdaysShort=BI,t.normalizeUnits=ut,t.relativeTimeRounding=gC,t.relativeTimeThreshold=vC,t.calendarFormat=Pb,t.prototype=R,t.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"},t})});var zE={};AC(zE,{default:()=>Al});module.exports=kC(zE);var Hg=require("obsidian"),It=Ie(Pe()),Yg=Ie(Ys()),Zs=require("obsidian"),zs=class extends Hg.Modal{constructor(n,r,i){super(n);this.plugin=r,this.view=i,this.date=(0,Zs.moment)().format("YYYY-MM-DD")}render(){this.root.render(It.createElement(It.StrictMode,null,It.createElement("div",{className:"janitor-date-picker"},It.createElement("form",{onSubmit:this.onApply.bind(this)},It.createElement("label",null,It.createElement("span",null,"Choose a date:"),It.createElement("input",{type:"date",value:this.date,onChange:this.onDateChange.bind(this)})),It.createElement("div",{className:"janitor-date-picker-buttons"},It.createElement("button",{type:"button",onClick:n=>this.close()},"Cancel "),It.createElement("button",{className:"mod-cta",type:"submit"},"OK")),It.createElement("div",{className:"janitor-date-shortcuts"},It.createElement("button",{onClick:n=>this.dateShortcut(n,1,"weeks"),className:"janitor-date-shortcut=button"},"In a Week"),It.createElement("button",{onClick:n=>this.dateShortcut(n,1,"months"),className:"janitor-date-shortcut=button"},"In a Month"),It.createElement("button",{onClick:n=>this.dateShortcut(n,1,"years"),className:"janitor-date-shortcut=button"},"In a Year"))))))}dateShortcut(n,r,i){this.date=(0,Zs.moment)().add(r,i).format("YYYY-MM-DD"),this.render()}onApply(n){n.preventDefault();let r=(0,Zs.moment)(this.date,"YYYY-MM-DD").format(this.plugin.settings.expiredDateFormat);return this.plugin.updateNoteWithDate(this.view,r),this.close(),!1}onDateChange(n){this.date=n.target.value,this.render()}onOpen(){let{contentEl:n}=this;this.root=(0,Yg.createRoot)(n),this.render()}onClose(){this.root.unmount()}};var me=Ie(Pe()),In=Ie(Pe());var Xs=(r=>(r.Trash="trash",r.TrashSystem="trash-system",r.Delete="delete",r))(Xs||{}),js={runAtStartup:!1,addRibbonIcon:!0,promptUser:!0,promptForBigFiles:!0,attachmentsExtensions:".jpg|.jpeg|.png|.gif|.svg|.pdf",defaultOperation:"trash",expiredAttribute:"expires",expiredDateFormat:"YYYY-MM-DD",sizeLimitKb:1024,processOrphans:!0,processEmpty:!0,processExpired:!0,processBig:!0,honorObsidianExcludedFiles:!0,excludedFilesFilters:[]};var Zg=e=>{let{scanning:t,onClose:n,onPerform:r}=e,i=[e.orphans,e.empty,e.expired,e.big].some(u=>u&&u.some(d=>d.selected)),a=(0,In.useCallback)(u=>(0,In.useCallback)(()=>{r(u)},[u,r]),[r]),l=Object.values(Xs).reduce((u,d)=>de($({},u),{[d]:a(d)}),{});return me.createElement("div",{className:"janitor-modal-wrapper"},me.createElement("div",{className:"janitor-modal-title"},"Janitor Scan Results"),me.createElement("div",{className:"janitor-modal-content"},t?me.createElement("h4",null,"Scanning..."):me.createElement(Zw,$({},e))),me.createElement("div",{className:"janitor-modal-footer"},me.createElement("div",{className:"janitor-footer-buttons"},me.createElement("button",{tabIndex:1,style:{visibility:i?"visible":"hidden"},className:"",onClick:l["trash"],title:"Put files in the Obsidian .trash"},"Trash (Obsidian)"),me.createElement("button",{tabIndex:1,style:{visibility:i?"visible":"hidden"},className:"",onClick:l["trash-system"],title:"Put files in the OS' trash"},"Trash (System)"),me.createElement("button",{tabIndex:1,style:{visibility:i?"visible":"hidden"},className:"",onClick:l["delete"],title:"Permanently delete files"},"Delete"),me.createElement("button",{tabIndex:1,className:"mod-cta",onClick:n},"Cancel"))))};function Zw({orphans:e,empty:t,big:n,expired:r,onSelectionChange:i,onOpen:a}){let l=(0,In.useCallback)(d=>(0,In.useCallback)(p=>{i(p,d)},[i,d]),[i]),u=(0,In.useCallback)(d=>(0,In.useCallback)(p=>{a(p,d)},[a,d]),[a]);return me.createElement("div",{className:"janitor-scan-results"},e&&e.length>0&&me.createElement(Us,{files:e,onChange:l("orphans"),onOpen:u("orphans"),title:"Orphans"}),t&&t.length>0&&me.createElement(Us,{title:"Empty",files:t,onChange:l("empty"),onOpen:u("empty")}),r&&r.length>0&&me.createElement(Us,{title:"Expired",files:r,onChange:l("expired"),onOpen:u("expired")}),n&&n.length>0&&me.createElement(Us,{title:"Big",files:n,onChange:l("big"),onOpen:u("big")}))}var Us=({files:e,onChange:t,onOpen:n,title:r})=>{let i=(0,In.useCallback)(d=>(0,In.useCallback)(()=>{t(d)},[t,d]),[t]),a=(0,In.useCallback)(d=>(0,In.useCallback)(()=>{n(d)},[t,d]),[t]),l=e.every(d=>d.selected),u=e.filter(d=>d.selected).length;return me.createElement("div",{className:"janitor-files-wrapper"},me.createElement("div",{className:"janitor-scan-section-title"},me.createElement("label",{title:`Click to ${l?"unselect":"select"} these ${e.length} items`},me.createElement("input",{type:"checkbox",checked:l,onChange:i(-1)}),r," (",e.length," items)",u>0&&me.createElement(me.Fragment,null,"\xA0 (",u," selected)"))),e.map((d,p)=>me.createElement("div",{key:p,className:"janitor-file"},me.createElement("label",null,me.createElement("input",{checked:d.selected,value:d.name,onChange:i(p),type:"checkbox"}),me.createElement("span",null,d.name),me.createElement("a",{href:"#",className:"openFileIcon",onClick:a(p)},"open")))))};var zg=require("obsidian"),Jo=Ie(Pe()),Xg=Ie(Ys()),jg=Ie(require("path"));function Js(e,t,n){return e.map((r,i)=>t.contains(r.name)?de($({},r),{selected:n}):r)}var Qs=class extends zg.Modal{constructor(n,r){super(n);this.plugin=r,this.state={onClose:()=>{this.close()},scanning:!0,orphans:[],empty:[],big:[],expired:[],onSelectionChange:(i,a)=>{this.handleSelectionChange(i,a)},onPerform:i=>{this.perform(i)},onSettingChange:(i,a)=>{this.onSettingChange(i,a)},onOpen:(i,a)=>{this.handleOpen(i,a)}}}perform(n){this.plugin.perform(n,this.extractFiles()),this.close()}onSettingChange(n,r){this.plugin.settings[n]=r,this.plugin.saveSettings(),this.state=$({},this.state),this.render()}handleOpen(n,r){return fe(this,null,function*(){let a=this.state[r][n],l=this.app.vault.adapter.getBasePath(),u=jg.default.join(l,a.name),d=yield this.app.openWithDefaultApp(a.name)})}handleSelectionChange(n,r){let i=this.state[r];if(n>=0){let a=i[n],l=!a.selected;this.applySelectionChangeToAllSections([a.name],l)}else{let a=i.every(u=>u.selected),l=i.map(u=>u.name);this.applySelectionChangeToAllSections(l,!a)}this.render()}applySelectionChangeToAllSections(n,r){this.state=de($({},this.state),{orphans:this.state.orphans&&Js(this.state.orphans,n,r),empty:this.state.empty&&Js(this.state.empty,n,r),big:this.state.big&&Js(this.state.big,n,r),expired:this.state.expired&&Js(this.state.expired,n,r)})}updateState(n){this.state=de($({},this.state),{scanning:n.scanning,orphans:this.fileToSelectableItem(n.orphans),empty:this.fileToSelectableItem(n.empty),expired:this.fileToSelectableItem(n.expired),big:this.fileToSelectableItem(n.big)}),this.render()}fileToSelectableItem(n){return n&&n.map(r=>({name:r.path,selected:!1}))}render(){this.root.render(Jo.createElement(Jo.StrictMode,null,Jo.createElement(Zg,$({},this.state))))}onOpen(){let{contentEl:n}=this;this.root=(0,Xg.createRoot)(n),this.render()}onClose(){this.root.unmount()}extractFiles(){return[this.state.orphans,this.state.empty,this.state.big,this.state.expired].flatMap(n=>n?n.filter(r=>r.selected).map(r=>r.name):[])}};var Sn=require("obsidian");var $g=require("obsidian");function Ug(e,t){return e.reduce(([n,r],i)=>t(i)?[[...n,i],r]:[n,[...r,i]],[[],[]])}function Jg(e,t){return fe(this,null,function*(){let n=yield Promise.all(e.map(t));return e.filter((r,i)=>n[i])})}function Qg(e){let t=e.vault.adapter.files,n=[];for(let r in t)t[r].type==="folder"&&n.push(t[r].realpath);return n}var fd=require("obsidian"),$s=class{constructor(t,n){this.whiteSpaceRegExp=new RegExp("\\S","");this.app=t,this.settings=n}isNote(t){return t.extension.toLowerCase()==="md"||t.extension.toLowerCase()==="canvas"}isCanvas(t){return t.extension.toLowerCase()==="canvas"}scan(){return fe(this,null,function*(){let t=this.app.vault.getFiles(),n=this.settings.excludedFilesFilters||[];this.settings.honorObsidianExcludedFiles&&this.app.vault.config.userIgnoreFilters&&(n=n.concat(this.app.vault.config.userIgnoreFilters));let r=n.map(x=>new RegExp(x,"i")),i=t.filter(x=>!r.some(w=>w.exec(x.path))),[a,l]=Ug(i,this.isNote),u=this.getFrontMatters(a),d=this.settings.processOrphans&&(yield this.findOrphans(a,l,u)),p=this.settings.processEmpty&&(yield this.findEmpty(i)),m=this.settings.processExpired&&this.findExpired(u),v=this.settings.processBig&&this.findBigFiles(i);return{orphans:d,empty:p,expired:m,big:v,scanning:!1}})}findBigFiles(t){return t.filter(n=>n.stat.size>>10>this.settings.sizeLimitKb)}findExpired(t){let n=fd.moment.now();return t.filter(i=>{let a=i.frontMatter[this.settings.expiredAttribute];if(a){let l=(0,fd.moment)(a,this.settings.expiredDateFormat);if(l.isValid()&&l.isBefore(n))return!0}return!1}).map(i=>i.file)}findEmpty(t){return fe(this,null,function*(){return yield Jg(t,r=>fe(this,null,function*(){if(r.stat.size===0)return!0;let i=yield this.app.vault.cachedRead(r);return!this.whiteSpaceRegExp.test(i)}))})}findOrphans(t,n,r){return fe(this,null,function*(){let i=this.getResolvedLinks(),a=yield this.getCanvasResources(t.filter(this.isCanvas)),l=this.combineLinksAndResolvedMetadata(r,$($({},i),a));return this.getOrphans(n,l)})}getCanvasResources(t){return fe(this,null,function*(){let n=yield Promise.all(t.map(a=>fe(this,null,function*(){let l=yield this.app.vault.cachedRead(a);return JSON.parse(l)}))),r=/\[\[(.*)\]\]/gm;return n.reduce((a,l)=>(l.nodes.forEach(u=>{let d,p=u;switch(u.type){case"file":a[u.file]=(a[u.file]||0)+1;break;case"link":break;case"text":for(d=null;(d=r.exec(p.text))!==null;){d.index===r.lastIndex&&r.lastIndex++;let m=d[1];if(m){a[m]=(a[m]||0)+1;let v=(0,$g.normalizePath)(`${app.vault.config.attachmentFolderPath}/${m}`);a[v]=(a[v]||0)+1}}break}}),a),{})})}getOrphans(t,n){return t.filter(r=>!n[r.path])}combineLinksAndResolvedMetadata(t,n){return t.reduce((r,i)=>{var a;return(a=i==null?void 0:i.resolvedProps)!=null&&a.length?$($({},r),i.resolvedProps.reduce((l,u)=>de($({},l),{[u]:1}),{})):r},n)}getFrontMatters(t){return t.map(n=>{var i;let r=(i=app.metadataCache.getFileCache(n))==null?void 0:i.frontmatter;if(r){let a=zw(r);if(a!=null&&a.length){let l=a.map(u=>{let d=app.metadataCache.getFirstLinkpathDest(u,n.path);if(d)return d.path}).filter(u=>!!u);return{frontMatter:r,stringProps:a,resolvedProps:l,file:n}}}}).filter(n=>!!n)}getResolvedLinks(){return Object.keys(app.metadataCache.resolvedLinks).reduce((n,r)=>Object.assign(n,app.metadataCache.resolvedLinks[r]),{})}};function zw(e){return Object.values(e).filter(t=>typeof t=="string")}var je=Ie(Pe()),Wy=require("obsidian"),Gy=Ie(Ys());var pd=Ie(Pe()),Xw=e=>pd.createElement("svg",$({viewBox:"0 0 100 100",className:"cross",width:16,height:16},e),pd.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"M15.4,12.6l-2.9,2.9L47.1,50L12.6,84.6l2.9,2.9L50,52.9l34.6,34.6l2.9-2.9L52.9,50l34.6-34.6l-2.9-2.9L50,47.1L15.4,12.6z "})),Kg=Xw;var On=Ie(Pe());var nr=Ie(Pe()),qg=({name:e,description:t})=>nr.default.createElement(jw,null,nr.default.createElement(Uw,null,e),nr.default.createElement(Jw,null,t)),jw=({children:e})=>nr.default.createElement("div",{className:"setting-item-info"},e),Uw=({children:e})=>nr.default.createElement("div",{className:"setting-item-name"},e),Jw=({children:e})=>nr.default.createElement("div",{className:"setting-item-description"},e),e0=({children:e})=>nr.default.createElement("div",{className:"setting-item-control"},e),t0=({children:e})=>nr.default.createElement("div",{className:"setting-item"},e);var aa=Ie(Pe());function Y(){return Y=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&(n[i]=e[i]);return n}function sn(e,t){if(e==null)return{};var n=sf(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function lf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Xe=Ie(Pe()),vv=Ie(Hs());function Pn(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function av(e){return Pn(e).getComputedStyle(e)}function sv(e){return uv(e)?(e.nodeName||"").toLowerCase():""}var pl;function g2(){if(pl)return pl;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(pl=e.brands.map(t=>t.brand+"/"+t.version).join(" "),pl):navigator.userAgent}function lv(e){return e instanceof Pn(e).HTMLElement}function Zi(e){return e instanceof Pn(e).Element}function uv(e){return e instanceof Pn(e).Node}function iv(e){return typeof ShadowRoot=="undefined"?!1:e instanceof Pn(e).ShadowRoot||e instanceof ShadowRoot}function cv(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=av(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function v2(){return!/^((?!chrome|android).)*safari/i.test(g2())}function y2(e){return["html","body","#document"].includes(sv(e))}var ml=Math.round;function b2(e){let t=av(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,l=ml(n)!==i||ml(r)!==a;return l&&(n=i,r=a),{width:n,height:r,fallback:l}}function dv(e){return Zi(e)?e:e.contextElement}var fv={x:1,y:1};function uf(e){let t=dv(e);if(!lv(t))return fv;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=b2(t),l=(a?ml(n.width):n.width)/r,u=(a?ml(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),u&&Number.isFinite(u)||(u=1),{x:l,y:u}}function ov(e,t,n,r){var i,a;t===void 0&&(t=!1),n===void 0&&(n=!1);let l=e.getBoundingClientRect(),u=dv(e),d=fv;t&&(r?Zi(r)&&(d=uf(r)):d=uf(e));let p=u?Pn(u):window,m=!v2()&&n,v=(l.left+(m&&((i=p.visualViewport)==null?void 0:i.offsetLeft)||0))/d.x,I=(l.top+(m&&((a=p.visualViewport)==null?void 0:a.offsetTop)||0))/d.y,x=l.width/d.x,w=l.height/d.y;if(u){let A=Pn(u),N=r&&Zi(r)?Pn(r):r,g=A.frameElement;for(;g&&r&&N!==A;){let b=uf(g),C=g.getBoundingClientRect(),E=getComputedStyle(g);C.x+=(g.clientLeft+parseFloat(E.paddingLeft))*b.x,C.y+=(g.clientTop+parseFloat(E.paddingTop))*b.y,v*=b.x,I*=b.y,x*=b.x,w*=b.y,v+=C.x,I+=C.y,g=Pn(g).frameElement}}return{width:x,height:w,top:I,right:v+x,bottom:I+w,left:v,x:v,y:I}}function I2(e){return((uv(e)?e.ownerDocument:e.document)||window.document).documentElement}function C2(e){if(sv(e)==="html")return e;let t=e.assignedSlot||e.parentNode||(iv(e)?e.host:null)||I2(e);return iv(t)?t.host:t}function pv(e){let t=C2(e);return y2(t)?e.ownerDocument.body:lv(t)&&cv(t)?t:pv(t)}function hl(e,t){var n;t===void 0&&(t=[]);let r=pv(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Pn(r);return i?t.concat(a,a.visualViewport||[],cv(r)?r:[]):t.concat(r,hl(r))}function hv(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l=!0,animationFrame:u=!1}=r,d=i&&!u,p=d||a?[...Zi(e)?hl(e):e.contextElement?hl(e.contextElement):[],...hl(t)]:[];p.forEach(x=>{d&&x.addEventListener("scroll",n,{passive:!0}),a&&x.addEventListener("resize",n)});let m,v=null;if(l){let x=!0;v=new ResizeObserver(()=>{x||n(),x=!1}),Zi(e)&&!u&&v.observe(e),Zi(e)||!e.contextElement||u||v.observe(e.contextElement),v.observe(t)}let I=u?ov(e):null;return u&&function x(){let w=ov(e);!I||w.x===I.x&&w.y===I.y&&w.width===I.width&&w.height===I.height||n(),I=w,m=requestAnimationFrame(x)}(),n(),()=>{var x;p.forEach(w=>{d&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),(x=v)==null||x.disconnect(),v=null,u&&cancelAnimationFrame(m)}}var mv=Ie(Pe()),S2=mv.useLayoutEffect,gl=S2;var w2=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],na=function(){};function x2(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function yv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i-1}function E2(e){return ra(e)?window.innerHeight:e.clientHeight}function Iv(e){return ra(e)?window.pageYOffset:e.scrollTop}function bl(e,t){if(ra(e)){window.scrollTo(0,t);return}e.scrollTop=t}function A2(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}function k2(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function vl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:na,i=Iv(e),a=t-i,l=10,u=0;function d(){u+=l;var p=k2(u,i,a,n);bl(e,p),un.bottom?bl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i1?n-1:0),i=1;i=w)return{placement:"bottom",maxHeight:t};if(O>=w&&!l)return a&&vl(d,B,ne),{placement:"bottom",maxHeight:t};if(!l&&O>=r||l&&P>=r){a&&vl(d,B,ne);var ce=l?P-E:O-E;return{placement:"bottom",maxHeight:ce}}if(i==="auto"||l){var ae=t,ee=l?F:D;return ee>=r&&(ae=Math.min(ee-E-u,t)),{placement:"top",maxHeight:ae}}if(i==="bottom")return a&&bl(d,B),{placement:"bottom",maxHeight:t};break;case"top":if(F>=w)return{placement:"top",maxHeight:t};if(D>=w&&!l)return a&&vl(d,Z,ne),{placement:"top",maxHeight:t};if(!l&&D>=r||l&&F>=r){var Le=t;return(!l&&D>=r||l&&F>=r)&&(Le=l?F-M:D-M),a&&vl(d,Z,ne),{placement:"top",maxHeight:Le}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return p}function D2(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var Av=function(t){return t==="auto"?"bottom":t},kv=function(t,n){var r,i=t.placement,a=t.theme,l=a.borderRadius,u=a.spacing,d=a.colors;return z((r={label:"menu"},Nr(r,D2(i),"100%"),Nr(r,"position","absolute"),Nr(r,"width","100%"),Nr(r,"zIndex",1),r),n?{}:{backgroundColor:d.neutral0,borderRadius:l,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},Tv=(0,Xe.createContext)(null),Fv=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,l=t.menuPosition,u=t.menuShouldScrollIntoView,d=t.theme,p=(0,Xe.useContext)(Tv)||{},m=p.setPortalPlacement,v=(0,Xe.useRef)(null),I=(0,Xe.useState)(i),x=an(I,2),w=x[0],A=x[1],N=(0,Xe.useState)(null),g=an(N,2),b=g[0],C=g[1],E=d.spacing.controlHeight;return gl(function(){var M=v.current;if(!!M){var F=l==="fixed",P=u&&!F,D=M2({maxHeight:i,menuEl:M,minHeight:r,placement:a,shouldScroll:P,isFixedPosition:F,controlHeight:E});A(D.maxHeight),C(D.placement),m==null||m(D.placement)}},[i,a,l,u,r,m,E]),n({ref:v,placerProps:z(z({},t),{},{placement:b||Av(a),maxHeight:w})})},P2=function(t){var n=t.children,r=t.innerRef,i=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"menu",{menu:!0}),{ref:r},i),n)},Nv=function(t,n){var r=t.maxHeight,i=t.theme.spacing.baseUnit;return z({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:i,paddingTop:i})},O2=function(t){var n=t.children,r=t.innerProps,i=t.innerRef,a=t.isMulti;return(0,j.jsx)("div",Y({},_e(t,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:i},r),n)},Mv=function(t,n){var r=t.theme,i=r.spacing.baseUnit,a=r.colors;return z({textAlign:"center"},n?{}:{color:a.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},Dv=Mv,Pv=Mv,Ov=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)};Ov.defaultProps={children:"No options"};var _v=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)};_v.defaultProps={children:"Loading..."};var Rv=function(t){var n=t.rect,r=t.offset,i=t.position;return{left:n.left,position:i,top:r,width:n.width,zIndex:1}},_2=function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,l=t.menuPlacement,u=t.menuPosition,d=(0,Xe.useRef)(null),p=(0,Xe.useRef)(null),m=(0,Xe.useState)(Av(l)),v=an(m,2),I=v[0],x=v[1],w=(0,Xe.useMemo)(function(){return{setPortalPlacement:x}},[]),A=(0,Xe.useState)(null),N=an(A,2),g=N[0],b=N[1],C=(0,Xe.useCallback)(function(){if(!!i){var P=T2(i),D=u==="fixed"?0:window.pageYOffset,O=P[I]+D;(O!==(g==null?void 0:g.offset)||P.left!==(g==null?void 0:g.rect.left)||P.width!==(g==null?void 0:g.rect.width))&&b({offset:O,rect:P})}},[i,u,I,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);gl(function(){C()},[C]);var E=(0,Xe.useCallback)(function(){typeof p.current=="function"&&(p.current(),p.current=null),i&&d.current&&(p.current=hv(i,d.current,C,{elementResize:"ResizeObserver"in window}))},[i,C]);gl(function(){E()},[E]);var M=(0,Xe.useCallback)(function(P){d.current=P,E()},[E]);if(!n&&u!=="fixed"||!g)return null;var F=(0,j.jsx)("div",Y({ref:M},_e(z(z({},t),{},{offset:g.offset,position:u,rect:g.rect}),"menuPortal",{"menu-portal":!0}),a),r);return(0,j.jsx)(Tv.Provider,{value:w},n?(0,vv.createPortal)(F,n):F)},Wv=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},R2=function(t){var n=t.children,r=t.innerProps,i=t.isDisabled,a=t.isRtl;return(0,j.jsx)("div",Y({},_e(t,"container",{"--is-disabled":i,"--is-rtl":a}),r),n)},Gv=function(t,n){var r=t.theme.spacing,i=t.isMulti,a=t.hasValue,l=t.selectProps.controlShouldRenderValue;return z({alignItems:"center",display:i&&a&&l?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},W2=function(t){var n=t.children,r=t.innerProps,i=t.isMulti,a=t.hasValue;return(0,j.jsx)("div",Y({},_e(t,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":a}),r),n)},Lv=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},G2=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"indicatorsContainer",{indicators:!0}),r),n)},gv,L2=["size"];var V2={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Vv=function(t){var n=t.size,r=sn(t,L2);return(0,j.jsx)("svg",Y({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:V2},r))},pf=function(t){return(0,j.jsx)(Vv,Y({size:20},t),(0,j.jsx)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Bv=function(t){return(0,j.jsx)(Vv,Y({size:20},t),(0,j.jsx)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Hv=function(t,n){var r=t.isFocused,i=t.theme,a=i.spacing.baseUnit,l=i.colors;return z({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?l.neutral60:l.neutral20,padding:a*2,":hover":{color:r?l.neutral80:l.neutral40}})},Yv=Hv,B2=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||(0,j.jsx)(Bv,null))},Zv=Hv,H2=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||(0,j.jsx)(pf,null))},zv=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing.baseUnit,l=i.colors;return z({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?l.neutral10:l.neutral20,marginBottom:a*2,marginTop:a*2})},Y2=function(t){var n=t.innerProps;return(0,j.jsx)("span",Y({},n,_e(t,"indicatorSeparator",{"indicator-separator":!0})))},Z2=(0,j.keyframes)(gv||(gv=lf([` 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } `]))),Xv=function(t,n){var r=t.isFocused,i=t.size,a=t.theme,l=a.colors,u=a.spacing.baseUnit;return z({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?l.neutral60:l.neutral20,padding:u*2})},cf=function(t){var n=t.delay,r=t.offset;return(0,j.jsx)("span",{css:(0,j.css)({animation:"".concat(Z2," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},jv=function(t){var n=t.innerProps,r=t.isRtl;return(0,j.jsx)("div",Y({},_e(t,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),(0,j.jsx)(cf,{delay:0,offset:r}),(0,j.jsx)(cf,{delay:160,offset:!0}),(0,j.jsx)(cf,{delay:320,offset:!r}))};jv.defaultProps={size:4};var Uv=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.theme,l=a.colors,u=a.borderRadius,d=a.spacing;return z({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:d.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?l.neutral5:l.neutral0,borderColor:r?l.neutral10:i?l.primary:l.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(l.primary):void 0,"&:hover":{borderColor:i?l.primary:l.neutral30}})},z2=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.innerRef,l=t.innerProps,u=t.menuIsOpen;return(0,j.jsx)("div",Y({ref:a},_e(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":u}),l),n)},X2=["data"],Jv=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},j2=function(t){var n=t.children,r=t.cx,i=t.getStyles,a=t.getClassNames,l=t.Heading,u=t.headingProps,d=t.innerProps,p=t.label,m=t.theme,v=t.selectProps;return(0,j.jsx)("div",Y({},_e(t,"group",{group:!0}),d),(0,j.jsx)(l,Y({},u,{selectProps:v,theme:m,getStyles:i,getClassNames:a,cx:r}),p),(0,j.jsx)("div",null,n))},Qv=function(t,n){var r=t.theme,i=r.colors,a=r.spacing;return z({label:"group",cursor:"default",display:"block"},n?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:a.baseUnit*3,paddingRight:a.baseUnit*3,textTransform:"uppercase"})},U2=function(t){var n=bv(t);n.data;var r=sn(n,X2);return(0,j.jsx)("div",Y({},_e(t,"groupHeading",{"group-heading":!0}),r))},J2=["innerRef","isDisabled","isHidden","inputClassName"],$v=function(t,n){var r=t.isDisabled,i=t.value,a=t.theme,l=a.spacing,u=a.colors;return z(z({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},Q2),n?{}:{margin:l.baseUnit/2,paddingBottom:l.baseUnit/2,paddingTop:l.baseUnit/2,color:u.neutral80})},Kv={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Q2={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":z({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Kv)},$2=function(t){return z({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},Kv)},K2=function(t){var n=t.cx,r=t.value,i=bv(t),a=i.innerRef,l=i.isDisabled,u=i.isHidden,d=i.inputClassName,p=sn(i,J2);return(0,j.jsx)("div",Y({},_e(t,"input",{"input-container":!0}),{"data-value":r||""}),(0,j.jsx)("input",Y({className:n({input:!0},d),ref:a,style:$2(u),disabled:l},p)))},qv=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,l=r.colors;return z({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:l.neutral10,borderRadius:a/2,margin:i.baseUnit/2})},ey=function(t,n){var r=t.theme,i=r.borderRadius,a=r.colors,l=t.cropWithEllipsis;return z({overflow:"hidden",textOverflow:l||l===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:i/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},ty=function(t,n){var r=t.theme,i=r.spacing,a=r.borderRadius,l=r.colors,u=t.isFocused;return z({alignItems:"center",display:"flex"},n?{}:{borderRadius:a/2,backgroundColor:u?l.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:l.dangerLight,color:l.danger}})},ny=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",r,n)},q2=ny,eE=ny;function tE(e){var t=e.children,n=e.innerProps;return(0,j.jsx)("div",Y({role:"button"},n),t||(0,j.jsx)(pf,{size:14}))}var nE=function(t){var n=t.children,r=t.components,i=t.data,a=t.innerProps,l=t.isDisabled,u=t.removeProps,d=t.selectProps,p=r.Container,m=r.Label,v=r.Remove;return(0,j.jsx)(p,{data:i,innerProps:z(z({},_e(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":l})),a),selectProps:d},(0,j.jsx)(m,{data:i,innerProps:z({},_e(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},n),(0,j.jsx)(v,{data:i,innerProps:z(z({},_e(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},u),selectProps:d}))},ry=function(t,n){var r=t.isDisabled,i=t.isFocused,a=t.isSelected,l=t.theme,u=l.spacing,d=l.colors;return z({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:a?d.primary:i?d.primary25:"transparent",color:r?d.neutral20:a?d.neutral0:"inherit",padding:"".concat(u.baseUnit*2,"px ").concat(u.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:a?d.primary:d.primary50}})},rE=function(t){var n=t.children,r=t.isDisabled,i=t.isFocused,a=t.isSelected,l=t.innerRef,u=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":a}),{ref:l,"aria-disabled":r},u),n)},iy=function(t,n){var r=t.theme,i=r.spacing,a=r.colors;return z({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:a.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},iE=function(t){var n=t.children,r=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"placeholder",{placeholder:!0}),r),n)},oy=function(t,n){var r=t.isDisabled,i=t.theme,a=i.spacing,l=i.colors;return z({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?l.neutral40:l.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},oE=function(t){var n=t.children,r=t.isDisabled,i=t.innerProps;return(0,j.jsx)("div",Y({},_e(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),n)},aE={ClearIndicator:H2,Control:z2,DropdownIndicator:B2,DownChevron:Bv,CrossIcon:pf,Group:j2,GroupHeading:U2,IndicatorsContainer:G2,IndicatorSeparator:Y2,Input:K2,LoadingIndicator:jv,Menu:P2,MenuList:O2,MenuPortal:_2,LoadingMessage:_v,NoOptionsMessage:Ov,MultiValue:nE,MultiValueContainer:q2,MultiValueLabel:eE,MultiValueRemove:tE,Option:rE,Placeholder:iE,SelectContainer:R2,SingleValue:oE,ValueContainer:W2},ay=function(t){return z(z({},aE),t.components)};var Wt=Ie(nf());var sy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function sE(e,t){return!!(e===t||sy(e)&&sy(t))}function lE(e,t){if(e.length!==t.length)return!1;for(var n=0;n1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return l?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,i=t.options,a=t.label,l=a===void 0?"":a,u=t.selectValue,d=t.isDisabled,p=t.isSelected,m=function(w,A){return w&&w.length?"".concat(w.indexOf(A)+1," of ").concat(w.length):""};if(n==="value"&&u)return"value ".concat(l," focused, ").concat(m(u,r),".");if(n==="menu"){var v=d?" disabled":"",I="".concat(p?"selected":"focused").concat(v);return"option ".concat(l," ").concat(I,", ").concat(m(i,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},dE=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,l=t.isFocused,u=t.selectValue,d=t.selectProps,p=t.id,m=d.ariaLiveMessages,v=d.getOptionLabel,I=d.inputValue,x=d.isMulti,w=d.isOptionDisabled,A=d.isSearchable,N=d.menuIsOpen,g=d.options,b=d.screenReaderStatus,C=d.tabSelectsValue,E=d["aria-label"],M=d["aria-live"],F=(0,ue.useMemo)(function(){return z(z({},cE),m||{})},[m]),P=(0,ue.useMemo)(function(){var ae="";if(n&&F.onChange){var ee=n.option,Le=n.options,Ue=n.removedValue,ve=n.removedValues,Ct=n.value,at=function(tt){return Array.isArray(tt)?null:tt},we=Ue||ee||at(Ct),se=we?v(we):"",G=Le||ve||void 0,st=G?G.map(v):[],lt=z({isDisabled:we&&w(we,u),label:se,labels:st},n);ae=F.onChange(lt)}return ae},[n,F,w,u,v]),D=(0,ue.useMemo)(function(){var ae="",ee=r||i,Le=!!(r&&u&&u.includes(r));if(ee&&F.onFocus){var Ue={focused:ee,label:v(ee),isDisabled:w(ee,u),isSelected:Le,options:a,context:ee===r?"menu":"value",selectValue:u};ae=F.onFocus(Ue)}return ae},[r,i,v,w,F,a,u]),O=(0,ue.useMemo)(function(){var ae="";if(N&&g.length&&F.onFilter){var ee=b({count:a.length});ae=F.onFilter({inputValue:I,resultsMessage:ee})}return ae},[a,I,N,F,g,b]),B=(0,ue.useMemo)(function(){var ae="";if(F.guidance){var ee=i?"value":N?"menu":"input";ae=F.guidance({"aria-label":E,context:ee,isDisabled:r&&w(r,u),isMulti:x,isSearchable:A,tabSelectsValue:C})}return ae},[E,r,i,x,w,A,N,F,u,C]),Z="".concat(D," ").concat(O," ").concat(B),ne=(0,Wt.jsx)(ue.Fragment,null,(0,Wt.jsx)("span",{id:"aria-selection"},P),(0,Wt.jsx)("span",{id:"aria-context"},Z)),ce=(n==null?void 0:n.action)==="initial-input-focus";return(0,Wt.jsx)(ue.Fragment,null,(0,Wt.jsx)(uy,{id:p},ce&&ne),(0,Wt.jsx)(uy,{"aria-live":M,"aria-atomic":"false","aria-relevant":"additions text"},l&&!ce&&ne))},mf=[{base:"A",letters:"A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"},{base:"AA",letters:"\uA732"},{base:"AE",letters:"\xC6\u01FC\u01E2"},{base:"AO",letters:"\uA734"},{base:"AU",letters:"\uA736"},{base:"AV",letters:"\uA738\uA73A"},{base:"AY",letters:"\uA73C"},{base:"B",letters:"B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"},{base:"C",letters:"C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"},{base:"D",letters:"D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"},{base:"DZ",letters:"\u01F1\u01C4"},{base:"Dz",letters:"\u01F2\u01C5"},{base:"E",letters:"E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"},{base:"F",letters:"F\u24BB\uFF26\u1E1E\u0191\uA77B"},{base:"G",letters:"G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"},{base:"H",letters:"H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"},{base:"I",letters:"I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"},{base:"J",letters:"J\u24BF\uFF2A\u0134\u0248"},{base:"K",letters:"K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"},{base:"L",letters:"L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"},{base:"LJ",letters:"\u01C7"},{base:"Lj",letters:"\u01C8"},{base:"M",letters:"M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"},{base:"N",letters:"N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"},{base:"NJ",letters:"\u01CA"},{base:"Nj",letters:"\u01CB"},{base:"O",letters:"O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"},{base:"OI",letters:"\u01A2"},{base:"OO",letters:"\uA74E"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"},{base:"Q",letters:"Q\u24C6\uFF31\uA756\uA758\u024A"},{base:"R",letters:"R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"},{base:"S",letters:"S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"},{base:"T",letters:"T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"},{base:"TZ",letters:"\uA728"},{base:"U",letters:"U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"},{base:"V",letters:"V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"},{base:"VY",letters:"\uA760"},{base:"W",letters:"W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"},{base:"X",letters:"X\u24CD\uFF38\u1E8A\u1E8C"},{base:"Y",letters:"Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"},{base:"Z",letters:"Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"},{base:"a",letters:"a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"},{base:"aa",letters:"\uA733"},{base:"ae",letters:"\xE6\u01FD\u01E3"},{base:"ao",letters:"\uA735"},{base:"au",letters:"\uA737"},{base:"av",letters:"\uA739\uA73B"},{base:"ay",letters:"\uA73D"},{base:"b",letters:"b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"},{base:"c",letters:"c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"},{base:"d",letters:"d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"},{base:"dz",letters:"\u01F3\u01C6"},{base:"e",letters:"e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"},{base:"f",letters:"f\u24D5\uFF46\u1E1F\u0192\uA77C"},{base:"g",letters:"g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"},{base:"h",letters:"h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"},{base:"j",letters:"j\u24D9\uFF4A\u0135\u01F0\u0249"},{base:"k",letters:"k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"},{base:"l",letters:"l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"},{base:"lj",letters:"\u01C9"},{base:"m",letters:"m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"},{base:"n",letters:"n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"},{base:"nj",letters:"\u01CC"},{base:"o",letters:"o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"},{base:"oi",letters:"\u01A3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\uA74F"},{base:"p",letters:"p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"},{base:"q",letters:"q\u24E0\uFF51\u024B\uA757\uA759"},{base:"r",letters:"r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"},{base:"s",letters:"s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"},{base:"t",letters:"t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"},{base:"tz",letters:"\uA729"},{base:"u",letters:"u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"},{base:"v",letters:"v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"},{base:"vy",letters:"\uA761"},{base:"w",letters:"w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"},{base:"x",letters:"x\u24E7\uFF58\u1E8B\u1E8D"},{base:"y",letters:"y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"},{base:"z",letters:"z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"}],fE=new RegExp("["+mf.map(function(e){return e.letters}).join("")+"]","g"),Iy={};for(Il=0;Il-1}},gE=["innerRef"];function vE(e){var t=e.innerRef,n=sn(e,gE),r=Ev(n,"onExited","in","enter","exit","appear");return(0,Wt.jsx)("input",Y({ref:t},r,{css:(0,Wt.css)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var yE=function(t){t.preventDefault(),t.stopPropagation()};function bE(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,i=e.onTopArrive,a=e.onTopLeave,l=(0,ue.useRef)(!1),u=(0,ue.useRef)(!1),d=(0,ue.useRef)(0),p=(0,ue.useRef)(null),m=(0,ue.useCallback)(function(N,g){if(p.current!==null){var b=p.current,C=b.scrollTop,E=b.scrollHeight,M=b.clientHeight,F=p.current,P=g>0,D=E-M-C,O=!1;D>g&&l.current&&(r&&r(N),l.current=!1),P&&u.current&&(a&&a(N),u.current=!1),P&&g>D?(n&&!l.current&&n(N),F.scrollTop=E,O=!0,l.current=!0):!P&&-g>C&&(i&&!u.current&&i(N),F.scrollTop=0,O=!0,u.current=!0),O&&yE(N)}},[n,r,i,a]),v=(0,ue.useCallback)(function(N){m(N,N.deltaY)},[m]),I=(0,ue.useCallback)(function(N){d.current=N.changedTouches[0].clientY},[]),x=(0,ue.useCallback)(function(N){var g=d.current-N.changedTouches[0].clientY;m(N,g)},[m]),w=(0,ue.useCallback)(function(N){if(!!N){var g=wv?{passive:!1}:!1;N.addEventListener("wheel",v,g),N.addEventListener("touchstart",I,g),N.addEventListener("touchmove",x,g)}},[x,I,v]),A=(0,ue.useCallback)(function(N){!N||(N.removeEventListener("wheel",v,!1),N.removeEventListener("touchstart",I,!1),N.removeEventListener("touchmove",x,!1))},[x,I,v]);return(0,ue.useEffect)(function(){if(!!t){var N=p.current;return w(N),function(){A(N)}}},[t,w,A]),function(N){p.current=N}}var dy=["boxSizing","height","overflow","paddingRight","position"],fy={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function py(e){e.preventDefault()}function hy(e){e.stopPropagation()}function my(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function gy(){return"ontouchstart"in window||navigator.maxTouchPoints}var vy=!!(typeof window!="undefined"&&window.document&&window.document.createElement),ia=0,Xi={capture:!1,passive:!1};function IE(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,i=(0,ue.useRef)({}),a=(0,ue.useRef)(null),l=(0,ue.useCallback)(function(d){if(!!vy){var p=document.body,m=p&&p.style;if(r&&dy.forEach(function(w){var A=m&&m[w];i.current[w]=A}),r&&ia<1){var v=parseInt(i.current.paddingRight,10)||0,I=document.body?document.body.clientWidth:0,x=window.innerWidth-I+v||0;Object.keys(fy).forEach(function(w){var A=fy[w];m&&(m[w]=A)}),m&&(m.paddingRight="".concat(x,"px"))}p&&gy()&&(p.addEventListener("touchmove",py,Xi),d&&(d.addEventListener("touchstart",my,Xi),d.addEventListener("touchmove",hy,Xi))),ia+=1}},[r]),u=(0,ue.useCallback)(function(d){if(!!vy){var p=document.body,m=p&&p.style;ia=Math.max(ia-1,0),r&&ia<1&&dy.forEach(function(v){var I=i.current[v];m&&(m[v]=I)}),p&&gy()&&(p.removeEventListener("touchmove",py,Xi),d&&(d.removeEventListener("touchstart",my,Xi),d.removeEventListener("touchmove",hy,Xi)))}},[r]);return(0,ue.useEffect)(function(){if(!!t){var d=a.current;return l(d),function(){u(d)}}},[t,l,u]),function(d){a.current=d}}var CE=function(){return document.activeElement&&document.activeElement.blur()},SE={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function wE(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,i=r===void 0?!0:r,a=e.onBottomArrive,l=e.onBottomLeave,u=e.onTopArrive,d=e.onTopLeave,p=bE({isEnabled:i,onBottomArrive:a,onBottomLeave:l,onTopArrive:u,onTopLeave:d}),m=IE({isEnabled:n}),v=function(x){p(x),m(x)};return(0,Wt.jsx)(ue.Fragment,null,n&&(0,Wt.jsx)("div",{onClick:CE,css:SE}),t(v))}var xE={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},EE=function(t){var n=t.name,r=t.onFocus;return(0,Wt.jsx)("input",{required:!0,name:n,tabIndex:-1,onFocus:r,css:xE,value:"",onChange:function(){}})},AE=function(t){return t.label},gf=function(t){return t.label},vf=function(t){return t.value},kE=function(t){return!!t.isDisabled},TE={clearIndicator:Zv,container:Wv,control:Uv,dropdownIndicator:Yv,group:Jv,groupHeading:Qv,indicatorsContainer:Lv,indicatorSeparator:zv,input:$v,loadingIndicator:Xv,loadingMessage:Pv,menu:kv,menuList:Nv,menuPortal:Rv,multiValue:qv,multiValueLabel:ey,multiValueRemove:ty,noOptionsMessage:Dv,option:ry,placeholder:iy,singleValue:oy,valueContainer:Gv};var FE={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},NE=4,Sy=4,ME=38,DE=Sy*2,PE={baseUnit:Sy,controlHeight:ME,menuGutter:DE},hf={borderRadius:NE,colors:FE,spacing:PE},OE={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ff(),captureMenuScroll:!ff(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:mE(),formatGroupLabel:AE,getOptionLabel:gf,getOptionValue:vf,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:kE,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Cv(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function yy(e,t,n,r){var i=Ay(e,t,n),a=ky(e,t,n),l=Ey(e,t),u=wl(e,t);return{type:"option",data:t,isDisabled:i,isSelected:a,label:l,value:u,index:r}}function wy(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(l,u){return yy(e,l,t,u)}).filter(function(l){return by(e,l)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=yy(e,n,t,r);return by(e,a)?a:void 0}).filter(xv)}function xy(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,Mr(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function _E(e,t){return xy(wy(e,t))}function by(e,t){var n=e.inputValue,r=n===void 0?"":n,i=t.data,a=t.isSelected,l=t.label,u=t.value;return(!Fy(e)||!a)&&Ty(e,{label:l,value:u,data:i},r)}function RE(e,t){var n=e.focusedValue,r=e.selectValue,i=r.indexOf(n);if(i>-1){var a=t.indexOf(n);if(a>-1)return n;if(i-1?n:t[0]}var Ey=function(t,n){return t.getOptionLabel(n)},wl=function(t,n){return t.getOptionValue(n)};function Ay(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function ky(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=wl(e,t);return n.some(function(i){return wl(e,i)===r})}function Ty(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var Fy=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},GE=1,yf=function(e){vd(n,e);var t=Cd(n);function n(r){var i;if(md(this,n),i=t.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.instancePrefix="",i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.controlRef=null,i.getControlRef=function(u){i.controlRef=u},i.focusedOptionRef=null,i.getFocusedOptionRef=function(u){i.focusedOptionRef=u},i.menuListRef=null,i.getMenuListRef=function(u){i.menuListRef=u},i.inputRef=null,i.getInputRef=function(u){i.inputRef=u},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(u,d){var p=i.props,m=p.onChange,v=p.name;d.name=v,i.ariaOnChange(u,d),m(u,d)},i.setValue=function(u,d,p){var m=i.props,v=m.closeMenuOnSelect,I=m.isMulti,x=m.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:x}),v&&(i.setState({inputIsHiddenAfterUpdate:!I}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(u,{action:d,option:p})},i.selectOption=function(u){var d=i.props,p=d.blurInputOnSelect,m=d.isMulti,v=d.name,I=i.state.selectValue,x=m&&i.isOptionSelected(u,I),w=i.isOptionDisabled(u,I);if(x){var A=i.getOptionValue(u);i.setValue(I.filter(function(N){return i.getOptionValue(N)!==A}),"deselect-option",u)}else if(!w)m?i.setValue([].concat(Mr(I),[u]),"select-option",u):i.setValue(u,"select-option");else{i.ariaOnChange(u,{action:"select-option",option:u,name:v});return}p&&i.blurInput()},i.removeValue=function(u){var d=i.props.isMulti,p=i.state.selectValue,m=i.getOptionValue(u),v=p.filter(function(x){return i.getOptionValue(x)!==m}),I=ni(d,v,v[0]||null);i.onChange(I,{action:"remove-value",removedValue:u}),i.focusInput()},i.clearValue=function(){var u=i.state.selectValue;i.onChange(ni(i.props.isMulti,[],null),{action:"clear",removedValues:u})},i.popValue=function(){var u=i.props.isMulti,d=i.state.selectValue,p=d[d.length-1],m=d.slice(0,d.length-1),v=ni(u,m,m[0]||null);i.onChange(v,{action:"pop-value",removedValue:p})},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var u=arguments.length,d=new Array(u),p=0;pI||v>I}},i.onTouchEnd=function(u){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(u.target)&&i.menuListRef&&!i.menuListRef.contains(u.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(u){i.userIsDragging||i.onControlMouseDown(u)},i.onClearIndicatorTouchEnd=function(u){i.userIsDragging||i.onClearIndicatorMouseDown(u)},i.onDropdownIndicatorTouchEnd=function(u){i.userIsDragging||i.onDropdownIndicatorMouseDown(u)},i.handleInputChange=function(u){var d=i.props.inputValue,p=u.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(p,{action:"input-change",prevInputValue:d}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(u){i.props.onFocus&&i.props.onFocus(u),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(u){var d=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(u),i.onInputChange("",{action:"input-blur",prevInputValue:d}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(u){i.blockOptionHover||i.state.focusedOption===u||i.setState({focusedOption:u})},i.shouldHideSelectedOptions=function(){return Fy(i.props)},i.onValueInputFocus=function(u){u.preventDefault(),u.stopPropagation(),i.focus()},i.onKeyDown=function(u){var d=i.props,p=d.isMulti,m=d.backspaceRemovesValue,v=d.escapeClearsValue,I=d.inputValue,x=d.isClearable,w=d.isDisabled,A=d.menuIsOpen,N=d.onKeyDown,g=d.tabSelectsValue,b=d.openMenuOnFocus,C=i.state,E=C.focusedOption,M=C.focusedValue,F=C.selectValue;if(!w&&!(typeof N=="function"&&(N(u),u.defaultPrevented))){switch(i.blockOptionHover=!0,u.key){case"ArrowLeft":if(!p||I)return;i.focusValue("previous");break;case"ArrowRight":if(!p||I)return;i.focusValue("next");break;case"Delete":case"Backspace":if(I)return;if(M)i.removeValue(M);else{if(!m)return;p?i.popValue():x&&i.clearValue()}break;case"Tab":if(i.isComposing||u.shiftKey||!A||!g||!E||b&&i.isOptionSelected(E,F))return;i.selectOption(E);break;case"Enter":if(u.keyCode===229)break;if(A){if(!E||i.isComposing)return;i.selectOption(E);break}return;case"Escape":A?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:I}),i.onMenuClose()):x&&v&&i.clearValue();break;case" ":if(I)return;if(!A){i.openMenu("first");break}if(!E)return;i.selectOption(E);break;case"ArrowUp":A?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":A?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!A)return;i.focusOption("pageup");break;case"PageDown":if(!A)return;i.focusOption("pagedown");break;case"Home":if(!A)return;i.focusOption("first");break;case"End":if(!A)return;i.focusOption("last");break;default:return}u.preventDefault()}},i.instancePrefix="react-select-"+(i.props.instanceId||++GE),i.state.selectValue=zi(r.value),r.menuIsOpen&&i.state.selectValue.length){var a=i.buildFocusableOptions(),l=a.indexOf(i.state.selectValue[0]);i.state.focusedOption=a[l]}return i}return gd(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&df(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var a=this.props,l=a.isDisabled,u=a.menuIsOpen,d=this.state.isFocused;(d&&!l&&i.isDisabled||d&&u&&!i.menuIsOpen)&&this.focusInput(),d&&l&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!l&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(df(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,a){this.props.onInputChange(i,a)}},{key:"focusInput",value:function(){!this.inputRef||this.inputRef.focus()}},{key:"blurInput",value:function(){!this.inputRef||this.inputRef.blur()}},{key:"openMenu",value:function(i){var a=this,l=this.state,u=l.selectValue,d=l.isFocused,p=this.buildFocusableOptions(),m=i==="first"?0:p.length-1;if(!this.props.isMulti){var v=p.indexOf(u[0]);v>-1&&(m=v)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[m]},function(){return a.onMenuOpen()})}},{key:"focusValue",value:function(i){var a=this.state,l=a.selectValue,u=a.focusedValue;if(!!this.props.isMulti){this.setState({focusedOption:null});var d=l.indexOf(u);u||(d=-1);var p=l.length-1,m=-1;if(!!l.length){switch(i){case"previous":d===0?m=0:d===-1?m=p:m=d-1;break;case"next":d>-1&&d0&&arguments[0]!==void 0?arguments[0]:"first",a=this.props.pageSize,l=this.state.focusedOption,u=this.getFocusableOptions();if(!!u.length){var d=0,p=u.indexOf(l);l||(p=-1),i==="up"?d=p>0?p-1:u.length-1:i==="down"?d=(p+1)%u.length:i==="pageup"?(d=p-a,d<0&&(d=0)):i==="pagedown"?(d=p+a,d>u.length-1&&(d=u.length-1)):i==="last"&&(d=u.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:u[d],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(hf):z(z({},hf),this.props.theme):hf}},{key:"getCommonProps",value:function(){var i=this.clearValue,a=this.cx,l=this.getStyles,u=this.getClassNames,d=this.getValue,p=this.selectOption,m=this.setValue,v=this.props,I=v.isMulti,x=v.isRtl,w=v.options,A=this.hasValue();return{clearValue:i,cx:a,getStyles:l,getClassNames:u,getValue:d,hasValue:A,isMulti:I,isRtl:x,options:w,selectOption:p,selectProps:v,setValue:m,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,a=i.isClearable,l=i.isMulti;return a===void 0?l:a}},{key:"isOptionDisabled",value:function(i,a){return Ay(this.props,i,a)}},{key:"isOptionSelected",value:function(i,a){return ky(this.props,i,a)}},{key:"filterOption",value:function(i,a){return Ty(this.props,i,a)}},{key:"formatOptionLabel",value:function(i,a){if(typeof this.props.formatOptionLabel=="function"){var l=this.props.inputValue,u=this.state.selectValue;return this.props.formatOptionLabel(i,{context:a,inputValue:l,selectValue:u})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,a=i.isDisabled,l=i.isSearchable,u=i.inputId,d=i.inputValue,p=i.tabIndex,m=i.form,v=i.menuIsOpen,I=i.required,x=this.getComponents(),w=x.Input,A=this.state,N=A.inputIsHidden,g=A.ariaSelection,b=this.commonProps,C=u||this.getElementId("input"),E=z(z(z({"aria-autocomplete":"list","aria-expanded":v,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":I,role:"combobox"},v&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!l&&{"aria-readonly":!0}),this.hasValue()?(g==null?void 0:g.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return l?pe.createElement(w,Y({},b,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:C,innerRef:this.getInputRef,isDisabled:a,isHidden:N,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:m,type:"text",value:d},E)):pe.createElement(vE,Y({id:C,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:na,onFocus:this.onInputFocus,disabled:a,tabIndex:p,inputMode:"none",form:m,value:""},E))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,a=this.getComponents(),l=a.MultiValue,u=a.MultiValueContainer,d=a.MultiValueLabel,p=a.MultiValueRemove,m=a.SingleValue,v=a.Placeholder,I=this.commonProps,x=this.props,w=x.controlShouldRenderValue,A=x.isDisabled,N=x.isMulti,g=x.inputValue,b=x.placeholder,C=this.state,E=C.selectValue,M=C.focusedValue,F=C.isFocused;if(!this.hasValue()||!w)return g?null:pe.createElement(v,Y({},I,{key:"placeholder",isDisabled:A,isFocused:F,innerProps:{id:this.getElementId("placeholder")}}),b);if(N)return E.map(function(D,O){var B=D===M,Z="".concat(i.getOptionLabel(D),"-").concat(i.getOptionValue(D));return pe.createElement(l,Y({},I,{components:{Container:u,Label:d,Remove:p},isFocused:B,isDisabled:A,key:Z,index:O,removeProps:{onClick:function(){return i.removeValue(D)},onTouchEnd:function(){return i.removeValue(D)},onMouseDown:function(ce){ce.preventDefault()}},data:D}),i.formatOptionLabel(D,"value"))});if(g)return null;var P=E[0];return pe.createElement(m,Y({},I,{data:P,isDisabled:A}),this.formatOptionLabel(P,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),a=i.ClearIndicator,l=this.commonProps,u=this.props,d=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!this.isClearable()||!a||d||!this.hasValue()||p)return null;var v={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return pe.createElement(a,Y({},l,{innerProps:v,isFocused:m}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),a=i.LoadingIndicator,l=this.commonProps,u=this.props,d=u.isDisabled,p=u.isLoading,m=this.state.isFocused;if(!a||!p)return null;var v={"aria-hidden":"true"};return pe.createElement(a,Y({},l,{innerProps:v,isDisabled:d,isFocused:m}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator,l=i.IndicatorSeparator;if(!a||!l)return null;var u=this.commonProps,d=this.props.isDisabled,p=this.state.isFocused;return pe.createElement(l,Y({},u,{isDisabled:d,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),a=i.DropdownIndicator;if(!a)return null;var l=this.commonProps,u=this.props.isDisabled,d=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return pe.createElement(a,Y({},l,{innerProps:p,isDisabled:u,isFocused:d}))}},{key:"renderMenu",value:function(){var i=this,a=this.getComponents(),l=a.Group,u=a.GroupHeading,d=a.Menu,p=a.MenuList,m=a.MenuPortal,v=a.LoadingMessage,I=a.NoOptionsMessage,x=a.Option,w=this.commonProps,A=this.state.focusedOption,N=this.props,g=N.captureMenuScroll,b=N.inputValue,C=N.isLoading,E=N.loadingMessage,M=N.minMenuHeight,F=N.maxMenuHeight,P=N.menuIsOpen,D=N.menuPlacement,O=N.menuPosition,B=N.menuPortalTarget,Z=N.menuShouldBlockScroll,ne=N.menuShouldScrollIntoView,ce=N.noOptionsMessage,ae=N.onMenuScrollToTop,ee=N.onMenuScrollToBottom;if(!P)return null;var Le=function(G,st){var lt=G.type,Ve=G.data,tt=G.isDisabled,Gt=G.isSelected,_n=G.label,ri=G.value,Dr=A===Ve,Pr=tt?void 0:function(){return i.onOptionHover(Ve)},or=tt?void 0:function(){return i.selectOption(Ve)},Or="".concat(i.getElementId("option"),"-").concat(st),_r={id:Or,onClick:or,onMouseMove:Pr,onMouseOver:Pr,tabIndex:-1};return pe.createElement(x,Y({},w,{innerProps:_r,data:Ve,isDisabled:tt,isSelected:Gt,key:Or,label:_n,type:lt,value:ri,isFocused:Dr,innerRef:Dr?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(G.data,"menu"))},Ue;if(this.hasOptions())Ue=this.getCategorizedOptions().map(function(se){if(se.type==="group"){var G=se.data,st=se.options,lt=se.index,Ve="".concat(i.getElementId("group"),"-").concat(lt),tt="".concat(Ve,"-heading");return pe.createElement(l,Y({},w,{key:Ve,data:G,options:st,Heading:u,headingProps:{id:tt,data:se.data},label:i.formatGroupLabel(se.data)}),se.options.map(function(Gt){return Le(Gt,"".concat(lt,"-").concat(Gt.index))}))}else if(se.type==="option")return Le(se,"".concat(se.index))});else if(C){var ve=E({inputValue:b});if(ve===null)return null;Ue=pe.createElement(v,w,ve)}else{var Ct=ce({inputValue:b});if(Ct===null)return null;Ue=pe.createElement(I,w,Ct)}var at={minMenuHeight:M,maxMenuHeight:F,menuPlacement:D,menuPosition:O,menuShouldScrollIntoView:ne},we=pe.createElement(Fv,Y({},w,at),function(se){var G=se.ref,st=se.placerProps,lt=st.placement,Ve=st.maxHeight;return pe.createElement(d,Y({},w,at,{innerRef:G,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove,id:i.getElementId("listbox")},isLoading:C,placement:lt}),pe.createElement(wE,{captureEnabled:g,onTopArrive:ae,onBottomArrive:ee,lockEnabled:Z},function(tt){return pe.createElement(p,Y({},w,{innerRef:function(_n){i.getMenuListRef(_n),tt(_n)},isLoading:C,maxHeight:Ve,focusedOption:A}),Ue)}))});return B||O==="fixed"?pe.createElement(m,Y({},w,{appendTo:B,controlElement:this.controlRef,menuPlacement:D,menuPosition:O}),we):we}},{key:"renderFormField",value:function(){var i=this,a=this.props,l=a.delimiter,u=a.isDisabled,d=a.isMulti,p=a.name,m=a.required,v=this.state.selectValue;if(!(!p||u)){if(m&&!this.hasValue())return pe.createElement(EE,{name:p,onFocus:this.onValueInputFocus});if(d)if(l){var I=v.map(function(A){return i.getOptionValue(A)}).join(l);return pe.createElement("input",{name:p,type:"hidden",value:I})}else{var x=v.length>0?v.map(function(A,N){return pe.createElement("input",{key:"i-".concat(N),name:p,type:"hidden",value:i.getOptionValue(A)})}):pe.createElement("input",{name:p,type:"hidden",value:""});return pe.createElement("div",null,x)}else{var w=v[0]?this.getOptionValue(v[0]):"";return pe.createElement("input",{name:p,type:"hidden",value:w})}}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,a=this.state,l=a.ariaSelection,u=a.focusedOption,d=a.focusedValue,p=a.isFocused,m=a.selectValue,v=this.getFocusableOptions();return pe.createElement(dE,Y({},i,{id:this.getElementId("live-region"),ariaSelection:l,focusedOption:u,focusedValue:d,isFocused:p,selectValue:m,focusableOptions:v}))}},{key:"render",value:function(){var i=this.getComponents(),a=i.Control,l=i.IndicatorsContainer,u=i.SelectContainer,d=i.ValueContainer,p=this.props,m=p.className,v=p.id,I=p.isDisabled,x=p.menuIsOpen,w=this.state.isFocused,A=this.commonProps=this.getCommonProps();return pe.createElement(u,Y({},A,{className:m,innerProps:{id:v,onKeyDown:this.onKeyDown},isDisabled:I,isFocused:w}),this.renderLiveRegion(),pe.createElement(a,Y({},A,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:I,isFocused:w,menuIsOpen:x}),pe.createElement(d,Y({},A,{isDisabled:I}),this.renderPlaceholderOrValue(),this.renderInput()),pe.createElement(l,Y({},A,{isDisabled:I}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,a){var l=a.prevProps,u=a.clearFocusValueOnUpdate,d=a.inputIsHiddenAfterUpdate,p=a.ariaSelection,m=a.isFocused,v=a.prevWasFocused,I=i.options,x=i.value,w=i.menuIsOpen,A=i.inputValue,N=i.isMulti,g=zi(x),b={};if(l&&(x!==l.value||I!==l.options||w!==l.menuIsOpen||A!==l.inputValue)){var C=w?_E(i,g):[],E=u?RE(a,g):null,M=WE(a,C);b={selectValue:g,focusedOption:M,focusedValue:E,clearFocusValueOnUpdate:!1}}var F=d!=null&&i!==l?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},P=p,D=m&&v;return m&&!D&&(P={value:ni(N,g,g[0]||null),options:g,action:"initial-input-focus"},D=!v),(p==null?void 0:p.action)==="initial-input-focus"&&(P=null),z(z(z({},b),F),{},{prevProps:i,ariaSelection:P,prevWasFocused:D})}}]),n}(ue.Component);yf.defaultProps=OE;var ir=Ie(Pe()),LE=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Ny(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,i=r===void 0?!1:r,a=e.defaultValue,l=a===void 0?null:a,u=e.inputValue,d=e.menuIsOpen,p=e.onChange,m=e.onInputChange,v=e.onMenuClose,I=e.onMenuOpen,x=e.value,w=sn(e,LE),A=(0,ir.useState)(u!==void 0?u:n),N=an(A,2),g=N[0],b=N[1],C=(0,ir.useState)(d!==void 0?d:i),E=an(C,2),M=E[0],F=E[1],P=(0,ir.useState)(x!==void 0?x:l),D=an(P,2),O=D[0],B=D[1],Z=(0,ir.useCallback)(function(ve,Ct){typeof p=="function"&&p(ve,Ct),B(ve)},[p]),ne=(0,ir.useCallback)(function(ve,Ct){var at;typeof m=="function"&&(at=m(ve,Ct)),b(at!==void 0?at:ve)},[m]),ce=(0,ir.useCallback)(function(){typeof I=="function"&&I(),F(!0)},[I]),ae=(0,ir.useCallback)(function(){typeof v=="function"&&v(),F(!1)},[v]),ee=u!==void 0?u:g,Le=d!==void 0?d:M,Ue=x!==void 0?x:O;return z(z({},w),{},{inputValue:ee,menuIsOpen:Le,onChange:Z,onInputChange:ne,onMenuClose:ae,onMenuOpen:ce,value:Ue})}var oa=Ie(Pe());var VE=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],My=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=String(t).toLowerCase(),a=String(r.getOptionValue(n)).toLowerCase(),l=String(r.getOptionLabel(n)).toLowerCase();return a===i||l===i},bf={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,n,r,i){return!(!t||n.some(function(a){return My(t,a,i)})||r.some(function(a){return My(t,a,i)}))},getNewOptionData:function(t,n){return{label:n,value:t,__isNew__:!0}}};function Dy(e){var t=e.allowCreateWhileLoading,n=t===void 0?!1:t,r=e.createOptionPosition,i=r===void 0?"last":r,a=e.formatCreateLabel,l=a===void 0?bf.formatCreateLabel:a,u=e.isValidNewOption,d=u===void 0?bf.isValidNewOption:u,p=e.getNewOptionData,m=p===void 0?bf.getNewOptionData:p,v=e.onCreateOption,I=e.options,x=I===void 0?[]:I,w=e.onChange,A=sn(e,VE),N=A.getOptionValue,g=N===void 0?vf:N,b=A.getOptionLabel,C=b===void 0?gf:b,E=A.inputValue,M=A.isLoading,F=A.isMulti,P=A.value,D=A.name,O=(0,oa.useMemo)(function(){return d(E,zi(P),x,{getOptionValue:g,getOptionLabel:C})?m(E,l(E)):void 0},[l,m,C,g,E,d,x,P]),B=(0,oa.useMemo)(function(){return(n||!M)&&O?i==="first"?[O].concat(Mr(x)):[].concat(Mr(x),[O]):x},[n,i,M,O,x]),Z=(0,oa.useCallback)(function(ne,ce){if(ce.action!=="select-option")return w(ne,ce);var ae=Array.isArray(ne)?ne:[ne];if(ae[ae.length-1]===O){if(v)v(E);else{var ee=m(E,E),Le={action:"create-option",name:D,option:ee};w(ni(F,[].concat(Mr(zi(P)),[ee]),ee),Le)}return}w(ne,ce)},[m,E,F,D,O,v,w,P]);return z(z({},A),{},{options:B,onChange:Z})}var zT=Ie(Hs());var BE=(0,Oy.forwardRef)(function(e,t){var n=Ny(e),r=Dy(n);return Py.createElement(yf,Y({ref:t},r))}),_y=BE;var Ry=({options:e,placeholder:t,container:n,onChange:r,onInputChange:i,newLabel:a,value:l})=>{let u=(0,aa.useCallback)(d=>HE({value:d,label:a}),[a]);return aa.default.createElement(_y,{options:e,formatCreateLabel:u,inputValue:l,onChange:r,onInputChange:i,styles:YE,isClearable:!0,placeholder:t,controlShouldRenderValue:!1,menuPortalTarget:n})},HE=({value:e,label:t})=>aa.default.createElement("span",null,t.format(e)),YE={option:(e,t)=>de($({},e),{background:t.isFocused?"var(--background-secondary)":"var(--background-primary)",color:"var(--text-normal)","&:hover":de($({},e["&:hover"]),{backgroundColor:"var(--background-secondary)"})}),valueContainer:(e,t)=>de($({},e),{color:"var(--text-normal)"}),menu:e=>$({},e),menuList:(e,t)=>de($({},e),{border:"1px solid var(--background-modifier-border)",backgroundColor:"var(--background-secondary-alt)",color:"var(--text-normal)"}),input:(e,t)=>de($({},e),{color:"var(--text-normal)"}),singleValue:(e,t)=>de($({},e),{color:"var(--text-normal)"}),control:(e,t)=>de($({},e),{background:"var(--background-modifier-form-field)",color:"var(--text-normal)",border:"1px solid var(--background-modifier-border)",boxShadow:"none",width:"300px","&:hover":de($({},e["&:hover"]),{borderColor:"var(--background-modifier-border)"}),"&:active":de($({},e["&:active"]),{borderColor:"var(--interactive-accent);"}),"&:focus":de($({},e["&:focus"]),{borderColor:"var(--interactive-accent);"}),"&:focused":de($({},e["&:focused"]),{borderColor:"var(--interactive-accent);"}),"&:focus-within":de($({},e["&:focus-within"]),{borderColor:"var(--interactive-accent);"})}),menuPortal:e=>de($({},e),{zIndex:"var(--layer-modal)"})};var xl=class extends Wy.Modal{constructor(n,r,i){super(n);this.settings=r,this.titleEl.setText("Janitor Excluded Files"),this.onFiltersChanged=i}render(){let n=Qg(this.app).map(r=>({value:r.endsWith("/")?r:r+"/",label:r}));this.root.render(je.createElement(je.StrictMode,null,je.createElement(ZE,{filters:this.settings.excludedFilesFilters,folders:n,onCancel:()=>{this.close()},onFilterChanged:r=>{this.close(),this.onFiltersChanged&&this.onFiltersChanged(r)}})))}onOpen(){let{contentEl:n}=this;this.root=(0,Gy.createRoot)(n),this.render()}onClose(){this.root.unmount()}},ZE=({filters:e,folders:t,onCancel:n,onFilterChanged:r})=>{let[i,a]=(0,On.useState)({filters:e,value:""}),l=i.filters,u=(0,On.useRef)(null),d=(0,On.useCallback)(A=>{a(N=>If(N.value)?de($({},N),{filters:[...N.filters,N.value],value:""}):N)},[]),p=(0,On.useCallback)((A,N)=>{(N.action==="select-option"||N.action==="create-option")&&a(g=>If(A.value)?de($({},g),{filters:[...g.filters,A.value],value:""}):g)},[]),m=(0,On.useCallback)((A,N)=>{N.action==="input-change"&&a(g=>de($({},g),{value:A}))},[]),v=(0,On.useCallback)(A=>{a(N=>de($({},N),{filters:N.filters.filter((g,b)=>A!==b)}))},[]),I=(0,On.useCallback)(()=>{r&&r(i.filters)},[i.filters]),x=If(i.value),w=x?"Press enter or button to add filter":"insert a valid regular expression";return je.createElement("div",{ref:u},je.createElement("div",null,"Files matching the following regular expressions are currently ignored:"),l.map((A,N)=>je.createElement("div",{key:N,className:"mobile-option-setting-item"},je.createElement("span",{className:"mobile-option-setting-item-name"},A),je.createElement("span",{className:"mobile-option-setting-item-option-icon",onClick:()=>v(N)},je.createElement(Kg,null)))),je.createElement(t0,null,je.createElement(qg,{name:"Filter",description:w}),je.createElement(e0,null,je.createElement(Ry,{key:e.length,value:i.value,container:document.body,options:t,placeholder:"Insert folder or regex...",newLabel:'Add "{0}"',onChange:p,onInputChange:m}),je.createElement("button",{onClick:d,disabled:!x},"Add"))),je.createElement("div",{className:"modal-button-container"},je.createElement("button",{className:"mod-cta",onClick:I},"Done"),je.createElement("button",{onClick:n},"Cancel")))};function If(e){let t=e.length>0;try{let n=new RegExp(e)}catch(n){t=!1}return t}var Cn=require("obsidian"),sa=class extends Cn.PluginSettingTab{constructor(n,r){super(n,r);this.plugin=r}display(){let{containerEl:n}=this;n.empty(),n.createEl("h2",{text:"Janitor Settings"}),new Cn.Setting(n).setName("Add Ribbon Icon").setDesc("Adds an icon to the ribbon to launch scan").addToggle(i=>i.setValue(this.plugin.settings.addRibbonIcon).onChange(a=>fe(this,null,function*(){this.plugin.settings.addRibbonIcon=a,yield this.plugin.saveSettings(),a?this.plugin.addIcon():this.plugin.removeIcon(),this.display()}))),this.createToggle(n,"Run at Startup","The plugin will perform a scan automatically everytime you open a vault.","runAtStartup"),this.createToggle(n,"Ask Confirmation","The user will be able to select which files to remove","promptUser"),new Cn.Setting(n).setName("Always Prompt for big files").setDesc("Always prompt before deleting big files").addToggle(i=>i.setValue(this.plugin.settings.promptForBigFiles).onChange(a=>fe(this,null,function*(){this.plugin.settings.promptForBigFiles=a,yield this.plugin.saveSettings()}))),new Cn.Setting(n).setHeading(),this.createToggle(n,"Process Orphans","Remove media and attachments that are not in use","processOrphans"),this.createToggle(n,"Process Empty","Remove empty files or files with only whitespace","processEmpty"),this.createToggle(n,"Process Big Files","Removes files with big dimensions","processBig"),this.plugin.settings.processBig&&new Cn.Setting(n).setName("File Size Limit (KB)").setDesc("Files larger than this size will be considered for removal.").addText(i=>i.setValue(this.plugin.settings.sizeLimitKb.toString()).onChange(a=>fe(this,null,function*(){let l=parseInt(a);isFinite(l)?this.plugin.settings.sizeLimitKb=l:this.plugin.settings.sizeLimitKb=js.sizeLimitKb,yield this.plugin.saveSettings()}))),this.createToggle(n,"Process Expired","Remove notes that have expired","processExpired"),this.plugin.settings.processExpired&&(n.createEl("h3",{text:"Expiration Processing"}),new Cn.Setting(n).setName("Metadata Attribute").setDesc("The frontMatter key in which to search for expiration date").addText(i=>i.setPlaceholder("Insert attribute name (es: expires)").setValue(this.plugin.settings.expiredAttribute).onChange(a=>fe(this,null,function*(){this.plugin.settings.expiredAttribute=a,yield this.plugin.saveSettings()}))),new Cn.Setting(n).setName("Date Format").setDesc("The format in which the expiration date is stored (e.g. YYYY-MM-DD)").addText(i=>i.setPlaceholder("Insert the date format").setValue(this.plugin.settings.expiredDateFormat).onChange(a=>fe(this,null,function*(){this.plugin.settings.expiredDateFormat=a,yield this.plugin.saveSettings()})))),n.createEl("h3",{text:"File Exclusions"}),this.createToggle(n,"Ignore Obsidian Excluded Files","Does not process files matching the Excluded Files filters in Obsidian Settings","honorObsidianExcludedFiles");let r=new Cn.Setting(n).setName("Excluded Files").setDesc("Excluded files will not be processed").addButton(i=>{i.setButtonText("Manage"),i.onClick(a=>{new xl(this.app,this.plugin.settings,l=>fe(this,null,function*(){this.plugin.settings.excludedFilesFilters=l,yield this.plugin.saveSettings(),this.display()})).open()})});if(this.plugin.settings.excludedFilesFilters&&this.plugin.settings.excludedFilesFilters.length){let i=r.descEl.createEl("ul");this.plugin.settings.excludedFilesFilters.forEach(a=>{i.createEl("li").setText(a)})}}createToggle(n,r,i,a){new Cn.Setting(n).setName(r).setDesc(i).addToggle(l=>l.setValue(this.plugin.settings[a]).onChange(u=>fe(this,null,function*(){this.plugin.settings[a]=u,yield this.plugin.saveSettings(),this.display()})))}};var El=class{constructor(t){this.app=t}process(r){return fe(this,arguments,function*(t,n="trash"){let i=[...new Set(t)],a=0,l=0;for(let u of i){let d=app.vault.getAbstractFileByPath(u);if(d)try{switch(n){case"trash-system":yield app.vault.trash(d,!0),a++;break;case"trash":yield app.vault.trash(d,!1),a++;break;case"delete":yield app.vault.delete(d),a++;break;default:console.warn(`Warning: operation ${n} unknown`);break}}catch(p){l++}else console.warn(`Warning: file ${u} was not found for thrashing!`),l++}return{deletedFiles:a,notDeletedFiles:l}})}};var Vy=Ie(Ly()),Al=class extends Sn.Plugin{constructor(){super(...arguments);this.initialScanDone=!1;this.frontMatterRegEx=new RegExp("^---$(.*)^---","ms")}onload(){return fe(this,null,function*(){this.initialScanDone=!1,yield this.loadSettings(),this.settings.addRibbonIcon&&this.addIcon(),this.statusBarItemEl=this.addStatusBarItem(),this.updateStatusBar(""),this.addCommand({id:"scan-files",name:"Scan Files",callback:()=>{this.scanFiles()}}),this.addCommand({id:"scan-files-noprompt",name:"Scan Files (without prompt)",callback:()=>{this.scanFiles(!1,!0)}}),this.addCommand({id:"scan-files-with-prompt",name:"Scan Files (with prompt)",callback:()=>{this.scanFiles(!0,!1)}}),this.addCommand({id:"set-expiration",name:"Sets the expiration date of the current note",checkCallback:n=>{let r=this.app.workspace.getActiveViewOfType(Sn.MarkdownView);return r?(n||this.chooseDate(r),!0):!1}}),this.createShortcutCommand("set-expiration-1week","Set Expiration (1 week)",1,"week"),this.createShortcutCommand("set-expiration-1month","Set Expiration (1 month)",1,"month"),this.createShortcutCommand("set-expiration-1year","Set Expiration (1 year)",1,"year"),this.addSettingTab(new sa(this.app,this)),this.app.metadataCache.on("resolved",()=>{this.settings.runAtStartup&&!this.initialScanDone&&(this.initialScanDone=!0,this.scanFiles())})})}createShortcutCommand(n,r,i,a){this.addCommand({id:n,name:r,checkCallback:l=>{let u=this.app.workspace.getActiveViewOfType(Sn.MarkdownView);return u?(l||this.updateNoteWithDate(u,(0,Vy.default)().add(i,a).format(this.settings.expiredDateFormat)),!0):!1}})}chooseDate(n){return fe(this,null,function*(){new zs(this.app,this,n).open()})}updateNoteWithDate(n,r){return fe(this,null,function*(){var I;let i=(I=this.app.metadataCache.getFileCache(n.file))==null?void 0:I.frontmatter,a=(i==null?void 0:i.position.start.offset)||0,l=(i==null?void 0:i.position.end.offset)||0,u=de($({},i),{[this.settings.expiredAttribute]:r,position:void 0}),d=(0,Sn.stringifyYaml)(u),p=yield this.app.vault.cachedRead(n.file),m=this.frontMatterRegEx.exec(p);!i&&m&&(a=m.index,l=m.index+m[0].length);let v=`--- `+d+`--- `;if(n.getMode()==="source")n.editor.replaceRange(v,n.editor.offsetToPos(a),n.editor.offsetToPos(l));else{let x=p.substring(0,a)+v+p.substring(l);this.app.vault.modify(n.file,x)}})}updateStatusBar(n){this.statusBarItemEl.setText(n)}scanFiles(n=!1,r=!1){return fe(this,null,function*(){var u;new Sn.Notice("Janitor is scanning vault"),this.updateStatusBar("Janitor Scanning...");let i,a=yield new $s(this.app,this.settings).scan(),l=a.orphans&&a.orphans.length||a.empty&&a.empty.length||a.expired&&a.expired.length||a.big&&a.big.length;if(this.updateStatusBar(""),!l){new Sn.Notice("Janitor scanned and found nothing to cleanup");return}if((this.settings.promptUser&&!r||((u=a.big)==null?void 0:u.length)&&this.settings.promptForBigFiles||n)&&(i=new Qs(this.app,this),i.open()),i)i.updateState(a);else{let d=[a.orphans,a.empty,a.expired,a.big].flatMap(p=>p?p.map(m=>m.path):[]);d=[...new Set(d)],this.perform(this.settings.defaultOperation,d)}})}perform(n,r){return fe(this,null,function*(){let a=yield new El(this.app).process(r,n);new Sn.Notice(`${a.deletedFiles} files deleted.`+(a.notDeletedFiles?`${a.notDeletedFiles} files not deleted`:""))})}onunload(){}addIcon(){this.removeIcon(),this.ribbonIconEl=this.addRibbonIcon("trash","Janitor: scan vault",n=>{this.scanFiles()}),this.ribbonIconEl.addClass("janitor-ribbon-class")}removeIcon(){this.ribbonIconEl&&this.ribbonIconEl.remove()}loadSettings(){return fe(this,null,function*(){this.settings=Object.assign({},js,yield this.loadData())})}saveSettings(){return fe(this,null,function*(){yield this.saveData(this.settings)})}}; /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! moment.js //! momentjs.com //! version : 2.29.4 /* nosourcemap */