@oliasoft-open-source/react-ui-library 4.3.1 → 4.3.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.
Files changed (64) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{index-pNLRgTGq.js → index-KHBkFPvW.js} +39 -37
  3. package/dist/assets/{index-1SRgv0eL.css → index-Z_bN_4fb.css} +67 -64
  4. package/dist/index.d.ts +8 -1
  5. package/dist/index.html +1 -1
  6. package/dist/index.js +2 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/storybook/assets/{Color-6VNJS4EI-74NMK_ph.js → Color-6VNJS4EI-N_ztWf-2.js} +1 -1
  9. package/dist/storybook/assets/{DocsRenderer-NNNQARDV-3vsXFSwl.js → DocsRenderer-NNNQARDV-n9vPiSxN.js} +1 -1
  10. package/dist/storybook/assets/{WithTooltip-4HIR6TLV-SoNAVatX.js → WithTooltip-4HIR6TLV-SapwsMVA.js} +1 -1
  11. package/dist/storybook/assets/{afe.stories-FJFe0iiG.js → afe.stories-4IYdV9SC.js} +1 -1
  12. package/dist/storybook/assets/{button.stories-3R6aC9Rs.js → button.stories-f6VcbEgi.js} +1 -1
  13. package/dist/storybook/assets/{buttons-and-links-sDEyZ90k.js → buttons-and-links-tNxsA8cW.js} +1 -1
  14. package/dist/storybook/assets/{casing-loads.stories-GDGZ_fYs.js → casing-loads.stories-Yonx5Xjy.js} +1 -1
  15. package/dist/storybook/assets/{cell.stories-S4scZ-t1.js → cell.stories-Ai43vY3p.js} +1 -1
  16. package/dist/storybook/assets/{chunk-HLWAVYOI-bxc7QupL.js → chunk-HLWAVYOI-vQmBbPB0.js} +1 -1
  17. package/dist/storybook/assets/{color-q4ze05A-.js → color-vWRh3Qae.js} +1 -1
  18. package/dist/storybook/assets/{drawer.stories-lRem_fZs.js → drawer.stories-yRZlQHoV.js} +1 -1
  19. package/dist/storybook/assets/{file-input.stories-JMkh7Ovh.js → file-input.stories-wkU6vhN2.js} +1 -1
  20. package/dist/storybook/assets/{flex-KzhjL9yc.js → flex-3eLDDUyy.js} +1 -1
  21. package/dist/storybook/assets/{flex.stories-Ty-qNXaD.js → flex.stories-_VBDAVzN.js} +1 -1
  22. package/dist/storybook/assets/{footer.stories-LKj4DmGv.js → footer.stories-sVnY5dxB.js} +1 -1
  23. package/dist/storybook/assets/{form.stories-0Xg8lA47.js → form.stories-vqEAUdaV.js} +1 -1
  24. package/dist/storybook/assets/{formatter-SWP5E3XI-pvgDL1On.js → formatter-SWP5E3XI-JiERVZcR.js} +1 -1
  25. package/dist/storybook/assets/{heading.stories-IEBN66V-.js → heading.stories-DmZLaZJb.js} +1 -1
  26. package/dist/storybook/assets/{icon.stories-D_XEmSGG.js → icon.stories-h0hheUmg.js} +1 -1
  27. package/dist/storybook/assets/{iframe-Ne5PDyYi.js → iframe-MASZ_taO.js} +2 -2
  28. package/dist/storybook/assets/{index-OQM9o5C5.js → index-VjG8bBMn.js} +5 -5
  29. package/dist/storybook/assets/{input-validation-8JO3a7mr.js → input-validation-MPaWGcuk.js} +1 -1
  30. package/dist/storybook/assets/{inputs-KI8iubZP.js → inputs-Sm5fiswx.js} +1 -1
  31. package/dist/storybook/assets/{layout-forms-d_qIWKd4.js → layout-forms-VHDoIwjI.js} +1 -1
  32. package/dist/storybook/assets/{layout-general-ZZbIRlpS.js → layout-general-QHIsmA1E.js} +1 -1
  33. package/dist/storybook/assets/{list-4R9tCaeF.js → list-AFiJglj_.js} +1 -1
  34. package/dist/storybook/assets/list-heading-Y8BAUuV6.css +1 -0
  35. package/dist/storybook/assets/list-heading-aUkU7WVX.js +1 -0
  36. package/dist/storybook/assets/{list.stories-hekyberH.js → list.stories-W1gjIbW0.js} +1 -1
  37. package/dist/storybook/assets/{list.stories-data-JaZdq4F4.js → list.stories-data-diC_-6U8.js} +1 -1
  38. package/dist/storybook/assets/{menu.stories-SmTLDEcl.js → menu.stories-5QTqzc0j.js} +1 -1
  39. package/dist/storybook/assets/{menu.stories-data-c8X93fYM.js → menu.stories-data-l5rlcD9_.js} +1 -1
  40. package/dist/storybook/assets/{padding-and-spacing-GE0SFR50.js → padding-and-spacing-8Wu8yRXq.js} +1 -1
  41. package/dist/storybook/assets/{popover.stories-VEw9p8NV.js → popover.stories-A0yFzv01.js} +1 -1
  42. package/dist/storybook/assets/{preview-ABcGy_UQ.js → preview-a0xf0jE3.js} +1 -1
  43. package/dist/storybook/assets/{preview-On8eUdCB.js → preview-gGv3xOED.js} +2 -2
  44. package/dist/storybook/assets/{projects.stories-1Ks1DnAG.js → projects.stories-th_1Q6JE.js} +1 -1
  45. package/dist/storybook/assets/{reservoirs.stories-IQ4Alo9P.js → reservoirs.stories-8TqqVc0I.js} +1 -1
  46. package/dist/storybook/assets/{row.stories-w8GHs2MZ.js → row.stories-bgcrzXdg.js} +1 -1
  47. package/dist/storybook/assets/{side-bar.stories-ze7SsfEv.js → side-bar.stories-0_pud_bN.js} +1 -1
  48. package/dist/storybook/assets/{site.stories-tEgKZ4mq.js → site.stories-DZWVugCr.js} +1 -1
  49. package/dist/storybook/assets/{spacer.stories-T6GlFAJH.js → spacer.stories-bgTBb3VB.js} +1 -1
  50. package/dist/storybook/assets/{syntaxhighlighter-NMPM6SWI-RxUnwOsq.js → syntaxhighlighter-NMPM6SWI-sxd_zSAO.js} +1 -1
  51. package/dist/storybook/assets/{table.stories-WO94AjqR.js → table.stories--_S1ugBI.js} +1 -1
  52. package/dist/storybook/assets/{table.stories-data-_RfPv9jG.js → table.stories-data-I6ced_TS.js} +1 -1
  53. package/dist/storybook/assets/{textarea-Kk8R9MgX.js → textarea-4DUPP53K.js} +1 -1
  54. package/dist/storybook/assets/{textarea.stories-2paZI6_B.js → textarea.stories-vQSCjGav.js} +1 -1
  55. package/dist/storybook/assets/{title.stories-t_2VHVut.js → title.stories-Iv83hSjO.js} +1 -1
  56. package/dist/storybook/assets/{toaster.stories-gOvrfYS0.js → toaster.stories-pt8KZ3ho.js} +1 -1
  57. package/dist/storybook/assets/{toggle.stories-9D_QmqBC.js → toggle.stories-HiGs6slZ.js} +1 -1
  58. package/dist/storybook/assets/{tooltip.test-case.stories-fQh9tpot.js → tooltip.test-case.stories-3XN1XAsX.js} +1 -1
  59. package/dist/storybook/assets/{tree.stories-BAujNdxx.js → tree.stories-Qj5XiDg8.js} +1 -1
  60. package/dist/storybook/iframe.html +1 -1
  61. package/dist/storybook/project.json +1 -1
  62. package/package.json +1 -1
  63. package/dist/storybook/assets/list-heading-BTMHiuhI.js +0 -1
  64. package/dist/storybook/assets/list-heading-Pgb8O1zv.css +0 -1
@@ -1,4 +1,4 @@
1
- import{j as _}from"./jsx-runtime-FsUICBgo.js";import{r as m,R as N,g as xu}from"./index-RfLt4OUa.js";import{I as Iu,T as Pu,a as Ru}from"./icon-y1a2N5SZ.js";import{e as Mu}from"./index-cCpkwrS5.js";import{a as S,b as B,c as pa,d as ee,_ as ue}from"./tslib.es6-OIsz3r9a.js";import{c as Au}from"./index-VW3EWkuE.js";import{C as Lu,I as Lr}from"./common-types-U65vzrrz.js";import{s as fe,M as Vu,L as Nu}from"./list-heading-BTMHiuhI.js";import{A as _u}from"./actions-ESle7xCw.js";import{B as ga}from"./button-7V8oA22w.js";import{c as Fu}from"./redux-F5dueAP3.js";import{T as ku}from"./text-6KQ6ntOV.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./badge-23Ty_zBt.js";import"./tooltip-HEHiU__l.js";import"./index-miLrID2P.js";import"./heading-Bk0bpNfe.js";import"./help-icon--rUDxLUD.js";import"./lodash-Bmg8FrMx.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";import"./objectSpread2-93s0nBry.js";const ma=m.createContext({dragDropManager:void 0});function P(e,t,...r){if(ju()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function ju(){return typeof process<"u"&&!0}function Bu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Hu(e,t){return e.filter(r=>r!==t)}function ya(e){return typeof e=="object"}function zu(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Uu(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Mn="dnd-core/INIT_COORDS",mr="dnd-core/BEGIN_DRAG",An="dnd-core/PUBLISH_DRAG_SOURCE",yr="dnd-core/HOVER",br="dnd-core/DROP",Tr="dnd-core/END_DRAG";function si(e,t){return{type:Mn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const $u={type:Mn,payload:{clientOffset:null,sourceClientOffset:null}};function qu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(si(o)),Wu(r,s,u);const l=Xu(r,s);if(l==null){e.dispatch($u);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Gu(a),c=a(l)}e.dispatch(si(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;Yu(h),u.pinSource(l);const f=u.getSourceType(l);return{type:mr,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function Wu(e,t,r){P(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){P(r.getSource(n),"Expected sourceIds to be registered.")})}function Gu(e){P(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Yu(e){P(ya(e),"Item must be an object.")}function Xu(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function Ku(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ku(e,i,r[i])})}return e}function Ju(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();Qu(n),rl(n).forEach((a,s)=>{const u=el(a,s,i,n),l={type:br,payload:{dropResult:Zu({},r,u)}};e.dispatch(l)})}}function Qu(e){P(e.isDragging(),"Cannot call drop while not dragging."),P(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function el(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return tl(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function tl(e){P(typeof e>"u"||ya(e),"Drop result must either be an object or undefined.")}function rl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function nl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();il(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Tr}}}function il(e){P(e.isDragging(),"Cannot call endDrag while not dragging.")}function tn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function ol(e){return function(r,{clientOffset:n}={}){al(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return ul(i,a,s),sl(i,o,a),ll(i,o,a),{type:yr,payload:{targetIds:i,clientOffset:n||null}}}}function al(e){P(Array.isArray(e),"Expected targetIds to be an array.")}function sl(e,t,r){P(t.isDragging(),"Cannot call hover while not dragging."),P(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];P(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);P(o,"Expected targetIds to be registered.")}}function ul(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);tn(o,r)||e.splice(n,1)}}function ll(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function cl(e){return function(){if(e.getMonitor().isDragging())return{type:An}}}function dl(e){return{beginDrag:qu(e),publishDragSource:cl(e),hover:ol(e),drop:Ju(e),endDrag:nl(e)}}class fl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=dl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function hl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:ba(hl(t,n),r)}function pl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:ba(t,r)}const ft=[],Ln=[];ft.__IS_NONE__=!0;Ln.__IS_ALL__=!0;function gl(e,t){return e===ft?!1:e===Ln||typeof t>"u"?!0:Uu(t,e).length>0}class ml{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;P(typeof t=="function","listener must be a function."),P(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!gl(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){P(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return P(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(P(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return tn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(P(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!tn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return pl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const ui=typeof global<"u"?global:self,Ta=ui.MutationObserver||ui.WebKitMutationObserver;function Sa(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function yl(e){let t=1;const r=new Ta(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const bl=typeof Ta=="function"?yl:Sa;class Tl{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bl(this.flush),this.requestErrorThrow=Sa(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Sl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Dl{create(t){const r=this.freeTasks,n=r.length?r.pop():new Sl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Da=new Tl,wl=new Dl(Da.registerPendingError);function El(e){Da.enqueueTask(wl.create(e))}const Vn="dnd-core/ADD_SOURCE",Nn="dnd-core/ADD_TARGET",_n="dnd-core/REMOVE_SOURCE",Sr="dnd-core/REMOVE_TARGET";function Cl(e){return{type:Vn,payload:{sourceId:e}}}function Ol(e){return{type:Nn,payload:{targetId:e}}}function xl(e){return{type:_n,payload:{sourceId:e}}}function Il(e){return{type:Sr,payload:{targetId:e}}}function Pl(e){P(typeof e.canDrag=="function","Expected canDrag to be a function."),P(typeof e.beginDrag=="function","Expected beginDrag to be a function."),P(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Rl(e){P(typeof e.canDrop=="function","Expected canDrop to be a function."),P(typeof e.hover=="function","Expected hover to be a function."),P(typeof e.drop=="function","Expected beginDrag to be a function.")}function rn(e,t){if(t&&Array.isArray(e)){e.forEach(r=>rn(r,!1));return}P(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let Ml=0;function Al(){return Ml++}function Ll(e){const t=Al().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function li(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function ci(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class Vl{addSource(t,r){rn(t),Pl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Cl(n)),n}addTarget(t,r){rn(t,!0),Rl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Ol(n)),n}containsHandler(t){return ci(this.dragSources,t)||ci(this.dropTargets,t)}getSource(t,r=!1){return P(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return P(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return P(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return P(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return li(t)===J.SOURCE}isTargetId(t){return li(t)===J.TARGET}removeSource(t){P(this.getSource(t),"Expected an existing source."),this.store.dispatch(xl(t)),El(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){P(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Il(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);P(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){P(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=Ll(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Nl=(e,t)=>e===t;function _l(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Fl(e,t,r=Nl){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function kl(e=ft,t){switch(t.type){case yr:break;case Vn:case Nn:case Sr:case _n:return ft;case mr:case An:case Tr:case br:default:return Ln}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=zu(r,n);if(!(i.length>0||!Fl(r,n)))return ft;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function jl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){jl(e,i,r[i])})}return e}const di={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Hl(e=di,t){const{payload:r}=t;switch(t.type){case Mn:case mr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case yr:return _l(e.clientOffset,r.clientOffset)?e:Bl({},e,{clientOffset:r.clientOffset});case Tr:case br:return di;default:return e}}function zl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){zl(e,i,r[i])})}return e}const Ul={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $l(e=Ul,t){const{payload:r}=t;switch(t.type){case mr:return je({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case An:return je({},e,{isSourcePublic:!0});case yr:return je({},e,{targetIds:r.targetIds});case Sr:return e.targetIds.indexOf(r.targetId)===-1?e:je({},e,{targetIds:Hu(e.targetIds,r.targetId)});case br:return je({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Tr:return je({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ql(e=0,t){switch(t.type){case Vn:case Nn:return e+1;case _n:case Sr:return e-1;default:return e}}function Wl(e=0){return e+1}function Gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Gl(e,i,r[i])})}return e}function Xl(e={},t){return{dirtyHandlerIds:kl(e.dirtyHandlerIds,{type:t.type,payload:Yl({},t.payload,{prevTargetIds:Bu(e,"dragOperation.targetIds",[])})}),dragOffset:Hl(e.dragOffset,t),refCount:ql(e.refCount,t),dragOperation:$l(e.dragOperation,t),stateId:Wl(e.stateId)}}function Kl(e,t=void 0,r={},n=!1){const i=Zl(n),o=new ml(i,new Vl(i)),a=new fl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function Zl(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Fu(Xl,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Jl(e,t){if(e==null)return{};var r=Ql(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ql(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let fi=0;const er=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ec=m.memo(function(t){var{children:r}=t,n=Jl(t,["children"]);const[i,o]=tc(n);return m.useEffect(()=>{if(o){const a=wa();return++fi,()=>{--fi===0&&(a[er]=null)}}},[]),_.jsx(ma.Provider,{value:i,children:r})});function tc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=rc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function rc(e,t=wa(),r,n){const i=t;return i[er]||(i[er]={dragDropManager:Kl(e,t,r,n)}),i[er]}function wa(){return typeof global<"u"?global:window}const Ve=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Ea(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Mu(n,a)||(i(a),r&&r())},[n,e,r]);return Ve(o),[n,o]}function nc(e,t,r){const[n,i]=Ea(e,t,r);return Ve(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function Ca(e,t,r){return nc(t,e||(()=>({})),()=>r.reconnect())}function Oa(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function ic(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function oc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let Vr=!1,Nr=!1;class ac{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){P(!Vr,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Vr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Vr=!1}}isDragging(){if(!this.sourceId)return!1;P(!Nr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Nr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Nr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let _r=!1;class sc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;P(!_r,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return _r=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{_r=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function uc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function lc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function nn(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=r?r.call(n,c,d,l):void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function on(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function dc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return cc(n),fc(n,r?o=>e(o,r):e)}}function xa(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=dc(n);t[r]=()=>i}}),t}function hi(e,t){typeof e=="function"?e(t):e.current=t}function fc(e,t){const r=e.ref;return P(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{hi(r,n),hi(t,n)}}):m.cloneElement(e,{ref:t})}class hc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!nn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!nn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=xa({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,on(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,on(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class vc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!nn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=xa({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,on(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function ge(){const{dragDropManager:e}=m.useContext(ma);return P(e!=null,"Expected drag drop context"),e}function pc(e,t){const r=ge(),n=m.useMemo(()=>new hc(r.getBackend()),[r]);return Ve(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ve(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function gc(){const e=ge();return m.useMemo(()=>new ac(e),[e])}class mc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function yc(e,t,r){const n=m.useMemo(()=>new mc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function bc(e){return m.useMemo(()=>{const t=e.type;return P(t!=null,"spec.type must be defined"),t},[e])}function Tc(e,t,r){const n=ge(),i=yc(e,t,r),o=bc(e);Ve(function(){if(o!=null){const[s,u]=lc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Sc(e,t){const r=Oa(e,t);P(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=gc(),i=pc(r.options,r.previewOptions);return Tc(r,n,i),[Ca(r.collect,n,i),ic(i),oc(i)]}function Dc(e){const r=ge().getMonitor(),[n,i]=Ea(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function wc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Ec(e){const t=ge(),r=m.useMemo(()=>new vc(t.getBackend()),[t]);return Ve(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Cc(){const e=ge();return m.useMemo(()=>new sc(e),[e])}function Oc(e){const{accept:t}=e;return m.useMemo(()=>(P(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class xc{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function Ic(e,t){const r=m.useMemo(()=>new xc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Pc(e,t,r){const n=ge(),i=Ic(e,t),o=Oc(e);Ve(function(){const[s,u]=uc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Ia(e,t){const r=Oa(e,t),n=Cc(),i=Ec(r.options);return Pc(r,n,i),[Ca(r.collect,n,i),wc(i)]}function Pa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Rc(e,t){return e.filter(r=>r!==t)}function Mc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class Ac{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=Mc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Rc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Lc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ra="__NATIVE_FILE__",Ma="__NATIVE_URL__",Aa="__NATIVE_TEXT__",La="__NATIVE_HTML__",vi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ra,HTML:La,TEXT:Aa,URL:Ma},Symbol.toStringTag,{value:"Module"}));function Fr(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const an={[Ra]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[La]:{exposeProperties:{html:(e,t)=>Fr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ma]:{exposeProperties:{urls:(e,t)=>Fr(e,t,"").split(`
1
+ import{j as _}from"./jsx-runtime-FsUICBgo.js";import{r as m,R as N,g as xu}from"./index-RfLt4OUa.js";import{I as Iu,T as Pu,a as Ru}from"./icon-y1a2N5SZ.js";import{e as Mu}from"./index-cCpkwrS5.js";import{a as S,b as B,c as pa,d as ee,_ as ue}from"./tslib.es6-OIsz3r9a.js";import{c as Au}from"./index-VW3EWkuE.js";import{C as Lu,I as Lr}from"./common-types-U65vzrrz.js";import{s as fe,M as Vu,L as Nu}from"./list-heading-aUkU7WVX.js";import{A as _u}from"./actions-ESle7xCw.js";import{B as ga}from"./button-7V8oA22w.js";import{c as Fu}from"./redux-F5dueAP3.js";import{T as ku}from"./text-6KQ6ntOV.js";import"./inheritsLoose-Y9jOMJLd.js";import"./index-4QtD-hFu.js";import"./disabled-context-urNQThQz.js";import"./badge-23Ty_zBt.js";import"./tooltip-HEHiU__l.js";import"./index-miLrID2P.js";import"./heading-Bk0bpNfe.js";import"./help-icon--rUDxLUD.js";import"./lodash-Bmg8FrMx.js";import"./types-VB5zD18b.js";import"./types-5uVBABF4.js";import"./spinner-R8Il4aRe.js";import"./objectSpread2-93s0nBry.js";const ma=m.createContext({dragDropManager:void 0});function P(e,t,...r){if(ju()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function ju(){return typeof process<"u"&&!0}function Bu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Hu(e,t){return e.filter(r=>r!==t)}function ya(e){return typeof e=="object"}function zu(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Uu(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Mn="dnd-core/INIT_COORDS",mr="dnd-core/BEGIN_DRAG",An="dnd-core/PUBLISH_DRAG_SOURCE",yr="dnd-core/HOVER",br="dnd-core/DROP",Tr="dnd-core/END_DRAG";function si(e,t){return{type:Mn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const $u={type:Mn,payload:{clientOffset:null,sourceClientOffset:null}};function qu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(si(o)),Wu(r,s,u);const l=Xu(r,s);if(l==null){e.dispatch($u);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Gu(a),c=a(l)}e.dispatch(si(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;Yu(h),u.pinSource(l);const f=u.getSourceType(l);return{type:mr,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function Wu(e,t,r){P(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){P(r.getSource(n),"Expected sourceIds to be registered.")})}function Gu(e){P(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Yu(e){P(ya(e),"Item must be an object.")}function Xu(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function Ku(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ku(e,i,r[i])})}return e}function Ju(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();Qu(n),rl(n).forEach((a,s)=>{const u=el(a,s,i,n),l={type:br,payload:{dropResult:Zu({},r,u)}};e.dispatch(l)})}}function Qu(e){P(e.isDragging(),"Cannot call drop while not dragging."),P(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function el(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return tl(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function tl(e){P(typeof e>"u"||ya(e),"Drop result must either be an object or undefined.")}function rl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function nl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();il(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Tr}}}function il(e){P(e.isDragging(),"Cannot call endDrag while not dragging.")}function tn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function ol(e){return function(r,{clientOffset:n}={}){al(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return ul(i,a,s),sl(i,o,a),ll(i,o,a),{type:yr,payload:{targetIds:i,clientOffset:n||null}}}}function al(e){P(Array.isArray(e),"Expected targetIds to be an array.")}function sl(e,t,r){P(t.isDragging(),"Cannot call hover while not dragging."),P(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];P(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);P(o,"Expected targetIds to be registered.")}}function ul(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);tn(o,r)||e.splice(n,1)}}function ll(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function cl(e){return function(){if(e.getMonitor().isDragging())return{type:An}}}function dl(e){return{beginDrag:qu(e),publishDragSource:cl(e),hover:ol(e),drop:Ju(e),endDrag:nl(e)}}class fl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=dl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function hl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ba(e,t){return{x:e.x-t.x,y:e.y-t.y}}function vl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:ba(hl(t,n),r)}function pl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:ba(t,r)}const ft=[],Ln=[];ft.__IS_NONE__=!0;Ln.__IS_ALL__=!0;function gl(e,t){return e===ft?!1:e===Ln||typeof t>"u"?!0:Uu(t,e).length>0}class ml{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;P(typeof t=="function","listener must be a function."),P(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!gl(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){P(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return P(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(P(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return tn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(P(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!tn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return vl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return pl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const ui=typeof global<"u"?global:self,Ta=ui.MutationObserver||ui.WebKitMutationObserver;function Sa(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function yl(e){let t=1;const r=new Ta(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const bl=typeof Ta=="function"?yl:Sa;class Tl{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=bl(this.flush),this.requestErrorThrow=Sa(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Sl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Dl{create(t){const r=this.freeTasks,n=r.length?r.pop():new Sl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Da=new Tl,wl=new Dl(Da.registerPendingError);function El(e){Da.enqueueTask(wl.create(e))}const Vn="dnd-core/ADD_SOURCE",Nn="dnd-core/ADD_TARGET",_n="dnd-core/REMOVE_SOURCE",Sr="dnd-core/REMOVE_TARGET";function Cl(e){return{type:Vn,payload:{sourceId:e}}}function Ol(e){return{type:Nn,payload:{targetId:e}}}function xl(e){return{type:_n,payload:{sourceId:e}}}function Il(e){return{type:Sr,payload:{targetId:e}}}function Pl(e){P(typeof e.canDrag=="function","Expected canDrag to be a function."),P(typeof e.beginDrag=="function","Expected beginDrag to be a function."),P(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Rl(e){P(typeof e.canDrop=="function","Expected canDrop to be a function."),P(typeof e.hover=="function","Expected hover to be a function."),P(typeof e.drop=="function","Expected beginDrag to be a function.")}function rn(e,t){if(t&&Array.isArray(e)){e.forEach(r=>rn(r,!1));return}P(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let Ml=0;function Al(){return Ml++}function Ll(e){const t=Al().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function li(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function ci(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class Vl{addSource(t,r){rn(t),Pl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Cl(n)),n}addTarget(t,r){rn(t,!0),Rl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Ol(n)),n}containsHandler(t){return ci(this.dragSources,t)||ci(this.dropTargets,t)}getSource(t,r=!1){return P(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return P(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return P(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return P(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return li(t)===J.SOURCE}isTargetId(t){return li(t)===J.TARGET}removeSource(t){P(this.getSource(t),"Expected an existing source."),this.store.dispatch(xl(t)),El(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){P(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Il(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);P(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){P(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=Ll(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const Nl=(e,t)=>e===t;function _l(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Fl(e,t,r=Nl){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function kl(e=ft,t){switch(t.type){case yr:break;case Vn:case Nn:case Sr:case _n:return ft;case mr:case An:case Tr:case br:default:return Ln}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=zu(r,n);if(!(i.length>0||!Fl(r,n)))return ft;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function jl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){jl(e,i,r[i])})}return e}const di={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Hl(e=di,t){const{payload:r}=t;switch(t.type){case Mn:case mr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case yr:return _l(e.clientOffset,r.clientOffset)?e:Bl({},e,{clientOffset:r.clientOffset});case Tr:case br:return di;default:return e}}function zl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){zl(e,i,r[i])})}return e}const Ul={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $l(e=Ul,t){const{payload:r}=t;switch(t.type){case mr:return je({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case An:return je({},e,{isSourcePublic:!0});case yr:return je({},e,{targetIds:r.targetIds});case Sr:return e.targetIds.indexOf(r.targetId)===-1?e:je({},e,{targetIds:Hu(e.targetIds,r.targetId)});case br:return je({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Tr:return je({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ql(e=0,t){switch(t.type){case Vn:case Nn:return e+1;case _n:case Sr:return e-1;default:return e}}function Wl(e=0){return e+1}function Gl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Gl(e,i,r[i])})}return e}function Xl(e={},t){return{dirtyHandlerIds:kl(e.dirtyHandlerIds,{type:t.type,payload:Yl({},t.payload,{prevTargetIds:Bu(e,"dragOperation.targetIds",[])})}),dragOffset:Hl(e.dragOffset,t),refCount:ql(e.refCount,t),dragOperation:$l(e.dragOperation,t),stateId:Wl(e.stateId)}}function Kl(e,t=void 0,r={},n=!1){const i=Zl(n),o=new ml(i,new Vl(i)),a=new fl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function Zl(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Fu(Xl,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Jl(e,t){if(e==null)return{};var r=Ql(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ql(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let fi=0;const er=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var ec=m.memo(function(t){var{children:r}=t,n=Jl(t,["children"]);const[i,o]=tc(n);return m.useEffect(()=>{if(o){const a=wa();return++fi,()=>{--fi===0&&(a[er]=null)}}},[]),_.jsx(ma.Provider,{value:i,children:r})});function tc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=rc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function rc(e,t=wa(),r,n){const i=t;return i[er]||(i[er]={dragDropManager:Kl(e,t,r,n)}),i[er]}function wa(){return typeof global<"u"?global:window}const Ve=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Ea(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Mu(n,a)||(i(a),r&&r())},[n,e,r]);return Ve(o),[n,o]}function nc(e,t,r){const[n,i]=Ea(e,t,r);return Ve(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function Ca(e,t,r){return nc(t,e||(()=>({})),()=>r.reconnect())}function Oa(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function ic(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function oc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let Vr=!1,Nr=!1;class ac{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){P(!Vr,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Vr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Vr=!1}}isDragging(){if(!this.sourceId)return!1;P(!Nr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Nr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Nr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let _r=!1;class sc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;P(!_r,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return _r=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{_r=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function uc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function lc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function nn(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=r?r.call(n,c,d,l):void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function on(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function cc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function dc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return cc(n),fc(n,r?o=>e(o,r):e)}}function xa(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=dc(n);t[r]=()=>i}}),t}function hi(e,t){typeof e=="function"?e(t):e.current=t}function fc(e,t){const r=e.ref;return P(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{hi(r,n),hi(t,n)}}):m.cloneElement(e,{ref:t})}class hc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!nn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!nn(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=xa({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,on(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,on(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class vc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!nn(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=xa({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,on(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function ge(){const{dragDropManager:e}=m.useContext(ma);return P(e!=null,"Expected drag drop context"),e}function pc(e,t){const r=ge(),n=m.useMemo(()=>new hc(r.getBackend()),[r]);return Ve(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ve(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function gc(){const e=ge();return m.useMemo(()=>new ac(e),[e])}class mc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function yc(e,t,r){const n=m.useMemo(()=>new mc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function bc(e){return m.useMemo(()=>{const t=e.type;return P(t!=null,"spec.type must be defined"),t},[e])}function Tc(e,t,r){const n=ge(),i=yc(e,t,r),o=bc(e);Ve(function(){if(o!=null){const[s,u]=lc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Sc(e,t){const r=Oa(e,t);P(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=gc(),i=pc(r.options,r.previewOptions);return Tc(r,n,i),[Ca(r.collect,n,i),ic(i),oc(i)]}function Dc(e){const r=ge().getMonitor(),[n,i]=Ea(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function wc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Ec(e){const t=ge(),r=m.useMemo(()=>new vc(t.getBackend()),[t]);return Ve(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Cc(){const e=ge();return m.useMemo(()=>new sc(e),[e])}function Oc(e){const{accept:t}=e;return m.useMemo(()=>(P(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class xc{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function Ic(e,t){const r=m.useMemo(()=>new xc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Pc(e,t,r){const n=ge(),i=Ic(e,t),o=Oc(e);Ve(function(){const[s,u]=uc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Ia(e,t){const r=Oa(e,t),n=Cc(),i=Ec(r.options);return Pc(r,n,i),[Ca(r.collect,n,i),wc(i)]}function Pa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Rc(e,t){return e.filter(r=>r!==t)}function Mc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class Ac{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=Mc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Rc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Lc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Ra="__NATIVE_FILE__",Ma="__NATIVE_URL__",Aa="__NATIVE_TEXT__",La="__NATIVE_HTML__",vi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ra,HTML:La,TEXT:Aa,URL:Ma},Symbol.toStringTag,{value:"Module"}));function Fr(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const an={[Ra]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[La]:{exposeProperties:{html:(e,t)=>Fr(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ma]:{exposeProperties:{urls:(e,t)=>Fr(e,t,"").split(`
2
2
  `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Aa]:{exposeProperties:{text:(e,t)=>Fr(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Vc(e,t){const r=an[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Lc(r);return n.loadDataTransfer(t),n}function kr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(an).filter(r=>{const n=an[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Nc=Pa(()=>/firefox/i.test(navigator.userAgent)),Va=Pa(()=>!!window.safari);class pi{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let u=0,l=a.length-1,c;for(;u<=l;){c=Math.floor(.5*(u+l));const f=r[c];if(f<t)u=c+1;else if(f>t)l=c-1;else return n[c]}s=Math.max(0,l);const d=t-r[s],h=d*d;return n[s]+i[s]*d+o[s]*h+a[s]*d*h}constructor(t,r){const{length:n}=t,i=[];for(let f=0;f<n;f++)i.push(f);i.sort((f,v)=>t[f]<t[v]?-1:1);const o=[],a=[];let s,u;for(let f=0;f<n-1;f++)s=t[f+1]-t[f],u=r[f+1]-r[f],o.push(s),a.push(u/s);const l=[a[0]];for(let f=0;f<o.length-1;f++){const v=a[f],p=a[f+1];if(v*p<=0)l.push(0);else{s=o[f];const g=o[f+1],y=s+g;l.push(3*y/((y+g)/v+(y+s)/p))}}l.push(a[a.length-1]);const c=[],d=[];let h;for(let f=0;f<l.length-1;f++){h=a[f];const v=l[f],p=1/o[f],g=v+l[f+1]-h-h;c.push((h-v-g)*p),d.push(g*p*p)}this.xs=t,this.ys=r,this.c1s=l,this.c2s=c,this.c3s=d}}const _c=1;function Na(e){const t=e.nodeType===_c?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function _t(e){return{x:e.clientX,y:e.clientY}}function Fc(e){var t;return e.nodeName==="IMG"&&(Nc()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function kc(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return Va()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function jc(e,t,r,n,i){const o=Fc(t),s=Na(o?e:t),u={x:r.x-s.x,y:r.y-s.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:d,anchorY:h}=n,{dragPreviewWidth:f,dragPreviewHeight:v}=kc(o,t,l,c),p=()=>{let x=new pi([0,.5,1],[u.y,u.y/c*v,u.y+v-c]).interpolate(h);return Va()&&o&&(x+=(window.devicePixelRatio-1)*v),x},g=()=>new pi([0,.5,1],[u.x,u.x/l*f,u.x+f-l]).interpolate(d),{offsetX:y,offsetY:b}=i,T=y===0||y,D=b===0||b;return{x:T?y:g(),y:D?b:p()}}let Bc=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}};function Hc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Hc(e,i,r[i])})}return e}class zc{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return gi({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return gi({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(vi).some(r=>vi[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Vc(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&Na(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=_t(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,u=kr(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),d=this.sourceNodes.get(c),h=this.sourcePreviewNodes.get(c)||d;if(h){const{anchorX:f,anchorY:v,offsetX:p,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),T=jc(d,h,a,{anchorX:f,anchorY:v},{offsetX:p,offsetY:g});s.setDragImage(h,T.x,T.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,u=kr(s);u&&this.beginDragNativeItem(u,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:_t(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=_t(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else kr(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:_t(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new Bc(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Ac(this.isNodeInDocument)}}let Ft;function Uc(){return Ft||(Ft=new Image,Ft.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),Ft}const $c=function(t,r,n){return new zc(t,r,n)};var Ae=[],qc=function(){return Ae.some(function(e){return e.activeTargets.length>0})},Wc=function(){return Ae.some(function(e){return e.skippedTargets.length>0})},mi="ResizeObserver loop completed with undelivered notifications.",Gc=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:mi}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=mi),window.dispatchEvent(e)},Dt;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Dt||(Dt={}));var Le=function(e){return Object.freeze(e)},Yc=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Le(this)}return e}(),_a=function(){function e(t,r,n,i){return this.x=t,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Le(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,i=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width,l=t.height;return{x:r,y:n,top:i,right:o,bottom:a,left:s,width:u,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Fn=function(e){return e instanceof SVGElement&&"getBBox"in e},Fa=function(e){if(Fn(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},yi=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},Xc=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ht=typeof window<"u"?window:{},kt=new WeakMap,bi=/auto|scroll/,Kc=/^tb|vertical/,Zc=/msie|trident/i.test(ht.navigator&&ht.navigator.userAgent),oe=function(e){return parseFloat(e||"0")},We=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new Yc((r?t:e)||0,(r?e:t)||0)},Ti=Le({devicePixelContentBoxSize:We(),borderBoxSize:We(),contentBoxSize:We(),contentRect:new _a(0,0,0,0)}),ka=function(e,t){if(t===void 0&&(t=!1),kt.has(e)&&!t)return kt.get(e);if(Fa(e))return kt.set(e,Ti),Ti;var r=getComputedStyle(e),n=Fn(e)&&e.ownerSVGElement&&e.getBBox(),i=!Zc&&r.boxSizing==="border-box",o=Kc.test(r.writingMode||""),a=!n&&bi.test(r.overflowY||""),s=!n&&bi.test(r.overflowX||""),u=n?0:oe(r.paddingTop),l=n?0:oe(r.paddingRight),c=n?0:oe(r.paddingBottom),d=n?0:oe(r.paddingLeft),h=n?0:oe(r.borderTopWidth),f=n?0:oe(r.borderRightWidth),v=n?0:oe(r.borderBottomWidth),p=n?0:oe(r.borderLeftWidth),g=d+l,y=u+c,b=p+f,T=h+v,D=s?e.offsetHeight-T-e.clientHeight:0,w=a?e.offsetWidth-b-e.clientWidth:0,x=i?g+b:0,M=i?y+T:0,A=n?n.width:oe(r.width)-x-w,I=n?n.height:oe(r.height)-M-D,V=A+g+w+b,j=I+y+D+T,H=Le({devicePixelContentBoxSize:We(Math.round(A*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:We(V,j,o),contentBoxSize:We(A,I,o),contentRect:new _a(d,u,A,I)});return kt.set(e,H),H},ja=function(e,t,r){var n=ka(e,r),i=n.borderBoxSize,o=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Dt.DEVICE_PIXEL_CONTENT_BOX:return a;case Dt.BORDER_BOX:return i;default:return o}},Jc=function(){function e(t){var r=ka(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Le([r.borderBoxSize]),this.contentBoxSize=Le([r.contentBoxSize]),this.devicePixelContentBoxSize=Le([r.devicePixelContentBoxSize])}return e}(),Ba=function(e){if(Fa(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},Qc=function(){var e=1/0,t=[];Ae.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(l){var c=new Jc(l.target),d=Ba(l.target);s.push(c),l.lastReportedSize=ja(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},Si=function(e){Ae.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(i){i.isActive()&&(Ba(i.target)>e?r.activeTargets.push(i):r.skippedTargets.push(i))})})},ed=function(){var e=0;for(Si(e);qc();)e=Qc(),Si(e);return Wc()&&Gc(),e>0},jr,Ha=[],td=function(){return Ha.splice(0).forEach(function(e){return e()})},rd=function(e){if(!jr){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return td()}).observe(r,n),jr=function(){r.textContent="".concat(t?t--:t++)}}Ha.push(e),jr()},nd=function(e){rd(function(){requestAnimationFrame(e)})},tr=0,id=function(){return!!tr},od=250,ad={attributes:!0,characterData:!0,childList:!0,subtree:!0},Di=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],wi=function(e){return e===void 0&&(e=0),Date.now()+e},Br=!1,sd=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=od),!Br){Br=!0;var n=wi(t);nd(function(){var i=!1;try{i=ed()}finally{if(Br=!1,t=n-wi(),!id())return;i?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,ad)};document.body?r():ht.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Di.forEach(function(r){return ht.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Di.forEach(function(r){return ht.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),sn=new sd,Ei=function(e){!tr&&e>0&&sn.start(),tr+=e,!tr&&sn.stop()},ud=function(e){return!Fn(e)&&!Xc(e)&&getComputedStyle(e).display==="inline"},ld=function(){function e(t,r){this.target=t,this.observedBox=r||Dt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=ja(this.target,this.observedBox,!0);return ud(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),cd=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),jt=new WeakMap,Ci=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Bt=function(){function e(){}return e.connect=function(t,r){var n=new cd(t,r);jt.set(t,n)},e.observe=function(t,r,n){var i=jt.get(t),o=i.observationTargets.length===0;Ci(i.observationTargets,r)<0&&(o&&Ae.push(i),i.observationTargets.push(new ld(r,n&&n.box)),Ei(1),sn.schedule())},e.unobserve=function(t,r){var n=jt.get(t),i=Ci(n.observationTargets,r),o=n.observationTargets.length===1;i>=0&&(o&&Ae.splice(Ae.indexOf(n),1),n.observationTargets.splice(i,1),Ei(-1))},e.disconnect=function(t){var r=this,n=jt.get(t);n.observationTargets.slice().forEach(function(i){return r.unobserve(t,i.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),dd=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Bt.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yi(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Bt.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!yi(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Bt.unobserve(this,t)},e.prototype.disconnect=function(){Bt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),fd={},hd="production",za=typeof process>"u"||fd===void 0?hd:"production",de=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},wt={measureLayout:de(["layout","layoutId","drag"]),animation:de(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:de(["exit"]),drag:de(["drag","dragControls"]),focus:de(["whileFocus"]),hover:de(["whileHover","onHoverStart","onHoverEnd"]),tap:de(["whileTap","onTap","onTapStart","onTapCancel"]),pan:de(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:de(["whileInView","onViewportEnter","onViewportLeave"])};function vd(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?wt.projectionNodeConstructor=e[t]:wt[t].Component=e[t])}var ar=function(){},Ua=m.createContext({strict:!1}),$a=Object.keys(wt),pd=$a.length;function gd(e,t,r){var n=[],i=m.useContext(Ua);if(!t)return null;za!=="production"&&r&&i.strict;for(var o=0;o<pd;o++){var a=$a[o],s=wt[a],u=s.isEnabled,l=s.Component;u(e)&&l&&n.push(m.createElement(l,S({key:a},e,{visualElement:t})))}return n}var kn=m.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Dr=m.createContext({});function md(){return m.useContext(Dr).visualElement}var wr=m.createContext(null),Qe=typeof document<"u",Oi=Qe?m.useLayoutEffect:m.useEffect,un={current:null},qa=!1;function yd(){if(qa=!0,!!Qe)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return un.current=e.matches};e.addListener(t),t()}else un.current=!1}function bd(){!qa&&yd();var e=B(m.useState(un.current),1),t=e[0];return t}function Td(){var e=bd(),t=m.useContext(kn).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function Sd(e,t,r,n){var i=m.useContext(Ua),o=md(),a=m.useContext(wr),s=Td(),u=m.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:r,presenceId:a==null?void 0:a.id,blockInitialAnimation:(a==null?void 0:a.initial)===!1,shouldReduceMotion:s}));var l=u.current;return Oi(function(){l==null||l.syncRender()}),m.useEffect(function(){var c;(c=l==null?void 0:l.animationState)===null||c===void 0||c.animateChanges()}),Oi(function(){return function(){return l==null?void 0:l.notifyUnmount()}},[]),l}function ze(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Dd(e,t,r){return m.useCallback(function(n){var i;n&&((i=e.mount)===null||i===void 0||i.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ze(r)&&(r.current=n))},[t])}function Wa(e){return Array.isArray(e)}function ie(e){return typeof e=="string"||Wa(e)}function wd(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function Ed(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function Ga(e,t,r,n,i){var o;return n===void 0&&(n={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(r??e.custom,n,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(r??e.custom,n,i)),t}function Er(e,t,r){var n=e.getProps();return Ga(n,t,r??n.custom,wd(e),Ed(e))}function Cr(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||ie(e.initial)||ie(e.animate)||ie(e.whileHover)||ie(e.whileDrag)||ie(e.whileTap)||ie(e.whileFocus)||ie(e.exit)}function Ya(e){return!!(Cr(e)||e.variants)}function Cd(e,t){if(Cr(e)){var r=e.initial,n=e.animate;return{initial:r===!1||ie(r)?r:void 0,animate:ie(n)?n:void 0}}return e.inherit!==!1?t:{}}function Od(e){var t=Cd(e,m.useContext(Dr)),r=t.initial,n=t.animate;return m.useMemo(function(){return{initial:r,animate:n}},[xi(r),xi(n)])}function xi(e){return Array.isArray(e)?e.join(" "):e}function Or(e){var t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}var vt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xd=1;function Id(){return Or(function(){if(vt.hasEverUpdated)return xd++})}var Xa=m.createContext({}),Ka=m.createContext({});function Pd(e,t,r,n){var i,o=t.layoutId,a=t.layout,s=t.drag,u=t.dragConstraints,l=t.layoutScroll,c=m.useContext(Ka);!n||!r||r!=null&&r.projection||(r.projection=new n(e,r.getLatestValues(),(i=r.parent)===null||i===void 0?void 0:i.projection),r.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&ze(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:c,layoutScroll:l}))}var Rd=function(e){pa(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var r=this.props,n=r.visualElement,i=r.props;n&&n.setProps(i)},t.prototype.render=function(){return this.props.children},t}(N.Component);function Md(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&vd(t);function s(u,l){var c=Ad(u);u=S(S({},u),{layoutId:c});var d=m.useContext(kn),h=null,f=Od(u),v=d.isStatic?void 0:Id(),p=o(u,d.isStatic);return!d.isStatic&&Qe&&(f.visualElement=Sd(a,p,S(S({},d),u),r),Pd(v,u,f.visualElement,n||wt.projectionNodeConstructor),h=gd(u,f.visualElement,t)),m.createElement(Rd,{visualElement:f.visualElement,props:S(S({},d),u)},h,m.createElement(Dr.Provider,{value:f},i(a,u,v,Dd(p,f.visualElement,l),p,d.isStatic,f.visualElement)))}return m.forwardRef(s)}function Ad(e){var t,r=e.layoutId,n=(t=m.useContext(Xa))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}function Ld(e){function t(n,i){return i===void 0&&(i={}),Md(e(n,i))}if(typeof Proxy>"u")return t;var r=new Map;return new Proxy(t,{get:function(n,i){return r.has(i)||r.set(i,t(i)),r.get(i)}})}var Vd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function jn(e){return typeof e!="string"||e.includes("-")?!1:!!(Vd.indexOf(e)>-1||/[A-Z]/.test(e))}var sr={};function Nd(e){Object.assign(sr,e)}var ln=["","X","Y","Z"],_d=["translate","scale","rotate","skew"],Et=["transformPerspective","x","y","z"];_d.forEach(function(e){return ln.forEach(function(t){return Et.push(e+t)})});function Fd(e,t){return Et.indexOf(e)-Et.indexOf(t)}var kd=new Set(Et);function Pt(e){return kd.has(e)}var jd=new Set(["originX","originY","originZ"]);function Za(e){return jd.has(e)}function Ja(e,t){var r=t.layout,n=t.layoutId;return Pt(e)||Za(e)||(r||n!==void 0)&&(!!sr[e]||e==="opacity")}var he=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},Bd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Hd(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,u=t.allowTransformNone,l=u===void 0?!0:u,c="";o.sort(Fd);for(var d=!1,h=o.length,f=0;f<h;f++){var v=o[f];c+="".concat(Bd[v]||v,"(").concat(i[v],") "),v==="z"&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),n?c=n(i,r?"":c):l&&r&&(c="none"),c}function zd(e){var t=e.originX,r=t===void 0?"50%":t,n=e.originY,i=n===void 0?"50%":n,o=e.originZ,a=o===void 0?0:o;return"".concat(r," ").concat(i," ").concat(a)}function Qa(e){return e.startsWith("--")}var Ud=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const es=(e,t)=>r=>Math.max(Math.min(r,t),e),pt=e=>e%1?Number(e.toFixed(5)):e,Ct=/(-)?([\d]*\.?[\d])+/g,cn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,$d=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Rt(e){return typeof e=="string"}const _e={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},gt=Object.assign(Object.assign({},_e),{transform:es(0,1)}),Ht=Object.assign(Object.assign({},_e),{default:1}),Mt=e=>({test:t=>Rt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),be=Mt("deg"),le=Mt("%"),O=Mt("px"),qd=Mt("vh"),Wd=Mt("vw"),Ii=Object.assign(Object.assign({},le),{parse:e=>le.parse(e)/100,transform:e=>le.transform(e*100)}),Bn=(e,t)=>r=>!!(Rt(r)&&$d.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),ts=(e,t,r)=>n=>{if(!Rt(n))return n;const[i,o,a,s]=n.match(Ct);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Me={test:Bn("hsl","hue"),parse:ts("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+le.transform(pt(t))+", "+le.transform(pt(r))+", "+pt(gt.transform(n))+")"},Gd=es(0,255),Hr=Object.assign(Object.assign({},_e),{transform:e=>Math.round(Gd(e))}),De={test:Bn("rgb","red"),parse:ts("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Hr.transform(e)+", "+Hr.transform(t)+", "+Hr.transform(r)+", "+pt(gt.transform(n))+")"};function Yd(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const dn={test:Bn("#"),parse:Yd,transform:De.transform},$={test:e=>De.test(e)||dn.test(e)||Me.test(e),parse:e=>De.test(e)?De.parse(e):Me.test(e)?Me.parse(e):dn.parse(e),transform:e=>Rt(e)?e:e.hasOwnProperty("red")?De.transform(e):Me.transform(e)},rs="${c}",ns="${n}";function Xd(e){var t,r,n,i;return isNaN(e)&&Rt(e)&&((r=(t=e.match(Ct))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(cn))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function is(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(cn);n&&(r=n.length,e=e.replace(cn,rs),t.push(...n.map($.parse)));const i=e.match(Ct);return i&&(e=e.replace(Ct,ns),t.push(...i.map(_e.parse))),{values:t,numColors:r,tokenised:e}}function os(e){return is(e).values}function as(e){const{values:t,numColors:r,tokenised:n}=is(e),i=t.length;return o=>{let a=n;for(let s=0;s<i;s++)a=a.replace(s<r?rs:ns,s<r?$.transform(o[s]):pt(o[s]));return a}}const Kd=e=>typeof e=="number"?0:e;function Zd(e){const t=os(e);return as(e)(t.map(Kd))}const ve={test:Xd,parse:os,createTransformer:as,getAnimatableNone:Zd},Jd=new Set(["brightness","contrast","saturate","opacity"]);function Qd(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Ct)||[];if(!n)return e;const i=r.replace(n,"");let o=Jd.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const ef=/([a-z-]*)\(.*?\)/g,fn=Object.assign(Object.assign({},ve),{getAnimatableNone:e=>{const t=e.match(ef);return t?t.map(Qd).join(" "):e}});var Pi=S(S({},_e),{transform:Math.round}),ss={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,size:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,rotate:be,rotateX:be,rotateY:be,rotateZ:be,scale:Ht,scaleX:Ht,scaleY:Ht,scaleZ:Ht,skew:be,skewX:be,skewY:be,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:gt,originX:Ii,originY:Ii,originZ:O,zIndex:Pi,fillOpacity:gt,strokeOpacity:gt,numOctaves:Pi};function Hn(e,t,r,n){var i,o=e.style,a=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,d=!1,h=!0;for(var f in t){var v=t[f];if(Qa(f)){a[f]=v;continue}var p=ss[f],g=Ud(v,p);if(Pt(f)){if(c=!0,s[f]=g,u.push(f),!h)continue;v!==((i=p.default)!==null&&i!==void 0?i:0)&&(h=!1)}else Za(f)?(l[f]=g,d=!0):o[f]=g}c?o.transform=Hd(e,r,h,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=zd(l))}var zn=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function us(e,t,r){for(var n in t)!he(t[n])&&!Ja(n,r)&&(e[n]=t[n])}function tf(e,t,r){var n=e.transformTemplate;return m.useMemo(function(){var i=zn();Hn(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,a=i.style;return S(S({},o),a)},[t])}function rf(e,t,r){var n=e.style||{},i={};return us(i,n,e),Object.assign(i,tf(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function nf(e,t,r){var n={},i=rf(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=i,n}var of=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function ur(e){return of.has(e)}var ls=function(e){return!ur(e)};function af(e){e&&(ls=function(t){return t.startsWith("on")?!ur(t):e(t)})}try{af(require("@emotion/is-prop-valid").default)}catch{}function sf(e,t,r){var n={};for(var i in e)(ls(i)||r===!0&&ur(i)||!t&&!ur(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Ri(e,t,r){return typeof e=="string"?e:O.transform(t+r*e)}function uf(e,t,r){var n=Ri(t,e.x,e.width),i=Ri(r,e.y,e.height);return"".concat(n," ").concat(i)}var lf={offset:"stroke-dashoffset",array:"stroke-dasharray"},cf={offset:"strokeDashoffset",array:"strokeDasharray"};function df(e,t,r,n,i){r===void 0&&(r=1),n===void 0&&(n=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?lf:cf;e[o.offset]=O.transform(-n);var a=O.transform(t),s=O.transform(r);e[o.array]="".concat(a," ").concat(s)}function Un(e,t,r,n){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=l===void 0?1:l,d=t.pathOffset,h=d===void 0?0:d,f=ee(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Hn(e,f,r,n),e.attrs=e.style,e.style={};var v=e.attrs,p=e.style,g=e.dimensions;v.transform&&(g&&(p.transform=v.transform),delete v.transform),g&&(a!==void 0||s!==void 0||p.transform)&&(p.transformOrigin=uf(g,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(v.x=i),o!==void 0&&(v.y=o),u!==void 0&&df(v,u,c,h,!1)}var cs=function(){return S(S({},zn()),{attrs:{}})};function ff(e,t){var r=m.useMemo(function(){var i=cs();return Un(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),S(S({},i.attrs),{style:S({},i.style)})},[t]);if(e.style){var n={};us(n,e.style,e),r.style=S(S({},n),r.style)}return r}function hf(e){e===void 0&&(e=!1);var t=function(r,n,i,o,a,s){var u=a.latestValues,l=jn(r)?ff:nf,c=l(n,u,s),d=sf(n,typeof r=="string",e),h=S(S(S({},d),c),{ref:o});return i&&(h["data-projection-id"]=i),m.createElement(r,h)};return t}var vf=/([a-z])([A-Z])/g,pf="$1-$2",ds=function(e){return e.replace(vf,pf).toLowerCase()};function fs(e,t,r,n){var i=t.style,o=t.vars;Object.assign(e.style,i,n&&n.getProjectionStyles(r));for(var a in o)e.style.setProperty(a,o[a])}var hs=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function vs(e,t,r,n){fs(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(hs.has(i)?i:ds(i),t.attrs[i])}function $n(e){var t=e.style,r={};for(var n in t)(he(t[n])||Ja(n,e))&&(r[n]=t[n]);return r}function ps(e){var t=$n(e);for(var r in e)if(he(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function qn(e){return typeof e=="object"&&typeof e.start=="function"}var Ot=function(e){return Array.isArray(e)},gf=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},gs=function(e){return Ot(e)?e[e.length-1]||0:e};function rr(e){var t=he(e)?e.get():e;return gf(t)?t.toValue():t}function Mi(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:mf(t,r,n,i),renderState:o()};return a&&(s.mount=function(u){return a(t,u,s)}),s}var ms=function(e){return function(t,r){var n=m.useContext(Dr),i=m.useContext(wr);return r?Mi(e,t,n,i):Or(function(){return Mi(e,t,n,i)})}};function mf(e,t,r,n){var i={},o=(r==null?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=rr(a[s]);var u=e.initial,l=e.animate,c=Cr(e),d=Ya(e);t&&d&&!c&&e.inherit!==!1&&(u??(u=t.initial),l??(l=t.animate));var h=o||u===!1,f=h?l:u;if(f&&typeof f!="boolean"&&!qn(f)){var v=Array.isArray(f)?f:[f];v.forEach(function(p){var g=Ga(e,p);if(g){var y=g.transitionEnd;g.transition;var b=ee(g,["transitionEnd","transition"]);for(var T in b){var D=b[T];if(Array.isArray(D)){var w=h?D.length-1:0;D=D[w]}D!==null&&(i[T]=D)}for(var T in y)i[T]=y[T]}})}return i}var yf={useVisualState:ms({scrapeMotionValuesFromProps:ps,createRenderState:cs,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Un(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),vs(t,n)}})},bf={useVisualState:ms({scrapeMotionValuesFromProps:$n,createRenderState:zn})};function Tf(e,t,r,n,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=jn(e)?yf:bf;return S(S({},s),{preloadedFeatures:r,useRender:hf(a),createVisualElement:n,projectionNodeConstructor:i,Component:e})}var F;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(F||(F={}));function xr(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function hn(e,t,r,n){m.useEffect(function(){var i=e.current;if(r&&i)return xr(i,t,r,n)},[e,t,r,n])}function Sf(e){var t=e.whileFocus,r=e.visualElement,n=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!0)},i=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!1)};hn(r,"focus",t?n:void 0),hn(r,"blur",t?i:void 0)}function ys(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function bs(e){var t=!!e.touches;return t}function Df(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var wf={pageX:0,pageY:0};function Ef(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||wf;return{x:n[t+"X"],y:n[t+"Y"]}}function Cf(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wn(e,t){return t===void 0&&(t="page"),{point:bs(e)?Ef(e,t):Cf(e,t)}}var Ts=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,Wn(n))};return t?Df(r):r},Of=function(){return Qe&&window.onpointerdown===null},xf=function(){return Qe&&window.ontouchstart===null},If=function(){return Qe&&window.onmousedown===null},Pf={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Rf={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ss(e){return Of()?e:xf()?Rf[e]:If()?Pf[e]:e}function Ge(e,t,r,n){return xr(e,Ss(t),Ts(r,t==="pointerdown"),n)}function lr(e,t,r,n){return hn(e,Ss(t),r&&Ts(r,t==="pointerdown"),n)}function Ds(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var Ai=Ds("dragHorizontal"),Li=Ds("dragVertical");function ws(e){var t=!1;if(e==="y")t=Li();else if(e==="x")t=Ai();else{var r=Ai(),n=Li();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Es(){var e=ws(!0);return e?(e(),!1):!0}function Vi(e,t,r){return function(n,i){var o;!ys(n)||Es()||((o=e.animationState)===null||o===void 0||o.setActive(F.Hover,t),r==null||r(n,i))}}function Mf(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;lr(i,"pointerenter",t||n?Vi(i,!0,t):void 0,{passive:!t}),lr(i,"pointerleave",r||n?Vi(i,!1,r):void 0,{passive:!r})}var Cs=function(e,t){return t?e===t?!0:Cs(e,t.parentElement):!1};function Os(e){return m.useEffect(function(){return function(){return e()}},[])}const cr=(e,t,r)=>Math.min(Math.max(r,e),t),zr=.001,Af=.01,Lf=10,Vf=.05,Nf=1;function _f({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o,a=1-t;a=cr(Vf,Nf,a),e=cr(Af,Lf,e/1e3),a<1?(i=l=>{const c=l*a,d=c*e,h=c-r,f=vn(l,a),v=Math.exp(-d);return zr-h/f*v},o=l=>{const d=l*a*e,h=d*r+r,f=Math.pow(a,2)*Math.pow(l,2)*e,v=Math.exp(-d),p=vn(Math.pow(l,2),a);return(-i(l)+zr>0?-1:1)*((h-f)*v)/p}):(i=l=>{const c=Math.exp(-l*e),d=(l-r)*e+1;return-zr+c*d},o=l=>{const c=Math.exp(-l*e),d=(r-l)*(e*e);return c*d});const s=5/e,u=kf(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Ff=12;function kf(e,t,r){let n=r;for(let i=1;i<Ff;i++)n=n-e(n)/t(n);return n}function vn(e,t){return e*Math.sqrt(1-t*t)}const jf=["duration","bounce"],Bf=["stiffness","damping","mass"];function Ni(e,t){return t.some(r=>e[r]!==void 0)}function Hf(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ni(e,Bf)&&Ni(e,jf)){const r=_f(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Gn(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=ee(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:d,isResolvedFromDuration:h}=Hf(o),f=_i,v=_i;function p(){const g=c?-(c/1e3):0,y=r-t,b=u/(2*Math.sqrt(s*l)),T=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),b<1){const D=vn(T,b);f=w=>{const x=Math.exp(-b*T*w);return r-x*((g+b*T*y)/D*Math.sin(D*w)+y*Math.cos(D*w))},v=w=>{const x=Math.exp(-b*T*w);return b*T*x*(Math.sin(D*w)*(g+b*T*y)/D+y*Math.cos(D*w))-x*(Math.cos(D*w)*(g+b*T*y)-D*y*Math.sin(D*w))}}else if(b===1)f=D=>r-Math.exp(-T*D)*(y+(g+T*y)*D);else{const D=T*Math.sqrt(b*b-1);f=w=>{const x=Math.exp(-b*T*w),M=Math.min(D*w,300);return r-x*((g+b*T*y)*Math.sinh(M)+D*y*Math.cosh(M))/D}}}return p(),{next:g=>{const y=f(g);if(h)a.done=g>=d;else{const b=v(g)*1e3,T=Math.abs(b)<=n,D=Math.abs(r-y)<=i;a.done=T&&D}return a.value=a.done?r:y,a},flipTarget:()=>{c=-c,[t,r]=[r,t],p()}}}Gn.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const _i=e=>0,xt=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},k=(e,t,r)=>-r*e+r*t+e;function Ur(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Fi({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Ur(u,s,e+1/3),o=Ur(u,s,e),a=Ur(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const zf=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},Uf=[dn,De,Me],ki=e=>Uf.find(t=>t.test(e)),xs=(e,t)=>{let r=ki(e),n=ki(t),i=r.parse(e),o=n.parse(t);r===Me&&(i=Fi(i),r=De),n===Me&&(o=Fi(o),n=De);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=zf(i[u],o[u],s));return a.alpha=k(i.alpha,o.alpha,s),r.transform(a)}},pn=e=>typeof e=="number",$f=(e,t)=>r=>t(e(r)),Ir=(...e)=>e.reduce($f);function Is(e,t){return pn(e)?r=>k(e,t,r):$.test(e)?xs(e,t):Rs(e,t)}const Ps=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>Is(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},qf=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=Is(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function ji(e){const t=ve.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}const Rs=(e,t)=>{const r=ve.createTransformer(t),n=ji(e),i=ji(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Ir(Ps(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},Wf=(e,t)=>r=>k(e,t,r);function Gf(e){if(typeof e=="number")return Wf;if(typeof e=="string")return $.test(e)?xs:Rs;if(Array.isArray(e))return Ps;if(typeof e=="object")return qf}function Yf(e,t,r){const n=[],i=r||Gf(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]:t;s=Ir(u,s)}n.push(s)}return n}function Xf([e,t],[r]){return n=>r(xt(e,t,n))}function Kf(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;u<r&&!(e[u]>i||u===n);u++);o=u-1}const s=xt(e[o],e[o+1],i);return t[o](s)}}function Ms(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;ar(o===t.length),ar(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=Yf(t,n,i),s=o===2?Xf(e,a):Kf(e,a);return r?u=>s(cr(e[0],e[o-1],u)):s}const Pr=e=>t=>1-e(1-t),Yn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Zf=e=>t=>Math.pow(t,e),As=e=>t=>t*t*((e+1)*t-e),Jf=e=>{const t=As(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},Ls=1.525,Qf=4/11,eh=8/11,th=9/10,Xn=e=>e,Kn=Zf(2),rh=Pr(Kn),Vs=Yn(Kn),Ns=e=>1-Math.sin(Math.acos(e)),Zn=Pr(Ns),nh=Yn(Zn),Jn=As(Ls),ih=Pr(Jn),oh=Yn(Jn),ah=Jf(Ls),sh=4356/361,uh=35442/1805,lh=16061/1805,dr=e=>{if(e===1||e===0)return e;const t=e*e;return e<Qf?7.5625*t:e<eh?9.075*t-9.9*e+3.4:e<th?sh*t-uh*e+lh:10.8*e*e-20.52*e+10.72},ch=Pr(dr),dh=e=>e<.5?.5*(1-dr(1-e*2)):.5*dr(e*2-1)+.5;function fh(e,t){return e.map(()=>t||Vs).splice(0,e.length-1)}function hh(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function vh(e,t){return e.map(r=>r*t)}function nr({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=vh(n&&n.length===a.length?n:hh(a),i);function u(){return Ms(s,a,{ease:Array.isArray(r)?r:fh(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function ph({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const d=-s*Math.exp(-c/n);return a.done=!(d>i||d<-i),a.value=a.done?l:l+d,a},flipTarget:()=>{}}}const Bi={keyframes:nr,spring:Gn,decay:ph};function gh(e){if(Array.isArray(e.to))return nr;if(Bi[e.type])return Bi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?nr:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Gn:nr}const _s=1/60*1e3,mh=typeof performance<"u"?()=>performance.now():()=>Date.now(),Fs=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(mh()),_s);function yh(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const d=c&&i,h=d?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),d&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){const c=t[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const bh=40;let gn=!0,It=!1,mn=!1;const Ye={delta:0,timestamp:0},At=["read","update","preRender","render","postRender"],Rr=At.reduce((e,t)=>(e[t]=yh(()=>It=!0),e),{}),ce=At.reduce((e,t)=>{const r=Rr[t];return e[t]=(n,i=!1,o=!1)=>(It||Sh(),r.schedule(n,i,o)),e},{}),Ke=At.reduce((e,t)=>(e[t]=Rr[t].cancel,e),{}),$r=At.reduce((e,t)=>(e[t]=()=>Rr[t].process(Ye),e),{}),Th=e=>Rr[e].process(Ye),ks=e=>{It=!1,Ye.delta=gn?_s:Math.max(Math.min(e-Ye.timestamp,bh),1),Ye.timestamp=e,mn=!0,At.forEach(Th),mn=!1,It&&(gn=!1,Fs(ks))},Sh=()=>{It=!0,gn=!0,mn||Fs(ks)},fr=()=>Ye;function js(e,t,r=0){return e-t-r}function Dh(e,t,r=0,n=!0){return n?js(t+-e,t,r):t-(e-t)+r}function wh(e,t,r,n){return n?e>=t+r:e<=-r}const Eh=e=>{const t=({delta:r})=>e(r);return{start:()=>ce.update(t,!0),stop:()=>Ke.update(t)}};function Bs(e){var t,r,{from:n,autoplay:i=!0,driver:o=Eh,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:d,onComplete:h,onRepeat:f,onUpdate:v}=e,p=ee(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=p,y,b=0,T=p.duration,D,w=!1,x=!0,M;const A=gh(p);!((r=(t=A).needsInterpolation)===null||r===void 0)&&r.call(t,n,g)&&(M=Ms([0,100],[n,g],{clamp:!1}),n=0,g=100);const I=A(Object.assign(Object.assign({},p),{from:n,to:g}));function V(){b++,u==="reverse"?(x=b%2===0,a=Dh(a,T,l,x)):(a=js(a,T,l),u==="mirror"&&I.flipTarget()),w=!1,f&&f()}function j(){y.stop(),h&&h()}function H(Y){if(x||(Y=-Y),a+=Y,!w){const te=I.next(Math.max(0,a));D=te.value,M&&(D=M(D)),w=x?te.done:a<=0}v==null||v(D),w&&(b===0&&(T??(T=a)),b<s?wh(a,T,l,x)&&V():j())}function G(){c==null||c(),y=o(H),y.start()}return i&&G(),{stop:()=>{d==null||d(),y.stop()}}}function Hs(e,t){return t?e*(1e3/t):0}function Ch({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:h,onStop:f}){let v;function p(T){return r!==void 0&&T<r||n!==void 0&&T>n}function g(T){return r===void 0?n:n===void 0||Math.abs(r-T)<Math.abs(n-T)?r:n}function y(T){v==null||v.stop(),v=Bs(Object.assign(Object.assign({},T),{driver:c,onUpdate:D=>{var w;d==null||d(D),(w=T.onUpdate)===null||w===void 0||w.call(T,D)},onComplete:h,onStop:f}))}function b(T){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},T))}if(p(e))b({from:e,velocity:t,to:g(e)});else{let T=i*t+e;typeof l<"u"&&(T=l(T));const D=g(T),w=D===r?-1:1;let x,M;const A=I=>{x=M,M=I,t=Hs(I-x,fr().delta),(w===1&&I>D||w===-1&&I<D)&&b({from:I,to:D,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:p(T)?A:void 0})}return{stop:()=>v==null?void 0:v.stop()}}const yn=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Hi=e=>yn(e)&&e.hasOwnProperty("z"),zt=(e,t)=>Math.abs(e-t);function zs(e,t){if(pn(e)&&pn(t))return zt(e,t);if(yn(e)&&yn(t)){const r=zt(e.x,t.x),n=zt(e.y,t.y),i=Hi(e)&&Hi(t)?zt(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}const Us=(e,t)=>1-3*t+3*e,$s=(e,t)=>3*t-6*e,qs=e=>3*e,hr=(e,t,r)=>((Us(t,r)*e+$s(t,r))*e+qs(t))*e,Ws=(e,t,r)=>3*Us(t,r)*e*e+2*$s(t,r)*e+qs(t),Oh=1e-7,xh=10;function Ih(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=hr(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Oh&&++s<xh);return a}const Ph=8,Rh=.001;function Mh(e,t,r,n){for(let i=0;i<Ph;++i){const o=Ws(t,r,n);if(o===0)return t;const a=hr(t,r,n)-e;t-=a/o}return t}const ir=11,Ut=1/(ir-1);function Ah(e,t,r,n){if(e===t&&r===n)return Xn;const i=new Float32Array(ir);for(let a=0;a<ir;++a)i[a]=hr(a*Ut,e,r);function o(a){let s=0,u=1;const l=ir-1;for(;u!==l&&i[u]<=a;++u)s+=Ut;--u;const c=(a-i[u])/(i[u+1]-i[u]),d=s+c*Ut,h=Ws(d,e,r);return h>=Rh?Mh(a,d,e,r):h===0?d:Ih(a,s,s+Ut,e,r)}return a=>a===0||a===1?a:hr(o(a),t,n)}function Lh(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||r||n||i,s=m.useRef(!1),u=m.useRef(null),l={passive:!(r||t||n||v)};function c(){var p;(p=u.current)===null||p===void 0||p.call(u),u.current=null}function d(){var p;return c(),s.current=!1,(p=o.animationState)===null||p===void 0||p.setActive(F.Tap,!1),!Es()}function h(p,g){d()&&(Cs(o.getInstance(),p.target)?t==null||t(p,g):n==null||n(p,g))}function f(p,g){d()&&(n==null||n(p,g))}function v(p,g){var y;c(),!s.current&&(s.current=!0,u.current=Ir(Ge(window,"pointerup",h,l),Ge(window,"pointercancel",f,l)),(y=o.animationState)===null||y===void 0||y.setActive(F.Tap,!0),r==null||r(p,g))}lr(o,"pointerdown",a?v:void 0,l),Os(c)}var zi=new Set;function Vh(e,t,r){e||zi.has(t)||(console.warn(t),r&&console.warn(r),zi.add(t))}var bn=new WeakMap,qr=new WeakMap,Nh=function(e){var t;(t=bn.get(e.target))===null||t===void 0||t(e)},_h=function(e){e.forEach(Nh)};function Fh(e){var t=e.root,r=ee(e,["root"]),n=t||document;qr.has(n)||qr.set(n,{});var i=qr.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(_h,S({root:t},r))),i[o]}function kh(e,t,r){var n=Fh(t);return bn.set(e,r),n.observe(e),function(){bn.delete(e),n.unobserve(e)}}function jh(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=m.useRef({hasEnteredView:!1,isInView:!1}),u=!!(r||n||i);a.once&&s.current.hasEnteredView&&(u=!1);var l=typeof IntersectionObserver>"u"?zh:Hh;l(u,s.current,t,a)}var Bh={some:0,all:1};function Hh(e,t,r,n){var i=n.root,o=n.margin,a=n.amount,s=a===void 0?"some":a,u=n.once;m.useEffect(function(){if(e){var l={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof s=="number"?s:Bh[s]},c=function(d){var h,f=d.isIntersecting;if(t.isInView!==f&&(t.isInView=f,!(u&&!f&&t.hasEnteredView))){f&&(t.hasEnteredView=!0),(h=r.animationState)===null||h===void 0||h.setActive(F.InView,f);var v=r.getProps(),p=f?v.onViewportEnter:v.onViewportLeave;p==null||p(d)}};return kh(r.getInstance(),l,c)}},[e,i,o,s])}function zh(e,t,r,n){var i=n.fallback,o=i===void 0?!0:i;m.useEffect(function(){!e||!o||(za!=="production"&&Vh(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=r.getProps().onViewportEnter;s==null||s(null),(a=r.animationState)===null||a===void 0||a.setActive(F.InView,!0)}))},[e])}var we=function(e){return function(t){return e(t),null}},Uh={inView:we(jh),tap:we(Lh),focus:we(Sf),hover:we(Mf)},$h=0,qh=function(){return $h++},Wh=function(){return Or(qh)};function Gs(){var e=m.useContext(wr);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=Wh();m.useEffect(function(){return n(i)},[]);var o=function(){return r==null?void 0:r(i)};return!t&&r?[!1,o]:[!0]}function Ys(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var vr=function(e){return e*1e3},Gh={linear:Xn,easeIn:Kn,easeInOut:Vs,easeOut:rh,circIn:Ns,circInOut:nh,circOut:Zn,backIn:Jn,backInOut:oh,backOut:ih,anticipate:ah,bounceIn:ch,bounceInOut:dh,bounceOut:dr},Ui=function(e){if(Array.isArray(e)){ar(e.length===4);var t=B(e,4),r=t[0],n=t[1],i=t[2],o=t[3];return Ah(r,n,i,o)}else if(typeof e=="string")return Gh[e];return e},Yh=function(e){return Array.isArray(e)&&typeof e[0]!="number"},$i=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&ve.test(t)&&!t.startsWith("url("))},Ie=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},$t=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Wr=function(){return{type:"keyframes",ease:"linear",duration:.3}},Xh=function(e){return{type:"keyframes",duration:.8,values:e}},qi={x:Ie,y:Ie,z:Ie,rotate:Ie,rotateX:Ie,rotateY:Ie,rotateZ:Ie,scaleX:$t,scaleY:$t,scale:$t,opacity:Wr,backgroundColor:Wr,color:Wr,default:$t},Kh=function(e,t){var r;return Ot(t)?r=Xh:r=qi[e]||qi.default,S({to:t},r(t))},Zh=S(S({},ss),{color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:fn,WebkitFilter:fn}),Qn=function(e){return Zh[e]};function ei(e,t){var r,n=Qn(e);return n!==fn&&(n=ve),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}function Jh(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ee(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function Qh(e){var t=e.ease,r=e.times,n=e.yoyo,i=e.flip,o=e.loop,a=ee(e,["ease","times","yoyo","flip","loop"]),s=S({},a);return r&&(s.offset=r),a.duration&&(s.duration=vr(a.duration)),a.repeatDelay&&(s.repeatDelay=vr(a.repeatDelay)),t&&(s.ease=Yh(t)?t.map(Ui):Ui(t)),a.type==="tween"&&(s.type="keyframes"),(n||o||i)&&(n?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||n||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function ev(e,t){var r,n,i=ti(e,t)||{};return(n=(r=i.delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function tv(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=ue([],B(e.to),!1),e.to[0]=e.from),e}function rv(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),tv(t),Jh(e)||(e=S(S({},e),Kh(r,t.to))),S(S({},t),Qh(e))}function nv(e,t,r,n,i){var o,a=ti(n,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),u=$i(e,r);s==="none"&&u&&typeof r=="string"?s=ei(e,r):Wi(s)&&typeof r=="string"?s=Gi(r):!Array.isArray(r)&&Wi(r)&&typeof s=="string"&&(r=Gi(s));var l=$i(e,s);function c(){var h={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(f){return t.set(f)}};return a.type==="inertia"||a.type==="decay"?Ch(S(S({},h),a)):Bs(S(S({},rv(a,h,e)),{onUpdate:function(f){var v;h.onUpdate(f),(v=a.onUpdate)===null||v===void 0||v.call(a,f)},onComplete:function(){var f;h.onComplete(),(f=a.onComplete)===null||f===void 0||f.call(a)}}))}function d(){var h,f,v=gs(r);return t.set(v),i(),(h=a==null?void 0:a.onUpdate)===null||h===void 0||h.call(a,v),(f=a==null?void 0:a.onComplete)===null||f===void 0||f.call(a),{stop:function(){}}}return!l||!u||a.type===!1?d:c}function Wi(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Gi(e){return typeof e=="number"?0:ei("",e)}function ti(e,t){return e[t]||e.default||e}function ri(e,t,r,n){return n===void 0&&(n={}),t.start(function(i){var o,a,s=nv(e,t,r,n,i),u=ev(n,e),l=function(){return a=s()};return u?o=window.setTimeout(l,vr(u)):l(),function(){clearTimeout(o),a==null||a.stop()}})}var iv=function(e){return/^\-?\d*\.?\d+$/.test(e)},ov=function(e){return/^0[^.\s]+$/.test(e)};function ni(e,t){e.indexOf(t)===-1&&e.push(t)}function ii(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var mt=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return ni(this.subscriptions,t),function(){return ii(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,r,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),av=function(e){return!isNaN(parseFloat(e))},sv=function(){function e(t){var r=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new mt,this.velocityUpdateSubscribers=new mt,this.renderSubscribers=new mt,this.canTrackVelocity=!1,this.updateAndNotify=function(n,i){i===void 0&&(i=!0),r.prev=r.current,r.current=n;var o=fr(),a=o.delta,s=o.timestamp;r.lastUpdated!==s&&(r.timeDelta=a,r.lastUpdated=s,ce.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),i&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return ce.postRender(r.velocityCheck)},this.velocityCheck=function(n){var i=n.timestamp;i!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=av(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Hs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=t(n)}).then(function(){return r.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ze(e){return new sv(e)}var Xs=function(e){return function(t){return t.test(e)}},uv={test:function(e){return e==="auto"},parse:function(e){return e}},Ks=[_e,O,le,be,Wd,qd,uv],rt=function(e){return Ks.find(Xs(e))},lv=ue(ue([],B(Ks),!1),[$,ve],!1),cv=function(e){return lv.find(Xs(e))};function dv(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ze(r))}function fv(e,t){var r=Er(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,o=i===void 0?{}:i;n.transition;var a=ee(n,["transitionEnd","transition"]);a=S(S({},a),o);for(var s in a){var u=gs(a[s]);dv(e,s,u)}}function hv(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(f){return!e.hasValue(f)}),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],d=t[c],h=null;Array.isArray(d)&&(h=d[0]),h===null&&(h=(i=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&i!==void 0?i:t[c]),h!=null&&(typeof h=="string"&&(iv(h)||ov(h))?h=parseFloat(h):!cv(h)&&ve.test(d)&&(h=ei(c,d)),e.addValue(c,Ze(h)),(o=(a=r)[c])!==null&&o!==void 0||(a[c]=h),e.setBaseTarget(c,h))}}function vv(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function pv(e,t,r){var n,i,o={};for(var a in e)o[a]=(n=vv(a,t))!==null&&n!==void 0?n:(i=r.getValue(a))===null||i===void 0?void 0:i.get();return o}function gv(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart(t);var n;if(Array.isArray(t)){var i=t.map(function(a){return Tn(e,a,r)});n=Promise.all(i)}else if(typeof t=="string")n=Tn(e,t,r);else{var o=typeof t=="function"?Er(e,t,r.custom):t;n=Zs(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}function Tn(e,t,r){var n;r===void 0&&(r={});var i=Er(e,t,r.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return Zs(e,i,r)}:function(){return Promise.resolve()},u=!((n=e.variantChildren)===null||n===void 0)&&n.size?function(f){f===void 0&&(f=0);var v=a.delayChildren,p=v===void 0?0:v,g=a.staggerChildren,y=a.staggerDirection;return mv(e,t,p+f,g,y,r)}:function(){return Promise.resolve()},l=a.when;if(l){var c=B(l==="beforeChildren"?[s,u]:[u,s],2),d=c[0],h=c[1];return d().then(h)}else return Promise.all([s(),u(r.delay)])}function Zs(e,t,r){var n,i=r===void 0?{}:r,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,d=c===void 0?e.getDefaultTransition():c,h=l.transitionEnd,f=ee(l,["transition","transitionEnd"]);s&&(d=s);var v=[],p=u&&((n=e.animationState)===null||n===void 0?void 0:n.getState()[u]);for(var g in f){var y=e.getValue(g),b=f[g];if(!(!y||b===void 0||p&&bv(p,g))){var T=S({delay:a},d);e.shouldReduceMotion&&Pt(g)&&(T=S(S({},T),{type:!1,delay:0}));var D=ri(g,y,b,T);v.push(D)}}return Promise.all(v).then(function(){h&&fv(e,h)})}function mv(e,t,r,n,i,o){r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*n,u=i===1?function(l){return l===void 0&&(l=0),l*n}:function(l){return l===void 0&&(l=0),s-l*n};return Array.from(e.variantChildren).sort(yv).forEach(function(l,c){a.push(Tn(l,t,S(S({},o),{delay:r+u(c)})).then(function(){return l.notifyAnimationComplete(t)}))}),Promise.all(a)}function yv(e,t){return e.sortNodePosition(t)}function bv(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,i}var oi=[F.Animate,F.InView,F.Focus,F.Hover,F.Tap,F.Drag,F.Exit],Tv=ue([],B(oi),!1).reverse(),Sv=oi.length;function Dv(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,i=r.options;return gv(e,n,i)}))}}function wv(e){var t=Dv(e),r=Cv(),n={},i=!0,o=function(c,d){var h=Er(e,d);if(h){h.transition;var f=h.transitionEnd,v=ee(h,["transition","transitionEnd"]);c=S(S(S({},c),v),f)}return c};function a(c){return n[c]!==void 0}function s(c){t=c(e)}function u(c,d){for(var h,f=e.getProps(),v=e.getVariantContext(!0)||{},p=[],g=new Set,y={},b=1/0,T=function(M){var A=Tv[M],I=r[A],V=(h=f[A])!==null&&h!==void 0?h:v[A],j=ie(V),H=A===d?I.isActive:null;H===!1&&(b=M);var G=V===v[A]&&V!==f[A]&&j;if(G&&i&&e.manuallyAnimateOnMount&&(G=!1),I.protectedKeys=S({},y),!I.isActive&&H===null||!V&&!I.prevProp||qn(V)||typeof V=="boolean")return"continue";var Y=Ev(I.prevProp,V),te=Y||A===d&&I.isActive&&!G&&j||M>b&&j,me=Array.isArray(V)?V:[V],X=me.reduce(o,{});H===!1&&(X={});var et=I.prevResolvedValues,Fe=et===void 0?{}:et,Vt=S(S({},Fe),X),ke=function(C){te=!0,g.delete(C),I.needsAnimating[C]=!0};for(var W in Vt){var L=X[W],E=Fe[W];y.hasOwnProperty(W)||(L!==E?Ot(L)&&Ot(E)?!Ys(L,E)||Y?ke(W):I.protectedKeys[W]=!0:L!==void 0?ke(W):g.add(W):L!==void 0&&g.has(W)?ke(W):I.protectedKeys[W]=!0)}I.prevProp=V,I.prevResolvedValues=X,I.isActive&&(y=S(S({},y),X)),i&&e.blockInitialAnimation&&(te=!1),te&&!G&&p.push.apply(p,ue([],B(me.map(function(C){return{animation:C,options:S({type:A},c)}})),!1))},D=0;D<Sv;D++)T(D);if(n=S({},y),g.size){var w={};g.forEach(function(M){var A=e.getBaseTarget(M);A!==void 0&&(w[M]=A)}),p.push({animation:w})}var x=!!p.length;return i&&f.initial===!1&&!e.manuallyAnimateOnMount&&(x=!1),i=!1,x?t(p):Promise.resolve()}function l(c,d,h){var f;if(r[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(function(g){var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(c,d)}),r[c].isActive=d;var v=u(h,c);for(var p in r)r[p].protectedKeys={};return v}return{isAnimated:a,animateChanges:u,setActive:l,setAnimateFunction:s,getState:function(){return r}}}function Ev(e,t){return typeof t=="string"?t!==e:Wa(t)?!Ys(t,e):!1}function Pe(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cv(){var e;return e={},e[F.Animate]=Pe(!0),e[F.InView]=Pe(),e[F.Hover]=Pe(),e[F.Tap]=Pe(),e[F.Drag]=Pe(),e[F.Focus]=Pe(),e[F.Exit]=Pe(),e}var Ov={animation:we(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=wv(t)),qn(r)&&m.useEffect(function(){return r.subscribe(t)},[r])}),exit:we(function(e){var t=e.custom,r=e.visualElement,n=B(Gs(),2),i=n[0],o=n[1],a=m.useContext(wr);m.useEffect(function(){var s,u;r.isPresent=i;var l=(s=r.animationState)===null||s===void 0?void 0:s.setActive(F.Exit,!i,{custom:(u=a==null?void 0:a.custom)!==null&&u!==void 0?u:t});!i&&(l==null||l.then(o))},[i])})},Js=function(){function e(t,r,n){var i=this,o=n===void 0?{}:n,a=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var h=Yr(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,v=zs(h.offset,{x:0,y:0})>=3;if(!(!f&&!v)){var p=h.point,g=fr().timestamp;i.history.push(S(S({},p),{timestamp:g}));var y=i.handlers,b=y.onStart,T=y.onMove;f||(b&&b(i.lastMoveEvent,h),i.startEvent=i.lastMoveEvent),T&&T(i.lastMoveEvent,h)}}},this.handlePointerMove=function(h,f){if(i.lastMoveEvent=h,i.lastMoveEventInfo=Gr(f,i.transformPagePoint),ys(h)&&h.buttons===0){i.handlePointerUp(h,f);return}ce.update(i.updatePoint,!0)},this.handlePointerUp=function(h,f){i.end();var v=i.handlers,p=v.onEnd,g=v.onSessionEnd,y=Yr(Gr(f,i.transformPagePoint),i.history);i.startEvent&&p&&p(h,y),g&&g(h,y)},!(bs(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=a;var s=Wn(t),u=Gr(s,this.transformPagePoint),l=u.point,c=fr().timestamp;this.history=[S(S({},l),{timestamp:c})];var d=r.onSessionStart;d&&d(t,Yr(u,this.history)),this.removeListeners=Ir(Ge(window,"pointermove",this.handlePointerMove),Ge(window,"pointerup",this.handlePointerUp),Ge(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ke.update(this.updatePoint)},e}();function Gr(e,t){return t?{point:t(e.point)}:e}function Yi(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Yr(e,t){var r=e.point;return{point:r,delta:Yi(r,Qs(t)),offset:Yi(r,xv(t)),velocity:Iv(t,.1)}}function xv(e){return e[0]}function Qs(e){return e[e.length-1]}function Iv(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=Qs(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>vr(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function pe(e){return e.max-e.min}function Xi(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),zs(e,t)<r}function Ki(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=k(t.min,t.max,e.origin),e.scale=pe(r)/pe(t),(Xi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=k(r.min,r.max,e.origin)-e.originPoint,(Xi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function yt(e,t,r,n){Ki(e.x,t.x,r.x,n==null?void 0:n.originX),Ki(e.y,t.y,r.y,n==null?void 0:n.originY)}function Zi(e,t,r){e.min=r.min+t.min,e.max=e.min+pe(t)}function Pv(e,t,r){Zi(e.x,t.x,r.x),Zi(e.y,t.y,r.y)}function Ji(e,t,r){e.min=t.min-r.min,e.max=e.min+pe(t)}function bt(e,t,r){Ji(e.x,t.x,r.x),Ji(e.y,t.y,r.y)}function Rv(e,t,r){var n=t.min,i=t.max;return n!==void 0&&e<n?e=r?k(n,e,r.min):Math.max(e,n):i!==void 0&&e>i&&(e=r?k(i,e,r.max):Math.min(e,i)),e}function Qi(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Mv(e,t){var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:Qi(e.x,n,o),y:Qi(e.y,r,i)}}function eo(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=B([i,n],2),n=r[0],i=r[1]),{min:n,max:i}}function Av(e,t){return{x:eo(e.x,t.x),y:eo(e.y,t.y)}}function Lv(e,t){var r=.5,n=pe(e),i=pe(t);return i>n?r=xt(t.min,t.max-n,e.min):n>i&&(r=xt(e.min,e.max-i,t.min)),cr(0,1,r)}function Vv(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var Sn=.35;function Nv(e){return e===void 0&&(e=Sn),e===!1?e=0:e===!0&&(e=Sn),{x:to(e,"left","right"),y:to(e,"top","bottom")}}function to(e,t,r){return{min:ro(e,t),max:ro(e,r)}}function ro(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}var no=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Tt=function(){return{x:no(),y:no()}},io=function(){return{min:0,max:0}},z=function(){return{x:io(),y:io()}};function se(e){return[e("x"),e("y")]}function eu(e){var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}}function _v(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function Fv(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Xr(e){return e===void 0||e===1}function tu(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!Xr(t)||!Xr(r)||!Xr(n)}function Te(e){return tu(e)||oo(e.x)||oo(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function oo(e){return e&&e!=="0%"}function pr(e,t,r){var n=e-r,i=t*n;return r+i}function ao(e,t,r,n,i){return i!==void 0&&(e=pr(e,i,n)),pr(e,r,n)+t}function Dn(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),e.min=ao(e.min,t,r,n,i),e.max=ao(e.max,t,r,n,i)}function ru(e,t){var r=t.x,n=t.y;Dn(e.x,r.translate,r.scale,r.originPoint),Dn(e.y,n.translate,n.scale,n.originPoint)}function kv(e,t,r,n){var i,o;n===void 0&&(n=!1);var a=r.length;if(a){t.x=t.y=1;for(var s,u,l=0;l<a;l++)s=r[l],u=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ue(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,ru(e,u)),n&&Te(s.latestValues)&&Ue(e,s.latestValues))}}function Se(e,t){e.min=e.min+t,e.max=e.max+t}function so(e,t,r){var n=B(r,3),i=n[0],o=n[1],a=n[2],s=t[a]!==void 0?t[a]:.5,u=k(e.min,e.max,s);Dn(e,t[i],t[o],u,t.scale)}var jv=["x","scaleX","originX"],Bv=["y","scaleY","originY"];function Ue(e,t){so(e.x,t,jv),so(e.y,t,Bv)}function nu(e,t){return eu(Fv(e.getBoundingClientRect(),t))}function Hv(e,t,r){var n=nu(e,r),i=t.scroll;return i&&(Se(n.x,i.x),Se(n.y,i.y)),n}var zv=new WeakMap,Uv=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=z(),this.visualElement=t}return e.prototype.start=function(t,r){var n=this,i=r===void 0?{}:r,o=i.snapToCursor,a=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var s=function(d){n.stopAnimation(),a&&n.snapToCursor(Wn(d,"page").point)},u=function(d,h){var f,v=n.getProps(),p=v.drag,g=v.dragPropagation,y=v.onDragStart;p&&!g&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ws(p),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),se(function(b){var T,D,w=n.getAxisMotionValue(b).get()||0;if(le.test(w)){var x=(D=(T=n.visualElement.projection)===null||T===void 0?void 0:T.layout)===null||D===void 0?void 0:D.actual[b];if(x){var M=pe(x);w=M*(parseFloat(w)/100)}}n.originPoint[b]=w}),y==null||y(d,h),(f=n.visualElement.animationState)===null||f===void 0||f.setActive(F.Drag,!0))},l=function(d,h){var f=n.getProps(),v=f.dragPropagation,p=f.dragDirectionLock,g=f.onDirectionLock,y=f.onDrag;if(!(!v&&!n.openGlobalLock)){var b=h.offset;if(p&&n.currentDirection===null){n.currentDirection=$v(b),n.currentDirection!==null&&(g==null||g(n.currentDirection));return}n.updateAxis("x",h.point,b),n.updateAxis("y",h.point,b),n.visualElement.syncRender(),y==null||y(d,h)}},c=function(d,h){return n.stop(d,h)};this.panSession=new Js(t,{onSessionStart:s,onStart:u,onMove:l,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,r){var n=this.isDragging;if(this.cancel(),!!n){var i=r.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,r)}},e.prototype.cancel=function(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(F.Drag,!1)},e.prototype.updateAxis=function(t,r,n){var i=this.getProps().drag;if(!(!n||!qt(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Rv(a,this.constraints[t],this.elastic[t])),o.set(a)}},e.prototype.resolveConstraints=function(){var t=this,r=this.getProps(),n=r.dragConstraints,i=r.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&ze(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=Mv(o.actual,n):this.constraints=!1,this.elastic=Nv(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&se(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=Vv(o.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),r=t.dragConstraints,n=t.onMeasureDragConstraints;if(!r||!ze(r))return!1;var i=r.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=Hv(i,o.root,this.visualElement.getTransformPagePoint()),s=Av(o.layout.actual,a);if(n){var u=n(_v(s));this.hasMutatedConstraints=!!u,u&&(s=eu(u))}return s},e.prototype.startAnimation=function(t){var r=this,n=this.getProps(),i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=se(function(h){var f;if(qt(h,i,r.currentDirection)){var v=(f=c==null?void 0:c[h])!==null&&f!==void 0?f:{};u&&(v={min:0,max:0});var p=a?200:1e6,g=a?40:1e7,y=S(S({type:"inertia",velocity:o?t[h]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10},s),v);return r.startAxisValueAnimation(h,y)}});return Promise.all(d).then(l)},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);return ri(t,n,0,r)},e.prototype.stopAnimation=function(){var t=this;se(function(r){return t.getAxisMotionValue(r).stop()})},e.prototype.getAxisMotionValue=function(t){var r,n,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)},e.prototype.snapToCursor=function(t){var r=this;se(function(n){var i=r.getProps().drag;if(qt(n,i,r.currentDirection)){var o=r.visualElement.projection,a=r.getAxisMotionValue(n);if(o&&o.layout){var s=o.layout.actual[n],u=s.min,l=s.max;a.set(t[n]-k(u,l,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,r,n=this.getProps(),i=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(!(!ze(o)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};se(function(l){var c=t.getAxisMotionValue(l);if(c){var d=c.get();s[l]=Lv({min:d,max:d},t.constraints[l])}});var u=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=u?u({},""):"none",(r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout(),this.resolveConstraints(),se(function(l){if(qt(l,i,null)){var c=t.getAxisMotionValue(l),d=t.constraints[l],h=d.min,f=d.max;c.set(k(h,f,s[l]))}})}},e.prototype.addListeners=function(){var t=this,r;zv.set(this.visualElement,this);var n=this.visualElement.getInstance(),i=Ge(n,"pointerdown",function(l){var c=t.getProps(),d=c.drag,h=c.dragListener,f=h===void 0?!0:h;d&&f&&t.start(l)}),o=function(){var l=t.getProps().dragConstraints;ze(l)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",o);a&&!a.layout&&((r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout()),o();var u=xr(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(l){var c=l.delta,d=l.hasLayoutChanged;t.isDragging&&d&&(se(function(h){var f=t.getAxisMotionValue(h);f&&(t.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),t.visualElement.syncRender())}),function(){u(),i(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),r=t.drag,n=r===void 0?!1:r,i=t.dragDirectionLock,o=i===void 0?!1:i,a=t.dragPropagation,s=a===void 0?!1:a,u=t.dragConstraints,l=u===void 0?!1:u,c=t.dragElastic,d=c===void 0?Sn:c,h=t.dragMomentum,f=h===void 0?!0:h;return S(S({},t),{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},e}();function qt(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $v(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function qv(e){var t=e.dragControls,r=e.visualElement,n=Or(function(){return new Uv(r)});m.useEffect(function(){return t&&t.subscribe(n)},[n,t]),m.useEffect(function(){return n.addListeners()},[n])}function Wv(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||r||n||i,s=m.useRef(null),u=m.useContext(kn).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(d,h){s.current=null,n&&n(d,h)}};m.useEffect(function(){s.current!==null&&s.current.updateHandlers(l)});function c(d){s.current=new Js(d,l,{transformPagePoint:u})}lr(o,"pointerdown",a&&c),Os(function(){return s.current&&s.current.end()})}var Gv={pan:we(Wv),drag:we(qv)},Wt=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Yv(){var e=Wt.map(function(){return new mt}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){Wt.forEach(function(i){var o,a="on"+i,s=n[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=r[a](s))})}};return e.forEach(function(n,i){r["on"+Wt[i]]=function(o){return n.add(o)},r["notify"+Wt[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return n.notify.apply(n,ue([],B(o),!1))}}),r}function Xv(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(he(o))e.addValue(i,o);else if(he(a))e.addValue(i,Ze(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Ze((n=e.getStaticValue(i))!==null&&n!==void 0?n:o))}for(var i in r)t[i]===void 0&&e.removeValue(i);return t}var iu=function(e){var t=e.treeType,r=t===void 0?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(h,f){var v=h.parent,p=h.props,g=h.presenceId,y=h.blockInitialAnimation,b=h.visualState,T=h.shouldReduceMotion;f===void 0&&(f={});var D=!1,w=b.latestValues,x=b.renderState,M,A=Yv(),I=new Map,V=new Map,j={},H=S({},w),G;function Y(){!M||!D||(te(),s(M,x,p.style,L.projection))}function te(){n(L,x,w,f,p)}function me(){A.notifyUpdate(w)}function X(E,C){var U=C.onChange(function(Nt){w[E]=Nt,p.onUpdate&&ce.update(me,!1,!0)}),tt=C.onRenderRequest(L.scheduleRender);V.set(E,function(){U(),tt()})}var et=d(p);for(var Fe in et){var Vt=et[Fe];w[Fe]!==void 0&&he(Vt)&&Vt.set(w[Fe],!1)}var ke=Cr(p),W=Ya(p),L=S(S({treeType:r,current:null,depth:v?v.depth+1:0,parent:v,children:new Set,presenceId:g,shouldReduceMotion:T,variantChildren:W?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(v!=null&&v.isMounted()),blockInitialAnimation:y,isMounted:function(){return!!M},mount:function(E){D=!0,M=L.current=E,L.projection&&L.projection.mount(E),W&&v&&!ke&&(G=v==null?void 0:v.addVariantChild(L)),I.forEach(function(C,U){return X(U,C)}),v==null||v.children.add(L),L.setProps(p)},unmount:function(){var E;(E=L.projection)===null||E===void 0||E.unmount(),Ke.update(me),Ke.render(Y),V.forEach(function(C){return C()}),G==null||G(),v==null||v.children.delete(L),A.clearAllListeners(),M=void 0,D=!1},addVariantChild:function(E){var C,U=L.getClosestVariantNode();if(U)return(C=U.variantChildren)===null||C===void 0||C.add(E),function(){return U.variantChildren.delete(E)}},sortNodePosition:function(E){return!c||r!==E.treeType?0:c(L.getInstance(),E.getInstance())},getClosestVariantNode:function(){return W?L:v==null?void 0:v.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return M},getStaticValue:function(E){return w[E]},setStaticValue:function(E,C){return w[E]=C},getLatestValues:function(){return w},setVisibility:function(E){L.isVisible!==E&&(L.isVisible=E,L.scheduleRender())},makeTargetAnimatable:function(E,C){return C===void 0&&(C=!0),o(L,E,p,C)},measureViewportBox:function(){return a(M,p)},addValue:function(E,C){L.hasValue(E)&&L.removeValue(E),I.set(E,C),w[E]=C.get(),X(E,C)},removeValue:function(E){var C;I.delete(E),(C=V.get(E))===null||C===void 0||C(),V.delete(E),delete w[E],l(E,x)},hasValue:function(E){return I.has(E)},getValue:function(E,C){var U=I.get(E);return U===void 0&&C!==void 0&&(U=Ze(C),L.addValue(E,U)),U},forEachValue:function(E){return I.forEach(E)},readValue:function(E){var C;return(C=w[E])!==null&&C!==void 0?C:u(M,E,f)},setBaseTarget:function(E,C){H[E]=C},getBaseTarget:function(E){if(i){var C=i(p,E);if(C!==void 0&&!he(C))return C}return H[E]}},A),{build:function(){return te(),x},scheduleRender:function(){ce.render(Y,!1,!0)},syncRender:Y,setProps:function(E){(E.transformTemplate||p.transformTemplate)&&L.scheduleRender(),p=E,A.updatePropListeners(E),j=Xv(L,d(p),j)},getProps:function(){return p},getVariant:function(E){var C;return(C=p.variants)===null||C===void 0?void 0:C[E]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(E){if(E===void 0&&(E=!1),E)return v==null?void 0:v.getVariantContext();if(!ke){var C=(v==null?void 0:v.getVariantContext())||{};return p.initial!==void 0&&(C.initial=p.initial),C}for(var U={},tt=0;tt<Kv;tt++){var Nt=ou[tt],Ar=p[Nt];(ie(Ar)||Ar===!1)&&(U[Nt]=Ar)}return U}});return L}},ou=ue(["initial"],B(oi),!1),Kv=ou.length;function wn(e){return typeof e=="string"&&e.startsWith("var(--")}var au=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Zv(e){var t=au.exec(e);if(!t)return[,];var r=B(t,3),n=r[1],i=r[2];return[n,i]}function En(e,t,r){var n=B(Zv(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():wn(o)?En(o,t):o}}function Jv(e,t,r){var n,i=ee(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};r&&(r=S({},r)),e.forEachValue(function(l){var c=l.get();if(wn(c)){var d=En(c,o);d&&l.set(d)}});for(var a in i){var s=i[a];if(wn(s)){var u=En(s,o);u&&(i[a]=u,r&&((n=r[a])!==null&&n!==void 0||(r[a]=s)))}}return{target:i,transitionEnd:r}}var Qv=new Set(["width","height","top","left","right","bottom","x","y"]),su=function(e){return Qv.has(e)},ep=function(e){return Object.keys(e).some(su)},uu=function(e,t){e.set(t,!1),e.set(t)},uo=function(e){return e===_e||e===O},lo;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(lo||(lo={}));var co=function(e,t){return parseFloat(e.split(", ")[t])},fo=function(e,t){return function(r,n){var i=n.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return co(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?co(a[1],e):0}},tp=new Set(["x","y","z"]),rp=Et.filter(function(e){return!tp.has(e)});function np(e){var t=[];return rp.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var ho={width:function(e,t){var r=e.x,n=t.paddingLeft,i=n===void 0?"0":n,o=t.paddingRight,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,i=n===void 0?"0":n,o=t.paddingBottom,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:fo(4,13),y:fo(5,14)},ip=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(function(l){s[l]=ho[l](n,o)}),t.syncRender();var u=t.measureViewportBox();return r.forEach(function(l){var c=t.getValue(l);uu(c,s[l]),e[l]=ho[l](u,o)}),e},op=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=S({},t),n=S({},n);var i=Object.keys(t).filter(su),o=[],a=!1,s=[];if(i.forEach(function(c){var d=e.getValue(c);if(e.hasValue(c)){var h=r[c],f=rt(h),v=t[c],p;if(Ot(v)){var g=v.length,y=v[0]===null?1:0;h=v[y],f=rt(h);for(var b=y;b<g;b++)p?ar(rt(v[b])===p):p=rt(v[b])}else p=rt(v);if(f!==p)if(uo(f)&&uo(p)){var T=d.get();typeof T=="string"&&d.set(parseFloat(T)),typeof v=="string"?t[c]=parseFloat(v):Array.isArray(v)&&p===O&&(t[c]=v.map(parseFloat))}else f!=null&&f.transform&&(p!=null&&p.transform)&&(h===0||v===0)?h===0?d.set(p.transform(h)):t[c]=f.transform(v):(a||(o=np(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],uu(d,v))}}),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=ip(t,e,s);return o.length&&o.forEach(function(c){var d=B(c,2),h=d[0],f=d[1];e.getValue(h).set(f)}),e.syncRender(),u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function ap(e,t,r,n){return ep(t)?op(e,t,r,n):{target:t,transitionEnd:n}}var sp=function(e,t,r,n){var i=Jv(e,t,n);return t=i.target,n=i.transitionEnd,ap(e,t,r,n)};function up(e){return window.getComputedStyle(e)}var lu={treeType:"dom",readValueFromInstance:function(e,t){if(Pt(t)){var r=Qn(t);return r&&r.default||0}else{var n=up(e);return(Qa(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return nu(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;n===void 0&&(n=!0);var o=t.transition,a=t.transitionEnd,s=ee(t,["transition","transitionEnd"]),u=pv(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),n){hv(e,s,u);var l=sp(e,s,u,a);a=l.transitionEnd,s=l.target}return S({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:$n,build:function(e,t,r,n,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Hn(t,r,n,i.transformTemplate)},render:fs},lp=iu(lu),cp=iu(S(S({},lu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Pt(t)?((r=Qn(t))===null||r===void 0?void 0:r.default)||0:(t=hs.has(t)?t:ds(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ps,build:function(e,t,r,n,i){Un(t,r,n,i.transformTemplate)},render:vs})),dp=function(e,t){return jn(e)?cp(t,{enableHardwareAcceleration:!1}):lp(t,{enableHardwareAcceleration:!0})};function vo(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nt={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;var r=vo(e,t.target.x),n=vo(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},po="_$css",fp={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(au,function(p){return a.push(p),po}));var s=ve.parse(e);if(s.length>5)return i;var u=ve.createTransformer(e),l=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=d;var h=k(c,d,.5);typeof s[2+l]=="number"&&(s[2+l]/=h),typeof s[3+l]=="number"&&(s[3+l]/=h);var f=u(s);if(o){var v=0;f=f.replace(po,function(){var p=a[v];return v++,p})}return f}},hp=function(e){pa(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,i=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=i.projection;Nd(pp),u&&(o!=null&&o.group&&o.group.add(u),a!=null&&a.register&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",function(){r.safeToRemove()}),u.setOptions(S(S({},u.options),{onExitComplete:function(){return r.safeToRemove()}}))),vt.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,i=this.props,o=i.layoutDependency,a=i.visualElement,s=i.drag,u=i.isPresent,l=a.projection;return l&&(l.isPresent=u,s||r.layoutDependency!==o||o===void 0?l.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?l.promote():l.relegate()||ce.postRender(function(){var c;!((c=l.getStack())===null||c===void 0)&&c.members.length||n.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,i=r.layoutGroup,o=r.switchLayoutGroup,a=n.projection;a&&(a.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(a),o!=null&&o.deregister&&o.deregister(a))},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r==null||r()},t.prototype.render=function(){return null},t}(N.Component);function vp(e){var t=B(Gs(),2),r=t[0],n=t[1],i=m.useContext(Xa);return N.createElement(hp,S({},e,{layoutGroup:i,switchLayoutGroup:m.useContext(Ka),isPresent:r,safeToRemove:n}))}var pp={borderRadius:S(S({},nt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:fp},gp={measureLayout:vp};function mp(e,t,r){r===void 0&&(r={});var n=he(e)?e:Ze(e);return ri("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var cu=["TopLeft","TopRight","BottomLeft","BottomRight"],yp=cu.length,go=function(e){return typeof e=="string"?parseFloat(e):e},mo=function(e){return typeof e=="number"||O.test(e)};function bp(e,t,r,n,i,o){var a,s,u,l;i?(e.opacity=k(0,(a=r.opacity)!==null&&a!==void 0?a:1,Tp(n)),e.opacityExit=k((s=t.opacity)!==null&&s!==void 0?s:1,0,Sp(n))):o&&(e.opacity=k((u=t.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(var c=0;c<yp;c++){var d="border".concat(cu[c],"Radius"),h=yo(t,d),f=yo(r,d);if(!(h===void 0&&f===void 0)){h||(h=0),f||(f=0);var v=h===0||f===0||mo(h)===mo(f);v?(e[d]=Math.max(k(go(h),go(f),n),0),(le.test(f)||le.test(h))&&(e[d]+="%")):e[d]=f}}(t.rotate||r.rotate)&&(e.rotate=k(t.rotate||0,r.rotate||0,n))}function yo(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var Tp=du(0,.5,Zn),Sp=du(.5,.95,Xn);function du(e,t,r){return function(n){return n<e?0:n>t?1:r(xt(e,t,n))}}function bo(e,t){e.min=t.min,e.max=t.max}function re(e,t){bo(e.x,t.x),bo(e.y,t.y)}function To(e,t,r,n,i){return e-=t,e=pr(e,1/r,n),i!==void 0&&(e=pr(e,1/i,n)),e}function Dp(e,t,r,n,i,o,a){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),o===void 0&&(o=e),a===void 0&&(a=e),le.test(t)){t=parseFloat(t);var s=k(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var u=k(o.min,o.max,n);e===o&&(u-=t),e.min=To(e.min,t,r,u,i),e.max=To(e.max,t,r,u,i)}}function So(e,t,r,n,i){var o=B(r,3),a=o[0],s=o[1],u=o[2];Dp(e,t[a],t[s],t[u],t.scale,n,i)}var wp=["x","scaleX","originX"],Ep=["y","scaleY","originY"];function Do(e,t,r,n){So(e.x,t,wp,r==null?void 0:r.x,n==null?void 0:n.x),So(e.y,t,Ep,r==null?void 0:r.y,n==null?void 0:n.y)}function wo(e){return e.translate===0&&e.scale===1}function fu(e){return wo(e.x)&&wo(e.y)}function hu(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Cp=function(){function e(){this.members=[]}return e.prototype.add=function(t){ni(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(ii(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r)}},e.prototype.relegate=function(t){var r=this.members.findIndex(function(a){return t===a});if(r===0)return!1;for(var n,i=r;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,i,o,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Op="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Eo(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return o+="scale(".concat(l,", ").concat(c,")"),o===Op?"none":o}var xp=function(e,t){return e.depth-t.depth},Ip=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){ni(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){ii(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(xp),this.isDirty=!1,this.children.forEach(t)},e}(),Co=1e3;function vu(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function a(s,u,l){var c=this;u===void 0&&(u={}),l===void 0&&(l=r==null?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){c.isUpdating&&(c.isUpdating=!1,c.clearAllSnapshots())},this.updateProjection=function(){c.nodes.forEach(Vp),c.nodes.forEach(Np)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?ue(ue([],B(l.path),!1),[l],!1):[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ip)}return a.prototype.addEventListener=function(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new mt),this.eventHandlers.get(s).add(u)},a.prototype.notifyListeners=function(s){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var c=this.eventHandlers.get(s);c==null||c.notify.apply(c,ue([],B(u),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,u){this.potentialNodes.set(s,u)},a.prototype.mount=function(s,u){var l=this,c;if(u===void 0&&(u=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var d=this.options,h=d.layoutId,f=d.layout,v=d.visualElement;if(v&&!v.getInstance()&&v.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),u&&(f||h)&&(this.isLayoutDirty=!0),t){var p,g=function(){return l.root.updateBlockedByResize=!1};t(s,function(){l.root.updateBlockedByResize=!0,clearTimeout(p),p=window.setTimeout(g,250),vt.hasAnimatedSinceResize&&(vt.hasAnimatedSinceResize=!1,l.nodes.forEach(Lp))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&v&&(h||f)&&this.addEventListener("didUpdate",function(y){var b,T,D,w,x,M=y.delta,A=y.hasLayoutChanged,I=y.hasRelativeTargetChanged,V=y.layout;if(l.isTreeAnimationBlocked()){l.target=void 0,l.relativeTarget=void 0;return}var j=(T=(b=l.options.transition)!==null&&b!==void 0?b:v.getDefaultTransition())!==null&&T!==void 0?T:Bp,H=v.getProps(),G=H.onLayoutAnimationStart,Y=H.onLayoutAnimationComplete,te=!l.targetLayout||!hu(l.targetLayout,V)||I,me=!A&&I;if(!((D=l.resumeFrom)===null||D===void 0)&&D.instance||me||A&&(te||!l.currentAnimation)){l.resumeFrom&&(l.resumingFrom=l.resumeFrom,l.resumingFrom.resumingFrom=void 0),l.setAnimationOrigin(M,me);var X=S(S({},ti(j,"layout")),{onPlay:G,onComplete:Y});v.shouldReduceMotion&&(X.delay=0,X.type=!1),l.startAnimation(X)}else!A&&l.animationProgress===0&&l.finishAnimation(),l.isLead()&&((x=(w=l.options).onExitComplete)===null||x===void 0||x.call(w));l.targetLayout=V})}},a.prototype.unmount=function(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Ke.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(_p))},a.prototype.willUpdate=function(s){var u,l,c;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(l=(u=this.options).onExitComplete)===null||l===void 0||l.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var h=this.path[d];h.shouldResetTransform=!0,h.updateScroll()}var f=this.options,v=f.layoutId,p=f.layout;if(!(v===void 0&&!p)){var g=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Oo);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Hp),this.potentialNodes.clear()),this.nodes.forEach(Ap),this.nodes.forEach(Pp),this.nodes.forEach(Rp),this.clearAllSnapshots(),$r.update(),$r.preRender(),$r.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Mp),this.sharedNodes.forEach(Fp)},a.prototype.scheduleUpdateProjection=function(){ce.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;ce.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));Ro(u),this.snapshot={measured:s,layout:u,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var u=0;u<this.path.length;u++){var l=this.path[u];l.updateScroll()}var c=this.measure();Ro(c);var d=this.layout;this.layout={measured:c,actual:this.removeElementScroll(c)},this.layoutCorrected=z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},a.prototype.resetTransform=function(){var s;if(o){var u=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!fu(this.projectionDelta),c=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,d=c==null?void 0:c(this.latestValues,""),h=d!==this.prevTransformTemplateValue;u&&(l||Te(this.latestValues)||h)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return z();var u=s.measureViewportBox(),l=this.root.scroll;return l&&(Se(u.x,l.x),Se(u.y,l.y)),u},a.prototype.removeElementScroll=function(s){var u=z();re(u,s);for(var l=0;l<this.path.length;l++){var c=this.path[l],d=c.scroll,h=c.options,f=c.isScrollRoot;if(c!==this.root&&d&&h.layoutScroll){if(f){re(u,s);var v=this.root.scroll;v&&(Se(u.x,-v.x),Se(u.y,-v.y))}Se(u.x,d.x),Se(u.y,d.y)}}return u},a.prototype.applyTransform=function(s,u){u===void 0&&(u=!1);var l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ue(l,{x:-d.scroll.x,y:-d.scroll.y}),Te(d.latestValues)&&Ue(l,d.latestValues)}return Te(this.latestValues)&&Ue(l,this.latestValues),l},a.prototype.removeTransform=function(s){var u,l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];if(d.instance&&Te(d.latestValues)){tu(d.latestValues)&&d.updateSnapshot();var h=z(),f=d.measure();re(h,f),Do(l,d.latestValues,(u=d.snapshot)===null||u===void 0?void 0:u.layout,h)}}return Te(this.latestValues)&&Do(l,this.latestValues),l},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var u;this.options=S(S(S({},this.options),s),{crossfade:(u=s.crossfade)!==null&&u!==void 0?u:!0})},a.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},a.prototype.resolveTargetDelta=function(){var s,u=this.options,l=u.layout,c=u.layoutId;!this.layout||!(l||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),bt(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),re(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?Pv(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):re(this.target,this.layout.actual),ru(this.target,this.targetDelta)):re(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),bt(this.relativeTargetOrigin,this.target,this.relativeParent.target),re(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Te(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,u=this.options,l=u.layout,c=u.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(l||c))){var d=this.getLead();re(this.layoutCorrected,this.layout.actual),kv(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var h=d.target;if(h){this.projectionDelta||(this.projectionDelta=Tt(),this.projectionDeltaWithTransform=Tt());var f=this.treeScale.x,v=this.treeScale.y,p=this.projectionTransform;yt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=Eo(this.projectionDelta,this.treeScale),(this.projectionTransform!==p||this.treeScale.x!==f||this.treeScale.y!==v)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var u,l,c;s===void 0&&(s=!0),(l=(u=this.options).scheduleRender)===null||l===void 0||l.call(u),s&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,u){var l=this,c;u===void 0&&(u=!1);var d=this.snapshot,h=(d==null?void 0:d.latestValues)||{},f=S({},this.latestValues),v=Tt();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!u;var p=z(),g=d==null?void 0:d.isShared,y=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,b=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(jp));this.animationProgress=0,this.mixTargetDelta=function(T){var D,w=T/1e3;xo(v.x,s.x,w),xo(v.y,s.y,w),l.setTargetDelta(v),l.relativeTarget&&l.relativeTargetOrigin&&l.layout&&(!((D=l.relativeParent)===null||D===void 0)&&D.layout)&&(bt(p,l.layout.actual,l.relativeParent.layout.actual),kp(l.relativeTarget,l.relativeTargetOrigin,p,w)),g&&(l.animationValues=f,bp(f,h,l.latestValues,w,b,y)),l.root.scheduleUpdateProjection(),l.scheduleRender(),l.animationProgress=w},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var u=this,l,c;this.notifyListeners("animationStart"),(l=this.currentAnimation)===null||l===void 0||l.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Ke.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ce.update(function(){vt.hasAnimatedSinceResize=!0,u.currentAnimation=mp(0,Co,S(S({},s),{onUpdate:function(d){var h;u.mixTargetDelta(d),(h=s.onUpdate)===null||h===void 0||h.call(s,d)},onComplete:function(){var d;(d=s.onComplete)===null||d===void 0||d.call(s),u.completeAnimation()}})),u.resumingFrom&&(u.resumingFrom.currentAnimation=u.currentAnimation),u.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,Co),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),u=s.targetWithTransforms,l=s.target,c=s.layout,d=s.latestValues;!u||!l||!c||(re(u,l),Ue(u,d),yt(this.projectionDeltaWithTransform,this.layoutCorrected,u,d))},a.prototype.registerSharedNode=function(s,u){var l,c,d;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Cp);var h=this.sharedNodes.get(s);h.add(u),u.promote({transition:(l=u.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(d=(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(c,u)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,u=this.options.layoutId;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,u=this.options.layoutId;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var u=s===void 0?{}:s,l=u.needsReset,c=u.transition,d=u.preserveFollowOpacity,h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var u=!1,l={},c=0;c<ln.length;c++){var d=ln[c],h="rotate"+d;s.getStaticValue(h)&&(u=!0,l[h]=s.getStaticValue(h),s.setStaticValue(h,0))}if(u){s==null||s.syncRender();for(var h in l)s.setStaticValue(h,l[h]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var u,l,c,d,h,f;s===void 0&&(s={});var v={};if(!this.instance||this.isSVG)return v;if(this.isVisible)v.visibility="";else return{visibility:"hidden"};var p=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,v.opacity="",v.pointerEvents=rr(s.pointerEvents)||"",v.transform=p?p(this.latestValues,""):"none",v;var g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){var y={};return this.options.layoutId&&(y.opacity=(l=this.latestValues.opacity)!==null&&l!==void 0?l:1,y.pointerEvents=rr(s.pointerEvents)||""),this.hasProjected&&!Te(this.latestValues)&&(y.transform=p?p({},""):"none",this.hasProjected=!1),y}var b=g.animationValues||g.latestValues;this.applyTransformsToTarget(),v.transform=Eo(this.projectionDeltaWithTransform,this.treeScale,b),p&&(v.transform=p(b,v.transform));var T=this.projectionDelta,D=T.x,w=T.y;v.transformOrigin="".concat(D.origin*100,"% ").concat(w.origin*100,"% 0"),g.animationValues?v.opacity=g===this?(d=(c=b.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:v.opacity=g===this?(h=b.opacity)!==null&&h!==void 0?h:"":(f=b.opacityExit)!==null&&f!==void 0?f:0;for(var x in sr)if(b[x]!==void 0){var M=sr[x],A=M.correct,I=M.applyTo,V=A(b[x],g);if(I)for(var j=I.length,H=0;H<j;H++)v[I[H]]=V;else v[x]=V}return this.options.layoutId&&(v.pointerEvents=g===this?rr(s.pointerEvents)||"":"none"),v},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Oo),this.root.sharedNodes.clear()},a}()}function Pp(e){e.updateLayout()}function Rp(e){var t,r,n,i,o=(r=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&r!==void 0?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;e.options.animationType==="size"?se(function(b){var T=o.isShared?o.measured[b]:o.layout[b],D=pe(T);T.min=s[b].min,T.max=T.min+D}):e.options.animationType==="position"&&se(function(b){var T=o.isShared?o.measured[b]:o.layout[b],D=pe(s[b]);T.max=T.min+D});var l=Tt();yt(l,s,o.layout);var c=Tt();o.isShared?yt(c,e.applyTransform(u,!0),o.measured):yt(c,s,o.layout);var d=!fu(l),h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,v=f.snapshot,p=f.layout;if(v&&p){var g=z();bt(g,o.layout,v.layout);var y=z();bt(y,s,p.actual),hu(g,y)||(h=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function Mp(e){e.clearSnapshot()}function Oo(e){e.clearMeasurements()}function Ap(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Lp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Vp(e){e.resolveTargetDelta()}function Np(e){e.calcProjection()}function _p(e){e.resetRotation()}function Fp(e){e.removeLeadSnapshot()}function xo(e,t,r){e.translate=k(t.translate,0,r),e.scale=k(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Io(e,t,r,n){e.min=k(t.min,r.min,n),e.max=k(t.max,r.max,n)}function kp(e,t,r,n){Io(e.x,t.x,r.x,n),Io(e.y,t.y,r.y,n)}function jp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Bp={duration:.45,ease:[.4,0,.1,1]};function Hp(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=r&&r!==e.root?r.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Po(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ro(e){Po(e.x),Po(e.y)}var zp=vu({attachResizeListener:function(e,t){return xr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Kr={current:void 0},Up=vu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Kr.current){var e=new zp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Kr.current=e}return Kr.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),$p=S(S(S(S({},Ov),Uh),Gv),gp),qp=Ld(function(e,t){return Tf(e,t,$p,dp,Up)});function Cn(e,t,r){var n,i,o,a,s;t==null&&(t=100);function u(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(u,t-c):(n=null,r||(s=e.apply(o,i),o=i=null))}var l=function(){o=this,i=arguments,a=Date.now();var c=r&&!n;return n||(n=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(s=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},l}Cn.debounce=Cn;var Wp=Cn;const Mo=xu(Wp);function Gp(e){let{debounce:t,scroll:r,polyfill:n,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=m.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=m.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,d=m.useRef(!1);m.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,f,v]=m.useMemo(()=>{const b=()=>{if(!u.current.element)return;const{left:T,top:D,width:w,height:x,bottom:M,right:A,x:I,y:V}=u.current.element.getBoundingClientRect(),j={left:T,top:D,width:w,height:x,bottom:M,right:A,x:I,y:V};u.current.element instanceof HTMLElement&&i&&(j.height=u.current.element.offsetHeight,j.width=u.current.element.offsetWidth),Object.freeze(j),d.current&&!Zp(u.current.lastBounds,j)&&s(u.current.lastBounds=j)};return[b,c?Mo(b,c):b,l?Mo(b,l):b]},[s,i,l,c]);function p(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(b=>b.removeEventListener("scroll",v,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new o(v),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(b=>b.addEventListener("scroll",v,{capture:!0,passive:!0})))}const y=b=>{!b||b===u.current.element||(p(),u.current.element=b,u.current.scrollContainers=pu(b),g())};return Xp(v,!!r),Yp(f),m.useEffect(()=>{p(),g()},[r,v,f]),m.useEffect(()=>p,[]),[y,a,h]}function Yp(e){m.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function Xp(e,t){m.useEffect(()=>{if(t){const r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t])}function pu(e){const t=[];if(!e||e===document.body)return t;const{overflow:r,overflowX:n,overflowY:i}=window.getComputedStyle(e);return[r,n,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...pu(e.parentElement)]}const Kp=["x","y","top","bottom","left","right","width","height"],Zp=(e,t)=>Kp.every(r=>e[r]===t[r]);function Zr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jp(e,t,r){Qp(e,t),t.set(e,r)}function Qp(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Gt(e,t){var r=gu(e,t,"get");return eg(e,r)}function eg(e,t){return t.get?t.get.call(e):t.value}function tg(e,t,r){var n=gu(e,t,"set");return rg(e,n,r),r}function gu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function rg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var Be=new WeakMap;class ng{constructor(){Jp(this,Be,{writable:!0,value:void 0}),Zr(this,"register",t=>{Gt(this,Be).push(t)}),Zr(this,"unregister",t=>{let r;for(;(r=Gt(this,Be).indexOf(t))!==-1;)Gt(this,Be).splice(r,1)}),Zr(this,"backendChanged",t=>{for(const r of Gt(this,Be))r.backendChanged(t)}),tg(this,Be,[])}}function ne(e,t,r){ig(e,t),t.set(e,r)}function ig(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ae(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R(e,t){var r=mu(e,t,"get");return og(e,r)}function og(e,t){return t.get?t.get.call(e):t.value}function He(e,t,r){var n=mu(e,t,"set");return ag(e,n,r),r}function mu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function ag(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var K=new WeakMap,Yt=new WeakMap,Z=new WeakMap,ye=new WeakMap,Re=new WeakMap,Ao=new WeakMap,Lo=new WeakMap,Vo=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Xt=new WeakMap;class Xe{constructor(t,r,n){if(ne(this,K,{writable:!0,value:void 0}),ne(this,Yt,{writable:!0,value:void 0}),ne(this,Z,{writable:!0,value:void 0}),ne(this,ye,{writable:!0,value:void 0}),ne(this,Re,{writable:!0,value:void 0}),ne(this,Ao,{writable:!0,value:(i,o,a)=>{var s,u;if(!a.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(a)));const l=a.backend(i,o,a.options);let c=a.id;const d=!a.id&&l&&l.constructor;if(d&&(c=l.constructor.name),c)d&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
3
3
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(a),`
4
4
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(R(this,Z)[c])throw new Error(`You must specify a unique 'id' property in your Backend entry:
@@ -357,7 +357,7 @@
357
357
  }
358
358
  </script>
359
359
 
360
- <script type="module" crossorigin src="./assets/iframe-Ne5PDyYi.js"></script>
360
+ <script type="module" crossorigin src="./assets/iframe-MASZ_taO.js"></script>
361
361
  </head>
362
362
 
363
363
  <body>
@@ -1 +1 @@
1
- {"generatedAt":1712316381792,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.19"},"features":{"storyStoreV7":true},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.5.3","storybookVersionSpecifier":"^7.5.3","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"7.5.3"},"@storybook/addon-links":{"version":"7.5.3"},"@storybook/addons":{"version":"7.5.3"},"@storybook/react":{"version":"7.5.3"},"@storybook/react-vite":{"version":"7.5.3"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.5.3"}},"addons":{"@storybook/addon-actions":{"version":"7.5.3"},"@storybook/addon-docs":{"version":"7.5.3"},"storybook-dark-mode":{"version":"3.0.3"}}}
1
+ {"generatedAt":1712585327572,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.19"},"features":{"storyStoreV7":true},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/react","storybookVersion":"7.5.3","storybookVersionSpecifier":"^7.5.3","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"7.5.3"},"@storybook/addon-links":{"version":"7.5.3"},"@storybook/addons":{"version":"7.5.3"},"@storybook/react":{"version":"7.5.3"},"@storybook/react-vite":{"version":"7.5.3"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.5.3"}},"addons":{"@storybook/addon-actions":{"version":"7.5.3"},"@storybook/addon-docs":{"version":"7.5.3"},"storybook-dark-mode":{"version":"3.0.3"}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "4.3.1",
3
+ "version": "4.3.2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {
@@ -1 +0,0 @@
1
- import{j as e}from"./jsx-runtime-FsUICBgo.js";import{B as q}from"./badge-23Ty_zBt.js";import{c as m}from"./index-VW3EWkuE.js";import{I as g}from"./icon-y1a2N5SZ.js";import{T as N}from"./tooltip-HEHiU__l.js";import{r as f}from"./index-RfLt4OUa.js";import{I as y}from"./common-types-U65vzrrz.js";import{H as h}from"./heading-Bk0bpNfe.js";import{A as x}from"./actions-ESle7xCw.js";const b="_inputInTable_1qlur_1",I="_inputHover_1qlur_13",T="_inputFocus_1qlur_18",j="_inputError_1qlur_25",w="_inputWarning_1qlur_26",H="_inputDisabled_1qlur_61",V="_hideScrollbars_1qlur_67",v="_header_1qlur_77",C="_headerTitle_1qlur_77",R="_heading_1qlur_78",E="_itemHeader_1qlur_78",k="_narrow_1qlur_81",M="_stickyHeader_1qlur_85",L="_title_1qlur_96",S="_name_1qlur_102",F="_iconTooltipMargin_1qlur_105",W="_bold_1qlur_108",$="_toggleNarrow_1qlur_117",B="_drag_1qlur_135",D="_list_1qlur_155",A="_bordered_1qlur_159",J="_item_1qlur_78",O="_action_1qlur_192",P="_active_1qlur_195",X="_indented_1qlur_202",z="_disabled_1qlur_215",G="_label_1qlur_226",K="_details_1qlur_237",Q="_metadata_1qlur_238",U="_itemContent_1qlur_246",Y="_indentIcon_1qlur_253",Z="_expandIcon_1qlur_258",ee="_expanded_1qlur_265",te="_right_1qlur_268",ae="_actions_1qlur_276",re="_scrollableList_1qlur_281",ne="_hideScrollbar_1qlur_67",r={inputInTable:b,inputHover:I,inputFocus:T,inputError:j,inputWarning:w,inputDisabled:H,hideScrollbars:V,header:v,headerTitle:C,heading:R,itemHeader:E,narrow:k,stickyHeader:M,title:L,name:S,iconTooltipMargin:F,bold:W,toggleNarrow:$,drag:B,list:D,bordered:A,item:J,action:O,active:P,indented:X,disabled:z,label:G,details:K,metadata:Q,itemContent:U,indentIcon:Y,expandIcon:Z,expanded:ee,right:te,actions:ae,scrollableList:re,hideScrollbar:ne},c=({name:a,icon:t,testId:l})=>{const n=t&&e.jsx(g,{icon:t.icon,color:t.color||"#db2828"});return e.jsxs("span",{className:m(r.name,r.bold),"data-testid":l,children:[a,t&&t.tooltip&&t.tooltip.text?e.jsx("span",{className:r.iconTooltipMargin,children:e.jsx(N,{text:t.tooltip.text,maxWidth:"350px",children:n})}):t&&t.icon&&e.jsx("span",{className:r.iconTooltipMargin,children:n})]})};try{c.displayName="Name",c.__docgenInfo={description:"",displayName:"Name",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"ReactNode"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"{ icon: ReactNode; color?: string; tooltip?: { text: ReactNode; }; } | undefined"}},testId:{defaultValue:null,description:"",name:"testId",required:!1,type:{name:"string"}}}}}catch{}try{name.displayName="name",name.__docgenInfo={description:"",displayName:"name",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"ReactNode"}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"{ icon: ReactNode; color?: string; tooltip?: { text: ReactNode; }; } | undefined"}},testId:{defaultValue:null,description:"",name:"testId",required:!1,type:{name:"string"}}}}}catch{}const u=({item:a})=>{const{name:t,icon:l,details:n,metadata:i,invalid:s,testId:o}=a;let d=e.jsx(c,{name:t,icon:l,testId:o&&`${o}-name`});return s&&(d=e.jsx(q,{small:!0,margin:"-2px",title:"!",children:d})),e.jsxs("span",{className:r.title,children:[d,n&&e.jsx("span",{className:r.details,"data-testid":o&&`${o}-details`,children:n}),i&&e.jsx("span",{className:r.metadata,"data-testid":o&&`${o}-metadata`,children:i})]})};try{u.displayName="MetaContent",u.__docgenInfo={description:"",displayName:"MetaContent",props:{item:{defaultValue:null,description:"",name:"item",required:!0,type:{name:"IMetaContentItem"}}}}}catch{}const _=({toggleNarrow:a,onClickToggleNarrow:t})=>a?e.jsx("a",{className:r.toggleNarrow,onClick:t,children:e.jsx(g,{icon:y.CHEVRON_LEFT})}):null;try{_.displayName="ToggleNarrow",_.__docgenInfo={description:"",displayName:"ToggleNarrow",props:{toggleNarrow:{defaultValue:null,description:"",name:"toggleNarrow",required:!1,type:{name:"boolean"}},onClickToggleNarrow:{defaultValue:null,description:"",name:"onClickToggleNarrow",required:!1,type:{name:"TEmpty"}}}}}catch{}const p=f.forwardRef(({name:a,actions:t=[],toggleNarrow:l=!1,onToggleNarrow:n=()=>{},stickyHeader:i},s)=>e.jsxs("div",{ref:s,className:m(r.header,i?r.stickyHeader:""),children:[e.jsx(_,{toggleNarrow:l,onClickToggleNarrow:n}),a&&e.jsx("div",{className:r.headerTitle,children:e.jsx(h,{top:!0,marginBottom:0,children:a})}),e.jsx("div",{className:r.right,children:e.jsx("div",{className:r.actions,children:e.jsx(x,{actions:t})})})]}));try{p.displayName="ListHeading",p.__docgenInfo={description:"",displayName:"ListHeading",props:{name:{defaultValue:null,description:"",name:"name",required:!0,type:{name:"string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | null | undefined"}},actions:{defaultValue:{value:"[]"},description:"",name:"actions",required:!1,type:{name:"any[]"}},toggleNarrow:{defaultValue:{value:"false"},description:"",name:"toggleNarrow",required:!1,type:{name:"boolean"}},onToggleNarrow:{defaultValue:{value:"() => {}"},description:"",name:"onToggleNarrow",required:!1,type:{name:"TEmpty"}},stickyHeader:{defaultValue:null,description:"",name:"stickyHeader",required:!1,type:{name:"boolean"}}}}}catch{}export{p as L,u as M,c as N,r as s};
@@ -1 +0,0 @@
1
- ._inputInTable_1qlur_1{background-color:transparent;border-radius:inherit!important;height:var(--size);min-height:100%}._inputInTable_1qlur_1:not(:hover){border-color:transparent}._inputInTable_1qlur_1:not(:focus){box-shadow:none}._inputHover_1qlur_13{position:relative;border-color:var(--color-border-hover);z-index:2}._inputFocus_1qlur_18{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputError_1qlur_25,._inputWarning_1qlur_26{position:relative}._inputError_1qlur_25{z-index:2;border-color:var(--color-border-error);color:var(--color-text-error)!important;background-color:var(--color-background-error-muted)}._inputError_1qlur_25:hover{border-color:var(--color-border-error-hover)!important}._inputError_1qlur_25:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputWarning_1qlur_26{z-index:1;border-color:var(--color-border-warning);color:var(--color-text-warning)!important;background-color:var(--color-background-warning-muted)}._inputWarning_1qlur_26:hover{border-color:var(--color-border-warning-hover)!important}._inputWarning_1qlur_26:focus{position:relative;outline:none!important;border-color:var(--color-border-focus)!important;box-shadow:var(--shadow-focus);z-index:3}._inputDisabled_1qlur_61{pointer-events:none;background-color:var(--color-background-disabled);color:var(--color-text-muted);box-shadow:none}._hideScrollbars_1qlur_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbars_1qlur_67::-webkit-scrollbar{display:none}._header_1qlur_77 ._headerTitle_1qlur_77,._heading_1qlur_78 ._itemHeader_1qlur_78{transition:opacity .3s}._narrow_1qlur_81 ._header_1qlur_77 ._headerTitle_1qlur_77,._narrow_1qlur_81 ._heading_1qlur_78 ._itemHeader_1qlur_78{opacity:0}._stickyHeader_1qlur_85{position:sticky;top:0;background-color:var(--color-background);z-index:10}._itemHeader_1qlur_78{padding:var(--padding-xs) var(--padding);display:flex;align-items:flex-start}._itemHeader_1qlur_78 ._title_1qlur_96{margin:0;padding:0;flex-grow:1;min-width:0}._itemHeader_1qlur_78 ._name_1qlur_102{font-weight:400}._itemHeader_1qlur_78 ._iconTooltipMargin_1qlur_105{margin-left:var(--padding-xs)}._itemHeader_1qlur_78 ._bold_1qlur_108{font-weight:700}._header_1qlur_77{padding:var(--padding);display:flex;align-items:center;border-bottom:1px solid var(--color-border)}._toggleNarrow_1qlur_117{margin-right:16px;margin-left:-5px;color:#c8c8c8;transition:all .4s;display:flex;width:22px;justify-content:center}._toggleNarrow_1qlur_117:hover{color:var(--color-text-primary-hover)}._toggleNarrow_1qlur_117:active{color:var(--color-text-primary-active)}._narrow_1qlur_81 ._toggleNarrow_1qlur_117{transform:scaleX(-1)}._drag_1qlur_135{color:var(--color-text-faint);display:flex;align-items:center;justify-content:center;margin-right:var(--padding-xs);margin-left:calc(var(--padding-xs) * -1);margin-top:calc((var(--line-height) - var(--size-sm)) / 2);margin-bottom:calc((var(--line-height) - var(--size-sm)) / 2);cursor:move;height:var(--size-sm);width:var(--size-sm);flex-shrink:0}._drag_1qlur_135:hover{color:var(--color-text-primary-hover)}._drag_1qlur_135:active{color:var(--color-text-primary-active)}._list_1qlur_155{flex-shrink:0;background:var(--color-background)}._list_1qlur_155._bordered_1qlur_159:first-child,._list_1qlur_155._bordered_1qlur_159:first-child>:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}._list_1qlur_155._bordered_1qlur_159:last-child,._list_1qlur_155._bordered_1qlur_159:last-child>:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;border-bottom:0}._item_1qlur_78{color:inherit;display:block;transition:background-color .2s;position:relative;border-bottom:1px solid var(--color-border);background-color:var(--color-background-raised);transition:background .3s;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}._item_1qlur_78:not(._heading_1qlur_78):after{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;border-top-left-radius:inherit;border-bottom-left-radius:inherit;transition:background .3s,width .3s}._item_1qlur_78._action_1qlur_192{cursor:pointer}._item_1qlur_78._action_1qlur_192:not(._active_1qlur_195):hover{background:var(--color-background-listitem-hover)}._item_1qlur_78._action_1qlur_192:not(._active_1qlur_195):hover:after{width:5px;background:#0000001a}._item_1qlur_78._indented_1qlur_202:after{width:3px;background:#0000001a}._item_1qlur_78._active_1qlur_195{cursor:default;position:relative;z-index:1;background:var(--color-background-listitem-active)}._item_1qlur_78._active_1qlur_195:after{background:var(--color-background-primary)!important}._item_1qlur_78._disabled_1qlur_215{color:var(--color-text-faint);pointer-events:none}._item_1qlur_78._heading_1qlur_78{color:var(--color-text-muted);background-color:var(--color-background-cardheader)}._item_1qlur_78._heading_1qlur_78._action_1qlur_192:hover{color:var(--color-text-primary-hover)}._item_1qlur_78 ._label_1qlur_226{margin-right:var(--padding-xs);flex-shrink:0;width:var(--size-sm);height:var(--size-sm);margin-top:calc(var(--line-height) / 2 - var(--size-sm) / 2);margin-bottom:calc(var(--line-height) / 2 - var(--size-sm) / 2);display:flex;align-items:center;justify-content:center}._item_1qlur_78 ._details_1qlur_237,._item_1qlur_78 ._metadata_1qlur_238{display:block;width:100%;font-weight:400}._item_1qlur_78 ._metadata_1qlur_238{color:var(--color-text-muted)}._item_1qlur_78 ._itemContent_1qlur_246{padding:0 var(--padding) var(--padding-sm);cursor:auto}._item_1qlur_78 ._itemContent_1qlur_246:empty{padding:inherit}._indentIcon_1qlur_253{color:var(--color-text-faint);flex-shrink:0;margin-right:var(--padding-xxs)}._expandIcon_1qlur_258{flex-shrink:0;position:relative;display:flex;height:var(--line-height);margin-right:var(--padding-xs)}._expandIcon_1qlur_258._expanded_1qlur_265 svg{transform:rotate(90deg)}._right_1qlur_268{margin-left:auto;display:flex;align-items:center;margin-top:calc((var(--line-height) - var(--size-sm)) / 2);margin-bottom:calc((var(--line-height) - var(--size-sm)) / 2);min-height:var(--size-sm)}._actions_1qlur_276{margin-left:var(--padding-xs);display:flex;align-items:center}._scrollableList_1qlur_281{height:100%;overflow-y:auto;scroll-behavior:smooth}._hideScrollbar_1qlur_67{scrollbar-width:none;-ms-overflow-style:none}._hideScrollbar_1qlur_67::-webkit-scrollbar{display:none}