@deephaven/embed-grid 0.37.4-logout.2 → 0.37.4-relative-links.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -898,10 +898,10 @@ The error may be correlated with this previous error:
898
898
  `}},o=[n,r,i,a];return{always:Ga(o,"always"),resting:Ga(o,"resting"),dragging:Ga(o,"dragging"),dropAnimating:Ga(o,"dropAnimating"),userCancel:Ga(o,"userCancel")}},ct=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?C.useLayoutEffect:C.useEffect,Sp=function(){var t=document.querySelector("head");return t||R(!1),t},Jw=function(t){var r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.type="text/css",r};function wF(e,t){var r=re(function(){return bF(e)},[e]),n=C.useRef(null),i=C.useRef(null),a=j(Se(function(f){var d=i.current;d||R(!1),d.textContent=f}),[]),o=j(function(f){var d=n.current;d||R(!1),d.textContent=f},[]);ct(function(){!n.current&&!i.current||R(!1);var f=Jw(t),d=Jw(t);return n.current=f,i.current=d,f.setAttribute(ra+"-always",e),d.setAttribute(ra+"-dynamic",e),Sp().appendChild(f),Sp().appendChild(d),o(r.always),a(r.resting),function(){var p=function(w){var v=w.current;v||R(!1),Sp().removeChild(v),w.current=null};p(n),p(i)}},[t,o,a,r.always,r.resting,e]);var l=j(function(){return a(r.dragging)},[a,r.dragging]),s=j(function(f){if(f==="DROP"){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),u=j(function(){i.current&&a(r.resting)},[a,r.resting]),c=re(function(){return{dragging:l,dropping:s,resting:u}},[l,s,u]);return c}var dI=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function yf(e){return e instanceof dI(e).HTMLElement}function SF(e,t){var r="["+na.contextId+'="'+e+'"]',n=NO(document.querySelectorAll(r));if(!n.length)return null;var i=mn(n,function(a){return a.getAttribute(na.draggableId)===t});return!i||!yf(i)?null:i}function xF(e){var t=C.useRef({}),r=C.useRef(null),n=C.useRef(null),i=C.useRef(!1),a=j(function(d,p){var h={id:d,focus:p};return t.current[d]=h,function(){var v=t.current,g=v[d];g!==h&&delete v[d]}},[]),o=j(function(d){var p=SF(e,d);p&&p!==document.activeElement&&p.focus()},[e]),l=j(function(d,p){r.current===d&&(r.current=p)},[]),s=j(function(){n.current||i.current&&(n.current=requestAnimationFrame(function(){n.current=null;var d=r.current;d&&o(d)}))},[o]),u=j(function(d){r.current=null;var p=document.activeElement;p&&p.getAttribute(na.draggableId)===d&&(r.current=d)},[]);ct(function(){return i.current=!0,function(){i.current=!1;var d=n.current;d&&cancelAnimationFrame(d)}},[]);var c=re(function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:s,tryShiftRecord:l}},[a,u,s,l]);return c}function EF(){var e={draggables:{},droppables:{}},t=[];function r(f){return t.push(f),function(){var p=t.indexOf(f);p!==-1&&t.splice(p,1)}}function n(f){t.length&&t.forEach(function(d){return d(f)})}function i(f){return e.draggables[f]||null}function a(f){var d=i(f);return d||R(!1),d}var o={register:function(d){e.draggables[d.descriptor.id]=d,n({type:"ADDITION",value:d})},update:function(d,p){var h=e.draggables[p.descriptor.id];h&&h.uniqueId===d.uniqueId&&(delete e.draggables[p.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:function(d){var p=d.descriptor.id,h=i(p);h&&d.uniqueId===h.uniqueId&&(delete e.draggables[p],n({type:"REMOVAL",value:d}))},getById:a,findById:i,exists:function(d){return Boolean(i(d))},getAllByType:function(d){return Uu(e.draggables).filter(function(p){return p.descriptor.type===d})}};function l(f){return e.droppables[f]||null}function s(f){var d=l(f);return d||R(!1),d}var u={register:function(d){e.droppables[d.descriptor.id]=d},unregister:function(d){var p=l(d.descriptor.id);p&&d.uniqueId===p.uniqueId&&delete e.droppables[d.descriptor.id]},getById:s,findById:l,exists:function(d){return Boolean(l(d))},getAllByType:function(d){return Uu(e.droppables).filter(function(p){return p.descriptor.type===d})}};function c(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:u,subscribe:r,clean:c}}function CF(){var e=re(EF,[]);return C.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var gy=F.createContext(null),Hu=function(){var e=document.body;return e||R(!1),e},OF={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},IF=function(t){return"rbd-announcement-"+t};function PF(e){var t=re(function(){return IF(e)},[e]),r=C.useRef(null);C.useEffect(function(){var a=document.createElement("div");return r.current=a,a.id=t,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),W(a.style,OF),Hu().appendChild(a),function(){setTimeout(function(){var s=Hu();s.contains(a)&&s.removeChild(a),a===r.current&&(r.current=null)})}},[t]);var n=j(function(i){var a=r.current;if(a){a.textContent=i;return}},[]);return n}var DF=0,AF={separator:"::"};function my(e,t){return t===void 0&&(t=AF),re(function(){return""+e+t.separator+DF++},[t.separator,e])}function RF(e){var t=e.contextId,r=e.uniqueId;return"rbd-hidden-text-"+t+"-"+r}function TF(e){var t=e.contextId,r=e.text,n=my("hidden-text",{separator:"-"}),i=re(function(){return RF({contextId:t,uniqueId:n})},[n,t]);return C.useEffect(function(){var o=document.createElement("div");return o.id=i,o.textContent=r,o.style.display="none",Hu().appendChild(o),function(){var s=Hu();s.contains(o)&&s.removeChild(o)}},[i,r]),i}var bf=F.createContext(null);function pI(e){var t=C.useRef(e);return C.useEffect(function(){t.current=e}),t}function kF(){var e=null;function t(){return Boolean(e)}function r(o){return o===e}function n(o){e&&R(!1);var l={abandon:o};return e=l,l}function i(){e||R(!1),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:a}}var _F=9,NF=13,hy=27,vI=32,MF=33,$F=34,LF=35,FF=36,BF=37,jF=38,zF=39,UF=40,Os,WF=(Os={},Os[NF]=!0,Os[_F]=!0,Os),gI=function(e){WF[e.keyCode]&&e.preventDefault()},wf=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=mn(t,function(n){return"on"+n in document});return r||e}(),mI=0,Zw=5;function HF(e,t){return Math.abs(t.x-e.x)>=Zw||Math.abs(t.y-e.y)>=Zw}var eS={type:"IDLE"};function GF(e){var t=e.cancel,r=e.completed,n=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(o){var l=o.button,s=o.clientX,u=o.clientY;if(l===mI){var c={x:s,y:u},f=n();if(f.type==="DRAGGING"){o.preventDefault(),f.actions.move(c);return}f.type!=="PENDING"&&R(!1);var d=f.point;if(HF(d,c)){o.preventDefault();var p=f.actions.fluidLift(c);i({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(o){var l=n();if(l.type!=="DRAGGING"){t();return}o.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:function(o){n().type==="DRAGGING"&&o.preventDefault(),t()}},{eventName:"keydown",fn:function(o){var l=n();if(l.type==="PENDING"){t();return}if(o.keyCode===hy){o.preventDefault(),t();return}gI(o)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){n().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(o){var l=n();if(l.type==="IDLE"&&R(!1),l.actions.shouldRespectForcePress()){t();return}o.preventDefault()}},{eventName:wf,fn:t}]}function qF(e){var t=C.useRef(eS),r=C.useRef(Qr),n=re(function(){return{eventName:"mousedown",fn:function(f){if(!f.defaultPrevented&&f.button===mI&&!(f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)){var d=e.findClosestDraggableId(f);if(d){var p=e.tryGetLock(d,o,{sourceEvent:f});if(p){f.preventDefault();var h={x:f.clientX,y:f.clientY};r.current(),u(p,h)}}}}}},[e]),i=re(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(f){if(!f.defaultPrevented){var d=e.findClosestDraggableId(f);if(d){var p=e.findOptionsForDraggable(d);p&&(p.shouldRespectForcePress||e.canGetLock(d)&&f.preventDefault())}}}}},[e]),a=j(function(){var f={passive:!1,capture:!0};r.current=xt(window,[i,n],f)},[i,n]),o=j(function(){var c=t.current;c.type!=="IDLE"&&(t.current=eS,r.current(),a())},[a]),l=j(function(){var c=t.current;o(),c.type==="DRAGGING"&&c.actions.cancel({shouldBlockNextClick:!0}),c.type==="PENDING"&&c.actions.abort()},[o]),s=j(function(){var f={capture:!0,passive:!1},d=GF({cancel:l,completed:o,getPhase:function(){return t.current},setPhase:function(h){t.current=h}});r.current=xt(window,d,f)},[l,o]),u=j(function(f,d){t.current.type!=="IDLE"&&R(!1),t.current={type:"PENDING",point:d,actions:f},s()},[s]);ct(function(){return a(),function(){r.current()}},[a])}var ci;function VF(){}var YF=(ci={},ci[$F]=!0,ci[MF]=!0,ci[FF]=!0,ci[LF]=!0,ci);function KF(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:function(a){if(a.keyCode===hy){a.preventDefault(),r();return}if(a.keyCode===vI){a.preventDefault(),n();return}if(a.keyCode===UF){a.preventDefault(),e.moveDown();return}if(a.keyCode===jF){a.preventDefault(),e.moveUp();return}if(a.keyCode===zF){a.preventDefault(),e.moveRight();return}if(a.keyCode===BF){a.preventDefault(),e.moveLeft();return}if(YF[a.keyCode]){a.preventDefault();return}gI(a)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:wf,fn:r}]}function XF(e){var t=C.useRef(VF),r=re(function(){return{eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==vI)return;var o=e.findClosestDraggableId(a);if(!o)return;var l=e.tryGetLock(o,c,{sourceEvent:a});if(!l)return;a.preventDefault();var s=!0,u=l.snapLift();t.current();function c(){s||R(!1),s=!1,t.current(),n()}t.current=xt(window,KF(u,c),{capture:!0,passive:!1})}}},[e]),n=j(function(){var a={passive:!1,capture:!0};t.current=xt(window,[r],a)},[r]);ct(function(){return n(),function(){t.current()}},[n])}var xp={type:"IDLE"},QF=120,JF=.15;function ZF(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(r().type!=="DRAGGING"){t();return}i.keyCode===hy&&i.preventDefault(),t()}},{eventName:wf,fn:t}]}function e4(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(a){var o=n();if(o.type!=="DRAGGING"){t();return}o.hasMoved=!0;var l=a.touches[0],s=l.clientX,u=l.clientY,c={x:s,y:u};a.preventDefault(),o.actions.move(c)}},{eventName:"touchend",fn:function(a){var o=n();if(o.type!=="DRAGGING"){t();return}a.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:function(a){if(n().type!=="DRAGGING"){t();return}a.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(a){var o=n();o.type==="IDLE"&&R(!1);var l=a.touches[0];if(l){var s=l.force>=JF;if(s){var u=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){u&&t();return}if(u){if(o.hasMoved){a.preventDefault();return}t();return}a.preventDefault()}}}},{eventName:wf,fn:t}]}function t4(e){var t=C.useRef(xp),r=C.useRef(Qr),n=j(function(){return t.current},[]),i=j(function(p){t.current=p},[]),a=re(function(){return{eventName:"touchstart",fn:function(p){if(!p.defaultPrevented){var h=e.findClosestDraggableId(p);if(h){var w=e.tryGetLock(h,l,{sourceEvent:p});if(w){var v=p.touches[0],g=v.clientX,m=v.clientY,y={x:g,y:m};r.current(),f(w,y)}}}}}},[e]),o=j(function(){var p={capture:!0,passive:!1};r.current=xt(window,[a],p)},[a]),l=j(function(){var d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),i(xp),r.current(),o())},[o,i]),s=j(function(){var d=t.current;l(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[l]),u=j(function(){var p={capture:!0,passive:!1},h={cancel:s,completed:l,getPhase:n},w=xt(window,e4(h),p),v=xt(window,ZF(h),p);r.current=function(){w(),v()}},[s,n,l]),c=j(function(){var p=n();p.type!=="PENDING"&&R(!1);var h=p.actions.fluidLift(p.point);i({type:"DRAGGING",actions:h,hasMoved:!1})},[n,i]),f=j(function(p,h){n().type!=="IDLE"&&R(!1);var w=setTimeout(c,QF);i({type:"PENDING",point:h,actions:p,longPressTimerId:w}),u()},[u,n,i,c]);ct(function(){return o(),function(){r.current();var h=n();h.type==="PENDING"&&(clearTimeout(h.longPressTimerId),i(xp))}},[n,o,i]),ct(function(){var p=xt(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return p},[])}var r4={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function hI(e,t){if(t==null)return!1;var r=Boolean(r4[t.tagName.toLowerCase()]);if(r)return!0;var n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:hI(e,t.parentElement)}function n4(e,t){var r=t.target;return yf(r)?hI(e,r):!1}var i4=function(e){return Ft(e.getBoundingClientRect()).center};function a4(e){return e instanceof dI(e).Element}var o4=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=mn(t,function(n){return n in Element.prototype});return r||e}();function yI(e,t){return e==null?null:e[o4](t)?e:yI(e.parentElement,t)}function l4(e,t){return e.closest?e.closest(t):yI(e,t)}function s4(e){return"["+na.contextId+'="'+e+'"]'}function u4(e,t){var r=t.target;if(!a4(r))return null;var n=s4(e),i=l4(r,n);return!i||!yf(i)?null:i}function c4(e,t){var r=u4(e,t);return r?r.getAttribute(na.draggableId):null}function f4(e,t){var r="["+Pg.contextId+'="'+e+'"]',n=NO(document.querySelectorAll(r)),i=mn(n,function(a){return a.getAttribute(Pg.id)===t});return!i||!yf(i)?null:i}function d4(e){e.preventDefault()}function Is(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!(!n()||t!==r)}function bI(e){var t=e.lockAPI,r=e.store,n=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var a=n.draggable.findById(i);return!(!a||!a.options.isEnabled||!sI(r.getState(),i))}function p4(e){var t=e.lockAPI,r=e.contextId,n=e.store,i=e.registry,a=e.draggableId,o=e.forceSensorStop,l=e.sourceEvent,s=bI({lockAPI:t,store:n,registry:i,draggableId:a});if(!s)return null;var u=i.draggable.getById(a),c=f4(r,u.descriptor.id);if(!c||l&&!u.options.canDragInteractiveElements&&n4(c,l))return null;var f=t.claim(o||Qr),d="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(f)}function w(S,E){Is({expected:S,phase:d,isLockActive:h,shouldWarn:!0})&&n.dispatch(E())}var v=w.bind(null,"DRAGGING");function g(S){function E(){t.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(E(),d!=="PRE_DRAG"&&R(!1)),n.dispatch(oL(S.liftActionArgs)),d="DRAGGING";function O(I,T){if(T===void 0&&(T={shouldBlockNextClick:!1}),S.cleanup(),T.shouldBlockNextClick){var _=xt(window,[{eventName:"click",fn:d4,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(_)}E(),n.dispatch(tI({reason:I}))}return W({isActive:function(){return Is({expected:"DRAGGING",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(T){return O("DROP",T)},cancel:function(T){return O("CANCEL",T)}},S.actions)}function m(S){var E=tl(function(I){v(function(){return eI({client:I})})}),O=g({liftActionArgs:{id:a,clientSelection:S,movementMode:"FLUID"},cleanup:function(){return E.cancel()},actions:{move:E}});return W({},O,{move:E})}function y(){var S={moveUp:function(){return v(gL)},moveRight:function(){return v(hL)},moveDown:function(){return v(mL)},moveLeft:function(){return v(yL)}};return g({liftActionArgs:{id:a,clientSelection:i4(c),movementMode:"SNAP"},cleanup:Qr,actions:S})}function b(){var S=Is({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!0});S&&t.release()}var x={isActive:function(){return Is({expected:"PRE_DRAG",phase:d,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:m,snapLift:y,abort:b};return x}var v4=[qF,XF,t4];function g4(e){var t=e.contextId,r=e.store,n=e.registry,i=e.customSensors,a=e.enableDefaultSensors,o=[].concat(a?v4:[],i||[]),l=C.useState(function(){return kF()})[0],s=j(function(m,y){m.isDragging&&!y.isDragging&&l.tryAbandon()},[l]);ct(function(){var m=r.getState(),y=r.subscribe(function(){var b=r.getState();s(m,b),m=b});return y},[l,r,s]),ct(function(){return l.tryAbandon},[l.tryAbandon]);for(var u=j(function(g){return bI({lockAPI:l,registry:n,store:r,draggableId:g})},[l,n,r]),c=j(function(g,m,y){return p4({lockAPI:l,registry:n,contextId:t,store:r,draggableId:g,forceSensorStop:m,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null})},[t,l,n,r]),f=j(function(g){return c4(t,g)},[t]),d=j(function(g){var m=n.draggable.findById(g);return m?m.options:null},[n.draggable]),p=j(function(){l.isClaimed()&&(l.tryAbandon(),r.getState().phase!=="IDLE"&&r.dispatch(ly()))},[l,r]),h=j(l.isClaimed,[l]),w=re(function(){return{canGetLock:u,tryGetLock:c,findClosestDraggableId:f,findOptionsForDraggable:d,tryReleaseLock:p,isLockClaimed:h}},[u,c,f,d,p,h]),v=0;v<o.length;v++)o[v](w)}var m4=function(t){return{onBeforeCapture:t.onBeforeCapture,onBeforeDragStart:t.onBeforeDragStart,onDragStart:t.onDragStart,onDragEnd:t.onDragEnd,onDragUpdate:t.onDragUpdate}};function qa(e){return e.current||R(!1),e.current}function h4(e){var t=e.contextId,r=e.setCallbacks,n=e.sensors,i=e.nonce,a=e.dragHandleUsageInstructions,o=C.useRef(null),l=pI(e),s=j(function(){return m4(l.current)},[l]),u=PF(t),c=TF({contextId:t,text:a}),f=wF(t,i),d=j(function(I){qa(o).dispatch(I)},[]),p=re(function(){return wg({publishWhileDragging:sL,updateDroppableScroll:cL,updateDroppableIsEnabled:fL,updateDroppableIsCombineEnabled:dL,collectionStarting:uL},d)},[d]),h=CF(),w=re(function(){return JL(h,p)},[h,p]),v=re(function(){return gF(W({scrollWindow:ZL,scrollDroppable:w.scrollDroppable},wg({move:eI},d)))},[w.scrollDroppable,d]),g=xF(t),m=re(function(){return YL({announce:u,autoScroller:v,dimensionMarshal:w,focusMarshal:g,getResponders:s,styleMarshal:f})},[u,v,w,g,s,f]);o.current=m;var y=j(function(){var I=qa(o),T=I.getState();T.phase!=="IDLE"&&I.dispatch(ly())},[]),b=j(function(){var I=qa(o).getState();return I.isDragging||I.phase==="DROP_ANIMATING"},[]),x=re(function(){return{isDragging:b,tryAbort:y}},[b,y]);r(x);var S=j(function(I){return sI(qa(o).getState(),I)},[]),E=j(function(){return In(qa(o).getState())},[]),O=re(function(){return{marshal:w,focus:g,contextId:t,canLift:S,isMovementAllowed:E,dragHandleUsageInstructionsId:c,registry:h}},[t,w,c,g,S,E,h]);return g4({contextId:t,store:m,registry:h,customSensors:n,enableDefaultSensors:e.enableDefaultSensors!==!1}),C.useEffect(function(){return y},[y]),F.createElement(bf.Provider,{value:O},F.createElement(dO,{context:gy,store:m},e.children))}var y4=0;function b4(){return re(function(){return""+y4++},[])}function n7(e){var t=b4(),r=e.dragHandleUsageInstructions||Zs.dragHandleUsageInstructions;return F.createElement(X3,null,function(n){return F.createElement(h4,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)})}var wI=function(t){return function(r){return t===r}},w4=wI("scroll"),S4=wI("auto"),tS=function(t,r){return r(t.overflowX)||r(t.overflowY)},x4=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return tS(n,w4)||tS(n,S4)},E4=function(){return!1},C4=function e(t){return t==null?null:t===document.body?E4()?t:null:t===document.documentElement?null:x4(t)?t:e(t.parentElement)},Dg=function(e){return{x:e.scrollLeft,y:e.scrollTop}},O4=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},I4=function(e){var t=C4(e),r=O4(e);return{closestScrollable:t,isFixedOnPage:r}},P4=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,u=function(){if(!s)return null;var p=s.scrollSize,h=s.client,w=aI({scrollHeight:p.scrollHeight,scrollWidth:p.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:p,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:w,diff:{value:ke,displacement:ke}}}}(),c=a==="vertical"?ry:BO,f=ta({page:l,withPlaceholder:null,axis:c,frame:u}),d={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:c,isEnabled:r,client:o,page:l,frame:u,subject:f};return d},D4=function(t,r){var n=AO(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},u=Qh(s,n.border),c=Jh({borderBox:u,margin:n.margin,border:n.border,padding:n.padding});return c},A4=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,u=n.closestScrollable,c=D4(t,u),f=Bu(c,i),d=function(){if(!u)return null;var h=AO(u),w={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:h,page:Bu(h,i),scroll:Dg(u),scrollSize:w,shouldClipSubject:s}}(),p=P4({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:c,page:f,closest:d});return p},R4={passive:!1},T4={passive:!0},rS=function(e){return e.shouldPublishImmediately?R4:T4};function Gu(e){var t=C.useContext(e);return t||R(!1),t}var Ps=function(t){return t&&t.env.closestScrollable||null};function k4(e){var t=C.useRef(null),r=Gu(bf),n=my("droppable"),i=r.registry,a=r.marshal,o=pI(e),l=re(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=C.useRef(l),u=re(function(){return Se(function(b,x){t.current||R(!1);var S={x:b,y:x};a.updateDroppableScroll(l.id,S)})},[l.id,a]),c=j(function(){var b=t.current;return!b||!b.env.closestScrollable?ke:Dg(b.env.closestScrollable)},[]),f=j(function(){var b=c();u(b.x,b.y)},[c,u]),d=re(function(){return tl(f)},[f]),p=j(function(){var b=t.current,x=Ps(b);b&&x||R(!1);var S=b.scrollOptions;if(S.shouldPublishImmediately){f();return}d()},[d,f]),h=j(function(b,x){t.current&&R(!1);var S=o.current,E=S.getDroppableRef();E||R(!1);var O=I4(E),I={ref:E,descriptor:l,env:O,scrollOptions:x};t.current=I;var T=A4({ref:E,descriptor:l,env:O,windowScroll:b,direction:S.direction,isDropDisabled:S.isDropDisabled,isCombineEnabled:S.isCombineEnabled,shouldClipSubject:!S.ignoreContainerClipping}),_=O.closestScrollable;return _&&(_.setAttribute(Qw.contextId,r.contextId),_.addEventListener("scroll",p,rS(I.scrollOptions))),T},[r.contextId,l,p,o]),w=j(function(){var b=t.current,x=Ps(b);return b&&x||R(!1),Dg(x)},[]),v=j(function(){var b=t.current;b||R(!1);var x=Ps(b);t.current=null,x&&(d.cancel(),x.removeAttribute(Qw.contextId),x.removeEventListener("scroll",p,rS(b.scrollOptions)))},[p,d]),g=j(function(b){var x=t.current;x||R(!1);var S=Ps(x);S||R(!1),S.scrollTop+=b.y,S.scrollLeft+=b.x},[]),m=re(function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:w,dragStopped:v,scroll:g}},[v,h,w,g]),y=re(function(){return{uniqueId:n,descriptor:l,callbacks:m}},[m,l,n]);ct(function(){return s.current=y.descriptor,i.droppable.register(y),function(){t.current&&v(),i.droppable.unregister(y)}},[m,l,v,y,a,i.droppable]),ct(function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),ct(function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Ep(){}var nS={width:0,height:0,margin:r$},_4=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?nS:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},N4=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=_4({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Eo.placeholder:null}};function M4(e){var t=C.useRef(null),r=j(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=C.useState(e.animate==="open"),s=l[0],u=l[1];C.useEffect(function(){return s?n!=="open"?(r(),u(!1),Ep):t.current?Ep:(t.current=setTimeout(function(){t.current=null,u(!1)}),r):Ep},[n,s,r]);var c=j(function(d){d.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),f=N4({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return F.createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":o,onTransitionEnd:c,ref:e.innerRef})}var $4=F.memo(M4),yy=F.createContext(null),L4=function(e){bl(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:Boolean(n.props.on),data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(i.on),data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(F.PureComponent),iS={dragging:5e3,dropAnimating:4500},F4=function(t,r){return r?Eo.drop(r.duration):t?Eo.snap:Eo.fluid},B4=function(t,r){return t?r?al.opacity.drop:al.opacity.combining:null},j4=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function z4(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=Boolean(i),l=j4(e),s=Boolean(a),u=s?Og.drop(n,o):Og.moveTo(n),c={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:F4(l,a),transform:u,opacity:B4(o,s),zIndex:s?iS.dropAnimating:iS.dragging,pointerEvents:"none"};return c}function U4(e){return{transform:Og.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function W4(e){return e.type==="DRAGGING"?z4(e):U4(e)}function H4(e,t,r){r===void 0&&(r=ke);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=DO(i,n),o=Bu(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},u={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return u}function G4(e){var t=my("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=re(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),u=j(function(p){var h=i();return h||R(!1),H4(r,h,p)},[r,i]),c=re(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:u}},[r,u,s,t]),f=C.useRef(c),d=C.useRef(!0);ct(function(){return n.draggable.register(f.current),function(){return n.draggable.unregister(f.current)}},[n.draggable]),ct(function(){if(d.current){d.current=!1;return}var p=f.current;f.current=c,n.draggable.update(c,p)},[c,n.draggable])}function q4(e){e.preventDefault()}function V4(e){var t=C.useRef(null),r=j(function(I){t.current=I},[]),n=j(function(){return t.current},[]),i=Gu(bf),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=Gu(yy),u=s.type,c=s.droppableId,f=re(function(){return{id:e.draggableId,index:e.index,type:u,droppableId:c}},[e.draggableId,e.index,u,c]),d=e.children,p=e.draggableId,h=e.isEnabled,w=e.shouldRespectForcePress,v=e.canDragInteractiveElements,g=e.isClone,m=e.mapped,y=e.dropAnimationFinished;if(!g){var b=re(function(){return{descriptor:f,registry:l,getDraggableRef:n,canDragInteractiveElements:v,shouldRespectForcePress:w,isEnabled:h}},[f,l,n,v,w,h]);G4(b)}var x=re(function(){return h?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":p,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:q4}:null},[a,o,p,h]),S=j(function(I){m.type==="DRAGGING"&&m.dropping&&I.propertyName==="transform"&&y()},[y,m]),E=re(function(){var I=W4(m),T=m.type==="DRAGGING"&&m.dropping?S:null,_={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":p,style:I,onTransitionEnd:T},dragHandleProps:x};return _},[a,x,p,m,S,r]),O=re(function(){return{draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}},[f.droppableId,f.id,f.index,f.type]);return d(E,m.snapshot,O)}var SI=function(e,t){return e===t},xI=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},Y4=function(t){return t.combine?t.combine.draggableId:null},K4=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function X4(){var e=Se(function(i,a){return{x:i,y:a}}),t=Se(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:Boolean(s),dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=Se(function(i,a,o,l,s,u,c){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:u,mode:a,offset:i,dimension:o,forceShouldAnimate:c,snapshot:t(a,l,s,u,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],u=ut(a.impact),c=K4(a.impact),f=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,u,c,f)}if(a.phase==="DROP_ANIMATING"){var d=a.completed;if(d.result.draggableId!==o.draggableId)return null;var p=o.isClone,h=a.dimensions.draggables[o.draggableId],w=d.result,v=w.mode,g=xI(w),m=Y4(w),y=a.dropDuration,b={duration:y,curve:uy.drop,moveTo:a.newHomeClientOffset,opacity:m?al.opacity.drop:null,scale:m?al.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:h,dropping:b,draggingOver:g,combineWith:m,mode:v,forceShouldAnimate:null,snapshot:t(v,p,g,m,b)}}}return null};return n}function EI(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var Q4={mapped:{type:"SECONDARY",offset:ke,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:EI(null)}};function J4(){var e=Se(function(o,l){return{x:o,y:l}}),t=Se(EI),r=Se(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(ke,l,!0):null},i=function(l,s,u,c){var f=u.displaced.visible[l],d=Boolean(c.inVirtualList&&c.effected[l]),p=gf(u),h=p&&p.draggableId===l?s:null;if(!f){if(!d)return n(h);if(u.displaced.invisible[l])return null;var w=ba(c.displacedBy.point),v=e(w.x,w.y);return r(v,h,!0)}if(d)return n(h);var g=u.displacedBy.point,m=e(g.x,g.y);return r(m,h,f.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var u=l.completed;return u.result.draggableId===s.draggableId?null:i(s.draggableId,u.result.draggableId,u.impact,u.afterCritical)}return null};return a}var Z4=function(){var t=X4(),r=J4(),n=function(a,o){return t(a,o)||r(a,o)||Q4};return n},eB={dropAnimationFinished:rI},tB=Kh(Z4,eB,null,{context:gy,pure:!0,areStatePropsEqual:SI})(V4);function CI(e){var t=Gu(yy),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:F.createElement(tB,e)}function i7(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return F.createElement(CI,W({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function rB(e){var t=C.useContext(bf);t||R(!1);var r=t.contextId,n=t.isMovementAllowed,i=C.useRef(null),a=C.useRef(null),o=e.children,l=e.droppableId,s=e.type,u=e.mode,c=e.direction,f=e.ignoreContainerClipping,d=e.isDropDisabled,p=e.isCombineEnabled,h=e.snapshot,w=e.useClone,v=e.updateViewportMaxScroll,g=e.getContainerForClone,m=j(function(){return i.current},[]),y=j(function(_){i.current=_},[]);j(function(){return a.current},[]);var b=j(function(_){a.current=_},[]),x=j(function(){n()&&v({maxScroll:lI()})},[n,v]);k4({droppableId:l,type:s,mode:u,direction:c,isDropDisabled:d,isCombineEnabled:p,ignoreContainerClipping:f,getDroppableRef:m});var S=F.createElement(L4,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(_){var H=_.onClose,z=_.data,G=_.animate;return F.createElement($4,{placeholder:z,onClose:H,innerRef:b,animate:G,contextId:r,onTransitionEnd:x})}),E=re(function(){return{innerRef:y,placeholder:S,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,S,y]),O=w?w.dragging.draggableId:null,I=re(function(){return{droppableId:l,type:s,isUsingCloneFor:O}},[l,O,s]);function T(){if(!w)return null;var _=w.dragging,H=w.render,z=F.createElement(CI,{draggableId:_.draggableId,index:_.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(G,K){return H(G,K,_)});return to.createPortal(z,g())}return F.createElement(yy.Provider,{value:I},o(E,h),T())}var Cp=function(t,r){return t===r.droppable.type},aS=function(t,r){return r.draggables[t.draggable.id]},nB=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=W({},t,{shouldAnimatePlaceholder:!1}),n=Se(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=Se(function(o,l,s,u,c,f){var d=c.descriptor.id,p=c.descriptor.droppableId===o;if(p){var h=f?{render:f,dragging:n(c.descriptor)}:null,w={isDraggingOver:s,draggingOverWith:s?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:w,useClone:h}}if(!l)return r;if(!u)return t;var v={isDraggingOver:s,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:v,useClone:null}}),a=function(l,s){var u=s.droppableId,c=s.type,f=!s.isDropDisabled,d=s.renderClone;if(l.isDragging){var p=l.critical;if(!Cp(c,p))return r;var h=aS(p,l.dimensions),w=ut(l.impact)===u;return i(u,f,w,w,h,d)}if(l.phase==="DROP_ANIMATING"){var v=l.completed;if(!Cp(c,v.critical))return r;var g=aS(v.critical,l.dimensions);return i(u,f,xI(v.result)===u,ut(v.impact)===u,g,d)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var m=l.completed;if(!Cp(c,m.critical))return r;var y=ut(m.impact)===u,b=Boolean(m.impact.at&&m.impact.at.type==="COMBINE"),x=m.critical.droppable.id===u;return y?b?t:r:x?t:r}return r};return a},iB={updateViewportMaxScroll:vL};function aB(){return document.body||R(!1),document.body}var oB={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:aB},lB=Kh(nB,iB,null,{context:gy,pure:!0,areStatePropsEqual:SI})(rB);lB.defaultProps=oB;var sB=typeof performance=="object"&&typeof performance.now=="function",oS=sB?function(){return performance.now()}:function(){return Date.now()};function lS(e){cancelAnimationFrame(e.id)}function uB(e,t){var r=oS();function n(){oS()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var fi=null;function sS(e){if(e===void 0&&(e=!1),fi===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?fi="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?fi="negative":fi="positive-ascending"),document.body.removeChild(t),fi}return fi}var cB=150,fB=function(t,r){return t};function dB(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,u=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return r=t=function(d){bl(p,d);function p(w){var v;return v=d.call(this,w)||this,v._instanceProps=u(v.props,ds(ds(v))),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:ds(ds(v)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=Se(function(g,m,y,b){return v.props.onItemsRendered({overscanStartIndex:g,overscanStopIndex:m,visibleStartIndex:y,visibleStopIndex:b})}),v._callOnScroll=void 0,v._callOnScroll=Se(function(g,m,y){return v.props.onScroll({scrollDirection:g,scrollOffset:m,scrollUpdateWasRequested:y})}),v._getItemStyle=void 0,v._getItemStyle=function(g){var m=v.props,y=m.direction,b=m.itemSize,x=m.layout,S=v._getItemStyleCache(c&&b,c&&x,c&&y),E;if(S.hasOwnProperty(g))E=S[g];else{var O=n(v.props,g,v._instanceProps),I=a(v.props,g,v._instanceProps),T=y==="horizontal"||x==="horizontal",_=y==="rtl",H=T?O:0;S[g]=E={position:"absolute",left:_?void 0:H,right:_?H:void 0,top:T?0:O,height:T?"100%":I,width:T?I:"100%"}}return E},v._getItemStyleCache=void 0,v._getItemStyleCache=Se(function(g,m,y){return{}}),v._onScrollHorizontal=function(g){var m=g.currentTarget,y=m.clientWidth,b=m.scrollLeft,x=m.scrollWidth;v.setState(function(S){if(S.scrollOffset===b)return null;var E=v.props.direction,O=b;if(E==="rtl")switch(sS()){case"negative":O=-b;break;case"positive-descending":O=x-y-b;break}return O=Math.max(0,Math.min(O,x-y)),{isScrolling:!0,scrollDirection:S.scrollOffset<b?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(g){var m=g.currentTarget,y=m.clientHeight,b=m.scrollHeight,x=m.scrollTop;v.setState(function(S){if(S.scrollOffset===x)return null;var E=Math.max(0,Math.min(x,b-y));return{isScrolling:!0,scrollDirection:S.scrollOffset<E?"forward":"backward",scrollOffset:E,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(g){var m=v.props.outerRef;v._outerRef=g,typeof m=="function"?m(g):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=g)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&lS(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=uB(v._resetIsScrolling,cB)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}p.getDerivedStateFromProps=function(v,g){return pB(v,g),f(v),null};var h=p.prototype;return h.scrollTo=function(v){v=Math.max(0,v),this.setState(function(g){return g.scrollOffset===v?null:{scrollDirection:g.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(v,g){g===void 0&&(g="auto");var m=this.props.itemCount,y=this.state.scrollOffset;v=Math.max(0,Math.min(v,m-1)),this.scrollTo(o(this.props,v,g,y,this._instanceProps))},h.componentDidMount=function(){var v=this.props,g=v.direction,m=v.initialScrollOffset,y=v.layout;if(typeof m=="number"&&this._outerRef!=null){var b=this._outerRef;g==="horizontal"||y==="horizontal"?b.scrollLeft=m:b.scrollTop=m}this._callPropsCallbacks()},h.componentDidUpdate=function(){var v=this.props,g=v.direction,m=v.layout,y=this.state,b=y.scrollOffset,x=y.scrollUpdateWasRequested;if(x&&this._outerRef!=null){var S=this._outerRef;if(g==="horizontal"||m==="horizontal")if(g==="rtl")switch(sS()){case"negative":S.scrollLeft=-b;break;case"positive-ascending":S.scrollLeft=b;break;default:var E=S.clientWidth,O=S.scrollWidth;S.scrollLeft=O-E-b;break}else S.scrollLeft=b;else S.scrollTop=b}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&lS(this._resetIsScrollingTimeoutId)},h.render=function(){var v=this.props,g=v.children,m=v.className,y=v.direction,b=v.height,x=v.innerRef,S=v.innerElementType,E=v.innerTagName,O=v.itemCount,I=v.itemData,T=v.itemKey,_=T===void 0?fB:T,H=v.layout,z=v.outerElementType,G=v.outerTagName,K=v.style,Q=v.useIsScrolling,ee=v.width,oe=this.state.isScrolling,le=y==="horizontal"||H==="horizontal",ce=le?this._onScrollHorizontal:this._onScrollVertical,P=this._getRangeToRender(),k=P[0],U=P[1],X=[];if(O>0)for(var Y=k;Y<=U;Y++)X.push(C.createElement(g,{data:I,key:_(Y,I),index:Y,isScrolling:Q?oe:void 0,style:this._getItemStyle(Y)}));var se=i(this.props,this._instanceProps);return C.createElement(z||G||"div",{className:m,onScroll:ce,ref:this._outerRefSetter,style:W({position:"relative",height:b,width:ee,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},K)},C.createElement(S||E||"div",{children:X,ref:x,style:{height:le?"100%":se,pointerEvents:oe?"none":void 0,width:le?se:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var g=this._getRangeToRender(),m=g[0],y=g[1],b=g[2],x=g[3];this._callOnItemsRendered(m,y,b,x)}}if(typeof this.props.onScroll=="function"){var S=this.state,E=S.scrollDirection,O=S.scrollOffset,I=S.scrollUpdateWasRequested;this._callOnScroll(E,O,I)}},h._getRangeToRender=function(){var v=this.props,g=v.itemCount,m=v.overscanCount,y=this.state,b=y.isScrolling,x=y.scrollDirection,S=y.scrollOffset;if(g===0)return[0,0,0,0];var E=l(this.props,S,this._instanceProps),O=s(this.props,E,S,this._instanceProps),I=!b||x==="backward"?Math.max(1,m):1,T=!b||x==="forward"?Math.max(1,m):1;return[Math.max(0,E-I),Math.max(0,Math.min(g-1,O+T)),E,O]},p}(C.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var pB=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},a7=dB({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,u=t.layout,c=t.width,f=a==="horizontal"||u==="horizontal",d=f?c:o,p=Math.max(0,l*s-d),h=Math.min(p,r*s),w=Math.max(0,r*s-d+s);switch(n==="smart"&&(i>=w-d&&i<=h+d?n="auto":n="center"),n){case"start":return h;case"end":return w;case"center":{var v=Math.round(w+(h-w)/2);return v<Math.ceil(d/2)?0:v>p+Math.floor(d/2)?p:v}case"auto":default:return i>=w&&i<=h?i:i<w?w:h}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,u=t.width,c=i==="horizontal"||s==="horizontal",f=r*l,d=c?u:a,p=Math.ceil((d+n-f)/l);return Math.max(0,Math.min(o-1,r+p-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),vB=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},gB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),mB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hB=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},uS=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},yB=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(u){a=!0,o=u}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ot=void 0;typeof window<"u"?Ot=window:typeof self<"u"?Ot=self:Ot=global;var Ag=null,Rg=null,cS=20,Op=Ot.clearTimeout,fS=Ot.setTimeout,Ip=Ot.cancelAnimationFrame||Ot.mozCancelAnimationFrame||Ot.webkitCancelAnimationFrame,dS=Ot.requestAnimationFrame||Ot.mozRequestAnimationFrame||Ot.webkitRequestAnimationFrame;Ip==null||dS==null?(Ag=Op,Rg=function(t){return fS(t,cS)}):(Ag=function(t){var r=yB(t,2),n=r[0],i=r[1];Ip(n),Op(i)},Rg=function(t){var r=dS(function(){Op(n),t()}),n=fS(function(){Ip(r),t()},cS);return[r,n]});function bB(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(b){var x=b.__resizeTriggers__,S=x.firstElementChild,E=x.lastElementChild,O=S.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,O.style.width=S.offsetWidth+1+"px",O.style.height=S.offsetHeight+1+"px",S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight},a=function(b){return b.offsetWidth!==b.__resizeLast__.width||b.offsetHeight!==b.__resizeLast__.height},l=function(b){if(!(b.target.className&&typeof b.target.className.indexOf=="function"&&b.target.className.indexOf("contract-trigger")<0&&b.target.className.indexOf("expand-trigger")<0)){var x=this;o(this),this.__resizeRAF__&&Ag(this.__resizeRAF__),this.__resizeRAF__=Rg(function(){a(x)&&(x.__resizeLast__.width=x.offsetWidth,x.__resizeLast__.height=x.offsetHeight,x.__resizeListeners__.forEach(function(O){O.call(x,b)}))})}};var u=!1,c="";n="animationstart";var f="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{var h=document.createElement("fakeelement");if(h.style.animationName!==void 0&&(u=!0),u===!1){for(var w=0;w<f.length;w++)if(h.style[f[w]+"AnimationName"]!==void 0){p=f[w],c="-"+p.toLowerCase()+"-",n=d[w],u=!0;break}}}r="resizeanim",t="@"+c+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=c+"animation: 1ms "+r+"; "}var v=function(b){if(!b.getElementById("detectElementResize")){var x=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',S=b.head||b.getElementsByTagName("head")[0],E=b.createElement("style");E.id="detectElementResize",E.type="text/css",e!=null&&E.setAttribute("nonce",e),E.styleSheet?E.styleSheet.cssText=x:E.appendChild(b.createTextNode(x)),S.appendChild(E)}},g=function(b,x){if(s)b.attachEvent("onresize",x);else{if(!b.__resizeTriggers__){var S=b.ownerDocument,E=Ot.getComputedStyle(b);E&&E.position==="static"&&(b.style.position="relative"),v(S),b.__resizeLast__={},b.__resizeListeners__=[],(b.__resizeTriggers__=S.createElement("div")).className="resize-triggers";var O=S.createElement("div");O.className="expand-trigger",O.appendChild(S.createElement("div"));var I=S.createElement("div");I.className="contract-trigger",b.__resizeTriggers__.appendChild(O),b.__resizeTriggers__.appendChild(I),b.appendChild(b.__resizeTriggers__),o(b),b.addEventListener("scroll",l,!0),n&&(b.__resizeTriggers__.__animationListener__=function(_){_.animationName===r&&o(b)},b.__resizeTriggers__.addEventListener(n,b.__resizeTriggers__.__animationListener__))}b.__resizeListeners__.push(x)}},m=function(b,x){if(s)b.detachEvent("onresize",x);else if(b.__resizeListeners__.splice(b.__resizeListeners__.indexOf(x),1),!b.__resizeListeners__.length){b.removeEventListener("scroll",l,!0),b.__resizeTriggers__.__animationListener__&&(b.__resizeTriggers__.removeEventListener(n,b.__resizeTriggers__.__animationListener__),b.__resizeTriggers__.__animationListener__=null);try{b.__resizeTriggers__=!b.removeChild(b.__resizeTriggers__)}catch{}}};return{addResizeListener:g,removeResizeListener:m}}var wB=function(e){hB(t,e);function t(){var r,n,i,a;vB(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=uS(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var u=i.props,c=u.disableHeight,f=u.disableWidth,d=u.onResize;if(i._parentNode){var p=i._parentNode.offsetHeight||0,h=i._parentNode.offsetWidth||0,w=window.getComputedStyle(i._parentNode)||{},v=parseInt(w.paddingLeft,10)||0,g=parseInt(w.paddingRight,10)||0,m=parseInt(w.paddingTop,10)||0,y=parseInt(w.paddingBottom,10)||0,b=p-m-y,x=h-v-g;(!c&&i.state.height!==b||!f&&i.state.width!==x)&&(i.setState({height:p-m-y,width:h-v-g}),d({height:p,width:h}))}},i._setRef=function(u){i._autoSizer=u},n),uS(i,a)}return gB(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=bB(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,u=this.state,c=u.height,f=u.width,d={overflow:"visible"},p={},h=!1;return o||(c===0&&(h=!0),d.height=0,p.height=c),l||(f===0&&(h=!0),d.width=0,p.width=f),C.createElement("div",{className:a,ref:this._setRef,style:mB({},d,s)},!h&&i(p))}}]),t}(C.PureComponent);wB.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var SB=9007199254740991,xB="[object Arguments]",EB="[object Function]",CB="[object GeneratorFunction]",OB=typeof Z=="object"&&Z&&Z.Object===Object&&Z,IB=typeof self=="object"&&self&&self.Object===Object&&self,PB=OB||IB||Function("return this")();function DB(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var by=Object.prototype,AB=by.hasOwnProperty,OI=by.toString,pS=PB.Symbol,RB=by.propertyIsEnumerable,vS=pS?pS.isConcatSpreadable:void 0;function II(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=TB),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?II(l,t-1,r,n,i):DB(i,l):n||(i[i.length]=l)}return i}function TB(e){return NB(e)||_B(e)||!!(vS&&e&&e[vS])}function kB(e){var t=e?e.length:0;return t?II(e,1):[]}function _B(e){return $B(e)&&AB.call(e,"callee")&&(!RB.call(e,"callee")||OI.call(e)==xB)}var NB=Array.isArray;function MB(e){return e!=null&&FB(e.length)&&!LB(e)}function $B(e){return jB(e)&&MB(e)}function LB(e){var t=BB(e)?OI.call(e):"";return t==EB||t==CB}function FB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SB}function BB(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function jB(e){return!!e&&typeof e=="object"}var zB=kB;const o7=zB;var gS=0/0,UB="[object Symbol]",WB=/^\s+|\s+$/g,HB=/^[-+]0x[0-9a-f]+$/i,GB=/^0b[01]+$/i,qB=/^0o[0-7]+$/i,VB=parseInt,YB=Object.prototype,KB=YB.toString;function XB(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function mS(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function QB(e){return!!e&&typeof e=="object"}function JB(e){return typeof e=="symbol"||QB(e)&&KB.call(e)==UB}function Pp(e){if(typeof e=="number")return e;if(JB(e))return gS;if(mS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(WB,"");var r=GB.test(e);return r||qB.test(e)?VB(e.slice(2),r?2:8):HB.test(e)?gS:+e}function ZB(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Pp(r),r=r===r?r:0),t!==void 0&&(t=Pp(t),t=t===t?t:0),XB(Pp(e),t,r)}var l7=ZB;function Va(e){return e&&e.__esModule?e.default:e}function Ut(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var PI={};Ut(PI,"spectrum--darkest",()=>Tg,e=>Tg=e);var Tg;Tg="spectrum--darkest_256eeb";var hn={};Ut(hn,"spectrum",()=>kg,e=>kg=e);Ut(hn,"spectrum--medium",()=>_g,e=>_g=e);Ut(hn,"spectrum--large",()=>Ng,e=>Ng=e);Ut(hn,"spectrum--darkest",()=>Mg,e=>Mg=e);Ut(hn,"spectrum--dark",()=>$g,e=>$g=e);Ut(hn,"spectrum--light",()=>Lg,e=>Lg=e);Ut(hn,"spectrum--lightest",()=>Fg,e=>Fg=e);var kg,_g,Ng,Mg,$g,Lg,Fg;kg="spectrum_9e130c";_g="spectrum--medium_9e130c";Ng="spectrum--large_9e130c";Mg="spectrum--darkest_9e130c";$g="spectrum--dark_9e130c";Lg="spectrum--light_9e130c";Fg="spectrum--lightest_9e130c";var DI={};Ut(DI,"spectrum--large",()=>Bg,e=>Bg=e);var Bg;Bg="spectrum--large_c40598";var AI={};Ut(AI,"spectrum--light",()=>jg,e=>jg=e);var jg;jg="spectrum--light_a40724";var RI={};Ut(RI,"spectrum--medium",()=>zg,e=>zg=e);var zg;zg="spectrum--medium_4b172c";let s7={global:Va(hn),light:Va(AI),dark:Va(PI),medium:Va(RI),large:Va(DI)};/*! js-cookie v3.0.5 | MIT */function Ds(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var ej={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Ug(e,t){function r(i,a,o){if(!(typeof document>"u")){o=Ds({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),u=s.slice(1).join("=");try{var c=decodeURIComponent(s[0]);if(o[c]=e.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",Ds({},a,{expires:-1}))},withAttributes:function(i){return Ug(this.converter,Ds({},this.attributes,i))},withConverter:function(i){return Ug(Ds({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var u7=Ug(ej,{path:"/"});function c7(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:n=u=>u.id||u.key,filter:i,initialFilterText:a=""}=e,[o,l]=C.useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:a}),s=C.useMemo(()=>i?o.items.filter(u=>i(u,o.filterText)):o.items,[o.items,o.filterText,i]);return{...o,items:s,...tj({getKey:n},l),getItem(u){return o.items.find(c=>n(c)===u)}}}function tj(e,t){let{cursor:r,getKey:n}=e;return{setSelectedKeys(i){t(a=>({...a,selectedKeys:i}))},setFilterText(i){t(a=>({...a,filterText:i}))},insert(i,...a){t(o=>Ya(o,i,...a))},insertBefore(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ya(o,l,...a)})},insertAfter(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ya(o,l+1,...a)})},prepend(...i){t(a=>Ya(a,0,...i))},append(...i){t(a=>Ya(a,a.items.length,...i))},remove(...i){t(a=>{let o=new Set(i),l=a.items.filter(u=>!o.has(n(u))),s="all";if(a.selectedKeys!=="all"){s=new Set(a.selectedKeys);for(let u of i)s.delete(u)}return r==null&&l.length===0&&(s=new Set),{...a,items:l,selectedKeys:s}})},removeSelectedItems(){t(i=>{if(i.selectedKeys==="all")return{...i,items:[],selectedKeys:new Set};let a=i.selectedKeys,o=i.items.filter(l=>!a.has(n(l)));return{...i,items:o,selectedKeys:new Set}})},move(i,a){t(o=>{let l=o.items.findIndex(c=>n(c)===i);if(l===-1)return o;let s=o.items.slice(),[u]=s.splice(l,1);return s.splice(a,0,u),{...o,items:s}})},moveBefore(i,a){t(o=>{let l=o.items.findIndex(c=>n(c)===i);if(l===-1)return o;let u=(Array.isArray(a)?a:[...a]).map(c=>o.items.findIndex(f=>n(f)===c)).sort();return hS(o,u,l)})},moveAfter(i,a){t(o=>{let l=o.items.findIndex(c=>n(c)===i);if(l===-1)return o;let u=(Array.isArray(a)?a:[...a]).map(c=>o.items.findIndex(f=>n(f)===c)).sort();return hS(o,u,l+1)})},update(i,a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);return l===-1?o:{...o,items:[...o.items.slice(0,l),a,...o.items.slice(l+1)]}})}}}function Ya(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function hS(e,t,r){r-=t.filter(a=>a<r).length;let n=t.map(a=>({from:a,to:r++}));for(let a=0;a<n.length;a++){let o=n[a].from;for(let l=a;l<n.length;l++)n[l].from>o&&n[l].from--}for(let a=0;a<n.length;a++){let o=n[a];for(let l=n.length-1;l>a;l--){let s=n[l];s.from<o.to?o.to++:s.from++}}let i=e.items.slice();for(let a of n){let[o]=i.splice(a.from,1);i.splice(a.to,0,o)}return{...e,items:i}}var rj={},Ll={},Fl={},Sf={},TI={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(TI);var kI={};const nj={},ij=Object.freeze(Object.defineProperty({__proto__:null,default:nj},Symbol.toStringTag,{value:"Module"})),Wg=yD(ij);var qn={};qn.__esModule=!0;qn.InternalServerError=qn.OK=void 0;qn.OK=200;qn.InternalServerError=500;(function(e){var t=Z&&Z.__spreadArray||function(l,s,u){if(u||arguments.length===2)for(var c=0,f=s.length,d;c<f;c++)(d||!(c in s))&&(d||(d=Array.prototype.slice.call(s,0,c)),d[c]=s[c]);return l.concat(d||Array.prototype.slice.call(s))};e.__esModule=!0;var r=Wg,n=Wg,i=qn,a=function(l){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];return typeof l!="string"?{on:function(c,f){f(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,u){a(l,function(c){if(c.statusCode!==i.OK)return u(new Error("HTTP Error Response: "+c.statusCode+" "+c.statusMessage+" ("+l+")"));var f=null;c.on("data",function(d){if(f===null){f=d;return}f+=d}),c.on("end",function(){return s(f)})}).on("error",u)})};e.default=o})(kI);var _I={},en={};en.__esModule=!0;en.DONE=en.OPENED=en.UNSENT=void 0;en.UNSENT=0;en.OPENED=1;en.DONE=4;(function(e){e.__esModule=!0;var t=qn,r=en,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(_I);Sf.__esModule=!0;Sf.createLoadRemoteModule=void 0;var aj=TI,oj=kI,lj=_I,sj=typeof window<"u"&&typeof window.document<"u",uj=sj?lj.default:oj.default,cj=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},fj=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||cj,a=n||uj;return(0,aj.default)(function(o){return a(o).then(function(l){var s={},u={exports:s},c=new Function("require","module","exports",l);return c(i,u,s),u.exports})})};Sf.createLoadRemoteModule=fj;var xf={};xf.__esModule=!0;xf.createRequires=void 0;var dj=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};xf.createRequires=dj;(function(e){var t=Z&&Z.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=Sf;t(e,r,"createLoadRemoteModule","default");var n=xf;t(e,n,"createRequires")})(Fl);const f7=Rc(Fl);var pj=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ll.__esModule=!0;Ll.createUseRemoteComponent=void 0;var yS=C,vj=pj(Fl),gj=function(e){var t=vj.default(e),r=function(n,i){i===void 0&&(i="default");var a=yS.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,u=o.component,c=a[1];return yS.useEffect(function(){var f=c;return f({loading:!0,err:void 0,component:void 0}),t(n).then(function(d){return f({loading:!1,err:void 0,component:d[i]})}).catch(function(d){return f({loading:!1,err:d,component:void 0})}),function(){f=function(){}}},[n]),[l,s,u]};return r};Ll.createUseRemoteComponent=gj;var Bl={};Bl.__esModule=!0;Bl.createRequires=void 0;var mj=function(e){return typeof e=="function"?e():e||{}},hj=function(e){var t=!1;return function(r){if(t||(e=mj(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Bl.createRequires=hj;var wy={};(function(e){var t=Z&&Z.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,u=arguments.length;s<u;s++){l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(o[c]=l[c])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(wy);var jl={},Hg=Z&&Z.__assign||function(){return Hg=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Hg.apply(this,arguments)},yj=Z&&Z.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},bj=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};jl.__esModule=!0;jl.createRemoteComponent=void 0;var bS=bj(C),wj=Ll,Sj=function(e){var t=wj.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=yj(n,["url","fallback","render"]),u=t(i),c=u[0],f=u[1],d=u[2];return c?o:l?l({err:f,Component:d}):f||!d?bS.default.createElement("div",null,"Unknown Error: ",(f||"UNKNOWN").toString()):bS.default.createElement(d,Hg({},s))};return r};jl.createRemoteComponent=Sj;var Ef={};Ef.__esModule=!0;Ef.RemoteComponent=void 0;var xj=jl,Ej=Bl,Cj=wy,Oj=Ej.createRequires(Cj.getDependencies);Ef.RemoteComponent=xj.createRemoteComponent({requires:Oj});var Cf={},Ij=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Cf.__esModule=!0;Cf.fetchRemoteComponent=void 0;var Pj=Ij(Fl),Dj=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=Pj.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};Cf.fetchRemoteComponent=Dj;var Of={},Aj=Z&&Z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Of.__esModule=!0;Of.getServerSideProps=void 0;var Rj=Aj(Fl),Tj=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Rj.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};Of.getServerSideProps=Tj;(function(e){var t=Z&&Z.__createBinding||(Object.create?function(u,c,f,d){d===void 0&&(d=f),Object.defineProperty(u,d,{enumerable:!0,get:function(){return c[f]}})}:function(u,c,f,d){d===void 0&&(d=f),u[d]=c[f]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Ll;t(e,r,"createUseRemoteComponent");var n=Bl;t(e,n,"createRequires");var i=wy;t(e,i,"getDependencies");var a=jl;t(e,a,"createRemoteComponent");var o=Ef;t(e,o,"RemoteComponent");var l=Cf;t(e,l,"fetchRemoteComponent");var s=Of;t(e,s,"getServerSideProps")})(rj);var wS=Object.prototype.toString,NI=function(t){var r=wS.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&wS.call(t.callee)==="[object Function]"),n},Dp,SS;function kj(){if(SS)return Dp;SS=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=NI,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(d){var p=d.constructor;return p&&p.prototype===d},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!u["$"+d]&&t.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{s(window[d])}catch{return!0}}catch{return!0}return!1}(),f=function(d){if(typeof window>"u"||!c)return s(d);try{return s(d)}catch{return!1}};e=function(p){var h=p!==null&&typeof p=="object",w=r.call(p)==="[object Function]",v=n(p),g=h&&r.call(p)==="[object String]",m=[];if(!h&&!w&&!v)throw new TypeError("Object.keys called on a non-object");var y=o&&w;if(g&&p.length>0&&!t.call(p,0))for(var b=0;b<p.length;++b)m.push(String(b));if(v&&p.length>0)for(var x=0;x<p.length;++x)m.push(String(x));else for(var S in p)!(y&&S==="prototype")&&t.call(p,S)&&m.push(String(S));if(a)for(var E=f(p),O=0;O<l.length;++O)!(E&&l[O]==="constructor")&&t.call(p,l[O])&&m.push(l[O]);return m}}return Dp=e,Dp}var _j=Array.prototype.slice,Nj=NI,xS=Object.keys,eu=xS?function(t){return xS(t)}:kj(),ES=Object.keys;eu.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return Nj(n)?ES(_j.call(n)):ES(n)})}else Object.keys=eu;return Object.keys||eu};var Sy=eu,If=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},Mj=If,yn=function(){return Mj()&&!!Symbol.toStringTag},CS=typeof Symbol<"u"&&Symbol,$j=If,xy=function(){return typeof CS!="function"||typeof Symbol!="function"||typeof CS("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$j()},Lj="Function.prototype.bind called on incompatible ",Ap=Array.prototype.slice,Fj=Object.prototype.toString,Bj="[object Function]",jj=function(t){var r=this;if(typeof r!="function"||Fj.call(r)!==Bj)throw new TypeError(Lj+r);for(var n=Ap.call(arguments,1),i,a=function(){if(this instanceof i){var c=r.apply(this,n.concat(Ap.call(arguments)));return Object(c)===c?c:this}else return r.apply(t,n.concat(Ap.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var u=function(){};u.prototype=r.prototype,i.prototype=new u,u.prototype=null}return i},zj=jj,Ey=Function.prototype.bind||zj,Uj=Ey,Wj=Uj.call(Function.call,Object.prototype.hasOwnProperty),te,ia=SyntaxError,MI=Function,Wi=TypeError,Rp=function(e){try{return MI('"use strict"; return ('+e+").constructor;")()}catch{}},Bn=Object.getOwnPropertyDescriptor;if(Bn)try{Bn({},"")}catch{Bn=null}var Tp=function(){throw new Wi},Hj=Bn?function(){try{return arguments.callee,Tp}catch{try{return Bn(arguments,"callee").get}catch{return Tp}}}():Tp,di=xy(),Tr=Object.getPrototypeOf||function(e){return e.__proto__},hi={},Gj=typeof Uint8Array>"u"?te:Tr(Uint8Array),Hi={"%AggregateError%":typeof AggregateError>"u"?te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?te:ArrayBuffer,"%ArrayIteratorPrototype%":di?Tr([][Symbol.iterator]()):te,"%AsyncFromSyncIteratorPrototype%":te,"%AsyncFunction%":hi,"%AsyncGenerator%":hi,"%AsyncGeneratorFunction%":hi,"%AsyncIteratorPrototype%":hi,"%Atomics%":typeof Atomics>"u"?te:Atomics,"%BigInt%":typeof BigInt>"u"?te:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?te:Float32Array,"%Float64Array%":typeof Float64Array>"u"?te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?te:FinalizationRegistry,"%Function%":MI,"%GeneratorFunction%":hi,"%Int8Array%":typeof Int8Array>"u"?te:Int8Array,"%Int16Array%":typeof Int16Array>"u"?te:Int16Array,"%Int32Array%":typeof Int32Array>"u"?te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":di?Tr(Tr([][Symbol.iterator]())):te,"%JSON%":typeof JSON=="object"?JSON:te,"%Map%":typeof Map>"u"?te:Map,"%MapIteratorPrototype%":typeof Map>"u"||!di?te:Tr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?te:Promise,"%Proxy%":typeof Proxy>"u"?te:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?te:Set,"%SetIteratorPrototype%":typeof Set>"u"||!di?te:Tr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":di?Tr(""[Symbol.iterator]()):te,"%Symbol%":di?Symbol:te,"%SyntaxError%":ia,"%ThrowTypeError%":Hj,"%TypedArray%":Gj,"%TypeError%":Wi,"%Uint8Array%":typeof Uint8Array>"u"?te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?te:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?te:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?te:WeakMap,"%WeakRef%":typeof WeakRef>"u"?te:WeakRef,"%WeakSet%":typeof WeakSet>"u"?te:WeakSet},qj=function e(t){var r;if(t==="%AsyncFunction%")r=Rp("async function () {}");else if(t==="%GeneratorFunction%")r=Rp("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Rp("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Tr(i.prototype))}return Hi[t]=r,r},OS={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},zl=Ey,qu=Wj,Vj=zl.call(Function.call,Array.prototype.concat),Yj=zl.call(Function.apply,Array.prototype.splice),IS=zl.call(Function.call,String.prototype.replace),Vu=zl.call(Function.call,String.prototype.slice),Kj=zl.call(Function.call,RegExp.prototype.exec),Xj=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qj=/\\(\\)?/g,Jj=function(t){var r=Vu(t,0,1),n=Vu(t,-1);if(r==="%"&&n!=="%")throw new ia("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ia("invalid intrinsic syntax, expected opening `%`");var i=[];return IS(t,Xj,function(a,o,l,s){i[i.length]=l?IS(s,Qj,"$1"):o||a}),i},Zj=function(t,r){var n=t,i;if(qu(OS,n)&&(i=OS[n],n="%"+i[0]+"%"),qu(Hi,n)){var a=Hi[n];if(a===hi&&(a=qj(n)),typeof a>"u"&&!r)throw new Wi("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new ia("intrinsic "+t+" does not exist!")},bn=function(t,r){if(typeof t!="string"||t.length===0)throw new Wi("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Wi('"allowMissing" argument must be a boolean');if(Kj(/^%?[^%]*%?$/,t)===null)throw new ia("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Jj(t),i=n.length>0?n[0]:"",a=Zj("%"+i+"%",r),o=a.name,l=a.value,s=!1,u=a.alias;u&&(i=u[0],Yj(n,Vj([0,1],u)));for(var c=1,f=!0;c<n.length;c+=1){var d=n[c],p=Vu(d,0,1),h=Vu(d,-1);if((p==='"'||p==="'"||p==="`"||h==='"'||h==="'"||h==="`")&&p!==h)throw new ia("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(s=!0),i+="."+d,o="%"+i+"%",qu(Hi,o))l=Hi[o];else if(l!=null){if(!(d in l)){if(!r)throw new Wi("base intrinsic for "+t+" exists, but the property is not available.");return}if(Bn&&c+1>=n.length){var w=Bn(l,d);f=!!w,f&&"get"in w&&!("originalValue"in w.get)?l=w.get:l=l[d]}else f=qu(l,d),l=l[d];f&&!s&&(Hi[o]=l)}}return l},aa={},e6={get exports(){return aa},set exports(e){aa=e}};(function(e){var t=Ey,r=bn,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(f){var d=a(t,i,arguments);if(o&&l){var p=o(d,"length");p.configurable&&l(d,"length",{value:1+s(0,f.length-(arguments.length-1))})}return d};var u=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})(e6);var $I=bn,LI=aa,t6=LI($I("String.prototype.indexOf")),nr=function(t,r){var n=$I(t,!!r);return typeof n=="function"&&t6(t,".prototype.")>-1?LI(n):n},r6=yn(),n6=nr,Gg=n6("Object.prototype.toString"),Pf=function(t){return r6&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Gg(t)==="[object Arguments]"},FI=function(t){return Pf(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Gg(t)!=="[object Array]"&&Gg(t.callee)==="[object Function]"},i6=function(){return Pf(arguments)}();Pf.isLegacyArguments=FI;var BI=i6?Pf:FI,a6=bn,qg=a6("%Object.defineProperty%",!0),Vg=function(){if(qg)try{return qg({},"a",{value:1}),!0}catch{return!1}return!1};Vg.hasArrayLengthDefineBug=function(){if(!Vg())return null;try{return qg([],"length",{value:1}).length!==1}catch{return!0}};var o6=Vg,l6=Sy,s6=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",u6=Object.prototype.toString,c6=Array.prototype.concat,jI=Object.defineProperty,f6=function(e){return typeof e=="function"&&u6.call(e)==="[object Function]"},d6=o6(),zI=jI&&d6,p6=function(e,t,r,n){t in e&&(!f6(n)||!n())||(zI?jI(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},UI=function(e,t){var r=arguments.length>2?arguments[2]:{},n=l6(t);s6&&(n=c6.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)p6(e,n[i],t[n[i]],r[n[i]])};UI.supportsDescriptors=!!zI;var ri=UI,PS=function(e){return e!==e},WI=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||PS(t)&&PS(r))},v6=WI,HI=function(){return typeof Object.is=="function"?Object.is:v6},g6=HI,m6=ri,h6=function(){var t=g6();return m6(Object,{is:t},{is:function(){return Object.is!==t}}),t},y6=ri,b6=aa,w6=WI,GI=HI,S6=h6,qI=b6(GI(),Object);y6(qI,{getPolyfill:GI,implementation:w6,shim:S6});var x6=qI,Yg=nr,VI=yn(),YI,KI,Kg,Xg;if(VI){YI=Yg("Object.prototype.hasOwnProperty"),KI=Yg("RegExp.prototype.exec"),Kg={};var kp=function(){throw Kg};Xg={toString:kp,valueOf:kp},typeof Symbol.toPrimitive=="symbol"&&(Xg[Symbol.toPrimitive]=kp)}var E6=Yg("Object.prototype.toString"),C6=Object.getOwnPropertyDescriptor,O6="[object RegExp]",I6=VI?function(t){if(!t||typeof t!="object")return!1;var r=C6(t,"lastIndex"),n=r&&YI(r,"value");if(!n)return!1;try{KI(t,Xg)}catch(i){return i===Kg}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:E6(t)===O6},Yu={},P6={get exports(){return Yu},set exports(e){Yu=e}},ol=function(){return typeof function(){}.name=="string"},Co=Object.getOwnPropertyDescriptor;if(Co)try{Co([],"length")}catch{Co=null}ol.functionsHaveConfigurableNames=function(){if(!ol()||!Co)return!1;var t=Co(function(){},"name");return!!t&&!!t.configurable};var D6=Function.prototype.bind;ol.boundFunctionsHaveNames=function(){return ol()&&typeof D6=="function"&&function(){}.bind().name!==""};var A6=ol;(function(e){var t=A6.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(P6);var R6=Yu,T6=ri.supportsDescriptors,k6=Object.getOwnPropertyDescriptor,XI=function(){if(T6&&/a/mig.flags==="gim"){var t=k6(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return R6},_6=ri.supportsDescriptors,N6=XI,M6=Object.getOwnPropertyDescriptor,$6=Object.defineProperty,L6=TypeError,DS=Object.getPrototypeOf,F6=/a/,B6=function(){if(!_6||!DS)throw new L6("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=N6(),r=DS(F6),n=M6(r,"flags");return(!n||n.get!==t)&&$6(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},j6=ri,z6=aa,U6=Yu,QI=XI,W6=B6,JI=z6(QI());j6(JI,{getPolyfill:QI,implementation:U6,shim:W6});var H6=JI,G6={}.toString,ZI=Array.isArray||function(e){return G6.call(e)=="[object Array]"},q6=Date.prototype.getDay,V6=function(t){try{return q6.call(t),!0}catch{return!1}},Y6=Object.prototype.toString,K6="[object Date]",X6=yn(),Q6=function(t){return typeof t!="object"||t===null?!1:X6?V6(t):Y6.call(t)===K6},J6=String.prototype.valueOf,Z6=function(t){try{return J6.call(t),!0}catch{return!1}},ez=Object.prototype.toString,tz="[object String]",rz=yn(),eP=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:rz?Z6(t):ez.call(t)===tz},nz=Number.prototype.toString,iz=function(t){try{return nz.call(t),!0}catch{return!1}},az=Object.prototype.toString,oz="[object Number]",lz=yn(),sz=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:lz?iz(t):az.call(t)===oz},tP=nr,uz=tP("Boolean.prototype.toString"),cz=tP("Object.prototype.toString"),fz=function(t){try{return uz(t),!0}catch{return!1}},dz="[object Boolean]",pz=yn(),vz=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:pz&&Symbol.toStringTag in t?fz(t):cz(t)===dz},Qg={},AS={get exports(){return Qg},set exports(e){Qg=e}},gz=Object.prototype.toString,mz=xy();if(mz){var hz=Symbol.prototype.toString,yz=/^Symbol\(.*\)$/,bz=function(t){return typeof t.valueOf()!="symbol"?!1:yz.test(hz.call(t))};AS.exports=function(t){if(typeof t=="symbol")return!0;if(gz.call(t)!=="[object Symbol]")return!1;try{return bz(t)}catch{return!1}}}else AS.exports=function(t){return!1};var Jg={},RS={get exports(){return Jg},set exports(e){Jg=e}},TS=typeof BigInt<"u"&&BigInt,wz=function(){return typeof TS=="function"&&typeof BigInt=="function"&&typeof TS(42)=="bigint"&&typeof BigInt(42)=="bigint"},Sz=wz();if(Sz){var xz=BigInt.prototype.valueOf,Ez=function(t){try{return xz.call(t),!0}catch{}return!1};RS.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Ez(t)}}else RS.exports=function(t){return!1};var Cz=eP,Oz=sz,Iz=vz,Pz=Qg,Dz=Jg,Az=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(Cz(t))return"String";if(Oz(t))return"Number";if(Iz(t))return"Boolean";if(Pz(t))return"Symbol";if(Dz(t))return"BigInt"},Cy=typeof Map=="function"&&Map.prototype?Map:null,Rz=typeof Set=="function"&&Set.prototype?Set:null,Ku;Cy||(Ku=function(t){return!1});var rP=Cy?Map.prototype.has:null,kS=Rz?Set.prototype.has:null;!Ku&&!rP&&(Ku=function(t){return!1});var nP=Ku||function(t){if(!t||typeof t!="object")return!1;try{if(rP.call(t),kS)try{kS.call(t)}catch{return!0}return t instanceof Cy}catch{}return!1},Tz=typeof Map=="function"&&Map.prototype?Map:null,Oy=typeof Set=="function"&&Set.prototype?Set:null,Xu;Oy||(Xu=function(t){return!1});var _S=Tz?Map.prototype.has:null,iP=Oy?Set.prototype.has:null;!Xu&&!iP&&(Xu=function(t){return!1});var aP=Xu||function(t){if(!t||typeof t!="object")return!1;try{if(iP.call(t),_S)try{_S.call(t)}catch{return!0}return t instanceof Oy}catch{}return!1},Qu=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,NS=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Ju;Qu||(Ju=function(t){return!1});var Zg=Qu?Qu.prototype.has:null,_p=NS?NS.prototype.has:null;!Ju&&!Zg&&(Ju=function(t){return!1});var kz=Ju||function(t){if(!t||typeof t!="object")return!1;try{if(Zg.call(t,Zg),_p)try{_p.call(t,_p)}catch{return!0}return t instanceof Qu}catch{}return!1},em={},MS={get exports(){return em},set exports(e){em=e}},_z=bn,oP=nr,Nz=_z("%WeakSet%",!0),Np=oP("WeakSet.prototype.has",!0);if(Np){var Mp=oP("WeakMap.prototype.has",!0);MS.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Np(t,Np),Mp)try{Mp(t,Mp)}catch{return!0}return t instanceof Nz}catch{}return!1}}else MS.exports=function(t){return!1};var Mz=nP,$z=aP,Lz=kz,Fz=em,Bz=function(t){if(t&&typeof t=="object"){if(Mz(t))return"Map";if($z(t))return"Set";if(Lz(t))return"WeakMap";if(Fz(t))return"WeakSet"}return!1},tm={},$p={get exports(){return tm},set exports(e){tm=e}},$S=BI;if(xy()||If()){var Lp=Symbol.iterator;$p.exports=function(t){if(t!=null&&typeof t[Lp]<"u")return t[Lp]();if($S(t))return Array.prototype[Lp].call(t)}}else{var jz=ZI,zz=eP,LS=bn,Uz=LS("%Map%",!0),Wz=LS("%Set%",!0),_t=nr,FS=_t("Array.prototype.push"),BS=_t("String.prototype.charCodeAt"),Hz=_t("String.prototype.slice"),Gz=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=BS(t,r);if(i<55296||i>56319)return r+1;var a=BS(t,r+1);return a<56320||a>57343?r+1:r+2},Fp=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},jS=function(t,r){if(jz(t)||$S(t))return Fp(t);if(zz(t)){var n=0;return{next:function(){var a=Gz(t,n),o=Hz(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Uz&&!Wz)$p.exports=function(t){if(t!=null)return jS(t,!0)};else{var qz=nP,Vz=aP,zS=_t("Map.prototype.forEach",!0),US=_t("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var WS=_t("Map.prototype.iterator",!0),HS=_t("Set.prototype.iterator",!0),GS=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var qS=_t("Map.prototype.@@iterator",!0)||_t("Map.prototype._es6-shim iterator_",!0),VS=_t("Set.prototype.@@iterator",!0)||_t("Set.prototype._es6-shim iterator_",!0),Yz=function(t){if(qz(t)){if(WS)return GS(WS(t));if(qS)return qS(t);if(zS){var r=[];return zS(t,function(i,a){FS(r,[a,i])}),Fp(r)}}if(Vz(t)){if(HS)return GS(HS(t));if(VS)return VS(t);if(US){var n=[];return US(t,function(i){FS(n,i)}),Fp(n)}}};$p.exports=function(t){return Yz(t)||jS(t)}}}var Iy=typeof Map=="function"&&Map.prototype,Bp=Object.getOwnPropertyDescriptor&&Iy?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Zu=Iy&&Bp&&typeof Bp.get=="function"?Bp.get:null,Kz=Iy&&Map.prototype.forEach,Py=typeof Set=="function"&&Set.prototype,jp=Object.getOwnPropertyDescriptor&&Py?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ec=Py&&jp&&typeof jp.get=="function"?jp.get:null,Xz=Py&&Set.prototype.forEach,Qz=typeof WeakMap=="function"&&WeakMap.prototype,Oo=Qz?WeakMap.prototype.has:null,Jz=typeof WeakSet=="function"&&WeakSet.prototype,Io=Jz?WeakSet.prototype.has:null,Zz=typeof WeakRef=="function"&&WeakRef.prototype,YS=Zz?WeakRef.prototype.deref:null,e8=Boolean.prototype.valueOf,t8=Object.prototype.toString,r8=Function.prototype.toString,n8=String.prototype.match,Dy=String.prototype.slice,Ur=String.prototype.replace,i8=String.prototype.toUpperCase,KS=String.prototype.toLowerCase,lP=RegExp.prototype.test,XS=Array.prototype.concat,Yt=Array.prototype.join,a8=Array.prototype.slice,QS=Math.floor,rm=typeof BigInt=="function"?BigInt.prototype.valueOf:null,zp=Object.getOwnPropertySymbols,nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,oa=typeof Symbol=="function"&&typeof Symbol.iterator=="object",qe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===oa||"symbol")?Symbol.toStringTag:null,sP=Object.prototype.propertyIsEnumerable,JS=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ZS(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||lP.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-QS(-e):QS(e);if(n!==e){var i=String(n),a=Dy.call(t,i.length+1);return Ur.call(i,r,"$&_")+"."+Ur.call(Ur.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ur.call(t,r,"$&_")}var im=Wg,ex=im.custom,tx=cP(ex)?ex:null,o8=function e(t,r,n,i){var a=r||{};if(kr(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(kr(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=kr(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(kr(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(kr(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return dP(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?ZS(t,s):s}if(typeof t=="bigint"){var u=String(t)+"n";return l?ZS(t,u):u}var c=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof t=="object")return am(t)?"[Array]":"[Object]";var f=C8(a,n);if(typeof i>"u")i=[];else if(fP(i,t)>=0)return"[Circular]";function d(z,G,K){if(G&&(i=a8.call(i),i.push(G)),K){var Q={depth:a.depth};return kr(a,"quoteStyle")&&(Q.quoteStyle=a.quoteStyle),e(z,Q,n+1,i)}return e(z,a,n+1,i)}if(typeof t=="function"&&!rx(t)){var p=g8(t),h=As(t,d);return"[Function"+(p?": "+p:" (anonymous)")+"]"+(h.length>0?" { "+Yt.call(h,", ")+" }":"")}if(cP(t)){var w=oa?Ur.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):nm.call(t);return typeof t=="object"&&!oa?Ka(w):w}if(S8(t)){for(var v="<"+KS.call(String(t.nodeName)),g=t.attributes||[],m=0;m<g.length;m++)v+=" "+g[m].name+"="+uP(l8(g[m].value),"double",a);return v+=">",t.childNodes&&t.childNodes.length&&(v+="..."),v+="</"+KS.call(String(t.nodeName))+">",v}if(am(t)){if(t.length===0)return"[]";var y=As(t,d);return f&&!E8(y)?"["+om(y,f)+"]":"[ "+Yt.call(y,", ")+" ]"}if(u8(t)){var b=As(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!sP.call(t,"cause")?"{ ["+String(t)+"] "+Yt.call(XS.call("[cause]: "+d(t.cause),b),", ")+" }":b.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Yt.call(b,", ")+" }"}if(typeof t=="object"&&o){if(tx&&typeof t[tx]=="function"&&im)return im(t,{depth:c-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(m8(t)){var x=[];return Kz.call(t,function(z,G){x.push(d(G,t,!0)+" => "+d(z,t))}),nx("Map",Zu.call(t),x,f)}if(b8(t)){var S=[];return Xz.call(t,function(z){S.push(d(z,t))}),nx("Set",ec.call(t),S,f)}if(h8(t))return Up("WeakMap");if(w8(t))return Up("WeakSet");if(y8(t))return Up("WeakRef");if(f8(t))return Ka(d(Number(t)));if(p8(t))return Ka(d(rm.call(t)));if(d8(t))return Ka(e8.call(t));if(c8(t))return Ka(d(String(t)));if(!s8(t)&&!rx(t)){var E=As(t,d),O=JS?JS(t)===Object.prototype:t instanceof Object||t.constructor===Object,I=t instanceof Object?"":"null prototype",T=!O&&qe&&Object(t)===t&&qe in t?Dy.call(wn(t),8,-1):I?"Object":"",_=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=_+(T||I?"["+Yt.call(XS.call([],T||[],I||[]),": ")+"] ":"");return E.length===0?H+"{}":f?H+"{"+om(E,f)+"}":H+"{ "+Yt.call(E,", ")+" }"}return String(t)};function uP(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function l8(e){return Ur.call(String(e),/"/g,"&quot;")}function am(e){return wn(e)==="[object Array]"&&(!qe||!(typeof e=="object"&&qe in e))}function s8(e){return wn(e)==="[object Date]"&&(!qe||!(typeof e=="object"&&qe in e))}function rx(e){return wn(e)==="[object RegExp]"&&(!qe||!(typeof e=="object"&&qe in e))}function u8(e){return wn(e)==="[object Error]"&&(!qe||!(typeof e=="object"&&qe in e))}function c8(e){return wn(e)==="[object String]"&&(!qe||!(typeof e=="object"&&qe in e))}function f8(e){return wn(e)==="[object Number]"&&(!qe||!(typeof e=="object"&&qe in e))}function d8(e){return wn(e)==="[object Boolean]"&&(!qe||!(typeof e=="object"&&qe in e))}function cP(e){if(oa)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!nm)return!1;try{return nm.call(e),!0}catch{}return!1}function p8(e){if(!e||typeof e!="object"||!rm)return!1;try{return rm.call(e),!0}catch{}return!1}var v8=Object.prototype.hasOwnProperty||function(e){return e in this};function kr(e,t){return v8.call(e,t)}function wn(e){return t8.call(e)}function g8(e){if(e.name)return e.name;var t=n8.call(r8.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function fP(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function m8(e){if(!Zu||!e||typeof e!="object")return!1;try{Zu.call(e);try{ec.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function h8(e){if(!Oo||!e||typeof e!="object")return!1;try{Oo.call(e,Oo);try{Io.call(e,Io)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function y8(e){if(!YS||!e||typeof e!="object")return!1;try{return YS.call(e),!0}catch{}return!1}function b8(e){if(!ec||!e||typeof e!="object")return!1;try{ec.call(e);try{Zu.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function w8(e){if(!Io||!e||typeof e!="object")return!1;try{Io.call(e,Io);try{Oo.call(e,Oo)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function S8(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function dP(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return dP(Dy.call(e,0,t.maxStringLength),t)+n}var i=Ur.call(Ur.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,x8);return uP(i,"single",t)}function x8(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+i8.call(t.toString(16))}function Ka(e){return"Object("+e+")"}function Up(e){return e+" { ? }"}function nx(e,t,r,n){var i=n?om(r,n):Yt.call(r,", ");return e+" ("+t+") {"+i+"}"}function E8(e){for(var t=0;t<e.length;t++)if(fP(e[t],`
899
899
  `)>=0)return!1;return!0}function C8(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Yt.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Yt.call(Array(t+1),r)}}function om(e,t){if(e.length===0)return"";var r=`
900
900
  `+t.prev+t.base;return r+Yt.call(e,","+r)+`
901
- `+t.prev}function As(e,t){var r=am(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=kr(e,i)?t(e[i],e):""}var a=typeof zp=="function"?zp(e):[],o;if(oa){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)kr(e,s)&&(r&&String(Number(s))===s&&s<e.length||oa&&o["$"+s]instanceof Symbol||(lP.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof zp=="function")for(var u=0;u<a.length;u++)sP.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Ay=bn,xa=nr,O8=o8,I8=Ay("%TypeError%"),Rs=Ay("%WeakMap%",!0),Ts=Ay("%Map%",!0),P8=xa("WeakMap.prototype.get",!0),D8=xa("WeakMap.prototype.set",!0),A8=xa("WeakMap.prototype.has",!0),R8=xa("Map.prototype.get",!0),T8=xa("Map.prototype.set",!0),k8=xa("Map.prototype.has",!0),Ry=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},_8=function(e,t){var r=Ry(e,t);return r&&r.value},N8=function(e,t,r){var n=Ry(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},M8=function(e,t){return!!Ry(e,t)},$8=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new I8("Side channel does not contain "+O8(a))},get:function(a){if(Rs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return P8(t,a)}else if(Ts){if(r)return R8(r,a)}else if(n)return _8(n,a)},has:function(a){if(Rs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return A8(t,a)}else if(Ts){if(r)return k8(r,a)}else if(n)return M8(n,a);return!1},set:function(a,o){Rs&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Rs),D8(t,a,o)):Ts?(r||(r=new Ts),T8(r,a,o)):(n||(n={key:{},next:null}),N8(n,a,o))}};return i},L8=Object.prototype.hasOwnProperty,F8=Object.prototype.toString,pP=function(t,r,n){if(F8.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)L8.call(t,o)&&r.call(n,t[o],o,t)},Wp=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],B8=typeof globalThis>"u"?Z:globalThis,vP=function(){for(var t=[],r=0;r<Wp.length;r++)typeof B8[Wp[r]]=="function"&&(t[t.length]=Wp[r]);return t},tc={},j8={get exports(){return tc},set exports(e){tc=e}},Hp,ix;function z8(){if(ix)return Hp;ix=1;var e=bn,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Hp=t,Hp}var ax;function gP(){return ax||(ax=1,function(e){e.exports=z8()}(j8)),tc}var Gp,ox;function U8(){if(ox)return Gp;ox=1;var e=pP,t=vP,r=nr,n=r("Object.prototype.toString"),i=yn(),a=typeof globalThis>"u"?Z:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(h,w){for(var v=0;v<h.length;v+=1)if(h[v]===w)return v;return-1},s=r("String.prototype.slice"),u={},c=gP(),f=Object.getPrototypeOf;i&&c&&f&&e(o,function(p){var h=new a[p];if(Symbol.toStringTag in h){var w=f(h),v=c(w,Symbol.toStringTag);if(!v){var g=f(w);v=c(g,Symbol.toStringTag)}u[p]=v.get}});var d=function(h){var w=!1;return e(u,function(v,g){if(!w)try{w=v.call(h)===g}catch{}}),w};return Gp=function(h){if(!h||typeof h!="object")return!1;if(!i||!(Symbol.toStringTag in h)){var w=s(n(h),8,-1);return l(o,w)>-1}return c?d(h):!1},Gp}var mP=pP,W8=vP,hP=nr,H8=hP("Object.prototype.toString"),yP=yn(),lx=typeof globalThis>"u"?Z:globalThis,G8=W8(),q8=hP("String.prototype.slice"),bP={},qp=gP(),Vp=Object.getPrototypeOf;yP&&qp&&Vp&&mP(G8,function(e){if(typeof lx[e]=="function"){var t=new lx[e];if(Symbol.toStringTag in t){var r=Vp(t),n=qp(r,Symbol.toStringTag);if(!n){var i=Vp(r);n=qp(i,Symbol.toStringTag)}bP[e]=n.get}}});var V8=function(t){var r=!1;return mP(bP,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},Y8=U8(),K8=function(t){return Y8(t)?!yP||!(Symbol.toStringTag in t)?q8(H8(t),8,-1):V8(t):!1},X8=Sy,wP=If(),SP=nr,sx=Object,Q8=SP("Array.prototype.push"),ux=SP("Object.prototype.propertyIsEnumerable"),J8=wP?Object.getOwnPropertySymbols:null,xP=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=sx(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=sx(arguments[i]),o=X8(a),l=wP&&(Object.getOwnPropertySymbols||J8);if(l)for(var s=l(a),u=0;u<s.length;++u){var c=s[u];ux(a,c)&&Q8(o,c)}for(var f=0;f<o.length;++f){var d=o[f];if(ux(a,d)){var p=a[d];n[d]=p}}}return n},Yp=xP,Z8=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},eU=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},EP=function(){return!Object.assign||Z8()||eU()?Yp:Object.assign},tU=ri,rU=EP,nU=function(){var t=rU();return tU(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},iU=ri,aU=aa,oU=xP,CP=EP,lU=nU,sU=aU.apply(CP()),OP=function(t,r){return sU(Object,arguments)};iU(OP,{getPolyfill:CP,implementation:oU,shim:lU});var uU=OP,cx=Sy,fx=BI,dx=x6,px=I6,vx=H6,gx=ZI,mx=Q6,hx=Az,cU=bn,Cr=nr,yx=Bz,la=tm,fU=$8,bx=K8,IP=uU,wx=Cr("Date.prototype.getTime"),Kp=Object.getPrototypeOf,Sx=Cr("Object.prototype.toString"),rc=cU("%Set%",!0),lm=Cr("Map.prototype.has",!0),nc=Cr("Map.prototype.get",!0),xx=Cr("Map.prototype.size",!0),ic=Cr("Set.prototype.add",!0),PP=Cr("Set.prototype.delete",!0),ac=Cr("Set.prototype.has",!0),tu=Cr("Set.prototype.size",!0);function Ex(e,t,r,n){for(var i=la(e),a;(a=i.next())&&!a.done;)if(br(t,a.value,r,n))return PP(e,a.value),!0;return!1}function DP(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function dU(e,t,r,n,i,a){var o=DP(r);if(o!=null)return o;var l=nc(t,o),s=IP({},i,{strict:!1});return typeof l>"u"&&!lm(t,o)||!br(n,l,s,a)?!1:!lm(e,o)&&br(n,l,s,a)}function pU(e,t,r){var n=DP(r);return n??(ac(t,n)&&!ac(e,n))}function Cx(e,t,r,n,i,a){for(var o=la(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,br(r,s,i,a)&&br(n,nc(t,s),i,a))return PP(e,s),!0;return!1}function br(e,t,r,n){var i=r||{};if(i.strict?dx(e,t):e===t)return!0;var a=hx(e),o=hx(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?dx(e,t):e==t;var l=n.has(e),s=n.has(t),u;if(l&&s){if(n.get(e)===n.get(t))return!0}else u={};return l||n.set(e,u),s||n.set(t,u),mU(e,t,i,n)}function Ox(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function vU(e,t,r,n){if(tu(e)!==tu(t))return!1;for(var i=la(e),a=la(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new rc),ic(s,o.value);else if(!ac(t,o.value)){if(r.strict||!pU(e,t,o.value))return!1;s||(s=new rc),ic(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!Ex(s,l.value,r.strict,n))return!1}else if(!r.strict&&!ac(e,l.value)&&!Ex(s,l.value,r.strict,n))return!1;return tu(s)===0}return!0}function gU(e,t,r,n){if(xx(e)!==xx(t))return!1;for(var i=la(e),a=la(t),o,l,s,u,c,f;(o=i.next())&&!o.done;)if(u=o.value[0],c=o.value[1],u&&typeof u=="object")s||(s=new rc),ic(s,u);else if(f=nc(t,u),typeof f>"u"&&!lm(t,u)||!br(c,f,r,n)){if(r.strict||!dU(e,t,u,c,r,n))return!1;s||(s=new rc),ic(s,u)}if(s){for(;(l=a.next())&&!l.done;)if(u=l.value[0],f=l.value[1],u&&typeof u=="object"){if(!Cx(s,e,u,f,r,n))return!1}else if(!r.strict&&(!e.has(u)||!br(nc(e,u),f,r,n))&&!Cx(s,e,u,f,IP({},r,{strict:!1}),n))return!1;return tu(s)===0}return!0}function mU(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||Sx(e)!==Sx(t)||fx(e)!==fx(t))return!1;var o=gx(e),l=gx(t);if(o!==l)return!1;var s=e instanceof Error,u=t instanceof Error;if(s!==u||(s||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=px(e),f=px(t);if(c!==f||(c||f)&&(e.source!==t.source||vx(e)!==vx(t)))return!1;var d=mx(e),p=mx(t);if(d!==p||(d||p)&&wx(e)!==wx(t)||r.strict&&Kp&&Kp(e)!==Kp(t)||bx(e)!==bx(t))return!1;var h=Ox(e),w=Ox(t);if(h!==w)return!1;if(h||w){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var v=cx(e),g=cx(t);if(v.length!==g.length)return!1;for(v.sort(),g.sort(),i=v.length-1;i>=0;i--)if(v[i]!=g[i])return!1;for(i=v.length-1;i>=0;i--)if(a=v[i],!br(e[a],t[a],r,n))return!1;var m=yx(e),y=yx(t);return m!==y?!1:m==="Set"||y==="Set"?vU(e,t,r,n):m==="Map"?gU(e,t,r,n):!0}var d7=function(t,r,n){return br(t,r,n,fU())},hU={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const ll=hU,AP={};for(const e of Object.keys(ll))AP[ll[e]]=e;const $={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var RP=$;for(const e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let l,s;a===i?l=0:t===a?l=(r-n)/o:r===a?l=2+(n-t)/o:n===a&&(l=4+(t-r)/o),l=Math.min(l*60,360),l<0&&(l+=360);const u=(i+a)/2;return a===i?s=0:u<=.5?s=o/(a+i):s=o/(2-a-i),[l,s*100,u*100]};$.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),f=function(d){return(u-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/u,t=f(o),r=f(l),n=f(s),o===u?i=n-r:l===u?i=1/3+t-n:s===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};$.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=$.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]};$.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,l=(1-n-i)/(1-i)||0;return[a*100,o*100,l*100,i*100]};function yU(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}$.rgb.keyword=function(e){const t=AP[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(ll)){const a=ll[i],o=yU(e,a);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return ll[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};$.rgb.lab=function(e){const t=$.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),l=200*(n-i);return[a,o,l]};$.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const l=2*n-i,s=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?o=l+(i-l)*6*a:2*a<1?o=i:3*a<2?o=l+(i-l)*(2/3-a)*6:o=l,s[u]=o*255;return s};$.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,l=n===0?2*i/(a+i):2*r/(n+r);return[t,l*100,o*100]};$.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),l=255*n*(1-r*a),s=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,s,o];case 1:return[l,n,o];case 2:return[o,n,s];case 3:return[o,l,n];case 4:return[s,o,n];case 5:return[n,o,l]}};$.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const l=(2-r)*i;return a=r*i,a/=l<=1?l:2-l,a=a||0,o/=2,[t,a*100,o*100]};$.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),l=1-n;a=6*t-o,o&1&&(a=1-a);const s=r+a*(l-r);let u,c,f;switch(o){default:case 6:case 0:u=l,c=s,f=r;break;case 1:u=s,c=l,f=r;break;case 2:u=r,c=l,f=s;break;case 3:u=r,c=s,f=l;break;case 4:u=s,c=r,f=l;break;case 5:u=l,c=r,f=s;break}return[u*255,c*255,f*255]};$.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),l=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,l*255]};$.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]};$.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const l=a**3,s=i**3,u=o**3;return a=l>.008856?l:(a-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};$.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]};$.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]};$.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?$.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]};$.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};$.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};$.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let l,s;return o<1?l=a/(1-o):l=0,o<=0?s=0:i===t?s=(r-n)/o%6:i===r?s=2+(n-t)/o:s=4+(t-r)/o,s/=6,s%=1,[s*360,o*100,l*100]};$.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};$.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};$.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,l=1-o;let s=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return s=(1-r)*n,[(r*i[0]+s)*255,(r*i[1]+s)*255,(r*i[2]+s)*255]};$.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};$.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};$.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const oc=RP;function bU(){const e={},t=Object.keys(oc);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function wU(e){const t=bU(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(oc[n]);for(let a=i.length,o=0;o<a;o++){const l=i[o],s=t[l];s.distance===-1&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(l))}}return t}function SU(e,t){return function(r){return t(e(r))}}function xU(e,t){const r=[t[e].parent,e];let n=oc[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=SU(oc[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var EU=function(e){const t=wU(e),r={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(r[o]=xU(o,t))}return r};const sm=RP,CU=EU,yi={},OU=Object.keys(sm);function IU(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function PU(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}OU.forEach(e=>{yi[e]={},Object.defineProperty(yi[e],"channels",{value:sm[e].channels}),Object.defineProperty(yi[e],"labels",{value:sm[e].labels});const t=CU(e);Object.keys(t).forEach(n=>{const i=t[n];yi[e][n]=PU(i),yi[e][n].raw=IU(i)})});var DU=yi;const p7=DU,AU="aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5mögensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2",RU="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",sa=(e,t)=>{for(const r in t)e[r]=t[r];return e},um="numeric",cm="ascii",fm="alpha",ru="asciinumeric",ks="alphanumeric",dm="domain",TP="emoji",TU="scheme",kU="slashscheme",Ix="whitespace";function _U(e,t){return e in t||(t[e]=[]),t[e]}function Ln(e,t,r){t[um]&&(t[ru]=!0,t[ks]=!0),t[cm]&&(t[ru]=!0,t[fm]=!0),t[ru]&&(t[ks]=!0),t[fm]&&(t[ks]=!0),t[ks]&&(t[dm]=!0),t[TP]&&(t[dm]=!0);for(const n in t){const i=_U(n,r);i.indexOf(e)<0&&i.push(e)}}function NU(e,t){const r={};for(const n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function ot(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}ot.groups={};ot.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let n=0;n<t.jr.length;n++){const i=t.jr[n][0],a=t.jr[n][1];if(a&&i.test(e))return a}return t.jd},has(e,t){return t===void 0&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){n=n||ot.groups;let i;return t&&t.j?i=t:(i=new ot(t),r&&n&&Ln(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this;const a=e.length;if(!a)return i;for(let o=0;o<a-1;o++)i=i.tt(e[o]);return i.tt(e[a-1],t,r,n)},tt(e,t,r,n){n=n||ot.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const a=t;let o,l=i.go(e);if(l?(o=new ot,sa(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new ot,a){if(n)if(o.t&&typeof o.t=="string"){const s=sa(NU(o.t,n),r);Ln(a,s,n)}else r&&Ln(a,r,n);o.t=a}return i.j[e]=o,o}};const B=(e,t,r,n,i)=>e.ta(t,r,n,i),ht=(e,t,r,n,i)=>e.tr(t,r,n,i),Px=(e,t,r,n,i)=>e.ts(t,r,n,i),D=(e,t,r,n,i)=>e.tt(t,r,n,i),lr="WORD",pm="UWORD",sl="LOCALHOST",vm="TLD",gm="UTLD",nu="SCHEME",bi="SLASH_SCHEME",lc="NUM",kP="WS",Ty="NL",Ai="OPENBRACE",Po="OPENBRACKET",Do="OPENANGLEBRACKET",Ao="OPENPAREN",Dn="CLOSEBRACE",Ri="CLOSEBRACKET",Ti="CLOSEANGLEBRACKET",An="CLOSEPAREN",sc="AMPERSAND",uc="APOSTROPHE",cc="ASTERISK",_r="AT",fc="BACKSLASH",dc="BACKTICK",pc="CARET",$r="COLON",ky="COMMA",vc="DOLLAR",qt="DOT",gc="EQUALS",_y="EXCLAMATION",Vt="HYPHEN",mc="PERCENT",hc="PIPE",yc="PLUS",bc="POUND",wc="QUERY",Ny="QUOTE",My="SEMI",sr="SLASH",Ro="TILDE",Sc="UNDERSCORE",_P="EMOJI",xc="SYM";var NP=Object.freeze({__proto__:null,WORD:lr,UWORD:pm,LOCALHOST:sl,TLD:vm,UTLD:gm,SCHEME:nu,SLASH_SCHEME:bi,NUM:lc,WS:kP,NL:Ty,OPENBRACE:Ai,OPENBRACKET:Po,OPENANGLEBRACKET:Do,OPENPAREN:Ao,CLOSEBRACE:Dn,CLOSEBRACKET:Ri,CLOSEANGLEBRACKET:Ti,CLOSEPAREN:An,AMPERSAND:sc,APOSTROPHE:uc,ASTERISK:cc,AT:_r,BACKSLASH:fc,BACKTICK:dc,CARET:pc,COLON:$r,COMMA:ky,DOLLAR:vc,DOT:qt,EQUALS:gc,EXCLAMATION:_y,HYPHEN:Vt,PERCENT:mc,PIPE:hc,PLUS:yc,POUND:bc,QUERY:wc,QUOTE:Ny,SEMI:My,SLASH:sr,TILDE:Ro,UNDERSCORE:Sc,EMOJI:_P,SYM:xc});const pi=/[a-z]/,Xp=/\p{L}/u,Qp=/\p{Emoji}/u,Jp=/\d/,Dx=/\s/,Ax=`
902
- `,MU="️",$U="‍";let _s=null,Ns=null;function LU(e){e===void 0&&(e=[]);const t={};ot.groups=t;const r=new ot;_s==null&&(_s=Rx(AU)),Ns==null&&(Ns=Rx(RU)),D(r,"'",uc),D(r,"{",Ai),D(r,"[",Po),D(r,"<",Do),D(r,"(",Ao),D(r,"}",Dn),D(r,"]",Ri),D(r,">",Ti),D(r,")",An),D(r,"&",sc),D(r,"*",cc),D(r,"@",_r),D(r,"`",dc),D(r,"^",pc),D(r,":",$r),D(r,",",ky),D(r,"$",vc),D(r,".",qt),D(r,"=",gc),D(r,"!",_y),D(r,"-",Vt),D(r,"%",mc),D(r,"|",hc),D(r,"+",yc),D(r,"#",bc),D(r,"?",wc),D(r,'"',Ny),D(r,"/",sr),D(r,";",My),D(r,"~",Ro),D(r,"_",Sc),D(r,"\\",fc);const n=ht(r,Jp,lc,{[um]:!0});ht(n,Jp,n);const i=ht(r,pi,lr,{[cm]:!0});ht(i,pi,i);const a=ht(r,Xp,pm,{[fm]:!0});ht(a,pi),ht(a,Xp,a);const o=ht(r,Dx,kP,{[Ix]:!0});D(r,Ax,Ty,{[Ix]:!0}),D(o,Ax),ht(o,Dx,o);const l=ht(r,Qp,_P,{[TP]:!0});ht(l,Qp,l),D(l,MU,l);const s=D(l,$U);ht(s,Qp,l);const u=[[pi,i]],c=[[pi,null],[Xp,a]];for(let f=0;f<_s.length;f++)Dr(r,_s[f],vm,lr,u);for(let f=0;f<Ns.length;f++)Dr(r,Ns[f],gm,pm,c);Ln(vm,{tld:!0,ascii:!0},t),Ln(gm,{utld:!0,alpha:!0},t),Dr(r,"file",nu,lr,u),Dr(r,"mailto",nu,lr,u),Dr(r,"http",bi,lr,u),Dr(r,"https",bi,lr,u),Dr(r,"ftp",bi,lr,u),Dr(r,"ftps",bi,lr,u),Ln(nu,{scheme:!0,ascii:!0},t),Ln(bi,{slashscheme:!0,ascii:!0},t),e=e.sort((f,d)=>f[0]>d[0]?1:-1);for(let f=0;f<e.length;f++){const d=e[f][0],h=e[f][1]?{[TU]:!0}:{[kU]:!0};d.indexOf("-")>=0?h[dm]=!0:pi.test(d)?Jp.test(d)?h[ru]=!0:h[cm]=!0:h[um]=!0,Px(r,d,d,h)}return Px(r,"localhost",sl,{ascii:!0}),r.jd=new ot(xc),{start:r,tokens:sa({groups:t},NP)}}function FU(e,t){const r=BU(t.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,i=[];let a=0,o=0;for(;o<n;){let l=e,s=null,u=0,c=null,f=-1,d=-1;for(;o<n&&(s=l.go(r[o]));)l=s,l.accepts()?(f=0,d=0,c=l):f>=0&&(f+=r[o].length,d++),u+=r[o].length,a+=r[o].length,o++;a-=f,o-=d,u-=f,i.push({t:c.t,v:t.slice(a-u,a),s:a-u,e:a})}return i}function BU(e){const t=[],r=e.length;let n=0;for(;n<r;){let i=e.charCodeAt(n),a,o=i<55296||i>56319||n+1===r||(a=e.charCodeAt(n+1))<56320||a>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function Dr(e,t,r,n,i){let a;const o=t.length;for(let l=0;l<o-1;l++){const s=t[l];e.j[s]?a=e.j[s]:(a=new ot(n),a.jr=i.slice(),e.j[s]=a),e=a}return a=new ot(r),a.jr=i.slice(),e.j[t[o-1]]=a,a}function Rx(e){const t=[],r=[];let n=0,i="0123456789";for(;n<e.length;){let a=0;for(;i.indexOf(e[n+a])>=0;)a++;if(a>0){t.push(r.join(""));let o=parseInt(e.substring(n,n+a),10);for(;o>0;o--)r.pop();n+=a}else e[n]==="_"?(t.push(r.join("")),n++):(r.push(e[n]),n++)}return t}const ul={defaultProtocol:"http",events:null,format:Tx,formatHref:Tx,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function $y(e,t){t===void 0&&(t=null);let r=sa({},ul);e&&(r=sa(r,e instanceof $y?e.o:e));const n=r.ignoreTags,i=[];for(let a=0;a<n.length;a++)i.push(n[a].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}$y.prototype={o:ul,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,r){const n=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=r.t in i?i[r.t]:ul[e],typeof i=="function"&&n&&(i=i(t,r))):typeof i=="function"&&n&&(i=i(t,r.t,r)),i)},getObj(e,t,r){let n=this.o[e];return typeof n=="function"&&t!=null&&(n=n(t,r.t,r)),n},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Tx(e){return e}function MP(e,t){this.t="token",this.v=e,this.tk=t}MP.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=ul.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toFormattedHref(e),n=e.get("tagName",r,t),i=this.toFormattedString(e),a={},o=e.get("className",r,t),l=e.get("target",r,t),s=e.get("rel",r,t),u=e.getObj("attributes",r,t),c=e.getObj("events",r,t);return a.href=r,o&&(a.class=o),l&&(a.target=l),s&&(a.rel=s),u&&sa(a,u),{tagName:n,attributes:a,content:i,eventListeners:c}}};function Df(e,t){class r extends MP{constructor(i,a){super(i,a),this.t=e}}for(const n in t)r.prototype[n]=t[n];return r.t=e,r}const kx=Df("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),_x=Df("text"),jU=Df("nl"),xn=Df("url",{isLink:!0,toHref(e){return e===void 0&&(e=ul.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==sl&&e[1].t===$r}}),Ae=e=>new ot(e);function zU(e){let{groups:t}=e;const r=t.domain.concat([sc,cc,_r,fc,dc,pc,vc,gc,Vt,lc,mc,hc,yc,bc,sr,xc,Ro,Sc]),n=[uc,Ti,Dn,Ri,An,$r,ky,qt,_y,Do,Ai,Po,Ao,wc,Ny,My],i=[sc,uc,cc,fc,dc,pc,Dn,vc,gc,Vt,lc,Ai,mc,hc,yc,bc,wc,sr,xc,Ro,Sc],a=Ae(),o=D(a,Ro);B(o,i,o),B(o,t.domain,o);const l=Ae(),s=Ae(),u=Ae();B(a,t.domain,l),B(a,t.scheme,s),B(a,t.slashscheme,u),B(l,i,o),B(l,t.domain,l);const c=D(l,_r);D(o,_r,c),D(s,_r,c),D(u,_r,c);const f=D(o,qt);B(f,i,o),B(f,t.domain,o);const d=Ae();B(c,t.domain,d),B(d,t.domain,d);const p=D(d,qt);B(p,t.domain,d);const h=Ae(kx);B(p,t.tld,h),B(p,t.utld,h),D(c,sl,h);const w=D(d,Vt);B(w,t.domain,d),B(h,t.domain,d),D(h,qt,p),D(h,Vt,w);const v=D(h,$r);B(v,t.numeric,kx);const g=D(l,Vt),m=D(l,qt);B(g,t.domain,l),B(m,i,o),B(m,t.domain,l);const y=Ae(xn);B(m,t.tld,y),B(m,t.utld,y),B(y,t.domain,l),B(y,i,o),D(y,qt,m),D(y,Vt,g),D(y,_r,c);const b=D(y,$r),x=Ae(xn);B(b,t.numeric,x);const S=Ae(xn),E=Ae();B(S,r,S),B(S,n,E),B(E,r,S),B(E,n,E),D(y,sr,S),D(x,sr,S);const O=D(s,$r),I=D(u,$r),T=D(I,sr);D(T,sr,O),B(s,t.domain,l),D(s,qt,m),D(s,Vt,g),B(u,t.domain,l),D(u,qt,m),D(u,Vt,g),B(O,t.domain,S),D(O,sr,S);const _=D(S,Ai),H=D(S,Po),z=D(S,Do),G=D(S,Ao);D(E,Ai,_),D(E,Po,H),D(E,Do,z),D(E,Ao,G),D(_,Dn,S),D(H,Ri,S),D(z,Ti,S),D(G,An,S),D(_,Dn,S);const K=Ae(xn),Q=Ae(xn),ee=Ae(xn),oe=Ae(xn);B(_,r,K),B(H,r,Q),B(z,r,ee),B(G,r,oe);const le=Ae(),ce=Ae(),P=Ae(),k=Ae();return B(_,n),B(H,n),B(z,n),B(G,n),B(K,r,K),B(Q,r,Q),B(ee,r,ee),B(oe,r,oe),B(K,n,K),B(Q,n,Q),B(ee,n,ee),B(oe,n,oe),B(le,r,le),B(ce,r,Q),B(P,r,ee),B(k,r,oe),B(le,n,le),B(ce,n,ce),B(P,n,P),B(k,n,k),D(Q,Ri,S),D(ee,Ti,S),D(oe,An,S),D(K,Dn,S),D(ce,Ri,S),D(P,Ti,S),D(k,An,S),D(le,An,S),D(a,sl,y),D(a,Ty,jU),{start:a,tokens:NP}}function UU(e,t,r){let n=r.length,i=0,a=[],o=[];for(;i<n;){let l=e,s=null,u=null,c=0,f=null,d=-1;for(;i<n&&!(s=l.go(r[i].t));)o.push(r[i++]);for(;i<n&&(u=s||l.go(r[i].t));)s=null,l=u,l.accepts()?(d=0,f=l):d>=0&&d++,i++,c++;if(d<0)i-=c,i<n&&(o.push(r[i]),i++);else{o.length>0&&(a.push(Zp(_x,t,o)),o=[]),i-=d,c-=d;const p=f.t,h=r.slice(i-c,i);a.push(Zp(p,t,h))}}return o.length>0&&a.push(Zp(_x,t,o)),a}function Zp(e,t,r){const n=r[0].s,i=r[r.length-1].e,a=t.slice(n,i);return new e(a,r)}const Ye={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function WU(){Ye.scanner=LU(Ye.customSchemes);for(let e=0;e<Ye.tokenQueue.length;e++)Ye.tokenQueue[e][1]({scanner:Ye.scanner});Ye.parser=zU(Ye.scanner.tokens);for(let e=0;e<Ye.pluginQueue.length;e++)Ye.pluginQueue[e][1]({scanner:Ye.scanner,parser:Ye.parser});Ye.initialized=!0}function HU(e){return Ye.initialized||WU(),UU(Ye.parser.start,e,FU(Ye.scanner.start,e))}function v7(e,t,r){if(t===void 0&&(t=null),r===void 0&&(r=null),t&&typeof t=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}const n=new $y(r),i=HU(e),a=[];for(let o=0;o<i.length;o++){const l=i[o];l.isLink&&(!t||l.t===t)&&a.push(l.toFormattedObject(n))}return a}var $P="Expected a function",Nx=0/0,GU="[object Symbol]",qU=/^\s+|\s+$/g,VU=/^[-+]0x[0-9a-f]+$/i,YU=/^0b[01]+$/i,KU=/^0o[0-7]+$/i,XU=parseInt,QU=typeof Z=="object"&&Z&&Z.Object===Object&&Z,JU=typeof self=="object"&&self&&self.Object===Object&&self,ZU=QU||JU||Function("return this")(),eW=Object.prototype,tW=eW.toString,rW=Math.max,nW=Math.min,ev=function(){return ZU.Date.now()};function iW(e,t,r){var n,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError($P);t=Mx(t)||0,Ec(r)&&(c=!!r.leading,f="maxWait"in r,a=f?rW(Mx(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(S){var E=n,O=i;return n=i=void 0,u=S,o=e.apply(O,E),o}function h(S){return u=S,l=setTimeout(g,t),c?p(S):o}function w(S){var E=S-s,O=S-u,I=t-E;return f?nW(I,a-O):I}function v(S){var E=S-s,O=S-u;return s===void 0||E>=t||E<0||f&&O>=a}function g(){var S=ev();if(v(S))return m(S);l=setTimeout(g,w(S))}function m(S){return l=void 0,d&&n?p(S):(n=i=void 0,o)}function y(){l!==void 0&&clearTimeout(l),u=0,n=s=i=l=void 0}function b(){return l===void 0?o:m(ev())}function x(){var S=ev(),E=v(S);if(n=arguments,i=this,s=S,E){if(l===void 0)return h(s);if(f)return l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),o}return x.cancel=y,x.flush=b,x}function aW(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($P);return Ec(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),iW(e,t,{leading:n,maxWait:t,trailing:i})}function Ec(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oW(e){return!!e&&typeof e=="object"}function lW(e){return typeof e=="symbol"||oW(e)&&tW.call(e)==GU}function Mx(e){if(typeof e=="number")return e;if(lW(e))return Nx;if(Ec(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ec(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(qU,"");var r=YU.test(e);return r||KU.test(e)?XU(e.slice(2),r?2:8):VU.test(e)?Nx:+e}var g7=aW;function sW(...e){return C.useMemo(()=>t=>{e.forEach(r=>r(t))},e)}const Af=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ea(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ly(e){return"nodeType"in e}function Qe(e){var t,r;return e?Ea(e)?e:Ly(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Fy(e){const{Document:t}=Qe(e);return e instanceof t}function Ul(e){return Ea(e)?!1:e instanceof Qe(e).HTMLElement}function uW(e){return e instanceof Qe(e).SVGElement}function Ca(e){return e?Ea(e)?e.document:Ly(e)?Fy(e)?e:Ul(e)?e.ownerDocument:document:document:document}const Dt=Af?C.useLayoutEffect:C.useEffect;function Rf(e){const t=C.useRef(e);return Dt(()=>{t.current=e}),C.useCallback(function(...r){return t.current==null?void 0:t.current(...r)},[])}function cW(){const e=C.useRef(null),t=C.useCallback((n,i)=>{e.current=setInterval(n,i)},[]),r=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function cl(e,t=[e]){const r=C.useRef(e);return Dt(()=>{r.current!==e&&(r.current=e)},t),r}function Wl(e,t){const r=C.useRef();return C.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function Cc(e){const t=Rf(e),r=C.useRef(null),n=C.useCallback(i=>{i!==r.current&&(t==null||t(i,r.current)),r.current=i},[]);return[r,n]}function Oc(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let tv={};function Hl(e,t){return C.useMemo(()=>{if(t)return t;const r=tv[e]==null?0:tv[e]+1;return tv[e]=r,`${e}-${r}`},[e,t])}function LP(e){return(t,...r)=>r.reduce((n,i)=>{const a=Object.entries(i);for(const[o,l]of a){const s=n[o];s!=null&&(n[o]=s+e*l)}return n},{...t})}const Gi=LP(1),Ic=LP(-1);function fW(e){return"clientX"in e&&"clientY"in e}function Tf(e){if(!e)return!1;const{KeyboardEvent:t}=Qe(e.target);return t&&e instanceof t}function dW(e){if(!e)return!1;const{TouchEvent:t}=Qe(e.target);return t&&e instanceof t}function Pc(e){if(dW(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return fW(e)?{x:e.clientX,y:e.clientY}:null}const Vn=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return`translate3d(${t?Math.round(t):0}px, ${r?Math.round(r):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return`scaleX(${t}) scaleY(${r})`}},Transform:{toString(e){if(e)return[Vn.Translate.toString(e),Vn.Scale.toString(e)].join(" ")}},Transition:{toString({property:e,duration:t,easing:r}){return`${e} ${t}ms ${r}`}}}),$x="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pW(e){return e.matches($x)?e:e.querySelector($x)}const vW={display:"none"};function gW(e){let{id:t,value:r}=e;return F.createElement("div",{id:t,style:vW},r)}const mW={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"};function hW(e){let{id:t,announcement:r}=e;return F.createElement("div",{id:t,style:mW,role:"status","aria-live":"assertive","aria-atomic":!0},r)}function yW(){const[e,t]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const FP=C.createContext(null);function bW(e){const t=C.useContext(FP);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wW(){const[e]=C.useState(()=>new Set),t=C.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[C.useCallback(n=>{let{type:i,event:a}=n;e.forEach(o=>{var l;return(l=o[i])==null?void 0:l.call(o,a)})},[e]),t]}const SW={draggable:`
901
+ `+t.prev}function As(e,t){var r=am(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=kr(e,i)?t(e[i],e):""}var a=typeof zp=="function"?zp(e):[],o;if(oa){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)kr(e,s)&&(r&&String(Number(s))===s&&s<e.length||oa&&o["$"+s]instanceof Symbol||(lP.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof zp=="function")for(var u=0;u<a.length;u++)sP.call(e,a[u])&&n.push("["+t(a[u])+"]: "+t(e[a[u]],e));return n}var Ay=bn,xa=nr,O8=o8,I8=Ay("%TypeError%"),Rs=Ay("%WeakMap%",!0),Ts=Ay("%Map%",!0),P8=xa("WeakMap.prototype.get",!0),D8=xa("WeakMap.prototype.set",!0),A8=xa("WeakMap.prototype.has",!0),R8=xa("Map.prototype.get",!0),T8=xa("Map.prototype.set",!0),k8=xa("Map.prototype.has",!0),Ry=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},_8=function(e,t){var r=Ry(e,t);return r&&r.value},N8=function(e,t,r){var n=Ry(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},M8=function(e,t){return!!Ry(e,t)},$8=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new I8("Side channel does not contain "+O8(a))},get:function(a){if(Rs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return P8(t,a)}else if(Ts){if(r)return R8(r,a)}else if(n)return _8(n,a)},has:function(a){if(Rs&&a&&(typeof a=="object"||typeof a=="function")){if(t)return A8(t,a)}else if(Ts){if(r)return k8(r,a)}else if(n)return M8(n,a);return!1},set:function(a,o){Rs&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new Rs),D8(t,a,o)):Ts?(r||(r=new Ts),T8(r,a,o)):(n||(n={key:{},next:null}),N8(n,a,o))}};return i},L8=Object.prototype.hasOwnProperty,F8=Object.prototype.toString,pP=function(t,r,n){if(F8.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)L8.call(t,o)&&r.call(n,t[o],o,t)},Wp=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],B8=typeof globalThis>"u"?Z:globalThis,vP=function(){for(var t=[],r=0;r<Wp.length;r++)typeof B8[Wp[r]]=="function"&&(t[t.length]=Wp[r]);return t},tc={},j8={get exports(){return tc},set exports(e){tc=e}},Hp,ix;function z8(){if(ix)return Hp;ix=1;var e=bn,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return Hp=t,Hp}var ax;function gP(){return ax||(ax=1,function(e){e.exports=z8()}(j8)),tc}var Gp,ox;function U8(){if(ox)return Gp;ox=1;var e=pP,t=vP,r=nr,n=r("Object.prototype.toString"),i=yn(),a=typeof globalThis>"u"?Z:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(h,w){for(var v=0;v<h.length;v+=1)if(h[v]===w)return v;return-1},s=r("String.prototype.slice"),u={},c=gP(),f=Object.getPrototypeOf;i&&c&&f&&e(o,function(p){var h=new a[p];if(Symbol.toStringTag in h){var w=f(h),v=c(w,Symbol.toStringTag);if(!v){var g=f(w);v=c(g,Symbol.toStringTag)}u[p]=v.get}});var d=function(h){var w=!1;return e(u,function(v,g){if(!w)try{w=v.call(h)===g}catch{}}),w};return Gp=function(h){if(!h||typeof h!="object")return!1;if(!i||!(Symbol.toStringTag in h)){var w=s(n(h),8,-1);return l(o,w)>-1}return c?d(h):!1},Gp}var mP=pP,W8=vP,hP=nr,H8=hP("Object.prototype.toString"),yP=yn(),lx=typeof globalThis>"u"?Z:globalThis,G8=W8(),q8=hP("String.prototype.slice"),bP={},qp=gP(),Vp=Object.getPrototypeOf;yP&&qp&&Vp&&mP(G8,function(e){if(typeof lx[e]=="function"){var t=new lx[e];if(Symbol.toStringTag in t){var r=Vp(t),n=qp(r,Symbol.toStringTag);if(!n){var i=Vp(r);n=qp(i,Symbol.toStringTag)}bP[e]=n.get}}});var V8=function(t){var r=!1;return mP(bP,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},Y8=U8(),K8=function(t){return Y8(t)?!yP||!(Symbol.toStringTag in t)?q8(H8(t),8,-1):V8(t):!1},X8=Sy,wP=If(),SP=nr,sx=Object,Q8=SP("Array.prototype.push"),ux=SP("Object.prototype.propertyIsEnumerable"),J8=wP?Object.getOwnPropertySymbols:null,xP=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=sx(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=sx(arguments[i]),o=X8(a),l=wP&&(Object.getOwnPropertySymbols||J8);if(l)for(var s=l(a),u=0;u<s.length;++u){var c=s[u];ux(a,c)&&Q8(o,c)}for(var f=0;f<o.length;++f){var d=o[f];if(ux(a,d)){var p=a[d];n[d]=p}}}return n},Yp=xP,Z8=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},eU=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},EP=function(){return!Object.assign||Z8()||eU()?Yp:Object.assign},tU=ri,rU=EP,nU=function(){var t=rU();return tU(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},iU=ri,aU=aa,oU=xP,CP=EP,lU=nU,sU=aU.apply(CP()),OP=function(t,r){return sU(Object,arguments)};iU(OP,{getPolyfill:CP,implementation:oU,shim:lU});var uU=OP,cx=Sy,fx=BI,dx=x6,px=I6,vx=H6,gx=ZI,mx=Q6,hx=Az,cU=bn,Cr=nr,yx=Bz,la=tm,fU=$8,bx=K8,IP=uU,wx=Cr("Date.prototype.getTime"),Kp=Object.getPrototypeOf,Sx=Cr("Object.prototype.toString"),rc=cU("%Set%",!0),lm=Cr("Map.prototype.has",!0),nc=Cr("Map.prototype.get",!0),xx=Cr("Map.prototype.size",!0),ic=Cr("Set.prototype.add",!0),PP=Cr("Set.prototype.delete",!0),ac=Cr("Set.prototype.has",!0),tu=Cr("Set.prototype.size",!0);function Ex(e,t,r,n){for(var i=la(e),a;(a=i.next())&&!a.done;)if(br(t,a.value,r,n))return PP(e,a.value),!0;return!1}function DP(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function dU(e,t,r,n,i,a){var o=DP(r);if(o!=null)return o;var l=nc(t,o),s=IP({},i,{strict:!1});return typeof l>"u"&&!lm(t,o)||!br(n,l,s,a)?!1:!lm(e,o)&&br(n,l,s,a)}function pU(e,t,r){var n=DP(r);return n??(ac(t,n)&&!ac(e,n))}function Cx(e,t,r,n,i,a){for(var o=la(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,br(r,s,i,a)&&br(n,nc(t,s),i,a))return PP(e,s),!0;return!1}function br(e,t,r,n){var i=r||{};if(i.strict?dx(e,t):e===t)return!0;var a=hx(e),o=hx(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?dx(e,t):e==t;var l=n.has(e),s=n.has(t),u;if(l&&s){if(n.get(e)===n.get(t))return!0}else u={};return l||n.set(e,u),s||n.set(t,u),mU(e,t,i,n)}function Ox(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function vU(e,t,r,n){if(tu(e)!==tu(t))return!1;for(var i=la(e),a=la(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new rc),ic(s,o.value);else if(!ac(t,o.value)){if(r.strict||!pU(e,t,o.value))return!1;s||(s=new rc),ic(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!Ex(s,l.value,r.strict,n))return!1}else if(!r.strict&&!ac(e,l.value)&&!Ex(s,l.value,r.strict,n))return!1;return tu(s)===0}return!0}function gU(e,t,r,n){if(xx(e)!==xx(t))return!1;for(var i=la(e),a=la(t),o,l,s,u,c,f;(o=i.next())&&!o.done;)if(u=o.value[0],c=o.value[1],u&&typeof u=="object")s||(s=new rc),ic(s,u);else if(f=nc(t,u),typeof f>"u"&&!lm(t,u)||!br(c,f,r,n)){if(r.strict||!dU(e,t,u,c,r,n))return!1;s||(s=new rc),ic(s,u)}if(s){for(;(l=a.next())&&!l.done;)if(u=l.value[0],f=l.value[1],u&&typeof u=="object"){if(!Cx(s,e,u,f,r,n))return!1}else if(!r.strict&&(!e.has(u)||!br(nc(e,u),f,r,n))&&!Cx(s,e,u,f,IP({},r,{strict:!1}),n))return!1;return tu(s)===0}return!0}function mU(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||Sx(e)!==Sx(t)||fx(e)!==fx(t))return!1;var o=gx(e),l=gx(t);if(o!==l)return!1;var s=e instanceof Error,u=t instanceof Error;if(s!==u||(s||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=px(e),f=px(t);if(c!==f||(c||f)&&(e.source!==t.source||vx(e)!==vx(t)))return!1;var d=mx(e),p=mx(t);if(d!==p||(d||p)&&wx(e)!==wx(t)||r.strict&&Kp&&Kp(e)!==Kp(t)||bx(e)!==bx(t))return!1;var h=Ox(e),w=Ox(t);if(h!==w)return!1;if(h||w){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var v=cx(e),g=cx(t);if(v.length!==g.length)return!1;for(v.sort(),g.sort(),i=v.length-1;i>=0;i--)if(v[i]!=g[i])return!1;for(i=v.length-1;i>=0;i--)if(a=v[i],!br(e[a],t[a],r,n))return!1;var m=yx(e),y=yx(t);return m!==y?!1:m==="Set"||y==="Set"?vU(e,t,r,n):m==="Map"?gU(e,t,r,n):!0}var d7=function(t,r,n){return br(t,r,n,fU())};const hU="aaa1rp3barth4b_ott3vie4c1le2ogado5udhabi7c_ademy5centure6ountant_s9o1tor4d_s1ult4e_g1ro2tna4f_l1rica5g_akhan5ency5i_g1rbus3force5tel5kdn3l_faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m_azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o_l2partments8p_le4q_uarelle8r_ab1mco4chi3my2pa2t_e3s_da2ia2sociates9t_hleta5torney7u_ction5di_ble3o3spost5thor3o_s4vianca6w_s2x_a2z_ure5ba_by2idu3namex3narepublic11d1k2r_celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b_c1t1va3cg1n2d1e_ats2uty4er2ntley5rlin4st_buy5t2f1g1h_arti5i_ble3d1ke2ng_o3o1z2j1lack_friday9ockbuster8g1omberg7ue3m_s1w2n_pparibas9o_ats3ehringer8fa2m1nd2o_k_ing5sch2tik2on4t1utique6x2r_adesco6idgestone9oadway5ker3ther5ussels7s1t1uild_ers6siness6y1zz3v1w1y1z_h3ca_b1fe2l_l1vinklein9m_era3p2non3petown5ital_one8r_avan4ds2e_er_s4s2sa1e1h1ino4t_ering5holic7ba1n1re2s2c1d1enter4o1rn3f_a1d2g1h_anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i_priani6rcle4sco3tadel4i_c2y_eats7k1l_aims4eaning6ick2nic1que6othing5ud3ub_med6m1n1o_ach3des3ffee4llege4ogne5m_cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking_channel11l1p2rsica5untry4pon_s4rses6pa2r_edit_card4union9icket5own3s1uise_s6u_isinella9v1w1x1y_mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e_al_er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si_gn4v2hl2iamonds6et2gital5rect_ory7scount3ver5h2y2j1k1m1np2o_cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c_o2deka3u_cation8e1g1mail3erck5nergy4gineer_ing9terprises10pson4quipment8r_icsson6ni3s_q1tate5t_isalat7u_rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n_s2rm_ers5shion4t3edex3edback6rrari3ero6i_at2delity5o2lm2nal1nce1ial7re_stone6mdale6sh_ing5t_ness6j1k1lickr3ghts4r2orist4wers5y2m1o_o_d_network8tball6rd1ex2sale4um3undation8x2r_ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n_d2rniture7tbol5yi3ga_l_lery3o1up4me_s3p1rden4y2b_iz3d_n2e_a1nt_ing5orge5f1g_ee3h1i_ft_s3ves2ing5l_ass3e1obal2o4m_ail3bh2o1x2n1odaddy5ld_point6f2o_dyear5g_le4p1t1v2p1q1r_ainger5phics5tis4een3ipe3ocery4up4s1t1u_ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc_bank7ealth_care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k_t2m1n1ockey4ldings5iday5medepot5goods5s_ense7nda3rse3spital5t_ing5t_eles2s3mail5use3w2r1sbc3t1u_ghes5yatt3undai7ibm2cbc2e1u2d1e_ee3fm2kano4l1m_amat4db2mo_bilien9n_c1dustries8finiti5o2g1k1stitute6urance4e4t_ernational10uit4vestments10o1piranga7q1r_ish4s_maili5t_anbul7t_au2v3jaguar4va3cb2e_ep2tzt3welry6io2ll2m_p2nj2o_bs1urg4t1y2p_morgan6rs3uegos4niper7kaufen5ddi3e_rryhotels6logistics9properties14fh2g1h1i_a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p_mg2n2r_d1ed3uokgroup8w1y_oto4z2la_caixa5mborghini8er3ncaster5ia3d_rover6xess5salle5t_ino3robe5w_yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i_dl2fe_insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan_s3cker3us3l1ndon4tte1o3ve3pl_financial11r1s1t_d_a3u_ndbeck6xe1ury5v1y2ma_cys3drid4if1son4keup4n_agement7go3p1rket_ing3s4riott5shalls7serati6ttel5ba2c_kinsey7d1e_d_ia3et2lbourne7me1orial6n_u2rckmsd7g1h1iami3crosoft7l1ni1t2t_subishi9k1l_b1s2m_a2n1o_bi_le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to_rcycles9v_ie4p1q1r1s_d2t_n1r2u_seum3ic3tual5v1w1x1y1z2na_b1goya4me2tura4vy3ba2c1e_c1t_bank4flix4work5ustar5w_s2xt_direct7us4f_l2g_o2hk2i_co2ke1on3nja3ssan1y5l1o_kia3rthwesternmutual14on4w_ruz3tv4p1r_a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan_group9dnavy5lo3m_ega4ne1g1l_ine5oo2pen3racle3nge4g_anic5igins6saka4tsuka4t2vh3pa_ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e_t2f_izer5g1h_armacy6d1ilips5one2to_graphy6s4ysio5ics1tet2ures6d1n_g1k2oneer5zza4k1l_ace2y_station9umbing5s3m1n_c2ohl2ker3litie5rn2st3r_america6xi3ess3ime3o_d_uctions8f1gressive8mo2perties3y5tection8u_dential9s1t1ub2w_c2y2qa1pon3uebec3st5racing4dio4e_ad1lestate6tor2y4cipes5d_stone5umbrella9hab3ise_n3t2liance6n_t_als5pair3ort3ublican8st_aurant8view_s5xroth6ich_ardli6oh3l1o1p2o_cher3ks3deo3gers4om3s_vp3u_gby3hr2n2w_e2yukyu6sa_arland6fe_ty4kura4le1on3msclub4ung5ndvik_coromant12ofi4p1rl2s1ve2xo3b_i1s2c_a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e_arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x_y3fr2g1h_angrila6rp2w2ell3ia1ksha5oes2p_ping5uji3w_time7i_lk2na1gles5te3j1k_i_n2y_pe4l_ing4m_art3ile4n_cf3o_ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa_ce3ort2t3r_l2s1t_ada2ples4r1tebank4farm7c_group6ockholm6rage3e3ream4udio2y3yle4u_cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y_dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x_i3c_i2d_k2eam2ch_nology8l1masek5nnis4va3f1g1h_d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j_maxx4x2k_maxx5l1m_all4n1o_day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r_ade1ing4ining5vel_channel7ers_insurance16ust3v2t1ube2i1nes3shu4v_s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va_cations7na1guard7c1e_gas3ntures6risign5mögensberater2ung14sicherung10t2g1i_ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u_elos6wales2mart4ter4ng_gou5tch_es6eather_channel12bcam3er2site5d_ding5ibo2r3f1hoswho6ien2ki2lliamhill9n_dows4e1ners6me2olterskluwer11odside6rk_s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u_tube6t1un3za_ppos4ra3ero3ip2m1one3uerich6w2",yU="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत_म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里_大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",sa=(e,t)=>{for(const r in t)e[r]=t[r];return e},sm="numeric",um="ascii",cm="alpha",ru="asciinumeric",ks="alphanumeric",fm="domain",AP="emoji",bU="scheme",wU="slashscheme",Ix="whitespace";function SU(e,t){return e in t||(t[e]=[]),t[e]}function Ln(e,t,r){t[sm]&&(t[ru]=!0,t[ks]=!0),t[um]&&(t[ru]=!0,t[cm]=!0),t[ru]&&(t[ks]=!0),t[cm]&&(t[ks]=!0),t[ks]&&(t[fm]=!0),t[AP]&&(t[fm]=!0);for(const n in t){const i=SU(n,r);i.indexOf(e)<0&&i.push(e)}}function xU(e,t){const r={};for(const n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}function ot(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}ot.groups={};ot.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let n=0;n<t.jr.length;n++){const i=t.jr[n][0],a=t.jr[n][1];if(a&&i.test(e))return a}return t.jd},has(e,t){return t===void 0&&(t=!1),t?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){n=n||ot.groups;let i;return t&&t.j?i=t:(i=new ot(t),r&&n&&Ln(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this;const a=e.length;if(!a)return i;for(let o=0;o<a-1;o++)i=i.tt(e[o]);return i.tt(e[a-1],t,r,n)},tt(e,t,r,n){n=n||ot.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const a=t;let o,l=i.go(e);if(l?(o=new ot,sa(o.j,l.j),o.jr.push.apply(o.jr,l.jr),o.jd=l.jd,o.t=l.t):o=new ot,a){if(n)if(o.t&&typeof o.t=="string"){const s=sa(xU(o.t,n),r);Ln(a,s,n)}else r&&Ln(a,r,n);o.t=a}return i.j[e]=o,o}};const B=(e,t,r,n,i)=>e.ta(t,r,n,i),ht=(e,t,r,n,i)=>e.tr(t,r,n,i),Px=(e,t,r,n,i)=>e.ts(t,r,n,i),D=(e,t,r,n,i)=>e.tt(t,r,n,i),lr="WORD",dm="UWORD",ll="LOCALHOST",pm="TLD",vm="UTLD",nu="SCHEME",yi="SLASH_SCHEME",oc="NUM",RP="WS",Ty="NL",Ai="OPENBRACE",Po="OPENBRACKET",Do="OPENANGLEBRACKET",Ao="OPENPAREN",Dn="CLOSEBRACE",Ri="CLOSEBRACKET",Ti="CLOSEANGLEBRACKET",An="CLOSEPAREN",lc="AMPERSAND",sc="APOSTROPHE",uc="ASTERISK",_r="AT",cc="BACKSLASH",fc="BACKTICK",dc="CARET",$r="COLON",ky="COMMA",pc="DOLLAR",qt="DOT",vc="EQUALS",_y="EXCLAMATION",Vt="HYPHEN",gc="PERCENT",mc="PIPE",hc="PLUS",yc="POUND",bc="QUERY",Ny="QUOTE",My="SEMI",sr="SLASH",Ro="TILDE",wc="UNDERSCORE",TP="EMOJI",Sc="SYM";var kP=Object.freeze({__proto__:null,WORD:lr,UWORD:dm,LOCALHOST:ll,TLD:pm,UTLD:vm,SCHEME:nu,SLASH_SCHEME:yi,NUM:oc,WS:RP,NL:Ty,OPENBRACE:Ai,OPENBRACKET:Po,OPENANGLEBRACKET:Do,OPENPAREN:Ao,CLOSEBRACE:Dn,CLOSEBRACKET:Ri,CLOSEANGLEBRACKET:Ti,CLOSEPAREN:An,AMPERSAND:lc,APOSTROPHE:sc,ASTERISK:uc,AT:_r,BACKSLASH:cc,BACKTICK:fc,CARET:dc,COLON:$r,COMMA:ky,DOLLAR:pc,DOT:qt,EQUALS:vc,EXCLAMATION:_y,HYPHEN:Vt,PERCENT:gc,PIPE:mc,PLUS:hc,POUND:yc,QUERY:bc,QUOTE:Ny,SEMI:My,SLASH:sr,TILDE:Ro,UNDERSCORE:wc,EMOJI:TP,SYM:Sc});const pi=/[a-z]/,Xp=/\p{L}/u,Qp=/\p{Emoji}/u,Jp=/\d/,Dx=/\s/,Ax=`
902
+ `,EU="️",CU="‍";let _s=null,Ns=null;function OU(e){e===void 0&&(e=[]);const t={};ot.groups=t;const r=new ot;_s==null&&(_s=Rx(hU)),Ns==null&&(Ns=Rx(yU)),D(r,"'",sc),D(r,"{",Ai),D(r,"[",Po),D(r,"<",Do),D(r,"(",Ao),D(r,"}",Dn),D(r,"]",Ri),D(r,">",Ti),D(r,")",An),D(r,"&",lc),D(r,"*",uc),D(r,"@",_r),D(r,"`",fc),D(r,"^",dc),D(r,":",$r),D(r,",",ky),D(r,"$",pc),D(r,".",qt),D(r,"=",vc),D(r,"!",_y),D(r,"-",Vt),D(r,"%",gc),D(r,"|",mc),D(r,"+",hc),D(r,"#",yc),D(r,"?",bc),D(r,'"',Ny),D(r,"/",sr),D(r,";",My),D(r,"~",Ro),D(r,"_",wc),D(r,"\\",cc);const n=ht(r,Jp,oc,{[sm]:!0});ht(n,Jp,n);const i=ht(r,pi,lr,{[um]:!0});ht(i,pi,i);const a=ht(r,Xp,dm,{[cm]:!0});ht(a,pi),ht(a,Xp,a);const o=ht(r,Dx,RP,{[Ix]:!0});D(r,Ax,Ty,{[Ix]:!0}),D(o,Ax),ht(o,Dx,o);const l=ht(r,Qp,TP,{[AP]:!0});ht(l,Qp,l),D(l,EU,l);const s=D(l,CU);ht(s,Qp,l);const u=[[pi,i]],c=[[pi,null],[Xp,a]];for(let f=0;f<_s.length;f++)Dr(r,_s[f],pm,lr,u);for(let f=0;f<Ns.length;f++)Dr(r,Ns[f],vm,dm,c);Ln(pm,{tld:!0,ascii:!0},t),Ln(vm,{utld:!0,alpha:!0},t),Dr(r,"file",nu,lr,u),Dr(r,"mailto",nu,lr,u),Dr(r,"http",yi,lr,u),Dr(r,"https",yi,lr,u),Dr(r,"ftp",yi,lr,u),Dr(r,"ftps",yi,lr,u),Ln(nu,{scheme:!0,ascii:!0},t),Ln(yi,{slashscheme:!0,ascii:!0},t),e=e.sort((f,d)=>f[0]>d[0]?1:-1);for(let f=0;f<e.length;f++){const d=e[f][0],h=e[f][1]?{[bU]:!0}:{[wU]:!0};d.indexOf("-")>=0?h[fm]=!0:pi.test(d)?Jp.test(d)?h[ru]=!0:h[um]=!0:h[sm]=!0,Px(r,d,d,h)}return Px(r,"localhost",ll,{ascii:!0}),r.jd=new ot(Sc),{start:r,tokens:sa({groups:t},kP)}}function IU(e,t){const r=PU(t.replace(/[A-Z]/g,l=>l.toLowerCase())),n=r.length,i=[];let a=0,o=0;for(;o<n;){let l=e,s=null,u=0,c=null,f=-1,d=-1;for(;o<n&&(s=l.go(r[o]));)l=s,l.accepts()?(f=0,d=0,c=l):f>=0&&(f+=r[o].length,d++),u+=r[o].length,a+=r[o].length,o++;a-=f,o-=d,u-=f,i.push({t:c.t,v:t.slice(a-u,a),s:a-u,e:a})}return i}function PU(e){const t=[],r=e.length;let n=0;for(;n<r;){let i=e.charCodeAt(n),a,o=i<55296||i>56319||n+1===r||(a=e.charCodeAt(n+1))<56320||a>57343?e[n]:e.slice(n,n+2);t.push(o),n+=o.length}return t}function Dr(e,t,r,n,i){let a;const o=t.length;for(let l=0;l<o-1;l++){const s=t[l];e.j[s]?a=e.j[s]:(a=new ot(n),a.jr=i.slice(),e.j[s]=a),e=a}return a=new ot(r),a.jr=i.slice(),e.j[t[o-1]]=a,a}function Rx(e){const t=[],r=[];let n=0,i="0123456789";for(;n<e.length;){let a=0;for(;i.indexOf(e[n+a])>=0;)a++;if(a>0){t.push(r.join(""));let o=parseInt(e.substring(n,n+a),10);for(;o>0;o--)r.pop();n+=a}else e[n]==="_"?(t.push(r.join("")),n++):(r.push(e[n]),n++)}return t}const sl={defaultProtocol:"http",events:null,format:Tx,formatHref:Tx,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function $y(e,t){t===void 0&&(t=null);let r=sa({},sl);e&&(r=sa(r,e instanceof $y?e.o:e));const n=r.ignoreTags,i=[];for(let a=0;a<n.length;a++)i.push(n[a].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}$y.prototype={o:sl,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,r){const n=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=r.t in i?i[r.t]:sl[e],typeof i=="function"&&n&&(i=i(t,r))):typeof i=="function"&&n&&(i=i(t,r.t,r)),i)},getObj(e,t,r){let n=this.o[e];return typeof n=="function"&&t!=null&&(n=n(t,r.t,r)),n},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function Tx(e){return e}function _P(e,t){this.t="token",this.v=e,this.tk=t}_P.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e){return e===void 0&&(e=sl.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toFormattedHref(e),n=e.get("tagName",r,t),i=this.toFormattedString(e),a={},o=e.get("className",r,t),l=e.get("target",r,t),s=e.get("rel",r,t),u=e.getObj("attributes",r,t),c=e.getObj("events",r,t);return a.href=r,o&&(a.class=o),l&&(a.target=l),s&&(a.rel=s),u&&sa(a,u),{tagName:n,attributes:a,content:i,eventListeners:c}}};function Df(e,t){class r extends _P{constructor(i,a){super(i,a),this.t=e}}for(const n in t)r.prototype[n]=t[n];return r.t=e,r}const kx=Df("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),_x=Df("text"),DU=Df("nl"),xn=Df("url",{isLink:!0,toHref(e){return e===void 0&&(e=sl.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==ll&&e[1].t===$r}}),Ae=e=>new ot(e);function AU(e){let{groups:t}=e;const r=t.domain.concat([lc,uc,_r,cc,fc,dc,pc,vc,Vt,oc,gc,mc,hc,yc,sr,Sc,Ro,wc]),n=[sc,Ti,Dn,Ri,An,$r,ky,qt,_y,Do,Ai,Po,Ao,bc,Ny,My],i=[lc,sc,uc,cc,fc,dc,Dn,pc,vc,Vt,oc,Ai,gc,mc,hc,yc,bc,sr,Sc,Ro,wc],a=Ae(),o=D(a,Ro);B(o,i,o),B(o,t.domain,o);const l=Ae(),s=Ae(),u=Ae();B(a,t.domain,l),B(a,t.scheme,s),B(a,t.slashscheme,u),B(l,i,o),B(l,t.domain,l);const c=D(l,_r);D(o,_r,c),D(s,_r,c),D(u,_r,c);const f=D(o,qt);B(f,i,o),B(f,t.domain,o);const d=Ae();B(c,t.domain,d),B(d,t.domain,d);const p=D(d,qt);B(p,t.domain,d);const h=Ae(kx);B(p,t.tld,h),B(p,t.utld,h),D(c,ll,h);const w=D(d,Vt);B(w,t.domain,d),B(h,t.domain,d),D(h,qt,p),D(h,Vt,w);const v=D(h,$r);B(v,t.numeric,kx);const g=D(l,Vt),m=D(l,qt);B(g,t.domain,l),B(m,i,o),B(m,t.domain,l);const y=Ae(xn);B(m,t.tld,y),B(m,t.utld,y),B(y,t.domain,l),B(y,i,o),D(y,qt,m),D(y,Vt,g),D(y,_r,c);const b=D(y,$r),x=Ae(xn);B(b,t.numeric,x);const S=Ae(xn),E=Ae();B(S,r,S),B(S,n,E),B(E,r,S),B(E,n,E),D(y,sr,S),D(x,sr,S);const O=D(s,$r),I=D(u,$r),T=D(I,sr);D(T,sr,O),B(s,t.domain,l),D(s,qt,m),D(s,Vt,g),B(u,t.domain,l),D(u,qt,m),D(u,Vt,g),B(O,t.domain,S),D(O,sr,S);const _=D(S,Ai),H=D(S,Po),z=D(S,Do),G=D(S,Ao);D(E,Ai,_),D(E,Po,H),D(E,Do,z),D(E,Ao,G),D(_,Dn,S),D(H,Ri,S),D(z,Ti,S),D(G,An,S),D(_,Dn,S);const K=Ae(xn),Q=Ae(xn),ee=Ae(xn),oe=Ae(xn);B(_,r,K),B(H,r,Q),B(z,r,ee),B(G,r,oe);const le=Ae(),ce=Ae(),P=Ae(),k=Ae();return B(_,n),B(H,n),B(z,n),B(G,n),B(K,r,K),B(Q,r,Q),B(ee,r,ee),B(oe,r,oe),B(K,n,K),B(Q,n,Q),B(ee,n,ee),B(oe,n,oe),B(le,r,le),B(ce,r,Q),B(P,r,ee),B(k,r,oe),B(le,n,le),B(ce,n,ce),B(P,n,P),B(k,n,k),D(Q,Ri,S),D(ee,Ti,S),D(oe,An,S),D(K,Dn,S),D(ce,Ri,S),D(P,Ti,S),D(k,An,S),D(le,An,S),D(a,ll,y),D(a,Ty,DU),{start:a,tokens:kP}}function RU(e,t,r){let n=r.length,i=0,a=[],o=[];for(;i<n;){let l=e,s=null,u=null,c=0,f=null,d=-1;for(;i<n&&!(s=l.go(r[i].t));)o.push(r[i++]);for(;i<n&&(u=s||l.go(r[i].t));)s=null,l=u,l.accepts()?(d=0,f=l):d>=0&&d++,i++,c++;if(d<0)i-=c,i<n&&(o.push(r[i]),i++);else{o.length>0&&(a.push(Zp(_x,t,o)),o=[]),i-=d,c-=d;const p=f.t,h=r.slice(i-c,i);a.push(Zp(p,t,h))}}return o.length>0&&a.push(Zp(_x,t,o)),a}function Zp(e,t,r){const n=r[0].s,i=r[r.length-1].e,a=t.slice(n,i);return new e(a,r)}const Ye={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function TU(){Ye.scanner=OU(Ye.customSchemes);for(let e=0;e<Ye.tokenQueue.length;e++)Ye.tokenQueue[e][1]({scanner:Ye.scanner});Ye.parser=AU(Ye.scanner.tokens);for(let e=0;e<Ye.pluginQueue.length;e++)Ye.pluginQueue[e][1]({scanner:Ye.scanner,parser:Ye.parser});Ye.initialized=!0}function kU(e){return Ye.initialized||TU(),RU(Ye.parser.start,e,IU(Ye.scanner.start,e))}function p7(e,t,r){if(t===void 0&&(t=null),r===void 0&&(r=null),t&&typeof t=="object"){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}const n=new $y(r),i=kU(e),a=[];for(let o=0;o<i.length;o++){const l=i[o];l.isLink&&(!t||l.t===t)&&a.push(l.toFormattedObject(n))}return a}var _U={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const ul=_U,NP={};for(const e of Object.keys(ul))NP[ul[e]]=e;const $={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var MP=$;for(const e of Object.keys($)){if(!("channels"in $[e]))throw new Error("missing channels property: "+e);if(!("labels"in $[e]))throw new Error("missing channel labels property: "+e);if($[e].labels.length!==$[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:r}=$[e];delete $[e].channels,delete $[e].labels,Object.defineProperty($[e],"channels",{value:t}),Object.defineProperty($[e],"labels",{value:r})}$.rgb.hsl=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i;let l,s;a===i?l=0:t===a?l=(r-n)/o:r===a?l=2+(n-t)/o:n===a&&(l=4+(t-r)/o),l=Math.min(l*60,360),l<0&&(l+=360);const u=(i+a)/2;return a===i?s=0:u<=.5?s=o/(a+i):s=o/(2-a-i),[l,s*100,u*100]};$.rgb.hsv=function(e){let t,r,n,i,a;const o=e[0]/255,l=e[1]/255,s=e[2]/255,u=Math.max(o,l,s),c=u-Math.min(o,l,s),f=function(d){return(u-d)/6/c+1/2};return c===0?(i=0,a=0):(a=c/u,t=f(o),r=f(l),n=f(s),o===u?i=n-r:l===u?i=1/3+t-n:s===u&&(i=2/3+r-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};$.rgb.hwb=function(e){const t=e[0],r=e[1];let n=e[2];const i=$.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[i,a*100,n*100]};$.rgb.cmyk=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(1-t,1-r,1-n),a=(1-t-i)/(1-i)||0,o=(1-r-i)/(1-i)||0,l=(1-n-i)/(1-i)||0;return[a*100,o*100,l*100,i*100]};function NU(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}$.rgb.keyword=function(e){const t=NP[e];if(t)return t;let r=1/0,n;for(const i of Object.keys(ul)){const a=ul[i],o=NU(e,a);o<r&&(r=o,n=i)}return n};$.keyword.rgb=function(e){return ul[e]};$.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;const i=t*.4124+r*.3576+n*.1805,a=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[i*100,a*100,o*100]};$.rgb.lab=function(e){const t=$.rgb.xyz(e);let r=t[0],n=t[1],i=t[2];r/=95.047,n/=100,i/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*n-16,o=500*(r-n),l=200*(n-i);return[a,o,l]};$.hsl.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;let i,a,o;if(r===0)return o=n*255,[o,o,o];n<.5?i=n*(1+r):i=n+r-n*r;const l=2*n-i,s=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?o=l+(i-l)*6*a:2*a<1?o=i:3*a<2?o=l+(i-l)*(2/3-a)*6:o=l,s[u]=o*255;return s};$.hsl.hsv=function(e){const t=e[0];let r=e[1]/100,n=e[2]/100,i=r;const a=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,i*=a<=1?a:2-a;const o=(n+r)/2,l=n===0?2*i/(a+i):2*r/(n+r);return[t,l*100,o*100]};$.hsv.rgb=function(e){const t=e[0]/60,r=e[1]/100;let n=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),o=255*n*(1-r),l=255*n*(1-r*a),s=255*n*(1-r*(1-a));switch(n*=255,i){case 0:return[n,s,o];case 1:return[l,n,o];case 2:return[o,n,s];case 3:return[o,l,n];case 4:return[s,o,n];case 5:return[n,o,l]}};$.hsv.hsl=function(e){const t=e[0],r=e[1]/100,n=e[2]/100,i=Math.max(n,.01);let a,o;o=(2-r)*n;const l=(2-r)*i;return a=r*i,a/=l<=1?l:2-l,a=a||0,o/=2,[t,a*100,o*100]};$.hwb.rgb=function(e){const t=e[0]/360;let r=e[1]/100,n=e[2]/100;const i=r+n;let a;i>1&&(r/=i,n/=i);const o=Math.floor(6*t),l=1-n;a=6*t-o,o&1&&(a=1-a);const s=r+a*(l-r);let u,c,f;switch(o){default:case 6:case 0:u=l,c=s,f=r;break;case 1:u=s,c=l,f=r;break;case 2:u=r,c=l,f=s;break;case 3:u=r,c=s,f=l;break;case 4:u=s,c=r,f=l;break;case 5:u=l,c=r,f=s;break}return[u*255,c*255,f*255]};$.cmyk.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),o=1-Math.min(1,r*(1-i)+i),l=1-Math.min(1,n*(1-i)+i);return[a*255,o*255,l*255]};$.xyz.rgb=function(e){const t=e[0]/100,r=e[1]/100,n=e[2]/100;let i,a,o;return i=t*3.2406+r*-1.5372+n*-.4986,a=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),o=Math.min(Math.max(0,o),1),[i*255,a*255,o*255]};$.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;const i=116*r-16,a=500*(t-r),o=200*(r-n);return[i,a,o]};$.lab.xyz=function(e){const t=e[0],r=e[1],n=e[2];let i,a,o;a=(t+16)/116,i=r/500+a,o=a-n/200;const l=a**3,s=i**3,u=o**3;return a=l>.008856?l:(a-16/116)/7.787,i=s>.008856?s:(i-16/116)/7.787,o=u>.008856?u:(o-16/116)/7.787,i*=95.047,a*=100,o*=108.883,[i,a,o]};$.lab.lch=function(e){const t=e[0],r=e[1],n=e[2];let i;i=Math.atan2(n,r)*360/2/Math.PI,i<0&&(i+=360);const o=Math.sqrt(r*r+n*n);return[t,o,i]};$.lch.lab=function(e){const t=e[0],r=e[1],i=e[2]/360*2*Math.PI,a=r*Math.cos(i),o=r*Math.sin(i);return[t,a,o]};$.rgb.ansi16=function(e,t=null){const[r,n,i]=e;let a=t===null?$.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return a===2&&(o+=60),o};$.hsv.ansi16=function(e){return $.rgb.ansi16($.hsv.rgb(e),e[2])};$.rgb.ansi256=function(e){const t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};$.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const r=(~~(e>50)+1)*.5,n=(t&1)*r*255,i=(t>>1&1)*r*255,a=(t>>2&1)*r*255;return[n,i,a]};$.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[r,n,i]};$.rgb.hex=function(e){const r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};$.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(l=>l+l).join(""));const n=parseInt(r,16),i=n>>16&255,a=n>>8&255,o=n&255;return[i,a,o]};$.rgb.hcg=function(e){const t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(Math.max(t,r),n),a=Math.min(Math.min(t,r),n),o=i-a;let l,s;return o<1?l=a/(1-o):l=0,o<=0?s=0:i===t?s=(r-n)/o%6:i===r?s=2+(n-t)/o:s=4+(t-r)/o,s/=6,s%=1,[s*360,o*100,l*100]};$.hsl.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r);let i=0;return n<1&&(i=(r-.5*n)/(1-n)),[e[0],n*100,i*100]};$.hsv.hcg=function(e){const t=e[1]/100,r=e[2]/100,n=t*r;let i=0;return n<1&&(i=(r-n)/(1-n)),[e[0],n*100,i*100]};$.hcg.rgb=function(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];const i=[0,0,0],a=t%1*6,o=a%1,l=1-o;let s=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=o,i[2]=0;break;case 1:i[0]=l,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=o;break;case 3:i[0]=0,i[1]=l,i[2]=1;break;case 4:i[0]=o,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=l}return s=(1-r)*n,[(r*i[0]+s)*255,(r*i[1]+s)*255,(r*i[2]+s)*255]};$.hcg.hsv=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);let i=0;return n>0&&(i=t/n),[e[0],i*100,n*100]};$.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],i*100,n*100]};$.hcg.hwb=function(e){const t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};$.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let a=0;return i<1&&(a=(n-i)/(1-i)),[e[0],i*100,a*100]};$.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};$.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};$.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};$.gray.hsl=function(e){return[0,0,e[0]]};$.gray.hsv=$.gray.hsl;$.gray.hwb=function(e){return[0,100,e[0]]};$.gray.cmyk=function(e){return[0,0,0,e[0]]};$.gray.lab=function(e){return[e[0],0,0]};$.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};$.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const xc=MP;function MU(){const e={},t=Object.keys(xc);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function $U(e){const t=MU(),r=[e];for(t[e].distance=0;r.length;){const n=r.pop(),i=Object.keys(xc[n]);for(let a=i.length,o=0;o<a;o++){const l=i[o],s=t[l];s.distance===-1&&(s.distance=t[n].distance+1,s.parent=n,r.unshift(l))}}return t}function LU(e,t){return function(r){return t(e(r))}}function FU(e,t){const r=[t[e].parent,e];let n=xc[t[e].parent][e],i=t[e].parent;for(;t[i].parent;)r.unshift(t[i].parent),n=LU(xc[t[i].parent][i],n),i=t[i].parent;return n.conversion=r,n}var BU=function(e){const t=$U(e),r={},n=Object.keys(t);for(let i=n.length,a=0;a<i;a++){const o=n[a];t[o].parent!==null&&(r[o]=FU(o,t))}return r};const gm=MP,jU=BU,bi={},zU=Object.keys(gm);function UU(e){const t=function(...r){const n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function WU(e){const t=function(...r){const n=r[0];if(n==null)return n;n.length>1&&(r=n);const i=e(r);if(typeof i=="object")for(let a=i.length,o=0;o<a;o++)i[o]=Math.round(i[o]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}zU.forEach(e=>{bi[e]={},Object.defineProperty(bi[e],"channels",{value:gm[e].channels}),Object.defineProperty(bi[e],"labels",{value:gm[e].labels});const t=jU(e);Object.keys(t).forEach(n=>{const i=t[n];bi[e][n]=WU(i),bi[e][n].raw=UU(i)})});var HU=bi;const v7=HU;var $P="Expected a function",Nx=0/0,GU="[object Symbol]",qU=/^\s+|\s+$/g,VU=/^[-+]0x[0-9a-f]+$/i,YU=/^0b[01]+$/i,KU=/^0o[0-7]+$/i,XU=parseInt,QU=typeof Z=="object"&&Z&&Z.Object===Object&&Z,JU=typeof self=="object"&&self&&self.Object===Object&&self,ZU=QU||JU||Function("return this")(),eW=Object.prototype,tW=eW.toString,rW=Math.max,nW=Math.min,ev=function(){return ZU.Date.now()};function iW(e,t,r){var n,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError($P);t=Mx(t)||0,Ec(r)&&(c=!!r.leading,f="maxWait"in r,a=f?rW(Mx(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(S){var E=n,O=i;return n=i=void 0,u=S,o=e.apply(O,E),o}function h(S){return u=S,l=setTimeout(g,t),c?p(S):o}function w(S){var E=S-s,O=S-u,I=t-E;return f?nW(I,a-O):I}function v(S){var E=S-s,O=S-u;return s===void 0||E>=t||E<0||f&&O>=a}function g(){var S=ev();if(v(S))return m(S);l=setTimeout(g,w(S))}function m(S){return l=void 0,d&&n?p(S):(n=i=void 0,o)}function y(){l!==void 0&&clearTimeout(l),u=0,n=s=i=l=void 0}function b(){return l===void 0?o:m(ev())}function x(){var S=ev(),E=v(S);if(n=arguments,i=this,s=S,E){if(l===void 0)return h(s);if(f)return l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),o}return x.cancel=y,x.flush=b,x}function aW(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError($P);return Ec(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),iW(e,t,{leading:n,maxWait:t,trailing:i})}function Ec(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function oW(e){return!!e&&typeof e=="object"}function lW(e){return typeof e=="symbol"||oW(e)&&tW.call(e)==GU}function Mx(e){if(typeof e=="number")return e;if(lW(e))return Nx;if(Ec(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ec(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(qU,"");var r=YU.test(e);return r||KU.test(e)?XU(e.slice(2),r?2:8):VU.test(e)?Nx:+e}var g7=aW;function sW(...e){return C.useMemo(()=>t=>{e.forEach(r=>r(t))},e)}const Af=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ea(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ly(e){return"nodeType"in e}function Qe(e){var t,r;return e?Ea(e)?e:Ly(e)&&(t=(r=e.ownerDocument)==null?void 0:r.defaultView)!=null?t:window:window}function Fy(e){const{Document:t}=Qe(e);return e instanceof t}function Ul(e){return Ea(e)?!1:e instanceof Qe(e).HTMLElement}function uW(e){return e instanceof Qe(e).SVGElement}function Ca(e){return e?Ea(e)?e.document:Ly(e)?Fy(e)?e:Ul(e)?e.ownerDocument:document:document:document}const Dt=Af?C.useLayoutEffect:C.useEffect;function Rf(e){const t=C.useRef(e);return Dt(()=>{t.current=e}),C.useCallback(function(...r){return t.current==null?void 0:t.current(...r)},[])}function cW(){const e=C.useRef(null),t=C.useCallback((n,i)=>{e.current=setInterval(n,i)},[]),r=C.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,r]}function cl(e,t=[e]){const r=C.useRef(e);return Dt(()=>{r.current!==e&&(r.current=e)},t),r}function Wl(e,t){const r=C.useRef();return C.useMemo(()=>{const n=e(r.current);return r.current=n,n},[...t])}function Cc(e){const t=Rf(e),r=C.useRef(null),n=C.useCallback(i=>{i!==r.current&&(t==null||t(i,r.current)),r.current=i},[]);return[r,n]}function Oc(e){const t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}let tv={};function Hl(e,t){return C.useMemo(()=>{if(t)return t;const r=tv[e]==null?0:tv[e]+1;return tv[e]=r,`${e}-${r}`},[e,t])}function LP(e){return(t,...r)=>r.reduce((n,i)=>{const a=Object.entries(i);for(const[o,l]of a){const s=n[o];s!=null&&(n[o]=s+e*l)}return n},{...t})}const Gi=LP(1),Ic=LP(-1);function fW(e){return"clientX"in e&&"clientY"in e}function Tf(e){if(!e)return!1;const{KeyboardEvent:t}=Qe(e.target);return t&&e instanceof t}function dW(e){if(!e)return!1;const{TouchEvent:t}=Qe(e.target);return t&&e instanceof t}function Pc(e){if(dW(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return fW(e)?{x:e.clientX,y:e.clientY}:null}const Vn=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:r}=e;return`translate3d(${t?Math.round(t):0}px, ${r?Math.round(r):0}px, 0)`}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:r}=e;return`scaleX(${t}) scaleY(${r})`}},Transform:{toString(e){if(e)return[Vn.Translate.toString(e),Vn.Scale.toString(e)].join(" ")}},Transition:{toString({property:e,duration:t,easing:r}){return`${e} ${t}ms ${r}`}}}),$x="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function pW(e){return e.matches($x)?e:e.querySelector($x)}const vW={display:"none"};function gW(e){let{id:t,value:r}=e;return F.createElement("div",{id:t,style:vW},r)}const mW={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"};function hW(e){let{id:t,announcement:r}=e;return F.createElement("div",{id:t,style:mW,role:"status","aria-live":"assertive","aria-atomic":!0},r)}function yW(){const[e,t]=C.useState("");return{announce:C.useCallback(n=>{n!=null&&t(n)},[]),announcement:e}}const FP=C.createContext(null);function bW(e){const t=C.useContext(FP);C.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wW(){const[e]=C.useState(()=>new Set),t=C.useCallback(n=>(e.add(n),()=>e.delete(n)),[e]);return[C.useCallback(n=>{let{type:i,event:a}=n;e.forEach(o=>{var l;return(l=o[i])==null?void 0:l.call(o,a)})},[e]),t]}const SW={draggable:`
903
903
  To pick up a draggable item, press the space bar.
904
904
  While dragging, use the arrow keys to move the item.
905
905
  Press space again to drop the item in its new position, or press escape to cancel.
906
- `},xW={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function EW(e){let{announcements:t=xW,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=SW}=e;const{announce:a,announcement:o}=yW(),l=Hl("DndLiveRegion"),[s,u]=C.useState(!1);if(C.useEffect(()=>{u(!0)},[]),bW(C.useMemo(()=>({onDragStart(f){let{active:d}=f;a(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:p}=f;t.onDragMove&&a(t.onDragMove({active:d,over:p}))},onDragOver(f){let{active:d,over:p}=f;a(t.onDragOver({active:d,over:p}))},onDragEnd(f){let{active:d,over:p}=f;a(t.onDragEnd({active:d,over:p}))},onDragCancel(f){let{active:d,over:p}=f;a(t.onDragCancel({active:d,over:p}))}}),[a,t])),!s)return null;const c=F.createElement(F.Fragment,null,F.createElement(gW,{id:n,value:i.draggable}),F.createElement(hW,{id:l,announcement:o}));return r?Mt.createPortal(c,r):c}var Oe;(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"})(Oe||(Oe={}));function Dc(){}function m7(e,t){return C.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function h7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const jt=Object.freeze({x:0,y:0});function BP(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function CW(e,t){const r=Pc(e);if(!r)return"0 0";const n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}function jP(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function OW(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function Lx(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function IW(e,t){if(!e||e.length===0)return null;const[r]=e;return t?r[t]:r}function Fx(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const y7=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Fx(t,t.left,t.top),a=[];for(const o of n){const{id:l}=o,s=r.get(l);if(s){const u=BP(Fx(s),i);a.push({id:l,data:{droppableContainer:o,value:u}})}}return a.sort(jP)},b7=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Lx(t),a=[];for(const o of n){const{id:l}=o,s=r.get(l);if(s){const u=Lx(s),c=i.reduce((d,p,h)=>d+BP(u[h],p),0),f=Number((c/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:f}})}}return a.sort(jP)};function PW(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-n,l=a-r;if(n<i&&r<a){const s=t.width*t.height,u=e.width*e.height,c=o*l,f=c/(s+u-c);return Number(f.toFixed(4))}return 0}const DW=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const a of n){const{id:o}=a,l=r.get(o);if(l){const s=PW(l,t);s>0&&i.push({id:o,data:{droppableContainer:a,value:s}})}}return i.sort(OW)};function AW(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function zP(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jt}function RW(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((o,l)=>({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...r})}}const TW=RW(1);function UP(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function kW(e,t,r){const n=UP(t);if(!n)return e;const{scaleX:i,scaleY:a,x:o,y:l}=n,s=e.left-o-(1-i)*parseFloat(r),u=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,f=a?e.height/a:e.height;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s}}const _W={ignoreTransform:!1};function Oa(e,t){t===void 0&&(t=_W);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:u}=Qe(e),{transform:c,transformOrigin:f}=u(e);c&&(r=kW(r,c,f))}const{top:n,left:i,width:a,height:o,bottom:l,right:s}=r;return{top:n,left:i,width:a,height:o,bottom:l,right:s}}function Bx(e){return Oa(e,{ignoreTransform:!0})}function NW(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function MW(e,t){return t===void 0&&(t=Qe(e).getComputedStyle(e)),t.position==="fixed"}function $W(e,t){t===void 0&&(t=Qe(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?r.test(a):!1})}function By(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(Fy(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!Ul(i)||uW(i)||r.includes(i))return r;const{getComputedStyle:a}=Qe(i),o=a(i);return i!==e&&$W(i,o)&&r.push(i),MW(i,o)?r:n(i.parentNode)}return e?n(e):r}function WP(e){const[t]=By(e,1);return t??null}function rv(e){return!Af||!e?null:Ea(e)?e:Ly(e)?Fy(e)||e===Ca(e).scrollingElement?window:Ul(e)?e:null:null}function HP(e){return Ea(e)?e.scrollX:e.scrollLeft}function GP(e){return Ea(e)?e.scrollY:e.scrollTop}function mm(e){return{x:HP(e),y:GP(e)}}var Re;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Re||(Re={}));function qP(e){return!Af||!e?!1:e===document.scrollingElement}function VP(e){const t={x:0,y:0},r=qP(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=n.y,l=e.scrollLeft>=n.x;return{isTop:i,isLeft:a,isBottom:o,isRight:l,maxScroll:n,minScroll:t}}const LW={x:.2,y:.2};function FW(e,t,r,n,i){let{top:a,left:o,right:l,bottom:s}=r;n===void 0&&(n=10),i===void 0&&(i=LW);const{isTop:u,isBottom:c,isLeft:f,isRight:d}=VP(e),p={x:0,y:0},h={x:0,y:0},w={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+w.height?(p.y=Re.Backward,h.y=n*Math.abs((t.top+w.height-a)/w.height)):!c&&s>=t.bottom-w.height&&(p.y=Re.Forward,h.y=n*Math.abs((t.bottom-w.height-s)/w.height)),!d&&l>=t.right-w.width?(p.x=Re.Forward,h.x=n*Math.abs((t.right-w.width-l)/w.width)):!f&&o<=t.left+w.width&&(p.x=Re.Backward,h.x=n*Math.abs((t.left+w.width-o)/w.width)),{direction:p,speed:h}}function BW(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function YP(e){return e.reduce((t,r)=>Gi(t,mm(r)),jt)}function jW(e){return e.reduce((t,r)=>t+HP(r),0)}function zW(e){return e.reduce((t,r)=>t+GP(r),0)}function KP(e,t){if(t===void 0&&(t=Oa),!e)return;const{top:r,left:n,bottom:i,right:a}=t(e);WP(e)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const UW=[["x",["left","right"],jW],["y",["top","bottom"],zW]];class jy{constructor(t,r){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;const n=By(r),i=YP(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,l]of UW)for(const s of o)Object.defineProperty(this,s,{get:()=>{const u=l(n),c=i[a]-u;return this.rect[s]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class To{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function WW(e){const{EventTarget:t}=Qe(e);return e instanceof t?e:Ca(e)}function nv(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var yt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(yt||(yt={}));function jx(e){e.preventDefault()}function HW(e){e.stopPropagation()}var ie;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(ie||(ie={}));const XP={start:[ie.Space,ie.Enter],cancel:[ie.Esc],end:[ie.Space,ie.Enter]},GW=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case ie.Right:return{...r,x:r.x+25};case ie.Left:return{...r,x:r.x-25};case ie.Down:return{...r,y:r.y+25};case ie.Up:return{...r,y:r.y-25}}};class QP{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new To(Ca(r)),this.windowListeners=new To(Qe(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(yt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&KP(n),r(jt)}handleKeyDown(t){if(Tf(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:a=XP,coordinateGetter:o=GW,scrollBehavior:l="smooth"}=i,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:jt;this.referenceCoordinates||(this.referenceCoordinates=c);const f=o(t,{active:r,context:n.current,currentCoordinates:c});if(f){const d=Ic(f,c),p={x:0,y:0},{scrollableAncestors:h}=n.current;for(const w of h){const v=t.code,{isTop:g,isRight:m,isLeft:y,isBottom:b,maxScroll:x,minScroll:S}=VP(w),E=BW(w),O={x:Math.min(v===ie.Right?E.right-E.width/2:E.right,Math.max(v===ie.Right?E.left:E.left+E.width/2,f.x)),y:Math.min(v===ie.Down?E.bottom-E.height/2:E.bottom,Math.max(v===ie.Down?E.top:E.top+E.height/2,f.y))},I=v===ie.Right&&!m||v===ie.Left&&!y,T=v===ie.Down&&!b||v===ie.Up&&!g;if(I&&O.x!==f.x){const _=w.scrollLeft+d.x,H=v===ie.Right&&_<=x.x||v===ie.Left&&_>=S.x;if(H&&!d.y){w.scrollTo({left:_,behavior:l});return}H?p.x=w.scrollLeft-_:p.x=v===ie.Right?w.scrollLeft-x.x:w.scrollLeft-S.x,p.x&&w.scrollBy({left:-p.x,behavior:l});break}else if(T&&O.y!==f.y){const _=w.scrollTop+d.y,H=v===ie.Down&&_<=x.y||v===ie.Up&&_>=S.y;if(H&&!d.x){w.scrollTo({top:_,behavior:l});return}H?p.y=w.scrollTop-_:p.y=v===ie.Down?w.scrollTop-x.y:w.scrollTop-S.y,p.y&&w.scrollBy({top:-p.y,behavior:l});break}}this.handleMove(t,Gi(Ic(f,this.referenceCoordinates),p))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}QP.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=XP,onActivation:i}=t,{active:a}=r;const{code:o}=e.nativeEvent;if(n.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function zx(e){return Boolean(e&&"distance"in e)}function Ux(e){return Boolean(e&&"delay"in e)}class zy{constructor(t,r,n){var i;n===void 0&&(n=WW(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=r;const{event:a}=t,{target:o}=a;this.props=t,this.events=r,this.document=Ca(o),this.documentListeners=new To(this.document),this.listeners=new To(n),this.windowListeners=new To(Qe(o)),this.initialCoordinates=(i=Pc(a))!=null?i:jt,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(){const{events:t,props:{options:{activationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.DragStart,jx),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),this.windowListeners.add(yt.ContextMenu,jx),this.documentListeners.add(yt.Keydown,this.handleKeydown),r){if(zx(r))return;if(Ux(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);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(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(yt.Click,HW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(yt.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!i)return;const s=(r=Pc(t))!=null?r:jt,u=Ic(i,s);if(!n&&l){if(Ux(l))return nv(u,l.tolerance)?this.handleCancel():void 0;if(zx(l))return l.tolerance!=null&&nv(u,l.tolerance)?this.handleCancel():nv(u,l.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),o(s)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===ie.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const qW={move:{name:"pointermove"},end:{name:"pointerup"}};class JP extends zy{constructor(t){const{event:r}=t,n=Ca(r.target);super(t,qW,n)}}JP.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const VW={move:{name:"mousemove"},end:{name:"mouseup"}};var hm;(function(e){e[e.RightClick=2]="RightClick"})(hm||(hm={}));class YW extends zy{constructor(t){super(t,VW,Ca(t.event.target))}}YW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===hm.RightClick?!1:(n==null||n({event:r}),!0)}}];const iv={move:{name:"touchmove"},end:{name:"touchend"}};class KW extends zy{constructor(t){super(t,iv)}static setup(){return window.addEventListener(iv.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(iv.move.name,t)};function t(){}}}KW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var ko;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ko||(ko={}));var Ac;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ac||(Ac={}));function XW(e){let{acceleration:t,activator:r=ko.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:l=Ac.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:d}=e;const p=JW({delta:f,disabled:!a}),[h,w]=cW(),v=C.useRef({x:0,y:0}),g=C.useRef({x:0,y:0}),m=C.useMemo(()=>{switch(r){case ko.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ko.DraggableRect:return i}},[r,i,s]),y=C.useRef(null),b=C.useCallback(()=>{const S=y.current;if(!S)return;const E=v.current.x*g.current.x,O=v.current.y*g.current.y;S.scrollBy(E,O)},[]),x=C.useMemo(()=>l===Ac.TreeOrder?[...u].reverse():u,[l,u]);C.useEffect(()=>{if(!a||!u.length||!m){w();return}for(const S of x){if((n==null?void 0:n(S))===!1)continue;const E=u.indexOf(S),O=c[E];if(!O)continue;const{direction:I,speed:T}=FW(S,O,m,t,d);for(const _ of["x","y"])p[_][I[_]]||(T[_]=0,I[_]=0);if(T.x>0||T.y>0){w(),y.current=S,h(b,o),v.current=T,g.current=I;return}}v.current={x:0,y:0},g.current={x:0,y:0},w()},[t,b,n,w,a,o,JSON.stringify(m),JSON.stringify(p),h,u,x,c,JSON.stringify(d)])}const QW={x:{[Re.Backward]:!1,[Re.Forward]:!1},y:{[Re.Backward]:!1,[Re.Forward]:!1}};function JW(e){let{delta:t,disabled:r}=e;const n=Oc(t);return Wl(i=>{if(r||!n||!i)return QW;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[Re.Backward]:i.x[Re.Backward]||a.x===-1,[Re.Forward]:i.x[Re.Forward]||a.x===1},y:{[Re.Backward]:i.y[Re.Backward]||a.y===-1,[Re.Forward]:i.y[Re.Forward]||a.y===1}}},[r,t,n])}function ZW(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return Wl(i=>{var a;return t===null?null:(a=n??i)!=null?a:null},[n,t])}function e9(e,t){return C.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,n)}));return[...r,...a]},[]),[e,t])}var fl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fl||(fl={}));var ym;(function(e){e.Optimized="optimized"})(ym||(ym={}));const Wx=new Map;function t9(e,t){let{dragging:r,dependencies:n,config:i}=t;const[a,o]=C.useState(null),l=a!=null,{frequency:s,measure:u,strategy:c}=i,f=C.useRef(e),d=g(),p=cl(d),h=C.useCallback(function(m){m===void 0&&(m=[]),!p.current&&o(y=>y?y.concat(m):m)},[p]),w=C.useRef(null),v=Wl(m=>{if(d&&!r)return Wx;const y=a;if(!m||m===Wx||f.current!==e||y!=null){const b=new Map;for(let x of e){if(!x)continue;if(y&&y.length>0&&!y.includes(x.id)&&x.rect.current){b.set(x.id,x.rect.current);continue}const S=x.node.current,E=S?new jy(u(S),S):null;x.rect.current=E,E&&b.set(x.id,E)}return b}return m},[e,a,r,d,u]);return C.useEffect(()=>{f.current=e},[e]),C.useEffect(()=>{d||requestAnimationFrame(()=>h())},[r,d]),C.useEffect(()=>{l&&o(null)},[l]),C.useEffect(()=>{d||typeof s!="number"||w.current!==null||(w.current=setTimeout(()=>{h(),w.current=null},s))},[s,d,h,...n]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:l};function g(){switch(c){case fl.Always:return!1;case fl.BeforeDragging:return r;default:return!r}}}function Uy(e,t){return Wl(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function r9(e,t){return Uy(e,t)}function n9(e){let{callback:t,disabled:r}=e;const n=Rf(t),i=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,r]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function kf(e){let{callback:t,disabled:r}=e;const n=Rf(t),i=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[r]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function i9(e){return new jy(Oa(e),e)}function Hx(e,t,r){t===void 0&&(t=i9);const[n,i]=C.useReducer(l,null),a=n9({callback(s){if(e)for(const u of s){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),o=kf({callback:i});return Dt(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),n;function l(s){if(!e)return null;if(e.isConnected===!1){var u;return(u=s??r)!=null?u:null}const c=t(e);return JSON.stringify(s)===JSON.stringify(c)?s:c}}function a9(e){const t=Uy(e);return zP(e,t)}const Gx=[];function o9(e){const t=C.useRef(e),r=Wl(n=>e?n&&n!==Gx&&e&&t.current&&e.parentNode===t.current.parentNode?n:By(e):Gx,[e]);return C.useEffect(()=>{t.current=e},[e]),r}function l9(e){const[t,r]=C.useState(null),n=C.useRef(e),i=C.useCallback(a=>{const o=rv(a.target);o&&r(l=>l?(l.set(o,mm(o)),new Map(l)):null)},[]);return C.useEffect(()=>{const a=n.current;if(e!==a){o(a);const l=e.map(s=>{const u=rv(s);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,mm(u)]):null}).filter(s=>s!=null);r(l.length?new Map(l):null),n.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(s=>{const u=rv(s);u==null||u.removeEventListener("scroll",i)})}},[i,e]),C.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Gi(a,o),jt):YP(e):jt,[e,t])}function qx(e,t){t===void 0&&(t=[]);const r=C.useRef(null);return C.useEffect(()=>{r.current=null},t),C.useEffect(()=>{const n=e!==jt;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?Ic(e,r.current):jt}function s9(e){C.useEffect(()=>{if(!Af)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function u9(e,t){return C.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:a}=n;return r[i]=o=>{a(o,t)},r},{}),[e,t])}function ZP(e){return C.useMemo(()=>e?NW(e):null,[e])}const av=[];function c9(e,t){t===void 0&&(t=Oa);const[r]=e,n=ZP(r?Qe(r):null),[i,a]=C.useReducer(l,av),o=kf({callback:a});return e.length>0&&i===av&&a(),Dt(()=>{e.length?e.forEach(s=>o==null?void 0:o.observe(s)):(o==null||o.disconnect(),a())},[e]),i;function l(){return e.length?e.map(s=>qP(s)?n:new jy(t(s),s)):av}}function eD(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ul(t)?t:e}function f9(e){let{measure:t}=e;const[r,n]=C.useState(null),i=C.useCallback(u=>{for(const{target:c}of u)if(Ul(c)){n(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),a=kf({callback:i}),o=C.useCallback(u=>{const c=eD(u);a==null||a.disconnect(),c&&(a==null||a.observe(c)),n(c?t(c):null)},[t,a]),[l,s]=Cc(o);return C.useMemo(()=>({nodeRef:l,rect:r,setRef:s}),[r,l,s])}const d9=[{sensor:JP,options:{}},{sensor:QP,options:{}}],p9={current:{}},iu={draggable:{measure:Bx},droppable:{measure:Bx,strategy:fl.WhileDragging,frequency:ym.Optimized},dragOverlay:{measure:Oa}};class _o extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const v9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _o,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Dc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:iu,measureDroppableContainers:Dc,windowRect:null,measuringScheduled:!1},tD={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Dc,draggableNodes:new Map,over:null,measureDroppableContainers:Dc},Gl=C.createContext(tD),rD=C.createContext(v9);function g9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _o}}}function m9(e,t){switch(t.type){case Oe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Oe.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 Oe.DragEnd:case Oe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Oe.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new _o(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case Oe.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new _o(e.droppable.containers);return o.set(r,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Oe.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new _o(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function h9(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=C.useContext(Gl),a=Oc(n),o=Oc(r==null?void 0:r.id);return C.useEffect(()=>{if(!t&&!n&&a&&o!=null){if(!Tf(a)||document.activeElement===a.target)return;const l=i.get(o);if(!l)return;const{activatorNode:s,node:u}=l;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[s.current,u.current]){if(!c)continue;const f=pW(c);if(f){f.focus();break}}})}},[n,t,i,o,a]),null}function nD(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...n}),r):r}function y9(e){return C.useMemo(()=>({draggable:{...iu.draggable,...e==null?void 0:e.draggable},droppable:{...iu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...iu.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 b9(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const a=C.useRef(!1),{x:o,y:l}=typeof i=="boolean"?{x:i,y:i}:i;Dt(()=>{if(!o&&!l||!t){a.current=!1;return}if(a.current||!n)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=r(u),f=zP(c,n);if(o||(f.x=0),l||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=WP(u);d&&d.scrollBy({top:f.y,left:f.x})}},[t,o,l,n,r])}const _f=C.createContext({...jt,scaleX:1,scaleY:1});var Nr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Nr||(Nr={}));const w7=C.memo(function(t){var r,n,i,a;let{id:o,accessibility:l,autoScroll:s=!0,children:u,sensors:c=d9,collisionDetection:f=DW,measuring:d,modifiers:p,...h}=t;const w=C.useReducer(m9,void 0,g9),[v,g]=w,[m,y]=wW(),[b,x]=C.useState(Nr.Uninitialized),S=b===Nr.Initialized,{draggable:{active:E,nodes:O,translate:I},droppable:{containers:T}}=v,_=E?O.get(E):null,H=C.useRef({initial:null,translated:null}),z=C.useMemo(()=>{var Me;return E!=null?{id:E,data:(Me=_==null?void 0:_.data)!=null?Me:p9,rect:H}:null},[E,_]),G=C.useRef(null),[K,Q]=C.useState(null),[ee,oe]=C.useState(null),le=cl(h,Object.values(h)),ce=Hl("DndDescribedBy",o),P=C.useMemo(()=>T.getEnabled(),[T]),k=y9(d),{droppableRects:U,measureDroppableContainers:X,measuringScheduled:Y}=t9(P,{dragging:S,dependencies:[I.x,I.y],config:k.droppable}),se=ZW(O,E),Ne=C.useMemo(()=>ee?Pc(ee):null,[ee]),Ce=hD(),xe=r9(se,k.draggable.measure);b9({activeNode:E?O.get(E):null,config:Ce.layoutShiftCompensation,initialRect:xe,measure:k.draggable.measure});const J=Hx(se,k.draggable.measure,xe),ir=Hx(se?se.parentElement:null),nt=C.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Wt=T.getNodeFor((r=nt.current.over)==null?void 0:r.id),Je=f9({measure:k.dragOverlay.measure}),ar=(n=Je.nodeRef.current)!=null?n:se,Ht=S?(i=Je.rect)!=null?i:J:null,ni=Boolean(Je.nodeRef.current&&Je.rect),ql=a9(ni?null:J),or=ZP(ar?Qe(ar):null),vt=o9(S?Wt??se:null),Vl=c9(vt),Yl=nD(p,{transform:{x:I.x-ql.x,y:I.y-ql.y,scaleX:1,scaleY:1},activatorEvent:ee,active:z,activeNodeRect:J,containerNodeRect:ir,draggingNodeRect:Ht,over:nt.current.over,overlayNodeRect:Je.rect,scrollableAncestors:vt,scrollableAncestorRects:Vl,windowRect:or}),Wy=Ne?Gi(Ne,I):null,Hy=l9(vt),cD=qx(Hy),fD=qx(Hy,[J]),ii=Gi(Yl,cD),ai=Ht?TW(Ht,Yl):null,Ia=z&&ai?f({active:z,collisionRect:ai,droppableRects:U,droppableContainers:P,pointerCoordinates:Wy}):null,Gy=IW(Ia,"id"),[Or,qy]=C.useState(null),dD=ni?Yl:Gi(Yl,fD),pD=AW(dD,(a=Or==null?void 0:Or.rect)!=null?a:null,J),Vy=C.useCallback((Me,it)=>{let{sensor:at,options:Ir}=it;if(G.current==null)return;const gt=O.get(G.current);if(!gt)return;const Rt=Me.nativeEvent,Gt=new at({active:G.current,activeNode:gt,event:Rt,options:Ir,context:nt,onStart(Tt){const Pa=G.current;if(Pa==null)return;const Da=O.get(Pa);if(!Da)return;const{onDragStart:Kl}=le.current,Xl={active:{id:Pa,data:Da.data,rect:H}};Mt.unstable_batchedUpdates(()=>{Kl==null||Kl(Xl),x(Nr.Initializing),g({type:Oe.DragStart,initialCoordinates:Tt,active:Pa}),m({type:"onDragStart",event:Xl})})},onMove(Tt){g({type:Oe.DragMove,coordinates:Tt})},onEnd:oi(Oe.DragEnd),onCancel:oi(Oe.DragCancel)});Mt.unstable_batchedUpdates(()=>{Q(Gt),oe(Me.nativeEvent)});function oi(Tt){return async function(){const{active:Da,collisions:Kl,over:Xl,scrollAdjustedTranslate:Ky}=nt.current;let Aa=null;if(Da&&Ky){const{cancelDrop:Ra}=le.current;Aa={activatorEvent:Rt,active:Da,collisions:Kl,delta:Ky,over:Xl},Tt===Oe.DragEnd&&typeof Ra=="function"&&await Promise.resolve(Ra(Aa))&&(Tt=Oe.DragCancel)}G.current=null,Mt.unstable_batchedUpdates(()=>{g({type:Tt}),x(Nr.Uninitialized),qy(null),Q(null),oe(null);const Ra=Tt===Oe.DragEnd?"onDragEnd":"onDragCancel";if(Aa){const Nf=le.current[Ra];Nf==null||Nf(Aa),m({type:Ra,event:Aa})}})}}},[O]),vD=C.useCallback((Me,it)=>(at,Ir)=>{const gt=at.nativeEvent,Rt=O.get(Ir);if(G.current!==null||!Rt||gt.dndKit||gt.defaultPrevented)return;const Gt={active:Rt};Me(at,it.options,Gt)===!0&&(gt.dndKit={capturedBy:it.sensor},G.current=Ir,Vy(at,it))},[O,Vy]),Yy=e9(c,vD);s9(c),Dt(()=>{J&&b===Nr.Initializing&&x(Nr.Initialized)},[J,b]),C.useEffect(()=>{const{onDragMove:Me}=le.current,{active:it,activatorEvent:at,collisions:Ir,over:gt}=nt.current;if(!it||!at)return;const Rt={active:it,activatorEvent:at,collisions:Ir,delta:{x:ii.x,y:ii.y},over:gt};Mt.unstable_batchedUpdates(()=>{Me==null||Me(Rt),m({type:"onDragMove",event:Rt})})},[ii.x,ii.y]),C.useEffect(()=>{const{active:Me,activatorEvent:it,collisions:at,droppableContainers:Ir,scrollAdjustedTranslate:gt}=nt.current;if(!Me||G.current==null||!it||!gt)return;const{onDragOver:Rt}=le.current,Gt=Ir.get(Gy),oi=Gt&&Gt.rect.current?{id:Gt.id,rect:Gt.rect.current,data:Gt.data,disabled:Gt.disabled}:null,Tt={active:Me,activatorEvent:it,collisions:at,delta:{x:gt.x,y:gt.y},over:oi};Mt.unstable_batchedUpdates(()=>{qy(oi),Rt==null||Rt(Tt),m({type:"onDragOver",event:Tt})})},[Gy]),Dt(()=>{nt.current={activatorEvent:ee,active:z,activeNode:se,collisionRect:ai,collisions:Ia,droppableRects:U,draggableNodes:O,draggingNode:ar,draggingNodeRect:Ht,droppableContainers:T,over:Or,scrollableAncestors:vt,scrollAdjustedTranslate:ii},H.current={initial:Ht,translated:ai}},[z,se,Ia,ai,O,ar,Ht,U,T,Or,vt,ii]),XW({...Ce,delta:I,draggingRect:ai,pointerCoordinates:Wy,scrollableAncestors:vt,scrollableAncestorRects:Vl});const gD=C.useMemo(()=>({active:z,activeNode:se,activeNodeRect:J,activatorEvent:ee,collisions:Ia,containerNodeRect:ir,dragOverlay:Je,draggableNodes:O,droppableContainers:T,droppableRects:U,over:Or,measureDroppableContainers:X,scrollableAncestors:vt,scrollableAncestorRects:Vl,measuringConfiguration:k,measuringScheduled:Y,windowRect:or}),[z,se,J,ee,Ia,ir,Je,O,T,U,Or,X,vt,Vl,k,Y,or]),mD=C.useMemo(()=>({activatorEvent:ee,activators:Yy,active:z,activeNodeRect:J,ariaDescribedById:{draggable:ce},dispatch:g,draggableNodes:O,over:Or,measureDroppableContainers:X}),[ee,Yy,z,J,g,ce,O,Or,X]);return F.createElement(FP.Provider,{value:y},F.createElement(Gl.Provider,{value:mD},F.createElement(rD.Provider,{value:gD},F.createElement(_f.Provider,{value:pD},u)),F.createElement(h9,{disabled:(l==null?void 0:l.restoreFocus)===!1})),F.createElement(EW,{...l,hiddenTextDescribedById:ce}));function hD(){const Me=(K==null?void 0:K.autoScrollEnabled)===!1,it=typeof s=="object"?s.enabled===!1:s===!1,at=S&&!Me&&!it;return typeof s=="object"?{...s,enabled:at}:{enabled:at}}}),w9=C.createContext(null),Vx="button",S9="Droppable";function x9(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const a=Hl(S9),{activators:o,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:d}=C.useContext(Gl),{role:p=Vx,roleDescription:h="draggable",tabIndex:w=0}=i??{},v=(s==null?void 0:s.id)===t,g=C.useContext(v?_f:w9),[m,y]=Cc(),[b,x]=Cc(),S=u9(o,t),E=cl(r);Dt(()=>(f.set(t,{id:t,key:a,node:m,activatorNode:b,data:E}),()=>{const I=f.get(t);I&&I.key===a&&f.delete(t)}),[f,t]);const O=C.useMemo(()=>({role:p,tabIndex:w,"aria-disabled":n,"aria-pressed":v&&p===Vx?!0:void 0,"aria-roledescription":h,"aria-describedby":c.draggable}),[n,p,w,v,h,c.draggable]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:O,isDragging:v,listeners:n?void 0:S,node:m,over:d,setNodeRef:y,setActivatorNodeRef:x,transform:g}}function iD(){return C.useContext(rD)}const E9="Droppable",C9={timeout:25};function O9(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const a=Hl(E9),{active:o,dispatch:l,over:s,measureDroppableContainers:u}=C.useContext(Gl),c=C.useRef({disabled:r}),f=C.useRef(!1),d=C.useRef(null),p=C.useRef(null),{disabled:h,updateMeasurementsFor:w,timeout:v}={...C9,...i},g=cl(w??n),m=C.useCallback(()=>{if(!f.current){f.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),p.current=null},v)},[v]),y=kf({callback:m,disabled:h||!o}),b=C.useCallback((O,I)=>{y&&(I&&(y.unobserve(I),f.current=!1),O&&y.observe(O))},[y]),[x,S]=Cc(b),E=cl(t);return C.useEffect(()=>{!y||!x.current||(y.disconnect(),f.current=!1,y.observe(x.current))},[x,y]),Dt(()=>(l({type:Oe.RegisterDroppable,element:{id:n,key:a,disabled:r,node:x,rect:d,data:E}}),()=>l({type:Oe.UnregisterDroppable,key:a,id:n})),[n]),C.useEffect(()=>{r!==c.current.disabled&&(l({type:Oe.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,l]),{active:o,rect:d,isOver:(s==null?void 0:s.id)===n,node:x,over:s,setNodeRef:S}}function I9(e){let{animation:t,children:r}=e;const[n,i]=C.useState(null),[a,o]=C.useState(null),l=Oc(r);return!r&&!n&&l&&i(l),Dt(()=>{if(!a)return;const s=n==null?void 0:n.key,u=n==null?void 0:n.props.id;if(s==null||u==null){i(null);return}Promise.resolve(t(u,a)).then(()=>{i(null)})},[t,n,a]),F.createElement(F.Fragment,null,r,n?C.cloneElement(n,{ref:o}):null)}const P9={x:0,y:0,scaleX:1,scaleY:1};function D9(e){let{children:t}=e;return F.createElement(Gl.Provider,{value:tD},F.createElement(_f.Provider,{value:P9},t))}const A9={position:"fixed",touchAction:"none"},R9=e=>Tf(e)?"transform 250ms ease":void 0,T9=C.forwardRef((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:a,className:o,rect:l,style:s,transform:u,transition:c=R9}=e;if(!l)return null;const f=i?u:{...u,scaleX:1,scaleY:1},d={...A9,width:l.width,height:l.height,top:l.top,left:l.left,transform:Vn.Transform.toString(f),transformOrigin:i&&n?CW(n,l):void 0,transition:typeof c=="function"?c(n):c,...s};return F.createElement(r,{className:o,style:d,ref:t},a)}),k9=e=>t=>{let{active:r,dragOverlay:n}=t;const i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,s]of Object.entries(a.active))s!==void 0&&(i[l]=r.node.style.getPropertyValue(l),r.node.style.setProperty(l,s));if(a!=null&&a.dragOverlay)for(const[l,s]of Object.entries(a.dragOverlay))s!==void 0&&n.node.style.setProperty(l,s);return o!=null&&o.active&&r.node.classList.add(o.active),o!=null&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(const[s,u]of Object.entries(i))r.node.style.setProperty(s,u);o!=null&&o.active&&r.node.classList.remove(o.active)}},_9=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Vn.Transform.toString(t)},{transform:Vn.Transform.toString(r)}]},N9={duration:250,easing:"ease",keyframes:_9,sideEffects:k9({styles:{active:{opacity:"0"}}})};function M9(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return Rf((a,o)=>{if(t===null)return;const l=r.get(a);if(!l)return;const s=l.node.current;if(!s)return;const u=eD(o);if(!u)return;const{transform:c}=Qe(o).getComputedStyle(o),f=UP(c);if(!f)return;const d=typeof t=="function"?t:$9(t);return KP(s,i.draggable.measure),d({active:{id:a,data:l.data,node:s,rect:i.draggable.measure(s)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:n,measuringConfiguration:i,transform:f})})}function $9(e){const{duration:t,easing:r,sideEffects:n,keyframes:i}={...N9,...e};return a=>{let{active:o,dragOverlay:l,transform:s,...u}=a;if(!t)return;const c={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},f={scaleX:s.scaleX!==1?o.rect.width*s.scaleX/l.rect.width:1,scaleY:s.scaleY!==1?o.rect.height*s.scaleY/l.rect.height:1},d={x:s.x-c.x,y:s.y-c.y,...f},p=i({...u,active:o,dragOverlay:l,transform:{initial:s,final:d}}),[h]=p,w=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(w))return;const v=n==null?void 0:n({active:o,dragOverlay:l,...u}),g=l.node.animate(p,{duration:t,easing:r,fill:"forwards"});return new Promise(m=>{g.onfinish=()=>{v==null||v(),m()}})}}let Yx=0;function L9(e){return C.useMemo(()=>{if(e!=null)return Yx++,Yx},[e])}const S7=F.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:n,style:i,transition:a,modifiers:o,wrapperElement:l="div",className:s,zIndex:u=999}=e;const{activatorEvent:c,active:f,activeNodeRect:d,containerNodeRect:p,draggableNodes:h,droppableContainers:w,dragOverlay:v,over:g,measuringConfiguration:m,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=iD(),S=C.useContext(_f),E=L9(f==null?void 0:f.id),O=nD(o,{activatorEvent:c,active:f,activeNodeRect:d,containerNodeRect:p,draggingNodeRect:v.rect,over:g,overlayNodeRect:v.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),I=Uy(d),T=M9({config:n,draggableNodes:h,droppableContainers:w,measuringConfiguration:m}),_=I?v.setRef:void 0;return F.createElement(D9,null,F.createElement(I9,{animation:T},f&&E?F.createElement(T9,{key:E,id:f.id,ref:_,as:l,activatorEvent:c,adjustScale:t,className:s,transition:a,rect:I,style:{zIndex:u,...i},transform:O},r):null))});function aD(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function F9(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function Ms(e){return e!==null&&e>=0}function B9(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function j9(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const oD=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=aD(t,n,r),o=t[i],l=a[i];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},$s={scaleX:1,scaleY:1},x7=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const l=(t=a[r])!=null?t:n;if(!l)return null;if(i===r){const u=a[o];return u?{x:0,y:r<o?u.top+u.height-(l.top+l.height):u.top-l.top,...$s}:null}const s=z9(a,i,r);return i>r&&i<=o?{x:0,y:-l.height-s,...$s}:i<r&&i>=o?{x:0,y:l.height+s,...$s}:{x:0,y:0,...$s}};function z9(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const lD="Sortable",sD=F.createContext({activeIndex:-1,containerId:lD,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oD,disabled:{draggable:!1,droppable:!1}});function E7(e){let{children:t,id:r,items:n,strategy:i=oD,disabled:a=!1}=e;const{active:o,dragOverlay:l,droppableRects:s,over:u,measureDroppableContainers:c,measuringScheduled:f}=iD(),d=Hl(lD,r),p=Boolean(l.rect!==null),h=C.useMemo(()=>n.map(E=>typeof E=="object"&&"id"in E?E.id:E),[n]),w=o!=null,v=o?h.indexOf(o.id):-1,g=u?h.indexOf(u.id):-1,m=C.useRef(h),y=!B9(h,m.current),b=g!==-1&&v===-1||y,x=j9(a);Dt(()=>{y&&w&&!f&&c(h)},[y,h,w,c,f]),C.useEffect(()=>{m.current=h},[h]);const S=C.useMemo(()=>({activeIndex:v,containerId:d,disabled:x,disableTransforms:b,items:h,overIndex:g,useDragOverlay:p,sortedRects:F9(h,s),strategy:i}),[v,d,x.draggable,x.droppable,b,h,g,s,p,i]);return F.createElement(sD.Provider,{value:S},t)}const U9=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return aD(r,n,i).indexOf(t)},W9=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:l,previousContainerId:s,transition:u}=e;return!u||!n||l!==a&&i===o?!1:r?!0:o!==i&&t===s},H9={duration:200,easing:"ease"},uD="transform",G9=Vn.Transition.toString({property:uD,duration:0,easing:"linear"}),q9={roleDescription:"sortable"};function V9(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=C.useState(null),l=C.useRef(r);return Dt(()=>{if(!t&&r!==l.current&&n.current){const s=i.current;if(s){const u=Oa(n.current,{ignoreTransform:!0}),c={x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height};(c.x||c.y)&&o(c)}}r!==l.current&&(l.current=r)},[t,r,n,i]),C.useEffect(()=>{a&&requestAnimationFrame(()=>{o(null)})},[a]),a}function C7(e){let{animateLayoutChanges:t=W9,attributes:r,disabled:n,data:i,getNewIndex:a=U9,id:o,strategy:l,resizeObserverConfig:s,transition:u=H9}=e;const{items:c,containerId:f,activeIndex:d,disabled:p,disableTransforms:h,sortedRects:w,overIndex:v,useDragOverlay:g,strategy:m}=C.useContext(sD),y=Y9(n,p),b=c.indexOf(o),x=C.useMemo(()=>({sortable:{containerId:f,index:b,items:c},...i}),[f,i,b,c]),S=C.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:E,node:O,isOver:I,setNodeRef:T}=O9({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...s}}),{active:_,activatorEvent:H,activeNodeRect:z,attributes:G,setNodeRef:K,listeners:Q,isDragging:ee,over:oe,setActivatorNodeRef:le,transform:ce}=x9({id:o,data:x,attributes:{...q9,...r},disabled:y.draggable}),P=sW(T,K),k=Boolean(_),U=k&&!h&&Ms(d)&&Ms(v),X=!g&&ee,Y=X&&U?ce:null,Ne=U?Y??(l??m)({rects:w,activeNodeRect:z,activeIndex:d,overIndex:v,index:b}):null,Ce=Ms(d)&&Ms(v)?a({id:o,items:c,activeIndex:d,overIndex:v}):b,xe=_==null?void 0:_.id,J=C.useRef({activeId:xe,items:c,newIndex:Ce,containerId:f}),ir=c!==J.current.items,nt=t({active:_,containerId:f,isDragging:ee,isSorting:k,id:o,index:b,items:c,newIndex:J.current.newIndex,previousItems:J.current.items,previousContainerId:J.current.containerId,transition:u,wasDragging:J.current.activeId!=null}),Wt=V9({disabled:!nt,index:b,node:O,rect:E});return C.useEffect(()=>{k&&J.current.newIndex!==Ce&&(J.current.newIndex=Ce),f!==J.current.containerId&&(J.current.containerId=f),c!==J.current.items&&(J.current.items=c)},[k,Ce,f,c]),C.useEffect(()=>{if(xe===J.current.activeId)return;if(xe&&!J.current.activeId){J.current.activeId=xe;return}const ar=setTimeout(()=>{J.current.activeId=xe},50);return()=>clearTimeout(ar)},[xe]),{active:_,activeIndex:d,attributes:G,data:x,rect:E,index:b,newIndex:Ce,items:c,isOver:I,isSorting:k,isDragging:ee,listeners:Q,node:O,overIndex:v,over:oe,setNodeRef:P,setActivatorNodeRef:le,setDroppableNodeRef:T,setDraggableNodeRef:K,transform:Wt??Ne,transition:Je()};function Je(){if(Wt||ir&&J.current.newIndex===b)return G9;if(!(X&&!Tf(H)||!u)&&(k||nt))return Vn.Transition.toString({...u,property:uD})}}function Y9(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}ie.Down,ie.Right,ie.Up,ie.Left;export{s7 as $,w7 as A,y7 as B,J9 as C,n7 as D,Oh as E,Zc as F,x7 as G,QP as H,g7 as I,u7 as J,ie as K,c7 as L,fl as M,t7 as N,r7 as O,i7 as P,rj as Q,to as R,E7 as S,Fl as T,f7 as U,Z9 as V,wB as W,a7 as X,o7 as Y,F as a,p7 as b,P1 as c,Se as d,Q9 as e,v7 as f,d7 as g,lB as h,aD as i,Xy as j,b7 as k,l7 as l,X9 as m,IW as n,JP as o,V as p,Vn as q,C as r,e7 as s,iD as t,C7 as u,Mt as v,S7 as w,N9 as x,h7 as y,m7 as z};
907
- //# sourceMappingURL=vendor-0f8246a9.js.map
906
+ `},xW={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function EW(e){let{announcements:t=xW,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=SW}=e;const{announce:a,announcement:o}=yW(),l=Hl("DndLiveRegion"),[s,u]=C.useState(!1);if(C.useEffect(()=>{u(!0)},[]),bW(C.useMemo(()=>({onDragStart(f){let{active:d}=f;a(t.onDragStart({active:d}))},onDragMove(f){let{active:d,over:p}=f;t.onDragMove&&a(t.onDragMove({active:d,over:p}))},onDragOver(f){let{active:d,over:p}=f;a(t.onDragOver({active:d,over:p}))},onDragEnd(f){let{active:d,over:p}=f;a(t.onDragEnd({active:d,over:p}))},onDragCancel(f){let{active:d,over:p}=f;a(t.onDragCancel({active:d,over:p}))}}),[a,t])),!s)return null;const c=F.createElement(F.Fragment,null,F.createElement(gW,{id:n,value:i.draggable}),F.createElement(hW,{id:l,announcement:o}));return r?Mt.createPortal(c,r):c}var Oe;(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"})(Oe||(Oe={}));function Dc(){}function m7(e,t){return C.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function h7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return C.useMemo(()=>[...t].filter(n=>n!=null),[...t])}const jt=Object.freeze({x:0,y:0});function BP(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function CW(e,t){const r=Pc(e);if(!r)return"0 0";const n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}function jP(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function OW(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function Lx(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function IW(e,t){if(!e||e.length===0)return null;const[r]=e;return t?r[t]:r}function Fx(e,t,r){return t===void 0&&(t=e.left),r===void 0&&(r=e.top),{x:t+e.width*.5,y:r+e.height*.5}}const y7=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Fx(t,t.left,t.top),a=[];for(const o of n){const{id:l}=o,s=r.get(l);if(s){const u=BP(Fx(s),i);a.push({id:l,data:{droppableContainer:o,value:u}})}}return a.sort(jP)},b7=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=Lx(t),a=[];for(const o of n){const{id:l}=o,s=r.get(l);if(s){const u=Lx(s),c=i.reduce((d,p,h)=>d+BP(u[h],p),0),f=Number((c/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:f}})}}return a.sort(jP)};function PW(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-n,l=a-r;if(n<i&&r<a){const s=t.width*t.height,u=e.width*e.height,c=o*l,f=c/(s+u-c);return Number(f.toFixed(4))}return 0}const DW=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e;const i=[];for(const a of n){const{id:o}=a,l=r.get(o);if(l){const s=PW(l,t);s>0&&i.push({id:o,data:{droppableContainer:a,value:s}})}}return i.sort(OW)};function AW(e,t,r){return{...e,scaleX:t&&r?t.width/r.width:1,scaleY:t&&r?t.height/r.height:1}}function zP(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:jt}function RW(e){return function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((o,l)=>({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...r})}}const TW=RW(1);function UP(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function kW(e,t,r){const n=UP(t);if(!n)return e;const{scaleX:i,scaleY:a,x:o,y:l}=n,s=e.left-o-(1-i)*parseFloat(r),u=e.top-l-(1-a)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,f=a?e.height/a:e.height;return{width:c,height:f,top:u,right:s+c,bottom:u+f,left:s}}const _W={ignoreTransform:!1};function Oa(e,t){t===void 0&&(t=_W);let r=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:u}=Qe(e),{transform:c,transformOrigin:f}=u(e);c&&(r=kW(r,c,f))}const{top:n,left:i,width:a,height:o,bottom:l,right:s}=r;return{top:n,left:i,width:a,height:o,bottom:l,right:s}}function Bx(e){return Oa(e,{ignoreTransform:!0})}function NW(e){const t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}function MW(e,t){return t===void 0&&(t=Qe(e).getComputedStyle(e)),t.position==="fixed"}function $W(e,t){t===void 0&&(t=Qe(e).getComputedStyle(e));const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const a=t[i];return typeof a=="string"?r.test(a):!1})}function By(e,t){const r=[];function n(i){if(t!=null&&r.length>=t||!i)return r;if(Fy(i)&&i.scrollingElement!=null&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!Ul(i)||uW(i)||r.includes(i))return r;const{getComputedStyle:a}=Qe(i),o=a(i);return i!==e&&$W(i,o)&&r.push(i),MW(i,o)?r:n(i.parentNode)}return e?n(e):r}function WP(e){const[t]=By(e,1);return t??null}function rv(e){return!Af||!e?null:Ea(e)?e:Ly(e)?Fy(e)||e===Ca(e).scrollingElement?window:Ul(e)?e:null:null}function HP(e){return Ea(e)?e.scrollX:e.scrollLeft}function GP(e){return Ea(e)?e.scrollY:e.scrollTop}function mm(e){return{x:HP(e),y:GP(e)}}var Re;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Re||(Re={}));function qP(e){return!Af||!e?!1:e===document.scrollingElement}function VP(e){const t={x:0,y:0},r=qP(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,a=e.scrollLeft<=t.x,o=e.scrollTop>=n.y,l=e.scrollLeft>=n.x;return{isTop:i,isLeft:a,isBottom:o,isRight:l,maxScroll:n,minScroll:t}}const LW={x:.2,y:.2};function FW(e,t,r,n,i){let{top:a,left:o,right:l,bottom:s}=r;n===void 0&&(n=10),i===void 0&&(i=LW);const{isTop:u,isBottom:c,isLeft:f,isRight:d}=VP(e),p={x:0,y:0},h={x:0,y:0},w={height:t.height*i.y,width:t.width*i.x};return!u&&a<=t.top+w.height?(p.y=Re.Backward,h.y=n*Math.abs((t.top+w.height-a)/w.height)):!c&&s>=t.bottom-w.height&&(p.y=Re.Forward,h.y=n*Math.abs((t.bottom-w.height-s)/w.height)),!d&&l>=t.right-w.width?(p.x=Re.Forward,h.x=n*Math.abs((t.right-w.width-l)/w.width)):!f&&o<=t.left+w.width&&(p.x=Re.Backward,h.x=n*Math.abs((t.left+w.width-o)/w.width)),{direction:p,speed:h}}function BW(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}function YP(e){return e.reduce((t,r)=>Gi(t,mm(r)),jt)}function jW(e){return e.reduce((t,r)=>t+HP(r),0)}function zW(e){return e.reduce((t,r)=>t+GP(r),0)}function KP(e,t){if(t===void 0&&(t=Oa),!e)return;const{top:r,left:n,bottom:i,right:a}=t(e);WP(e)&&(i<=0||a<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const UW=[["x",["left","right"],jW],["y",["top","bottom"],zW]];class jy{constructor(t,r){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;const n=By(r),i=YP(n);this.rect={...t},this.width=t.width,this.height=t.height;for(const[a,o,l]of UW)for(const s of o)Object.defineProperty(this,s,{get:()=>{const u=l(n),c=i[a]-u;return this.rect[s]+c},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class To{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(r=>{var n;return(n=this.target)==null?void 0:n.removeEventListener(...r)})},this.target=t}add(t,r,n){var i;(i=this.target)==null||i.addEventListener(t,r,n),this.listeners.push([t,r,n])}}function WW(e){const{EventTarget:t}=Qe(e);return e instanceof t?e:Ca(e)}function nv(e,t){const r=Math.abs(e.x),n=Math.abs(e.y);return typeof t=="number"?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t?n>t.y:!1}var yt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(yt||(yt={}));function jx(e){e.preventDefault()}function HW(e){e.stopPropagation()}var ie;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"})(ie||(ie={}));const XP={start:[ie.Space,ie.Enter],cancel:[ie.Esc],end:[ie.Space,ie.Enter]},GW=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case ie.Right:return{...r,x:r.x+25};case ie.Left:return{...r,x:r.x-25};case ie.Down:return{...r,y:r.y+25};case ie.Up:return{...r,y:r.y-25}}};class QP{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:r}}=t;this.props=t,this.listeners=new To(Ca(r)),this.windowListeners=new To(Qe(r)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(yt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:r}=this.props,n=t.node.current;n&&KP(n),r(jt)}handleKeyDown(t){if(Tf(t)){const{active:r,context:n,options:i}=this.props,{keyboardCodes:a=XP,coordinateGetter:o=GW,scrollBehavior:l="smooth"}=i,{code:s}=t;if(a.end.includes(s)){this.handleEnd(t);return}if(a.cancel.includes(s)){this.handleCancel(t);return}const{collisionRect:u}=n.current,c=u?{x:u.left,y:u.top}:jt;this.referenceCoordinates||(this.referenceCoordinates=c);const f=o(t,{active:r,context:n.current,currentCoordinates:c});if(f){const d=Ic(f,c),p={x:0,y:0},{scrollableAncestors:h}=n.current;for(const w of h){const v=t.code,{isTop:g,isRight:m,isLeft:y,isBottom:b,maxScroll:x,minScroll:S}=VP(w),E=BW(w),O={x:Math.min(v===ie.Right?E.right-E.width/2:E.right,Math.max(v===ie.Right?E.left:E.left+E.width/2,f.x)),y:Math.min(v===ie.Down?E.bottom-E.height/2:E.bottom,Math.max(v===ie.Down?E.top:E.top+E.height/2,f.y))},I=v===ie.Right&&!m||v===ie.Left&&!y,T=v===ie.Down&&!b||v===ie.Up&&!g;if(I&&O.x!==f.x){const _=w.scrollLeft+d.x,H=v===ie.Right&&_<=x.x||v===ie.Left&&_>=S.x;if(H&&!d.y){w.scrollTo({left:_,behavior:l});return}H?p.x=w.scrollLeft-_:p.x=v===ie.Right?w.scrollLeft-x.x:w.scrollLeft-S.x,p.x&&w.scrollBy({left:-p.x,behavior:l});break}else if(T&&O.y!==f.y){const _=w.scrollTop+d.y,H=v===ie.Down&&_<=x.y||v===ie.Up&&_>=S.y;if(H&&!d.x){w.scrollTo({top:_,behavior:l});return}H?p.y=w.scrollTop-_:p.y=v===ie.Down?w.scrollTop-x.y:w.scrollTop-S.y,p.y&&w.scrollBy({top:-p.y,behavior:l});break}}this.handleMove(t,Gi(Ic(f,this.referenceCoordinates),p))}}}handleMove(t,r){const{onMove:n}=this.props;t.preventDefault(),n(r)}handleEnd(t){const{onEnd:r}=this.props;t.preventDefault(),this.detach(),r()}handleCancel(t){const{onCancel:r}=this.props;t.preventDefault(),this.detach(),r()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}QP.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=XP,onActivation:i}=t,{active:a}=r;const{code:o}=e.nativeEvent;if(n.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function zx(e){return Boolean(e&&"distance"in e)}function Ux(e){return Boolean(e&&"delay"in e)}class zy{constructor(t,r,n){var i;n===void 0&&(n=WW(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=r;const{event:a}=t,{target:o}=a;this.props=t,this.events=r,this.document=Ca(o),this.documentListeners=new To(this.document),this.listeners=new To(n),this.windowListeners=new To(Qe(o)),this.initialCoordinates=(i=Pc(a))!=null?i:jt,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(){const{events:t,props:{options:{activationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.DragStart,jx),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),this.windowListeners.add(yt.ContextMenu,jx),this.documentListeners.add(yt.Keydown,this.handleKeydown),r){if(zx(r))return;if(Ux(r)){this.timeoutId=setTimeout(this.handleStart,r.delay);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(){const{initialCoordinates:t}=this,{onStart:r}=this.props;t&&(this.activated=!0,this.documentListeners.add(yt.Click,HW,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(yt.SelectionChange,this.removeTextSelection),r(t))}handleMove(t){var r;const{activated:n,initialCoordinates:i,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!i)return;const s=(r=Pc(t))!=null?r:jt,u=Ic(i,s);if(!n&&l){if(Ux(l))return nv(u,l.tolerance)?this.handleCancel():void 0;if(zx(l))return l.tolerance!=null&&nv(u,l.tolerance)?this.handleCancel():nv(u,l.distance)?this.handleStart():void 0}t.cancelable&&t.preventDefault(),o(s)}handleEnd(){const{onEnd:t}=this.props;this.detach(),t()}handleCancel(){const{onCancel:t}=this.props;this.detach(),t()}handleKeydown(t){t.code===ie.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const qW={move:{name:"pointermove"},end:{name:"pointerup"}};class JP extends zy{constructor(t){const{event:r}=t,n=Ca(r.target);super(t,qW,n)}}JP.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!r.isPrimary||r.button!==0?!1:(n==null||n({event:r}),!0)}}];const VW={move:{name:"mousemove"},end:{name:"mouseup"}};var hm;(function(e){e[e.RightClick=2]="RightClick"})(hm||(hm={}));class YW extends zy{constructor(t){super(t,VW,Ca(t.event.target))}}YW.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button===hm.RightClick?!1:(n==null||n({event:r}),!0)}}];const iv={move:{name:"touchmove"},end:{name:"touchend"}};class KW extends zy{constructor(t){super(t,iv)}static setup(){return window.addEventListener(iv.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(iv.move.name,t)};function t(){}}}KW.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;const{touches:i}=r;return i.length>1?!1:(n==null||n({event:r}),!0)}}];var ko;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(ko||(ko={}));var Ac;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ac||(Ac={}));function XW(e){let{acceleration:t,activator:r=ko.Pointer,canScroll:n,draggingRect:i,enabled:a,interval:o=5,order:l=Ac.TreeOrder,pointerCoordinates:s,scrollableAncestors:u,scrollableAncestorRects:c,delta:f,threshold:d}=e;const p=JW({delta:f,disabled:!a}),[h,w]=cW(),v=C.useRef({x:0,y:0}),g=C.useRef({x:0,y:0}),m=C.useMemo(()=>{switch(r){case ko.Pointer:return s?{top:s.y,bottom:s.y,left:s.x,right:s.x}:null;case ko.DraggableRect:return i}},[r,i,s]),y=C.useRef(null),b=C.useCallback(()=>{const S=y.current;if(!S)return;const E=v.current.x*g.current.x,O=v.current.y*g.current.y;S.scrollBy(E,O)},[]),x=C.useMemo(()=>l===Ac.TreeOrder?[...u].reverse():u,[l,u]);C.useEffect(()=>{if(!a||!u.length||!m){w();return}for(const S of x){if((n==null?void 0:n(S))===!1)continue;const E=u.indexOf(S),O=c[E];if(!O)continue;const{direction:I,speed:T}=FW(S,O,m,t,d);for(const _ of["x","y"])p[_][I[_]]||(T[_]=0,I[_]=0);if(T.x>0||T.y>0){w(),y.current=S,h(b,o),v.current=T,g.current=I;return}}v.current={x:0,y:0},g.current={x:0,y:0},w()},[t,b,n,w,a,o,JSON.stringify(m),JSON.stringify(p),h,u,x,c,JSON.stringify(d)])}const QW={x:{[Re.Backward]:!1,[Re.Forward]:!1},y:{[Re.Backward]:!1,[Re.Forward]:!1}};function JW(e){let{delta:t,disabled:r}=e;const n=Oc(t);return Wl(i=>{if(r||!n||!i)return QW;const a={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[Re.Backward]:i.x[Re.Backward]||a.x===-1,[Re.Forward]:i.x[Re.Forward]||a.x===1},y:{[Re.Backward]:i.y[Re.Backward]||a.y===-1,[Re.Forward]:i.y[Re.Forward]||a.y===1}}},[r,t,n])}function ZW(e,t){const r=t!==null?e.get(t):void 0,n=r?r.node.current:null;return Wl(i=>{var a;return t===null?null:(a=n??i)!=null?a:null},[n,t])}function e9(e,t){return C.useMemo(()=>e.reduce((r,n)=>{const{sensor:i}=n,a=i.activators.map(o=>({eventName:o.eventName,handler:t(o.handler,n)}));return[...r,...a]},[]),[e,t])}var fl;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(fl||(fl={}));var ym;(function(e){e.Optimized="optimized"})(ym||(ym={}));const Wx=new Map;function t9(e,t){let{dragging:r,dependencies:n,config:i}=t;const[a,o]=C.useState(null),l=a!=null,{frequency:s,measure:u,strategy:c}=i,f=C.useRef(e),d=g(),p=cl(d),h=C.useCallback(function(m){m===void 0&&(m=[]),!p.current&&o(y=>y?y.concat(m):m)},[p]),w=C.useRef(null),v=Wl(m=>{if(d&&!r)return Wx;const y=a;if(!m||m===Wx||f.current!==e||y!=null){const b=new Map;for(let x of e){if(!x)continue;if(y&&y.length>0&&!y.includes(x.id)&&x.rect.current){b.set(x.id,x.rect.current);continue}const S=x.node.current,E=S?new jy(u(S),S):null;x.rect.current=E,E&&b.set(x.id,E)}return b}return m},[e,a,r,d,u]);return C.useEffect(()=>{f.current=e},[e]),C.useEffect(()=>{d||requestAnimationFrame(()=>h())},[r,d]),C.useEffect(()=>{l&&o(null)},[l]),C.useEffect(()=>{d||typeof s!="number"||w.current!==null||(w.current=setTimeout(()=>{h(),w.current=null},s))},[s,d,h,...n]),{droppableRects:v,measureDroppableContainers:h,measuringScheduled:l};function g(){switch(c){case fl.Always:return!1;case fl.BeforeDragging:return r;default:return!r}}}function Uy(e,t){return Wl(r=>e?r||(typeof t=="function"?t(e):e):null,[t,e])}function r9(e,t){return Uy(e,t)}function n9(e){let{callback:t,disabled:r}=e;const n=Rf(t),i=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(n)},[n,r]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function kf(e){let{callback:t,disabled:r}=e;const n=Rf(t),i=C.useMemo(()=>{if(r||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(n)},[r]);return C.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function i9(e){return new jy(Oa(e),e)}function Hx(e,t,r){t===void 0&&(t=i9);const[n,i]=C.useReducer(l,null),a=n9({callback(s){if(e)for(const u of s){const{type:c,target:f}=u;if(c==="childList"&&f instanceof HTMLElement&&f.contains(e)){i();break}}}}),o=kf({callback:i});return Dt(()=>{i(),e?(o==null||o.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(o==null||o.disconnect(),a==null||a.disconnect())},[e]),n;function l(s){if(!e)return null;if(e.isConnected===!1){var u;return(u=s??r)!=null?u:null}const c=t(e);return JSON.stringify(s)===JSON.stringify(c)?s:c}}function a9(e){const t=Uy(e);return zP(e,t)}const Gx=[];function o9(e){const t=C.useRef(e),r=Wl(n=>e?n&&n!==Gx&&e&&t.current&&e.parentNode===t.current.parentNode?n:By(e):Gx,[e]);return C.useEffect(()=>{t.current=e},[e]),r}function l9(e){const[t,r]=C.useState(null),n=C.useRef(e),i=C.useCallback(a=>{const o=rv(a.target);o&&r(l=>l?(l.set(o,mm(o)),new Map(l)):null)},[]);return C.useEffect(()=>{const a=n.current;if(e!==a){o(a);const l=e.map(s=>{const u=rv(s);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,mm(u)]):null}).filter(s=>s!=null);r(l.length?new Map(l):null),n.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(s=>{const u=rv(s);u==null||u.removeEventListener("scroll",i)})}},[i,e]),C.useMemo(()=>e.length?t?Array.from(t.values()).reduce((a,o)=>Gi(a,o),jt):YP(e):jt,[e,t])}function qx(e,t){t===void 0&&(t=[]);const r=C.useRef(null);return C.useEffect(()=>{r.current=null},t),C.useEffect(()=>{const n=e!==jt;n&&!r.current&&(r.current=e),!n&&r.current&&(r.current=null)},[e]),r.current?Ic(e,r.current):jt}function s9(e){C.useEffect(()=>{if(!Af)return;const t=e.map(r=>{let{sensor:n}=r;return n.setup==null?void 0:n.setup()});return()=>{for(const r of t)r==null||r()}},e.map(t=>{let{sensor:r}=t;return r}))}function u9(e,t){return C.useMemo(()=>e.reduce((r,n)=>{let{eventName:i,handler:a}=n;return r[i]=o=>{a(o,t)},r},{}),[e,t])}function ZP(e){return C.useMemo(()=>e?NW(e):null,[e])}const av=[];function c9(e,t){t===void 0&&(t=Oa);const[r]=e,n=ZP(r?Qe(r):null),[i,a]=C.useReducer(l,av),o=kf({callback:a});return e.length>0&&i===av&&a(),Dt(()=>{e.length?e.forEach(s=>o==null?void 0:o.observe(s)):(o==null||o.disconnect(),a())},[e]),i;function l(){return e.length?e.map(s=>qP(s)?n:new jy(t(s),s)):av}}function eD(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Ul(t)?t:e}function f9(e){let{measure:t}=e;const[r,n]=C.useState(null),i=C.useCallback(u=>{for(const{target:c}of u)if(Ul(c)){n(f=>{const d=t(c);return f?{...f,width:d.width,height:d.height}:d});break}},[t]),a=kf({callback:i}),o=C.useCallback(u=>{const c=eD(u);a==null||a.disconnect(),c&&(a==null||a.observe(c)),n(c?t(c):null)},[t,a]),[l,s]=Cc(o);return C.useMemo(()=>({nodeRef:l,rect:r,setRef:s}),[r,l,s])}const d9=[{sensor:JP,options:{}},{sensor:QP,options:{}}],p9={current:{}},iu={draggable:{measure:Bx},droppable:{measure:Bx,strategy:fl.WhileDragging,frequency:ym.Optimized},dragOverlay:{measure:Oa}};class _o extends Map{get(t){var r;return t!=null&&(r=super.get(t))!=null?r:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:r}=t;return!r})}getNodeFor(t){var r,n;return(r=(n=this.get(t))==null?void 0:n.node.current)!=null?r:void 0}}const v9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _o,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Dc},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:iu,measureDroppableContainers:Dc,windowRect:null,measuringScheduled:!1},tD={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Dc,draggableNodes:new Map,over:null,measureDroppableContainers:Dc},Gl=C.createContext(tD),rD=C.createContext(v9);function g9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _o}}}function m9(e,t){switch(t.type){case Oe.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Oe.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 Oe.DragEnd:case Oe.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Oe.RegisterDroppable:{const{element:r}=t,{id:n}=r,i=new _o(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case Oe.SetDroppableDisabled:{const{id:r,key:n,disabled:i}=t,a=e.droppable.containers.get(r);if(!a||n!==a.key)return e;const o=new _o(e.droppable.containers);return o.set(r,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Oe.UnregisterDroppable:{const{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;const a=new _o(e.droppable.containers);return a.delete(r),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function h9(e){let{disabled:t}=e;const{active:r,activatorEvent:n,draggableNodes:i}=C.useContext(Gl),a=Oc(n),o=Oc(r==null?void 0:r.id);return C.useEffect(()=>{if(!t&&!n&&a&&o!=null){if(!Tf(a)||document.activeElement===a.target)return;const l=i.get(o);if(!l)return;const{activatorNode:s,node:u}=l;if(!s.current&&!u.current)return;requestAnimationFrame(()=>{for(const c of[s.current,u.current]){if(!c)continue;const f=pW(c);if(f){f.focus();break}}})}},[n,t,i,o,a]),null}function nD(e,t){let{transform:r,...n}=t;return e!=null&&e.length?e.reduce((i,a)=>a({transform:i,...n}),r):r}function y9(e){return C.useMemo(()=>({draggable:{...iu.draggable,...e==null?void 0:e.draggable},droppable:{...iu.droppable,...e==null?void 0:e.droppable},dragOverlay:{...iu.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 b9(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e;const a=C.useRef(!1),{x:o,y:l}=typeof i=="boolean"?{x:i,y:i}:i;Dt(()=>{if(!o&&!l||!t){a.current=!1;return}if(a.current||!n)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const c=r(u),f=zP(c,n);if(o||(f.x=0),l||(f.y=0),a.current=!0,Math.abs(f.x)>0||Math.abs(f.y)>0){const d=WP(u);d&&d.scrollBy({top:f.y,left:f.x})}},[t,o,l,n,r])}const _f=C.createContext({...jt,scaleX:1,scaleY:1});var Nr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Nr||(Nr={}));const w7=C.memo(function(t){var r,n,i,a;let{id:o,accessibility:l,autoScroll:s=!0,children:u,sensors:c=d9,collisionDetection:f=DW,measuring:d,modifiers:p,...h}=t;const w=C.useReducer(m9,void 0,g9),[v,g]=w,[m,y]=wW(),[b,x]=C.useState(Nr.Uninitialized),S=b===Nr.Initialized,{draggable:{active:E,nodes:O,translate:I},droppable:{containers:T}}=v,_=E?O.get(E):null,H=C.useRef({initial:null,translated:null}),z=C.useMemo(()=>{var Me;return E!=null?{id:E,data:(Me=_==null?void 0:_.data)!=null?Me:p9,rect:H}:null},[E,_]),G=C.useRef(null),[K,Q]=C.useState(null),[ee,oe]=C.useState(null),le=cl(h,Object.values(h)),ce=Hl("DndDescribedBy",o),P=C.useMemo(()=>T.getEnabled(),[T]),k=y9(d),{droppableRects:U,measureDroppableContainers:X,measuringScheduled:Y}=t9(P,{dragging:S,dependencies:[I.x,I.y],config:k.droppable}),se=ZW(O,E),Ne=C.useMemo(()=>ee?Pc(ee):null,[ee]),Ce=hD(),xe=r9(se,k.draggable.measure);b9({activeNode:E?O.get(E):null,config:Ce.layoutShiftCompensation,initialRect:xe,measure:k.draggable.measure});const J=Hx(se,k.draggable.measure,xe),ir=Hx(se?se.parentElement:null),nt=C.useRef({activatorEvent:null,active:null,activeNode:se,collisionRect:null,collisions:null,droppableRects:U,draggableNodes:O,draggingNode:null,draggingNodeRect:null,droppableContainers:T,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Wt=T.getNodeFor((r=nt.current.over)==null?void 0:r.id),Je=f9({measure:k.dragOverlay.measure}),ar=(n=Je.nodeRef.current)!=null?n:se,Ht=S?(i=Je.rect)!=null?i:J:null,ni=Boolean(Je.nodeRef.current&&Je.rect),ql=a9(ni?null:J),or=ZP(ar?Qe(ar):null),vt=o9(S?Wt??se:null),Vl=c9(vt),Yl=nD(p,{transform:{x:I.x-ql.x,y:I.y-ql.y,scaleX:1,scaleY:1},activatorEvent:ee,active:z,activeNodeRect:J,containerNodeRect:ir,draggingNodeRect:Ht,over:nt.current.over,overlayNodeRect:Je.rect,scrollableAncestors:vt,scrollableAncestorRects:Vl,windowRect:or}),Wy=Ne?Gi(Ne,I):null,Hy=l9(vt),cD=qx(Hy),fD=qx(Hy,[J]),ii=Gi(Yl,cD),ai=Ht?TW(Ht,Yl):null,Ia=z&&ai?f({active:z,collisionRect:ai,droppableRects:U,droppableContainers:P,pointerCoordinates:Wy}):null,Gy=IW(Ia,"id"),[Or,qy]=C.useState(null),dD=ni?Yl:Gi(Yl,fD),pD=AW(dD,(a=Or==null?void 0:Or.rect)!=null?a:null,J),Vy=C.useCallback((Me,it)=>{let{sensor:at,options:Ir}=it;if(G.current==null)return;const gt=O.get(G.current);if(!gt)return;const Rt=Me.nativeEvent,Gt=new at({active:G.current,activeNode:gt,event:Rt,options:Ir,context:nt,onStart(Tt){const Pa=G.current;if(Pa==null)return;const Da=O.get(Pa);if(!Da)return;const{onDragStart:Kl}=le.current,Xl={active:{id:Pa,data:Da.data,rect:H}};Mt.unstable_batchedUpdates(()=>{Kl==null||Kl(Xl),x(Nr.Initializing),g({type:Oe.DragStart,initialCoordinates:Tt,active:Pa}),m({type:"onDragStart",event:Xl})})},onMove(Tt){g({type:Oe.DragMove,coordinates:Tt})},onEnd:oi(Oe.DragEnd),onCancel:oi(Oe.DragCancel)});Mt.unstable_batchedUpdates(()=>{Q(Gt),oe(Me.nativeEvent)});function oi(Tt){return async function(){const{active:Da,collisions:Kl,over:Xl,scrollAdjustedTranslate:Ky}=nt.current;let Aa=null;if(Da&&Ky){const{cancelDrop:Ra}=le.current;Aa={activatorEvent:Rt,active:Da,collisions:Kl,delta:Ky,over:Xl},Tt===Oe.DragEnd&&typeof Ra=="function"&&await Promise.resolve(Ra(Aa))&&(Tt=Oe.DragCancel)}G.current=null,Mt.unstable_batchedUpdates(()=>{g({type:Tt}),x(Nr.Uninitialized),qy(null),Q(null),oe(null);const Ra=Tt===Oe.DragEnd?"onDragEnd":"onDragCancel";if(Aa){const Nf=le.current[Ra];Nf==null||Nf(Aa),m({type:Ra,event:Aa})}})}}},[O]),vD=C.useCallback((Me,it)=>(at,Ir)=>{const gt=at.nativeEvent,Rt=O.get(Ir);if(G.current!==null||!Rt||gt.dndKit||gt.defaultPrevented)return;const Gt={active:Rt};Me(at,it.options,Gt)===!0&&(gt.dndKit={capturedBy:it.sensor},G.current=Ir,Vy(at,it))},[O,Vy]),Yy=e9(c,vD);s9(c),Dt(()=>{J&&b===Nr.Initializing&&x(Nr.Initialized)},[J,b]),C.useEffect(()=>{const{onDragMove:Me}=le.current,{active:it,activatorEvent:at,collisions:Ir,over:gt}=nt.current;if(!it||!at)return;const Rt={active:it,activatorEvent:at,collisions:Ir,delta:{x:ii.x,y:ii.y},over:gt};Mt.unstable_batchedUpdates(()=>{Me==null||Me(Rt),m({type:"onDragMove",event:Rt})})},[ii.x,ii.y]),C.useEffect(()=>{const{active:Me,activatorEvent:it,collisions:at,droppableContainers:Ir,scrollAdjustedTranslate:gt}=nt.current;if(!Me||G.current==null||!it||!gt)return;const{onDragOver:Rt}=le.current,Gt=Ir.get(Gy),oi=Gt&&Gt.rect.current?{id:Gt.id,rect:Gt.rect.current,data:Gt.data,disabled:Gt.disabled}:null,Tt={active:Me,activatorEvent:it,collisions:at,delta:{x:gt.x,y:gt.y},over:oi};Mt.unstable_batchedUpdates(()=>{qy(oi),Rt==null||Rt(Tt),m({type:"onDragOver",event:Tt})})},[Gy]),Dt(()=>{nt.current={activatorEvent:ee,active:z,activeNode:se,collisionRect:ai,collisions:Ia,droppableRects:U,draggableNodes:O,draggingNode:ar,draggingNodeRect:Ht,droppableContainers:T,over:Or,scrollableAncestors:vt,scrollAdjustedTranslate:ii},H.current={initial:Ht,translated:ai}},[z,se,Ia,ai,O,ar,Ht,U,T,Or,vt,ii]),XW({...Ce,delta:I,draggingRect:ai,pointerCoordinates:Wy,scrollableAncestors:vt,scrollableAncestorRects:Vl});const gD=C.useMemo(()=>({active:z,activeNode:se,activeNodeRect:J,activatorEvent:ee,collisions:Ia,containerNodeRect:ir,dragOverlay:Je,draggableNodes:O,droppableContainers:T,droppableRects:U,over:Or,measureDroppableContainers:X,scrollableAncestors:vt,scrollableAncestorRects:Vl,measuringConfiguration:k,measuringScheduled:Y,windowRect:or}),[z,se,J,ee,Ia,ir,Je,O,T,U,Or,X,vt,Vl,k,Y,or]),mD=C.useMemo(()=>({activatorEvent:ee,activators:Yy,active:z,activeNodeRect:J,ariaDescribedById:{draggable:ce},dispatch:g,draggableNodes:O,over:Or,measureDroppableContainers:X}),[ee,Yy,z,J,g,ce,O,Or,X]);return F.createElement(FP.Provider,{value:y},F.createElement(Gl.Provider,{value:mD},F.createElement(rD.Provider,{value:gD},F.createElement(_f.Provider,{value:pD},u)),F.createElement(h9,{disabled:(l==null?void 0:l.restoreFocus)===!1})),F.createElement(EW,{...l,hiddenTextDescribedById:ce}));function hD(){const Me=(K==null?void 0:K.autoScrollEnabled)===!1,it=typeof s=="object"?s.enabled===!1:s===!1,at=S&&!Me&&!it;return typeof s=="object"?{...s,enabled:at}:{enabled:at}}}),w9=C.createContext(null),Vx="button",S9="Droppable";function x9(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e;const a=Hl(S9),{activators:o,activatorEvent:l,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:f,over:d}=C.useContext(Gl),{role:p=Vx,roleDescription:h="draggable",tabIndex:w=0}=i??{},v=(s==null?void 0:s.id)===t,g=C.useContext(v?_f:w9),[m,y]=Cc(),[b,x]=Cc(),S=u9(o,t),E=cl(r);Dt(()=>(f.set(t,{id:t,key:a,node:m,activatorNode:b,data:E}),()=>{const I=f.get(t);I&&I.key===a&&f.delete(t)}),[f,t]);const O=C.useMemo(()=>({role:p,tabIndex:w,"aria-disabled":n,"aria-pressed":v&&p===Vx?!0:void 0,"aria-roledescription":h,"aria-describedby":c.draggable}),[n,p,w,v,h,c.draggable]);return{active:s,activatorEvent:l,activeNodeRect:u,attributes:O,isDragging:v,listeners:n?void 0:S,node:m,over:d,setNodeRef:y,setActivatorNodeRef:x,transform:g}}function iD(){return C.useContext(rD)}const E9="Droppable",C9={timeout:25};function O9(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:i}=e;const a=Hl(E9),{active:o,dispatch:l,over:s,measureDroppableContainers:u}=C.useContext(Gl),c=C.useRef({disabled:r}),f=C.useRef(!1),d=C.useRef(null),p=C.useRef(null),{disabled:h,updateMeasurementsFor:w,timeout:v}={...C9,...i},g=cl(w??n),m=C.useCallback(()=>{if(!f.current){f.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(g.current)?g.current:[g.current]),p.current=null},v)},[v]),y=kf({callback:m,disabled:h||!o}),b=C.useCallback((O,I)=>{y&&(I&&(y.unobserve(I),f.current=!1),O&&y.observe(O))},[y]),[x,S]=Cc(b),E=cl(t);return C.useEffect(()=>{!y||!x.current||(y.disconnect(),f.current=!1,y.observe(x.current))},[x,y]),Dt(()=>(l({type:Oe.RegisterDroppable,element:{id:n,key:a,disabled:r,node:x,rect:d,data:E}}),()=>l({type:Oe.UnregisterDroppable,key:a,id:n})),[n]),C.useEffect(()=>{r!==c.current.disabled&&(l({type:Oe.SetDroppableDisabled,id:n,key:a,disabled:r}),c.current.disabled=r)},[n,a,r,l]),{active:o,rect:d,isOver:(s==null?void 0:s.id)===n,node:x,over:s,setNodeRef:S}}function I9(e){let{animation:t,children:r}=e;const[n,i]=C.useState(null),[a,o]=C.useState(null),l=Oc(r);return!r&&!n&&l&&i(l),Dt(()=>{if(!a)return;const s=n==null?void 0:n.key,u=n==null?void 0:n.props.id;if(s==null||u==null){i(null);return}Promise.resolve(t(u,a)).then(()=>{i(null)})},[t,n,a]),F.createElement(F.Fragment,null,r,n?C.cloneElement(n,{ref:o}):null)}const P9={x:0,y:0,scaleX:1,scaleY:1};function D9(e){let{children:t}=e;return F.createElement(Gl.Provider,{value:tD},F.createElement(_f.Provider,{value:P9},t))}const A9={position:"fixed",touchAction:"none"},R9=e=>Tf(e)?"transform 250ms ease":void 0,T9=C.forwardRef((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:a,className:o,rect:l,style:s,transform:u,transition:c=R9}=e;if(!l)return null;const f=i?u:{...u,scaleX:1,scaleY:1},d={...A9,width:l.width,height:l.height,top:l.top,left:l.left,transform:Vn.Transform.toString(f),transformOrigin:i&&n?CW(n,l):void 0,transition:typeof c=="function"?c(n):c,...s};return F.createElement(r,{className:o,style:d,ref:t},a)}),k9=e=>t=>{let{active:r,dragOverlay:n}=t;const i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,s]of Object.entries(a.active))s!==void 0&&(i[l]=r.node.style.getPropertyValue(l),r.node.style.setProperty(l,s));if(a!=null&&a.dragOverlay)for(const[l,s]of Object.entries(a.dragOverlay))s!==void 0&&n.node.style.setProperty(l,s);return o!=null&&o.active&&r.node.classList.add(o.active),o!=null&&o.dragOverlay&&n.node.classList.add(o.dragOverlay),function(){for(const[s,u]of Object.entries(i))r.node.style.setProperty(s,u);o!=null&&o.active&&r.node.classList.remove(o.active)}},_9=e=>{let{transform:{initial:t,final:r}}=e;return[{transform:Vn.Transform.toString(t)},{transform:Vn.Transform.toString(r)}]},N9={duration:250,easing:"ease",keyframes:_9,sideEffects:k9({styles:{active:{opacity:"0"}}})};function M9(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return Rf((a,o)=>{if(t===null)return;const l=r.get(a);if(!l)return;const s=l.node.current;if(!s)return;const u=eD(o);if(!u)return;const{transform:c}=Qe(o).getComputedStyle(o),f=UP(c);if(!f)return;const d=typeof t=="function"?t:$9(t);return KP(s,i.draggable.measure),d({active:{id:a,data:l.data,node:s,rect:i.draggable.measure(s)},draggableNodes:r,dragOverlay:{node:o,rect:i.dragOverlay.measure(u)},droppableContainers:n,measuringConfiguration:i,transform:f})})}function $9(e){const{duration:t,easing:r,sideEffects:n,keyframes:i}={...N9,...e};return a=>{let{active:o,dragOverlay:l,transform:s,...u}=a;if(!t)return;const c={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},f={scaleX:s.scaleX!==1?o.rect.width*s.scaleX/l.rect.width:1,scaleY:s.scaleY!==1?o.rect.height*s.scaleY/l.rect.height:1},d={x:s.x-c.x,y:s.y-c.y,...f},p=i({...u,active:o,dragOverlay:l,transform:{initial:s,final:d}}),[h]=p,w=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(w))return;const v=n==null?void 0:n({active:o,dragOverlay:l,...u}),g=l.node.animate(p,{duration:t,easing:r,fill:"forwards"});return new Promise(m=>{g.onfinish=()=>{v==null||v(),m()}})}}let Yx=0;function L9(e){return C.useMemo(()=>{if(e!=null)return Yx++,Yx},[e])}const S7=F.memo(e=>{let{adjustScale:t=!1,children:r,dropAnimation:n,style:i,transition:a,modifiers:o,wrapperElement:l="div",className:s,zIndex:u=999}=e;const{activatorEvent:c,active:f,activeNodeRect:d,containerNodeRect:p,draggableNodes:h,droppableContainers:w,dragOverlay:v,over:g,measuringConfiguration:m,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=iD(),S=C.useContext(_f),E=L9(f==null?void 0:f.id),O=nD(o,{activatorEvent:c,active:f,activeNodeRect:d,containerNodeRect:p,draggingNodeRect:v.rect,over:g,overlayNodeRect:v.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),I=Uy(d),T=M9({config:n,draggableNodes:h,droppableContainers:w,measuringConfiguration:m}),_=I?v.setRef:void 0;return F.createElement(D9,null,F.createElement(I9,{animation:T},f&&E?F.createElement(T9,{key:E,id:f.id,ref:_,as:l,activatorEvent:c,adjustScale:t,className:s,transition:a,rect:I,style:{zIndex:u,...i},transform:O},r):null))});function aD(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n}function F9(e,t){return e.reduce((r,n,i)=>{const a=t.get(n);return a&&(r[i]=a),r},Array(e.length))}function Ms(e){return e!==null&&e>=0}function B9(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function j9(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const oD=e=>{let{rects:t,activeIndex:r,overIndex:n,index:i}=e;const a=aD(t,n,r),o=t[i],l=a[i];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},$s={scaleX:1,scaleY:1},x7=e=>{var t;let{activeIndex:r,activeNodeRect:n,index:i,rects:a,overIndex:o}=e;const l=(t=a[r])!=null?t:n;if(!l)return null;if(i===r){const u=a[o];return u?{x:0,y:r<o?u.top+u.height-(l.top+l.height):u.top-l.top,...$s}:null}const s=z9(a,i,r);return i>r&&i<=o?{x:0,y:-l.height-s,...$s}:i<r&&i>=o?{x:0,y:l.height+s,...$s}:{x:0,y:0,...$s}};function z9(e,t,r){const n=e[t],i=e[t-1],a=e[t+1];return n?r<t?i?n.top-(i.top+i.height):a?a.top-(n.top+n.height):0:a?a.top-(n.top+n.height):i?n.top-(i.top+i.height):0:0}const lD="Sortable",sD=F.createContext({activeIndex:-1,containerId:lD,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:oD,disabled:{draggable:!1,droppable:!1}});function E7(e){let{children:t,id:r,items:n,strategy:i=oD,disabled:a=!1}=e;const{active:o,dragOverlay:l,droppableRects:s,over:u,measureDroppableContainers:c,measuringScheduled:f}=iD(),d=Hl(lD,r),p=Boolean(l.rect!==null),h=C.useMemo(()=>n.map(E=>typeof E=="object"&&"id"in E?E.id:E),[n]),w=o!=null,v=o?h.indexOf(o.id):-1,g=u?h.indexOf(u.id):-1,m=C.useRef(h),y=!B9(h,m.current),b=g!==-1&&v===-1||y,x=j9(a);Dt(()=>{y&&w&&!f&&c(h)},[y,h,w,c,f]),C.useEffect(()=>{m.current=h},[h]);const S=C.useMemo(()=>({activeIndex:v,containerId:d,disabled:x,disableTransforms:b,items:h,overIndex:g,useDragOverlay:p,sortedRects:F9(h,s),strategy:i}),[v,d,x.draggable,x.droppable,b,h,g,s,p,i]);return F.createElement(sD.Provider,{value:S},t)}const U9=e=>{let{id:t,items:r,activeIndex:n,overIndex:i}=e;return aD(r,n,i).indexOf(t)},W9=e=>{let{containerId:t,isSorting:r,wasDragging:n,index:i,items:a,newIndex:o,previousItems:l,previousContainerId:s,transition:u}=e;return!u||!n||l!==a&&i===o?!1:r?!0:o!==i&&t===s},H9={duration:200,easing:"ease"},uD="transform",G9=Vn.Transition.toString({property:uD,duration:0,easing:"linear"}),q9={roleDescription:"sortable"};function V9(e){let{disabled:t,index:r,node:n,rect:i}=e;const[a,o]=C.useState(null),l=C.useRef(r);return Dt(()=>{if(!t&&r!==l.current&&n.current){const s=i.current;if(s){const u=Oa(n.current,{ignoreTransform:!0}),c={x:s.left-u.left,y:s.top-u.top,scaleX:s.width/u.width,scaleY:s.height/u.height};(c.x||c.y)&&o(c)}}r!==l.current&&(l.current=r)},[t,r,n,i]),C.useEffect(()=>{a&&requestAnimationFrame(()=>{o(null)})},[a]),a}function C7(e){let{animateLayoutChanges:t=W9,attributes:r,disabled:n,data:i,getNewIndex:a=U9,id:o,strategy:l,resizeObserverConfig:s,transition:u=H9}=e;const{items:c,containerId:f,activeIndex:d,disabled:p,disableTransforms:h,sortedRects:w,overIndex:v,useDragOverlay:g,strategy:m}=C.useContext(sD),y=Y9(n,p),b=c.indexOf(o),x=C.useMemo(()=>({sortable:{containerId:f,index:b,items:c},...i}),[f,i,b,c]),S=C.useMemo(()=>c.slice(c.indexOf(o)),[c,o]),{rect:E,node:O,isOver:I,setNodeRef:T}=O9({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...s}}),{active:_,activatorEvent:H,activeNodeRect:z,attributes:G,setNodeRef:K,listeners:Q,isDragging:ee,over:oe,setActivatorNodeRef:le,transform:ce}=x9({id:o,data:x,attributes:{...q9,...r},disabled:y.draggable}),P=sW(T,K),k=Boolean(_),U=k&&!h&&Ms(d)&&Ms(v),X=!g&&ee,Y=X&&U?ce:null,Ne=U?Y??(l??m)({rects:w,activeNodeRect:z,activeIndex:d,overIndex:v,index:b}):null,Ce=Ms(d)&&Ms(v)?a({id:o,items:c,activeIndex:d,overIndex:v}):b,xe=_==null?void 0:_.id,J=C.useRef({activeId:xe,items:c,newIndex:Ce,containerId:f}),ir=c!==J.current.items,nt=t({active:_,containerId:f,isDragging:ee,isSorting:k,id:o,index:b,items:c,newIndex:J.current.newIndex,previousItems:J.current.items,previousContainerId:J.current.containerId,transition:u,wasDragging:J.current.activeId!=null}),Wt=V9({disabled:!nt,index:b,node:O,rect:E});return C.useEffect(()=>{k&&J.current.newIndex!==Ce&&(J.current.newIndex=Ce),f!==J.current.containerId&&(J.current.containerId=f),c!==J.current.items&&(J.current.items=c)},[k,Ce,f,c]),C.useEffect(()=>{if(xe===J.current.activeId)return;if(xe&&!J.current.activeId){J.current.activeId=xe;return}const ar=setTimeout(()=>{J.current.activeId=xe},50);return()=>clearTimeout(ar)},[xe]),{active:_,activeIndex:d,attributes:G,data:x,rect:E,index:b,newIndex:Ce,items:c,isOver:I,isSorting:k,isDragging:ee,listeners:Q,node:O,overIndex:v,over:oe,setNodeRef:P,setActivatorNodeRef:le,setDroppableNodeRef:T,setDraggableNodeRef:K,transform:Wt??Ne,transition:Je()};function Je(){if(Wt||ir&&J.current.newIndex===b)return G9;if(!(X&&!Tf(H)||!u)&&(k||nt))return Vn.Transition.toString({...u,property:uD})}}function Y9(e,t){var r,n;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(r=e==null?void 0:e.draggable)!=null?r:t.draggable,droppable:(n=e==null?void 0:e.droppable)!=null?n:t.droppable}}ie.Down,ie.Right,ie.Up,ie.Left;export{s7 as $,w7 as A,y7 as B,J9 as C,n7 as D,Oh as E,Zc as F,x7 as G,QP as H,g7 as I,u7 as J,ie as K,c7 as L,fl as M,t7 as N,r7 as O,i7 as P,rj as Q,to as R,E7 as S,Fl as T,f7 as U,Z9 as V,wB as W,a7 as X,o7 as Y,F as a,v7 as b,P1 as c,Se as d,Q9 as e,p7 as f,d7 as g,lB as h,aD as i,Xy as j,b7 as k,l7 as l,X9 as m,IW as n,JP as o,V as p,Vn as q,C as r,e7 as s,iD as t,C7 as u,Mt as v,S7 as w,N9 as x,h7 as y,m7 as z};
907
+ //# sourceMappingURL=vendor-80145ba5.js.map