PageSourceSearch

https://roi.base44.app/assets/ManageSiteApp-CB3LVgIM.js

js roi.base44.app collected 2026-10-03 03:08:23 UTC 133,338 bytes, 66 lines download raw bytes

1import{r as h,e as ne,f as ln,g as qo,j as g,h as cn,P as xe,i as ie,k as zo,l as dn,m as un,n as Yo,o as Ko,c as Ht,I as F,B as Z,t as Ke,p as Xo,q as Jo,R as M,s as Qo,v as pn,T as Re,w as Zo,x as xr,y as yr,z as es,A as ts}from"./index-D0bXNpqT.js";function rs({title:e,titleId:t,...r},n){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const ns=h.forwardRef(rs);function os({title:e,titleId:t,...r},n){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const ss=h.forwardRef(os);function is({title:e,titleId:t,...r},n){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const as=h.forwardRef(is);function ls({title:e,titleId:t,...r},n){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const Xe=h.forwardRef(ls);function cs({title:e,titleId:t,...r},n){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?h.createElement("title",{id:t},e):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Je=h.forwardRef(cs);function Qe(){return Qe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qe.apply(null,arguments)}ne.entities.ContactMessage;const yt=ne.entities.SiteContent;ne.entities.Query;var wt="rovingFocusGroup.onEntryFocus",ds={bubbles:!1,cancelable:!0},Ge="RovingFocusGroup",[Lt,fn,us]=qo(Ge),[ps,gn]=ln(Ge,[us]),[fs,gs]=ps(Ge),mn=h.forwardRef((e,t)=>g.jsx(Lt.Provider,{scope:e.__scopeRovingFocusGroup,children:g.jsx(Lt.Slot,{scope:e.__scopeRovingFocusGroup,children:g.jsx(ms,{...e,ref:t})})}));mn.displayName=Ge;var ms=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,u=h.useRef(null),f=zo(t,u),m=dn(s),[v,b]=un({prop:i,defaultProp:a??null,onChange:l,caller:Ge}),[w,D]=h.useState(!1),C=Yo(c),I=fn(r),E=h.useRef(!1),[_,R]=h.useState(0);return h.useEffect(()=>{const N=u.current;if(N)return N.addEventListener(wt,C),()=>N.removeEventListener(wt,C)},[C]),g.jsx(fs,{scope:r,orientation:n,dir:m,loop:o,currentTabStopId:v,onItemFocus:h.useCallback(N=>b(N),[b]),onItemShiftTab:h.useCallback(()=>D(!0),[]),onFocusableItemAdd:h.useCallback(()=>R(N=>N+1),[]),onFocusableItemRemove:h.useCallback(()=>R(N=>N-1),[]),children:g.jsx(xe.div,{tabIndex:w||_===0?-1:0,"data-orientation":n,...d,ref:f,style:{outline:"none",...e.style},onMouseDown:ie(e.onMouseDown,()=>{E.current=!0}),onFocus:ie(e.onFocus,N=>{const $=!E.current;if(N.target===N.currentTarget&&$&&!w){const O=new CustomEvent(wt,ds);if(N.currentTarget.dispatchEvent(O),!O.defaultPrevented){const x=I().filter(
1B=>B.focusable),A=x.find(B=>B.active),L=x.find(B=>B.id===v),j=[A,L,...x].filter(Boolean).map(B=>B.ref.current);vn(j,p)}}E.current=!1}),onBlur:ie(e.onBlur,()=>D(!1))})})}),bn="RovingFocusGroupItem",hn=h.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:s,children:i,...a}=e,l=cn(),c=s||l,p=gs(bn,r),d=p.currentTabStopId===c,u=fn(r),{onFocusableItemAdd:f,onFocusableItemRemove:m,currentTabStopId:v}=p;return h.useEffect(()=>{if(n)return f(),()=>m()},[n,f,m]),g.jsx(Lt.ItemSlot,{scope:r,id:c,focusable:n,active:o,children:g.jsx(xe.span,{tabIndex:d?0:-1,"data-orientation":p.orientation,...a,ref:t,onMouseDown:ie(e.onMouseDown,b=>{n?p.onItemFocus(c):b.preventDefault()}),onFocus:ie(e.onFocus,()=>p.onItemFocus(c)),onKeyDown:ie(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){p.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const w=vs(b,p.orientation,p.dir);if(w!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let C=u().filter(I=>I.focusable).map(I=>I.ref.current);if(w==="last")C.reverse();else if(w==="prev"||w==="next"){w==="prev"&&C.reverse();const I=C.indexOf(b.currentTarget);C=p.loop?xs(C,I+1):C.slice(I+1)}setTimeout(()=>vn(C))}}),children:typeof i=="function"?i({isCurrentTabStop:d,hasTabStop:v!=null}):i})})});hn.displayName=bn;var bs={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hs(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function vs(e,t,r){const n=hs(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return bs[n]}function vn(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function xs(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var ys=mn,ws=hn,at="Tabs",[Ds]=ln(at,[gn]),xn=gn(),[Is,qt]=Ds(at),yn=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,onValueChange:o,defaultValue:s,orientation:i="horizontal",dir:a,activationMode:l="automatic",...c}=e,p=dn(a),[d,u]=un({prop:n,onChange:o,defaultProp:s??"",caller:at});return g.jsx(Is,{scope:r,baseId:cn(),value:d,onValueChange:u,orientation:i,dir:p,activationMode:l,children:g.jsx(xe.div,{dir:p,"data-orientation":i,...c,ref:t})})});yn.displayName=at;var wn="TabsList",Dn=h.forwardRef((e,t)=>{const{__scopeTabs:r,loop:n=!0,...o}=e,s=qt(wn,r),i=xn(r);return g.jsx(ys,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:n,children:g.jsx(xe.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:t})})});Dn.displayName=wn;var In="TabsTrigger",Cn=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,i=qt(In,r),a=xn(r),l=_n(i.baseId,n),c=Nn(i.baseId,n),p=n===i.value;return g.jsx(ws,{asChild:!0,...a,focusable:!o,active:p,children:g.jsx(xe.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":c,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:t,onMouseDown:ie(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?i.onValueChange(n):d.preventDefault()}),onKeyDown:ie(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&i.onValueChange(n)}),onFocus:ie(e.onFocus,()=>{const d=i.activationMode!=="manual";!p&&!o&&d&&i.onValueChange(n)})})})});Cn.displayName=In;var Sn="TabsContent",En=h.forwardRef((e,t)=>{const{__scopeTabs:r,value:n,forceMount:o,children:s,...i}=e,a=qt(Sn,r),l=_n(a.baseId,n),c=Nn(a.baseId,n),p=n===a.value,d=h.useRef(p);return h.useEffect(()=>{const u=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(u)},[]),g.jsx(Ko,{present:o||p,children:({present:u})=>g.jsx(xe.div,{"data-state":p?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!u,id:c,tabIndex:0,...i,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:u&&s})})});En.displayName=Sn;function _n(e,t){return`${e}-trigger-${t}`}function Nn(e,t){return`${e}-content-${t}`}var Cs=yn,An=Dn,Rn=Cn,Pn=En;const Ss=Cs,On=h.forwardRef(({className:e,...t},r)=>g.jsx(An,{ref:r,className:Ht("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));On.displayName=An.displayName;const H=h.forwardRef(({className:e,...t},r)=>g.jsx(Rn,{ref:r,className:Ht("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...t}));H.displayName=Rn.displayName;const ue=h.forwardRef(({className:e,...t},r)=>g.jsx(Pn,{ref:r,className:Ht("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ue.displayName=Pn.displayName;ne.integrations.Core;ne.integrations.Core.InvokeLLM;ne.integrations.Core.SendEmail;ne.integrations.Core.SendSMS;const Es=ne.integrations.Core.UploadFile;ne.integrations.Core.GenerateImage;ne.integrations.Core.ExtractDataFromUploadedFile;function se({label:e,value:t,onChange:r}){const n=h.useRef(null),[o,s]=h.useState(!1),i=async a=>{var c;const l=(c=a.target.files)==null?void 0:c[0];if(l){s(!0);try{const{file_url:p}=await Es({file:l});r(p),Ke.success("Image uploaded")}catch(p){console.error("Upload failed:",p),Ke.error("Upload failed. Try again or paste a URL.")}finally{s(!1),n.current&&(n.current.value="")}}};return g.jsxs("div",{className:"space-y-2",children:[e&&g.jsx("label",{className:"text-sm font-medium text-gray-300",children:e}),g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"w-20 h-20 flex-shrink-0 rounded-lg border border-gray-700 bg-[#0f0f0f] overflow-hidden flex items-center justify-center",children:t?g.jsx("img",{src:t,alt:e||"preview",className:"w-full h-full object-cover"}):g.jsx(as,{className:"w-7 h-7 text-gray-600"})}),g.jsxs("div",{className:"flex-1 space-y-2",children:[g.jsx(F,{value:t||"",onChange:a=>r(a.target.value),placeholder:"https://... or upload a file",className:"bg-[#0f0f0f] border-gray-700 text-white placeholder:text-gray-600 h-10"}),g.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:i,className:"hidden"}),g.jsxs(Z,{type:"button",variant:"outline",size:"sm",disabled:o,onClick:()=>{var a;return(a=n.current)==null?void 0:a.click()},className:"border-gray-700 bg-transparent text-gray-200 hover:bg-white/10",children:[g.jsx(ns,{className:"w-4 h-4 me-2"}),o?"Uploading...":"Upload file"]})]})]})]})}function V(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var _s=typeof Symbol=="function"&&Symbol.observable||"@@observable",wr=_s,Dr=()=>Math.random().toString(36).substring(7).split("").join("."),Ns={INIT:`@@redux/INIT${Dr()}`,REPLACE:`@@redux/REPLACE${Dr()}`},Ir=Ns;function As(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Tn(e,t,r){if(typeof e!="function")throw new Error(V(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(V(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(V(1));return r(Tn)(e,t)}let n=e,o=t,s=new Map,i=s,a=0,l=!1;
1function c(){i===s&&(i=new Map,s.forEach((b,w)=>{i.set(w,b)}))}function p(){if(l)throw new Error(V(3));return o}function d(b){if(typeof b!="function")throw new Error(V(4));if(l)throw new Error(V(5));let w=!0;c();const D=a++;return i.set(D,b),function(){if(w){if(l)throw new Error(V(6));w=!1,c(),i.delete(D),s=null}}}function u(b){if(!As(b))throw new Error(V(7));if(typeof b.type>"u")throw new Error(V(8));if(typeof b.type!="string")throw new Error(V(17));if(l)throw new Error(V(9));try{l=!0,o=n(o,b)}finally{l=!1}return(s=i).forEach(D=>{D()}),b}function f(b){if(typeof b!="function")throw new Error(V(10));n=b,u({type:Ir.REPLACE})}function m(){const b=d;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(V(11));function D(){const I=w;I.next&&I.next(p())}return D(),{unsubscribe:b(D)}},[wr](){return this}}}return u({type:Ir.INIT}),{dispatch:u,subscribe:d,getState:p,replaceReducer:f,[wr]:m}}function Cr(e,t){return function(...r){return t(e.apply(this,r))}}function Sr(e,t){if(typeof e=="function")return Cr(e,t);if(typeof e!="object"||e===null)throw new Error(V(16));const r={};for(const n in e){const o=e[n];typeof o=="function"&&(r[n]=Cr(o,t))}return r}function Bn(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Rs(...e){return t=>(r,n)=>{const o=t(r,n);let s=()=>{throw new Error(V(15))};const i={getState:o.getState,dispatch:(l,...c)=>s(l,...c)},a=e.map(l=>l(i));return s=Bn(...a)(o.dispatch),{...o,dispatch:s}}}var Dt={exports:{}},It={};/**
2 * @license React
3 * use-sync-external-store-with-selector.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Er;function Ps(){if(Er)return It;Er=1;var e=Xo();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,o=e.useRef,s=e.useEffect,i=e.useMemo,a=e.useDebugValue;return It.useSyncExternalStoreWithSelector=function(l,c,p,d,u){var f=o(null);if(f.current===null){var m={hasValue:!1,value:null};f.current=m}else m=f.current;f=i(function(){function b(E){if(!w){if(w=!0,D=E,E=d(E),u!==void 0&&m.hasValue){var _=m.value;if(u(_,E))return C=_}return C=E}if(_=C,r(D,E))return _;var R=d(E);return u!==void 0&&u(_,R)?(D=E,_):(D=E,C=R)}var w=!1,D,C,I=p===void 0?null:p;return[function(){return b(c())},I===null?void 0:function(){return b(I())}]},[c,p,d,u]);var v=n(l,f[0],f[1]);return s(function(){m.hasValue=!0,m.value=v},[v]),a(v),v},It}var _r;function Os(){return _r||(_r=1,Dt.exports=Ps()),Dt.exports}Os();var Ts=h.version.startsWith("19"),Bs=Symbol.for(Ts?"react.transitional.element":"react.element"),js=Symbol.for("react.portal"),Ls=Symbol.for("react.fragment"),Fs=Symbol.for("react.strict_mode"),Ms=Symbol.for("react.profiler"),ks=Symbol.for("react.consumer"),Gs=Symbol.for("react.context"),jn=Symbol.for("react.forward_ref"),$s=Symbol.for("react.suspense"),Ws=Symbol.for("react.suspense_list"),zt=Symbol.for("react.memo"),Us=Symbol.for("react.lazy"),Vs=jn,Hs=zt;function qs(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Bs:switch(e=e.type,e){case Ls:case Ms:case Fs:case $s:case Ws:return e;default:switch(e=e&&e.$$typeof,e){case Gs:case jn:case Us:case zt:return e;case ks:return e;default:return t}}case js:return t}}}function zs(e){return qs(e)===zt}function Ys(e,t,r,n,{areStatesEqual:o,areOwnPropsEqual:s,areStatePropsEqual:i}){let a=!1,l,c,p,d,u;function f(D,C){return l=D,c=C,p=e(l,c),d=t(n,c),u=r(p,d,c),a=!0,u}function m(){return p=e(l,c),t.dependsOnOwnProps&&(d=t(n,c)),u=r(p,d,c),u}function v(){return e.dependsOnOwnProps&&(p=e(l,c)),t.dependsOnOwnProps&&(d=t(n,c)),u=r(p,d,c),u}function b(){const D=e(l,c),C=!i(D,p);return p=D,C&&(u=r(p,d,c)),u}function w(D,C){const I=!s(C,c),E=!o(D,l,C,c);return l=D,c=C,I&&E?m():I?v():E?b():u}return function(C,I){return a?w(C,I):f(C,I)}}function Ks(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...o}){const s=t(e,o),i=r(e,o),a=n(e,o);return Ys(s,i,a,e,o)}function Xs(e,t){const r={};for(const n in e){const o=e[n];typeof o=="function"&&(r[n]=(...s)=>t(o(...s)))}return r}function Ft(e){return function(r){const n=e(r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function Nr(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function Ln(e,t){return function(n,{displayName:o}){const s=function(a,l){return s.dependsOnOwnProps?s.mapToProps(a,l):s.mapToProps(a,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(a,l){s.mapToProps=e,s.dependsOnOwnProps=Nr(e);let c=s(a,l);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=Nr(c),c=s(a,l)),c},s}}function Yt(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function Js(e){return e&&typeof e=="object"?Ft(t=>Xs(e,t)):e?typeof e=="function"?Ln(e):Yt(e,"mapDispatchToProps"):Ft(t=>({dispatch:t}))}function Qs(e){return e?typeof e=="function"?Ln(e):Yt(e,"mapStateToProps"):Ft(()=>({}))}function Zs(e,t,r){return{...r,...e,...t}}function ei(e){return function(r,{displayName:n,areMergedPropsEqual:o}){let s=!1,i;return function(l,c,p){const d=e(l,c,p);return s?o(d,i)||(i=d):(s=!0,i=d),i}}}function ti(e){return e?typeof e=="function"?ei(e):Yt(e,"mergeProps"):()=>Zs}function ri(e){e()}function ni(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ri(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const o=t={callback:r,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!n||e===null||(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Ar={notify(){},get:()=>[]};function Fn(e,t){let r,n=Ar,o=0,s=!1;function i(v){p();const b=n.subscribe(v);let w=!1;return()=>{w||(w=!0,b(),d())}}function a(){n.notify()}function l(){m.onStateChange&&m.onStateChange()}function c(){return s}function p(){o++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=ni())}function d(){o--,r&&o===0&&(r(),r=void 0,n.clear(),n=Ar)}function u(){s||(s=!0,p())}function f(){s&&(s=!1,d())}const m={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:l,isSubscribed:c,trySubscribe:u,tryUnsubscribe:f,getListeners:()=>n};return m}var oi=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",si=oi(),ii=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ai=ii(),li=()=>si||ai?h.useLayoutEffect:h.useEffect,Ze=li();function Rr(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Ct(e,t){if(Rr(e,t))return!0;
9if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++)if(!Object.prototype.hasOwnProperty.call(t,r[o])||!Rr(e[r[o]],t[r[o]]))return!1;return!0}var ci={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},di={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ui={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Mn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},pi={[Vs]:ui,[Hs]:Mn};function Pr(e){return zs(e)?Mn:pi[e.$$typeof]||ci}var fi=Object.defineProperty,gi=Object.getOwnPropertyNames,Or=Object.getOwnPropertySymbols,mi=Object.getOwnPropertyDescriptor,bi=Object.getPrototypeOf,Tr=Object.prototype;function Mt(e,t){if(typeof t!="string"){if(Tr){const s=bi(t);s&&s!==Tr&&Mt(e,s)}let r=gi(t);Or&&(r=r.concat(Or(t)));const n=Pr(e),o=Pr(t);for(let s=0;s<r.length;++s){const i=r[s];if(!di[i]&&!(o&&o[i])&&!(n&&n[i])){const a=mi(t,i);try{fi(e,i,a)}catch{}}}}return e}var St=Symbol.for("react-redux-context"),Et=typeof globalThis<"u"?globalThis:{};function hi(){if(!h.createContext)return{};const e=Et[St]??(Et[St]=new Map);let t=e.get(h.createContext);return t||(t=h.createContext(null),e.set(h.createContext,t)),t}var kn=hi(),vi=[null,null];function xi(e,t,r){Ze(()=>e(...t),r)}function yi(e,t,r,n,o,s){e.current=n,r.current=!1,o.current&&(o.current=null,s())}function wi(e,t,r,n,o,s,i,a,l,c,p){if(!e)return()=>{};let d=!1,u=null;const f=()=>{if(d||!a.current)return;const v=t.getState();let b,w;try{b=n(v,o.current)}catch(D){w=D,u=D}w||(u=null),b===s.current?i.current||c():(s.current=b,l.current=b,i.current=!0,p())};return r.onStateChange=f,r.trySubscribe(),f(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,u)throw u}}function Di(e,t){return e===t}function Ii(e,t,r,{pure:n,areStatesEqual:o=Di,areOwnPropsEqual:s=Ct,areStatePropsEqual:i=Ct,areMergedPropsEqual:a=Ct,forwardRef:l=!1,context:c=kn}={}){const p=c,d=Qs(e),u=Js(t),f=ti(r),m=!!e;return b=>
9{const w=b.displayName||b.name||"Component",D=`Connect(${w})`,C={shouldHandleStateChanges:m,displayName:D,wrappedComponentName:w,WrappedComponent:b,initMapStateToProps:d,initMapDispatchToProps:u,initMergeProps:f,areStatesEqual:o,areStatePropsEqual:i,areOwnPropsEqual:s,areMergedPropsEqual:a};function I(R){const[N,$,O]=h.useMemo(()=>{const{reactReduxForwardedRef:X,...Se}=R;return[R.context,X,Se]},[R]),x=h.useMemo(()=>{let X=p;return N!=null&&N.Consumer,X},[N,p]),A=h.useContext(x),L=!!R.store&&!!R.store.getState&&!!R.store.dispatch,q=!!A&&!!A.store,j=L?R.store:A.store,B=q?A.getServerState:j.getState,oe=h.useMemo(()=>Ks(j.dispatch,C),[j]),[Ie,mr]=h.useMemo(()=>{if(!m)return vi;const X=Fn(j,L?void 0:A.subscription),Se=X.notifyNestedSubs.bind(X);return[X,Se]},[j,L,A]),br=h.useMemo(()=>L?A:{...A,subscription:Ie},[L,A,Ie]),mt=h.useRef(void 0),bt=h.useRef(O),Ce=h.useRef(void 0),hr=h.useRef(!1),ht=h.useRef(!1),vt=h.useRef(void 0);Ze(()=>(ht.current=!0,()=>{ht.current=!1}),[]);const vr=h.useMemo(()=>()=>Ce.current&&O===bt.current?Ce.current:oe(j.getState(),O),[j,O]),Ho=h.useMemo(()=>Se=>Ie?wi(m,j,Ie,oe,bt,mt,hr,ht,Ce,mr,Se):()=>{},[Ie]);xi(yi,[bt,mt,hr,O,Ce,mr]);let Ue;try{Ue=h.useSyncExternalStore(Ho,vr,B?()=>oe(B(),O):vr)}catch(X){throw vt.current&&(X.message+=`
10The error may be correlated with this previous error:
11${vt.current.stack}
12
13`),X}Ze(()=>{vt.current=void 0,Ce.current=void 0,mt.current=Ue});const xt=h.useMemo(()=>h.createElement(b,{...Ue,ref:$}),[$,b,Ue]);return h.useMemo(()=>m?h.createElement(x.Provider,{value:br},xt):xt,[x,xt,br])}const _=h.memo(I);if(_.WrappedComponent=b,_.displayName=I.displayName=D,l){const N=h.forwardRef(function(O,x){return h.createElement(_,{...O,reactReduxForwardedRef:x})});return N.displayName=D,N.WrappedComponent=b,Mt(N,b)}return Mt(_,b)}}var Gn=Ii;function Ci(e){const{children:t,context:r,serverState:n,store:o}=e,s=h.useMemo(()=>{const l=Fn(o);return{store:o,subscription:l,getServerState:n?()=>n:void 0}},[o,n]),i=h.useMemo(()=>o.getState(),[o]);Ze(()=>{const{subscription:l}=s;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),i!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[s,i]);const a=r||kn;return h.createElement(a.Provider,{value:s},t)}var Si=Ci;function Ei(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function $n(e,t){var r=h.useState(function(){return{inputs:t,result:e()}})[0],n=h.useRef(!0),o=h.useRef(r),s=n.current||!!(t&&o.current.inputs&&Ei(t,o.current.inputs)),i=s?o.current:{inputs:t,result:e()};return h.useEffect(function(){n.current=!1,o.current=i},[i]),i.result}function _i(e,t){return $n(function(){return e},t)}var P=$n,S=_i,re=function(t){var r=t.top,n=t.right,o=t.bottom,s=t.left,i=n-s,a=o-r,l={top:r,right:n,bottom:o,left:s,width:i,height:a,x:s,y:r,center:{x:(n+s)/2,y:(o+r)/2}};return l},Kt=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},Br=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},Ni=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},_t={top:0,right:0,bottom:0,left:0},Xt=function(t){var r=t.borderBox,n=t.margin,o=n===void 0?_t:n,s=t.border,i=s===void 0?_t:s,a=t.padding,l=a===void 0?_t:a,c=re(Kt(r,o)),p=re(Br(r,i)),d=re(Br(p,l));return{marginBox:c,borderBox:re(r),paddingBox:p,contentBox:d,margin:o,border:i,padding:l}},J=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var o=Number(r);return isNaN(o)&&Jo(),o},Ai=function(){return{x:window.pageXOffset,y:window.pageYOffset}},et=function(t,r){var n=t.borderBox,o=t.border,s=t.margin,i=t.padding,a=Ni(n,r);return Xt({borderBox:a,border:o,margin:s,padding:i})},tt=function(t,r){return r===void 0&&(r=Ai()),et(t,r)},Wn=function(t,r){var n={top:J(r.marginTop),right:J(r.marginRight),bottom:J(r.marginBottom),left:J(r.marginLeft)},o={top:J(r.paddingTop),right:J(r.paddingRight),bottom:J(r.paddingBottom),left:J(r.paddingLeft)},s={top:J(r.borderTopWidth),right:J(r.borderRightWidth),bottom:J(r.borderBottomWidth),left:J(r.borderLeftWidth)};return Xt({borderBox:t,margin:n,padding:o,border:s})},Un=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return Wn(r,n)},jr=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Ri(e,t){return!!(e===t||jr(e)&&jr(t))}function Pi(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!Ri(e[r],t[r]))return!1;return!0}
13function k(e,t){t===void 0&&(t=Pi);var r=null;function n(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];if(r&&r.lastThis===this&&t(o,r.lastArgs))return r.lastResult;var i=e.apply(this,o);return r={lastResult:i,lastArgs:o,lastThis:this},i}return n.clear=function(){r=null},n}var Te=function(t){var r=[],n=null,o=function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];r=a,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o};function Vn(e,t){}Vn.bind(null,"warn");Vn.bind(null,"error");function ae(){}function Oi(e,t){return{...e,...t}}function ee(e,t,r){const n=t.map(o=>{const s=Oi(r,o.options);return e.addEventListener(o.eventName,o.fn,s),function(){e.removeEventListener(o.eventName,o.fn,s)}});return function(){n.forEach(s=>{s()})}}const Ti="Invariant failed";class rt extends Error{}rt.prototype.toString=function(){return this.message};function y(e,t){throw new rt(Ti)}class Bi extends M.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=ae,this.onWindowError=r=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),r.error instanceof rt&&r.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=r=>{this.callbacks=r}}componentDidMount(){this.unbind=ee(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof rt){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const ji=`
14  Press space bar to start a drag.
15  When dragging you can use the arrow keys to move the item around and escape to cancel.
16  Some screen readers may require you to be in focus mode or to use your pass through key
17`,nt=e=>e+1,Li=e=>`
18  You have lifted an item in position ${nt(e.source.index)}
19`,Hn=(e,t)=>{const r=e.droppableId===t.droppableId,n=nt(e.index),o=nt(t.index);return r?`
20      You have moved the item from position ${n}
21      to position ${o}
22    `:`
23    You have moved the item from position ${n}
24    in list ${e.droppableId}
25    to list ${t.droppableId}
26    in position ${o}
27  `},qn=(e,t,r)=>t.droppableId===r.droppableId?`
28      The item ${e}
29      has been combined with ${r.draggableId}`:`
30      The item ${e}
31      in list ${t.droppableId}
32      has been combined with ${r.draggableId}
33      in list ${r.droppableId}
34    `,Fi=e=>{const t=e.destination;if(t)return Hn(e.source,t);const r=e.combine;return r?qn(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},Lr=e=>`
35  The item has returned to its starting position
36  of ${nt(e.index)}
37`,Mi=e=>{if(e.reason==="CANCEL")return`
38      Movement cancelled.
39      ${Lr(e.source)}
40    `;const t=e.destination,r=e.combine;return t?`
41      You have dropped the item.
42      ${Hn(e.source,t)}
43    `:r?`
44      You have dropped the item.
45      ${qn(e.draggableId,e.source,r)}
46    `:`
47    The item has been dropped while not over a drop area.
48    ${Lr(e.source)}
49  `},Ye={dragHandleUsageInstructions:ji,onDragStart:Li,onDragUpdate:Fi,onDragEnd:Mi},G={x:0,y:0},W=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),z=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),le=(e,t)=>e.x===t.x&&e.y===t.y,ye=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),fe=(e,t,r=0)=>e==="x"?{x:t,y:r}:{x:r,y:t},Be=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),Fr=(e,t)=>Math.min(...t.map(r=>Be(e,r))),zn=e=>t=>({x:e(t.x),y:e(t.y)});var ki=(e,t)=>{const r=re({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const $e=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),Mr=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Gi={top:0,right:0,bottom:0,left:0},$i=(e,t)=>t?$e(e,t.scroll.diff.displacement):e,Wi=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,Ui=(e,t)=>t&&t.shouldClipSubject?ki(t.pageMarginBox,e):re(e);var be=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const o=$i(e.marginBox,n),s=Wi(o,r,t),i=Ui(s,n);return{page:e,withPlaceholder:t,active:i}},Jt=(e,t)=>{e.frame||y();const r=e.frame,n=z(t,r.scroll.initial),o=ye(n),s={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}},i=be({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:s});return{...e,frame:s,subject:i}};const Yn=k(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),Kn=k(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),lt=k(e=>Object.values(e)),Vi=k(e=>Object.values(e));var we=k((e,t)=>Vi(t).filter(n=>e===n.descriptor.droppableId).sort((n,o)=>n.descriptor.index-o.descriptor.index));function Qt(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ct(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var dt=k((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),Hi=({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:o})=>
49{if(!r.isCombineEnabled||!Qt(o))return null;function i(f){const m={type:"COMBINE",combine:{draggableId:f,droppableId:r.descriptor.id}};return{...o,at:m}}const a=o.displaced.all,l=a.length?a[0]:null;if(e)return l?i(l):null;const c=dt(t,n);if(!l){if(!c.length)return null;const f=c[c.length-1];return i(f.descriptor.id)}const p=c.findIndex(f=>f.descriptor.id===l);p===-1&&y();const d=p-1;if(d<0)return null;const u=c[d];return i(u.descriptor.id)},De=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const Xn={point:G,value:0},je={invisible:{},visible:{},all:[]},qi={displaced:je,displacedBy:Xn,at:null};var te=(e,t)=>r=>e<=r&&r<=t,Jn=e=>{const t=te(e.top,e.bottom),r=te(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const s=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(s&&i)return!0;const l=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right;return l&&c?!0:l&&i||c&&s}},zi=e=>{const t=te(e.top,e.bottom),r=te(e.left,e.right);return n=>t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right)};const Zt={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Qn={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var Yi=e=>t=>{const r=te(t.top,t.bottom),n=te(t.left,t.right);return o=>e===Zt?r(o.top)&&r(o.bottom):n(o.left)&&n(o.right)};const Ki=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:G;return $e(e,r)},Xi=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,Ji=(e,t,r)=>r(t)(e),er=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:o})=>{const s=n?Ki(e,t):e;return Xi(s,t,o)&&Ji(s,r,o)},Qi=e=>er({...e,isVisibleThroughFrameFn:Jn}),Zn=e=>er({...e,isVisibleThroughFrameFn:zi}),Zi=e=>er({...e,isVisibleThroughFrameFn:Yi(e.destination.axis)}),ea=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:n,visible:o}=t;if(n[e])return!1;const s=o[e];return s?s.shouldAnimate:!0};function ta(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return re(Kt(r,n))}function Le({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:o,last:s}){return e.reduce(function(a,l){const c=ta(l,r),p=l.descriptor.id;if(a.all.push(p),!Qi({target:c,destination:t,viewport:n,withDroppableDisplacement:!0}))return a.invisible[l.descriptor.id]=!0,a;const u=ea(p,s,o),f={draggableId:p,shouldAnimate:u};return a.visible[p]=f,a},{all:[],visible:{},invisible:{}})}function ra(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function kr({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const o=ra(e,{inHomeList:t});return{displaced:je,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function ot({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:o,last:s,index:i,forceShouldAnimate:a}){const l=De(e,r);if(i==null)return kr({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const c=t.find(m=>m.descriptor.index===i);if(!c)return kr({insideDestination:t,inHomeList:l,displacedBy:o,destination:r});const p=dt(e,t),d=t.indexOf(c),u=p.slice(d);return{displaced:Le({afterDragging:u,destination:r,displacedBy:o,last:s,viewport:n.frame,forceShouldAnimate:a}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:i}}}}function ce(e,t){return!!t.effected[e]}var na=({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const s=n.draggableId,a=r[s].descriptor.index;return ce(s,o)?e?a:a-1:e?a+1:a},oa=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const o=n.index,s=e?o+1:o-1,i=r[0].descriptor.index,a=r[r.length-1].descriptor.index,l=t?a:a+1;return s<i||s>l?null:s},sa=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:o,insideDestination:s,previousImpact:i,viewport:a,afterCritical:l})=>{const c=i.at;if(c||y(),c.type==="REORDER"){const d=oa({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:s});return d==null?null:ot({draggable:r,insideDestination:s,destination:o,viewport:
49a,last:i.displaced,displacedBy:i.displacedBy,index:d})}const p=na({isMovingForward:e,destination:o,displaced:i.displaced,draggables:n,combine:c.combine,afterCritical:l});return p==null?null:ot({draggable:r,insideDestination:s,destination:o,viewport:a,last:i.displaced,displacedBy:i.displacedBy,index:p})},ia=({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const o=!!(e.visible[r]||e.invisible[r]);return ce(r,t)?o?G:ye(n.point):o?n.point:G},aa=({afterCritical:e,impact:t,draggables:r})=>{const n=ct(t);n||y();const o=n.draggableId,s=r[o].page.borderBox.center,i=ia({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return W(s,i)};const eo=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,la=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,tr=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,Gr=({axis:e,moveRelativeTo:t,isMoving:r})=>fe(e.line,t.marginBox[e.end]+eo(e,r),tr(e,t.marginBox,r)),$r=({axis:e,moveRelativeTo:t,isMoving:r})=>fe(e.line,t.marginBox[e.start]-la(e,r),tr(e,t.marginBox,r)),ca=({axis:e,moveInto:t,isMoving:r})=>fe(e.line,t.contentBox[e.start]+eo(e,r),tr(e,t.contentBox,r));var da=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:o})=>{const s=we(n.descriptor.id,r),i=t.page,a=n.axis;if(!s.length)return ca({axis:a,moveInto:n.page,isMoving:i});const{displaced:l,displacedBy:c}=e,p=l.all[0];if(p){const u=r[p];if(ce(p,o))return $r({axis:a,moveRelativeTo:u.page,isMoving:i});const f=et(u.page,c.point);return $r({axis:a,moveRelativeTo:f,isMoving:i})}const d=s[s.length-1];if(d.descriptor.id===t.descriptor.id)return i.borderBox.center;if(ce(d.descriptor.id,o)){const u=et(d.page,ye(o.displacedBy.point));return Gr({axis:a,moveRelativeTo:u,isMoving:i})}return Gr({axis:a,moveRelativeTo:d.page,isMoving:i})},kt=(e,t)=>{const r=e.frame;return r?W(t,r.scroll.diff.displacement):t};const ua=({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:o})=>{const s=t.page.borderBox.center,i=e.at;return!r||!i?s:i.type==="REORDER"?da({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:o}):aa({impact:e,draggables:n,afterCritical:o})};var ut=e=>{const t=ua(e),r=e.droppable;return r?kt(r,t):t},to=(e,t)=>{const r=z(t,e.scroll.initial),n=ye(r);return{frame:re({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function Wr(e,t){return e.map(r=>t[r])}function pa(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}var fa=({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:o})=>{const s=to(t,W(t.scroll.current,o)),i=r.frame?Jt(r,W(r.frame.scroll.current,o)):r,a=e.displaced,l=Le({afterDragging:Wr(a.all,n),destination:r,displacedBy:e.displacedBy,viewport:s.frame,last:a,forceShouldAnimate:!1}),c=Le({afterDragging:Wr(a.all,n),destination:i,displacedBy:e.displacedBy,viewport:t.frame,last:a,forceShouldAnimate:!1}),p={},d={},u=[a,l,c];return a.all.forEach(m=>{const v=pa(m,u);if(v){d[m]=v;return}p[m]=!0}),{...e,displaced:{all:a.all,invisible:p,visible:d}}},ga=(e,t)=>W(e.scroll.diff.displacement,t),rr=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=ga(r,e),o=z(n,t.page.borderBox.center);return W(t.client.borderBox.center,o)},ro=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:o,onlyOnMainAxis:s=!1})=>{const i=z(r,e.page.borderBox.center),l={target:$e(e.page.borderBox,i),destination:t,withDroppableDisplacement:o,viewport:n};return s?Zi(l):Zn(l)},ma=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:o,viewport:s,previousPageBorderBoxCenter:i,previousClientSelection:a,afterCritical:l})=>{if(!r.isEnabled)return null;const c=we(r.descriptor.id,n),p=De(t,r),d=Hi({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:o})||sa({isMovingForward:e,isInHomeList:p,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:o,viewport:s,afterCritical:l});if(!d)return null;const u=ut({impact:d,draggable:t,droppable:r,draggables:n,afterCritical:l});if(ro({draggable:t,destination:r,newPageBorderBoxCenter:u,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:rr({pageBorderBoxCenter:u,draggable:t,viewport:s}),impact:d,scrollJumpRequest:null};const m=z(u,i),v=fa({impact:d,viewport:s,destination:r,draggables:n,maxScrollChange:m});return{clientSelection:a,impact:v,scrollJumpRequest:m}};const U=e=>{const t=e.subject.active;return t||y(),t};var ba=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:o})=>{const s=r.subject.active;if(!s)return null;const i=r.axis,a=te(s[i.start],s[i.end]),l=lt(n).filter(p=>p!==r).filter(p=>p.isEnabled).filter(p=>!!p.subject.active).filter(p=>Jn(o.frame)(U(p))).filter(p=>{const d=U(p);return e?s[i.crossAxisEnd]<d[i.crossAxisEnd]:d[i.crossAxisStart]<s[i.crossAxisStart]}).filter(p=>{const d=U(p),u=te(d[i.start],d[i.end]);return a(d[i.start])||a(d[i.end])||u(s[i.start])||u(s[i.end])}).sort((p,d)=>{const u=U(p)[i.crossAxisStart],f=U(d)[i.crossAxisStart];return e?u-f:f-u}).filter((p,d,u)=>
49U(p)[i.crossAxisStart]===U(u[0])[i.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];const c=l.filter(p=>te(U(p)[i.start],U(p)[i.end])(t[i.line]));return c.length===1?c[0]:c.length>1?c.sort((p,d)=>U(p)[i.start]-U(d)[i.start])[0]:l.sort((p,d)=>{const u=Fr(t,Mr(U(p))),f=Fr(t,Mr(U(d)));return u!==f?u-f:U(p)[i.start]-U(d)[i.start]})[0]};const Ur=(e,t)=>{const r=e.page.borderBox.center;return ce(e.descriptor.id,t)?z(r,t.displacedBy.point):r},ha=(e,t)=>{const r=e.page.borderBox;return ce(e.descriptor.id,t)?$e(r,ye(t.displacedBy.point)):r};var va=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:o})=>n.filter(i=>Zn({target:ha(i,o),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((i,a)=>{const l=Be(e,kt(r,Ur(i,o))),c=Be(e,kt(r,Ur(a,o)));return l<c?-1:c<l?1:i.descriptor.index-a.descriptor.index})[0]||null,We=k(function(t,r){const n=r[t.line];return{value:n,point:fe(t.line,n)}});const xa=(e,t,r)=>{const n=e.axis;if(e.descriptor.mode==="virtual")return fe(n.line,t[n.line]);const o=e.subject.page.contentBox[n.size],l=we(e.descriptor.id,r).reduce((c,p)=>c+p.client.marginBox[n.size],0)+t[n.line]-o;return l<=0?null:fe(n.line,l)},no=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),oo=(e,t,r)=>{const n=e.frame;De(t,e)&&y(),e.subject.withPlaceholder&&y();const o=We(e.axis,t.displaceBy).point,s=xa(e,o,r),i={placeholderSize:o,increasedBy:s,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const p=be({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:e.frame});return{...e,subject:p}}const a=s?W(n.scroll.max,s):n.scroll.max,l=no(n,a),c=be({page:e.subject.page,withPlaceholder:i,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},ya=e=>{const t=e.subject.withPlaceholder;t||y();const r=e.frame;if(!r){const i=be({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:i}}const n=t.oldFrameMaxScroll;n||y();const o=no(r,n),s=be({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:s,frame:o}};var wa=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:o,destination:s,viewport:i,afterCritical:a})=>{if(!t){if(r.length)return null;const d={displaced:je,displacedBy:Xn,at:{type:"REORDER",destination:{droppableId:s.descriptor.id,index:0}}},u=ut({impact:d,draggable:n,droppable:s,draggables:o,afterCritical:a}),f=De(n,s)?s:oo(s,n,o);return ro({draggable:n,destination:f,newPageBorderBoxCenter:u,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?d:null}const l=e[s.axis.line]<=t.page.borderBox.center[s.axis.line],c=(()=>{const d=t.descriptor.index;return t.descriptor.id===n.descriptor.id||l?d:d+1})(),p=We(s.axis,n.displaceBy);return ot({draggable:n,insideDestination:r,destination:s,viewport:i,displacedBy:p,last:je,index:c})},Da=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:o,droppables:s,viewport:i,afterCritical:a})=>{const l=ba({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:s,viewport:i});if(!l)return null;const c=we(l.descriptor.id,o),p=va({pageBorderBoxCenter:t,viewport:i,destination:l,insideDestination:c,afterCritical:a}),d=wa({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:o,moveRelativeTo:p,insideDestination:c,viewport:i,afterCritical:a});if(!d)return null;const u=ut({impact:d,draggable:r,droppable:l,draggables:o,afterCritical:a});return{clientSelection:rr({pageBorderBoxCenter:u,draggable:r,viewport:i}),impact:d,scrollJumpRequest:null}},Y=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const Ia=(e,t)=>{const r=Y(e);return r?t[r]:null};var Ca=({state:e,type:t})=>{const r=Ia(e.impact,e.dimensions.droppables),n=!!r,o=e.dimensions.droppables[e.critical.droppable.id],s=r||o,i=s.axis.direction,a=i==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||i==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(a&&!n)return null;const l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",c=e.dimensions.draggables[e.critical.draggable.id],p=e.current.page.borderBoxCenter,{draggables:d,droppables:u}=e.dimensions;return a?ma({isMovingForward:l,previousPageBorderBoxCenter:p,draggable:c,destination:s,draggables:d,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Da({isMovingForward:l,previousPageBorderBoxCenter:p,draggable:c,isOver:s,draggables:d,droppables:u,viewport:e.viewport,afterCritical:e.afterCritical})};function pe(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function so(e){const t=te(e.top,e.bottom),r=te(e.left,e.right);return function(o){return t(o.y)&&r(o.x)}}function Sa(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Ea({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,o=r.map(s=>{const i=s.axis,a=fe(s.axis.line,e.center[i.line],s.page.borderBox.center[i.crossAxisLine]);return{id:s.descriptor.id,distance:Be(n,a)}}).sort((s,i)=>i.distance-s.distance);return o[0]?o[0].id:null}function _a({pageBorderBox:e,draggable:t,droppables:r}){const n=lt(r).filter(o=>{if(!o.isEnabled)return!1;const s=o.subject.active;if(!s||!Sa(e,s))return!1;if(so(s)(e.center))return!0;const i=o.axis,a=s.center[i.crossAxisLine],l=e[i.crossAxisStart],c=e[i.crossAxisEnd],p=te(s[i.crossAxisStart],s[i.crossAxisEnd]),d=p(l),u=p(c);return!d&&!u?!0:d?l<a:c>a});return n.length?n.length===1?n[0].descriptor.id:Ea({pageBorderBox:e,draggable:t,candidates:n}):null}const io=(e,t)=>re($e(e,t));var Na=(e,t)=>{const r=e.frame;return r?io(t,r.scroll.diff.value):t};function ao({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function Aa({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var Ra=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:o,viewport:s,afterCritical:i})=>{const a=r.axis,l=We(r.axis,t.displaceBy),c=l.value,p=e[a.start],d=e[a.end],f=dt(t,n).find(v=>{const b=v.descriptor.id,w=v.page.borderBox.center[a.line],D=ce(b,i),C=ao({displaced:o,id:b});return D?C?d<=w:p<w-c:C?d<=w+c:p<w})||null,m=Aa({draggable:t,closest:f,inHomeList:De(t,r)});return ot({draggable:t,insideDestination:n,destination:r,viewport:s,last:o,displacedBy:l,index:m})};const Pa=4;var Oa=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:o,afterCritical:s})=>
49{if(!n.isCombineEnabled)return null;const i=n.axis,a=We(n.axis,e.displaceBy),l=a.value,c=t[i.start],p=t[i.end],u=dt(e,o).find(m=>{const v=m.descriptor.id,b=m.page.borderBox,D=b[i.size]/Pa,C=ce(v,s),I=ao({displaced:r.displaced,id:v});return C?I?p>b[i.start]+D&&p<b[i.end]-D:c>b[i.start]-l+D&&c<b[i.end]-l-D:I?p>b[i.start]+l+D&&p<b[i.end]+l-D:c>b[i.start]+D&&c<b[i.end]-D});return u?{displacedBy:a,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:u.descriptor.id,droppableId:n.descriptor.id}}}:null},lo=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:o,viewport:s,afterCritical:i})=>{const a=io(t.page.borderBox,e),l=_a({pageBorderBox:a,draggable:t,droppables:n});if(!l)return qi;const c=n[l],p=we(c.descriptor.id,r),d=Na(c,a);return Oa({pageBorderBoxWithDroppableScroll:d,draggable:t,previousImpact:o,destination:c,insideDestination:p,afterCritical:i})||Ra({pageBorderBoxWithDroppableScroll:d,draggable:t,destination:c,insideDestination:p,last:o.displaced,viewport:s,afterCritical:i})},nr=(e,t)=>({...e,[t.descriptor.id]:t});const Ta=({previousImpact:e,impact:t,droppables:r})=>{const n=Y(e),o=Y(t);if(!n||n===o)return r;const s=r[n];if(!s.subject.withPlaceholder)return r;const i=ya(s);return nr(r,i)};var Ba=({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:o})=>{const s=Ta({previousImpact:n,impact:o,droppables:r}),i=Y(o);if(!i)return s;const a=r[i];if(De(e,a)||a.subject.withPlaceholder)return s;const l=oo(a,e,t);return nr(s,l)},Pe=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:o,scrollJumpRequest:s})=>{const i=n||e.viewport,a=r||e.dimensions,l=t||e.current.client.selection,c=z(l,e.initial.client.selection),p={offset:c,selection:l,borderBoxCenter:W(e.initial.client.borderBoxCenter,c)},d={selection:W(p.selection,i.scroll.current),borderBoxCenter:W(p.borderBoxCenter,i.scroll.current),offset:W(p.offset,i.scroll.diff.value)},u={client:p,page:d};if(e.phase==="COLLECTING")return{...e,dimensions:a,viewport:i,current:u};const f=a.draggables[e.critical.draggable.id],m=o||lo({pageOffset:d.offset,draggable:f,draggables:a.draggables,droppables:a.droppables,previousImpact:e.impact,viewport:i,afterCritical:e.afterCritical}),v=Ba({draggable:f,impact:m,previousImpact:e.impact,draggables:a.draggables,droppables:a.droppables});return{...e,current:u,dimensions:{draggables:a.draggables,droppables:v},impact:m,viewport:i,scrollJumpRequest:s||null,forceShouldAnimate:s?!1:null}};function ja(e,t){return e.map(r=>t[r])}var co=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:o})=>{const s=e.displaced,i=ja(s.all,r),a=Le({afterDragging:i,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:s});return{...e,displaced:a}},uo=({impact:e,draggable:t,droppable:r,draggables:n,viewport:o,afterCritical:s})=>{const i=ut({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:s});return rr({pageBorderBoxCenter:i,draggable:t,viewport:o})},po=({state:e,dimensions:t,viewport:r})=>{e.movementMode!=="SNAP"&&y();const n=e.impact,o=r||e.viewport,s=t||e.dimensions,{draggables:i,droppables:a}=s,l=i[e.critical.draggable.id],c=Y(n);c||y();const p=a[c],d=co({impact:n,viewport:o,destination:p,draggables:i}),u=uo({impact:d,draggable:l,droppable:p,draggables:i,viewport:o,afterCritical:e.afterCritical});return Pe({impact:d,clientSelection:u,state:e,dimensions:s,viewport:o})},La=e=>({index:e.index,droppableId:e.droppableId}),fo=({draggable:e,home:t,draggables:r,viewport:n})=>{const o=We(t.axis,e.displaceBy),s=we(t.descriptor.id,r),i=s.indexOf(e);i===-1&&y();const a=s.slice(i+1),l=a.reduce((u,f)=>(u[f.descriptor.id]=!0,u),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:o,effected:l};return{impact:{displaced:Le({afterDragging:a,destination:t,displacedBy:o,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:La(e.descriptor)}},afterCritical:c}},Fa=(e,t)=>({draggables:e.draggables,droppables:nr(e.droppables,t)}),Ma=({draggable:e,offset:t,initialWindowScroll:r})=>{const n=et(e.client,t),o=tt(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:o}},ka=e=>{const t=e.frame;return t||y(),t},Ga=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(o=>{const s=o.descriptor.droppableId,i=t[s],l=ka(i).scroll.diff.value,c=W(n,l);return Ma({draggable:o,offset:c,initialWindowScroll:r.scroll.initial})})},$a=({state:e,published:t})=>{const r=t.modified.map(w=>{const D=e.dimensions.droppables[w.droppableId];return Jt(D,w.scroll)}),n={...e.dimensions.droppables,...Yn(r)},o=Kn(Ga({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),s={...e.dimensions.draggables,...o};
49t.removals.forEach(w=>{delete s[w]});const i={droppables:n,draggables:s},a=Y(e.impact),l=a?i.droppables[a]:null,c=i.draggables[e.critical.draggable.id],p=i.droppables[e.critical.droppable.id],{impact:d,afterCritical:u}=fo({draggable:c,home:p,draggables:s,viewport:e.viewport}),f=l&&l.isCombineEnabled?e.impact:d,m=lo({pageOffset:e.current.page.offset,draggable:i.draggables[e.critical.draggable.id],draggables:i.draggables,droppables:i.droppables,previousImpact:f,viewport:e.viewport,afterCritical:u}),v={...e,phase:"DRAGGING",impact:m,onLiftImpact:d,dimensions:i,afterCritical:u,forceShouldAnimate:!1};return e.phase==="COLLECTING"?v:{...v,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const Gt=e=>e.movementMode==="SNAP",Nt=(e,t,r)=>{const n=Fa(e.dimensions,t);return!Gt(e)||r?Pe({state:e,dimensions:n}):po({state:e,dimensions:n})};function At(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const Vr={phase:"IDLE",completed:null,shouldFlush:!1};var Wa=(e=Vr,t)=>{if(t.type==="FLUSH")return{...Vr,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&y();const{critical:r,clientSelection:n,viewport:o,dimensions:s,movementMode:i}=t.payload,a=s.draggables[r.draggable.id],l=s.droppables[r.droppable.id],c={selection:n,borderBoxCenter:a.client.borderBox.center,offset:G},p={client:c,page:{selection:W(c.selection,o.scroll.initial),borderBoxCenter:W(c.selection,o.scroll.initial),offset:W(c.selection,o.scroll.diff.value)}},d=lt(s.droppables).every(v=>!v.isFixedOnPage),{impact:u,afterCritical:f}=fo({draggable:a,home:l,draggables:s.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:i,dimensions:s,initial:p,current:p,isWindowScrollAllowed:d,impact:u,afterCritical:f,onLiftImpact:u,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&y(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||y(),$a({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;pe(e)||y();const{client:r}=t.payload;return le(r,e.current.client.selection)?e:Pe({state:e,clientSelection:r,impact:Gt(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return At(e);pe(e)||y();const{id:r,newScroll:n}=t.payload,o=e.dimensions.droppables[r];if(!o)return e;const s=Jt(o,n);return Nt(e,s,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;pe(e)||y();const{id:r,isEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||y(),o.isEnabled===n&&y();const s={...o,isEnabled:n};return Nt(e,s,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;pe(e)||y();const{id:r,isCombineEnabled:n}=t.payload,o=e.dimensions.droppables[r];o||y(),o.isCombineEnabled===n&&y();const s={...o,isCombineEnabled:n};return Nt(e,s,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;pe(e)||y(),e.isWindowScrollAllowed||y();const r=t.payload.newScroll;if(le(e.viewport.scroll.current,r))return At(e);const n=to(e.viewport,r);return Gt(e)?po({state:e,viewport:n}):Pe({state:e,viewport:n})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!pe(e))return e;const r=t.payload.maxScroll;if(le(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&y();const r=Ca({state:e,type:t.type});return r?Pe({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&y(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:n,newHomeClientOffset:o}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||y(),{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:o,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};function T(e,t){return e instanceof Object&&"type"in e&&e.type===t}const Ua=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),Va=e=>({type:"LIFT",payload:e}),Ha=e=>({type:"INITIAL_PUBLISH",payload:e}),qa=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),za=()=>({type:"COLLECTION_STARTING",payload:null}),Ya=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),Ka=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),Xa=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),go=e=>({type:"MOVE",payload:e}),Ja=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),Qa=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),Za=()=>({type:"MOVE_UP",payload:null}),el=()=>({type:"MOVE_DOWN",payload:null}),tl=()=>({type:"MOVE_RIGHT",payload:null}),rl=()=>({type:"MOVE_LEFT",payload:null}),or=()=>({type:"FLUSH",payload:null}),nl=e=>({type:"DROP_ANIMATE",payload:e}),sr=e=>({type:"DROP_COMPLETE",payload:e}),mo=e=>({type:"DROP",payload:e}),ol=e=>({type:"DROP_PENDING",payload:e}),bo=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var sl=e=>({getState:t,dispatch:r})=>n=>o=>{if(!T(o,"LIFT")){n(o);return}
49const{id:s,clientSelection:i,movementMode:a}=o.payload,l=t();l.phase==="DROP_ANIMATING"&&r(sr({completed:l.completed})),t().phase!=="IDLE"&&y(),r(or()),r(Ua({draggableId:s,movementMode:a}));const p={draggableId:s,scrollOptions:{shouldPublishImmediately:a==="SNAP"}},{critical:d,dimensions:u,viewport:f}=e.startPublishing(p);r(Ha({critical:d,dimensions:u,clientSelection:i,movementMode:a,viewport:f}))},il=e=>()=>t=>r=>{T(r,"INITIAL_PUBLISH")&&e.dragging(),T(r,"DROP_ANIMATE")&&e.dropping(r.payload.completed.result.reason),(T(r,"FLUSH")||T(r,"DROP_COMPLETE"))&&e.resting(),t(r)};const ir={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fe={opacity:{drop:0,combining:.7},scale:{drop:.75}},ho={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},de=`${ho.outOfTheWay}s ${ir.outOfTheWay}`,Oe={fluid:`opacity ${de}`,snap:`transform ${de}, opacity ${de}`,drop:e=>{const t=`${e}s ${ir.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${de}`,placeholder:`height ${de}, width ${de}, margin ${de}`},Hr=e=>le(e,G)?void 0:`translate(${e.x}px, ${e.y}px)`,$t={moveTo:Hr,drop:(e,t)=>{const r=Hr(e);if(r)return t?`${r} scale(${Fe.scale.drop})`:r}},{minDropTime:Wt,maxDropTime:vo}=ho,al=vo-Wt,qr=1500,ll=.6;var cl=({current:e,destination:t,reason:r})=>{const n=Be(e,t);if(n<=0)return Wt;if(n>=qr)return vo;const o=n/qr,s=Wt+al*o,i=r==="CANCEL"?s*ll:s;return Number(i.toFixed(2))},dl=({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:o})=>{const{draggables:s,droppables:i}=r,a=Y(e),l=a?i[a]:null,c=i[t.descriptor.droppableId],p=uo({impact:e,draggable:t,draggables:s,afterCritical:o,droppable:l||c,viewport:n});return z(p,t.client.borderBox.center)},ul=({draggables:e,reason:t,lastImpact:r,home:n,viewport:o,onLiftImpact:s})=>!r.at||t!=="DROP"?{impact:co({draggables:e,impact:s,destination:n,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:je},didDropInsideDroppable:!0};const pl=({getState:e,dispatch:t})=>r=>n=>{if(!T(n,"DROP")){r(n);return}const o=e(),s=n.payload.reason;if(o.phase==="COLLECTING"){t(ol({reason:s}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&y(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||y();const a=o.critical,l=o.dimensions,c=l.draggables[o.critical.draggable.id],{impact:p,didDropInsideDroppable:d}=ul({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),u=d?Qt(p):null,f=d?ct(p):null,m={index:a.draggable.index,droppableId:a.droppable.id},v={draggableId:c.descriptor.id,type:c.descriptor.type,source:m,reason:s,mode:o.movementMode,destination:u,combine:f},b=dl({impact:p,draggable:c,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),w={critical:o.critical,afterCritical:o.afterCritical,result:v,impact:p};if(!(!le(o.current.client.offset,b)||!!v.combine)){t(sr({completed:w}));return}const C=cl({current:o.current.client.offset,destination:b,reason:s});t(nl({newHomeClientOffset:b,dropDuration:C,completed:w}))};var xo=()=>({x:window.pageXOffset,y:window.pageYOffset});function fl(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function gl({onWindowScroll:e}){function t(){e(xo())}const r=Te(t),n=fl(r);let o=ae;function s(){return o!==ae}function i(){s()&&y(),o=ee(window,[n])}function a(){s()||y(),r.cancel(),o(),o=ae}return{start:i,stop:a,isActive:s}}const ml=e=>T(e,"DROP_COMPLETE")||T(e,"DROP_ANIMATE")||T(e,"FLUSH"),bl=e=>{const t=gl({onWindowScroll:r=>{e.dispatch(Ja({newScroll:r}))}});return r=>n=>{!t.isActive()&&T(n,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&ml(n)&&t.stop(),r(n)}};var hl=e=>{let t=!1,r=!1;const n=setTimeout(()=>{r=!0}),o=s=>{t||r||(t=!0,e(s),clearTimeout(n))};return o.wasCalled=()=>t,o},vl=()=>{const e=[],t=o=>{const s=e.findIndex(a=>a.timerId===o);s===-1&&y();const[i]=e.splice(s,1);i.callback()};return{add:o=>{const s=setTimeout(()=>t(s)),i={timerId:s,callback:o};e.push(i)},flush:()=>
49{if(!e.length)return;const o=[...e];e.length=0,o.forEach(s=>{clearTimeout(s.timerId),s.callback()})}}};const xl=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,yl=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,wl=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n},Ee=(e,t)=>{t()},Ve=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function Rt(e,t,r,n){if(!e){r(n(t));return}const o=hl(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}var Dl=(e,t)=>{const r=vl();let n=null;const o=(d,u)=>{n&&y(),Ee("onBeforeCapture",()=>{const f=e().onBeforeCapture;f&&f({draggableId:d,mode:u})})},s=(d,u)=>{n&&y(),Ee("onBeforeDragStart",()=>{const f=e().onBeforeDragStart;f&&f(Ve(d,u))})},i=(d,u)=>{n&&y();const f=Ve(d,u);n={mode:u,lastCritical:d,lastLocation:f.source,lastCombine:null},r.add(()=>{Ee("onDragStart",()=>Rt(e().onDragStart,f,t,Ye.onDragStart))})},a=(d,u)=>{const f=Qt(u),m=ct(u);n||y();const v=!wl(d,n.lastCritical);v&&(n.lastCritical=d);const b=!xl(n.lastLocation,f);b&&(n.lastLocation=f);const w=!yl(n.lastCombine,m);if(w&&(n.lastCombine=m),!v&&!b&&!w)return;const D={...Ve(d,n.mode),combine:m,destination:f};r.add(()=>{Ee("onDragUpdate",()=>Rt(e().onDragUpdate,D,t,Ye.onDragUpdate))})},l=()=>{n||y(),r.flush()},c=d=>{n||y(),n=null,Ee("onDragEnd",()=>Rt(e().onDragEnd,d,t,Ye.onDragEnd))};return{beforeCapture:o,beforeStart:s,start:i,update:a,flush:l,drop:c,abort:()=>{if(!n)return;const d={...Ve(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};c(d)}}},Il=(e,t)=>{const r=Dl(e,t);return n=>o=>s=>{if(T(s,"BEFORE_INITIAL_CAPTURE")){r.beforeCapture(s.payload.draggableId,s.payload.movementMode);return}if(T(s,"INITIAL_PUBLISH")){const a=s.payload.critical;r.beforeStart(a,s.payload.movementMode),o(s),r.start(a,s.payload.movementMode);return}if(T(s,"DROP_COMPLETE")){const a=s.payload.completed.result;r.flush(),o(s),r.drop(a);return}if(o(s),T(s,"FLUSH")){r.abort();return}const i=n.getState();i.phase==="DRAGGING"&&r.update(i.critical,i.impact)}};const Cl=e=>t=>r=>{if(!T(r,"DROP_ANIMATION_FINISHED")){t(r);return}const n=e.getState();n.phase!=="DROP_ANIMATING"&&y(),e.dispatch(sr({completed:n.completed}))},Sl=e=>{let t=null,r=null;function n(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return o=>s=>{if((T(s,"FLUSH")||T(s,"DROP_COMPLETE")||T(s,"DROP_ANIMATION_FINISHED"))&&n(),o(s),!T(s,"DROP_ANIMATE"))return;const i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(bo())}};r=requestAnimationFrame(()=>{r=null,t=ee(window,[i])})}};var El=e=>()=>t=>r=>{(T(r,"DROP_COMPLETE")||T(r,"FLUSH")||T(r,"DROP_ANIMATE"))&&e.stopPublishing(),t(r)},_l=e=>{let t=!1;return()=>r=>n=>{if(T(n,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),!!t){if(T(n,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(T(n,"DROP_COMPLETE")){t=!1;const o=n.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const Nl=e=>T(e,"DROP_COMPLETE")||T(e,"DROP_ANIMATE")||T(e,"FLUSH");var Al=e=>t=>r=>n=>{if(Nl(n)){e.stop(),r(n);return}if(T(n,"INITIAL_PUBLISH")){r(n);const o=t.getState();o.phase!=="DRAGGING"&&y(),e.start(o);return}r(n),e.scroll(t.getState())};const Rl=e=>t=>r=>{if(t(r),!T(r,"PUBLISH_WHILE_DRAGGING"))return;const n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch(mo({reason:n.reason})))},Pl=Bn;var Ol=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:o,autoScroller:s})=>Tn(Wa,Pl(Rs(il(r),El(e),sl(e),pl,Cl,Sl,Rl,Al(s),bl,_l(t),Il(n,o))));const Pt=()=>({additions:{},removals:{},modified:{}});function Tl({registry:e,callbacks:t}){let r=Pt(),n=null;const o=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null;const{additions:l,removals:c,modified:p}=r,d=Object.keys(l).map(m=>e.draggable.getById(m).getDimension(G)).sort((m,v)=>m.descriptor.index-v.descriptor.index),u=Object.keys(p).map(m=>{const b=e.droppable.getById(m).callbacks.getScrollWhileDragging();return{droppableId:m,scroll:b}}),f={additions:d,removals:Object.keys(c),modified:u};r=Pt(),t.publish(f)}))};return{add:l=>{const c=l.descriptor.id;r.additions[c]=l,r.modified[l.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],o()},remove:l=>{const c=l.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],o()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r=Pt())}}}var yo=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const o=z({x:t,y:e},{x:n,y:r});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},wo=()=>{const e=document.documentElement;return e||y(),e},Do=()=>{const e=wo();return yo({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Bl=()=>{const e=xo(),t=Do(),r=e.y,n=e.x,o=wo(),s=o.clientWidth,i=o.clientHeight,a=n+s,l=r+i;return{frame:re({top:r,left:n,right:a,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:G,displacement:G}}}},jl=({critical:e,scrollOptions:t,registry:r})=>{const n=Bl(),o=n.scroll.current,s=e.droppable,i=r.droppable.getAllByType(s.type).map(p=>p.callbacks.getDimensionAndWatchScroll(o,t)),a=r.draggable.getAllByType(e.draggable.type).map(p=>p.getDimension(o));return{dimensions:{draggables:Kn(a),droppables:Yn(i)},critical:e,viewport:n}};function zr(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var Ll=(e,t)=>{let r=null;const n=Tl({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=(u,f)=>{e.droppable.exists(u)||y(),r&&t.updateDroppableIsEnabled({id:u,isEnabled:f})},s=(u,f)=>
49{r&&(e.droppable.exists(u)||y(),t.updateDroppableIsCombineEnabled({id:u,isCombineEnabled:f}))},i=(u,f)=>{r&&(e.droppable.exists(u)||y(),t.updateDroppableScroll({id:u,newScroll:f}))},a=(u,f)=>{r&&e.droppable.getById(u).callbacks.scroll(f)},l=()=>{if(!r)return;n.stop();const u=r.critical.droppable;e.droppable.getAllByType(u.type).forEach(f=>f.callbacks.dragStopped()),r.unsubscribe(),r=null},c=u=>{r||y();const f=r.critical.draggable;u.type==="ADDITION"&&zr(e,f,u.value)&&n.add(u.value),u.type==="REMOVAL"&&zr(e,f,u.value)&&n.remove(u.value)};return{updateDroppableIsEnabled:o,updateDroppableIsCombineEnabled:s,scrollDroppable:a,updateDroppableScroll:i,startPublishing:u=>{r&&y();const f=e.draggable.getById(u.draggableId),m=e.droppable.getById(f.descriptor.droppableId),v={draggable:f.descriptor,droppable:m.descriptor},b=e.subscribe(c);return r={critical:v,unsubscribe:b},jl({critical:v,registry:e,scrollOptions:u.scrollOptions})},stopPublishing:l}},Io=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",Fl=e=>{window.scrollBy(e.x,e.y)};const Ml=k(e=>lt(e).filter(t=>!(!t.isEnabled||!t.frame))),kl=(e,t)=>Ml(t).find(n=>(n.frame||y(),so(n.frame.pageMarginBox)(e)))||null;var Gl=({center:e,destination:t,droppables:r})=>{if(t){const o=r[t];return o.frame?o:null}return kl(e,r)};const Me={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var $l=(e,t,r=()=>Me)=>{const n=r(),o=e[t.size]*n.startFromPercentage,s=e[t.size]*n.maxScrollAtPercentage;return{startScrollingFrom:o,maxScrollValueAt:s}},Co=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;return n===0?0:(r-e)/n},ar=1,Wl=(e,t,r=()=>Me)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return ar;const s=1-Co({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),i=n.maxPixelScroll*n.ease(s);return Math.ceil(i)},Ul=(e,t,r)=>{const n=r(),o=n.durationDampening.accelerateAt,s=n.durationDampening.stopDampeningAt,i=t,a=s,c=Date.now()-i;if(c>=s)return e;if(c<o)return ar;const p=Co({startOfRange:o,endOfRange:a,current:c}),d=e*n.ease(p);return Math.ceil(d)},Yr=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:o})=>{const s=Wl(e,t,o);return s===0?0:n?Math.max(Ul(s,r,o),ar):s},Kr=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:o,getAutoScrollerOptions:s})=>{const i=$l(e,n,s);return t[n.end]<t[n.start]?Yr({distanceToEdge:t[n.end],thresholds:i,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:s}):-1*Yr({distanceToEdge:t[n.start],thresholds:i,dragStartTime:r,shouldUseTimeDampening:o,getAutoScrollerOptions:s})},Vl=({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,o=t.width>e.width;return!o&&!n?r:o&&n?null:{x:o?0:r.x,y:n?0:r.y}};const Hl=zn(e=>e===0?0:e);var So=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:s})=>{const i={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},a=Kr({container:t,distanceToEdges:i,dragStartTime:e,axis:Zt,shouldUseTimeDampening:o,getAutoScrollerOptions:s}),l=Kr({container:t,distanceToEdges:i,dragStartTime:e,axis:Qn,shouldUseTimeDampening:o,getAutoScrollerOptions:s}),c=Hl({x:l,y:a});if(le(c,G))return null;const p=Vl({container:t,subject:r,proposedScroll:c});return p?le(p,G)?null:p:null};const ql=zn(e=>e===0?0:e>0?1:-1),lr=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return({current:t,max:r,change:n})=>{const o=W(t,n),s={x:e(o.x,r.x),y:e(o.y,r.y)};return le(s,G)?null:s}})(),Eo=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=ql(r),s=lr({max:n,current:t,change:o});return!s||o.x!==0&&s.x===0||o.y!==0&&s.y===0},cr=(e,t)=>Eo({current:e.scroll.current,max:e.scroll.max,change:t}),zl=(e,t)=>{if(!cr(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return lr({current:n,max:r,change:t})},dr=(e,t)=>{const r=e.frame;return r?Eo({current:r.scroll.current,max:r.scroll.max,change:t}):!1},Yl=(e,t)=>
49{const r=e.frame;return!r||!dr(e,t)?null:lr({current:r.scroll.current,max:r.scroll.max,change:t})};var Kl=({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:s})=>{const i=So({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:s});return i&&cr(e,i)?i:null},Xl=({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:s})=>{const i=e.frame;if(!i)return null;const a=So({dragStartTime:n,container:i.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:o,getAutoScrollerOptions:s});return a&&dr(e,a)?a:null},Xr=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:o,getAutoScrollerOptions:s})=>{const i=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const d=e.viewport,u=Kl({dragStartTime:t,viewport:d,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:s});if(u){n(u);return}}const c=Gl({center:i,destination:Y(e.impact),droppables:e.dimensions.droppables});if(!c)return;const p=Xl({dragStartTime:t,droppable:c,subject:l,center:i,shouldUseTimeDampening:r,getAutoScrollerOptions:s});p&&o(c.descriptor.id,p)},Jl=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Me})=>{const n=Te(e),o=Te(t);let s=null;const i=c=>{s||y();const{shouldUseTimeDampening:p,dragStartTime:d}=s;Xr({state:c,scrollWindow:n,scrollDroppable:o,dragStartTime:d,shouldUseTimeDampening:p,getAutoScrollerOptions:r})};return{start:c=>{s&&y();const p=Date.now();let d=!1;const u=()=>{d=!0};Xr({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:u,scrollDroppable:u,getAutoScrollerOptions:r}),s={dragStartTime:p,shouldUseTimeDampening:d},d&&i(c)},stop:()=>{s&&(n.cancel(),o.cancel(),s=null)},scroll:i}},Ql=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(a,l)=>{const c=W(a.current.client.selection,l);e({client:c})},o=(a,l)=>{if(!dr(a,l))return l;const c=Yl(a,l);if(!c)return t(a.descriptor.id,l),null;const p=z(l,c);return t(a.descriptor.id,p),z(l,p)},s=(a,l,c)=>{if(!a||!cr(l,c))return c;const p=zl(l,c);if(!p)return r(c),null;const d=z(c,p);return r(d),z(c,d)};return a=>{const l=a.scrollJumpRequest;if(!l)return;const c=Y(a.impact);c||y();const p=o(a.dimensions.droppables[c],l);if(!p)return;const d=a.viewport,u=s(a.isWindowScrollAllowed,d,p);u&&n(a,u)}},Zl=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const o=Jl({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),s=Ql({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(n().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){o.scroll(l);return}l.scrollJumpRequest&&s(l)}},start:o.start,stop:o.stop}};const he="data-rfd",ve=(()=>{const e=`${he}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),Ut=(()=>{const e=`${he}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),ec=(()=>{const e=`${he}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),Jr={contextId:`${he}-scroll-container-context-id`},tc=e=>t=>`[${t}="${e}"]`,_e=(e,t)=>e.map(r=>{const n=r.styles[t];return n?`${r.selector} { ${n} }`:""}).join(" "),rc="pointer-events: none;";var nc=e=>{const t=tc(e),r=(()=>{const a=`
50      cursor: -webkit-grab;
51      cursor: grab;
52    `;return{selector:t(ve.contextId),styles:{always:`
53          -webkit-touch-callout: none;
54          -webkit-tap-highlight-color: rgba(0,0,0,0);
55          touch-action: manipulation;
56        `,resting:a,dragging:rc,dropAnimating:a}}})(),n=(()=>{const a=`
57      transition: ${Oe.outOfTheWay};
58    `;return{selector:t(Ut.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}})(),o={selector:t(ec.contextId),styles:{always:"overflow-anchor: none;"}},i=[n,r,o,{selector:"body",styles:{dragging:`
59        cursor: grabbing;
60        cursor: -webkit-grabbing;
61        user-select: none;
62        -webkit-user-select: none;
63        -moz-user-select: none;
64        -ms-user-select: none;
65        overflow-anchor: none;
66      `}}];return{always:_e(i,"always"),resting:_e(i,"resting"),dragging:_e(i,"dragging"),dropAnimating:_e(i,"dropAnimating"),userCancel:_e(i,"userCancel")}};const K=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,Ot=()=>{const e=document.querySelector("head");return e||y(),e},Qr=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function oc(e,t){const r=P(()=>nc(e),[e]),n=h.useRef(null),o=h.useRef(null),s=S(k(d=>{const u=o.current;u||y(),u.textContent=d}),[]),i=S(d=>{const u=n.current;u||y(),u.textContent=d},[]);K(()=>{!n.current&&!o.current||y();const d=Qr(t),u=Qr(t);return n.current=d,o.current=u,d.setAttribute(`${he}-always`,e),u.setAttribute(`${he}-dynamic`,e),Ot().appendChild(d),Ot().appendChild(u),i(r.always),s(r.resting),()=>{const f=m=>{const v=m.current;v||y(),Ot().removeChild(v),m.current=null};f(n),f(o)}},[t,i,s,r.always,r.resting,e]);const a=S(()=>s(r.dragging),[s,r.dragging]),l=S(d=>
66{if(d==="DROP"){s(r.dropAnimating);return}s(r.userCancel)},[s,r.dropAnimating,r.userCancel]),c=S(()=>{o.current&&s(r.resting)},[s,r.resting]);return P(()=>({dragging:a,dropping:l,resting:c}),[a,l,c])}function _o(e,t){return Array.from(e.querySelectorAll(t))}var No=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function pt(e){return e instanceof No(e).HTMLElement}function sc(e,t){const r=`[${ve.contextId}="${e}"]`,n=_o(document,r);if(!n.length)return null;const o=n.find(s=>s.getAttribute(ve.draggableId)===t);return!o||!pt(o)?null:o}function ic(e){const t=h.useRef({}),r=h.useRef(null),n=h.useRef(null),o=h.useRef(!1),s=S(function(u,f){const m={id:u,focus:f};return t.current[u]=m,function(){const b=t.current;b[u]!==m&&delete b[u]}},[]),i=S(function(u){const f=sc(e,u);f&&f!==document.activeElement&&f.focus()},[e]),a=S(function(u,f){r.current===u&&(r.current=f)},[]),l=S(function(){n.current||o.current&&(n.current=requestAnimationFrame(()=>{n.current=null;const u=r.current;u&&i(u)}))},[i]),c=S(function(u){r.current=null;const f=document.activeElement;f&&f.getAttribute(ve.draggableId)===u&&(r.current=u)},[]);return K(()=>(o.current=!0,function(){o.current=!1;const u=n.current;u&&cancelAnimationFrame(u)}),[]),P(()=>({register:s,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:a}),[s,c,l,a])}function ac(){const e={draggables:{},droppables:{}},t=[];function r(d){return t.push(d),function(){const f=t.indexOf(d);f!==-1&&t.splice(f,1)}}function n(d){t.length&&t.forEach(u=>u(d))}function o(d){return e.draggables[d]||null}function s(d){const u=o(d);return u||y(),u}const i={register:d=>{e.draggables[d.descriptor.id]=d,n({type:"ADDITION",value:d})},update:(d,u)=>{const f=e.draggables[u.descriptor.id];f&&f.uniqueId===d.uniqueId&&(delete e.draggables[u.descriptor.id],e.draggables[d.descriptor.id]=d)},unregister:d=>{const u=d.descriptor.id,f=o(u);f&&d.uniqueId===f.uniqueId&&(delete e.draggables[u],e.droppables[d.descriptor.droppableId]&&n({type:"REMOVAL",value:d}))},getById:s,findById:o,exists:d=>!!o(d),getAllByType:d=>Object.values(e.draggables).filter(u=>u.descriptor.type===d)};function a(d){return e.droppables[d]||null}function l(d){const u=a(d);return u||y(),u}const c={register:d=>{e.droppables[d.descriptor.id]=d},unregister:d=>{const u=a(d.descriptor.id);u&&d.uniqueId===u.uniqueId&&delete e.droppables[d.descriptor.id]},getById:l,findById:a,exists:d=>!!a(d),getAllByType:d=>Object.values(e.droppables).filter(u=>u.descriptor.type===d)};function p(){e.draggables={},e.droppables={},t.length=0}return{draggable:i,droppable:c,subscribe:r,clean:p}}function lc(){const e=P(ac,[]);return h.useEffect(()=>function(){e.clean()},[e]),e}var ur=M.createContext(null),st=()=>{const e=document.body;return e||y(),e};const cc={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},dc=e=>`rfd-announcement-${e}`;function uc(e){const t=P(()=>dc(e),[e]),r=h.useRef(null);return h.useEffect(function(){const s=document.createElement("div");return r.current=s,s.id=t,s.setAttribute("aria-live","assertive"),s.setAttribute("aria-atomic","true"),Qe(s.style,cc),st().appendChild(s),function(){setTimeout(function(){const l=st();l.contains(s)&&l.removeChild(s),s===r.current&&(r.current=null)})}},[t]),S(o=>{const s=r.current;if(s){s.textContent=o;return}},[])}const pc={separator:"::"};function pr(e,t=pc){const r=M.useId();return P(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}function fc({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function gc({contextId:e,text:t}){const r=pr("hidden-text",{separator:"-"}),n=P(()=>fc({contextId:e,uniqueId:r}),[r,e]);return h.useEffect(function(){const s=document.createElement("div");return s.id=n,s.textContent=t,s.style.display="none",st().appendChild(s),function(){const a=st();a.contains(s)&&a.removeChild(s)}},[n,t]),n}var ft=M.createContext(null);function Ao(e){const t=h.useRef(e);return h.useEffect(()=>{t.current=e}),t}function mc(){let e=null;function t(){return!!e}function r(i){return i===e}function n(i){e&&y();const a={abandon:i};return e=a,a}function o(){e||y(),e=null}function s(){e&&(e.abandon(),o())}return{isClaimed:t,isActive:r,claim:n,release:o,tryAbandon:s}}function ke(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const bc=9,hc=13,fr=27,Ro=32,vc=33,xc=34,yc=35,wc=36,Dc=37,Ic=38,Cc=39,Sc=40,Ec={[hc]:!0,[bc]:!0};var Po=e=>{Ec[e.keyCode]&&e.preventDefault()};const gt=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(n=>`on${n}`in document)||e})(),Oo=0,Zr=5;function _c(e,t){return Math.abs(t.x-e.x)>=Zr||Math.abs(t.y-e.y)>=Zr}const en={type:"IDLE"};function Nc({cancel:e,completed:t,getPhase:r,setPhase:n}
66){return[{eventName:"mousemove",fn:o=>{const{button:s,clientX:i,clientY:a}=o;if(s!==Oo)return;const l={x:i,y:a},c=r();if(c.type==="DRAGGING"){o.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&y();const p=c.point;if(!_c(p,l))return;o.preventDefault();const d=c.actions.fluidLift(l);n({type:"DRAGGING",actions:d})}},{eventName:"mouseup",fn:o=>{const s=r();if(s.type!=="DRAGGING"){e();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:o=>{r().type==="DRAGGING"&&o.preventDefault(),e()}},{eventName:"keydown",fn:o=>{if(r().type==="PENDING"){e();return}if(o.keyCode===fr){o.preventDefault(),e();return}Po(o)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:o=>{const s=r();if(s.type==="IDLE"&&y(),s.actions.shouldRespectForcePress()){e();return}o.preventDefault()}},{eventName:gt,fn:e}]}function Ac(e){const t=h.useRef(en),r=h.useRef(ae),n=P(()=>({eventName:"mousedown",fn:function(d){if(d.defaultPrevented||d.button!==Oo||d.ctrlKey||d.metaKey||d.shiftKey||d.altKey)return;const u=e.findClosestDraggableId(d);if(!u)return;const f=e.tryGetLock(u,i,{sourceEvent:d});if(!f)return;d.preventDefault();const m={x:d.clientX,y:d.clientY};r.current(),c(f,m)}}),[e]),o=P(()=>({eventName:"webkitmouseforcewillbegin",fn:p=>{if(p.defaultPrevented)return;const d=e.findClosestDraggableId(p);if(!d)return;const u=e.findOptionsForDraggable(d);u&&(u.shouldRespectForcePress||e.canGetLock(d)&&p.preventDefault())}}),[e]),s=S(function(){const d={passive:!1,capture:!0};r.current=ee(window,[o,n],d)},[o,n]),i=S(()=>{t.current.type!=="IDLE"&&(t.current=en,r.current(),s())},[s]),a=S(()=>{const p=t.current;i(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[i]),l=S(function(){const d={capture:!0,passive:!1},u=Nc({cancel:a,completed:i,getPhase:()=>t.current,setPhase:f=>{t.current=f}});r.current=ee(window,u,d)},[a,i]),c=S(function(d,u){t.current.type!=="IDLE"&&y(),t.current={type:"PENDING",point:u,actions:d},l()},[l]);K(function(){return s(),function(){r.current()}},[s])}function Rc(){}const Pc={[xc]:!0,[vc]:!0,[wc]:!0,[yc]:!0};function Oc(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:o=>{if(o.keyCode===fr){o.preventDefault(),r();return}if(o.keyCode===Ro){o.preventDefault(),n();return}if(o.keyCode===Sc){o.preventDefault(),e.moveDown();return}if(o.keyCode===Ic){o.preventDefault(),e.moveUp();return}if(o.keyCode===Cc){o.preventDefault(),e.moveRight();return}if(o.keyCode===Dc){o.preventDefault(),e.moveLeft();return}if(Pc[o.keyCode]){o.preventDefault();return}Po(o)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:gt,fn:r}]}function Tc(e){const t=h.useRef(Rc),r=P(()=>({eventName:"keydown",fn:function(s){if(s.defaultPrevented||s.keyCode!==Ro)return;const i=e.findClosestDraggableId(s);if(!i)return;const a=e.tryGetLock(i,p,{sourceEvent:s});if(!a)return;s.preventDefault();let l=!0;const c=a.snapLift();t.current();function p(){l||y(),l=!1,t.current(),n()}t.current=ee(window,Oc(c,p),{capture:!0,passive:!1})}}),[e]),n=S(function(){const s={passive:!1,capture:!0};t.current=ee(window,[r],s)},[r]);K(function(){return n(),function(){t.current()}},[n])}const Tt={type:"IDLE"},Bc=120,jc=.15;function Lc({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(t().type!=="DRAGGING"){e();return}r.keyCode===fr&&r.preventDefault(),e()}},{eventName:gt,fn:e}]}function Fc({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:n=>{const o=r();if(o.type!=="DRAGGING"){e();return}o.hasMoved=!0;const{clientX:s,clientY:i}=n.touches[0],a={x:s,y:i};n.preventDefault(),o.actions.move(a)}},{eventName:"touchend",fn:n=>{const o=r();if(o.type!=="DRAGGING"){e();return}n.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:n=>{if(r().type!=="DRAGGING"){e();return}n.preventDefault(),e()}},{eventName:"touchforcechange",fn:n=>{const o=r();o.type==="IDLE"&&y();const s=n.touches[0];if(!s||!(s.force>=jc))return;const a=o.actions.shouldRespectForcePress();
66if(o.type==="PENDING"){a&&e();return}if(a){if(o.hasMoved){n.preventDefault();return}e();return}n.preventDefault()}},{eventName:gt,fn:e}]}function Mc(e){const t=h.useRef(Tt),r=h.useRef(ae),n=S(function(){return t.current},[]),o=S(function(f){t.current=f},[]),s=P(()=>({eventName:"touchstart",fn:function(f){if(f.defaultPrevented)return;const m=e.findClosestDraggableId(f);if(!m)return;const v=e.tryGetLock(m,a,{sourceEvent:f});if(!v)return;const b=f.touches[0],{clientX:w,clientY:D}=b,C={x:w,y:D};r.current(),d(v,C)}}),[e]),i=S(function(){const f={capture:!0,passive:!1};r.current=ee(window,[s],f)},[s]),a=S(()=>{const u=t.current;u.type!=="IDLE"&&(u.type==="PENDING"&&clearTimeout(u.longPressTimerId),o(Tt),r.current(),i())},[i,o]),l=S(()=>{const u=t.current;a(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[a]),c=S(function(){const f={capture:!0,passive:!1},m={cancel:l,completed:a,getPhase:n},v=ee(window,Fc(m),f),b=ee(window,Lc(m),f);r.current=function(){v(),b()}},[l,n,a]),p=S(function(){const f=n();f.type!=="PENDING"&&y();const m=f.actions.fluidLift(f.point);o({type:"DRAGGING",actions:m,hasMoved:!1})},[n,o]),d=S(function(f,m){n().type!=="IDLE"&&y();const v=setTimeout(p,Bc);o({type:"PENDING",point:m,actions:f,longPressTimerId:v}),c()},[c,n,o,p]);K(function(){return i(),function(){r.current();const m=n();m.type==="PENDING"&&(clearTimeout(m.longPressTimerId),o(Tt))}},[n,i,o]),K(function(){return ee(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const kc=["input","button","textarea","select","option","optgroup","video","audio"];function To(e,t){if(t==null)return!1;if(kc.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:To(e,t.parentElement)}function Gc(e,t){const r=t.target;return pt(r)?To(e,r):!1}var $c=e=>re(e.getBoundingClientRect()).center;function Wc(e){return e instanceof No(e).Element}const Uc=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(n=>n in Element.prototype)||e})();function Bo(e,t){return e==null?null:e[Uc](t)?e:Bo(e.parentElement,t)}function Vc(e,t){return e.closest?e.closest(t):Bo(e,t)}function Hc(e){return`[${ve.contextId}="${e}"]`}function qc(e,t){const r=t.target;if(!Wc(r))return null;const n=Hc(e),o=Vc(r,n);return!o||!pt(o)?null:o}function zc(e,t){const r=qc(e,t);return r?r.getAttribute(ve.draggableId):null}function Yc(e,t){const r=`[${Ut.contextId}="${e}"]`,o=_o(document,r).find(s=>s.getAttribute(Ut.id)===t);return!o||!pt(o)?null:o}function Kc(e){e.preventDefault()}function He({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!(!r()||e!==t)}function jo({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const o=r.draggable.findById(n);return!(!o||!o.options.isEnabled||!Io(t.getState(),n))}function Xc({lockAPI:e,contextId:t,store:r,registry:n,draggableId:o,forceSensorStop:s,sourceEvent:i}){if(!jo({lockAPI:e,store:r,registry:n,draggableId:o}))return null;const l=n.draggable.getById(o),c=Yc(t,l.descriptor.id);if(!c||i&&!l.options.canDragInteractiveElements&&Gc(c,i))return null;const p=e.claim(s||ae);let d="PRE_DRAG";function u(){return l.options.shouldRespectForcePress}function f(){return e.isActive(p)}function m(E,_){He({expected:E,phase:d,isLockActive:f,shouldWarn:!0})&&r.dispatch(_())}const v=m.bind(null,"DRAGGING");function b(E){function _(){e.release(),d="COMPLETED"}d!=="PRE_DRAG"&&(_(),y()),r.dispatch(Va(E.liftActionArgs)),d="DRAGGING";function R(N,$={shouldBlockNextClick:!1}){if(E.cleanup(),$.shouldBlockNextClick){const O=ee(window,[{eventName:"click",fn:Kc,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(O)}_(),r.dispatch(mo({reason:N}))}return{isActive:()=>He({expected:"DRAGGING",phase:d,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:u,drop:N=>R("DROP",N),cancel:N=>R("CANCEL",N),...E.actions}}function w(E){const _=Te(N=>{v(()=>go({client:N}))});return{...b({liftActionArgs:{id:o,clientSelection:E,movementMode:"FLUID"},cleanup:()=>_.cancel(),actions:{move:_}}),move:_}}function D(){const E={moveUp:()=>v(Za),moveRight:()=>v(tl),moveDown:()=>v(el),moveLeft:()=>v(rl)};return b({liftActionArgs:{id:o,clientSelection:$c(c),movementMode:"SNAP"}
66,cleanup:ae,actions:E})}function C(){He({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!0})&&e.release()}return{isActive:()=>He({expected:"PRE_DRAG",phase:d,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:u,fluidLift:w,snapLift:D,abort:C}}const Jc=[Ac,Tc,Mc];function Qc({contextId:e,store:t,registry:r,customSensors:n,enableDefaultSensors:o}){const s=[...o?Jc:[],...n||[]],i=h.useState(()=>mc())[0],a=S(function(b,w){ke(b)&&!ke(w)&&i.tryAbandon()},[i]);K(function(){let b=t.getState();return t.subscribe(()=>{const D=t.getState();a(b,D),b=D})},[i,t,a]),K(()=>i.tryAbandon,[i.tryAbandon]);const l=S(v=>jo({lockAPI:i,registry:r,store:t,draggableId:v}),[i,r,t]),c=S((v,b,w)=>Xc({lockAPI:i,registry:r,contextId:e,store:t,draggableId:v,forceSensorStop:b||null,sourceEvent:w&&w.sourceEvent?w.sourceEvent:null}),[e,i,r,t]),p=S(v=>zc(e,v),[e]),d=S(v=>{const b=r.draggable.findById(v);return b?b.options:null},[r.draggable]),u=S(function(){i.isClaimed()&&(i.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(or()))},[i,t]),f=S(()=>i.isClaimed(),[i]),m=P(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:p,findOptionsForDraggable:d,tryReleaseLock:u,isLockClaimed:f}),[l,c,p,d,u,f]);for(let v=0;v<s.length;v++)s[v](m)}const Zc=e=>({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};pn.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),ed=e=>({...Me,...e.autoScrollerOptions,durationDampening:{...Me.durationDampening,...e.autoScrollerOptions}});function Ne(e){return e.current||y(),e.current}function td(e){const{contextId:t,setCallbacks:r,sensors:n,nonce:o,dragHandleUsageInstructions:s}=e,i=h.useRef(null),a=Ao(e),l=S(()=>Zc(a.current),[a]),c=S(()=>ed(a.current),[a]),p=uc(t),d=gc({contextId:t,text:s}),u=oc(t,o),f=S(O=>{Ne(i).dispatch(O)},[]),m=P(()=>Sr({publishWhileDragging:qa,updateDroppableScroll:Ya,updateDroppableIsEnabled:Ka,updateDroppableIsCombineEnabled:Xa,collectionStarting:za},f),[f]),v=lc(),b=P(()=>Ll(v,m),[v,m]),w=P(()=>Zl({scrollWindow:Fl,scrollDroppable:b.scrollDroppable,getAutoScrollerOptions:c,...Sr({move:go},f)}),[b.scrollDroppable,f,c]),D=ic(t),C=P(()=>Ol({announce:p,autoScroller:w,dimensionMarshal:b,focusMarshal:D,getResponders:l,styleMarshal:u}),[p,w,b,D,l,u]);i.current=C;const I=S(()=>{const O=Ne(i);O.getState().phase!=="IDLE"&&O.dispatch(or())},[]),E=S(()=>{const O=Ne(i).getState();return O.phase==="DROP_ANIMATING"?!0:O.phase==="IDLE"?!1:O.isDragging},[]),_=P(()=>({isDragging:E,tryAbort:I}),[E,I]);r(_);const R=S(O=>Io(Ne(i).getState(),O),[]),N=S(()=>pe(Ne(i).getState()),[]),$=P(()=>({marshal:b,focus:D,contextId:t,canLift:R,isMovementAllowed:N,dragHandleUsageInstructionsId:d,registry:v}),[t,b,d,D,R,N,v]);return Qc({contextId:t,store:C,registry:v,customSensors:n||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),h.useEffect(()=>I,[I]),M.createElement(ft.Provider,{value:$},M.createElement(Si,{context:ur,store:C},e.children))}function rd(){return M.useId()}function nd(e){const t=rd(),r=e.dragHandleUsageInstructions||Ye.dragHandleUsageInstructions;return M.createElement(Bi,null,n=>M.createElement(td,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const tn={dragging:5e3,dropAnimating:4500},od=(e,t)=>t?Oe.drop(t.duration):e?Oe.snap:Oe.fluid,sd=(e,t)=>{if(e)return t?Fe.opacity.drop:Fe.opacity.combining},id=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function ad(e){const r=e.dimension.client,{offset:n,combineWith:o,dropping:s}=e,i=!!o,a=id(e),l=!!s,c=l?$t.drop(n,i):$t.moveTo(n);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:od(a,s),transform:c,opacity:sd(i,l),zIndex:l?tn.dropAnimating:tn.dragging,pointerEvents:"none"}}function ld(e){return{transform:$t.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function cd(e){return e.type==="DRAGGING"?ad(e):ld(e)}function dd(e,t,r=G){const n=window.getComputedStyle(t),o=t.getBoundingClientRect(),s=Wn(o,n),i=tt(s,r),a={client:s,tagName:t.tagName.toLowerCase(),display:n.display},l={x:s.marginBox.width,y:s.marginBox.height};return{descriptor:e,placeholder:a,displaceBy:l,client:s,page:i}}function ud(e){const t=pr("draggable"),{descriptor:r,registry:n,getDraggableRef:o,canDragInteractiveElements:s,shouldRespectForcePress:i,isEnabled:a}=e,l=P(()=>({canDragInteractiveElements:s,shouldRespectForcePress:i,isEnabled:a}),[s,a,i]),c=S(f=>{const m=o();return m||y(),dd(r,m,f)},[r,o]),p=P(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),d=h.useRef(p),u=h.useRef(!0);K(()=>(n.draggable.register(d.current),()=>n.draggable.unregister(d.current)),[n.draggable]),K(()=>
66{if(u.current){u.current=!1;return}const f=d.current;d.current=p,n.draggable.update(p,f)},[p,n.draggable])}var gr=M.createContext(null);function it(e){const t=h.useContext(e);return t||y(),t}function pd(e){e.preventDefault()}const fd=e=>{const t=h.useRef(null),r=S((_=null)=>{t.current=_},[]),n=S(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:s,registry:i}=it(ft),{type:a,droppableId:l}=it(gr),c=P(()=>({id:e.draggableId,index:e.index,type:a,droppableId:l}),[e.draggableId,e.index,a,l]),{children:p,draggableId:d,isEnabled:u,shouldRespectForcePress:f,canDragInteractiveElements:m,isClone:v,mapped:b,dropAnimationFinished:w}=e;if(!v){const _=P(()=>({descriptor:c,registry:i,getDraggableRef:n,canDragInteractiveElements:m,shouldRespectForcePress:f,isEnabled:u}),[c,i,n,m,f,u]);ud(_)}const D=P(()=>u?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":d,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:pd}:null,[o,s,d,u]),C=S(_=>{b.type==="DRAGGING"&&b.dropping&&_.propertyName==="transform"&&pn.flushSync(w)},[w,b]),I=P(()=>{const _=cd(b),R=b.type==="DRAGGING"&&b.dropping?C:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":d,style:_,onTransitionEnd:R},dragHandleProps:D}},[o,D,d,b,C,r]),E=P(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return M.createElement(M.Fragment,null,p(I,b.snapshot,E))};var Lo=(e,t)=>e===t,Fo=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const gd=e=>e.combine?e.combine.draggableId:null,md=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function bd(){const e=k((o,s)=>({x:o,y:s})),t=k((o,s,i=null,a=null,l=null)=>({isDragging:!0,isClone:s,isDropAnimating:!!l,dropAnimation:l,mode:o,draggingOver:i,combineWith:a,combineTargetFor:null})),r=k((o,s,i,a,l=null,c=null,p=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:s,offset:o,dimension:i,forceShouldAnimate:p,snapshot:t(s,a,l,c,null)}}));return(o,s)=>{if(ke(o)){if(o.critical.draggable.id!==s.draggableId)return null;const i=o.current.client.offset,a=o.dimensions.draggables[s.draggableId],l=Y(o.impact),c=md(o.impact),p=o.forceShouldAnimate;return r(e(i.x,i.y),o.movementMode,a,s.isClone,l,c,p)}if(o.phase==="DROP_ANIMATING"){const i=o.completed;if(i.result.draggableId!==s.draggableId)return null;const a=s.isClone,l=o.dimensions.draggables[s.draggableId],c=i.result,p=c.mode,d=Fo(c),u=gd(c),m={duration:o.dropDuration,curve:ir.drop,moveTo:o.newHomeClientOffset,opacity:u?Fe.opacity.drop:null,scale:u?Fe.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:l,dropping:m,draggingOver:d,combineWith:u,mode:p,forceShouldAnimate:null,snapshot:t(p,a,d,u,m)}}}return null}}function Mo(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const hd={mapped:{type:"SECONDARY",offset:G,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Mo(null)}};function vd(){const e=k((i,a)=>({x:i,y:a})),t=k(Mo),r=k((i,a=null,l)=>({mapped:{type:"SECONDARY",offset:i,combineTargetFor:a,shouldAnimateDisplacement:l,snapshot:t(a)}})),n=i=>i?r(G,i,!0):null,o=(i,a,l,c)=>{const p=l.displaced.visible[i],d=!!(c.inVirtualList&&c.effected[i]),u=ct(l),f=u&&u.draggableId===i?a:null;if(!p){if(!d)return n(f);if(l.displaced.invisible[i])return null;const b=ye(c.displacedBy.point),w=e(b.x,b.y);return r(w,f,!0)}if(d)return n(f);const m=l.displacedBy.point,v=e(m.x,m.y);return r(v,f,p.shouldAnimate)};return(i,a)=>{if(ke(i))return i.critical.draggable.id===a.draggableId?null:o(a.draggableId,i.critical.draggable.id,i.impact,i.afterCritical);if(i.phase==="DROP_ANIMATING"){const l=i.completed;return l.result.draggableId===a.draggableId?null:o(a.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const xd=()=>{const e=bd(),t=vd();return(n,o)=>e(n,o)||t(n,o)||hd},yd={dropAnimationFinished:bo},wd=Gn(xd,yd,null,{context:ur,areStatePropsEqual:Lo})(fd);function ko(e){return it(gr).isUsingCloneFor===e.draggableId&&!e.isClone?null:M.createElement(wd,e)}function Dd(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return M.createElement(ko,Qe({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}const Go=e=>t=>e===t,Id=Go("scroll"),Cd=Go("auto"),rn=(e,t)=>t(e.overflowX)||t(e.overflowY),Sd=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return rn(r,Id)||rn(r,Cd)},Ed=()=>!1,$o=e=>e==null?null:e===document.body?Ed()?e:null:e===document.documentElement?null:Sd(e)?e:$o(e.parentElement);var Vt=e=>({x:e.scrollLeft,y:e.scrollTop});const Wo=e=>e?window.getComputedStyle(e).position==="fixed"?!0:Wo(e.parentElement):!1;var _d=e=>{const t=$o(e),r=Wo(e);return{closestScrollable:t,isFixedOnPage:r}}
66,Nd=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:o,client:s,page:i,closest:a})=>{const l=(()=>{if(!a)return null;const{scrollSize:u,client:f}=a,m=yo({scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth,height:f.paddingBox.height,width:f.paddingBox.width});return{pageMarginBox:a.page.marginBox,frameClient:f,scrollSize:u,shouldClipSubject:a.shouldClipSubject,scroll:{initial:a.scroll,current:a.scroll,max:m,diff:{value:G,displacement:G}}}})(),c=o==="vertical"?Zt:Qn,p=be({page:i,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:c,isEnabled:t,client:s,page:i,frame:l,subject:p}};const Ad=(e,t)=>{const r=Un(e);if(!t||e!==t)return r;const n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,s=n+t.scrollHeight,i=o+t.scrollWidth,l=Kt({top:n,right:i,bottom:s,left:o},r.border);return Xt({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var Rd=({ref:e,descriptor:t,env:r,windowScroll:n,direction:o,isDropDisabled:s,isCombineEnabled:i,shouldClipSubject:a})=>{const l=r.closestScrollable,c=Ad(e,l),p=tt(c,n),d=(()=>{if(!l)return null;const f=Un(l),m={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:f,page:tt(f,n),scroll:Vt(l),scrollSize:m,shouldClipSubject:a}})();return Nd({descriptor:t,isEnabled:!s,isCombineEnabled:i,isFixedOnPage:r.isFixedOnPage,direction:o,client:c,page:p,closest:d})};const Pd={passive:!1},Od={passive:!0};var nn=e=>e.shouldPublishImmediately?Pd:Od;const qe=e=>e&&e.env.closestScrollable||null;function Td(e){const t=h.useRef(null),r=it(ft),n=pr("droppable"),{registry:o,marshal:s}=r,i=Ao(e),a=P(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=h.useRef(a),c=P(()=>k((I,E)=>{t.current||y();const _={x:I,y:E};s.updateDroppableScroll(a.id,_)}),[a.id,s]),p=S(()=>{const I=t.current;return!I||!I.env.closestScrollable?G:Vt(I.env.closestScrollable)},[]),d=S(()=>{const I=p();c(I.x,I.y)},[p,c]),u=P(()=>Te(d),[d]),f=S(()=>{const I=t.current,E=qe(I);if(I&&E||y(),I.scrollOptions.shouldPublishImmediately){d();return}u()},[u,d]),m=S((I,E)=>{t.current&&y();const _=i.current,R=_.getDroppableRef();R||y();const N=_d(R),$={ref:R,descriptor:a,env:N,scrollOptions:E};t.current=$;const O=Rd({ref:R,descriptor:a,env:N,windowScroll:I,direction:_.direction,isDropDisabled:_.isDropDisabled,isCombineEnabled:_.isCombineEnabled,shouldClipSubject:!_.ignoreContainerClipping}),x=N.closestScrollable;return x&&(x.setAttribute(Jr.contextId,r.contextId),x.addEventListener("scroll",f,nn($.scrollOptions))),O},[r.contextId,a,f,i]),v=S(()=>{const I=t.current,E=qe(I);return I&&E||y(),Vt(E)},[]),b=S(()=>{const I=t.current;I||y();const E=qe(I);t.current=null,E&&(u.cancel(),E.removeAttribute(Jr.contextId),E.removeEventListener("scroll",f,nn(I.scrollOptions)))},[f,u]),w=S(I=>{const E=t.current;E||y();const _=qe(E);_||y(),_.scrollTop+=I.y,_.scrollLeft+=I.x},[]),D=P(()=>({getDimensionAndWatchScroll:m,getScrollWhileDragging:v,dragStopped:b,scroll:w}),[b,m,v,w]),C=P(()=>({uniqueId:n,descriptor:a,callbacks:D}),[D,a,n]);K(()=>(l.current=C.descriptor,o.droppable.register(C),()=>{t.current&&b(),o.droppable.unregister(C)}),[D,a,b,C,s,o.droppable]),K(()=>{t.current&&s.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,s]),K(()=>{t.current&&s.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,s])}function Bt(){}const on={width:0,height:0,margin:Gi},Bd=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||r==="close"?on:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},jd=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=Bd({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?Oe.placeholder:null}},Ld=e=>{const t=h.useRef(null),r=S(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:n,onTransitionEnd:o,onClose:s,contextId:i}=e,[a,l]=h.useState(e.animate==="open");h.useEffect(()=>a?n!=="open"?(r(),l(!1),Bt):t.current?Bt:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):Bt,[n,a,r]);const c=S(d=>{d.propertyName==="height"&&(o(),n==="close"&&s())}
66,[n,s,o]),p=jd({isAnimatingOpenOnMount:a,animate:e.animate,placeholder:e.placeholder});return M.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":i,onTransitionEnd:c,ref:e.innerRef})};var Fd=M.memo(Ld);class Md extends M.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const kd=e=>{const t=h.useContext(ft);t||y();const{contextId:r,isMovementAllowed:n}=t,o=h.useRef(null),s=h.useRef(null),{children:i,droppableId:a,type:l,mode:c,direction:p,ignoreContainerClipping:d,isDropDisabled:u,isCombineEnabled:f,snapshot:m,useClone:v,updateViewportMaxScroll:b,getContainerForClone:w}=e,D=S(()=>o.current,[]),C=S((x=null)=>{o.current=x},[]);S(()=>s.current,[]);const I=S((x=null)=>{s.current=x},[]),E=S(()=>{n()&&b({maxScroll:Do()})},[n,b]);Td({droppableId:a,type:l,mode:c,direction:p,isDropDisabled:u,isCombineEnabled:f,ignoreContainerClipping:d,getDroppableRef:D});const _=P(()=>M.createElement(Md,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:x,data:A,animate:L})=>M.createElement(Fd,{placeholder:A,onClose:x,innerRef:I,animate:L,contextId:r,onTransitionEnd:E})),[r,E,e.placeholder,e.shouldAnimatePlaceholder,I]),R=P(()=>({innerRef:C,placeholder:_,droppableProps:{"data-rfd-droppable-id":a,"data-rfd-droppable-context-id":r}}),[r,a,_,C]),N=v?v.dragging.draggableId:null,$=P(()=>({droppableId:a,type:l,isUsingCloneFor:N}),[a,N,l]);function O(){if(!v)return null;const{dragging:x,render:A}=v,L=M.createElement(ko,{draggableId:x.draggableId,index:x.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(q,j)=>A(q,j,x));return Qo.createPortal(L,w())}return M.createElement(gr.Provider,{value:$},i(R,m),O())};function Gd(){return document.body||y(),document.body}const sn={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Gd},Uo=e=>{let t={...e},r;for(r in sn)e[r]===void 0&&(t={...t,[r]:sn[r]});return t},jt=(e,t)=>e===t.droppable.type,an=(e,t)=>t.draggables[e.draggable.id],$d=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=k(s=>({draggableId:s.id,type:s.type,source:{index:s.index,droppableId:s.droppableId}})),n=k((s,i,a,l,c,p)=>{const d=c.descriptor.id;if(c.descriptor.droppableId===s){const m=p?{render:p,dragging:r(c.descriptor)}:null,v={isDraggingOver:a,draggingOverWith:a?d:null,draggingFromThisWith:d,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:v,useClone:m}}if(!i)return t;if(!l)return e;const f={isDraggingOver:a,draggingOverWith:d,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}});return(s,i)=>{const a=Uo(i),l=a.droppableId,c=a.type,p=!a.isDropDisabled,d=a.renderClone;if(ke(s)){const u=s.critical;if(!jt(c,u))return t;const f=an(u,s.dimensions),m=Y(s.impact)===l;return n(l,p,m,m,f,d)}if(s.phase==="DROP_ANIMATING"){const u=s.completed;if(!jt(c,u.critical))return t;const f=an(u.critical,s.dimensions);return n(l,p,Fo(u.result)===l,Y(u.impact)===l,f,d)}if(s.phase==="IDLE"&&s.completed&&!s.shouldFlush){const u=s.completed;if(!jt(c,u.critical))return t;const f=Y(u.impact)===l,m=!!(u.impact.at&&u.impact.at.type==="COMBINE"),v=u.critical.droppable.id===l;return f?m?e:t:v?e:t}return t}},Wd={updateViewportMaxScroll:Qa},Ud=Gn($d,Wd,(e,t,r)=>({...Uo(r),...e,...t}),{context:ur,areStatePropsEqual:Lo})(kd);var Vd=Ud;const Hd=()=>({id:`project-${Math.round(performance.now())}`,image:"",url:"",gradient:"from-slate-600 to-slate-900",type:{en:"",he:""},name:{en:"",he:""},desc:{en:"",he:""}}),qd=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase());function ge({label:e,children:t,dir:r=void 0}){return g.jsxs("div",{className:"space-y-1.5",dir:r,children:[g.jsx("label",{className:"text-sm font-medium text-gray-300",children:e}),t]})}function zd({form:e,editLang:t,update:r}){const n=e.projects||[],o=t==="he"?"rtl":"ltr",s=i=>{if(!i.destination||i.destination.index===i.source.index)return;const a=[...n],[l]=a.splice(i.source.index,1);a.splice(i.destination.index,0,l),r(["projects"],a)};return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"space-y-5 pb-2",children:["work_label","work_title","work_visit_site"].map(i=>{var a,l;return g.jsx(ge,{label:qd(i),dir:o,children:g.jsx(F,{value:((l=(a=e.text)==null?void 0:a[t])==null?void 0:l[i])??"",dir:o,onChange:c=>r(["text",t,i],c.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})},i)})}),g.jsxs("div",{className:"border-t border-gray-800 pt-4 flex items-center justify-between",children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"Project Cards"}),g.jsxs(Z,{type:"button",variant:"outline",size:"sm",onClick:()=>r(["projects"],[...n,Hd()]),className:"border-gray-700 bg-transparent text-gray-200 hover:bg-white/10",children:[g.jsx(Xe,{className:"w-4 h-4 me-1.5"})," Add project"]})]}),g.jsx("p",{className:"text-xs text-gray-500",children:"Drag a card by the handle to reorder. The first card appears first in the live carousel."}),g.jsx(nd,{onDragEnd:s,children:g.jsx(Vd,{droppableId:"projects",children:i=>g.jsxs("div",{ref:i.innerRef,...i.droppableProps,className:"space-y-6",children:[n.map((a,l)=>g.jsx(Dd,{draggableId:a.id||`p-${l}`,index:l,children:(c,p)=>{var d,u,f;return g.jsxs("div",{ref:c.innerRef,...c.draggableProps,className:`rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-4 ${p.isDragging?"shadow-2xl ring-1 ring-brand-blue/50":""}`,children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("button",{type:"button",...c.dragHandleProps,className:"cursor-grab active:cursor-grabbing text-gray-500 hover:text-gray-300 touch-none","aria-label":"Drag to reorder",children:g.jsx(ss,{className:"w-5 h-5"})}),g.jsxs("span",{className:"text-sm font-semibold text-blue-tint",children:["Project ",l+1]})]}),g.jsxs(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>r(["projects"],n.filter((m,v)=>v!==l)),className:"text-red-400 hover:text-red-300 hover:bg-red-500/10",children:[g.jsx(Je,{className:"w-4 h-4 me-1.5"})," Remove"]})]}),g.jsx(se,{label:"Image",value:a.image,onChange:m=>r(["projects",l,"image"],m)}),g.jsx(ge,{label:"Site URL",children:g.jsx(F,{value:a.url||"",onChange:m=>r(["projects",l,"url"],m.target.value),placeholder:"https://...",className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[g.jsx(ge,{label:`Name (${t.toUpperCase()})`,dir:o,children:g.jsx(F,{value:((d=a.name)==null?void 0:d[t])??"",dir:o,onChange:m=>r(["projects",l,"name",t],m.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(ge,{label:`Type (${t.toUpperCase()})`,dir:o,children:g.jsx(F,{value:((u=a.type)==null?void 0:u[t])??"",dir:o,onChange:m=>r(["projects",l,"type",t],m.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})})]}),g.jsx(ge,{label:`Description (${t.toUpperCase()})`,dir:o,children:g.jsx(Re,{value:((f=a.desc)==null?void 0:f[t])??"",dir:o,onChange:m=>r(["projects",l,"desc",t],m.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white min-h-[80px]"})}),g.jsx(ge,{label:"Gradient (Tailwind classes)",children:g.jsx(F,{value:a.gradient||"",onChange:m=>r(["projects",l,"gradient"],m.target.value),placeholder:"from-blue-600 to-indigo-900",className:"bg-[#0f0f0f] border-gray-700 text-white h-11 font-mono text-sm"})})]})}},a.id||`p-${l}`)),i.placeholder]})})})]})}const Yd=()=>({id:`event-${Math.round(performance.now())}`,image:"",imageAvif:"",imageWebp:"",url:"",upcoming:!1,date:{en:"",he:""},title:{en:"",he:""},desc:{en:"",he:""},linkLabel:{en:"",he:""},alt:{en:"",he:""}});function me({label:e,children:t,dir:r=void 0}){return g.jsxs("div",{className:"space-y-1.5",dir:r,children:[g.jsx("label",{className:"text-sm font-medium text-gray-300",children:e}),t]})}const Ae="bg-[#0f0f0f] border-gray-700 text-white h-11";function Kd({form:e,editLang:t,update:r}){const n=e.events||[],o=t==="he"?"rtl":"ltr",s=t.toUpperCase(),i=(a,l)=>{if(l<0||l>=n.length)return;const c=[...n],[p]=c.splice(a,1);c.splice(l,0,p),r(["events"],c)};return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"Event Cards"}),g.jsx("p",{className:"text-xs text-gray-500 mt-1",children:'Shown inside the About section, in this order. Mark one as "upcoming" to render it as the highlighted next event with a registration button. The heading, lead and stats live under the About tab (events_* keys).'})]}),g.jsxs(Z,{type:"button",variant:"outline",size:"sm",onClick:()=>r(["events"],[...n,Yd()]),className:"border-gray-700 bg-transparent text-gray-200 hover:bg-white/10",children:[g.jsx(Xe,{className:"w-4 h-4 me-1.5"})," Add event"]})]}),g.jsx("div",{className:"space-y-6",children:n.map((a,l)=>{var c,p,d,u,f;return g.jsxs("div",{className:"rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("span",{className:"text-sm font-semibold text-blue-tint",children:["Event ",l+1]}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>i(l,l-1),disabled:l===0,className:"text-gray-300",children:"Up"}),g.jsx(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>i(l,l+1),disabled:l===n.length-1,className:"text-gray-300",children:"Down"}),g.jsxs(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>r(["events"],n.filter((m,v)=>v!==l)),className:"text-red-400 hover:text-red-300 hover:bg-red-500/10",children:[g.jsx(Je,{className:"w-4 h-4 me-1.5"})," Remove"]})]})]}),g.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-300",children:[g.jsx("input",{type:"checkbox",checked:!!a.upcoming,onChange:m=>r(["events",l,"upcoming"],m.target.checked),className:"h-4 w-4 accent-[#1F5AE8]"}),"Upcoming event (highlighted card with a registration button, no image)"]}),!a.upcoming&&g.jsx(se,{label:"Image (16:10 works best)",value:a.image,onChange:m=>r(["events",l,"image"],m)}),g.jsx(me,{label:a.upcoming?"Registration URL":"Link URL (article, recap post)",children:g.jsx(F,{value:a.url||"",onChange:m=>r(["events",l,"url"],m.target.value),placeholder:"https://...",className:Ae})}),g.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[g.jsx(me,{label:`Date and venue (${s})`,dir:o,children:g.jsx(F,{value:((c=a.date)==null?void 0:c[t])??"",dir:o,onChange:m=>r(["events",l,"date",t],m.target.value),className:Ae})}),g.jsx(me,{label:`Link label (${s})`,dir:o,children:g.jsx(F,{value:((p=a.linkLabel)==null?void 0:p[t])??"",dir:o,onChange:m=>r(["events",l,"linkLabel",t],m.target.value),className:Ae})})]}),g.jsx(me,{label:`Title (${s})`,dir:o,children:g.jsx(F,{value:((d=a.title)==null?void 0:d[t])??"",dir:o,onChange:m=>r(["events",l,"title",t],m.target.value),className:Ae})}),g.jsx(me,{label:`Description (${s})`,dir:o,children:g.jsx(Re,{value:((u=a.desc)==null?void 0:u[t])??"",dir:o,onChange:m=>r(["events",l,"desc",t],m.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white min-h-[80px]"})}),!a.upcoming&&g.jsx(me,{label:`Image alt text (${s})`,dir:o,children:g.jsx(F,{value:((f=a.alt)==null?void 0:f[t])??"",dir:o,onChange:m=>r(["events",l,"alt",t],m.target.value),className:Ae})})]},a.id||`e-${l}`)})})]})}const Xd=[{id:"hero",label:"Hero",keys:["hero_community_badge","hero_partner_chip","hero_course_chip","hero_title","hero_role_prefix","hero_role_highlight","hero_lead","hero_whatsapp_cta","hero_whatsapp_message","hero_photo_alt","trust_item_press","trust_item_podcast","trust_item_partner"]},{id:"solution",label:"Problem & Solution",keys:["problem_label","problem_title","problem_1_title","problem_1_desc","problem_2_title","problem_2_desc","problem_3_title","problem_3_desc","solution_title","solution_desc","solution_1","solution_2","solution_3"]},{id:"about",label:"About",keys:["about_label","about_title","about_p1","about_p2","about_p3","about_cert_alt","about_press_label","about_press_title","about_press_cta","about_podcast_label","about_podcast_title","about_podcast_play","events_label","events_title_light","events_title_bold","events_lead","events_stat_1_value","events_stat_1_label","events_stat_2_value","events_stat_2_label","events_stat_3_value","events_stat_3_label","events_next_badge"]},{id:"services",label:"Services",keys:["services_label","services_title","services_dev_badge","services_dev_subtitle","services_dev_title","services_dev_heading","services_dev_check_1","services_dev_check_2","services_dev_check_3","services_dev_check_4","services_dev_check_5","services_dev_check_6","services_dev_check_7","services_dev_cta","
66services_consulting_subtitle","services_consulting_title","services_consulting_price","services_consulting_vat","services_consulting_per_hour","services_consulting_packages","services_consulting_check_1","services_consulting_check_2","services_consulting_check_3","services_consulting_check_4","services_consulting_check_5","services_consulting_check_6","services_consulting_cta"]},{id:"expertise",label:"Expertise",keys:["expertise_label","expertise_title","expertise_subtitle","expertise_cta","expertise_card_1_title","expertise_card_1_desc","expertise_card_1_point_1","expertise_card_1_point_2","expertise_card_1_point_3","expertise_card_1_link","expertise_card_2_title","expertise_card_2_desc","expertise_card_2_point_1","expertise_card_2_point_2","expertise_card_2_point_3","expertise_card_2_link","expertise_card_3_title","expertise_card_3_desc","expertise_card_3_point_1","expertise_card_3_point_2","expertise_card_3_point_3","expertise_card_3_link","expertise_card_4_title","expertise_card_4_desc","expertise_card_4_point_1","expertise_card_4_point_2","expertise_card_4_point_3","expertise_card_4_link"]},{id:"contact",label:"Contact",keys:["contact_heading","contact_note","contact_lead","contact_whatsapp_lead","contact_whatsapp_cta","contact_label_name","contact_placeholder_name","contact_label_phone","contact_placeholder_phone","contact_label_message","contact_placeholder_message","contact_submit","contact_submitting","contact_success","contact_error"]},{id:"navfooter",label:"Nav & Footer",keys:["nav_name","nav_solution","nav_services","nav_work","nav_about","nav_faq","nav_call","nav_whatsapp","testimonials_label","testimonials_title","faq_label","faq_title","footer_role","footer_rights","footer_admin"]},{id:"seo",label:"SEO / Meta",keys:["meta_title","meta_description","meta_og_title","meta_og_description","meta_twitter_title","meta_twitter_description"]}],Jd=e=>/desc|description|message|meta_description|tagline/.test(e),Qd=e=>e.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase());function Vo(e,t,r){if(t.length===0)return r;const[n,...o]=t,s=Array.isArray(e)?[...e]:{...e};return s[n]=Vo(s[n],o,r),s}const Zd=()=>({id:`testimonial-${Math.round(performance.now())}`,image:"",name:{en:"",he:""},role:{en:"",he:""},quote:{en:"",he:""}}),eu=()=>({id:`faq-${Math.round(performance.now())}`,q:{en:"",he:""},a:{en:"",he:""}});function nu(){var v,b,w,D,C,I,E,_,R,N,$,O;const{refreshContent:e}=Zo(),[t,r]=h.useState("loading"),[n,o]=h.useState(!0),[s,i]=h.useState(null),[a,l]=h.useState(null),[c,p]=h.useState("en"),[d,u]=h.useState(!1);h.useEffect(()=>{(async()=>{try{const x=await ne.auth.me();r((x==null?void 0:x.role)==="admin"?"ok":"denied")}catch{r("denied")}})()},[]),h.useEffect(()=>{t==="ok"&&(async()=>{o(!0);try{const x=await yt.filter({singleton_key:"live"}),A=x==null?void 0:x[0];i((A==null?void 0:A.id)??null),l(xr(yr,(A==null?void 0:A.data)??null))}catch(x){console.error("Failed to load content:",x),l(xr(yr,null))}finally{o(!1)}})()},[t]);const f=(x,A)=>l(L=>Vo(L,x,A)),m=async()=>{u(!0);try{if(s)await yt.update(s,{data:a});else{const x=await yt.create({singleton_key:"live",data:a});i((x==null?void 0:x.id)??null)}await e(),Ke.success("Content saved. Your live site is updated.")}catch(x){console.error("Save failed:",x),Ke.error("Failed to save. Please try again.")}finally{u(!1)}};return t==="loading"?g.jsx("div",{className:"min-h-screen bg-[#0f0f0f] flex items-center justify-center",children:g.jsx("div",{className:"animate-spin w-8 h-8 border-2 border-brand-blue border-t-transparent rounded-full"})}):t==="denied"?g.jsx("div",{className:"min-h-screen bg-[#0f0f0f] flex items-center justify-center p-6",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Access denied"}),g.jsx("p",{className:"text-gray-400 mb-6",children:"You need an admin account to manage site content."}),g.jsx("a",{href:"/",className:"text-blue-tint hover:text-white",children:"← Back to site"})]})}):n||!a?g.jsx("div",{className:"min-h-screen bg-[#0f0f0f] flex items-center justify-center",children:g.jsx("div",{className:"animate-spin w-8 h-8 border-2 border-brand-blue border-t-transparent roun
66ded-full"})}):g.jsxs("div",{className:"min-h-screen bg-[#0f0f0f] text-white",children:[g.jsx("div",{className:"sticky top-0 z-20 bg-[#0f0f0f]/95 backdrop-blur border-b border-gray-800",children:g.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-4 flex flex-wrap items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold",children:"Manage Site Content"}),g.jsx("p",{className:"text-xs text-gray-500",children:"Edit all text, images and links of your landing page."})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"flex rounded-full border border-gray-700 overflow-hidden",children:["en","he"].map(x=>g.jsx("button",{onClick:()=>p(x),className:`px-4 py-1.5 text-sm font-semibold transition-colors ${c===x?"bg-brand-blue text-white":"text-gray-300 hover:bg-white/10"}`,children:x==="en"?"English":"עברית"},x))}),g.jsxs("a",{href:"/",target:"_blank",rel:"noopener noreferrer",className:"hidden sm:inline-flex items-center gap-1.5 text-sm text-gray-300 hover:text-white",children:["View live site ",g.jsx(es,{className:"w-4 h-4"})]}),g.jsx(Z,{onClick:m,disabled:d,className:"bg-brand-blue hover:bg-brand-blue-dark text-white border-0",children:d?g.jsxs(g.Fragment,{children:[g.jsx(ts,{className:"me-2 h-4 w-4 animate-spin"})," Saving..."]}):"Save changes"})]})]})}),g.jsx("div",{className:"max-w-5xl mx-auto px-6 py-8",children:g.jsxs(Ss,{defaultValue:"hero",className:"w-full",children:[g.jsxs(On,{className:"flex flex-wrap h-auto bg-[#1a1a1a] border border-gray-800 mb-6",children:[g.jsx(H,{value:"hero",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Hero & Trust"}),g.jsx(H,{value:"solution",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Problem & Solution"}),g.jsx(H,{value:"work",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Work"}),g.jsx(H,{value:"events",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Events"}),g.jsx(H,{value:"services",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Services"}),g.jsx(H,{value:"expertise",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Expertise"}),g.jsx(H,{value:"testimonials",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Testimonials"}),g.jsx(H,{value:"about",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"About"}),g.jsx(H,{value:"faq",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"FAQ"}),g.jsx(H,{value:"contact",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Contact"}),g.jsx(H,{value:"navfooter",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Nav & Footer"}),g.jsx(H,{value:"links",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"Links & Media"}),g.jsx(H,{value:"seo",className:"data-[state=active]:bg-brand-blue data-[state=active]:text-white text-gray-300",children:"SEO / Meta"})]}),Xd.map(x=>g.jsxs(ue,{value:x.id,className:"space-y-5",children:[g.jsx(ze,{editLang:c}),x.keys.map(A=>{var j,B;const L=((B=(j=a.text)==null?void 0:j[c])==null?void 0:B[A])??"",q=["text",c,A];return g.jsx(Q,{label:Qd(A),dir:c==="he"?"rtl":"ltr",children:Jd(A)?g.jsx(Re,{value:L,dir:c==="he"?"rtl":"ltr",onChange:oe=>f(q,oe.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white min-h-[90px]"}):g.jsx(F,{value:L,dir:c==="he"?"rtl":"ltr",onChange:oe=>f(q,oe.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})},A)})]},x.id)),g.jsxs(ue,{value:"work",className:"space-y-6",children:[g.jsx(ze,{editLang:c}),g.jsx(zd,{form:a,editLang:c,update:f})]}),g.jsx(ue,{value:"events",className:"space-y-6",children:g.jsx(Kd,{form:a,editLang:c,update:f})}),g.jsxs(ue,{value:"testimonials",className:"space-y-6",children:[g.jsx(ze,{editLang:c}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"Testimonial Cards"}),g.jsxs(Z,{type:"button",variant:"outline",size:"sm",onClick:()=>f(["testimonials"],[...a.testimonials||[],Zd()]),className:"border-gray-700 bg-transparent text-gray-200 hover:bg-white/10",children:[g.jsx(Xe,{className:"w-4 h-4 me-1.5"})," Add testimonial"]})]}),(a.testimonials||[]).map((x,A)=>{var L,q,j;return g.jsxs("div",{className:"rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("span",{className:"text-sm font-semibold text-blue-tint",children:["Testimonial ",A+1]}),g.jsxs(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>f(["testimonials"],a.testimonials.filter((B,oe)=>oe!==A)),className:"text-red-400 hover:text-red-300 hover:bg-red-500/10",children:[g.jsx(Je,{className:"w-4 h-4 me-1.5"})," Remove"]})]}),g.jsx(se,{label:"Photo (optional)",value:x.image,onChange:B=>f(["testimonials",A,"image"],B)}),g.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[g.jsx(Q,{label:`Name (${c.toUpperCase()})`,dir:c==="he"?"rtl":"ltr",children:g.jsx(F,{value:((L=x.name)==null?void 0:L[c])??"",dir:c==="he"?"rtl":"ltr",onChange:B=>f(["testimonials",A,"name",c],B.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:`Role / Business (${c.toUpperCase()})`,dir:c==="he"?"rtl":"ltr",children:g.jsx(F,{value:((q=x.role)==null?void 0:q[c])??"",dir:c==="he"?"rtl":"ltr",onChange:B=>f(["testimonials",A,"role",c],B.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})})]}),g.jsx(Q,{label:`Quote (${c.toUpperCase()})`,dir:c==="he"?"rtl":"ltr",children:g.jsx(Re,{value:((j=x.quote)==null?void 0:j[c])??"",dir:c==="he"?"rtl":"ltr",onChange:B=>f(["testimonials",A,"quote",c],B.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white min-h-[80px]"})})]},x.id||A)})]}),g.jsxs(ue,{value:"faq",className:"space-y-6",children:[g.jsx(ze,{editLang:c}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"FAQ Items"}),g.jsxs(Z,{type:"button",variant:"outline",size:"sm",onClick:()=>f(["faq"],[...a.faq||[],eu()]),className:"border-gray-700 bg-transparent text-gray-200 hover:bg-white/10",children:[g.jsx(Xe,{className:"w-4 h-4 me-1.5"})," Add question"]})]}),(a.faq||[]).map((x,A)=>{var L,q;return g.jsxs("div",{className:"rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-4",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("span",{className:"text-sm font-semibold text-blue-tint",children:["Question ",A+1]}),g.jsxs(Z,{type:"button",variant:"ghost",size:"sm",onClick:()=>f(["faq"],a.faq.filter((j,B)=>B!==A)),className:"text-red-400 hover:text-red-300 hover:bg-red-500/10",children:[g.jsx(Je,{className:"w-4 h-4 me-1.5"})," Remove"]})]}),g.jsx(Q,{label:`Question (${c.toUpperCase()})`,dir:c==="he"?"rtl":"ltr",children:g.jsx(F,{value:((L=x.q)==null?void 0:L[c])??"",dir:c==="he"?"rtl":"ltr",onChange:j=>
66f(["faq",A,"q",c],j.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:`Answer (${c.toUpperCase()})`,dir:c==="he"?"rtl":"ltr",children:g.jsx(Re,{value:((q=x.a)==null?void 0:q[c])??"",dir:c==="he"?"rtl":"ltr",onChange:j=>f(["faq",A,"a",c],j.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white min-h-[80px]"})})]},x.id||A)})]}),g.jsxs(ue,{value:"links",className:"space-y-6",children:[g.jsxs("div",{className:"rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-4",children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"Contact & Social Links"}),g.jsx(Q,{label:"Phone (for tel: link)",children:g.jsx(F,{value:((v=a.links)==null?void 0:v.phone)??"",onChange:x=>f(["links","phone"],x.target.value),placeholder:"+972...",className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:"WhatsApp URL",children:g.jsx(F,{value:((b=a.links)==null?void 0:b.whatsapp)??"",onChange:x=>f(["links","whatsapp"],x.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:"Facebook URL",children:g.jsx(F,{value:((w=a.links)==null?void 0:w.facebook)??"",onChange:x=>f(["links","facebook"],x.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:"Email (for mailto: link)",children:g.jsx(F,{value:((D=a.links)==null?void 0:D.email)??"",onChange:x=>f(["links","email"],x.target.value),className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:"Spotify episode URL",children:g.jsx(F,{value:((C=a.links)==null?void 0:C.spotifyEpisode)??"",onChange:x=>f(["links","spotifyEpisode"],x.target.value),placeholder:"https://open.spotify.com/episode/...",className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})}),g.jsx(Q,{label:"Israel Hayom article URL",children:g.jsx(F,{value:((I=a.links)==null?void 0:I.israelHayom)??"",onChange:x=>f(["links","israelHayom"],x.target.value),placeholder:"https://www.israelhayom.co.il/...",className:"bg-[#0f0f0f] border-gray-700 text-white h-11"})})]}),g.jsxs("div",{className:"rounded-xl border border-gray-800 bg-[#161616] p-5 space-y-5",children:[g.jsx("h3",{className:"font-semibold text-gray-200",children:"Images"}),g.jsx(se,{label:"Navbar logo",value:(E=a.media)==null?void 0:E.logo,onChange:x=>f(["media","logo"],x)}),g.jsx(se,{label:"Profile photo",value:(_=a.media)==null?void 0:_.profile,onChange:x=>f(["media","profile"],x)}),g.jsx(se,{label:"Partner certificate",value:(R=a.media)==null?void 0:R.partnerCert,onChange:x=>f(["media","partnerCert"],x)}),g.jsx(se,{label:"Press / event photo (About section)",value:(N=a.media)==null?void 0:N.pressPhoto,onChange:x=>f(["media","pressPhoto"],x)}),g.jsx(se,{label:"About photo",value:($=a.media)==null?void 0:$.aboutPhoto,onChange:x=>f(["media","aboutPhoto"],x)}),g.jsx(se,{label:"Social share image (OG / Twitter)",value:(O=a.media)==null?void 0:O.ogImage,onChange:x=>f(["media","ogImage"],x)})]})]})]})})]})}function Q({label:e,children:t,dir:r=void 0}){return g.jsxs("div",{className:"space-y-1.5",dir:r,children:[g.jsx("label",{className:"text-sm font-medium text-gray-300",children:e}),t]})}function ze({editLang:e}){return g.jsxs("p",{className:"text-xs text-gray-500",children:["Editing ",g.jsx("span",{className:"text-gray-300 font-medium",children:e==="he"?"Hebrew":"English"})," content. Switch language with the toggle in the header."]})}export{nu as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.