@oliasoft-open-source/react-ui-library 3.13.2 → 3.13.3
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.
- package/dist/assets/Color-6VNJS4EI-0e835c18.js +1 -0
- package/dist/assets/DocsRenderer-NNNQARDV-bcab862b.js +1 -0
- package/dist/assets/WithTooltip-4HIR6TLV-d14a8aee.js +1 -0
- package/dist/assets/{accordion-40bd05b9.js → accordion-1d9c892f.js} +1 -1
- package/dist/assets/{accordion.stories-ab21688a.js → accordion.stories-9f56f5f7.js} +2 -2
- package/dist/assets/{actions-5d6680b2.js → actions-7f26d646.js} +1 -1
- package/dist/assets/{actions.stories-462b1250.js → actions.stories-25440954.js} +1 -1
- package/dist/assets/{afe.stories-df1bfe70.js → afe.stories-60dd7400.js} +2 -2
- package/dist/assets/{badge.stories-533d875e.js → badge.stories-acf9b7d1.js} +1 -1
- package/dist/assets/{blowout.stories-bcda1315.js → blowout.stories-4a114f9a.js} +1 -1
- package/dist/assets/{button-50d2e979.js → button-a7e4e1fa.js} +1 -1
- package/dist/assets/{button-group-0b92ca21.js → button-group-79f38dcc.js} +1 -1
- package/dist/assets/{button-group.stories-8e8994ef.js → button-group.stories-9f72c23d.js} +1 -1
- package/dist/assets/{button.stories-1aa74ca6.js → button.stories-0bc50414.js} +1 -1
- package/dist/assets/{buttons-and-links-334779d3.js → buttons-and-links-96f898d4.js} +4 -4
- package/dist/assets/{card.stories-a2d9cfb8.js → card.stories-dab38b95.js} +1 -1
- package/dist/assets/{casing-loads.stories-20998e1e.js → casing-loads.stories-a51072ad.js} +2 -2
- package/dist/assets/{cell.stories-f48618e2.js → cell.stories-ae6ae48c.js} +2 -2
- package/dist/assets/{check-box-5765854d.js → check-box-33361319.js} +1 -1
- package/dist/assets/{check-box.stories-8729ab88.js → check-box.stories-0a929f7a.js} +1 -1
- package/dist/assets/{chunk-HLWAVYOI-4d4c48e4.js → chunk-HLWAVYOI-d266e33a.js} +1 -1
- package/dist/assets/color-c5e53dbb.js +11 -0
- package/dist/assets/{column.stories-d087521b.js → column.stories-16d58724.js} +1 -1
- package/dist/assets/{dialog-69f889d0.js → dialog-21649b7a.js} +1 -1
- package/dist/assets/{drawer-35927bf9.js → drawer-182b490e.js} +1 -1
- package/dist/assets/drawer.stories-4ebaf642.js +109 -0
- package/dist/assets/{empty.stories-c2c0904f.js → empty.stories-b70294c2.js} +1 -1
- package/dist/assets/{field-f7d2025c.js → field-2ae2bd3e.js} +1 -1
- package/dist/assets/{field.stories-9e8a1e88.js → field.stories-3d20e748.js} +1 -1
- package/dist/assets/{file-input.stories-8ddd1fa3.js → file-input.stories-e3fa9b27.js} +1 -1
- package/dist/assets/{flex-ab83d710.js → flex-4bc3b694.js} +1 -1
- package/dist/assets/{flex.stories-55bea790.js → flex.stories-56c8527b.js} +1 -1
- package/dist/assets/footer.stories-8dc7dc1f.js +3 -0
- package/dist/assets/form.stories-e8b2576f.js +49 -0
- package/dist/assets/formation.stories-0ee1f8e0.js +74 -0
- package/dist/assets/{formatter-SWP5E3XI-7821f550.js → formatter-SWP5E3XI-9c500ffb.js} +2 -2
- package/dist/assets/{heading-3ab142d6.js → heading-5d5cbb6f.js} +1 -1
- package/dist/assets/{heading.stories-665fabdd.js → heading.stories-b6654e27.js} +1 -1
- package/dist/assets/{help-icon-50a91ee5.js → help-icon-e6604019.js} +1 -1
- package/dist/assets/{help-icon.stories-a43956cf.js → help-icon.stories-6c579003.js} +1 -1
- package/dist/assets/icon-bb00eeb9.js +8 -0
- package/dist/assets/{icon.stories-9fc926de.js → icon.stories-da83ed77.js} +1 -1
- package/dist/assets/iframe-bec17c8e.js +1 -0
- package/dist/assets/{index-83074380.js → index-9622ad0d.js} +8 -8
- package/dist/assets/{index.es-ab0f5a20.js → index.es-cc11f36c.js} +4 -4
- package/dist/assets/inheritsLoose-d4851ab8.js +1 -0
- package/dist/assets/{input-0081e806.js → input-b46bef9b.js} +1 -1
- package/dist/assets/{input-group.stories-a4fc01b7.js → input-group.stories-bf2513b1.js} +2 -2
- package/dist/assets/{input-validation-75d4d58a.js → input-validation-14fe9678.js} +2 -2
- package/dist/assets/{input.stories-03464cb3.js → input.stories-e73381e0.js} +1 -1
- package/dist/assets/{inputs-b92bd51c.js → inputs-f49e65e0.js} +2 -2
- package/dist/assets/{label-80098cc6.js → label-4b8583ea.js} +1 -1
- package/dist/assets/{label.stories-838bb20f.js → label.stories-f9340476.js} +1 -1
- package/dist/assets/layout-forms-ec28d2bf.js +16 -0
- package/dist/assets/{layout-general-6d21f93a.js → layout-general-f48e1972.js} +2 -2
- package/dist/assets/{list-8a1bb0e3.js → list-a4e1fe84.js} +1 -1
- package/dist/assets/{list-heading-0c0b2fba.js → list-heading-0f59017c.js} +1 -1
- package/dist/assets/{list.stories-3585d678.js → list.stories-5a4c5082.js} +2 -2
- package/dist/assets/{list.stories-data-06a0f4f4.js → list.stories-data-ade13aa1.js} +1 -1
- package/dist/assets/{loader.stories-4a7e8ada.js → loader.stories-fcfaa8ba.js} +1 -1
- package/dist/assets/{menu.stories-4f8ea08d.js → menu.stories-32bf568b.js} +1 -1
- package/dist/assets/{menu.stories-data-46536d0f.js → menu.stories-data-5b2403ee.js} +1 -1
- package/dist/assets/{message-f4ce39be.js → message-1ae54f21.js} +1 -1
- package/dist/assets/{message.stories-593fb632.js → message.stories-ba0f5962.js} +1 -1
- package/dist/assets/{modal.stories-ff7de1e7.js → modal.stories-f2f0247c.js} +2 -2
- package/dist/assets/{number-input-bd5e3c05.js → number-input-0b915316.js} +1 -1
- package/dist/assets/{number-input.stories-3ad59a83.js → number-input.stories-db5e057c.js} +2 -2
- package/dist/assets/{option-dropdown.stories-31d8e92e.js → option-dropdown.stories-12bb244b.js} +1 -1
- package/dist/assets/{page.stories-99e8828d.js → page.stories-cc4335af.js} +1 -1
- package/dist/assets/{pagination-5c6f0f61.js → pagination-67e45ad2.js} +1 -1
- package/dist/assets/{pagination.stories-0df1811a.js → pagination.stories-fe81c905.js} +2 -2
- package/dist/assets/{pop-confirm.stories-1aa64cb1.js → pop-confirm.stories-df764cfd.js} +1 -1
- package/dist/assets/{popover-b6a51770.js → popover-deb55aea.js} +1 -1
- package/dist/assets/popover.stories-0438d0eb.js +1 -0
- package/dist/assets/{preview-bd1e40a8.js → preview-29ea3d92.js} +2 -2
- package/dist/assets/preview-e9b6f357.js +1 -0
- package/dist/assets/projects.stories-3d4392cd.js +46 -0
- package/dist/assets/{radio-button-f9e4c2fb.js → radio-button-673f6757.js} +1 -1
- package/dist/assets/{radio-button.stories-a90f64a6.js → radio-button.stories-bb2a4dcc.js} +1 -1
- package/dist/assets/{reservoirs.stories-1b19d2d4.js → reservoirs.stories-e773a9d0.js} +2 -2
- package/dist/assets/{rich-text-input.stories-111c53b3.js → rich-text-input.stories-6b75d4f1.js} +3 -3
- package/dist/assets/{row.stories-0f76f39b.js → row.stories-383aa2fa.js} +2 -2
- package/dist/assets/select-63fb21a5.js +1 -0
- package/dist/assets/{select.stories-ca0ade0e.js → select.stories-7142b54a.js} +2 -2
- package/dist/assets/{side-bar-185a98d7.js → side-bar-b5f6fafc.js} +1 -1
- package/dist/assets/{side-bar.stories-4a8904cd.js → side-bar.stories-0ea486c6.js} +1 -1
- package/dist/assets/{site.stories-9171c440.js → site.stories-8ce14b02.js} +2 -2
- package/dist/assets/slider-0dae0ace.js +7 -0
- package/dist/assets/{slider.stories-b58b90f7.js → slider.stories-8431d635.js} +2 -2
- package/dist/assets/{spacer.stories-ebe72e9e.js → spacer.stories-c3891d24.js} +1 -1
- package/dist/assets/syntaxhighlighter-NMPM6SWI-f002e2eb.js +1 -0
- package/dist/assets/{table-f87ae9d3.js → table-1f9fcf84.js} +1 -1
- package/dist/assets/{table.stories-cf11886f.js → table.stories-ba2503d8.js} +2 -2
- package/dist/assets/{table.stories-data-82de77b6.js → table.stories-data-435da5fd.js} +1 -1
- package/dist/assets/{textarea-d23df40d.js → textarea-5c9f1957.js} +1 -1
- package/dist/assets/{textarea.stories-361db692.js → textarea.stories-812ec950.js} +1 -1
- package/dist/assets/{title.stories-9f0ab673.js → title.stories-c1bb70e9.js} +2 -2
- package/dist/assets/{toaster-ed9b6f60.js → toaster-360d1c11.js} +1 -1
- package/dist/assets/{toaster.stories-b1ff0f61.js → toaster.stories-ad826ce8.js} +1 -1
- package/dist/assets/{toggle-de6344a4.js → toggle-e193dcc8.js} +1 -1
- package/dist/assets/{toggle.stories-21b22bdd.js → toggle.stories-8a3f9453.js} +1 -1
- package/dist/assets/{tooltip-559179a7.js → tooltip-b72c7394.js} +1 -1
- package/dist/assets/{tooltip.stories-84b7fc63.js → tooltip.stories-3f29f711.js} +1 -1
- package/dist/assets/{tooltip.test-case.stories-64b8a470.js → tooltip.test-case.stories-f414e074.js} +1 -1
- package/dist/assets/{top-bar-f7d438c2.js → top-bar-68696a1c.js} +1 -1
- package/dist/assets/{top-bar.stories-f6de91d3.js → top-bar.stories-8dfc7d2d.js} +1 -1
- package/dist/assets/{top-bar.testcase.stories-b8242634.js → top-bar.testcase.stories-2bb9667b.js} +1 -1
- package/dist/assets/{tree.stories-09d580ea.js → tree.stories-7289829b.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/project.json +1 -1
- package/package.json +9 -9
- package/dist/assets/Color-6VNJS4EI-9ae8d2ff.js +0 -1
- package/dist/assets/DocsRenderer-NNNQARDV-9f022aef.js +0 -1
- package/dist/assets/WithTooltip-4HIR6TLV-4d929e52.js +0 -1
- package/dist/assets/color-94456a59.js +0 -11
- package/dist/assets/drawer.stories-333852e0.js +0 -109
- package/dist/assets/extends-98964cd2.js +0 -1
- package/dist/assets/footer.stories-02e3742f.js +0 -3
- package/dist/assets/form.stories-e76c7017.js +0 -49
- package/dist/assets/formation.stories-21da3be6.js +0 -74
- package/dist/assets/icon-4579d4e5.js +0 -8
- package/dist/assets/iframe-38a2d83b.js +0 -1
- package/dist/assets/inheritsLoose-c82a83d4.js +0 -1
- package/dist/assets/layout-forms-bea7e411.js +0 -16
- package/dist/assets/popover.stories-832d680f.js +0 -1
- package/dist/assets/preview-e035cea7.js +0 -1
- package/dist/assets/projects.stories-b1f8c6c9.js +0 -46
- package/dist/assets/select-ca80c206.js +0 -1
- package/dist/assets/slider-73deb0f3.js +0 -7
- package/dist/assets/syntaxhighlighter-NMPM6SWI-73022108.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as F}from"./jsx-runtime-f961835c.js";import{r as m,R as N,g as Cu}from"./index-f80c8c95.js";import{e as Ou}from"./index-54f0d271.js";import{a as S,b as B,c as ha,d as ee,e as ue,I as xu}from"./icon-4579d4e5.js";import{c as Iu}from"./index-a80ed1cf.js";import{I as Ar,C as Pu}from"./common-types-3a5f9d98.js";import{s as ye,M as Ru,L as Mu}from"./list-heading-0c0b2fba.js";import{A as Au}from"./actions-5d6680b2.js";import{B as va}from"./button-50d2e979.js";import{c as Lu}from"./redux-10ee6be7.js";import{T as Vu}from"./text-78efb253.js";import"./inheritsLoose-c82a83d4.js";import"./index-c89a1915.js";import"./disabled-context-d654f6ff.js";import"./badge-2efb26e1.js";import"./tooltip-559179a7.js";import"./index-64d4dcb8.js";import"./heading-3ab142d6.js";import"./help-icon-50a91ee5.js";import"./lodash-75c70a11.js";import"./types-cc224262.js";import"./types-332ceaf3.js";import"./spinner-4948799e.js";import"./objectSpread2-fdee9b6d.js";const pa=m.createContext({dragDropManager:void 0});function P(e,t,...r){if(Nu()&&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 Nu(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function _u(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Fu(e,t){return e.filter(r=>r!==t)}function ga(e){return typeof e=="object"}function ju(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 ku(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Rn="dnd-core/INIT_COORDS",gr="dnd-core/BEGIN_DRAG",Mn="dnd-core/PUBLISH_DRAG_SOURCE",mr="dnd-core/HOVER",yr="dnd-core/DROP",br="dnd-core/END_DRAG";function ai(e,t){return{type:Rn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Bu={type:Rn,payload:{clientOffset:null,sourceClientOffset:null}};function Hu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ai(o)),zu(r,s,u);const l=Wu(r,s);if(l==null){e.dispatch(Bu);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Uu(a),c=a(l)}e.dispatch(ai(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;$u(h),u.pinSource(l);const f=u.getSourceType(l);return{type:gr,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function zu(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 Uu(e){P(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function $u(e){P(ga(e),"Item must be an object.")}function Wu(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 Gu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qu(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){Gu(e,i,r[i])})}return e}function Yu(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();Xu(n),Ju(n).forEach((a,s)=>{const u=Ku(a,s,i,n),l={type:yr,payload:{dropResult:qu({},r,u)}};e.dispatch(l)})}}function Xu(e){P(e.isDragging(),"Cannot call drop while not dragging."),P(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Ku(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return Zu(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function Zu(e){P(typeof e>"u"||ga(e),"Drop result must either be an object or undefined.")}function Ju(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Qu(e){return function(){const r=e.getMonitor(),n=e.getRegistry();el(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:br}}}function el(e){P(e.isDragging(),"Cannot call endDrag while not dragging.")}function en(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function tl(e){return function(r,{clientOffset:n}={}){rl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return il(i,a,s),nl(i,o,a),ol(i,o,a),{type:mr,payload:{targetIds:i,clientOffset:n||null}}}}function rl(e){P(Array.isArray(e),"Expected targetIds to be an array.")}function nl(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 il(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);en(o,r)||e.splice(n,1)}}function ol(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function al(e){return function(){if(e.getMonitor().isDragging())return{type:Mn}}}function sl(e){return{beginDrag:Hu(e),publishDragSource:al(e),hover:tl(e),drop:Yu(e),endDrag:Qu(e)}}class ul{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=sl(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 ll(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:ma(ll(t,n),r)}function dl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:ma(t,r)}const dt=[],An=[];dt.__IS_NONE__=!0;An.__IS_ALL__=!0;function fl(e,t){return e===dt?!1:e===An||typeof t>"u"?!0:ku(t,e).length>0}class hl{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&&!fl(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 en(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&&!en(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 cl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return dl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const si=typeof global<"u"?global:self,ya=si.MutationObserver||si.WebKitMutationObserver;function ba(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function vl(e){let t=1;const r=new ya(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const pl=typeof ya=="function"?vl:ba;class gl{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=pl(this.flush),this.requestErrorThrow=ba(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ml{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 yl{create(t){const r=this.freeTasks,n=r.length?r.pop():new ml(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ta=new gl,bl=new yl(Ta.registerPendingError);function Tl(e){Ta.enqueueTask(bl.create(e))}const Ln="dnd-core/ADD_SOURCE",Vn="dnd-core/ADD_TARGET",Nn="dnd-core/REMOVE_SOURCE",Tr="dnd-core/REMOVE_TARGET";function Sl(e){return{type:Ln,payload:{sourceId:e}}}function Dl(e){return{type:Vn,payload:{targetId:e}}}function wl(e){return{type:Nn,payload:{sourceId:e}}}function El(e){return{type:Tr,payload:{targetId:e}}}function Cl(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 Ol(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 tn(e,t){if(t&&Array.isArray(e)){e.forEach(r=>tn(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 xl=0;function Il(){return xl++}function Pl(e){const t=Il().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ui(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function li(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 Rl{addSource(t,r){tn(t),Cl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Sl(n)),n}addTarget(t,r){tn(t,!0),Ol(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Dl(n)),n}containsHandler(t){return li(this.dragSources,t)||li(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 ui(t)===J.SOURCE}isTargetId(t){return ui(t)===J.TARGET}removeSource(t){P(this.getSource(t),"Expected an existing source."),this.store.dispatch(wl(t)),Tl(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){P(this.getTarget(t),"Expected an existing target."),this.store.dispatch(El(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=Pl(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 Ml=(e,t)=>e===t;function Al(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Ll(e,t,r=Ml){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 Vl(e=dt,t){switch(t.type){case mr:break;case Ln:case Vn:case Tr:case Nn:return dt;case gr:case Mn:case br:case yr:default:return An}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=ju(r,n);if(!(i.length>0||!Ll(r,n)))return dt;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _l(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){Nl(e,i,r[i])})}return e}const ci={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Fl(e=ci,t){const{payload:r}=t;switch(t.type){case Rn:case gr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case mr:return Al(e.clientOffset,r.clientOffset)?e:_l({},e,{clientOffset:r.clientOffset});case br:case yr:return ci;default:return e}}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 ke(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 kl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Bl(e=kl,t){const{payload:r}=t;switch(t.type){case gr:return ke({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Mn:return ke({},e,{isSourcePublic:!0});case mr:return ke({},e,{targetIds:r.targetIds});case Tr:return e.targetIds.indexOf(r.targetId)===-1?e:ke({},e,{targetIds:Fu(e.targetIds,r.targetId)});case yr:return ke({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case br:return ke({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Hl(e=0,t){switch(t.type){case Ln:case Vn:return e+1;case Nn:case Tr:return e-1;default:return e}}function zl(e=0){return e+1}function Ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(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){Ul(e,i,r[i])})}return e}function Wl(e={},t){return{dirtyHandlerIds:Vl(e.dirtyHandlerIds,{type:t.type,payload:$l({},t.payload,{prevTargetIds:_u(e,"dragOperation.targetIds",[])})}),dragOffset:Fl(e.dragOffset,t),refCount:Hl(e.refCount,t),dragOperation:Bl(e.dragOperation,t),stateId:zl(e.stateId)}}function Gl(e,t=void 0,r={},n=!1){const i=ql(n),o=new hl(i,new Rl(i)),a=new ul(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function ql(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Lu(Wl,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Yl(e,t){if(e==null)return{};var r=Xl(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 Xl(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 di=0;const Qt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Kl=m.memo(function(t){var{children:r}=t,n=Yl(t,["children"]);const[i,o]=Zl(n);return m.useEffect(()=>{if(o){const a=Sa();return++di,()=>{--di===0&&(a[Qt]=null)}}},[]),F.jsx(pa.Provider,{value:i,children:r})});function Zl(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Jl(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function Jl(e,t=Sa(),r,n){const i=t;return i[Qt]||(i[Qt]={dragDropManager:Gl(e,t,r,n)}),i[Qt]}function Sa(){return typeof global<"u"?global:window}const Le=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Da(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Ou(n,a)||(i(a),r&&r())},[n,e,r]);return Le(o),[n,o]}function Ql(e,t,r){const[n,i]=Da(e,t,r);return Le(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function wa(e,t,r){return Ql(t,e||(()=>({})),()=>r.reconnect())}function Ea(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function ec(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function tc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let Lr=!1,Vr=!1;class rc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){P(!Lr,"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 Lr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Lr=!1}}isDragging(){if(!this.sourceId)return!1;P(!Vr,"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 Vr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Vr=!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 Nr=!1;class nc{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(!Nr,"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 Nr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nr=!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 ic(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function oc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function rn(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 nn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ac(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 sc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return ac(n),uc(n,r?o=>e(o,r):e)}}function Ca(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=sc(n);t[r]=()=>i}}),t}function fi(e,t){typeof e=="function"?e(t):e.current=t}function uc(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=>{fi(r,n),fi(t,n)}}):m.cloneElement(e,{ref:t})}class lc{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!rn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rn(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=Ca({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,nn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,nn(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 cc{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!rn(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=Ca({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,nn(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 pe(){const{dragDropManager:e}=m.useContext(pa);return P(e!=null,"Expected drag drop context"),e}function dc(e,t){const r=pe(),n=m.useMemo(()=>new lc(r.getBackend()),[r]);return Le(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Le(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function fc(){const e=pe();return m.useMemo(()=>new rc(e),[e])}class hc{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 vc(e,t,r){const n=m.useMemo(()=>new hc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function pc(e){return m.useMemo(()=>{const t=e.type;return P(t!=null,"spec.type must be defined"),t},[e])}function gc(e,t,r){const n=pe(),i=vc(e,t,r),o=pc(e);Le(function(){if(o!=null){const[s,u]=oc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function mc(e,t){const r=Ea(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=fc(),i=dc(r.options,r.previewOptions);return gc(r,n,i),[wa(r.collect,n,i),ec(i),tc(i)]}function yc(e){const r=pe().getMonitor(),[n,i]=Da(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function bc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Tc(e){const t=pe(),r=m.useMemo(()=>new cc(t.getBackend()),[t]);return Le(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Sc(){const e=pe();return m.useMemo(()=>new nc(e),[e])}function Dc(e){const{accept:t}=e;return m.useMemo(()=>(P(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class wc{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 Ec(e,t){const r=m.useMemo(()=>new wc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Cc(e,t,r){const n=pe(),i=Ec(e,t),o=Dc(e);Le(function(){const[s,u]=ic(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Oa(e,t){const r=Ea(e,t),n=Sc(),i=Tc(r.options);return Cc(r,n,i),[wa(r.collect,n,i),bc(i)]}function xa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Oc(e,t){return e.filter(r=>r!==t)}function xc(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 Ic{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=xc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Oc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Pc{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 Ia="__NATIVE_FILE__",Pa="__NATIVE_URL__",Ra="__NATIVE_TEXT__",Ma="__NATIVE_HTML__",hi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ia,HTML:Ma,TEXT:Ra,URL:Pa},Symbol.toStringTag,{value:"Module"}));function _r(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const on={[Ia]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Ma]:{exposeProperties:{html:(e,t)=>_r(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Pa]:{exposeProperties:{urls:(e,t)=>_r(e,t,"").split(`
|
|
1
|
+
import{j as F}from"./jsx-runtime-f961835c.js";import{r as m,R as N,g as Cu}from"./index-f80c8c95.js";import{e as Ou}from"./index-54f0d271.js";import{a as S,b as B,c as ha,d as ee,e as ue,I as xu}from"./icon-bb00eeb9.js";import{c as Iu}from"./index-a80ed1cf.js";import{I as Ar,C as Pu}from"./common-types-3a5f9d98.js";import{s as ye,M as Ru,L as Mu}from"./list-heading-0f59017c.js";import{A as Au}from"./actions-7f26d646.js";import{B as va}from"./button-a7e4e1fa.js";import{c as Lu}from"./redux-10ee6be7.js";import{T as Vu}from"./text-78efb253.js";import"./inheritsLoose-d4851ab8.js";import"./index-c89a1915.js";import"./disabled-context-d654f6ff.js";import"./badge-2efb26e1.js";import"./tooltip-b72c7394.js";import"./index-64d4dcb8.js";import"./heading-5d5cbb6f.js";import"./help-icon-e6604019.js";import"./lodash-75c70a11.js";import"./types-cc224262.js";import"./types-332ceaf3.js";import"./spinner-4948799e.js";import"./objectSpread2-fdee9b6d.js";const pa=m.createContext({dragDropManager:void 0});function P(e,t,...r){if(Nu()&&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 Nu(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function _u(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Fu(e,t){return e.filter(r=>r!==t)}function ga(e){return typeof e=="object"}function ju(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 ku(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Rn="dnd-core/INIT_COORDS",gr="dnd-core/BEGIN_DRAG",Mn="dnd-core/PUBLISH_DRAG_SOURCE",mr="dnd-core/HOVER",yr="dnd-core/DROP",br="dnd-core/END_DRAG";function ai(e,t){return{type:Rn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Bu={type:Rn,payload:{clientOffset:null,sourceClientOffset:null}};function Hu(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ai(o)),zu(r,s,u);const l=Wu(r,s);if(l==null){e.dispatch(Bu);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");Uu(a),c=a(l)}e.dispatch(ai(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;$u(h),u.pinSource(l);const f=u.getSourceType(l);return{type:gr,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function zu(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 Uu(e){P(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function $u(e){P(ga(e),"Item must be an object.")}function Wu(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 Gu(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qu(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){Gu(e,i,r[i])})}return e}function Yu(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();Xu(n),Ju(n).forEach((a,s)=>{const u=Ku(a,s,i,n),l={type:yr,payload:{dropResult:qu({},r,u)}};e.dispatch(l)})}}function Xu(e){P(e.isDragging(),"Cannot call drop while not dragging."),P(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function Ku(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return Zu(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function Zu(e){P(typeof e>"u"||ga(e),"Drop result must either be an object or undefined.")}function Ju(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Qu(e){return function(){const r=e.getMonitor(),n=e.getRegistry();el(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:br}}}function el(e){P(e.isDragging(),"Cannot call endDrag while not dragging.")}function en(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function tl(e){return function(r,{clientOffset:n}={}){rl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return il(i,a,s),nl(i,o,a),ol(i,o,a),{type:mr,payload:{targetIds:i,clientOffset:n||null}}}}function rl(e){P(Array.isArray(e),"Expected targetIds to be an array.")}function nl(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 il(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);en(o,r)||e.splice(n,1)}}function ol(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function al(e){return function(){if(e.getMonitor().isDragging())return{type:Mn}}}function sl(e){return{beginDrag:Hu(e),publishDragSource:al(e),hover:tl(e),drop:Yu(e),endDrag:Qu(e)}}class ul{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=sl(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 ll(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ma(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:ma(ll(t,n),r)}function dl(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:ma(t,r)}const dt=[],An=[];dt.__IS_NONE__=!0;An.__IS_ALL__=!0;function fl(e,t){return e===dt?!1:e===An||typeof t>"u"?!0:ku(t,e).length>0}class hl{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&&!fl(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 en(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&&!en(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 cl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return dl(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const si=typeof global<"u"?global:self,ya=si.MutationObserver||si.WebKitMutationObserver;function ba(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function vl(e){let t=1;const r=new ya(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const pl=typeof ya=="function"?vl:ba;class gl{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=pl(this.flush),this.requestErrorThrow=ba(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ml{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 yl{create(t){const r=this.freeTasks,n=r.length?r.pop():new ml(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ta=new gl,bl=new yl(Ta.registerPendingError);function Tl(e){Ta.enqueueTask(bl.create(e))}const Ln="dnd-core/ADD_SOURCE",Vn="dnd-core/ADD_TARGET",Nn="dnd-core/REMOVE_SOURCE",Tr="dnd-core/REMOVE_TARGET";function Sl(e){return{type:Ln,payload:{sourceId:e}}}function Dl(e){return{type:Vn,payload:{targetId:e}}}function wl(e){return{type:Nn,payload:{sourceId:e}}}function El(e){return{type:Tr,payload:{targetId:e}}}function Cl(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 Ol(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 tn(e,t){if(t&&Array.isArray(e)){e.forEach(r=>tn(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 xl=0;function Il(){return xl++}function Pl(e){const t=Il().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ui(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function li(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 Rl{addSource(t,r){tn(t),Cl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Sl(n)),n}addTarget(t,r){tn(t,!0),Ol(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Dl(n)),n}containsHandler(t){return li(this.dragSources,t)||li(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 ui(t)===J.SOURCE}isTargetId(t){return ui(t)===J.TARGET}removeSource(t){P(this.getSource(t),"Expected an existing source."),this.store.dispatch(wl(t)),Tl(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){P(this.getTarget(t),"Expected an existing target."),this.store.dispatch(El(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=Pl(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 Ml=(e,t)=>e===t;function Al(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Ll(e,t,r=Ml){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 Vl(e=dt,t){switch(t.type){case mr:break;case Ln:case Vn:case Tr:case Nn:return dt;case gr:case Mn:case br:case yr:default:return An}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=ju(r,n);if(!(i.length>0||!Ll(r,n)))return dt;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Nl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _l(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){Nl(e,i,r[i])})}return e}const ci={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Fl(e=ci,t){const{payload:r}=t;switch(t.type){case Rn:case gr:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case mr:return Al(e.clientOffset,r.clientOffset)?e:_l({},e,{clientOffset:r.clientOffset});case br:case yr:return ci;default:return e}}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 ke(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 kl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Bl(e=kl,t){const{payload:r}=t;switch(t.type){case gr:return ke({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Mn:return ke({},e,{isSourcePublic:!0});case mr:return ke({},e,{targetIds:r.targetIds});case Tr:return e.targetIds.indexOf(r.targetId)===-1?e:ke({},e,{targetIds:Fu(e.targetIds,r.targetId)});case yr:return ke({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case br:return ke({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Hl(e=0,t){switch(t.type){case Ln:case Vn:return e+1;case Nn:case Tr:return e-1;default:return e}}function zl(e=0){return e+1}function Ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $l(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){Ul(e,i,r[i])})}return e}function Wl(e={},t){return{dirtyHandlerIds:Vl(e.dirtyHandlerIds,{type:t.type,payload:$l({},t.payload,{prevTargetIds:_u(e,"dragOperation.targetIds",[])})}),dragOffset:Fl(e.dragOffset,t),refCount:Hl(e.refCount,t),dragOperation:Bl(e.dragOperation,t),stateId:zl(e.stateId)}}function Gl(e,t=void 0,r={},n=!1){const i=ql(n),o=new hl(i,new Rl(i)),a=new ul(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function ql(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Lu(Wl,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function Yl(e,t){if(e==null)return{};var r=Xl(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 Xl(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 di=0;const Qt=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var Kl=m.memo(function(t){var{children:r}=t,n=Yl(t,["children"]);const[i,o]=Zl(n);return m.useEffect(()=>{if(o){const a=Sa();return++di,()=>{--di===0&&(a[Qt]=null)}}},[]),F.jsx(pa.Provider,{value:i,children:r})});function Zl(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=Jl(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function Jl(e,t=Sa(),r,n){const i=t;return i[Qt]||(i[Qt]={dragDropManager:Gl(e,t,r,n)}),i[Qt]}function Sa(){return typeof global<"u"?global:window}const Le=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Da(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Ou(n,a)||(i(a),r&&r())},[n,e,r]);return Le(o),[n,o]}function Ql(e,t,r){const[n,i]=Da(e,t,r);return Le(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function wa(e,t,r){return Ql(t,e||(()=>({})),()=>r.reconnect())}function Ea(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function ec(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function tc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let Lr=!1,Vr=!1;class rc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){P(!Lr,"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 Lr=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Lr=!1}}isDragging(){if(!this.sourceId)return!1;P(!Vr,"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 Vr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Vr=!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 Nr=!1;class nc{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(!Nr,"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 Nr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Nr=!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 ic(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function oc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function rn(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 nn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function ac(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 sc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return ac(n),uc(n,r?o=>e(o,r):e)}}function Ca(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=sc(n);t[r]=()=>i}}),t}function fi(e,t){typeof e=="function"?e(t):e.current=t}function uc(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=>{fi(r,n),fi(t,n)}}):m.cloneElement(e,{ref:t})}class lc{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!rn(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!rn(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=Ca({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,nn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,nn(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 cc{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!rn(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=Ca({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,nn(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 pe(){const{dragDropManager:e}=m.useContext(pa);return P(e!=null,"Expected drag drop context"),e}function dc(e,t){const r=pe(),n=m.useMemo(()=>new lc(r.getBackend()),[r]);return Le(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Le(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function fc(){const e=pe();return m.useMemo(()=>new rc(e),[e])}class hc{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 vc(e,t,r){const n=m.useMemo(()=>new hc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function pc(e){return m.useMemo(()=>{const t=e.type;return P(t!=null,"spec.type must be defined"),t},[e])}function gc(e,t,r){const n=pe(),i=vc(e,t,r),o=pc(e);Le(function(){if(o!=null){const[s,u]=oc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function mc(e,t){const r=Ea(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=fc(),i=dc(r.options,r.previewOptions);return gc(r,n,i),[wa(r.collect,n,i),ec(i),tc(i)]}function yc(e){const r=pe().getMonitor(),[n,i]=Da(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function bc(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Tc(e){const t=pe(),r=m.useMemo(()=>new cc(t.getBackend()),[t]);return Le(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Sc(){const e=pe();return m.useMemo(()=>new nc(e),[e])}function Dc(e){const{accept:t}=e;return m.useMemo(()=>(P(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class wc{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 Ec(e,t){const r=m.useMemo(()=>new wc(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function Cc(e,t,r){const n=pe(),i=Ec(e,t),o=Dc(e);Le(function(){const[s,u]=ic(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function Oa(e,t){const r=Ea(e,t),n=Sc(),i=Tc(r.options);return Cc(r,n,i),[wa(r.collect,n,i),bc(i)]}function xa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Oc(e,t){return e.filter(r=>r!==t)}function xc(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 Ic{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=xc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Oc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Pc{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 Ia="__NATIVE_FILE__",Pa="__NATIVE_URL__",Ra="__NATIVE_TEXT__",Ma="__NATIVE_HTML__",hi=Object.freeze(Object.defineProperty({__proto__:null,FILE:Ia,HTML:Ma,TEXT:Ra,URL:Pa},Symbol.toStringTag,{value:"Module"}));function _r(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const on={[Ia]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Ma]:{exposeProperties:{html:(e,t)=>_r(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Pa]:{exposeProperties:{urls:(e,t)=>_r(e,t,"").split(`
|
|
2
2
|
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ra]:{exposeProperties:{text:(e,t)=>_r(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Rc(e,t){const r=on[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Pc(r);return n.loadDataTransfer(t),n}function Fr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(on).filter(r=>{const n=on[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Mc=xa(()=>/firefox/i.test(navigator.userAgent)),Aa=xa(()=>!!window.safari);class vi{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 Ac=1;function La(e){const t=e.nodeType===Ac?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Nt(e){return{x:e.clientX,y:e.clientY}}function Lc(e){var t;return e.nodeName==="IMG"&&(Mc()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Vc(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return Aa()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Nc(e,t,r,n,i){const o=Lc(t),s=La(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}=Vc(o,t,l,c),p=()=>{let x=new vi([0,.5,1],[u.y,u.y/c*v,u.y+v-c]).interpolate(h);return Aa()&&o&&(x+=(window.devicePixelRatio-1)*v),x},g=()=>new vi([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 _c=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 Fc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pi(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){Fc(e,i,r[i])})}return e}class jc{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 pi({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 pi({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(hi).some(r=>hi[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Rc(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&&La(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=Nt(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=Fr(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=Nc(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=Fr(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:Nt(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=Nt(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 Fr(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Nt(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 _c(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Ic(this.isNodeInDocument)}}let _t;function kc(){return _t||(_t=new Image,_t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_t}const Bc=function(t,r,n){return new jc(t,r,n)};var Me=[],Hc=function(){return Me.some(function(e){return e.activeTargets.length>0})},zc=function(){return Me.some(function(e){return e.skippedTargets.length>0})},gi="ResizeObserver loop completed with undelivered notifications.",Uc=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gi}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gi),window.dispatchEvent(e)},St;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(St||(St={}));var Ae=function(e){return Object.freeze(e)},$c=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Ae(this)}return e}(),Va=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,Ae(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}(),_n=function(e){return e instanceof SVGElement&&"getBBox"in e},Na=function(e){if(_n(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)},mi=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)},Wc=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},ft=typeof window<"u"?window:{},Ft=new WeakMap,yi=/auto|scroll/,Gc=/^tb|vertical/,qc=/msie|trident/i.test(ft.navigator&&ft.navigator.userAgent),oe=function(e){return parseFloat(e||"0")},Ge=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new $c((r?t:e)||0,(r?e:t)||0)},bi=Ae({devicePixelContentBoxSize:Ge(),borderBoxSize:Ge(),contentBoxSize:Ge(),contentRect:new Va(0,0,0,0)}),_a=function(e,t){if(t===void 0&&(t=!1),Ft.has(e)&&!t)return Ft.get(e);if(Na(e))return Ft.set(e,bi),bi;var r=getComputedStyle(e),n=_n(e)&&e.ownerSVGElement&&e.getBBox(),i=!qc&&r.boxSizing==="border-box",o=Gc.test(r.writingMode||""),a=!n&&yi.test(r.overflowY||""),s=!n&&yi.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,k=I+y+D+T,H=Ae({devicePixelContentBoxSize:Ge(Math.round(A*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:Ge(V,k,o),contentBoxSize:Ge(A,I,o),contentRect:new Va(d,u,A,I)});return Ft.set(e,H),H},Fa=function(e,t,r){var n=_a(e,r),i=n.borderBoxSize,o=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case St.DEVICE_PIXEL_CONTENT_BOX:return a;case St.BORDER_BOX:return i;default:return o}},Yc=function(){function e(t){var r=_a(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Ae([r.borderBoxSize]),this.contentBoxSize=Ae([r.contentBoxSize]),this.devicePixelContentBoxSize=Ae([r.devicePixelContentBoxSize])}return e}(),ja=function(e){if(Na(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},Xc=function(){var e=1/0,t=[];Me.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(l){var c=new Yc(l.target),d=ja(l.target);s.push(c),l.lastReportedSize=Fa(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},Ti=function(e){Me.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(i){i.isActive()&&(ja(i.target)>e?r.activeTargets.push(i):r.skippedTargets.push(i))})})},Kc=function(){var e=0;for(Ti(e);Hc();)e=Xc(),Ti(e);return zc()&&Uc(),e>0},jr,ka=[],Zc=function(){return ka.splice(0).forEach(function(e){return e()})},Jc=function(e){if(!jr){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Zc()}).observe(r,n),jr=function(){r.textContent="".concat(t?t--:t++)}}ka.push(e),jr()},Qc=function(e){Jc(function(){requestAnimationFrame(e)})},er=0,ed=function(){return!!er},td=250,rd={attributes:!0,characterData:!0,childList:!0,subtree:!0},Si=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Di=function(e){return e===void 0&&(e=0),Date.now()+e},kr=!1,nd=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=td),!kr){kr=!0;var n=Di(t);Qc(function(){var i=!1;try{i=Kc()}finally{if(kr=!1,t=n-Di(),!ed())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,rd)};document.body?r():ft.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Si.forEach(function(r){return ft.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Si.forEach(function(r){return ft.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),an=new nd,wi=function(e){!er&&e>0&&an.start(),er+=e,!er&&an.stop()},id=function(e){return!_n(e)&&!Wc(e)&&getComputedStyle(e).display==="inline"},od=function(){function e(t,r){this.target=t,this.observedBox=r||St.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Fa(this.target,this.observedBox,!0);return id(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),ad=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),jt=new WeakMap,Ei=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},kt=function(){function e(){}return e.connect=function(t,r){var n=new ad(t,r);jt.set(t,n)},e.observe=function(t,r,n){var i=jt.get(t),o=i.observationTargets.length===0;Ei(i.observationTargets,r)<0&&(o&&Me.push(i),i.observationTargets.push(new od(r,n&&n.box)),wi(1),an.schedule())},e.unobserve=function(t,r){var n=jt.get(t),i=Ei(n.observationTargets,r),o=n.observationTargets.length===1;i>=0&&(o&&Me.splice(Me.indexOf(n),1),n.observationTargets.splice(i,1),wi(-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}(),sd=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.");kt.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(!mi(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");kt.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(!mi(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");kt.unobserve(this,t)},e.prototype.disconnect=function(){kt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),ud="production",Ba=typeof process>"u"||process.env===void 0?ud:"production",de=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},Dt={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 ld(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Dt.projectionNodeConstructor=e[t]:Dt[t].Component=e[t])}var cd=function(){},or=function(){},Ha=m.createContext({strict:!1}),za=Object.keys(Dt),dd=za.length;function fd(e,t,r){var n=[],i=m.useContext(Ha);if(!t)return null;Ba!=="production"&&r&&i.strict;for(var o=0;o<dd;o++){var a=za[o],s=Dt[a],u=s.isEnabled,l=s.Component;u(e)&&l&&n.push(m.createElement(l,S({key:a},e,{visualElement:t})))}return n}var Fn=m.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Sr=m.createContext({});function hd(){return m.useContext(Sr).visualElement}var Dr=m.createContext(null),Qe=typeof document<"u",Ci=Qe?m.useLayoutEffect:m.useEffect,sn={current:null},Ua=!1;function vd(){if(Ua=!0,!!Qe)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return sn.current=e.matches};e.addListener(t),t()}else sn.current=!1}function pd(){!Ua&&vd();var e=B(m.useState(sn.current),1),t=e[0];return t}function gd(){var e=pd(),t=m.useContext(Fn).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function md(e,t,r,n){var i=m.useContext(Ha),o=hd(),a=m.useContext(Dr),s=gd(),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 Ci(function(){l==null||l.syncRender()}),m.useEffect(function(){var c;(c=l==null?void 0:l.animationState)===null||c===void 0||c.animateChanges()}),Ci(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 yd(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 $a(e){return Array.isArray(e)}function ie(e){return typeof e=="string"||$a(e)}function bd(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function Td(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function Wa(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 wr(e,t,r){var n=e.getProps();return Wa(n,t,r??n.custom,bd(e),Td(e))}function Er(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 Ga(e){return!!(Er(e)||e.variants)}function Sd(e,t){if(Er(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 Dd(e){var t=Sd(e,m.useContext(Sr)),r=t.initial,n=t.animate;return m.useMemo(function(){return{initial:r,animate:n}},[Oi(r),Oi(n)])}function Oi(e){return Array.isArray(e)?e.join(" "):e}function Cr(e){var t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}var ht={hasAnimatedSinceResize:!0,hasEverUpdated:!1},wd=1;function Ed(){return Cr(function(){if(ht.hasEverUpdated)return wd++})}var qa=m.createContext({}),Ya=m.createContext({});function Cd(e,t,r,n){var i,o=t.layoutId,a=t.layout,s=t.drag,u=t.dragConstraints,l=t.layoutScroll,c=m.useContext(Ya);!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 Od=function(e){ha(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 xd(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&ld(t);function s(u,l){var c=Id(u);u=S(S({},u),{layoutId:c});var d=m.useContext(Fn),h=null,f=Dd(u),v=d.isStatic?void 0:Ed(),p=o(u,d.isStatic);return!d.isStatic&&Qe&&(f.visualElement=md(a,p,S(S({},d),u),r),Cd(v,u,f.visualElement,n||Dt.projectionNodeConstructor),h=fd(u,f.visualElement,t)),m.createElement(Od,{visualElement:f.visualElement,props:S(S({},d),u)},h,m.createElement(Sr.Provider,{value:f},i(a,u,v,yd(p,f.visualElement,l),p,d.isStatic,f.visualElement)))}return m.forwardRef(s)}function Id(e){var t,r=e.layoutId,n=(t=m.useContext(qa))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}function Pd(e){function t(n,i){return i===void 0&&(i={}),xd(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 Rd=["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:!!(Rd.indexOf(e)>-1||/[A-Z]/.test(e))}var ar={};function Md(e){Object.assign(ar,e)}var un=["","X","Y","Z"],Ad=["translate","scale","rotate","skew"],wt=["transformPerspective","x","y","z"];Ad.forEach(function(e){return un.forEach(function(t){return wt.push(e+t)})});function Ld(e,t){return wt.indexOf(e)-wt.indexOf(t)}var Vd=new Set(wt);function It(e){return Vd.has(e)}var Nd=new Set(["originX","originY","originZ"]);function Xa(e){return Nd.has(e)}function Ka(e,t){var r=t.layout,n=t.layoutId;return It(e)||Xa(e)||(r||n!==void 0)&&(!!ar[e]||e==="opacity")}var fe=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},_d={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Fd(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(Ld);for(var d=!1,h=o.length,f=0;f<h;f++){var v=o[f];c+="".concat(_d[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 jd(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 Za(e){return e.startsWith("--")}var kd=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const Ja=(e,t)=>r=>Math.max(Math.min(r,t),e),vt=e=>e%1?Number(e.toFixed(5)):e,Et=/(-)?([\d]*\.?[\d])+/g,ln=/(#[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,Bd=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Pt(e){return typeof e=="string"}const Ne={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pt=Object.assign(Object.assign({},Ne),{transform:Ja(0,1)}),Bt=Object.assign(Object.assign({},Ne),{default:1}),Rt=e=>({test:t=>Pt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),be=Rt("deg"),le=Rt("%"),O=Rt("px"),Hd=Rt("vh"),zd=Rt("vw"),xi=Object.assign(Object.assign({},le),{parse:e=>le.parse(e)/100,transform:e=>le.transform(e*100)}),kn=(e,t)=>r=>!!(Pt(r)&&Bd.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Qa=(e,t,r)=>n=>{if(!Pt(n))return n;const[i,o,a,s]=n.match(Et);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Re={test:kn("hsl","hue"),parse:Qa("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+le.transform(vt(t))+", "+le.transform(vt(r))+", "+vt(pt.transform(n))+")"},Ud=Ja(0,255),Br=Object.assign(Object.assign({},Ne),{transform:e=>Math.round(Ud(e))}),De={test:kn("rgb","red"),parse:Qa("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Br.transform(e)+", "+Br.transform(t)+", "+Br.transform(r)+", "+vt(pt.transform(n))+")"};function $d(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 cn={test:kn("#"),parse:$d,transform:De.transform},$={test:e=>De.test(e)||cn.test(e)||Re.test(e),parse:e=>De.test(e)?De.parse(e):Re.test(e)?Re.parse(e):cn.parse(e),transform:e=>Pt(e)?e:e.hasOwnProperty("red")?De.transform(e):Re.transform(e)},es="${c}",ts="${n}";function Wd(e){var t,r,n,i;return isNaN(e)&&Pt(e)&&((r=(t=e.match(Et))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(ln))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function rs(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(ln);n&&(r=n.length,e=e.replace(ln,es),t.push(...n.map($.parse)));const i=e.match(Et);return i&&(e=e.replace(Et,ts),t.push(...i.map(Ne.parse))),{values:t,numColors:r,tokenised:e}}function ns(e){return rs(e).values}function is(e){const{values:t,numColors:r,tokenised:n}=rs(e),i=t.length;return o=>{let a=n;for(let s=0;s<i;s++)a=a.replace(s<r?es:ts,s<r?$.transform(o[s]):vt(o[s]));return a}}const Gd=e=>typeof e=="number"?0:e;function qd(e){const t=ns(e);return is(e)(t.map(Gd))}const he={test:Wd,parse:ns,createTransformer:is,getAnimatableNone:qd},Yd=new Set(["brightness","contrast","saturate","opacity"]);function Xd(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Et)||[];if(!n)return e;const i=r.replace(n,"");let o=Yd.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const Kd=/([a-z-]*)\(.*?\)/g,dn=Object.assign(Object.assign({},he),{getAnimatableNone:e=>{const t=e.match(Kd);return t?t.map(Xd).join(" "):e}});var Ii=S(S({},Ne),{transform:Math.round}),os={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:Bt,scaleX:Bt,scaleY:Bt,scaleZ:Bt,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:pt,originX:xi,originY:xi,originZ:O,zIndex:Ii,fillOpacity:pt,strokeOpacity:pt,numOctaves:Ii};function Bn(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(Za(f)){a[f]=v;continue}var p=os[f],g=kd(v,p);if(It(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 Xa(f)?(l[f]=g,d=!0):o[f]=g}c?o.transform=Fd(e,r,h,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=jd(l))}var Hn=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function as(e,t,r){for(var n in t)!fe(t[n])&&!Ka(n,r)&&(e[n]=t[n])}function Zd(e,t,r){var n=e.transformTemplate;return m.useMemo(function(){var i=Hn();Bn(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,a=i.style;return S(S({},o),a)},[t])}function Jd(e,t,r){var n=e.style||{},i={};return as(i,n,e),Object.assign(i,Zd(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function Qd(e,t,r){var n={},i=Jd(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 ef=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 sr(e){return ef.has(e)}var ss=function(e){return!sr(e)};function tf(e){e&&(ss=function(t){return t.startsWith("on")?!sr(t):e(t)})}try{tf(require("@emotion/is-prop-valid").default)}catch{}function rf(e,t,r){var n={};for(var i in e)(ss(i)||r===!0&&sr(i)||!t&&!sr(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Pi(e,t,r){return typeof e=="string"?e:O.transform(t+r*e)}function nf(e,t,r){var n=Pi(t,e.x,e.width),i=Pi(r,e.y,e.height);return"".concat(n," ").concat(i)}var of={offset:"stroke-dashoffset",array:"stroke-dasharray"},af={offset:"strokeDashoffset",array:"strokeDasharray"};function sf(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?of:af;e[o.offset]=O.transform(-n);var a=O.transform(t),s=O.transform(r);e[o.array]="".concat(a," ").concat(s)}function zn(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"]);Bn(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=nf(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&&sf(v,u,c,h,!1)}var us=function(){return S(S({},Hn()),{attrs:{}})};function uf(e,t){var r=m.useMemo(function(){var i=us();return zn(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),S(S({},i.attrs),{style:S({},i.style)})},[t]);if(e.style){var n={};as(n,e.style,e),r.style=S(S({},n),r.style)}return r}function lf(e){e===void 0&&(e=!1);var t=function(r,n,i,o,a,s){var u=a.latestValues,l=jn(r)?uf:Qd,c=l(n,u,s),d=rf(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 cf=/([a-z])([A-Z])/g,df="$1-$2",ls=function(e){return e.replace(cf,df).toLowerCase()};function cs(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 ds=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function fs(e,t,r,n){cs(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(ds.has(i)?i:ls(i),t.attrs[i])}function Un(e){var t=e.style,r={};for(var n in t)(fe(t[n])||Ka(n,e))&&(r[n]=t[n]);return r}function hs(e){var t=Un(e);for(var r in e)if(fe(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function $n(e){return typeof e=="object"&&typeof e.start=="function"}var Ct=function(e){return Array.isArray(e)},ff=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},vs=function(e){return Ct(e)?e[e.length-1]||0:e};function tr(e){var t=fe(e)?e.get():e;return ff(t)?t.toValue():t}function Ri(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:hf(t,r,n,i),renderState:o()};return a&&(s.mount=function(u){return a(t,u,s)}),s}var ps=function(e){return function(t,r){var n=m.useContext(Sr),i=m.useContext(Dr);return r?Ri(e,t,n,i):Cr(function(){return Ri(e,t,n,i)})}};function hf(e,t,r,n){var i={},o=(r==null?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=tr(a[s]);var u=e.initial,l=e.animate,c=Er(e),d=Ga(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"&&!$n(f)){var v=Array.isArray(f)?f:[f];v.forEach(function(p){var g=Wa(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 vf={useVisualState:ps({scrapeMotionValuesFromProps:hs,createRenderState:us,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}}zn(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),fs(t,n)}})},pf={useVisualState:ps({scrapeMotionValuesFromProps:Un,createRenderState:Hn})};function gf(e,t,r,n,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=jn(e)?vf:pf;return S(S({},s),{preloadedFeatures:r,useRender:lf(a),createVisualElement:n,projectionNodeConstructor:i,Component:e})}var _;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(_||(_={}));function Or(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function fn(e,t,r,n){m.useEffect(function(){var i=e.current;if(r&&i)return Or(i,t,r,n)},[e,t,r,n])}function mf(e){var t=e.whileFocus,r=e.visualElement,n=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(_.Focus,!0)},i=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(_.Focus,!1)};fn(r,"focus",t?n:void 0),fn(r,"blur",t?i:void 0)}function gs(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function ms(e){var t=!!e.touches;return t}function yf(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var bf={pageX:0,pageY:0};function Tf(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||bf;return{x:n[t+"X"],y:n[t+"Y"]}}function Sf(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:ms(e)?Tf(e,t):Sf(e,t)}}var ys=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,Wn(n))};return t?yf(r):r},Df=function(){return Qe&&window.onpointerdown===null},wf=function(){return Qe&&window.ontouchstart===null},Ef=function(){return Qe&&window.onmousedown===null},Cf={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Of={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function bs(e){return Df()?e:wf()?Of[e]:Ef()?Cf[e]:e}function qe(e,t,r,n){return Or(e,bs(t),ys(r,t==="pointerdown"),n)}function ur(e,t,r,n){return fn(e,bs(t),r&&ys(r,t==="pointerdown"),n)}function Ts(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var Mi=Ts("dragHorizontal"),Ai=Ts("dragVertical");function Ss(e){var t=!1;if(e==="y")t=Ai();else if(e==="x")t=Mi();else{var r=Mi(),n=Ai();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function Ds(){var e=Ss(!0);return e?(e(),!1):!0}function Li(e,t,r){return function(n,i){var o;!gs(n)||Ds()||((o=e.animationState)===null||o===void 0||o.setActive(_.Hover,t),r==null||r(n,i))}}function xf(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;ur(i,"pointerenter",t||n?Li(i,!0,t):void 0,{passive:!t}),ur(i,"pointerleave",r||n?Li(i,!1,r):void 0,{passive:!r})}var ws=function(e,t){return t?e===t?!0:ws(e,t.parentElement):!1};function Es(e){return m.useEffect(function(){return function(){return e()}},[])}const lr=(e,t,r)=>Math.min(Math.max(r,e),t),Hr=.001,If=.01,Vi=10,Pf=.05,Rf=1;function Mf({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;cd(e<=Vi*1e3);let a=1-t;a=lr(Pf,Rf,a),e=lr(If,Vi,e/1e3),a<1?(i=l=>{const c=l*a,d=c*e,h=c-r,f=hn(l,a),v=Math.exp(-d);return Hr-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=hn(Math.pow(l,2),a);return(-i(l)+Hr>0?-1:1)*((h-f)*v)/p}):(i=l=>{const c=Math.exp(-l*e),d=(l-r)*e+1;return-Hr+c*d},o=l=>{const c=Math.exp(-l*e),d=(r-l)*(e*e);return c*d});const s=5/e,u=Lf(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 Af=12;function Lf(e,t,r){let n=r;for(let i=1;i<Af;i++)n=n-e(n)/t(n);return n}function hn(e,t){return e*Math.sqrt(1-t*t)}const Vf=["duration","bounce"],Nf=["stiffness","damping","mass"];function Ni(e,t){return t.some(r=>e[r]!==void 0)}function _f(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!Ni(e,Nf)&&Ni(e,Vf)){const r=Mf(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}=_f(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=hn(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,Ot=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},j=(e,t,r)=>-r*e+r*t+e;function zr(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=zr(u,s,e+1/3),o=zr(u,s,e),a=zr(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Ff=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},jf=[cn,De,Re],ji=e=>jf.find(t=>t.test(e)),Cs=(e,t)=>{let r=ji(e),n=ji(t),i=r.parse(e),o=n.parse(t);r===Re&&(i=Fi(i),r=De),n===Re&&(o=Fi(o),n=De);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=Ff(i[u],o[u],s));return a.alpha=j(i.alpha,o.alpha,s),r.transform(a)}},vn=e=>typeof e=="number",kf=(e,t)=>r=>t(e(r)),xr=(...e)=>e.reduce(kf);function Os(e,t){return vn(e)?r=>j(e,t,r):$.test(e)?Cs(e,t):Is(e,t)}const xs=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>Os(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Bf=(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]=Os(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function ki(e){const t=he.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 Is=(e,t)=>{const r=he.createTransformer(t),n=ki(e),i=ki(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?xr(xs(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},Hf=(e,t)=>r=>j(e,t,r);function zf(e){if(typeof e=="number")return Hf;if(typeof e=="string")return $.test(e)?Cs:Is;if(Array.isArray(e))return xs;if(typeof e=="object")return Bf}function Uf(e,t,r){const n=[],i=r||zf(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=xr(u,s)}n.push(s)}return n}function $f([e,t],[r]){return n=>r(Ot(e,t,n))}function Wf(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=Ot(e[o],e[o+1],i);return t[o](s)}}function Ps(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;or(o===t.length),or(!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=Uf(t,n,i),s=o===2?$f(e,a):Wf(e,a);return r?u=>s(lr(e[0],e[o-1],u)):s}const Ir=e=>t=>1-e(1-t),qn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gf=e=>t=>Math.pow(t,e),Rs=e=>t=>t*t*((e+1)*t-e),qf=e=>{const t=Rs(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},Ms=1.525,Yf=4/11,Xf=8/11,Kf=9/10,Yn=e=>e,Xn=Gf(2),Zf=Ir(Xn),As=qn(Xn),Ls=e=>1-Math.sin(Math.acos(e)),Kn=Ir(Ls),Jf=qn(Kn),Zn=Rs(Ms),Qf=Ir(Zn),eh=qn(Zn),th=qf(Ms),rh=4356/361,nh=35442/1805,ih=16061/1805,cr=e=>{if(e===1||e===0)return e;const t=e*e;return e<Yf?7.5625*t:e<Xf?9.075*t-9.9*e+3.4:e<Kf?rh*t-nh*e+ih:10.8*e*e-20.52*e+10.72},oh=Ir(cr),ah=e=>e<.5?.5*(1-cr(1-e*2)):.5*cr(e*2-1)+.5;function sh(e,t){return e.map(()=>t||As).splice(0,e.length-1)}function uh(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function lh(e,t){return e.map(r=>r*t)}function rr({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=lh(n&&n.length===a.length?n:uh(a),i);function u(){return Ps(s,a,{ease:Array.isArray(r)?r:sh(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function ch({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:rr,spring:Gn,decay:ch};function dh(e){if(Array.isArray(e.to))return rr;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")?rr:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Gn:rr}const Vs=1/60*1e3,fh=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ns=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(fh()),Vs);function hh(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 vh=40;let pn=!0,xt=!1,gn=!1;const Ye={delta:0,timestamp:0},Mt=["read","update","preRender","render","postRender"],Pr=Mt.reduce((e,t)=>(e[t]=hh(()=>xt=!0),e),{}),ce=Mt.reduce((e,t)=>{const r=Pr[t];return e[t]=(n,i=!1,o=!1)=>(xt||gh(),r.schedule(n,i,o)),e},{}),Ke=Mt.reduce((e,t)=>(e[t]=Pr[t].cancel,e),{}),Ur=Mt.reduce((e,t)=>(e[t]=()=>Pr[t].process(Ye),e),{}),ph=e=>Pr[e].process(Ye),_s=e=>{xt=!1,Ye.delta=pn?Vs:Math.max(Math.min(e-Ye.timestamp,vh),1),Ye.timestamp=e,gn=!0,Mt.forEach(ph),gn=!1,xt&&(pn=!1,Ns(_s))},gh=()=>{xt=!0,pn=!0,gn||Ns(_s)},dr=()=>Ye;function Fs(e,t,r=0){return e-t-r}function mh(e,t,r=0,n=!0){return n?Fs(t+-e,t,r):t-(e-t)+r}function yh(e,t,r,n){return n?e>=t+r:e<=-r}const bh=e=>{const t=({delta:r})=>e(r);return{start:()=>ce.update(t,!0),stop:()=>Ke.update(t)}};function js(e){var t,r,{from:n,autoplay:i=!0,driver:o=bh,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=dh(p);!((r=(t=A).needsInterpolation)===null||r===void 0)&&r.call(t,n,g)&&(M=Ps([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=mh(a,T,l,x)):(a=Fs(a,T,l),u==="mirror"&&I.flipTarget()),w=!1,f&&f()}function k(){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?yh(a,T,l,x)&&V():k())}function q(){c==null||c(),y=o(H),y.start()}return i&&q(),{stop:()=>{d==null||d(),y.stop()}}}function ks(e,t){return t?e*(1e3/t):0}function Th({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=js(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=ks(I-x,dr().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 mn=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),Hi=e=>mn(e)&&e.hasOwnProperty("z"),Ht=(e,t)=>Math.abs(e-t);function Bs(e,t){if(vn(e)&&vn(t))return Ht(e,t);if(mn(e)&&mn(t)){const r=Ht(e.x,t.x),n=Ht(e.y,t.y),i=Hi(e)&&Hi(t)?Ht(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}const Hs=(e,t)=>1-3*t+3*e,zs=(e,t)=>3*t-6*e,Us=e=>3*e,fr=(e,t,r)=>((Hs(t,r)*e+zs(t,r))*e+Us(t))*e,$s=(e,t,r)=>3*Hs(t,r)*e*e+2*zs(t,r)*e+Us(t),Sh=1e-7,Dh=10;function wh(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=fr(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Sh&&++s<Dh);return a}const Eh=8,Ch=.001;function Oh(e,t,r,n){for(let i=0;i<Eh;++i){const o=$s(t,r,n);if(o===0)return t;const a=fr(t,r,n)-e;t-=a/o}return t}const nr=11,zt=1/(nr-1);function xh(e,t,r,n){if(e===t&&r===n)return Yn;const i=new Float32Array(nr);for(let a=0;a<nr;++a)i[a]=fr(a*zt,e,r);function o(a){let s=0,u=1;const l=nr-1;for(;u!==l&&i[u]<=a;++u)s+=zt;--u;const c=(a-i[u])/(i[u+1]-i[u]),d=s+c*zt,h=$s(d,e,r);return h>=Ch?Oh(a,d,e,r):h===0?d:wh(a,s,s+zt,e,r)}return a=>a===0||a===1?a:fr(o(a),t,n)}function Ih(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(_.Tap,!1),!Ds()}function h(p,g){d()&&(ws(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=xr(qe(window,"pointerup",h,l),qe(window,"pointercancel",f,l)),(y=o.animationState)===null||y===void 0||y.setActive(_.Tap,!0),r==null||r(p,g))}ur(o,"pointerdown",a?v:void 0,l),Es(c)}var zi=new Set;function Ph(e,t,r){e||zi.has(t)||(console.warn(t),r&&console.warn(r),zi.add(t))}var yn=new WeakMap,$r=new WeakMap,Rh=function(e){var t;(t=yn.get(e.target))===null||t===void 0||t(e)},Mh=function(e){e.forEach(Rh)};function Ah(e){var t=e.root,r=ee(e,["root"]),n=t||document;$r.has(n)||$r.set(n,{});var i=$r.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(Mh,S({root:t},r))),i[o]}function Lh(e,t,r){var n=Ah(t);return yn.set(e,r),n.observe(e),function(){yn.delete(e),n.unobserve(e)}}function Vh(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"?Fh:_h;l(u,s.current,t,a)}var Nh={some:0,all:1};function _h(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:Nh[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(_.InView,f);var v=r.getProps(),p=f?v.onViewportEnter:v.onViewportLeave;p==null||p(d)}};return Lh(r.getInstance(),l,c)}},[e,i,o,s])}function Fh(e,t,r,n){var i=n.fallback,o=i===void 0?!0:i;m.useEffect(function(){!e||!o||(Ba!=="production"&&Ph(!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(_.InView,!0)}))},[e])}var we=function(e){return function(t){return e(t),null}},jh={inView:we(Vh),tap:we(Ih),focus:we(mf),hover:we(xf)},kh=0,Bh=function(){return kh++},Hh=function(){return Cr(Bh)};function Ws(){var e=m.useContext(Dr);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=Hh();m.useEffect(function(){return n(i)},[]);var o=function(){return r==null?void 0:r(i)};return!t&&r?[!1,o]:[!0]}function Gs(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 hr=function(e){return e*1e3},zh={linear:Yn,easeIn:Xn,easeInOut:As,easeOut:Zf,circIn:Ls,circInOut:Jf,circOut:Kn,backIn:Zn,backInOut:eh,backOut:Qf,anticipate:th,bounceIn:oh,bounceInOut:ah,bounceOut:cr},Ui=function(e){if(Array.isArray(e)){or(e.length===4);var t=B(e,4),r=t[0],n=t[1],i=t[2],o=t[3];return xh(r,n,i,o)}else if(typeof e=="string")return zh[e];return e},Uh=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"&&he.test(t)&&!t.startsWith("url("))},xe=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Ut=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}},$h=function(e){return{type:"keyframes",duration:.8,values:e}},Wi={x:xe,y:xe,z:xe,rotate:xe,rotateX:xe,rotateY:xe,rotateZ:xe,scaleX:Ut,scaleY:Ut,scale:Ut,opacity:Wr,backgroundColor:Wr,color:Wr,default:Ut},Wh=function(e,t){var r;return Ct(t)?r=$h:r=Wi[e]||Wi.default,S({to:t},r(t))},Gh=S(S({},os),{color:$,backgroundColor:$,outlineColor:$,fill:$,stroke:$,borderColor:$,borderTopColor:$,borderRightColor:$,borderBottomColor:$,borderLeftColor:$,filter:dn,WebkitFilter:dn}),Jn=function(e){return Gh[e]};function Qn(e,t){var r,n=Jn(e);return n!==dn&&(n=he),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}function qh(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 Yh(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=hr(a.duration)),a.repeatDelay&&(s.repeatDelay=hr(a.repeatDelay)),t&&(s.ease=Uh(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 Xh(e,t){var r,n,i=ei(e,t)||{};return(n=(r=i.delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function Kh(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=ue([],B(e.to),!1),e.to[0]=e.from),e}function Zh(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),Kh(t),qh(e)||(e=S(S({},e),Wh(r,t.to))),S(S({},t),Yh(e))}function Jh(e,t,r,n,i){var o,a=ei(n,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),u=$i(e,r);s==="none"&&u&&typeof r=="string"?s=Qn(e,r):Gi(s)&&typeof r=="string"?s=qi(r):!Array.isArray(r)&&Gi(r)&&typeof s=="string"&&(r=qi(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"?Th(S(S({},h),a)):js(S(S({},Zh(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=vs(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 Gi(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function qi(e){return typeof e=="number"?0:Qn("",e)}function ei(e,t){return e[t]||e.default||e}function ti(e,t,r,n){return n===void 0&&(n={}),t.start(function(i){var o,a,s=Jh(e,t,r,n,i),u=Xh(n,e),l=function(){return a=s()};return u?o=window.setTimeout(l,hr(u)):l(),function(){clearTimeout(o),a==null||a.stop()}})}var Qh=function(e){return/^\-?\d*\.?\d+$/.test(e)},ev=function(e){return/^0[^.\s]+$/.test(e)};function ri(e,t){e.indexOf(t)===-1&&e.push(t)}function ni(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var gt=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return ri(this.subscriptions,t),function(){return ni(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}(),tv=function(e){return!isNaN(parseFloat(e))},rv=function(){function e(t){var r=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new gt,this.velocityUpdateSubscribers=new gt,this.renderSubscribers=new gt,this.canTrackVelocity=!1,this.updateAndNotify=function(n,i){i===void 0&&(i=!0),r.prev=r.current,r.current=n;var o=dr(),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=tv(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?ks(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 rv(e)}var qs=function(e){return function(t){return t.test(e)}},nv={test:function(e){return e==="auto"},parse:function(e){return e}},Ys=[Ne,O,le,be,zd,Hd,nv],rt=function(e){return Ys.find(qs(e))},iv=ue(ue([],B(Ys),!1),[$,he],!1),ov=function(e){return iv.find(qs(e))};function av(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ze(r))}function sv(e,t){var r=wr(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=vs(a[s]);av(e,s,u)}}function uv(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"&&(Qh(h)||ev(h))?h=parseFloat(h):!ov(h)&&he.test(d)&&(h=Qn(c,d)),e.addValue(c,Ze(h)),(o=(a=r)[c])!==null&&o!==void 0||(a[c]=h),e.setBaseTarget(c,h))}}function lv(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function cv(e,t,r){var n,i,o={};for(var a in e)o[a]=(n=lv(a,t))!==null&&n!==void 0?n:(i=r.getValue(a))===null||i===void 0?void 0:i.get();return o}function dv(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart(t);var n;if(Array.isArray(t)){var i=t.map(function(a){return bn(e,a,r)});n=Promise.all(i)}else if(typeof t=="string")n=bn(e,t,r);else{var o=typeof t=="function"?wr(e,t,r.custom):t;n=Xs(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}function bn(e,t,r){var n;r===void 0&&(r={});var i=wr(e,t,r.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return Xs(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 fv(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 Xs(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&&vv(p,g))){var T=S({delay:a},d);e.shouldReduceMotion&&It(g)&&(T=S(S({},T),{type:!1,delay:0}));var D=ti(g,y,b,T);v.push(D)}}return Promise.all(v).then(function(){h&&sv(e,h)})}function fv(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(hv).forEach(function(l,c){a.push(bn(l,t,S(S({},o),{delay:r+u(c)})).then(function(){return l.notifyAnimationComplete(t)}))}),Promise.all(a)}function hv(e,t){return e.sortNodePosition(t)}function vv(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,i}var ii=[_.Animate,_.InView,_.Focus,_.Hover,_.Tap,_.Drag,_.Exit],pv=ue([],B(ii),!1).reverse(),gv=ii.length;function mv(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,i=r.options;return dv(e,n,i)}))}}function yv(e){var t=mv(e),r=Tv(),n={},i=!0,o=function(c,d){var h=wr(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=pv[M],I=r[A],V=(h=f[A])!==null&&h!==void 0?h:v[A],k=ie(V),H=A===d?I.isActive:null;H===!1&&(b=M);var q=V===v[A]&&V!==f[A]&&k;if(q&&i&&e.manuallyAnimateOnMount&&(q=!1),I.protectedKeys=S({},y),!I.isActive&&H===null||!V&&!I.prevProp||$n(V)||typeof V=="boolean")return"continue";var Y=bv(I.prevProp,V),te=Y||A===d&&I.isActive&&!q&&k||M>b&&k,ge=Array.isArray(V)?V:[V],X=ge.reduce(o,{});H===!1&&(X={});var et=I.prevResolvedValues,Fe=et===void 0?{}:et,Lt=S(S({},Fe),X),je=function(C){te=!0,g.delete(C),I.needsAnimating[C]=!0};for(var G in Lt){var L=X[G],E=Fe[G];y.hasOwnProperty(G)||(L!==E?Ct(L)&&Ct(E)?!Gs(L,E)||Y?je(G):I.protectedKeys[G]=!0:L!==void 0?je(G):g.add(G):L!==void 0&&g.has(G)?je(G):I.protectedKeys[G]=!0)}I.prevProp=V,I.prevResolvedValues=X,I.isActive&&(y=S(S({},y),X)),i&&e.blockInitialAnimation&&(te=!1),te&&!q&&p.push.apply(p,ue([],B(ge.map(function(C){return{animation:C,options:S({type:A},c)}})),!1))},D=0;D<gv;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 bv(e,t){return typeof t=="string"?t!==e:$a(t)?!Gs(t,e):!1}function Ie(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tv(){var e;return e={},e[_.Animate]=Ie(!0),e[_.InView]=Ie(),e[_.Hover]=Ie(),e[_.Tap]=Ie(),e[_.Drag]=Ie(),e[_.Focus]=Ie(),e[_.Exit]=Ie(),e}var Sv={animation:we(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=yv(t)),$n(r)&&m.useEffect(function(){return r.subscribe(t)},[r])}),exit:we(function(e){var t=e.custom,r=e.visualElement,n=B(Ws(),2),i=n[0],o=n[1],a=m.useContext(Dr);m.useEffect(function(){var s,u;r.isPresent=i;var l=(s=r.animationState)===null||s===void 0?void 0:s.setActive(_.Exit,!i,{custom:(u=a==null?void 0:a.custom)!==null&&u!==void 0?u:t});!i&&(l==null||l.then(o))},[i])})},Ks=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=qr(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,v=Bs(h.offset,{x:0,y:0})>=3;if(!(!f&&!v)){var p=h.point,g=dr().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),gs(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=qr(Gr(f,i.transformPagePoint),i.history);i.startEvent&&p&&p(h,y),g&&g(h,y)},!(ms(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=a;var s=Wn(t),u=Gr(s,this.transformPagePoint),l=u.point,c=dr().timestamp;this.history=[S(S({},l),{timestamp:c})];var d=r.onSessionStart;d&&d(t,qr(u,this.history)),this.removeListeners=xr(qe(window,"pointermove",this.handlePointerMove),qe(window,"pointerup",this.handlePointerUp),qe(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 qr(e,t){var r=e.point;return{point:r,delta:Yi(r,Zs(t)),offset:Yi(r,Dv(t)),velocity:wv(t,.1)}}function Dv(e){return e[0]}function Zs(e){return e[e.length-1]}function wv(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=Zs(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>hr(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 ve(e){return e.max-e.min}function Xi(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),Bs(e,t)<r}function Ki(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=j(t.min,t.max,e.origin),e.scale=ve(r)/ve(t),(Xi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=j(r.min,r.max,e.origin)-e.originPoint,(Xi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function mt(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+ve(t)}function Ev(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+ve(t)}function yt(e,t,r){Ji(e.x,t.x,r.x),Ji(e.y,t.y,r.y)}function Cv(e,t,r){var n=t.min,i=t.max;return n!==void 0&&e<n?e=r?j(n,e,r.min):Math.max(e,n):i!==void 0&&e>i&&(e=r?j(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 Ov(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 xv(e,t){return{x:eo(e.x,t.x),y:eo(e.y,t.y)}}function Iv(e,t){var r=.5,n=ve(e),i=ve(t);return i>n?r=Ot(t.min,t.max-n,e.min):n>i&&(r=Ot(e.min,e.max-i,t.min)),lr(0,1,r)}function Pv(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 Tn=.35;function Rv(e){return e===void 0&&(e=Tn),e===!1?e=0:e===!0&&(e=Tn),{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}},bt=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 Js(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 Mv(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function Av(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 Yr(e){return e===void 0||e===1}function Qs(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!Yr(t)||!Yr(r)||!Yr(n)}function Te(e){return Qs(e)||oo(e.x)||oo(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function oo(e){return e&&e!=="0%"}function vr(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=vr(e,i,n)),vr(e,r,n)+t}function Sn(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 eu(e,t){var r=t.x,n=t.y;Sn(e.x,r.translate,r.scale,r.originPoint),Sn(e.y,n.translate,n.scale,n.originPoint)}function Lv(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,eu(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=j(e.min,e.max,s);Sn(e,t[i],t[o],u,t.scale)}var Vv=["x","scaleX","originX"],Nv=["y","scaleY","originY"];function Ue(e,t){so(e.x,t,Vv),so(e.y,t,Nv)}function tu(e,t){return Js(Av(e.getBoundingClientRect(),t))}function _v(e,t,r){var n=tu(e,r),i=t.scroll;return i&&(Se(n.x,i.x),Se(n.y,i.y)),n}var Fv=new WeakMap,jv=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=Ss(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=ve(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(_.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=kv(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 Ks(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(_.Drag,!1)},e.prototype.updateAxis=function(t,r,n){var i=this.getProps().drag;if(!(!n||!$t(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Cv(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=Ov(o.actual,n):this.constraints=!1,this.elastic=Rv(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&se(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=Pv(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=_v(i,o.root,this.visualElement.getTransformPagePoint()),s=xv(o.layout.actual,a);if(n){var u=n(Mv(s));this.hasMutatedConstraints=!!u,u&&(s=Js(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($t(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 ti(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($t(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]-j(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]=Iv({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($t(l,i,null)){var c=t.getAxisMotionValue(l),d=t.constraints[l],h=d.min,f=d.max;c.set(j(h,f,s[l]))}})}},e.prototype.addListeners=function(){var t=this,r;Fv.set(this.visualElement,this);var n=this.visualElement.getInstance(),i=qe(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=Or(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?Tn: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 $t(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function kv(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 Bv(e){var t=e.dragControls,r=e.visualElement,n=Cr(function(){return new jv(r)});m.useEffect(function(){return t&&t.subscribe(n)},[n,t]),m.useEffect(function(){return n.addListeners()},[n])}function Hv(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(Fn).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 Ks(d,l,{transformPagePoint:u})}ur(o,"pointerdown",a&&c),Es(function(){return s.current&&s.current.end()})}var zv={pan:we(Hv),drag:we(Bv)},Wt=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function Uv(){var e=Wt.map(function(){return new gt}),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 $v(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(fe(o))e.addValue(i,o);else if(fe(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 ru=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=Uv(),I=new Map,V=new Map,k={},H=S({},w),q;function Y(){!M||!D||(te(),s(M,x,p.style,L.projection))}function te(){n(L,x,w,f,p)}function ge(){A.notifyUpdate(w)}function X(E,C){var U=C.onChange(function(Vt){w[E]=Vt,p.onUpdate&&ce.update(ge,!1,!0)}),tt=C.onRenderRequest(L.scheduleRender);V.set(E,function(){U(),tt()})}var et=d(p);for(var Fe in et){var Lt=et[Fe];w[Fe]!==void 0&&fe(Lt)&&Lt.set(w[Fe],!1)}var je=Er(p),G=Ga(p),L=S(S({treeType:r,current:null,depth:v?v.depth+1:0,parent:v,children:new Set,presenceId:g,shouldReduceMotion:T,variantChildren:G?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),G&&v&&!je&&(q=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(ge),Ke.render(Y),V.forEach(function(C){return C()}),q==null||q(),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 G?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&&!fe(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),k=$v(L,d(p),k)},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(!je){var C=(v==null?void 0:v.getVariantContext())||{};return p.initial!==void 0&&(C.initial=p.initial),C}for(var U={},tt=0;tt<Wv;tt++){var Vt=nu[tt],Mr=p[Vt];(ie(Mr)||Mr===!1)&&(U[Vt]=Mr)}return U}});return L}},nu=ue(["initial"],B(ii),!1),Wv=nu.length;function Dn(e){return typeof e=="string"&&e.startsWith("var(--")}var iu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Gv(e){var t=iu.exec(e);if(!t)return[,];var r=B(t,3),n=r[1],i=r[2];return[n,i]}function wn(e,t,r){var n=B(Gv(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():Dn(o)?wn(o,t):o}}function qv(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(Dn(c)){var d=wn(c,o);d&&l.set(d)}});for(var a in i){var s=i[a];if(Dn(s)){var u=wn(s,o);u&&(i[a]=u,r&&((n=r[a])!==null&&n!==void 0||(r[a]=s)))}}return{target:i,transitionEnd:r}}var Yv=new Set(["width","height","top","left","right","bottom","x","y"]),ou=function(e){return Yv.has(e)},Xv=function(e){return Object.keys(e).some(ou)},au=function(e,t){e.set(t,!1),e.set(t)},uo=function(e){return e===Ne||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}},Kv=new Set(["x","y","z"]),Zv=wt.filter(function(e){return!Kv.has(e)});function Jv(e){var t=[];return Zv.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)},Qv=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);au(c,s[l]),e[l]=ho[l](u,o)}),e},ep=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(ou),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(Ct(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?or(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=Jv(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],au(d,v))}}),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=Qv(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 tp(e,t,r,n){return Xv(t)?ep(e,t,r,n):{target:t,transitionEnd:n}}var rp=function(e,t,r,n){var i=qv(e,t,n);return t=i.target,n=i.transitionEnd,tp(e,t,r,n)};function np(e){return window.getComputedStyle(e)}var su={treeType:"dom",readValueFromInstance:function(e,t){if(It(t)){var r=Jn(t);return r&&r.default||0}else{var n=np(e);return(Za(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 tu(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=cv(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),n){uv(e,s,u);var l=rp(e,s,u,a);a=l.transitionEnd,s=l.target}return S({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:Un,build:function(e,t,r,n,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Bn(t,r,n,i.transformTemplate)},render:cs},ip=ru(su),op=ru(S(S({},su),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return It(t)?((r=Jn(t))===null||r===void 0?void 0:r.default)||0:(t=ds.has(t)?t:ls(t),e.getAttribute(t))},scrapeMotionValuesFromProps:hs,build:function(e,t,r,n,i){zn(t,r,n,i.transformTemplate)},render:fs})),ap=function(e,t){return jn(e)?op(t,{enableHardwareAcceleration:!1}):ip(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",sp={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(iu,function(p){return a.push(p),po}));var s=he.parse(e);if(s.length>5)return i;var u=he.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=j(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}},up=function(e){ha(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;Md(cp),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()}}))),ht.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 lp(e){var t=B(Ws(),2),r=t[0],n=t[1],i=m.useContext(qa);return N.createElement(up,S({},e,{layoutGroup:i,switchLayoutGroup:m.useContext(Ya),isPresent:r,safeToRemove:n}))}var cp={borderRadius:S(S({},nt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:sp},dp={measureLayout:lp};function fp(e,t,r){r===void 0&&(r={});var n=fe(e)?e:Ze(e);return ti("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var uu=["TopLeft","TopRight","BottomLeft","BottomRight"],hp=uu.length,go=function(e){return typeof e=="string"?parseFloat(e):e},mo=function(e){return typeof e=="number"||O.test(e)};function vp(e,t,r,n,i,o){var a,s,u,l;i?(e.opacity=j(0,(a=r.opacity)!==null&&a!==void 0?a:1,pp(n)),e.opacityExit=j((s=t.opacity)!==null&&s!==void 0?s:1,0,gp(n))):o&&(e.opacity=j((u=t.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(var c=0;c<hp;c++){var d="border".concat(uu[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(j(go(h),go(f),n),0),(le.test(f)||le.test(h))&&(e[d]+="%")):e[d]=f}}(t.rotate||r.rotate)&&(e.rotate=j(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 pp=lu(0,.5,Kn),gp=lu(.5,.95,Yn);function lu(e,t,r){return function(n){return n<e?0:n>t?1:r(Ot(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=vr(e,1/r,n),i!==void 0&&(e=vr(e,1/i,n)),e}function mp(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=j(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var u=j(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];mp(e,t[a],t[s],t[u],t.scale,n,i)}var yp=["x","scaleX","originX"],bp=["y","scaleY","originY"];function Do(e,t,r,n){So(e.x,t,yp,r==null?void 0:r.x,n==null?void 0:n.x),So(e.y,t,bp,r==null?void 0:r.y,n==null?void 0:n.y)}function wo(e){return e.translate===0&&e.scale===1}function cu(e){return wo(e.x)&&wo(e.y)}function du(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 Tp=function(){function e(){this.members=[]}return e.prototype.add=function(t){ri(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(ni(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}(),Sp="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===Sp?"none":o}var Dp=function(e,t){return e.depth-t.depth},wp=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){ri(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){ni(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Dp),this.isDirty=!1,this.children.forEach(t)},e}(),Co=1e3;function fu(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(Pp),c.nodes.forEach(Rp)},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 wp)}return a.prototype.addEventListener=function(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new gt),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),ht.hasAnimatedSinceResize&&(ht.hasAnimatedSinceResize=!1,l.nodes.forEach(Ip))})}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 k=(T=(b=l.options.transition)!==null&&b!==void 0?b:v.getDefaultTransition())!==null&&T!==void 0?T:Np,H=v.getProps(),q=H.onLayoutAnimationStart,Y=H.onLayoutAnimationComplete,te=!l.targetLayout||!du(l.targetLayout,V)||I,ge=!A&&I;if(!((D=l.resumeFrom)===null||D===void 0)&&D.instance||ge||A&&(te||!l.currentAnimation)){l.resumeFrom&&(l.resumingFrom=l.resumeFrom,l.resumingFrom.resumingFrom=void 0),l.setAnimationOrigin(M,ge);var X=S(S({},ei(k,"layout")),{onPlay:q,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(Mp))},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(_p),this.potentialNodes.clear()),this.nodes.forEach(xp),this.nodes.forEach(Ep),this.nodes.forEach(Cp),this.clearAllSnapshots(),Ur.update(),Ur.preRender(),Ur.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(Op),this.sharedNodes.forEach(Ap)},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&&!cu(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)){Qs(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(),yt(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)?Ev(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):re(this.target,this.layout.actual),eu(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(),yt(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),Lv(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var h=d.target;if(h){this.projectionDelta||(this.projectionDelta=bt(),this.projectionDeltaWithTransform=bt());var f=this.treeScale.x,v=this.treeScale.y,p=this.projectionTransform;mt(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=bt();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(Vp));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)&&(yt(p,l.layout.actual,l.relativeParent.layout.actual),Lp(l.relativeTarget,l.relativeTargetOrigin,p,w)),g&&(l.animationValues=f,vp(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(){ht.hasAnimatedSinceResize=!0,u.currentAnimation=fp(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),mt(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 Tp);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<un.length;c++){var d=un[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=tr(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=tr(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 ar)if(b[x]!==void 0){var M=ar[x],A=M.correct,I=M.applyTo,V=A(b[x],g);if(I)for(var k=I.length,H=0;H<k;H++)v[I[H]]=V;else v[x]=V}return this.options.layoutId&&(v.pointerEvents=g===this?tr(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 Ep(e){e.updateLayout()}function Cp(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=ve(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=ve(s[b]);T.max=T.min+D});var l=bt();mt(l,s,o.layout);var c=bt();o.isShared?mt(c,e.applyTransform(u,!0),o.measured):mt(c,s,o.layout);var d=!cu(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();yt(g,o.layout,v.layout);var y=z();yt(y,s,p.actual),du(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 Op(e){e.clearSnapshot()}function Oo(e){e.clearMeasurements()}function xp(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function Ip(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Pp(e){e.resolveTargetDelta()}function Rp(e){e.calcProjection()}function Mp(e){e.resetRotation()}function Ap(e){e.removeLeadSnapshot()}function xo(e,t,r){e.translate=j(t.translate,0,r),e.scale=j(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Io(e,t,r,n){e.min=j(t.min,r.min,n),e.max=j(t.max,r.max,n)}function Lp(e,t,r,n){Io(e.x,t.x,r.x,n),Io(e.y,t.y,r.y,n)}function Vp(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Np={duration:.45,ease:[.4,0,.1,1]};function _p(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 Fp=fu({attachResizeListener:function(e,t){return Or(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Xr={current:void 0},jp=fu({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Xr.current){var e=new Fp(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Xr.current=e}return Xr.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),kp=S(S(S(S({},Sv),jh),zv),dp),Bp=Pd(function(e,t){return gf(e,t,kp,ap,jp)});function En(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}En.debounce=En;var Hp=En;const Mo=Cu(Hp);function zp(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(),k={left:T,top:D,width:w,height:x,bottom:M,right:A,x:I,y:V};u.current.element instanceof HTMLElement&&i&&(k.height=u.current.element.offsetHeight,k.width=u.current.element.offsetWidth),Object.freeze(k),d.current&&!Gp(u.current.lastBounds,k)&&s(u.current.lastBounds=k)};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=hu(b),g())};return $p(v,!!r),Up(f),m.useEffect(()=>{p(),g()},[r,v,f]),m.useEffect(()=>p,[]),[y,a,h]}function Up(e){m.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function $p(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 hu(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,...hu(e.parentElement)]}const Wp=["x","y","top","bottom","left","right","width","height"],Gp=(e,t)=>Wp.every(r=>e[r]===t[r]);function Kr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qp(e,t,r){Yp(e,t),t.set(e,r)}function Yp(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=vu(e,t,"get");return Xp(e,r)}function Xp(e,t){return t.get?t.get.call(e):t.value}function Kp(e,t,r){var n=vu(e,t,"set");return Zp(e,n,r),r}function vu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Zp(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 Jp{constructor(){qp(this,Be,{writable:!0,value:void 0}),Kr(this,"register",t=>{Gt(this,Be).push(t)}),Kr(this,"unregister",t=>{let r;for(;(r=Gt(this,Be).indexOf(t))!==-1;)Gt(this,Be).splice(r,1)}),Kr(this,"backendChanged",t=>{for(const r of Gt(this,Be))r.backendChanged(t)}),Kp(this,Be,[])}}function ne(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 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=pu(e,t,"get");return eg(e,r)}function eg(e,t){return t.get?t.get.call(e):t.value}function He(e,t,r){var n=pu(e,t,"set");return tg(e,n,r),r}function pu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function tg(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,qt=new WeakMap,Z=new WeakMap,me=new WeakMap,Pe=new WeakMap,Ao=new WeakMap,Lo=new WeakMap,Vo=new WeakMap,Zr=new WeakMap,Jr=new WeakMap,Yt=new WeakMap;class Xe{constructor(t,r,n){if(ne(this,K,{writable:!0,value:void 0}),ne(this,qt,{writable:!0,value:void 0}),ne(this,Z,{writable:!0,value:void 0}),ne(this,me,{writable:!0,value:void 0}),ne(this,Pe,{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:
|
package/dist/iframe.html
CHANGED
package/dist/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1699454066718,"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.2","storybookVersionSpecifier":"^7.4.1","language":"typescript","storybookPackages":{"@storybook/addon-essentials":{"version":"7.5.2"},"@storybook/addon-links":{"version":"7.5.2"},"@storybook/addons":{"version":"7.5.2"},"@storybook/react":{"version":"7.5.2"},"@storybook/react-vite":{"version":"7.5.2"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.5.2"}},"addons":{"@storybook/addon-actions":{"version":"7.5.2"},"@storybook/addon-docs":{"version":"7.5.2"},"storybook-dark-mode":{"version":"3.0.1"}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oliasoft-open-source/react-ui-library",
|
|
3
|
-
"version": "3.13.
|
|
3
|
+
"version": "3.13.3",
|
|
4
4
|
"description": "Reusable UI components for React projects",
|
|
5
5
|
"homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
|
|
6
6
|
"bugs": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build:package": "tsc && vite build",
|
|
24
24
|
"build:docs": "vite build --config vite.config.docs.ts",
|
|
25
|
-
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build --quiet --output-dir ./public",
|
|
25
|
+
"build:storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build --quiet --output-dir ./public/storybook",
|
|
26
26
|
"build:extras": "yarn build:docs && yarn build:storybook",
|
|
27
27
|
"build:css": "lessc src/style/external.less dist/gui-library.css",
|
|
28
28
|
"build": "yarn build:package && yarn build:extras",
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@oliasoft-open-source/eslint-config-oliasoft": "^1.0.4",
|
|
84
84
|
"@oliasoft-open-source/units": "^3.10.0",
|
|
85
|
-
"@storybook/addon-actions": "^7.
|
|
86
|
-
"@storybook/addon-essentials": "^7.
|
|
87
|
-
"@storybook/addon-links": "^7.
|
|
88
|
-
"@storybook/addons": "^7.
|
|
89
|
-
"@storybook/react": "^7.
|
|
90
|
-
"@storybook/react-vite": "^7.
|
|
85
|
+
"@storybook/addon-actions": "^7.5.3",
|
|
86
|
+
"@storybook/addon-essentials": "^7.5.3",
|
|
87
|
+
"@storybook/addon-links": "^7.5.3",
|
|
88
|
+
"@storybook/addons": "^7.5.3",
|
|
89
|
+
"@storybook/react": "^7.5.3",
|
|
90
|
+
"@storybook/react-vite": "^7.5.3",
|
|
91
91
|
"@types/jest": "^29.5.5",
|
|
92
92
|
"@types/lodash": "^4.14.197",
|
|
93
93
|
"@types/react": "^18.2.21",
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"react": "^17.0",
|
|
125
125
|
"react-dom": "^17.0",
|
|
126
126
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
127
|
-
"storybook": "^7.
|
|
127
|
+
"storybook": "^7.5.3",
|
|
128
128
|
"storybook-dark-mode": "^3.0.1",
|
|
129
129
|
"typescript": "^5.2.2",
|
|
130
130
|
"vite": "^4.5.0",
|