/* THIS IS A GENERATED/BUNDLED FILE BY ESBUILD if you want to view the source, please visit the github repository of this plugin */ var Kh=Object.create;var vi=Object.defineProperty;var Yh=Object.getOwnPropertyDescriptor;var Xh=Object.getOwnPropertyNames;var Zh=Object.getPrototypeOf,qh=Object.prototype.hasOwnProperty;var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jh=(e,t)=>{for(var n in t)vi(e,n,{get:t[n],enumerable:!0})},Dc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Xh(t))!qh.call(e,o)&&o!==n&&vi(e,o,{get:()=>t[o],enumerable:!(r=Yh(t,o))||r.enumerable});return e};var A=(e,t,n)=>(n=e!=null?Kh(Zh(e)):{},Dc(t||!e||!e.__esModule?vi(n,"default",{value:e,enumerable:!0}):n,e)),ev=e=>Dc(vi({},"__esModule",{value:!0}),e);var Hc=$e(M=>{"use strict";var no=Symbol.for("react.element"),tv=Symbol.for("react.portal"),nv=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),ov=Symbol.for("react.profiler"),iv=Symbol.for("react.provider"),lv=Symbol.for("react.context"),sv=Symbol.for("react.forward_ref"),av=Symbol.for("react.suspense"),uv=Symbol.for("react.memo"),cv=Symbol.for("react.lazy"),Rc=Symbol.iterator;function dv(e){return e===null||typeof e!="object"?null:(e=Rc&&e[Rc]||e["@@iterator"],typeof e=="function"?e:null)}var Ac={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mc=Object.assign,_c={};function ar(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Ac}ar.prototype.isReactComponent={};ar.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")};ar.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zc(){}zc.prototype=ar.prototype;function Ts(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||Ac}var Es=Ts.prototype=new zc;Es.constructor=Ts;Mc(Es,ar.prototype);Es.isPureReactComponent=!0;var Oc=Array.isArray,Fc=Object.prototype.hasOwnProperty,Cs={current:null},Vc={key:!0,ref:!0,__self:!0,__source:!0};function Bc(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)Fc.call(t,r)&&!Vc.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1{"use strict";jc.exports=Hc()});var Jc=$e(W=>{"use strict";function Is(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rki(s,n))aki(u,s)?(e[r]=u,e[a]=n,r=a):(e[r]=s,e[l]=n,r=l);else if(aki(u,n))e[r]=u,e[a]=n,r=a;else break e}}return t}function ki(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Uc=performance,W.unstable_now=function(){return Uc.now()}):(bs=Date,Gc=bs.now(),W.unstable_now=function(){return bs.now()-Gc});var Uc,bs,Gc,xt=[],Jt=[],hv=1,nt=null,Te=3,Ci=!1,Ln=!1,oo=!1,Kc=typeof setTimeout=="function"?setTimeout:null,Yc=typeof clearTimeout=="function"?clearTimeout:null,$c=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ds(e){for(var t=mt(Jt);t!==null;){if(t.callback===null)Ei(Jt);else if(t.startTime<=e)Ei(Jt),t.sortIndex=t.expirationTime,Is(xt,t);else break;t=mt(Jt)}}function Rs(e){if(oo=!1,Ds(e),!Ln)if(mt(xt)!==null)Ln=!0,Ps(Os);else{var t=mt(Jt);t!==null&&As(Rs,t.startTime-e)}}function Os(e,t){Ln=!1,oo&&(oo=!1,Yc(io),io=-1),Ci=!0;var n=Te;try{for(Ds(t),nt=mt(xt);nt!==null&&(!(nt.expirationTime>t)||e&&!qc());){var r=nt.callback;if(typeof r=="function"){nt.callback=null,Te=nt.priorityLevel;var o=r(nt.expirationTime<=t);t=W.unstable_now(),typeof o=="function"?nt.callback=o:nt===mt(xt)&&Ei(xt),Ds(t)}else Ei(xt);nt=mt(xt)}if(nt!==null)var i=!0;else{var l=mt(Jt);l!==null&&As(Rs,l.startTime-t),i=!1}return i}finally{nt=null,Te=n,Ci=!1}}var xi=!1,Ti=null,io=-1,Xc=5,Zc=-1;function qc(){return!(W.unstable_now()-Zce||125r?(e.sortIndex=n,Is(Jt,e),mt(xt)===null&&e===mt(Jt)&&(oo?(Yc(io),io=-1):oo=!0,As(Rs,n-r))):(e.sortIndex=o,Is(xt,e),Ln||Ci||(Ln=!0,Ps(Os))),e};W.unstable_shouldYield=qc;W.unstable_wrapCallback=function(e){var t=Te;return function(){var n=Te;Te=t;try{return e.apply(this,arguments)}finally{Te=n}}}});var td=$e((c1,ed)=>{"use strict";ed.exports=Jc()});var lm=$e(qe=>{"use strict";var vv=ie(),Xe=td();function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}function Pe(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Pe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Pe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Pe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Pe(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){ye[e]=new Pe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Pe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Pe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Pe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Pe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ya=/[\-:]([a-z])/g;function Xa(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(Ya,Xa);ye[t]=new Pe(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(Ya,Xa);ye[t]=new Pe(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(Ya,Xa);ye[t]=new Pe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Pe(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Pe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Pe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Za(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` `+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{_s=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?go(e):""}function Tv(e){switch(e.tag){case 5:return go(e.type);case 16:return go("Lazy");case 13:return go("Suspense");case 19:return go("SuspenseList");case 0:case 2:case 15:return e=zs(e.type,!1),e;case 11:return e=zs(e.type.render,!1),e;case 1:return e=zs(e.type,!0),e;default:return""}}function sa(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 fr:return"Fragment";case dr:return"Portal";case oa:return"Profiler";case qa:return"StrictMode";case ia:return"Suspense";case la:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case df:return(e.displayName||"Context")+".Consumer";case cf:return(e._context.displayName||"Context")+".Provider";case Ja:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case eu:return t=e.displayName||null,t!==null?t:sa(e.type)||"Memo";case tn:t=e._payload,e=e._init;try{return sa(e(t))}catch(n){}}return null}function Ev(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 sa(t);case 8:return t===qa?"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 hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cv(e){var t=pf(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 o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.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 Ni(e){e._valueTracker||(e._valueTracker=Cv(e))}function mf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function tl(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 aa(e,t){var n=t.checked;return Y({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function id(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(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 gf(e,t){t=t.checked,t!=null&&Za(e,"checked",t,!1)}function ua(e,t){gf(e,t);var n=hn(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")?ca(e,t.type,n):t.hasOwnProperty("defaultValue")&&ca(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ld(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 ca(e,t,n){(t!=="number"||tl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ho=Array.isArray;function Er(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Li.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Io(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var wo={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},xv=["Webkit","ms","Moz","O"];Object.keys(wo).forEach(function(e){xv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wo[t]=wo[e]})});function wf(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||wo.hasOwnProperty(e)&&wo[e]?(""+t).trim():t+"px"}function Sf(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=wf(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bv=Y({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 pa(e,t){if(t){if(bv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function ma(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 ga=null;function tu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,Cr=null,xr=null;function ud(e){if(e=Qo(e)){if(typeof ha!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Il(t),ha(e.stateNode,e.type,t))}}function kf(e){Cr?xr?xr.push(e):xr=[e]:Cr=e}function Tf(){if(Cr){var e=Cr,t=xr;if(xr=Cr=null,ud(e),t)for(e=0;e>>=0,e===0?32:31-(zv(e)/Fv|0)|0}var Ii=64,Di=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 il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=vo(s):(i&=l,i!==0&&(r=vo(i)))}else l=n&~o,l!==0?r=vo(l):i!==0&&(r=vo(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Hv(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=ko),yd=" ",wd=!1;function Hf(e,t){switch(e){case"keyup":return hy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var pr=!1;function yy(e,t){switch(e){case"compositionend":return jf(t);case"keypress":return t.which!==32?null:(wd=!0,yd);case"textInput":return e=t.data,e===yd&&wd?null:e;default:return null}}function wy(e,t){if(pr)return e==="compositionend"||!uu&&Hf(e,t)?(e=Bf(),$i=lu=ln=null,pr=!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=Td(n)}}function Qf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kf(){for(var e=window,t=tl();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=tl(e.document)}return t}function cu(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 Ly(e){var t=Kf(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Qf(n.ownerDocument.documentElement,n)){if(r!==null&&cu(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 o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ed(n,i);var l=Ed(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>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,mr=null,Ta=null,Eo=null,Ea=!1;function Cd(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ea||mr==null||mr!==tl(r)||(r=mr,"selectionStart"in r&&cu(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}),Eo&&Mo(Eo,r)||(Eo=r,r=al(Ta,"onSelect"),0vr||(e.current=Ia[vr],Ia[vr]=null,vr--)}function H(e,t){vr++,Ia[vr]=e.current,e.current=t}var vn={},be=wn(vn),Ve=wn(!1),_n=vn;function Dr(e,t){var n=e.type.contextTypes;if(!n)return vn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Be(e){return e=e.childContextTypes,e!=null}function cl(){G(Ve),G(be)}function Pd(e,t,n){if(be.current!==vn)throw Error(C(168));H(be,t),H(Ve,n)}function rp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(C(108,Ev(e)||"Unknown",o));return Y({},n,r)}function dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||vn,_n=be.current,H(be,e),H(Ve,Ve.current),!0}function Ad(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=rp(e,t,_n),r.__reactInternalMemoizedMergedChildContext=e,G(Ve),G(be),H(be,e)):G(Ve),H(Ve,n)}var zt=null,Dl=!1,Ks=!1;function op(e){zt===null?zt=[e]:zt.push(e)}function Fy(e){Dl=!0,op(e)}function Sn(){if(!Ks&&zt!==null){Ks=!0;var e=0,t=V;try{var n=zt;for(V=1;e>=l,o-=l,Ft=1<<32-wt(t)+o|n<E?(N=T,T=null):N=T.sibling;var D=g(d,T,m[E],y);if(D===null){T===null&&(T=N);break}e&&T&&D.alternate===null&&t(d,T),c=i(D,c,E),x===null?k=D:x.sibling=D,x=D,T=N}if(E===m.length)return n(d,T),$&&In(d,E),k;if(T===null){for(;EE?(N=T,T=null):N=T.sibling;var O=g(d,T,D.value,y);if(O===null){T===null&&(T=N);break}e&&T&&O.alternate===null&&t(d,T),c=i(O,c,E),x===null?k=O:x.sibling=O,x=O,T=N}if(D.done)return n(d,T),$&&In(d,E),k;if(T===null){for(;!D.done;E++,D=m.next())D=p(d,D.value,y),D!==null&&(c=i(D,c,E),x===null?k=D:x.sibling=D,x=D);return $&&In(d,E),k}for(T=r(d,T);!D.done;E++,D=m.next())D=h(T,d,E,D.value,y),D!==null&&(e&&D.alternate!==null&&T.delete(D.key===null?E:D.key),c=i(D,c,E),x===null?k=D:x.sibling=D,x=D);return e&&T.forEach(function(ce){return t(d,ce)}),$&&In(d,E),k}function b(d,c,m,y){if(typeof m=="object"&&m!==null&&m.type===fr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case bi:e:{for(var k=m.key,x=c;x!==null;){if(x.key===k){if(k=m.type,k===fr){if(x.tag===7){n(d,x.sibling),c=o(x,m.props.children),c.return=d,d=c;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===tn&&zd(k)===x.type){n(d,x.sibling),c=o(x,m.props),c.ref=co(d,x,m),c.return=d,d=c;break e}n(d,x);break}else t(d,x);x=x.sibling}m.type===fr?(c=Mn(m.props.children,d.mode,y,m.key),c.return=d,d=c):(y=el(m.type,m.key,m.props,null,d.mode,y),y.ref=co(d,c,m),y.return=d,d=y)}return l(d);case dr:e:{for(x=m.key;c!==null;){if(c.key===x)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(d,c.sibling),c=o(c,m.children||[]),c.return=d,d=c;break e}else{n(d,c);break}else t(d,c);c=c.sibling}c=na(m,d.mode,y),c.return=d,d=c}return l(d);case tn:return x=m._init,b(d,c,x(m._payload),y)}if(ho(m))return S(d,c,m,y);if(lo(m))return v(d,c,m,y);Wi(d,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(d,c.sibling),c=o(c,m),c.return=d,d=c):(n(d,c),c=ta(m,d.mode,y),c.return=d,d=c),l(d)):n(d,c)}return b}var Or=ap(!0),up=ap(!1),ml=wn(null),gl=null,Sr=null,mu=null;function gu(){mu=Sr=gl=null}function hu(e){var t=ml.current;G(ml),e._currentValue=t}function Oa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Nr(e,t){gl=e,mu=Sr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Fe=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(mu!==e)if(e={context:e,memoizedValue:t,next:null},Sr===null){if(gl===null)throw Error(C(308));Sr=e,gl.dependencies={lanes:0,firstContext:e}}else Sr=Sr.next=e;return t}var On=null;function vu(e){On===null?On=[e]:On.push(e)}function cp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,vu(t)):(n.next=o.next,o.next=n),t.interleaved=n,jt(e,r)}function jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var nn=!1;function yu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,jt(e,n)}return o=r.interleaved,o===null?(t.next=t,vu(r)):(t.next=o.next,o.next=t),r.interleaved=t,jt(e,n)}function Ki(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ru(e,n)}}function Fd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hl(e,t,n,r){var o=e.updateQueue;nn=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==l&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;l=0,f=u=a=null,s=i;do{var g=s.lane,h=s.eventTime;if((r&g)===g){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var S=e,v=s;switch(g=t,h=n,v.tag){case 1:if(S=v.payload,typeof S=="function"){p=S.call(h,p,g);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=v.payload,g=typeof S=="function"?S.call(h,p,g):S,g==null)break e;p=Y({},p,g);break e;case 2:nn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[s]:g.push(s))}else h={eventTime:h,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,a=p):f=f.next=h,l|=g;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;g=s,s=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(f===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);Vn|=l,e.lanes=l,e.memoizedState=p}}function Vd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Xs.transition;Xs.transition={};try{e(!1),t()}finally{V=n,Xs.transition=r}}function Lp(){return at().memoizedState}function Hy(e,t,n){var r=mn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ip(e))Dp(t,n);else if(n=cp(e,t,n,r),n!==null){var o=Oe();St(n,e,r,o),Rp(n,t,r)}}function jy(e,t,n){var r=mn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ip(e))Dp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,kt(s,l)){var a=t.interleaved;a===null?(o.next=o,vu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch(u){}finally{}n=cp(e,t,o,r),n!==null&&(o=Oe(),St(n,e,r,o),Rp(n,t,r))}}function Ip(e){var t=e.alternate;return e===K||t!==null&&t===K}function Dp(e,t){Co=yl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ru(e,n)}}var wl={readContext:st,useCallback:Ee,useContext:Ee,useEffect:Ee,useImperativeHandle:Ee,useInsertionEffect:Ee,useLayoutEffect:Ee,useMemo:Ee,useReducer:Ee,useRef:Ee,useState:Ee,useDebugValue:Ee,useDeferredValue:Ee,useTransition:Ee,useMutableSource:Ee,useSyncExternalStore:Ee,useId:Ee,unstable_isNewReconciler:!1},Uy={readContext:st,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Wd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xi(4194308,4,Ep.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xi(4,2,e,t)},useMemo:function(e,t){var n=Nt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Nt();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=Hy.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:Bd,useDebugValue:bu,useDeferredValue:function(e){return Nt().memoizedState=e},useTransition:function(){var e=Bd(!1),t=e[0];return e=Wy.bind(null,e[1]),Nt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,o=Nt();if($){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));Fn&30||gp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Wd(vp.bind(null,r,i,e),[e]),r.flags|=2048,jo(9,hp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Nt(),t=fe.identifierPrefix;if($){var n=Vt,r=Ft;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wo++,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[Lt]=t,e[Fo]=r,Wp(e,t,!1,!1),t.stateNode=e;e:{switch(l=ma(n,r),n){case"dialog":U("cancel",e),U("close",e),o=r;break;case"iframe":case"object":case"embed":U("load",e),o=r;break;case"video":case"audio":for(o=0;oMr&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304)}else{if(!r)if(e=vl(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!$)return Ce(t),null}else 2*J()-i.renderingStartTime>Mr&&n!==1073741824&&(t.flags|=128,r=!0,fo(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=J(),t.sibling=null,n=Q.current,H(Q,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Ou(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qe&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function qy(e,t){switch(fu(t),t.tag){case 1:return Be(t.type)&&cl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Pr(),G(Ve),G(be),ku(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Su(t),null;case 13:if(G(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(Q),null;case 4:return Pr(),null;case 10:return hu(t.type._context),null;case 22:case 23:return Ou(),null;case 24:return null;default:return null}}var ji=!1,xe=!1,Jy=typeof WeakSet=="function"?WeakSet:Set,I=null;function kr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){X(e,t,r)}else n.current=null}function Wa(e,t,n){try{n()}catch(r){X(e,t,r)}}var qd=!1;function e0(e,t){if(Ca=ll,e=Kf(),cu(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 o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(y){n=null;break e}var l=0,s=-1,a=-1,u=0,f=0,p=e,g=null;t:for(;;){for(var h;p!==n||o!==0&&p.nodeType!==3||(s=l+o),p!==i||r!==0&&p.nodeType!==3||(a=l+r),p.nodeType===3&&(l+=p.nodeValue.length),(h=p.firstChild)!==null;)g=p,p=h;for(;;){if(p===e)break t;if(g===n&&++u===o&&(s=l),g===i&&++f===r&&(a=l),(h=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(xa={focusedElem:e,selectionRange:n},ll=!1,I=t;I!==null;)if(t=I,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,I=e;else for(;I!==null;){t=I;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var v=S.memoizedProps,b=S.memoizedState,d=t.stateNode,c=d.getSnapshotBeforeUpdate(t.elementType===t.type?v:ht(t.type,v),b);d.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(y){X(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,I=e;break}I=t.return}return S=qd,qd=!1,S}function xo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Wa(t,n,i)}o=o.next}while(o!==r)}}function Pl(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 Ha(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 Up(e){var t=e.alternate;t!==null&&(e.alternate=null,Up(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Lt],delete t[Fo],delete t[La],delete t[_y],delete t[zy])),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 Gp(e){return e.tag===5||e.tag===3||e.tag===4}function Jd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Gp(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 ja(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=ul));else if(r!==4&&(e=e.child,e!==null))for(ja(e,t,n),e=e.sibling;e!==null;)ja(e,t,n),e=e.sibling}function Ua(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(Ua(e,t,n),e=e.sibling;e!==null;)Ua(e,t,n),e=e.sibling}var he=null,vt=!1;function en(e,t,n){for(n=n.child;n!==null;)$p(e,t,n),n=n.sibling}function $p(e,t,n){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(xl,n)}catch(s){}switch(n.tag){case 5:xe||kr(n,t);case 6:var r=he,o=vt;he=null,en(e,t,n),he=r,vt=o,he!==null&&(vt?(e=he,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):he.removeChild(n.stateNode));break;case 18:he!==null&&(vt?(e=he,n=n.stateNode,e.nodeType===8?Qs(e.parentNode,n):e.nodeType===1&&Qs(e,n),Po(e)):Qs(he,n.stateNode));break;case 4:r=he,o=vt,he=n.stateNode.containerInfo,vt=!0,en(e,t,n),he=r,vt=o;break;case 0:case 11:case 14:case 15:if(!xe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Wa(n,t,l),o=o.next}while(o!==r)}en(e,t,n);break;case 1:if(!xe&&(kr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){X(n,t,s)}en(e,t,n);break;case 21:en(e,t,n);break;case 22:n.mode&1?(xe=(r=xe)||n.memoizedState!==null,en(e,t,n),xe=r):en(e,t,n);break;default:en(e,t,n)}}function ef(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Jy),t.forEach(function(r){var o=u0.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function gt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=J()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*n0(r/1960))-r,10e?16:e,sn===null)var r=!1;else{if(e=sn,sn=null,Tl=0,_&6)throw Error(C(331));var o=_;for(_|=4,I=e.current;I!==null;){var i=I,l=i.child;if(I.flags&16){var s=i.deletions;if(s!==null){for(var a=0;aJ()-Du?An(e,0):Iu|=n),We(e,t)}function em(e,t){t===0&&(e.mode&1?(t=Di,Di<<=1,!(Di&130023424)&&(Di=4194304)):t=1);var n=Oe();e=jt(e,t),e!==null&&(Go(e,t,n),We(e,n))}function a0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),em(e,n)}function u0(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(C(314))}r!==null&&r.delete(t),em(e,n)}var tm;tm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ve.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,Xy(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,$&&t.flags&1048576&&ip(t,pl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zi(e,t),e=t.pendingProps;var o=Dr(t,be.current);Nr(t,n),o=Eu(null,t,r,e,o,n);var i=Cu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(i=!0,dl(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,yu(t),o.updater=Ol,t.stateNode=o,o._reactInternals=t,Aa(t,r,e,n),t=za(null,t,r,!0,i,n)):(t.tag=0,$&&i&&du(t),Re(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=d0(r),e=ht(r,e),o){case 0:t=_a(null,t,r,e,n);break e;case 1:t=Yd(null,t,r,e,n);break e;case 11:t=Qd(null,t,r,e,n);break e;case 14:t=Kd(null,t,r,ht(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),_a(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Yd(e,t,r,o,n);case 3:e:{if(Fp(t),e===null)throw Error(C(387));r=t.pendingProps,i=t.memoizedState,o=i.element,dp(e,t),hl(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Ar(Error(C(423)),t),t=Xd(e,t,r,n,o);break e}else if(r!==o){o=Ar(Error(C(424)),t),t=Xd(e,t,r,n,o);break e}else for(Ke=dn(t.stateNode.containerInfo.firstChild),Ye=t,$=!0,yt=null,n=up(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rr(),r===o){t=Ut(e,t,n);break e}Re(e,t,r,n)}t=t.child}return t;case 5:return fp(t),e===null&&Ra(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ba(r,o)?l=null:i!==null&&ba(r,i)&&(t.flags|=32),zp(e,t),Re(e,t,l,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return Vp(e,t,n);case 4:return wu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Or(t,null,r,n):Re(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Qd(e,t,r,o,n);case 7:return Re(e,t,t.pendingProps,n),t.child;case 8:return Re(e,t,t.pendingProps.children,n),t.child;case 12:return Re(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,H(ml,r._currentValue),r._currentValue=l,i!==null)if(kt(i.value,l)){if(i.children===o.children&&!Ve.current){t=Ut(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Bt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?a.next=a:(a.next=f.next,f.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Oa(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(C(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Oa(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Re(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Nr(t,n),o=st(o),r=r(o),t.flags|=1,Re(e,t,r,n),t.child;case 14:return r=t.type,o=ht(r,t.pendingProps),o=ht(r.type,o),Kd(e,t,r,o,n);case 15:return Mp(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ht(r,o),Zi(e,t),t.tag=1,Be(r)?(e=!0,dl(t)):e=!1,Nr(t,n),Op(t,r,o),Aa(t,r,o,n),za(null,t,r,!0,e,n);case 19:return Bp(e,t,n);case 22:return _p(e,t,n)}throw Error(C(156,t.tag))};function nm(e,t){return If(e,t)}function c0(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 it(e,t,n,r){return new c0(e,t,n,r)}function Au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d0(e){if(typeof e=="function")return Au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ja)return 11;if(e===eu)return 14}return 2}function gn(e,t){var n=e.alternate;return n===null?(n=it(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 el(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Au(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case fr:return Mn(n.children,o,i,t);case qa:l=8,o|=8;break;case oa:return e=it(12,n,t,o|2),e.elementType=oa,e.lanes=i,e;case ia:return e=it(13,n,t,o),e.elementType=ia,e.lanes=i,e;case la:return e=it(19,n,t,o),e.elementType=la,e.lanes=i,e;case ff:return Ml(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cf:l=10;break e;case df:l=9;break e;case Ja:l=11;break e;case eu:l=14;break e;case tn:l=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=it(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Mn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Ml(e,t,n,r){return e=it(22,e,r,t),e.elementType=ff,e.lanes=n,e.stateNode={isHidden:!1},e}function ta(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function na(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function f0(e,t,n,r,o){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=Vs(0),this.expirationTimes=Vs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Mu(e,t,n,r,o,i,l,s,a){return e=new f0(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=it(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yu(i),e}function p0(e,t,n){var r=3{"use strict";function sm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sm)}catch(e){console.error(e)}}sm(),am.exports=lm()});var cm=$e(Vu=>{"use strict";var um=Bl();Vu.createRoot=um.createRoot,Vu.hydrateRoot=um.hydrateRoot;var p1});var gm=$e(mm=>{"use strict";var Fr=ie();function y0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var w0=typeof Object.is=="function"?Object.is:y0,S0=Fr.useState,k0=Fr.useEffect,T0=Fr.useLayoutEffect,E0=Fr.useDebugValue;function C0(e,t){var n=t(),r=S0({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return T0(function(){o.value=n,o.getSnapshot=t,Bu(o)&&i({inst:o})},[e,n,t]),k0(function(){return Bu(o)&&i({inst:o}),e(function(){Bu(o)&&i({inst:o})})},[e]),E0(n),n}function Bu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!w0(e,n)}catch(r){return!0}}function x0(e,t){return t()}var b0=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?x0:C0;mm.useSyncExternalStore=Fr.useSyncExternalStore!==void 0?Fr.useSyncExternalStore:b0});var vm=$e((v1,hm)=>{"use strict";hm.exports=gm()});var wm=$e(ym=>{"use strict";var Wl=ie(),N0=vm();function L0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var I0=typeof Object.is=="function"?Object.is:L0,D0=N0.useSyncExternalStore,R0=Wl.useRef,O0=Wl.useEffect,P0=Wl.useMemo,A0=Wl.useDebugValue;ym.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=R0(null);if(i.current===null){var l={hasValue:!1,value:null};i.current=l}else l=i.current;i=P0(function(){function a(h){if(!u){if(u=!0,f=h,h=r(h),o!==void 0&&l.hasValue){var S=l.value;if(o(S,h))return p=S}return p=h}if(S=p,I0(f,h))return S;var v=r(h);return o!==void 0&&o(S,v)?S:(f=h,p=v)}var u=!1,f,p,g=n===void 0?null:n;return[function(){return a(t())},g===null?void 0:function(){return a(g())}]},[t,n,r,o]);var s=D0(e,i[0],i[1]);return O0(function(){l.hasValue=!0,l.value=s},[s]),A0(s),s}});var km=$e((w1,Sm)=>{"use strict";Sm.exports=wm()});var bg=$e(es=>{"use strict";var wS=ie(),SS=Symbol.for("react.element"),kS=Symbol.for("react.fragment"),TS=Object.prototype.hasOwnProperty,ES=wS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,CS={key:!0,ref:!0,__self:!0,__source:!0};function xg(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)TS.call(t,r)&&!CS.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:SS,type:e,key:i,ref:l,props:o,_owner:ES.current}}es.Fragment=kS;es.jsx=xg;es.jsxs=xg});var Z=$e((X1,Ng)=>{"use strict";Ng.exports=bg()});var i1={};Jh(i1,{default:()=>ys});module.exports=ev(i1);var Nn=require("obsidian");var zh=A(ie()),Fh=require("obsidian"),Vh=A(cm());var fm={},dm=e=>{let t,n=new Set,r=(f,p)=>{let g=typeof f=="function"?f(t):f;if(!Object.is(g,t)){let h=t;t=(p!=null?p:typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(S=>S(t,h))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>u,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{(fm.env?fm.env.MODE:void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,o,a);return a},pm=e=>e?dm(e):dm;var Cm=A(ie(),1),xm=A(km(),1),Hl={},{useDebugValue:M0}=Cm.default,{useSyncExternalStoreWithSelector:_0}=xm.default,Tm=!1,z0=e=>e;function F0(e,t=z0,n){(Hl.env?Hl.env.MODE:void 0)!=="production"&&n&&!Tm&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Tm=!0);let r=_0(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return M0(r),r}var Em=e=>{(Hl.env?Hl.env.MODE:void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t=typeof e=="function"?pm(e):e,n=(r,o)=>F0(t,r,o);return Object.assign(n,t),n},Vr=e=>e?Em(e):Em;var $t=class extends Map{constructor(t,n){super(n),this.factory=t}get(t){var n;return this.has(t)||this.set(t,this.factory()),(n=super.get(t))!=null?n:this.factory()}};function bm(e,t){let n=t.getRoot(),{leftSplit:r,rightSplit:o}=e.workspace;return n===r?"left-sidebar":n===o?"right-sidebar":"root-split"}function jl(e,t,n,r){r.get(e).groupType=t,r.get(e).group=n.parent,r.get(e).leaves.push(n),r.get(e).leafIDs.push(n.id)}function Nm(e){let t=Yo(),n=e.workspace,{leftSplit:r,rightSplit:o,rootSplit:i,floatingSplit:l}=n;return n.iterateLeaves(r,s=>jl("left-sidebar","left-sidebar",s,t)),n.iterateLeaves(o,s=>jl("right-sidebar","right-sidebar",s,t)),n.iterateLeaves(i,s=>{jl(s.parent.id,"root-split",s,t)}),n.iterateLeaves(l,s=>{jl(s.parent.id,"root-split",s,t)}),t}function Qt(e,t){let n=e.workspace,{rootSplit:r,floatingSplit:o}=n;n.iterateLeaves(r,t),n.iterateLeaves(o,t)}function Lm(e,t){let n=e.workspace,{leftSplit:r,rightSplit:o}=n;n.iterateLeaves(r,t),n.iterateLeaves(o,t)}function Im(e,t){let n=e.children[e.currentTab];return e.children.sort(t.compareFn),t.reverse&&e.children.reverse(),e.recomputeChildrenDimensions(),e.selectTab&&e.selectTab(n),e.children}function Hu(e,t){return e.getDisplayText().localeCompare(t.getDisplayText())}function ju(e,t){return e.getViewState().pinned===t.getViewState().pinned?0:e.getViewState().pinned?-1:1}function Uu(e,t){return t.activeTime-e.activeTime}var V0=()=>({groupType:"root-split",group:null,leaves:[],leafIDs:[]}),B0=()=>V0(),Yo=()=>new $t(B0),Ne={titleAToZ:{compareFn:Hu,reverse:!1},titleZToA:{compareFn:Hu,reverse:!0},pinnedAtTop:{compareFn:ju,reverse:!1},pinnedAtBottom:{compareFn:ju,reverse:!0},recentOnTop:{compareFn:Uu,reverse:!1},recentOnBottom:{compareFn:Uu,reverse:!0}},W0=e=>{var n;let t=(n=Object.keys(Ne).find(r=>Ne[r]===e))!=null?n:"none";localStorage.setItem("sort-strategy",t)},H0=()=>{var t,n;let e=(t=localStorage.getItem("sort-strategy"))!=null?t:"none";return(n=Ne[e])!=null?n:null},Gu=e=>{localStorage.setItem("temp-group-order",JSON.stringify(e))},j0=()=>{let e=localStorage.getItem("temp-group-order");return e?JSON.parse(e):[]},Ae=Vr()((e,t)=>({content:Yo(),groupIDs:[],leaveIDs:[],sortStrategy:H0(),clear:()=>e({content:Yo(),groupIDs:[],leaveIDs:[]}),refresh:n=>{e(r=>{let o=Nm(n),i=Array.from(o.values()).flatMap(p=>p.leafIDs),l=r.groupIDs.filter(p=>o.has(p)),s=Array.from(o.keys()).filter(p=>!l.includes(p)),a=[...l,...s],u=j0(),f=[].concat(u).filter(p=>a.includes(p)).concat(a.filter(p=>!u.includes(p)));return Gu(f),{...r,content:o,leaveIDs:i,groupIDs:f}})},swapGroup:(n,r)=>{let{groupIDs:o}=t(),i=o.indexOf(n),l=o.indexOf(r);o[i]=r,o[l]=n,e({groupIDs:o}),Gu(o)},moveGroupToEnd:n=>{let{groupIDs:r}=t(),o=r.indexOf(n);r.splice(o,1),r.push(n),e({groupIDs:r}),Gu(r)},setSortStrategy:n=>{W0(n),e({sortStrategy:n}),t().sort()},sort:()=>{let{content:n,sortStrategy:r}=t(),o=Yo();if(r){for(let i of n.keys()){let l=n.get(i);if(o.set(i,l),l.groupType==="root-split"){let s=l.group||(l.leaves.length>0?l.leaves[0].parent:null);s&&(o.get(i).leaves=Im(s,r))}}e({content:o})}},hasOnlyOneGroup:()=>{let{groupIDs:n}=t();return n.filter(o=>!o.endsWith("-sidebar")).length===1}})),jn=10;var rs=require("obsidian"),qn=A(ie());function Rt(e){return Object.keys(e).filter(t=>e[t]).join(" ")}var te=A(ie());var w=A(ie()),Tn=A(Bl());var ee=A(ie());function Rm(){for(var e=arguments.length,t=new Array(e),n=0;nr=>{t.forEach(o=>o(r))},t)}var Xo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Un(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ul(e){return"nodeType"in e}function Le(e){var t,n;return e?Un(e)?e:Ul(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Gl(e){let{Document:t}=Le(e);return e instanceof t}function Br(e){return Un(e)?!1:e instanceof Le(e).HTMLElement}function Qu(e){return e instanceof Le(e).SVGElement}function Gn(e){return e?Un(e)?e.document:Ul(e)?Gl(e)?e:Br(e)||Qu(e)?e.ownerDocument:document:document:document}var He=Xo?ee.useLayoutEffect:ee.useEffect;function Zo(e){let t=(0,ee.useRef)(e);return He(()=>{t.current=e}),(0,ee.useCallback)(function(){for(var n=arguments.length,r=new Array(n),o=0;o{e.current=setInterval(r,o)},[]),n=(0,ee.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Wr(e,t){t===void 0&&(t=[e]);let n=(0,ee.useRef)(e);return He(()=>{n.current!==e&&(n.current=e)},t),n}function Hr(e,t){let n=(0,ee.useRef)();return(0,ee.useMemo)(()=>{let r=e(n.current);return n.current=r,r},[...t])}function qo(e){let t=Zo(e),n=(0,ee.useRef)(null),r=(0,ee.useCallback)(o=>{o!==n.current&&(t==null||t(o,n.current)),n.current=o},[]);return[n,r]}function Jo(e){let t=(0,ee.useRef)();return(0,ee.useEffect)(()=>{t.current=e},[e]),t.current}var $u={};function $n(e,t){return(0,ee.useMemo)(()=>{if(t)return t;let n=$u[e]==null?0:$u[e]+1;return $u[e]=n,e+"-"+n},[e,t])}function Pm(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o{let s=Object.entries(l);for(let[a,u]of s){let f=i[a];f!=null&&(i[a]=f+e*u)}return i},{...t})}}var Qn=Pm(1),jr=Pm(-1);function U0(e){return"clientX"in e&&"clientY"in e}function Ur(e){if(!e)return!1;let{KeyboardEvent:t}=Le(e.target);return t&&e instanceof t}function G0(e){if(!e)return!1;let{TouchEvent:t}=Le(e.target);return t&&e instanceof t}function ei(e){if(G0(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return U0(e)?{x:e.clientX,y:e.clientY}:null}var Kt=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Kt.Translate.toString(e),Kt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Dm="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Am(e){return e.matches(Dm)?e:e.querySelector(Dm)}var Kn=A(ie()),$0={display:"none"};function Mm(e){let{id:t,value:n}=e;return Kn.default.createElement("div",{id:t,style:$0},n)}function _m(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Kn.default.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function zm(){let[e,t]=(0,Kn.useState)("");return{announce:(0,Kn.useCallback)(r=>{r!=null&&t(r)},[]),announcement:e}}var Ym=(0,w.createContext)(null);function Q0(e){let t=(0,w.useContext)(Ym);(0,w.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of ");return t(e)},[e,t])}function K0(){let[e]=(0,w.useState)(()=>new Set),t=(0,w.useCallback)(r=>(e.add(r),()=>e.delete(r)),[e]);return[(0,w.useCallback)(r=>{let{type:o,event:i}=r;e.forEach(l=>{var s;return(s=l[o])==null?void 0:s.call(l,i)})},[e]),t]}var Y0={draggable:` To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item. Press space again to drop the item in its new position, or press escape to cancel. `},X0={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Z0(e){let{announcements:t=X0,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Y0}=e,{announce:i,announcement:l}=zm(),s=$n("DndLiveRegion"),[a,u]=(0,w.useState)(!1);if((0,w.useEffect)(()=>{u(!0)},[]),Q0((0,w.useMemo)(()=>({onDragStart(p){let{active:g}=p;i(t.onDragStart({active:g}))},onDragMove(p){let{active:g,over:h}=p;t.onDragMove&&i(t.onDragMove({active:g,over:h}))},onDragOver(p){let{active:g,over:h}=p;i(t.onDragOver({active:g,over:h}))},onDragEnd(p){let{active:g,over:h}=p;i(t.onDragEnd({active:g,over:h}))},onDragCancel(p){let{active:g,over:h}=p;i(t.onDragCancel({active:g,over:h}))}}),[i,t])),!a)return null;let f=w.default.createElement(w.default.Fragment,null,w.default.createElement(Mm,{id:r,value:o.draggable}),w.default.createElement(_m,{id:s,announcement:l}));return n?(0,Tn.createPortal)(f,n):f}var ae;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ae||(ae={}));function Ql(){}function Xm(e,t){return(0,w.useMemo)(()=>({sensor:e,options:t!=null?t:{}}),[e,t])}function Zm(){for(var e=arguments.length,t=new Array(e),n=0;n[...t].filter(r=>r!=null),[...t])}var Tt=Object.freeze({x:0,y:0});function q0(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function J0(e,t){let n=ei(e);if(!n)return"0 0";let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function ew(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function tw(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function qm(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Fm(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var Jm=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=Fm(t,t.left,t.top),i=[];for(let l of r){let{id:s}=l,a=n.get(s);if(a){let u=q0(Fm(a),o);i.push({id:s,data:{droppableContainer:l,value:u}})}}return i.sort(ew)};function nw(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=o-r,s=i-n;if(r{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:l}=i,s=n.get(l);if(s){let a=nw(s,t);a>0&&o.push({id:l,data:{droppableContainer:i,value:a}})}}return o.sort(tw)};function ow(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function eg(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Tt}function iw(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i({...l,top:l.top+e*s.y,bottom:l.bottom+e*s.y,left:l.left+e*s.x,right:l.right+e*s.x}),{...n})}}var lw=iw(1);function tg(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function sw(e,t,n){let r=tg(t);if(!r)return e;let{scaleX:o,scaleY:i,x:l,y:s}=r,a=e.left-l-(1-o)*parseFloat(n),u=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),f=o?e.width/o:e.width,p=i?e.height/i:e.height;return{width:f,height:p,top:u,right:a+f,bottom:u+p,left:a}}var aw={ignoreTransform:!1};function Zn(e,t){t===void 0&&(t=aw);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:f}=Le(e).getComputedStyle(e);u&&(n=sw(n,u,f))}let{top:r,left:o,width:i,height:l,bottom:s,right:a}=n;return{top:r,left:o,width:i,height:l,bottom:s,right:a}}function Vm(e){return Zn(e,{ignoreTransform:!0})}function uw(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function cw(e,t){return t===void 0&&(t=Le(e).getComputedStyle(e)),t.position==="fixed"}function dw(e,t){t===void 0&&(t=Le(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function Xl(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(Gl(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Br(o)||Qu(o)||n.includes(o))return n;let i=Le(e).getComputedStyle(o);return o!==e&&dw(o,i)&&n.push(o),cw(o,i)?n:r(o.parentNode)}return e?r(e):n}function ng(e){let[t]=Xl(e,1);return t!=null?t:null}function Ku(e){return!Xo||!e?null:Un(e)?e:Ul(e)?Gl(e)||e===Gn(e).scrollingElement?window:Br(e)?e:null:null}function rg(e){return Un(e)?e.scrollX:e.scrollLeft}function og(e){return Un(e)?e.scrollY:e.scrollTop}function qu(e){return{x:rg(e),y:og(e)}}var pe;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(pe||(pe={}));function ig(e){return!Xo||!e?!1:e===document.scrollingElement}function lg(e){let t={x:0,y:0},n=ig(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,l=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:l,isRight:s,maxScroll:r,minScroll:t}}var fw={x:.2,y:.2};function pw(e,t,n,r,o){let{top:i,left:l,right:s,bottom:a}=n;r===void 0&&(r=10),o===void 0&&(o=fw);let{isTop:u,isBottom:f,isLeft:p,isRight:g}=lg(e),h={x:0,y:0},S={x:0,y:0},v={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+v.height?(h.y=pe.Backward,S.y=r*Math.abs((t.top+v.height-i)/v.height)):!f&&a>=t.bottom-v.height&&(h.y=pe.Forward,S.y=r*Math.abs((t.bottom-v.height-a)/v.height)),!g&&s>=t.right-v.width?(h.x=pe.Forward,S.x=r*Math.abs((t.right-v.width-s)/v.width)):!p&&l<=t.left+v.width&&(h.x=pe.Backward,S.x=r*Math.abs((t.left+v.width-l)/v.width)),{direction:h,speed:S}}function mw(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:l}=window;return{top:0,left:0,right:i,bottom:l,width:i,height:l}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function sg(e){return e.reduce((t,n)=>Qn(t,qu(n)),Tt)}function gw(e){return e.reduce((t,n)=>t+rg(n),0)}function hw(e){return e.reduce((t,n)=>t+og(n),0)}function ag(e,t){if(t===void 0&&(t=Zn),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);ng(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var vw=[["x",["left","right"],gw],["y",["top","bottom"],hw]],ni=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=Xl(n),o=sg(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,l,s]of vw)for(let a of l)Object.defineProperty(this,a,{get:()=>{let u=s(r),f=o[i]-u;return this.rect[a]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Yn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function yw(e){let{EventTarget:t}=Le(e);return e instanceof t?e:Gn(e)}function Yu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var ut;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(ut||(ut={}));function Bm(e){e.preventDefault()}function ww(e){e.stopPropagation()}var F;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(F||(F={}));var ug={start:[F.Space,F.Enter],cancel:[F.Esc],end:[F.Space,F.Enter]},Sw=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case F.Right:return{...n,x:n.x+25};case F.Left:return{...n,x:n.x-25};case F.Down:return{...n,y:n.y+25};case F.Up:return{...n,y:n.y-25}}},Kl=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Yn(Gn(n)),this.windowListeners=new Yn(Le(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(ut.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&ag(r),n(Tt)}handleKeyDown(t){if(Ur(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=ug,coordinateGetter:l=Sw,scrollBehavior:s="smooth"}=o,{code:a}=t;if(i.end.includes(a)){this.handleEnd(t);return}if(i.cancel.includes(a)){this.handleCancel(t);return}let{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:Tt;this.referenceCoordinates||(this.referenceCoordinates=f);let p=l(t,{active:n,context:r.current,currentCoordinates:f});if(p){let g=jr(p,f),h={x:0,y:0},{scrollableAncestors:S}=r.current;for(let v of S){let b=t.code,{isTop:d,isRight:c,isLeft:m,isBottom:y,maxScroll:k,minScroll:x}=lg(v),T=mw(v),E={x:Math.min(b===F.Right?T.right-T.width/2:T.right,Math.max(b===F.Right?T.left:T.left+T.width/2,p.x)),y:Math.min(b===F.Down?T.bottom-T.height/2:T.bottom,Math.max(b===F.Down?T.top:T.top+T.height/2,p.y))},N=b===F.Right&&!c||b===F.Left&&!m,D=b===F.Down&&!y||b===F.Up&&!d;if(N&&E.x!==p.x){let O=v.scrollLeft+g.x,ce=b===F.Right&&O<=k.x||b===F.Left&&O>=x.x;if(ce&&!g.y){v.scrollTo({left:O,behavior:s});return}ce?h.x=v.scrollLeft-O:h.x=b===F.Right?v.scrollLeft-k.x:v.scrollLeft-x.x,h.x&&v.scrollBy({left:-h.x,behavior:s});break}else if(D&&E.y!==p.y){let O=v.scrollTop+g.y,ce=b===F.Down&&O<=k.y||b===F.Up&&O>=x.y;if(ce&&!g.x){v.scrollTo({top:O,behavior:s});return}ce?h.y=v.scrollTop-O:h.y=b===F.Down?v.scrollTop-k.y:v.scrollTop-x.y,h.y&&v.scrollBy({top:-h.y,behavior:s});break}}this.handleMove(t,Qn(jr(p,this.referenceCoordinates),h))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Kl.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ug,onActivation:o}=t,{active:i}=n,{code:l}=e.nativeEvent;if(r.start.includes(l)){let s=i.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),o==null||o({event:e.nativeEvent}),!0)}return!1}}];function Wm(e){return!!(e&&"distance"in e)}function Hm(e){return!!(e&&"delay"in e)}var ri=class{constructor(t,n,r){var o;r===void 0&&(r=yw(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:l}=i;this.props=t,this.events=n,this.document=Gn(l),this.documentListeners=new Yn(this.document),this.listeners=new Yn(r),this.windowListeners=new Yn(Le(l)),this.initialCoordinates=(o=ei(i))!=null?o:Tt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(ut.Resize,this.handleCancel),this.windowListeners.add(ut.DragStart,Bm),this.windowListeners.add(ut.VisibilityChange,this.handleCancel),this.windowListeners.add(ut.ContextMenu,Bm),this.documentListeners.add(ut.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Hm(n)){this.timeoutId=setTimeout(this.handleStart,n.delay);return}if(Wm(n))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(ut.Click,ww,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ut.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:l,options:{activationConstraint:s}}=i;if(!o)return;let a=(n=ei(t))!=null?n:Tt,u=jr(o,a);if(!r&&s){if(Wm(s)){if(s.tolerance!=null&&Yu(u,s.tolerance))return this.handleCancel();if(Yu(u,s.distance))return this.handleStart()}return Hm(s)&&Yu(u,s.tolerance)?this.handleCancel():void 0}t.cancelable&&t.preventDefault(),l(a)}handleEnd(){let{onEnd:t}=this.props;this.detach(),t()}handleCancel(){let{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===F.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},kw={move:{name:"pointermove"},end:{name:"pointerup"}},Gr=class extends ri{constructor(t){let{event:n}=t,r=Gn(n.target);super(t,kw,r)}};Gr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];var Tw={move:{name:"mousemove"},end:{name:"mouseup"}},Ju;(function(e){e[e.RightClick=2]="RightClick"})(Ju||(Ju={}));var ec=class extends ri{constructor(t){super(t,Tw,Gn(t.event.target))}};ec.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Ju.RightClick?!1:(r==null||r({event:n}),!0)}}];var Xu={move:{name:"touchmove"},end:{name:"touchend"}},tc=class extends ri{constructor(t){super(t,Xu)}static setup(){return window.addEventListener(Xu.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Xu.move.name,t)};function t(){}}};tc.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r==null||r({event:n}),!0)}}];var ti;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ti||(ti={}));var Yl;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Yl||(Yl={}));function Ew(e){let{acceleration:t,activator:n=ti.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:l=5,order:s=Yl.TreeOrder,pointerCoordinates:a,scrollableAncestors:u,scrollableAncestorRects:f,delta:p,threshold:g}=e,h=xw({delta:p,disabled:!i}),[S,v]=Om(),b=(0,w.useRef)({x:0,y:0}),d=(0,w.useRef)({x:0,y:0}),c=(0,w.useMemo)(()=>{switch(n){case ti.Pointer:return a?{top:a.y,bottom:a.y,left:a.x,right:a.x}:null;case ti.DraggableRect:return o}},[n,o,a]),m=(0,w.useRef)(null),y=(0,w.useCallback)(()=>{let x=m.current;if(!x)return;let T=b.current.x*d.current.x,E=b.current.y*d.current.y;x.scrollBy(T,E)},[]),k=(0,w.useMemo)(()=>s===Yl.TreeOrder?[...u].reverse():u,[s,u]);(0,w.useEffect)(()=>{if(!i||!u.length||!c){v();return}for(let x of k){if((r==null?void 0:r(x))===!1)continue;let T=u.indexOf(x),E=f[T];if(!E)continue;let{direction:N,speed:D}=pw(x,E,c,t,g);for(let O of["x","y"])h[O][N[O]]||(D[O]=0,N[O]=0);if(D.x>0||D.y>0){v(),m.current=x,S(y,l),b.current=D,d.current=N;return}}b.current={x:0,y:0},d.current={x:0,y:0},v()},[t,y,r,v,i,l,JSON.stringify(c),JSON.stringify(h),S,u,k,f,JSON.stringify(g)])}var Cw={x:{[pe.Backward]:!1,[pe.Forward]:!1},y:{[pe.Backward]:!1,[pe.Forward]:!1}};function xw(e){let{delta:t,disabled:n}=e,r=Jo(t);return Hr(o=>{if(n||!r||!o)return Cw;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[pe.Backward]:o.x[pe.Backward]||i.x===-1,[pe.Forward]:o.x[pe.Forward]||i.x===1},y:{[pe.Backward]:o.y[pe.Backward]||i.y===-1,[pe.Forward]:o.y[pe.Forward]||i.y===1}}},[n,t,r])}function bw(e,t){let n=t!==null?e.get(t):void 0,r=n?n.node.current:null;return Hr(o=>{var i;return t===null?null:(i=r!=null?r:o)!=null?i:null},[r,t])}function Nw(e,t){return(0,w.useMemo)(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(l=>({eventName:l.eventName,handler:t(l.handler,r)}));return[...n,...i]},[]),[e,t])}var oi;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(oi||(oi={}));var nc;(function(e){e.Optimized="optimized"})(nc||(nc={}));var jm=new Map;function Lw(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,l]=(0,w.useState)(null),{frequency:s,measure:a,strategy:u}=o,f=(0,w.useRef)(e),p=b(),g=Wr(p),h=(0,w.useCallback)(function(d){d===void 0&&(d=[]),!g.current&&l(c=>c===null?d:c.concat(d.filter(m=>!c.includes(m))))},[g]),S=(0,w.useRef)(null),v=Hr(d=>{if(p&&!n)return jm;if(!d||d===jm||f.current!==e||i!=null){let c=new Map;for(let m of e){if(!m)continue;if(i&&i.length>0&&!i.includes(m.id)&&m.rect.current){c.set(m.id,m.rect.current);continue}let y=m.node.current,k=y?new ni(a(y),y):null;m.rect.current=k,k&&c.set(m.id,k)}return c}return d},[e,i,n,p,a]);return(0,w.useEffect)(()=>{f.current=e},[e]),(0,w.useEffect)(()=>{p||h()},[n,p]),(0,w.useEffect)(()=>{i&&i.length>0&&l(null)},[JSON.stringify(i)]),(0,w.useEffect)(()=>{p||typeof s!="number"||S.current!==null||(S.current=setTimeout(()=>{h(),S.current=null},s))},[s,p,h,...r]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:i!=null};function b(){switch(u){case oi.Always:return!1;case oi.BeforeDragging:return n;default:return!n}}}function rc(e,t){return Hr(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Iw(e,t){return rc(e,t)}function Dw(e){let{callback:t,disabled:n}=e,r=Zo(t),o=(0,w.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return(0,w.useEffect)(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Zl(e){let{callback:t,disabled:n}=e,r=Zo(t),o=(0,w.useMemo)(()=>{if(n||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return(0,w.useEffect)(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Rw(e){return new ni(Zn(e),e)}function Um(e,t,n){t===void 0&&(t=Rw);let[r,o]=(0,w.useReducer)(s,null),i=Dw({callback(a){if(e)for(let u of a){let{type:f,target:p}=u;if(f==="childList"&&p instanceof HTMLElement&&p.contains(e)){o();break}}}}),l=Zl({callback:o});return He(()=>{o(),e?(l==null||l.observe(e),i==null||i.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),i==null||i.disconnect())},[e]),r;function s(a){if(!e)return null;if(e.isConnected===!1){var u;return(u=a!=null?a:n)!=null?u:null}let f=t(e);return JSON.stringify(a)===JSON.stringify(f)?a:f}}function Ow(e){let t=rc(e);return eg(e,t)}var Gm=[];function Pw(e){let t=(0,w.useRef)(e),n=Hr(r=>e?r&&r!==Gm&&e&&t.current&&e.parentNode===t.current.parentNode?r:Xl(e):Gm,[e]);return(0,w.useEffect)(()=>{t.current=e},[e]),n}function Aw(e){let[t,n]=(0,w.useState)(null),r=(0,w.useRef)(e),o=(0,w.useCallback)(i=>{let l=Ku(i.target);l&&n(s=>s?(s.set(l,qu(l)),new Map(s)):null)},[]);return(0,w.useEffect)(()=>{let i=r.current;if(e!==i){l(i);let s=e.map(a=>{let u=Ku(a);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,qu(u)]):null}).filter(a=>a!=null);n(s.length?new Map(s):null),r.current=e}return()=>{l(e),l(i)};function l(s){s.forEach(a=>{let u=Ku(a);u==null||u.removeEventListener("scroll",o)})}},[o,e]),(0,w.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((i,l)=>Qn(i,l),Tt):sg(e):Tt,[e,t])}function $m(e,t){t===void 0&&(t=[]);let n=(0,w.useRef)(null);return(0,w.useEffect)(()=>{n.current=null},t),(0,w.useEffect)(()=>{let r=e!==Tt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?jr(e,n.current):Tt}function Mw(e){(0,w.useEffect)(()=>{if(!Xo)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function _w(e,t){return(0,w.useMemo)(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=l=>{i(l,t)},n},{}),[e,t])}function cg(e){return(0,w.useMemo)(()=>e?uw(e):null,[e])}var Zu=[];function zw(e,t){t===void 0&&(t=Zn);let[n]=e,r=cg(n?Le(n):null),[o,i]=(0,w.useReducer)(s,Zu),l=Zl({callback:i});return e.length>0&&o===Zu&&i(),He(()=>{e.length?e.forEach(a=>l==null?void 0:l.observe(a)):(l==null||l.disconnect(),i())},[e]),o;function s(){return e.length?e.map(a=>ig(a)?r:new ni(t(a),a)):Zu}}function dg(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Br(t)?t:e}function Fw(e){let{measure:t}=e,[n,r]=(0,w.useState)(null),o=(0,w.useCallback)(u=>{for(let{target:f}of u)if(Br(f)){r(p=>{let g=t(f);return p?{...p,width:g.width,height:g.height}:g});break}},[t]),i=Zl({callback:o}),l=(0,w.useCallback)(u=>{let f=dg(u);i==null||i.disconnect(),f&&(i==null||i.observe(f)),r(f?t(f):null)},[t,i]),[s,a]=qo(l);return(0,w.useMemo)(()=>({nodeRef:s,rect:n,setRef:a}),[n,s,a])}var Vw=[{sensor:Gr,options:{}},{sensor:Kl,options:{}}],Bw={current:{}},$l={draggable:{measure:Vm},droppable:{measure:Vm,strategy:oi.WhileDragging,frequency:nc.Optimized},dragOverlay:{measure:Zn}},Xn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},Ww={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Xn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ql},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:$l,measureDroppableContainers:Ql,windowRect:null,measuringScheduled:!1},fg={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ql,draggableNodes:new Map,over:null,measureDroppableContainers:Ql},ii=(0,w.createContext)(fg),pg=(0,w.createContext)(Ww);function Hw(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Xn}}}function jw(e,t){switch(t.type){case ae.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ae.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case ae.DragEnd:case ae.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ae.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Xn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case ae.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let l=new Xn(e.droppable.containers);return l.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:l}}}case ae.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Xn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Uw(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=(0,w.useContext)(ii),i=Jo(r),l=Jo(n==null?void 0:n.id);return(0,w.useEffect)(()=>{if(!t&&!r&&i&&l!=null){if(!Ur(i)||document.activeElement===i.target)return;let s=o.get(l);if(!s)return;let{activatorNode:a,node:u}=s;if(!a.current&&!u.current)return;requestAnimationFrame(()=>{for(let f of[a.current,u.current]){if(!f)continue;let p=Am(f);if(p){p.focus();break}}})}},[r,t,o,l,i]),null}function mg(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Gw(e){return(0,w.useMemo)(()=>({draggable:{...$l.draggable,...e==null?void 0:e.draggable},droppable:{...$l.droppable,...e==null?void 0:e.droppable},dragOverlay:{...$l.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function $w(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=(0,w.useRef)(!1),{x:l,y:s}=typeof o=="boolean"?{x:o,y:o}:o;He(()=>{if(!l&&!s||!t){i.current=!1;return}if(i.current||!r)return;let u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;let f=n(u),p=eg(f,r);if(l||(p.x=0),s||(p.y=0),i.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){let g=ng(u);g&&g.scrollBy({top:p.y,left:p.x})}},[t,l,s,r,n])}var ql=(0,w.createContext)({...Tt,scaleX:1,scaleY:1}),kn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(kn||(kn={}));var gg=(0,w.memo)(function(t){var n,r,o,i;let{id:l,accessibility:s,autoScroll:a=!0,children:u,sensors:f=Vw,collisionDetection:p=rw,measuring:g,modifiers:h,...S}=t,v=(0,w.useReducer)(jw,void 0,Hw),[b,d]=v,[c,m]=K0(),[y,k]=(0,w.useState)(kn.Uninitialized),x=y===kn.Initialized,{draggable:{active:T,nodes:E,translate:N},droppable:{containers:D}}=b,O=T?E.get(T):null,ce=(0,w.useRef)({initial:null,translated:null}),R=(0,w.useMemo)(()=>{var ge;return T!=null?{id:T,data:(ge=O==null?void 0:O.data)!=null?ge:Bw,rect:ce}:null},[T,O]),Se=(0,w.useRef)(null),[L,j]=(0,w.useState)(null),[z,_e]=(0,w.useState)(null),dt=Wr(S,Object.values(S)),Pt=$n("DndDescribedBy",l),ke=(0,w.useMemo)(()=>D.getEnabled(),[D]),ne=Gw(g),{droppableRects:q,measureDroppableContainers:Ie,measuringScheduled:Yr}=Lw(ke,{dragging:x,dependencies:[N.x,N.y],config:ne.droppable}),je=bw(E,T),fi=(0,w.useMemo)(()=>z?ei(z):null,[z]),Yt=Qh(),At=Iw(je,ne.draggable.measure);$w({activeNode:T?E.get(T):null,config:Yt.layoutShiftCompensation,initialRect:At,measure:ne.draggable.measure});let B=Um(je,ne.draggable.measure,At),Xr=Um(je?je.parentElement:null),Et=(0,w.useRef)({activatorEvent:null,active:null,activeNode:je,collisionRect:null,collisions:null,droppableRects:q,draggableNodes:E,draggingNode:null,draggingNodeRect:null,droppableContainers:D,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nr=D.getNodeFor((n=Et.current.over)==null?void 0:n.id),Mt=Fw({measure:ne.dragOverlay.measure}),rr=(r=Mt.nodeRef.current)!=null?r:je,or=x?(o=Mt.rect)!=null?o:B:null,kc=!!(Mt.nodeRef.current&&Mt.rect),Tc=Ow(kc?null:B),ws=cg(rr?Le(rr):null),Xt=Pw(x?nr!=null?nr:je:null),pi=zw(Xt),mi=mg(h,{transform:{x:N.x-Tc.x,y:N.y-Tc.y,scaleX:1,scaleY:1},activatorEvent:z,active:R,activeNodeRect:B,containerNodeRect:Xr,draggingNodeRect:or,over:Et.current.over,overlayNodeRect:Mt.rect,scrollableAncestors:Xt,scrollableAncestorRects:pi,windowRect:ws}),Ec=fi?Qn(fi,N):null,Cc=Aw(Xt),Bh=$m(Cc),Wh=$m(Cc,[B]),ir=Qn(mi,Bh),lr=or?lw(or,mi):null,Zr=R&&lr?p({active:R,collisionRect:lr,droppableRects:q,droppableContainers:ke,pointerCoordinates:Ec}):null,xc=qm(Zr,"id"),[Zt,bc]=(0,w.useState)(null),Hh=kc?mi:Qn(mi,Wh),jh=ow(Hh,(i=Zt==null?void 0:Zt.rect)!=null?i:null,B),Nc=(0,w.useCallback)((ge,Ue)=>{let{sensor:Ge,options:qt}=Ue;if(Se.current==null)return;let tt=E.get(Se.current);if(!tt)return;let ft=ge.nativeEvent,Ct=new Ge({active:Se.current,activeNode:tt,event:ft,options:qt,context:Et,onStart(pt){let qr=Se.current;if(qr==null)return;let Jr=E.get(qr);if(!Jr)return;let{onDragStart:gi}=dt.current,hi={active:{id:qr,data:Jr.data,rect:ce}};(0,Tn.unstable_batchedUpdates)(()=>{gi==null||gi(hi),k(kn.Initializing),d({type:ae.DragStart,initialCoordinates:pt,active:qr}),c({type:"onDragStart",event:hi})})},onMove(pt){d({type:ae.DragMove,coordinates:pt})},onEnd:sr(ae.DragEnd),onCancel:sr(ae.DragCancel)});(0,Tn.unstable_batchedUpdates)(()=>{j(Ct),_e(ge.nativeEvent)});function sr(pt){return async function(){let{active:Jr,collisions:gi,over:hi,scrollAdjustedTranslate:Ic}=Et.current,eo=null;if(Jr&&Ic){let{cancelDrop:to}=dt.current;eo={activatorEvent:ft,active:Jr,collisions:gi,delta:Ic,over:hi},pt===ae.DragEnd&&typeof to=="function"&&await Promise.resolve(to(eo))&&(pt=ae.DragCancel)}Se.current=null,(0,Tn.unstable_batchedUpdates)(()=>{d({type:pt}),k(kn.Uninitialized),bc(null),j(null),_e(null);let to=pt===ae.DragEnd?"onDragEnd":"onDragCancel";if(eo){let Ss=dt.current[to];Ss==null||Ss(eo),c({type:to,event:eo})}})}}},[E]),Uh=(0,w.useCallback)((ge,Ue)=>(Ge,qt)=>{let tt=Ge.nativeEvent,ft=E.get(qt);if(Se.current!==null||!ft||tt.dndKit||tt.defaultPrevented)return;let Ct={active:ft};ge(Ge,Ue.options,Ct)===!0&&(tt.dndKit={capturedBy:Ue.sensor},Se.current=qt,Nc(Ge,Ue))},[E,Nc]),Lc=Nw(f,Uh);Mw(f),He(()=>{B&&y===kn.Initializing&&k(kn.Initialized)},[B,y]),(0,w.useEffect)(()=>{let{onDragMove:ge}=dt.current,{active:Ue,activatorEvent:Ge,collisions:qt,over:tt}=Et.current;if(!Ue||!Ge)return;let ft={active:Ue,activatorEvent:Ge,collisions:qt,delta:{x:ir.x,y:ir.y},over:tt};(0,Tn.unstable_batchedUpdates)(()=>{ge==null||ge(ft),c({type:"onDragMove",event:ft})})},[ir.x,ir.y]),(0,w.useEffect)(()=>{let{active:ge,activatorEvent:Ue,collisions:Ge,droppableContainers:qt,scrollAdjustedTranslate:tt}=Et.current;if(!ge||Se.current==null||!Ue||!tt)return;let{onDragOver:ft}=dt.current,Ct=qt.get(xc),sr=Ct&&Ct.rect.current?{id:Ct.id,rect:Ct.rect.current,data:Ct.data,disabled:Ct.disabled}:null,pt={active:ge,activatorEvent:Ue,collisions:Ge,delta:{x:tt.x,y:tt.y},over:sr};(0,Tn.unstable_batchedUpdates)(()=>{bc(sr),ft==null||ft(pt),c({type:"onDragOver",event:pt})})},[xc]),He(()=>{Et.current={activatorEvent:z,active:R,activeNode:je,collisionRect:lr,collisions:Zr,droppableRects:q,draggableNodes:E,draggingNode:rr,draggingNodeRect:or,droppableContainers:D,over:Zt,scrollableAncestors:Xt,scrollAdjustedTranslate:ir},ce.current={initial:or,translated:lr}},[R,je,Zr,lr,E,rr,or,q,D,Zt,Xt,ir]),Ew({...Yt,delta:N,draggingRect:lr,pointerCoordinates:Ec,scrollableAncestors:Xt,scrollableAncestorRects:pi});let Gh=(0,w.useMemo)(()=>({active:R,activeNode:je,activeNodeRect:B,activatorEvent:z,collisions:Zr,containerNodeRect:Xr,dragOverlay:Mt,draggableNodes:E,droppableContainers:D,droppableRects:q,over:Zt,measureDroppableContainers:Ie,scrollableAncestors:Xt,scrollableAncestorRects:pi,measuringConfiguration:ne,measuringScheduled:Yr,windowRect:ws}),[R,je,B,z,Zr,Xr,Mt,E,D,q,Zt,Ie,Xt,pi,ne,Yr,ws]),$h=(0,w.useMemo)(()=>({activatorEvent:z,activators:Lc,active:R,activeNodeRect:B,ariaDescribedById:{draggable:Pt},dispatch:d,draggableNodes:E,over:Zt,measureDroppableContainers:Ie}),[z,Lc,R,B,d,Pt,E,Zt,Ie]);return w.default.createElement(Ym.Provider,{value:m},w.default.createElement(ii.Provider,{value:$h},w.default.createElement(pg.Provider,{value:Gh},w.default.createElement(ql.Provider,{value:jh},u)),w.default.createElement(Uw,{disabled:(s==null?void 0:s.restoreFocus)===!1})),w.default.createElement(Z0,{...s,hiddenTextDescribedById:Pt}));function Qh(){let ge=(L==null?void 0:L.autoScrollEnabled)===!1,Ue=typeof a=="object"?a.enabled===!1:a===!1,Ge=x&&!ge&&!Ue;return typeof a=="object"?{...a,enabled:Ge}:{enabled:Ge}}}),Qw=(0,w.createContext)(null),Qm="button",Kw="Droppable";function hg(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=$n(Kw),{activators:l,activatorEvent:s,active:a,activeNodeRect:u,ariaDescribedById:f,draggableNodes:p,over:g}=(0,w.useContext)(ii),{role:h=Qm,roleDescription:S="draggable",tabIndex:v=0}=o!=null?o:{},b=(a==null?void 0:a.id)===t,d=(0,w.useContext)(b?ql:Qw),[c,m]=qo(),[y,k]=qo(),x=_w(l,t),T=Wr(n);He(()=>(p.set(t,{id:t,key:i,node:c,activatorNode:y,data:T}),()=>{let N=p.get(t);N&&N.key===i&&p.delete(t)}),[p,t]);let E=(0,w.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":r,"aria-pressed":b&&h===Qm?!0:void 0,"aria-roledescription":S,"aria-describedby":f.draggable}),[r,h,v,b,S,f.draggable]);return{active:a,activatorEvent:s,activeNodeRect:u,attributes:E,isDragging:b,listeners:r?void 0:x,node:c,over:g,setNodeRef:m,setActivatorNodeRef:k,transform:d}}function oc(){return(0,w.useContext)(pg)}var Yw="Droppable",Xw={timeout:25};function vg(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=$n(Yw),{active:l,dispatch:s,over:a,measureDroppableContainers:u}=(0,w.useContext)(ii),f=(0,w.useRef)({disabled:n}),p=(0,w.useRef)(!1),g=(0,w.useRef)(null),h=(0,w.useRef)(null),{disabled:S,updateMeasurementsFor:v,timeout:b}={...Xw,...o},d=Wr(v!=null?v:r),c=(0,w.useCallback)(()=>{if(!p.current){p.current=!0;return}h.current!=null&&clearTimeout(h.current),h.current=setTimeout(()=>{u(Array.isArray(d.current)?d.current:[d.current]),h.current=null},b)},[b]),m=Zl({callback:c,disabled:S||!l}),y=(0,w.useCallback)((E,N)=>{m&&(N&&(m.unobserve(N),p.current=!1),E&&m.observe(E))},[m]),[k,x]=qo(y),T=Wr(t);return(0,w.useEffect)(()=>{!m||!k.current||(m.disconnect(),p.current=!1,m.observe(k.current))},[k,m]),He(()=>(s({type:ae.RegisterDroppable,element:{id:r,key:i,disabled:n,node:k,rect:g,data:T}}),()=>s({type:ae.UnregisterDroppable,key:i,id:r})),[r]),(0,w.useEffect)(()=>{n!==f.current.disabled&&(s({type:ae.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)},[r,i,n,s]),{active:l,rect:g,isOver:(a==null?void 0:a.id)===r,node:k,over:a,setNodeRef:x}}function Zw(e){let{animation:t,children:n}=e,[r,o]=(0,w.useState)(null),[i,l]=(0,w.useState)(null),s=Jo(n);return!n&&!r&&s&&o(s),He(()=>{if(!i)return;let a=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(a==null||u==null){o(null);return}Promise.resolve(t(u,i)).then(()=>{o(null)})},[t,r,i]),w.default.createElement(w.default.Fragment,null,n,r?(0,w.cloneElement)(r,{ref:l}):null)}var qw={x:0,y:0,scaleX:1,scaleY:1};function Jw(e){let{children:t}=e;return w.default.createElement(ii.Provider,{value:fg},w.default.createElement(ql.Provider,{value:qw},t))}var eS={position:"fixed",touchAction:"none"},tS=e=>Ur(e)?"transform 250ms ease":void 0,nS=(0,w.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:o,children:i,className:l,rect:s,style:a,transform:u,transition:f=tS}=e;if(!s)return null;let p=o?u:{...u,scaleX:1,scaleY:1},g={...eS,width:s.width,height:s.height,top:s.top,left:s.left,transform:Kt.Transform.toString(p),transformOrigin:o&&r?J0(r,s):void 0,transition:typeof f=="function"?f(r):f,...a};return w.default.createElement(n,{className:l,style:g,ref:t},i)}),rS=e=>t=>{let{active:n,dragOverlay:r}=t,o={},{styles:i,className:l}=e;if(i!=null&&i.active)for(let[s,a]of Object.entries(i.active))a!==void 0&&(o[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,a));if(i!=null&&i.dragOverlay)for(let[s,a]of Object.entries(i.dragOverlay))a!==void 0&&r.node.style.setProperty(s,a);return l!=null&&l.active&&n.node.classList.add(l.active),l!=null&&l.dragOverlay&&r.node.classList.add(l.dragOverlay),function(){for(let[a,u]of Object.entries(o))n.node.style.setProperty(a,u);l!=null&&l.active&&n.node.classList.remove(l.active)}},oS=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Kt.Transform.toString(t)},{transform:Kt.Transform.toString(n)}]},iS={duration:250,easing:"ease",keyframes:oS,sideEffects:rS({styles:{active:{opacity:"0"}}})};function lS(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return Zo((i,l)=>{if(t===null)return;let s=n.get(i);if(!s)return;let a=s.node.current;if(!a)return;let u=dg(l);if(!u)return;let{transform:f}=Le(l).getComputedStyle(l),p=tg(f);if(!p)return;let g=typeof t=="function"?t:sS(t);return ag(a,o.draggable.measure),g({active:{id:i,data:s.data,node:a,rect:o.draggable.measure(a)},draggableNodes:n,dragOverlay:{node:l,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:p})})}function sS(e){let{duration:t,easing:n,sideEffects:r,keyframes:o}={...iS,...e};return i=>{let{active:l,dragOverlay:s,transform:a,...u}=i;if(!t)return;let f={x:s.rect.left-l.rect.left,y:s.rect.top-l.rect.top},p={scaleX:a.scaleX!==1?l.rect.width*a.scaleX/s.rect.width:1,scaleY:a.scaleY!==1?l.rect.height*a.scaleY/s.rect.height:1},g={x:a.x-f.x,y:a.y-f.y,...p},h=o({...u,active:l,dragOverlay:s,transform:{initial:a,final:g}}),[S]=h,v=h[h.length-1];if(JSON.stringify(S)===JSON.stringify(v))return;let b=r==null?void 0:r({active:l,dragOverlay:s,...u}),d=s.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise(c=>{d.onfinish=()=>{b==null||b(),c()}})}}var Km=0;function aS(e){return(0,w.useMemo)(()=>{if(e!=null)return Km++,Km},[e])}var yg=w.default.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:o,transition:i,modifiers:l,wrapperElement:s="div",className:a,zIndex:u=999}=e,{activatorEvent:f,active:p,activeNodeRect:g,containerNodeRect:h,draggableNodes:S,droppableContainers:v,dragOverlay:b,over:d,measuringConfiguration:c,scrollableAncestors:m,scrollableAncestorRects:y,windowRect:k}=oc(),x=(0,w.useContext)(ql),T=aS(p==null?void 0:p.id),E=mg(l,{activatorEvent:f,active:p,activeNodeRect:g,containerNodeRect:h,draggingNodeRect:b.rect,over:d,overlayNodeRect:b.rect,scrollableAncestors:m,scrollableAncestorRects:y,transform:x,windowRect:k}),N=rc(g),D=lS({config:r,draggableNodes:S,droppableContainers:v,measuringConfiguration:c}),O=N?b.setRef:void 0;return w.default.createElement(Jw,null,w.default.createElement(Zw,{animation:D},p&&T?w.default.createElement(nS,{key:T,id:p.id,ref:O,as:s,activatorEvent:f,adjustScale:t,className:a,transition:i,rect:N,style:{zIndex:u,...o},transform:E},n):null))});function wg(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function uS(e,t){return e.reduce((n,r,o)=>{let i=t.get(r);return i&&(n[o]=i),n},Array(e.length))}function Jl(e){return e!==null&&e>=0}function cS(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{let{rects:t,activeIndex:n,overIndex:r,index:o}=e,i=wg(t,r,n),l=t[o],s=i[o];return!s||!l?null:{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}};var kg="Sortable",Tg=te.default.createContext({activeIndex:-1,containerId:kg,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Sg,disabled:{draggable:!1,droppable:!1}});function ic(e){let{children:t,id:n,items:r,strategy:o=Sg,disabled:i=!1}=e,{active:l,dragOverlay:s,droppableRects:a,over:u,measureDroppableContainers:f}=oc(),p=$n(kg,n),g=s.rect!==null,h=(0,te.useMemo)(()=>r.map(x=>typeof x=="object"&&"id"in x?x.id:x),[r]),S=l!=null,v=l?h.indexOf(l.id):-1,b=u?h.indexOf(u.id):-1,d=(0,te.useRef)(h),c=!cS(h,d.current),m=b!==-1&&v===-1||c,y=dS(i);He(()=>{c&&S&&f(h)},[c,h,S,f]),(0,te.useEffect)(()=>{d.current=h},[h]);let k=(0,te.useMemo)(()=>({activeIndex:v,containerId:p,disabled:y,disableTransforms:m,items:h,overIndex:b,useDragOverlay:g,sortedRects:uS(h,a),strategy:o}),[v,p,y.draggable,y.droppable,m,h,b,a,g,o]);return te.default.createElement(Tg.Provider,{value:k},t)}var fS=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return wg(n,r,o).indexOf(t)},pS=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:l,previousItems:s,previousContainerId:a,transition:u}=e;return!u||!r||s!==i&&o===l?!1:n?!0:l!==o&&t===a},mS={duration:200,easing:"ease"},Eg="transform",gS=Kt.Transition.toString({property:Eg,duration:0,easing:"linear"}),hS={roleDescription:"sortable"};function vS(e){let{disabled:t,index:n,node:r,rect:o}=e,[i,l]=(0,te.useState)(null),s=(0,te.useRef)(n);return He(()=>{if(!t&&n!==s.current&&r.current){let a=o.current;if(a){let u=Zn(r.current,{ignoreTransform:!0}),f={x:a.left-u.left,y:a.top-u.top,scaleX:a.width/u.width,scaleY:a.height/u.height};(f.x||f.y)&&l(f)}}n!==s.current&&(s.current=n)},[t,n,r,o]),(0,te.useEffect)(()=>{i&&l(null)},[i]),i}function Cg(e){let{animateLayoutChanges:t=pS,attributes:n,disabled:r,data:o,getNewIndex:i=fS,id:l,strategy:s,resizeObserverConfig:a,transition:u=mS}=e,{items:f,containerId:p,activeIndex:g,disabled:h,disableTransforms:S,sortedRects:v,overIndex:b,useDragOverlay:d,strategy:c}=(0,te.useContext)(Tg),m=yS(r,h),y=f.indexOf(l),k=(0,te.useMemo)(()=>({sortable:{containerId:p,index:y,items:f},...o}),[p,o,y,f]),x=(0,te.useMemo)(()=>f.slice(f.indexOf(l)),[f,l]),{rect:T,node:E,isOver:N,setNodeRef:D}=vg({id:l,data:k,disabled:m.droppable,resizeObserverConfig:{updateMeasurementsFor:x,...a}}),{active:O,activatorEvent:ce,activeNodeRect:R,attributes:Se,setNodeRef:L,listeners:j,isDragging:z,over:_e,setActivatorNodeRef:dt,transform:Pt}=hg({id:l,data:k,attributes:{...hS,...n},disabled:m.draggable}),ke=Rm(D,L),ne=!!O,q=ne&&!S&&Jl(g)&&Jl(b),Ie=!d&&z,Yr=Ie&&q?Pt:null,je=s!=null?s:c,fi=q?Yr!=null?Yr:je({rects:v,activeNodeRect:R,activeIndex:g,overIndex:b,index:y}):null,Yt=Jl(g)&&Jl(b)?i({id:l,items:f,activeIndex:g,overIndex:b}):y,At=O==null?void 0:O.id,B=(0,te.useRef)({activeId:At,items:f,newIndex:Yt,containerId:p}),Xr=f!==B.current.items,Et=t({active:O,containerId:p,isDragging:z,isSorting:ne,id:l,index:y,items:f,newIndex:B.current.newIndex,previousItems:B.current.items,previousContainerId:B.current.containerId,transition:u,wasDragging:B.current.activeId!=null}),nr=vS({disabled:!Et,index:y,node:E,rect:T});return(0,te.useEffect)(()=>{ne&&B.current.newIndex!==Yt&&(B.current.newIndex=Yt),p!==B.current.containerId&&(B.current.containerId=p),f!==B.current.items&&(B.current.items=f)},[ne,Yt,p,f]),(0,te.useEffect)(()=>{if(At===B.current.activeId)return;if(At&&!B.current.activeId){B.current.activeId=At;return}let rr=setTimeout(()=>{B.current.activeId=At},50);return()=>clearTimeout(rr)},[At]),{active:O,activeIndex:g,attributes:Se,data:k,rect:T,index:y,newIndex:Yt,items:f,isOver:N,isSorting:ne,isDragging:z,listeners:j,node:E,overIndex:b,over:_e,setNodeRef:ke,setActivatorNodeRef:dt,setDroppableNodeRef:D,setDraggableNodeRef:L,transform:nr!=null?nr:fi,transition:Mt()};function Mt(){if(nr||Xr&&B.current.newIndex===y)return gS;if(!(Ie&&!Ur(ce)||!u)&&(ne||Et))return Kt.Transition.toString({...u,property:Eg})}}function yS(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(r=e==null?void 0:e.droppable)!=null?r:t.droppable}}var Q1=[F.Down,F.Right,F.Up,F.Left];var ts=require("obsidian"),ns=A(ie());var Lg=A(Z()),Me=e=>{let t=(0,ns.useRef)(null),n={"clickable-icon":!0,"action-button":!e.isNavAction,"nav-action-button":e.isNavAction,[`action-${e.icon}`]:!0,"is-active":e.isActive};return(0,ns.useEffect)(()=>{t&&t.current&&((0,ts.setIcon)(t.current,e.icon),e.tooltip&&(0,ts.setTooltip)(t.current,e.tooltip))},[e.icon,e.tooltip]),(0,Lg.jsx)("div",{className:Rt(n),"data-action":e.action,ref:t,onClick:r=>{r.stopPropagation(),!e.disabled&&e.onClick&&e.onClick(r)}})};var me=A(Z()),En=e=>{var p;let{attributes:t,listeners:n,setNodeRef:r,isDragging:o,isOver:i}=Cg({id:(p=e.id)!=null?p:"",data:{isTab:e.isTab&&!e.isTabSlot},disabled:!e.id||e.isTabSlot||e.isGroupSlot}),l=(0,qn.useRef)(null),[s,a]=(0,qn.useState)(0),u={"tree-item":!0,"is-tab":e.isTab,"is-ephemeral-tab":e.isTab&&e.isEphemeralTab,"is-group":!e.isTab,"nav-folder":!e.isTab,"is-pinned":e.isPinned,"is-collapsed":e.isCollapsed,"is-sidebar":e.isSidebar,"is-being-dragged":o,"vt-is-being-dragged-over":i,"is-tab-slot":e.isTabSlot,"is-group-slot":e.isGroupSlot,"is-single-group":e.isSingleGroup,"is-slot":e.isTabSlot||e.isGroupSlot,"is-highlighted":e.isHighlighted},f={"tree-item-self":!0,"is-clickable":!0,"is-active":e.isActive,"is-being-dragged":o,"is-being-renamed":e.isRenaming};return(0,qn.useEffect)(()=>{l&&l.current&&(0,rs.setIcon)(l.current,e.icon)},[e.icon]),(0,qn.useEffect)(()=>{e.children&&e.children instanceof Array&&a(e.children.length*20)},[e.isCollapsed]),rs.Platform.isMobile?(0,me.jsxs)("div",{className:Rt(u),"data-type":e.dataType,"data-id":e.dataId,style:{minHeight:e.isCollapsed?0:s},children:[(0,me.jsxs)("div",{className:Rt(f),onClick:e.onClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd,onAuxClick:e.onAuxClick,onDoubleClick:e.onDoubleClick,onContextMenu:e.onContextMenu,children:[(0,me.jsx)("div",{className:"tree-item-icon",ref:l}),(0,me.jsx)("div",{className:"tree-item-inner",children:(0,me.jsx)("div",{className:"tree-item-inner-text",children:e.title})}),(0,me.jsxs)("div",{className:"tree-item-flair-outer",children:[e.toolbar,(0,me.jsx)("div",{className:"drag-handle",ref:e.id&&r,...t,...n,children:(0,me.jsx)(Me,{icon:"grip-vertical",action:"drag-handle"})})]})]}),!e.isCollapsed&&!o&&(0,me.jsx)("div",{className:"tree-item-children",children:e.children})]}):(0,me.jsxs)("div",{className:Rt(u),"data-type":e.dataType,"data-id":e.dataId,style:{minHeight:e.isCollapsed?0:s},children:[(0,me.jsxs)("div",{className:Rt(f),onClick:e.onClick,onAuxClick:e.onAuxClick,onDoubleClick:e.onDoubleClick,onContextMenu:e.onContextMenu,ref:e.id&&r,...t,...n,children:[(0,me.jsx)("div",{className:"tree-item-icon",ref:l}),(0,me.jsx)("div",{className:"tree-item-inner",children:(0,me.jsx)("div",{className:"tree-item-inner-text",children:e.title})}),(0,me.jsx)("div",{className:"tree-item-flair-outer",children:e.toolbar})]}),!e.isCollapsed&&!o&&(0,me.jsx)("div",{className:"tree-item-children",children:e.children})]})};var kh=A(Z());var ui=A(ie());var ls=A(ie());var Ig={"obsidian-plus":"Obsidian+",obsidian:"Obsidian",ide:"IDE",explorer:"Explorer",notebook:"Notebook","prefer-new-tab":"Prefer new tab",custom:"Custom"};var li={showActiveTabs:!1,autoUncollapseGroup:!1,hideSidebars:!0,sidebarTabTypes:["markdown"],sidebarExcludeSelf:!0,trimTabNames:!1,showMoreButtons:!1,zenMode:!1,enableTabZoom:!1,alwaysOpenInNewTab:!1,deduplicateTabs:!1,ephemeralTabs:!1,smartNavigation:!0,navigationStrategy:"obsidian-plus",autoCloseEphemeralTabs:!0,deduplicateSidebarTabs:!1,backgroundMode:!1};var Rg=e=>{let t=e;t.use={};for(let n of Object.keys(t.getState()))t.use[n]=()=>t(r=>r[n]);return t};var os=require("obsidian");function Og(e,t){e.children.splice(t,1),e.children.length===0?e.detach():e.selectTabIndex(Math.max(0,t-1)),e.recomputeChildrenDimensions()}function Pg(e,t,n=null){n===null?e.children.push(t):e.children.splice(n,0,t),t.setParent(e),e.selectTab(t),e.recomputeChildrenDimensions()}function Ag(e,t,n){if(!n||t===n)return null;let r=e.workspace.getLeafById(t),o=e.workspace.getLeafById(n);if(!r||!o)return null;let i=r.parent,l=o.parent,s=i.children.indexOf(r),a=l.children.indexOf(o),u=i.id===l.id&&si?"horizontal":"vertical",s=await e.workspace.duplicateLeaf(n,"split",l);return s.setPinned(!!n.getViewState().pinned),n.detach(),s}async function Mg(e){let n=e.workspace.getLeavesOfType(Je).first();if(!n)return;let r=await si(e,n.id);r&&r.parent.containerEl.addClass("is-hidden")}function xS(e){return!e.workspace.getLeavesOfType(Je).first()}function _g(e){xS(e)&&this.app.workspace.getLeftLeaf(!1).setViewState({type:Je,active:!0})}function zg(e){let t=e.workspace,n=t.getLeavesOfType(Je).first();if(!n)return!1;let r=n.getRoot();return r!==t.leftSplit&&r!==t.rightSplit}async function is(e){let t=e.workspace,n=t.getLeavesOfType(Je);if(n.length===0)return;let r=n[0],o=t.leftSplit;if(o instanceof os.WorkspaceSidedock){let i=o.children[0];$r(e,r.id,i)}else if(o instanceof os.WorkspaceMobileDrawer){let i=o.parent;$r(e,r.id,i)}}function Fg(e){localStorage.setItem("vt-show-active-tabs",e.toString())}function Vg(){return localStorage.getItem("vt-show-active-tabs")==="true"}var lc=(0,ls.createContext)(null),Jn=()=>{let e=(0,ls.useContext)(lc);if(!e)throw new Error("PluginContext not found");return e},Cn=()=>Jn().app,bS=Vr((e,t)=>({...li,plugin:null,loadSettings:async n=>{e({plugin:n}),await n.loadData();let r=n.settings;n.saveSettings(),e(r)},setSettings:n=>{let{plugin:r}=t();if(r){switch(typeof n){case"object":r.settings={...r.settings,...n};break;case"function":r.settings={...r.settings,...n(r.settings)};break}r.saveSettings(),r.updateViewStates(),e({...r.settings})}},toggleZenMode(){let{zenMode:n,showActiveTabs:r}=t();if(n){let o=Vg();t().setSettings({zenMode:!1,showActiveTabs:o})}else Fg(r),t().setSettings({zenMode:!0,showActiveTabs:!0})},updateEphemeralTabs(n){let{ephemeralTabs:r,autoCloseEphemeralTabs:o}=t();n.workspace.trigger("vertical-tabs:ephemeral-tabs-update",r,o)},setTabNavigationStrategy(n,r){let o=r;switch(o){case"obsidian":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!1,deduplicateSidebarTabs:!1,ephemeralTabs:!1,autoCloseEphemeralTabs:!1,smartNavigation:!1});break;case"obsidian-plus":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!1,deduplicateSidebarTabs:!1,ephemeralTabs:!1,autoCloseEphemeralTabs:!1,smartNavigation:!0});break;case"ide":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!0,deduplicateSidebarTabs:!1,ephemeralTabs:!0,autoCloseEphemeralTabs:!0,smartNavigation:!0});break;case"explorer":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!1,deduplicateSidebarTabs:!1,ephemeralTabs:!0,autoCloseEphemeralTabs:!0,smartNavigation:!1});break;case"notebook":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!0,deduplicateSidebarTabs:!1,ephemeralTabs:!1,autoCloseEphemeralTabs:!1,smartNavigation:!0});break;case"prefer-new-tab":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!0,deduplicateTabs:!1,deduplicateSidebarTabs:!1,ephemeralTabs:!1,autoCloseEphemeralTabs:!1,smartNavigation:!1});break;case"custom":t().setSettings({navigationStrategy:o,alwaysOpenInNewTab:!1,deduplicateTabs:!1,deduplicateSidebarTabs:!1,ephemeralTabs:!1,autoCloseEphemeralTabs:!1,smartNavigation:!0});break}let{deduplicateTabs:i,ephemeralTabs:l,autoCloseEphemeralTabs:s}=t();i&&n.workspace.trigger("vertical-tabs:deduplicate-tabs"),l?n.workspace.trigger("vertical-tabs:ephemeral-tabs-init",s):n.workspace.trigger("vertical-tabs:ephemeral-tabs-deinit")},toggleBackgroundMode(n,r){let{backgroundMode:o,showActiveTabs:i}=t();if(r!=null?r:!o)Fg(i),t().setSettings({backgroundMode:!0,showActiveTabs:!1,zenMode:!1}),Mg(n);else{let s=Vg();t().setSettings({backgroundMode:!1,showActiveTabs:s}),is(n)}}})),P=Rg(bS);var ci=require("obsidian");function Bg(e,t){let n=t.parent;n.children=[t],n.selectTab(t),e.workspace.onLayoutChange()}function Wg(e,t){let n=t.parent,r=n.children.indexOf(t);n.children=n.children.slice(r),n.selectTab(t),e.workspace.onLayoutChange()}function Hg(e,t){let n=t.parent,r=n.children.indexOf(t);n.children=n.children.slice(0,r+1),n.selectTab(t),e.workspace.onLayoutChange()}var as=require("obsidian");var jg=require("obsidian");function Ug(){return document.body.classList.contains("is-hidden-frameless")?1:document.body.classList.contains("is-frameless")?3:2}function Gg(){return document.body.classList.contains("show-ribbon")}function $g(e){return(e==null?void 0:e.querySelector(".titlebar-button.mod-minimize"))===null&&(e==null?void 0:e.querySelector(".titlebar-button.mod-maximize"))===null&&(e==null?void 0:e.querySelector(".titlebar-button.mod-close"))===null}function Qg(){let e=document.querySelector(".titlebar .titlebar-button-container.mod-left");return!$g(e)||jg.Platform.isMacOS}function Kg(){let e=document.querySelector(".titlebar .titlebar-button-container.mod-right");return!$g(e)}function ss(e){var t;return(t=e==null?void 0:e.querySelector(".workspace-tab-header-container"))!=null?t:null}function Yg(e){let t=ss(e);return(t==null?void 0:t.querySelector(".sidebar-toggle-button.mod-left"))!==null}function Xg(e){let t=ss(e);return(t==null?void 0:t.querySelector(".sidebar-toggle-button.mod-right"))!==null}function Zg(e,t){let n=ss(e);n&&t&&n.prepend(t)}function qg(e,t){let n=ss(e);n&&t&&n.appendChild(t)}var ai="Grouped tabs",th=()=>ai,Jg=()=>new $t(th),NS=()=>new $t(()=>null),LS=()=>new $t(()=>null),IS=e=>{let t=Array.from(e.entries());localStorage.setItem("view-state",JSON.stringify(t))},DS=()=>{let e=localStorage.getItem("view-state");if(!e)return null;let t=JSON.parse(e);return new $t(th,t)},RS=e=>{localStorage.setItem("hidden-groups",JSON.stringify(e))},OS=()=>{let e=localStorage.getItem("hidden-groups");return e?JSON.parse(e):[]},sc=e=>{localStorage.setItem("collapsed-groups",JSON.stringify(e))},PS=()=>{let e=localStorage.getItem("collapsed-groups");return e?JSON.parse(e):[]},AS=e=>{localStorage.setItem("nonephemeral-tabs",JSON.stringify(Array.from(e)))},MS=()=>{let e=localStorage.getItem("nonephemeral-tabs");return e?JSON.parse(e):[]},_S=()=>{localStorage.removeItem("nonephemeral-tabs")},eh=e=>{let t=e.filter(u=>u.clientHeight>0&&u.clientWidth>0),n=t.map(u=>u.getBoundingClientRect().x),r=t.map(u=>u.getBoundingClientRect().y),o=Math.min(...n),i=Math.min(...r),l=Math.max(...n),s=t.find(u=>u.getBoundingClientRect().x===o&&u.getBoundingClientRect().y===i),a=t.find(u=>u.getBoundingClientRect().x===l&&u.getBoundingClientRect().y===i);return{topLeftContainer:s,topRightContainer:a}},oe=Vr()((e,t)=>{var n;return{groupTitles:(n=DS())!=null?n:Jg(),hiddenGroups:OS(),collapsedGroups:PS(),nonEphemeralTabs:MS(),latestActiveLeaf:null,pinningEvents:NS(),ephermalToggleEvents:LS(),globalCollapseState:!1,leftButtonClone:null,rightButtonClone:null,topLeftContainer:null,topRightContainer:null,topRightMainContainer:null,clear:()=>e({groupTitles:Jg()}),setGroupTitle:(r,o)=>e(i=>(i.groupTitles.set(r,o),IS(i.groupTitles),i)),toggleHiddenGroup:(r,o)=>{e(o?i=>({hiddenGroups:[...i.hiddenGroups,r]}):i=>({hiddenGroups:i.hiddenGroups.filter(l=>l!==r)})),RS(t().hiddenGroups)},toggleCollapsedGroup:(r,o)=>{e(o?i=>({collapsedGroups:[...i.collapsedGroups,r]}):i=>({collapsedGroups:i.collapsedGroups.filter(l=>l!==r),globalCollapseState:!1})),sc(t().collapsedGroups)},rememberNonephemeralTab(r,o){let{nonEphemeralTabs:i}=t();if(i.contains(o))return;let l=i.filter(s=>r.workspace.getLeafById(s)!==null);e({nonEphemeralTabs:[...l,o]}),AS(t().nonEphemeralTabs)},forgetNonephemeralTabs(){_S(),e({nonEphemeralTabs:[]})},setLatestActiveLeaf(r){let o=t().latestActiveLeaf,i=r.app.workspace,l=i.getActiveViewOfType(as.ItemView);if(!l){t().lockFocus(r);return}let s=l.leaf;s.getRoot()===i.rootSplit?e({latestActiveLeaf:s}):t().lockFocus(r);let u=t().latestActiveLeaf;t().checkIfGroupChanged(i,o,u)},checkIfGroupChanged(r,o,i){o===null&&i===null||(o===null||i===null||o.parent===null||i.parent===null||o.parent.id!==i.parent.id)&&r.trigger("vertical-tabs:update-toggle")},lockFocus(r){if(!r.settings.zenMode)return;let o=r.app.workspace,i=t().latestActiveLeaf,l=(i==null?void 0:i.getRoot())===o.rootSplit;if(i&&l){t().lockFocusOnLeaf(r.app,i);return}let s=[];if(o.iterateRootLeaves(a=>{let u=a.parent;s.includes(u)||s.push(u)}),s.length>0){let a=s[0],u=a.children[a.currentTab];t().lockFocusOnLeaf(r.app,u);return}},lockFocusOnLeaf(r,o){t().resetFocusFlags();let i=o.parent;i.containerEl.toggleClass("vt-mod-active",!0),i.isStacked&&(i.setStacked(!1),i.setStacked(!0))},resetFocusFlags(){document.querySelectorAll(".vt-mod-active").forEach(r=>{r.classList.remove("vt-mod-active")})},cloneToggleButtons(r){let o=r.workspace,i=o.leftSidebarToggleButtonEl,l=o.rightSidebarToggleButtonEl,s=i.cloneNode(!0),a=l.cloneNode(!0),{leftSplit:u,rightSplit:f}=o,p=()=>u.toggle(),g=()=>f.toggle();s.classList.add("vt-mod-toggle"),a.classList.add("vt-mod-toggle"),s.addEventListener("click",p),a.addEventListener("click",g),e({leftButtonClone:s,rightButtonClone:a})},removeCloneButtons(){let{leftButtonClone:r,rightButtonClone:o}=t();r==null||r.remove(),o==null||o.remove()},insertCloneButtons(){if(!as.Platform.isDesktop)return;let r=Ug()===1;if(!Gg()||Qg()&&r){let{topLeftContainer:s,leftButtonClone:a}=t();Yg(s)||Zg(s,a)}let i=Kg()&&r?t().topRightMainContainer:t().topRightContainer,{rightButtonClone:l}=t();Xg(i)||qg(i,l)},updatePositionLabels:()=>{let r=Array.from(document.querySelectorAll(".workspace-tabs"));r.forEach(a=>{a.classList.remove("vt-mod-top-left-space","vt-mod-top-right-space")});let{topLeftContainer:o,topRightContainer:i}=eh(r);o==null||o.classList.add("vt-mod-top-left-space"),i==null||i.classList.add("vt-mod-top-right-space");let l=r.filter(a=>{var u;return!((u=a.parentElement)!=null&&u.hasClass("mod-right-split"))}),s=eh(l).topRightContainer;e({topLeftContainer:o,topRightContainer:i,topRightMainContainer:s})},refreshToggleButtons(r){t().removeCloneButtons(),t().updatePositionLabels();let{leftButtonClone:o,rightButtonClone:i}=t();(!o||!i)&&t().cloneToggleButtons(r),t().insertCloneButtons()},bindPinningEvent(r,o){let{pinningEvents:i}=t();if(i.get(r.id))return;let s=r.on("pinned-change",o);i.set(r.id,s),e({pinningEvents:i})},unbindPinningEvent(r){let{pinningEvents:o}=t(),i=o.get(r.id);i&&(r.offref(i),o.set(r.id,null),e({pinningEvents:o}))},bindEphemeralToggleEvent(r,o,i){let{ephermalToggleEvents:l}=t();if(l.get(o.id))return;let a=o.on("ephemeral-toggle",u=>{u||t().rememberNonephemeralTab(r,o.id),i(u)});l.set(o.id,a),e({ephermalToggleEvents:l})},unbindEphemeralToggleEvent(r){let{ephermalToggleEvents:o}=t(),i=o.get(r.id);i&&(r.offref(i),o.set(r.id,null),e({ephermalToggleEvents:o}))},setAllCollapsed(){let r=Ae.getState().groupIDs;e({globalCollapseState:!0,collapsedGroups:r}),sc(r)},setAllExpanded(){e({globalCollapseState:!1,collapsedGroups:[]}),sc([])},uncollapseActiveGroup(r){let{latestActiveLeaf:o}=t();if(!o)return;let i=o.parent;if(!i)return;let l=bm(r,i);l==="left-sidebar"||l==="right-sidebar"||i.id&&(t().toggleCollapsedGroup(i.id,!1),e({globalCollapseState:!1}))},executeSmartNavigation(r,o,i){let l=o.getRoot();if(l===r.workspace.leftSplit||l===r.workspace.rightSplit)return!1;let{latestActiveLeaf:s}=t();if(!s)return i();let a=s.parent,u=o.parent;return a===null||u===null?i():a.id!==u.id?!1:i()}}});function zS(e){let t=e.lastIndexOf(".");return t===-1?e:e.slice(0,t)}function er(e,t){let n=e.workspace,r=t.getViewState(),o=t.getDisplayText();if(r.type!=="markdown")return o;let i=r.state;if(!i||!i.file)return o;let l=i.file,s=!1;return n.getLeavesOfType("markdown").forEach(a=>{var u;a.id!==t.id&&((u=a.getViewState().state)==null?void 0:u.file)!==l&&a.getDisplayText()===o&&(s=!0)}),s?zS(l):o}var ac=require("obsidian");function nh(e){return(0,ac.requireApiVersion)("1.7.2")?e.isDeferred:!1}async function et(e){(0,ac.requireApiVersion)("1.7.2")&&await e.loadIfDeferred()}function oh(e){return{type:"group",ctime:Date.now(),items:[],title:e||"Untitled group",isCreatedByVT:!0}}function ih(e){return"dataEngine"in e}function FS(e,t){return{type:"graph",ctime:Date.now(),title:t||"Untitled graph",options:e}}function VS(e){return"getQuery"in e}function BS(e,t){return{type:"search",ctime:Date.now(),title:t||e,query:e}}function lh(e){return"file"in e||"file"in e.getState()}function uc(e,t,n){return{type:"file",ctime:Date.now(),title:t||e.basename,path:e.path,subpath:n}}function WS(e){return"url"in e}function HS(e,t){return{type:"url",ctime:Date.now(),title:t||"",url:e}}function cc(e,t,n){if(ih(t))return FS(t.dataEngine.getOptions(),n);if(VS(t))return BS(t.getQuery(),n);if(lh(t)){if(t.file)return uc(t.file,n);{let r=t.getState().file;if(!r)return null;let o=e.vault.getFileByPath(r);return o?uc(o,n):null}}else return WS(t)?HS(t.url,n):null}function jS(e){return!!e&&"type"in e&&e.type==="markdown"}function rh(e,t){if(!jS(t.state))return null;let n=t.state,r=e.vault.getFileByPath(n.state.file);return r?uc(r,t.state.title):null}function dc(e){let t=e.internalPlugins.plugins.bookmarks;t.enabled&&setTimeout(()=>{t.instance.saveData()},1e3)}async function fc(e,t,n){let r=e.internalPlugins.plugins.bookmarks;if(!r.enabled)return;let o=oh();o.title=n;for(let i of t.children){await et(i);let l=i.view,s=er(e,i),a=cc(e,l,s);a&&o.items.push(a)}r.instance.addItem(o),dc(e)}async function pc(e,t,n){let r=e.internalPlugins.plugins.bookmarks;if(!r.enabled)return;await et(t);let o=cc(e,t.view,n);o&&r.instance.addItem(o),dc(e)}async function sh(e,t){let n=e.internalPlugins.plugins.bookmarks;if(!n.enabled)return;await et(t);let r=oh(),o=er(e,t);r.title=`History: ${o}`;let{backHistory:i,forwardHistory:l}=t.history;i.forEach(a=>{let u=rh(e,a);u&&r.items.push(u)});let s=cc(e,t.view,`${o} (last viewed)`);s&&r.items.push(s),l.forEach(a=>{let u=rh(e,a);u&&r.items.push(u)}),n.instance.addItem(r),dc(e)}async function ah(e,t){let n=e.internalPlugins.plugins.bookmarks;if(n.enabled)return await uh(n.instance.items,t)}async function uh(e,t,n){let r=e.filter(o=>o.type==="group");if(r.length>0){let o=[];for(let i of r){if(!i.isCreatedByVT)continue;let l=await uh(i.items,t,i.title);l&&o.push(l)}if(o.length>0)return o[0]}else if(await GS(e,t))return n}function US(e){return e.file?e.file.path:e.getState().file}async function GS(e,t){if(e.length===0||e.length!==t.children.length)return!1;for(let n of e)if(n.type==="file"){if(!t.children.find(async o=>{await et(o);let i=n,l=US(o.view);return lh(o.view)&&l===i.path}))return!1}else if(n.type==="graph"){if(!t.children.find(async o=>(await et(o),ih(o.view))))return!1}else return!1;return!0}var us=A(ie()),ch=e=>{let{minDistance:t,callback:n}=e,[r,o]=(0,us.useState)(0),[i,l]=(0,us.useState)(0),[s,a]=(0,us.useState)(!1);return{listeners:{onTouchStart:h=>{o(h.touches[0].clientX),l(h.touches[0].clientY),a(!1)},onTouchMove:h=>{let S=h.touches[0].clientX-r,v=h.touches[0].clientY-i;Math.sqrt(S*S+v*v)>t&&a(!0)},onTouchEnd:()=>{n(s)}}}};var dh=.1,fh=.01,$S=.5,QS=3,KS=(e,t,n)=>Math.min(Math.max(e,t),n);function ph(e){let t=e.getEphemeralState().zoom;return typeof t=="number"?t:1}function mc(e,t){if(t<=0)return;let n=e.getEphemeralState();e.setEphemeralState({...n,zoom:KS(t,$S,QS)})}function cs(e){let t=ph(e)+dh;mc(e,t)}function ds(e){let t=ph(e)-dh;mc(e,t)}function fs(e){mc(e,1)}var wh=require("obsidian");function gc(e){return e.plugins.enabledPlugins.has("obsidian-hover-editor")}function mh(e){return gc(e)?e.plugins.plugins["obsidian-hover-editor"]:null}function YS(e){let t=[],n=mh(e);return n&&n.activePopovers.forEach(r=>{r.rootSplit&&e.workspace.iterateLeaves(r.rootSplit,o=>{t.push(o)})}),t}function gh(e){return YS(e).map(t=>t.id)}function hh(e,t){let n=mh(e);n&&n.activePopovers.forEach(r=>{r.rootSplit&&e.workspace.iterateLeaves(r.rootSplit,t)})}function XS(e,t){let n=e.workspace.getLeafById(t);n&&we(n)}function ZS(e,t){t.forEach(n=>{XS(e,n)})}function we(e){var t;e.isEphemeral=!1,(t=e.tabHeaderEl)==null||t.toggleClass("vt-non-ephemeral",!0),e.trigger("ephemeral-toggle",!1)}function Sh(e){e instanceof wh.MarkdownView&&we(e.leaf)}function qS(e){var t;e.isEphemeral===void 0&&(e.isEphemeral=!0,(t=e.tabHeaderEl)==null||t.toggleClass("vt-non-ephemeral",!1),e.trigger("ephemeral-toggle",!0),e.tabHeaderEl&&(e.tabHeaderEl.ondblclick=n=>{we(e),n.stopPropagation()}))}function JS(e){e.isEphemeral=void 0,e.tabHeaderEl&&(e.tabHeaderEl.ondblclick=null)}function ps(e){Qt(e,t=>{qS(t)}),Lm(e,t=>{we(t)}),hh(e,t=>{we(t)})}function hc(e){Qt(e,t=>{JS(t)})}function vh(e){let t=new Set;Qt(e,n=>{let r=n.parent,o=r.id;if(t.has(o))return;t.add(o);let i=r.children,l=i.map(a=>a.activeTime),s=Math.max(...l);s>0?i.forEach(a=>{a.activeTime!==s&&we(a)}):i.slice(0,-1).forEach(a=>{we(a)})})}function vc(e){let{ephemeralTabs:t,autoCloseEphemeralTabs:n}=P.getState();if(!t)return;let r=oe.getState().nonEphemeralTabs;r.length>0?(n&&vh(e),ZS(e,r)):vh(e),ps(e)}function yh(e,t){let n=e.reduce((r,o)=>[...r,...o.history.backHistory,o.getHistoryState(),...o.history.forwardHistory.slice().reverse()],[]);t.history.backHistory=[...n,...t.history.backHistory]}function e1(e){let t=e.children.filter(i=>i.isEphemeral);if(t.length<=1)return;let n=t.map(i=>i.activeTime),r=Math.min(...n);if(Math.max(...n)<=0&&r<=0){let i=t.pop();if(!i)return;yh(t,i),t.forEach(l=>l.detach())}else{let i=t.sort((s,a)=>s.activeTime<=0?1:a.activeTime<=0?-1:s.activeTime===a.activeTime?e.children.indexOf(s)-e.children.indexOf(a):s.activeTime-a.activeTime),l=i.pop();if(!l)return;yh(i,l),i.forEach(s=>s.detach())}}function yc(e){let t=new Set;Qt(e,n=>t.add(n.parent)),t.forEach(n=>e1(n))}var Qr=A(Z()),Th=({leaf:e})=>{var R,Se;let n=Jn().app,r=n.workspace,{bindPinningEvent:o,bindEphemeralToggleEvent:i,setGroupTitle:l,lockFocusOnLeaf:s,toggleHiddenGroup:a}=oe(),[u,f]=(0,ui.useState)((R=e.getViewState().pinned)!=null?R:!1),[p,g]=(0,ui.useState)(!!e.isEphemeral),{refresh:h,sort:S}=Ae(),v=oe(L=>L.latestActiveLeaf),b=P(L=>L.enableTabZoom),d=P(L=>L.alwaysOpenInNewTab),c=L=>{f(L),L&&e.isEphemeral&&we(e)};(0,ui.useEffect)(()=>{o(e,c),i(n,e,L=>{g(L)})},[e.id]);let m=()=>{var L;e.togglePinned(),c((L=e.getViewState().pinned)!=null?L:!1),S()},y=()=>{e.setPinned(!1),c(!1),S()},k=()=>{e.getViewState().pinned||e.detach()},x=L=>{L.button===1&&k()},T=()=>{r.setActiveLeaf(e,{focus:!0}),r.onLayoutChange(),a(e.parent.id,!1),s(n,e)},E=L=>{L.altKey?k():T()},N=new ci.Menu;if(N.addItem(L=>{L.setSection("bookmark").setTitle("Bookmark").onClick(()=>{pc(n,e,e.getDisplayText())})}),N.addItem(L=>{L.setSection("bookmark").setTitle("Bookmark and close").onClick(()=>{pc(n,e,e.getDisplayText()),e.detach()})}),N.addSeparator(),N.addItem(L=>{L.setSection("close").setTitle("Close").setDisabled(u).onClick(()=>e.detach())}),N.addItem(L=>{L.setSection("close").setTitle("Close Others").onClick(()=>{Bg(n,e),we(e)})}),N.addItem(L=>{L.setSection("close").setTitle("Close tabs to the top").onClick(()=>Wg(n,e))}),N.addItem(L=>{L.setSection("close").setTitle("Close tabs to the bottom").onClick(()=>Hg(n,e))}),N.addItem(L=>{L.setSection("close").setTitle("Close all").setDisabled(u).onClick(()=>e.parent.detach())}),N.addSeparator(),N.addItem(L=>{L.setSection("pin").setTitle(u?"Unpin":"Pin").onClick(m)}),N.addSeparator(),N.addItem(L=>{L.setSection("leaf").setTitle("Move to new window").onClick(()=>{r.duplicateLeaf(e,"window"),e.detach()})}),N.addItem(L=>{L.setSection("leaf").setTitle("Split right").onClick(()=>r.duplicateLeaf(e,"split","vertical"))}),N.addItem(L=>{L.setSection("leaf").setTitle("Split down").onClick(()=>r.duplicateLeaf(e,"split","horizontal"))}),N.addItem(L=>{L.setSection("leaf").setTitle("Open in new window").onClick(()=>{r.duplicateLeaf(e,"window")})}),e.view.navigation&&!d){N.addSeparator(),N.addItem(j=>{j.setSection("history").setTitle("Back").setDisabled(e.history.backHistory.length===0).onClick(()=>e.history.back())}),N.addItem(j=>{j.setSection("history").setTitle("Forward").setDisabled(e.history.forwardHistory.length===0).onClick(()=>e.history.forward())}),N.addItem(j=>{j.setSection("history").setTitle("Browse history");let z=j.setSubmenu(),{backHistory:_e,forwardHistory:dt}=e.history,{length:Pt}=_e;_e.forEach((ke,ne)=>{z.addItem(q=>{q.setTitle(ke.title).setChecked(!1),q.onClick(()=>e.history.go(ne-Pt))})}),z.addItem(ke=>{ke.setTitle(er(n,e)).setChecked(!0)}),dt.slice().reverse().forEach((ke,ne)=>{z.addItem(q=>{q.setTitle(ke.title).setChecked(!1),q.onClick(()=>e.history.go(ne+1))})})});let L=e.history.backHistory.length+e.history.forwardHistory.length;N.addItem(j=>{j.setSection("history").setTitle("Bookmark history").setDisabled(L===0).onClick(()=>sh(n,e))}),N.addItem(j=>{j.setSection("history").setTitle("Open history in new group").setDisabled(L===0).onClick(async()=>{let z=await r.duplicateLeaf(e,"split");et(z),z.history.backHistory=[],z.history.forwardHistory=[];let _e=z.parent,{backHistory:dt,forwardHistory:Pt}=e.history,ke=0;for(let q of dt){let Ie=r.createLeafInParent(_e,ke);Ie.setViewState(q.state),await et(Ie),Ie.setEphemeralState(q.eState),ke+=1}ke+=1;for(let q of Pt){let Ie=r.createLeafInParent(_e,ke);Ie.setViewState(q.state),await et(Ie),Ie.setEphemeralState(q.eState),ke+=1}let ne=er(n,e);l(_e.id,`History: ${ne}`),r.setActiveLeaf(z,{focus:!0}),s(n,z)})}),N.addItem(j=>{j.setSection("history").setTitle("Clear history").setDisabled(L===0).onClick(()=>{e.history.backHistory=[],e.history.forwardHistory=[],setTimeout(()=>h(n),jn)})})}nh(e)&&!d&&(N.addSeparator(),N.addItem(L=>{L.setSection("history").setTitle("(Inactive)").setDisabled(!0)}),N.addItem(L=>{L.setSection("history").setTitle("Load history").onClick(async()=>await et(e))})),b&&(N.addSeparator(),N.addItem(L=>{L.setSection("zoom").setTitle("Zoom");let j=L.setSubmenu();j.addItem(z=>{z.setTitle("Zoom in").onClick(()=>{cs(e.view)})}),j.addItem(z=>{z.setTitle("Zoom out").onClick(()=>{ds(e.view)})}),j.addItem(z=>{z.setTitle("Reset zoom").onClick(()=>{fs(e.view)})})})),ci.Platform.isDesktop&&(N.addSeparator(),N.addItem(L=>{L.setSection("more").setTitle("More options");let j=L.setSubmenu();e.view.onPaneMenu(j,"more-options");let z=["open","find","pane"];j.items=j.items.filter(_e=>_e.section===void 0||!z.includes(_e.section))}));let D=(0,Qr.jsxs)(kh.Fragment,{children:[u&&(0,Qr.jsx)(Me,{icon:"pin",action:"unpin",tooltip:"Unpin",onClick:y}),!u&&ci.Platform.isDesktop&&(0,Qr.jsx)(Me,{icon:"x",action:"close",tooltip:"Close tab",disabled:u,onClick:k})]}),O={title:er(n,e),icon:e.getIcon(),isActive:(Se=e.tabHeaderEl)==null?void 0:Se.classList.contains("is-active")},{listeners:ce}=ch({minDistance:10,callback:L=>{L||T()}});return(0,Qr.jsx)(En,{id:e.id,isTab:!0,isEphemeralTab:p&&!u,isPinned:u,isHighlighted:(v==null?void 0:v.id)===e.id,...O,...ce,toolbar:D,onClick:E,onAuxClick:x,onDoubleClick:()=>we(e),onContextMenu:L=>N.showAtMouseEvent(L.nativeEvent),dataType:e.getViewState().type,dataId:e.id})};var xn=A(ie());var Eh=require("obsidian");var tr=A(Z()),t1={"left-sidebar":"Left sidebar","right-sidebar":"Right sidebar","root-split":ai},Ch=({type:e,children:t,group:n})=>{var ce;let r=Cn(),o=r.workspace,i=e==="left-sidebar"||e==="right-sidebar",{hasOnlyOneGroup:l}=Ae(),s=P(R=>R.hideSidebars),a=l()&&s&&!i&&!!n,{toggleCollapsedGroup:u}=oe(),f=oe(R=>{if(n===null)return!1;let{collapsedGroups:Se}=R;return Se.includes(n.id)||i&&Se.includes(e)}),{groupTitles:p,setGroupTitle:g,toggleHiddenGroup:h}=oe(),S=oe(R=>n?R.hiddenGroups.includes(n.id):!1),[v,b]=(0,xn.useState)(!1),d=()=>{if(n){let R=i?e:n.id;u(R,!f)}},c=()=>{i||(n&&h(n.id,!S),o.trigger("vertical-tabs:update-toggle"))};(0,xn.useEffect)(()=>{n&&n.containerEl.toggleClass("is-hidden",S)},[S]);let m=i||n===null?t1[e]:p.get(n.id),[y,k]=(0,xn.useState)(m),x=()=>{let R=y.trim();return R===""&&(R=ai),R},T=()=>{n&&v&&g(n.id,x()),b(!v)};(0,xn.useEffect)(()=>{setTimeout(async()=>{if(!n)return;let R=await ah(r,n);R&&x()===ai&&(k(R),g(n.id,R))},jn)});let E=(0,tr.jsx)("input",{autoFocus:!0,value:y,onChange:R=>k(R.target.value),onClick:R=>R.stopPropagation(),onKeyDown:R=>{R.key==="Enter"&&T()},onFocus:R=>R.target.select(),onBlur:T}),N={icon:"right-triangle",isCollapsed:f&&!a,isSidebar:i,isSingleGroup:a},D=(0,tr.jsxs)(xn.Fragment,{children:[!i&&!v&&(0,tr.jsx)(Me,{icon:"pencil",action:"edit",tooltip:"Edit",onClick:T}),!i&&(0,tr.jsx)(Me,{icon:S?"eye":"eye-off",action:"toggle-hidden",tooltip:S?"Show":"Hide",onClick:c})]}),O=new Eh.Menu;return O.addItem(R=>{R.setTitle(S?"Show":"Hide").onClick(c)}),O.addItem(R=>{R.setTitle("Rename").onClick(T)}),O.addSeparator(),O.addItem(R=>{R.setTitle("Bookmark all").onClick(()=>{n&&fc(r,n,x())})}),O.addItem(R=>{R.setTitle("Bookmark and close all").onClick(async()=>{n&&(await fc(r,n,x()),n.detach())})}),O.addItem(R=>{R.setTitle("Close all").onClick(()=>n==null?void 0:n.detach())}),(0,tr.jsx)(En,{id:i?null:(ce=n==null?void 0:n.id)!=null?ce:null,isTab:!1,title:v?E:m,isRenaming:v,...N,onClick:d,onContextMenu:R=>O.showAtMouseEvent(R.nativeEvent),dataType:e,toolbar:D,children:t})};var wc=A(ie());var Ih=A(Bl());var bh=A(Z()),xh=({groupID:e})=>{let t=Cn(),n=t.workspace,{content:r}=Ae(),o=r.get(e).group,i=()=>{if(!o)return;let l=n.getLeaf("split");$r(t,l.id,o),n.setActiveLeaf(l,{focus:!0}),n.onLayoutChange()};return(0,bh.jsx)(En,{title:"New tab",icon:"plus",id:`slot-${e}`,isTab:!0,isTabSlot:!0,onClick:i})};var Lh=A(Z()),Nh=()=>{let e=Cn(),t=e.workspace,{lockFocusOnLeaf:n}=oe();return(0,Lh.jsx)(En,{title:"New group",icon:"plus",id:"slot-new",isTab:!1,isGroupSlot:!0,onClick:async()=>{let o=t.getLeaf(!0),i=await si(e,o.id);i&&(t.setActiveLeaf(i,{focus:!0}),t.onLayoutChange(),n(e,i))}})};var ct=A(Z()),Dh=()=>{let{groupIDs:e,content:t,swapGroup:n,moveGroupToEnd:r}=Ae(),o=Cn(),i=Zm(Xm(Gr,{activationConstraint:{distance:8}})),[l,s]=(0,wc.useState)(!1),[a,u]=(0,wc.useState)(!1),f=d=>{s(!0);let{active:c}=d,m=c.data.current.isTab;u(!m)},p=async d=>{s(!1),u(!1);let{active:c,over:m}=d;if(!m)return;let y=c.id,k=m.id,x=c.data.current.isTab,T=m.data.current.isTab;if(x){let E=null;if(T)E=Ag(o,y,k);else{let N=k.startsWith("slot")?k.slice(5):k;if(N==="new")E=await si(o,y);else{let D=t.get(N).group;D&&(E=$r(o,y,D))}}E&&P.getState().ephemeralTabs&&we(E)}else if(T){let E=o.workspace.getLeafById(k);if(!E)return;n(y,E.parent.id)}else k==="slot-new"?r(y):n(y,k)},g={"obsidian-vertical-tabs-container":!0,"is-dragging-group":a},h={"is-dragging":l},S=()=>[...e,"slot-new"],v=d=>[...t.get(d).leafIDs,`slot-${d}`],b=d=>t.get(d);return(0,ct.jsx)("div",{className:Rt(g),children:(0,ct.jsx)("div",{className:Rt(h),children:(0,ct.jsxs)(gg,{sensors:i,collisionDetection:Jm,onDragStart:f,onDragEnd:p,children:[(0,ct.jsxs)(ic,{items:S(),children:[e.map(d=>(0,ct.jsx)(Ch,{type:b(d).groupType,group:b(d).group,children:(0,ct.jsxs)(ic,{items:v(d),children:[b(d).leaves.map(c=>(0,ct.jsx)(Th,{leaf:c},c.id)),(0,ct.jsx)(xh,{groupID:d})]})},d)),(0,ct.jsx)(Nh,{})]}),(0,Ih.createPortal)((0,ct.jsx)(yg,{}),document.body)]})})})};var Rh=require("obsidian");var Ot=A(Z()),Oh=()=>{let e=Jn(),{setSettings:t}=P(),n=P.use.showActiveTabs(),r=P.use.hideSidebars(),o=P.use.zenMode(),i=P.use.toggleZenMode(),l=Ae(d=>d.sortStrategy),{setSortStrategy:s}=Ae(),{lockFocus:a,setAllCollapsed:u,setAllExpanded:f}=oe(),p=oe(d=>d.globalCollapseState),{uncollapseActiveGroup:g}=oe(),h=()=>t({showActiveTabs:!n}),S=()=>t({hideSidebars:!r}),v=()=>{i(),a(e),e.app.workspace.trigger("vertical-tabs:update-toggle")},b=new Rh.Menu;return b.addItem(d=>{d.setTitle("Disable").onClick(()=>s(null))}),b.addItem(d=>{d.setTitle("Title name (A to Z)").onClick(()=>s(Ne.titleAToZ)).setChecked(l===Ne.titleAToZ)}),b.addItem(d=>{d.setTitle("Title name (Z to A)").onClick(()=>s(Ne.titleZToA)).setChecked(l===Ne.titleZToA)}),b.addSeparator(),b.addItem(d=>{d.setTitle("Pinned at top").onClick(()=>s(Ne.pinnedAtTop)).setChecked(l===Ne.pinnedAtTop)}),b.addItem(d=>{d.setTitle("Pinned at bottom").onClick(()=>s(Ne.pinnedAtBottom)).setChecked(l===Ne.pinnedAtBottom)}),b.addSeparator(),b.addItem(d=>{d.setTitle("Recent on top").onClick(()=>s(Ne.recentOnTop)).setChecked(l===Ne.recentOnTop)}),b.addItem(d=>{d.setTitle("Recent on bottom").onClick(()=>s(Ne.recentOnBottom)).setChecked(l===Ne.recentOnBottom)}),(0,Ot.jsx)("div",{className:"nav-header obsidian-vertical-tabs-toolbar",children:(0,Ot.jsxs)("div",{className:"nav-buttons-container",children:[(0,Ot.jsx)(Me,{icon:"app-window",action:"toggle-tab",tooltip:"Show active tabs only",onClick:h,isActive:n,isNavAction:!0}),(0,Ot.jsx)(Me,{icon:"panel-left",action:"toggle-sidebar",tooltip:"Hide sidebars",onClick:S,isActive:r,isNavAction:!0}),(0,Ot.jsx)(Me,{icon:"crosshair",action:"reveal-tab",tooltip:"Reveal active tab",onClick:()=>g(e.app),isNavAction:!0}),(0,Ot.jsx)(Me,{icon:"arrow-up-narrow-wide",action:"sort-tabs",tooltip:"Sort tabs",onClick:d=>b.showAtMouseEvent(d.nativeEvent),isActive:l!==null,isNavAction:!0}),(0,Ot.jsx)(Me,{icon:"focus",action:"zen-mode",tooltip:"Zen mode",onClick:v,isActive:o,isNavAction:!0}),(0,Ot.jsx)(Me,{icon:p?"chevrons-up-down":"chevrons-down-up",action:"global-collapse",tooltip:p?"Expand all":"Collapse all",onClick:()=>p?f():u(),isNavAction:!0})]})})};var Mh=A(ie());var Kr=require("obsidian");function Sc(e){let n=e.workspace.getLeavesOfType(Je).first();return n?n.isVisible():!1}var bn=require("obsidian");var n1=new Set(["file-explorer","search","bookmarks","tag","backlink","outgoing-link","outline","file-properties","sync","all-properties"]);function r1(e,t=!1,n){t?e.workspace.iterateAllLeaves(n):Qt(e,n)}function Ph(e,t,n=!0){if(!t)return null;let r=[],o=P.getState().deduplicateSidebarTabs,i=gh(e);r1(e,o,u=>{var p;if(i.includes(u.id))return;let f=u.view.getViewType();n1.has(f)||(u.view instanceof bn.FileView&&u.view.file===t||((p=u.getViewState().state)==null?void 0:p.file)===t.path)&&r.push(u)});let l=r.sort((u,f)=>f.activeTime-u.activeTime),s=l.filter(u=>u.activeTime>0).last(),a=l.pop();if(!a)return null;if(s&&s.id!=a.id){s.isEphemeral||we(a);let{backHistory:u,forwardHistory:f}=s.history;a.history.backHistory=u,a.history.forwardHistory=f}return l.forEach(u=>u.detach()),et(a),n&&!gc(e)?(e.workspace.setActiveLeaf(a,{focus:!1}),a):null}function Ah(e){let t=[];e.workspace.iterateAllLeaves(o=>{var l;let i=(l=o.getViewState().state)==null?void 0:l.file;if(o.view instanceof bn.FileView){let s=o.view.file;s instanceof bn.TFile&&t.push(s)}else if(i){let s=e.vault.getAbstractFileByPath(i);s instanceof bn.TFile&&t.push(s)}});let n=new Set(t),r=e.workspace.getActiveFile();return r instanceof bn.TFile&&n.delete(r),n.forEach(o=>Ph(e,o,!1)),r instanceof bn.TFile?Ph(e,r,!0):null}var di=A(Z()),_h=()=>{let e=Jn(),t=e.app,{refresh:n,sort:r}=Ae(),{setLatestActiveLeaf:o,refreshToggleButtons:i,lockFocus:l,lockFocusOnLeaf:s,forgetNonephemeralTabs:a,uncollapseActiveGroup:u}=oe(),{loadSettings:f,toggleZenMode:p,updateEphemeralTabs:g}=P(),h=()=>{o(e),_g(t),zg(t)&&is(t),P.getState().deduplicateTabs&&t.workspace.trigger("vertical-tabs:deduplicate-tabs"),setTimeout(()=>{g(t),Sc(t)&&(n(t),r())},jn)},S=()=>{setTimeout(()=>{i(t)},jn)},v=()=>{P.getState().autoUncollapseGroup&&Sc(t)&&u(t)};return(0,Mh.useEffect)(()=>{let d=t.workspace;f(e).then(()=>vc(t)),h(),e.registerEvent(d.on("layout-change",h)),e.registerEvent(d.on("active-leaf-change",h)),e.registerEvent(d.on("active-leaf-change",v)),e.registerEvent(d.on("resize",(0,Kr.debounce)(S))),e.registerEvent(d.on("vertical-tabs:update-toggle",S)),e.registerEvent(d.on("vertical-tabs:ephemeral-tabs-init",c=>{vc(t),ps(t),c&&yc(t)})),e.registerEvent(d.on("vertical-tabs:ephemeral-tabs-deinit",()=>{a(),hc(t)})),e.registerEvent(d.on("vertical-tabs:ephemeral-tabs-update",(c,m)=>{c?(ps(t),m&&yc(t)):hc(t)})),e.registerEvent(d.on("editor-change",(c,m)=>{P.getState().ephemeralTabs&&Sh(m)})),e.registerEvent(d.on("vertical-tabs:deduplicate-tabs",()=>{let c=Ah(t);c&&s(t,c)})),e.addCommand({id:"toggle-zen-mode",name:"Toggle zen mode",callback:()=>{p(),l(e),d.trigger("vertical-tabs:update-toggle")}}),e.addCommand({id:"zoom-in-current-tab",name:"Zoom in current tab",callback:()=>{let c=d.getActiveViewOfType(Kr.ItemView);c&&cs(c)}}),e.addCommand({id:"zoom-out-current-tab",name:"Zoom out current tab",callback:()=>{let c=d.getActiveViewOfType(Kr.ItemView);c&&ds(c)}}),e.addCommand({id:"zoom-reset-current-tab",name:"Reset zoom in current tab",callback:()=>{let c=d.getActiveViewOfType(Kr.ItemView);c&&fs(c)}}),e.addCommand({id:"set-all-tabs-nonephemeral",name:"Set all tabs non-ephemeral",callback:()=>{P.getState().ephemeralTabs&&Qt(t,c=>we(c))}})},[]),(0,di.jsxs)("div",{className:"vertical-tabs",onMouseDown:d=>{d.button===1&&d.preventDefault()},children:[(0,di.jsx)(Oh,{}),(0,di.jsx)(Dh,{})]})};var ms=A(Z()),Je="vertical-tabs",gs=class extends Fh.ItemView{constructor(n,r){var o,i;super(n);this.root=null;this.navigation=!1,this.plugin=r,this.icon="gallery-vertical",(o=this.leaf.containerEl)==null||o.addClass("obsidian-vertical-tabs-tab-content"),(i=this.leaf.tabHeaderEl)==null||i.addClass("obsidian-vertical-tabs-tab-header")}getViewType(){return Je}getDisplayText(){return"Vertical tabs"}async onOpen(){this.root=(0,Vh.createRoot)(this.containerEl),this.root.render((0,ms.jsx)(zh.StrictMode,{children:(0,ms.jsx)(lc.Provider,{value:this.plugin,children:(0,ms.jsx)(_h,{})})}))}async onClose(){var n;(n=this.root)==null||n.unmount()}};function hs(e,t){let n=Object.keys(t).map(r=>o1(e,r,t[r]));return n.length===1?n[0]:function(){n.forEach(r=>r())}}function o1(e,t,n){let r=e[t],o=e.hasOwnProperty(t),i=o?r:function(){return Object.getPrototypeOf(e)[t].apply(this,arguments)},l=n(i);return r&&Object.setPrototypeOf(l,r),Object.setPrototypeOf(s,l),e[t]=s,a;function s(...u){return l===i&&e[t]===s&&a(),l.apply(this,u)}function a(){e[t]===s&&(o?e[t]=i:delete e[t]),l!==i&&(l=i,Object.setPrototypeOf(s,r||Function))}}var ue=require("obsidian");var vs=class extends ue.PluginSettingTab{constructor(t,n){super(t,n),this.plugin=n}display(){let{containerEl:t}=this;if(t.empty(),this.plugin.settings.backgroundMode){let n=t.createDiv({cls:"vt-background-mode-warning"});n.appendText(` * Warning: Background mode is enabled. To see Vertical Tabs and access its core features, you must first `);let r=n.createEl("a",{text:"disable"});r.onclick=()=>{P.getState().toggleBackgroundMode(this.app,!1),this.display()},n.appendText(" it.")}switch(this.plugin.settings.backgroundMode||(new ue.Setting(t).setName("Show active tabs only").setDesc("Hide inactive horizontal tabs to make workspace cleaner.").addToggle(n=>{n.setValue(this.plugin.settings.showActiveTabs).onChange(async r=>{P.getState().setSettings({showActiveTabs:r})})}),new ue.Setting(t).setName("Auto uncollapse active group").setDesc("Automatically uncollapse the active groups when switching tabs.").addToggle(n=>{n.setValue(this.plugin.settings.autoUncollapseGroup).onChange(async r=>{P.getState().setSettings({autoUncollapseGroup:r})})}),new ue.Setting(t).setName("Hide sidebar tabs").setDesc("Don't show sidebar tabs in Vertical Tabs.").addToggle(n=>{n.setValue(this.plugin.settings.hideSidebars).onChange(async r=>{P.getState().setSettings({hideSidebars:r})})}),new ue.Setting(t).setName("Trim tab names").setDesc("Use ellipsis to fit tab names on a single line.").addToggle(n=>{n.setValue(this.plugin.settings.trimTabNames).onChange(async r=>{P.getState().setSettings({trimTabNames:r})})}),new ue.Setting(t).setName("Show more actions").setDesc("Show more control buttons in the toolbar.").addToggle(n=>{n.setValue(this.plugin.settings.showMoreButtons).onChange(async r=>{P.getState().setSettings({showMoreButtons:r})})})),new ue.Setting(t).setName("Enable tab zoom").setDesc("Enable per tab zooming.").addToggle(n=>{n.setValue(this.plugin.settings.enableTabZoom).onChange(async r=>{P.getState().setSettings({enableTabZoom:r})})}),new ue.Setting(t).setName("Tab navigation").setHeading(),new ue.Setting(t).setName("Navigation strategy").setDesc("Controls the navigation behavior when new notes are opened.").addDropdown(n=>n.addOptions(Ig).setValue(this.plugin.settings.navigationStrategy).onChange(async r=>{P.getState().setTabNavigationStrategy(this.app,r),this.display()})),this.plugin.settings.navigationStrategy){case"obsidian":t.createDiv({cls:"vt-navigation-description",text:` Use the default navigation strategy of Obsidian. When working with multiple tab groups, new tabs may appear in unexpected locations. `});break;case"obsidian-plus":t.createDiv({cls:"vt-navigation-description",text:` Use enhanced navigation strategy implemented by Vertical Tabs. New tabs will be opened in a consistent and intuitive manner. `});break;case"ide":t.createDiv({cls:"vt-navigation-description",text:` Use IDE-like navigation strategy. Recommended for users familiar with VSCode, Xcode, or other IDEs. `});break;case"explorer":t.createDiv({cls:"vt-navigation-description",text:` Explorer mode uses ephemeral tabs to avoid opening too many tabs. `});break;case"notebook":t.createDiv({cls:"vt-navigation-description",text:` Notebook mode ensures consistent navigation behavior while avoiding duplication. `});break;case"prefer-new-tab":t.createDiv({cls:"vt-navigation-description",text:` Always open the new note in a new tab. `});break;case"custom":this.displayCustomNavigationStrategy(t);break}new ue.Setting(t).setName("Miscellaneous").setHeading(),new ue.Setting(t).setName("Background mode").setDesc(`Enable to keep features like tab navigation without showing vertical tabs. This will disable Zen Mode and reset your workspace to the default layout.`).addToggle(n=>{n.setValue(this.plugin.settings.backgroundMode).onChange(async()=>{P.getState().toggleBackgroundMode(this.app),this.display()})}),t.createDiv({cls:"vt-support"}).innerHTML=`
Enjoying Vertical Tabs?
Facing issues or have suggestions? Submit a report.
`}displayCustomNavigationStrategy(t){new ue.Setting(t).setName("Always open in new tab").addToggle(n=>{n.setValue(this.plugin.settings.alwaysOpenInNewTab).onChange(async r=>{P.getState().setSettings({alwaysOpenInNewTab:r}),this.display()})}),this.plugin.settings.alwaysOpenInNewTab||(new ue.Setting(t).setName("Smart navigation").setDesc("Ensures consistent and intuitive behavior when working with multiple tab groups.").addToggle(n=>{n.setValue(this.plugin.settings.smartNavigation).onChange(async r=>{P.getState().setSettings({smartNavigation:r})})}),new ue.Setting(t).setName("Enable ephemeral tabs").setDesc("Bring VSCode-like ephemeral tabs to Obsidian.").addToggle(n=>{n.setValue(this.plugin.settings.ephemeralTabs).onChange(async r=>{P.getState().setSettings({ephemeralTabs:r,autoCloseEphemeralTabs:!0}),r?this.app.workspace.trigger("vertical-tabs:ephemeral-tabs-init",!0):this.app.workspace.trigger("vertical-tabs:ephemeral-tabs-deinit"),this.display()})}),this.plugin.settings.ephemeralTabs&&new ue.Setting(t).setName("Auto close ephemeral tabs").setDesc("Close inactive ephemeral tabs automatically and merge their history.").addToggle(n=>{n.setValue(this.plugin.settings.autoCloseEphemeralTabs).onChange(async r=>{P.getState().setSettings({autoCloseEphemeralTabs:r}),this.app.workspace.trigger("vertical-tabs:ephemeral-tabs-update",!0,r)})})),new ue.Setting(t).setName("Deduplicate tabs").setDesc("Prevent opening the same note in multiple tabs.").addToggle(n=>{n.setValue(this.plugin.settings.deduplicateTabs).onChange(async r=>{P.getState().setSettings({deduplicateTabs:r,deduplicateSidebarTabs:!1}),r&&this.app.workspace.trigger("vertical-tabs:deduplicate-tabs"),this.display()})}),this.plugin.settings.deduplicateTabs&&new ue.Setting(t).setName("Deduplicate sidebar tabs").setDesc("Prevent reopening sidebar tabs in the main workspace.").addToggle(n=>{n.setValue(this.plugin.settings.deduplicateSidebarTabs).onChange(async r=>{P.getState().setSettings({deduplicateSidebarTabs:r}),r&&this.app.workspace.trigger("vertical-tabs:deduplicate-tabs")})})}};var ys=class extends Nn.Plugin{constructor(){super(...arguments);this.settings=li}async onload(){await this.loadSettings(),await this.registerEventsAndViews(),await this.setupCommands(),await this.updateViewStates(),await this.patchViews(),this.addSettingTab(new vs(this.app,this)),setTimeout(()=>this.openVerticalTabs(),10)}async registerEventsAndViews(){this.registerView(Je,n=>new gs(n,this))}async setupCommands(){this.addCommand({id:"open-vertical-tabs",name:"Open vertical tabs",callback:()=>{this.openVerticalTabs(),P.getState().toggleBackgroundMode(this.app,!1)}})}async openVerticalTabs(){var n;try{let r=(n=this.app.workspace.getLeavesOfType(Je)[0])!=null?n:this.app.workspace.getLeftLeaf(!1);r.setViewState({type:Je,active:!0}),this.app.workspace.revealLeaf(r)}catch(r){}}onunload(){}async loadSettings(){this.settings=Object.assign({},li,await this.loadData())}async saveSettings(){await this.saveData(this.settings)}toggle(n,r){this.app.workspace.containerEl.doc.body.toggleClass(n,r)}async updateViewStates(){this.toggle("vt-hide-sidebars",this.settings.hideSidebars),this.toggle("vt-show-active-tabs",this.settings.showActiveTabs),this.toggle("vt-exclude-self",this.settings.sidebarExcludeSelf),this.toggle("vt-trim-tab-names",this.settings.trimTabNames),this.toggle("vt-show-more-buttons",this.settings.showMoreButtons),this.toggle("vt-zen-mode",this.settings.zenMode),this.toggle("vt-enable-tab-zoom",this.settings.enableTabZoom),this.toggle("vt-ephemeral-tabs",this.settings.ephemeralTabs),this.toggle("vt-background-mode",this.settings.backgroundMode)}async patchViews(){let n=(o,i)=>{var s;if(i<=0)return;let l=Math.abs(i-1)>fh;l?o.containerEl.setCssProps({"--vt-tab-zoom-factor":i.toString()}):o.containerEl.setCssProps({"--vt-tab-zoom-factor":""}),(s=o.leaf.containerEl)==null||s.toggleClass("vt-apply-tab-zoom",l)};this.register(hs(Nn.ItemView.prototype,{setEphemeralState(o){return function(i){var s;let l={zoom:(s=this.zoom)!=null?s:1,...i};o.call(this,l),this.zoom=l.zoom,n(this,this.zoom)}},getEphemeralState(o){return function(){var l;let i=o.call(this);return this.zoom=(l=this.zoom)!=null?l:1,n(this,this.zoom),{zoom:this.zoom,...i}}},onload(o){return function(){var i;o.call(this),n(this,(i=this.zoom)!=null?i:1)}}}));let r=(o,i)=>{if(this.settings.alwaysOpenInNewTab)return!1;if(this.settings.ephemeralTabs||this.settings.smartNavigation){let l=o.isEphemeral===void 0||o.isEphemeral?i():!1,s=oe.getState().executeSmartNavigation(this.app,o,i);return l&&s}else return i()};this.register(hs(Nn.WorkspaceLeaf.prototype,{canNavigate(o){return function(){return r(this,()=>o.call(this))}}})),this.register(hs(Nn.MarkdownView.prototype,{getSyncViewState(o){return function(){let i=o.call(this);return delete i.eState.zoom,i}}}))}}; /*! Bundled license information: react/cjs/react.production.min.js: (** * @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. *) scheduler/cjs/scheduler.production.min.js: (** * @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. *) react-dom/cjs/react-dom.production.min.js: (** * @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. *) use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js: (** * @license React * use-sync-external-store-shim.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. *) use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.min.js: (** * @license React * use-sync-external-store-shim/with-selector.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. *) react/cjs/react-jsx-runtime.production.min.js: (** * @license React * react-jsx-runtime.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. *) */ /* nosourcemap */