Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
.next
/
static
/
chunks
/
Filename :
4417-c67eace59638749a.js
back
Copy
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4417],{9685:function(e,t,n){n.d(t,{aU:function(){return M},$j:function(){return _},VY:function(){return A},dk:function(){return F},aV:function(){return I},h_:function(){return L},fC:function(){return j},Dx:function(){return k},xz:function(){return S}});var r=n(2265),o=n(7437);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}(...e),e)}var l=n(9105),a=n(8482),s="AlertDialog",[c,d]=function(e,t=[]){let n=[],u=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return u.scopeName=e,[function(t,u){let i=r.createContext(u),l=n.length;n=[...n,u];let a=t=>{let{scope:n,children:u,...a}=t,s=n?.[e]?.[l]||i,c=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(s.Provider,{value:c,children:u})};return a.displayName=t+"Provider",[a,function(n,o){let a=o?.[e]?.[l]||i,s=r.useContext(a);if(s)return s;if(void 0!==u)return u;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(u,...t)]}(s,[l.p8]),f=(0,l.p8)(),v=e=>{let{__scopeAlertDialog:t,...n}=e,r=f(t);return(0,o.jsx)(l.fC,{...r,...n,modal:!0})};v.displayName=s;var p=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,u=f(n);return(0,o.jsx)(l.xz,{...u,...r,ref:t})});p.displayName="AlertDialogTrigger";var m=e=>{let{__scopeAlertDialog:t,...n}=e,r=f(t);return(0,o.jsx)(l.h_,{...r,...n})};m.displayName="AlertDialogPortal";var h=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,u=f(n);return(0,o.jsx)(l.aV,{...u,...r,ref:t})});h.displayName="AlertDialogOverlay";var g="AlertDialogContent",[y,E]=c(g),b=(0,a.sA)("AlertDialogContent"),w=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,children:u,...a}=e,s=f(n),c=r.useRef(null),d=i(t,c),v=r.useRef(null);return(0,o.jsx)(l.jm,{contentName:g,titleName:N,docsSlug:"alert-dialog",children:(0,o.jsx)(y,{scope:n,cancelRef:v,children:(0,o.jsxs)(l.VY,{role:"alertdialog",...s,...a,ref:d,onOpenAutoFocus:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(a.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=v.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,o.jsx)(b,{children:u}),(0,o.jsx)(T,{contentRef:c})]})})})});w.displayName=g;var N="AlertDialogTitle",C=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,u=f(n);return(0,o.jsx)(l.Dx,{...u,...r,ref:t})});C.displayName=N;var x="AlertDialogDescription",D=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,u=f(n);return(0,o.jsx)(l.dk,{...u,...r,ref:t})});D.displayName=x;var R=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,u=f(n);return(0,o.jsx)(l.x8,{...u,...r,ref:t})});R.displayName="AlertDialogAction";var P="AlertDialogCancel",O=r.forwardRef((e,t)=>{let{__scopeAlertDialog:n,...r}=e,{cancelRef:u}=E(P,n),a=f(n),s=i(t,u);return(0,o.jsx)(l.x8,{...a,...r,ref:s})});O.displayName=P;var T=e=>{let{contentRef:t}=e,n="`".concat(g,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(g,"` by passing a `").concat(x,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(g,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return r.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},j=v,S=p,L=m,I=h,A=w,M=R,_=O,k=C,F=D},9105:function(e,t,n){let r;n.d(t,{x8:function(){return eH},VY:function(){return eX},dk:function(){return eq},aV:function(){return eV},h_:function(){return ez},fC:function(){return eY},Dx:function(){return eZ},xz:function(){return eK},jm:function(){return eW},p8:function(){return ef}});var o,u=n(2265),i=n.t(u,2);function l(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return u.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}(...e),e)}var c=n(7437),d=globalThis?.document?u.useLayoutEffect:()=>{},f=i[" useId ".trim().toString()]||(()=>void 0),v=0;function p(e){let[t,n]=u.useState(f());return d(()=>{e||n(e=>e??String(v++))},[e]),e||(t?`radix-${t}`:"")}var m=i[" useInsertionEffect ".trim().toString()]||d;Symbol("RADIX:SYNC_STATE");var h=n(4887),g=n(8482),y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,g.Z8)(`Primitive.${t}`),r=u.forwardRef((e,r)=>{let{asChild:o,...u}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(i,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E(e){let t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...e)=>t.current?.(...e),[])}var b="dismissableLayer.update",w=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),N=u.forwardRef((e,t)=>{var n,r;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:a,onPointerDownOutside:d,onFocusOutside:f,onInteractOutside:v,onDismiss:p,...m}=e,h=u.useContext(w),[g,N]=u.useState(null),D=null!==(r=null==g?void 0:g.ownerDocument)&&void 0!==r?r:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=u.useState({}),P=s(t,e=>N(e)),O=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),j=O.indexOf(T),S=g?O.indexOf(g):-1,L=h.layersWithOutsidePointerEventsDisabled.size>0,I=S>=j,A=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=E(e),o=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){x("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...h.branches].some(e=>e.contains(t));!I||n||(null==d||d(e),null==v||v(e),e.defaultPrevented||null==p||p())},D),M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=E(e),o=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!o.current&&x("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==f||f(e),null==v||v(e),e.defaultPrevented||null==p||p())},D);return!function(e,t=globalThis?.document){let n=E(e);u.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S!==h.layers.size-1||(null==a||a(e),!e.defaultPrevented&&p&&(e.preventDefault(),p()))},D),u.useEffect(()=>{if(g)return i&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(o=D.body.style.pointerEvents,D.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),C(),()=>{i&&1===h.layersWithOutsidePointerEventsDisabled.size&&(D.body.style.pointerEvents=o)}},[g,D,i,h]),u.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),C())},[g,h]),u.useEffect(()=>{let e=()=>R({});return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,c.jsx)(y.div,{...m,ref:P,style:{pointerEvents:L?I?"auto":"none":void 0,...e.style},onFocusCapture:l(e.onFocusCapture,M.onFocusCapture),onBlurCapture:l(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:l(e.onPointerDownCapture,A.onPointerDownCapture)})});function C(){let e=new CustomEvent(b);document.dispatchEvent(e)}function x(e,t,n,r){let{discrete:o}=r,u=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&u.addEventListener(e,t,{once:!0}),o)?u&&h.flushSync(()=>u.dispatchEvent(i)):u.dispatchEvent(i)}N.displayName="DismissableLayer",u.forwardRef((e,t)=>{let n=u.useContext(w),r=u.useRef(null),o=s(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(y.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var D="focusScope.autoFocusOnMount",R="focusScope.autoFocusOnUnmount",P={bubbles:!1,cancelable:!0},O=u.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,d]=u.useState(null),f=E(o),v=E(i),p=u.useRef(null),m=s(t,e=>d(e)),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;let t=e.target;a.contains(t)?p.current=t:S(p.current,{select:!0})},t=function(e){if(h.paused||!a)return;let t=e.relatedTarget;null===t||a.contains(t)||S(p.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&S(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,h.paused]),u.useEffect(()=>{if(a){L.add(h);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(D,P);a.addEventListener(D,f),a.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(S(r,{select:t}),document.activeElement!==n)return}(T(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&S(a))}return()=>{a.removeEventListener(D,f),setTimeout(()=>{let t=new CustomEvent(R,P);a.addEventListener(R,v),a.dispatchEvent(t),t.defaultPrevented||S(null!=e?e:document.body,{select:!0}),a.removeEventListener(R,v),L.remove(h)},0)}}},[a,f,v,h]);let g=u.useCallback(e=>{if(!n&&!r||h.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,u]=function(e){let t=T(e);return[j(t,e),j(t.reverse(),e)]}(t);r&&u?e.shiftKey||o!==u?e.shiftKey&&o===r&&(e.preventDefault(),n&&S(u,{select:!0})):(e.preventDefault(),n&&S(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return(0,c.jsx)(y.div,{tabIndex:-1,...l,ref:m,onKeyDown:g})});function T(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function S(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var L=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=I(r,e)).unshift(e)},remove(e){var t;null===(t=(r=I(r,e))[0])||void 0===t||t.resume()}});function I(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var A=u.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[l,a]=u.useState(!1);d(()=>a(!0),[]);let s=o||l&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return s?h.createPortal((0,c.jsx)(y.div,{...i,ref:t}),s):null});A.displayName="Portal";var M=e=>{var t,n;let r,o;let{present:i,children:l}=e,a=function(e){var t,n;let[r,o]=u.useState(),i=u.useRef(null),l=u.useRef(e),a=u.useRef("none"),[s,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},u.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return u.useEffect(()=>{let e=_(i.current);a.current="mounted"===s?e:"none"},[s]),d(()=>{let t=i.current,n=l.current;if(n!==e){let r=a.current,o=_(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),d(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=_(i.current).includes(e.animationName);if(e.target===r&&o&&(c("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},u=e=>{e.target===r&&(a.current=_(i.current))};return r.addEventListener("animationstart",u),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",u),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:u.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(i),c="function"==typeof l?l({present:a.isPresent}):u.Children.only(l),f=s(a.ref,(r=null===(t=Object.getOwnPropertyDescriptor(c.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?c.ref:(r=null===(n=Object.getOwnPropertyDescriptor(c,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof l||a.isPresent?u.cloneElement(c,{ref:f}):null};function _(e){return(null==e?void 0:e.animationName)||"none"}M.displayName="Presence";var k=0;function F(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var W=n(6200),$=n(5770),U=n(7325),B=(0,n(5533)._)(),Y=function(){},K=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),o=r[0],i=r[1],l=e.forwardProps,a=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,v=e.sideCar,p=e.noIsolation,m=e.inert,h=e.allowPinchZoom,g=e.as,y=e.gapMode,E=(0,W._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),b=(0,U.q)([n,t]),w=(0,W.pi)((0,W.pi)({},E),o);return u.createElement(u.Fragment,null,d&&u.createElement(v,{sideCar:B,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:y}),l?u.cloneElement(u.Children.only(a),(0,W.pi)((0,W.pi)({},w),{ref:b})):u.createElement(void 0===g?"div":g,(0,W.pi)({},w,{className:s,ref:b}),a))});K.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},K.classNames={fullWidth:$.zi,zeroRight:$.pF};var z=n(9085),V=n(5517),X=n(8704),Z=!1;if("undefined"!=typeof window)try{var q=Object.defineProperty({},"passive",{get:function(){return Z=!0,!0}});window.addEventListener("test",q,q),window.removeEventListener("test",q,q)}catch(e){Z=!1}var H=!!Z&&{passive:!1},G=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},J=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Q(e,r)){var o=ee(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Q=function(e,t){return"v"===e?G(t,"overflowY"):G(t,"overflowX")},ee=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},et=function(e,t,n,r,o){var u,i=(u=window.getComputedStyle(t).direction,"h"===e&&"rtl"===u?-1:1),l=i*r,a=n.target,s=t.contains(a),c=!1,d=l>0,f=0,v=0;do{var p=ee(e,a),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&Q(e,a)&&(f+=h,v+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(v)||!o&&-l>v)&&(c=!0),c},en=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},er=function(e){return[e.deltaX,e.deltaY]},eo=function(e){return e&&"current"in e?e.current:e},eu=0,ei=[],el=(0,z.L)(B,function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(eu++)[0],i=u.useState(X.Ws)[0],l=u.useRef(e);u.useEffect(function(){l.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,W.ev)([e.lockRef.current],(e.shards||[]).map(eo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,u=en(e),i=n.current,a="deltaX"in e?e.deltaX:i[0]-u[0],s="deltaY"in e?e.deltaY:i[1]-u[1],c=e.target,d=Math.abs(a)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=J(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=J(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(a||s)&&(r.current=o),!o)return!0;var v=r.current||o;return et(v,t,e,"h"===v?a:s,!0)},[]),s=u.useCallback(function(e){if(ei.length&&ei[ei.length-1]===i){var n="deltaY"in e?er(e):en(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(l.current.shards||[]).map(eo).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=u.useCallback(function(e,n,r,o){var u={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(u),setTimeout(function(){t.current=t.current.filter(function(e){return e!==u})},1)},[]),d=u.useCallback(function(e){n.current=en(e),r.current=void 0},[]),f=u.useCallback(function(t){c(t.type,er(t),t.target,a(t,e.lockRef.current))},[]),v=u.useCallback(function(t){c(t.type,en(t),t.target,a(t,e.lockRef.current))},[]);u.useEffect(function(){return ei.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",s,H),document.addEventListener("touchmove",s,H),document.addEventListener("touchstart",d,H),function(){ei=ei.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,H),document.removeEventListener("touchmove",s,H),document.removeEventListener("touchstart",d,H)}},[]);var p=e.removeScrollBar,m=e.inert;return u.createElement(u.Fragment,null,m?u.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?u.createElement(V.jp,{gapMode:e.gapMode}):null)}),ea=u.forwardRef(function(e,t){return u.createElement(K,(0,W.pi)({},e,{ref:t,sideCar:el}))});ea.classNames=K.classNames;var es=n(5478),ec="Dialog",[ed,ef]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>u.createContext(e));return function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=u.createContext(r),i=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,a=n?.[e]?.[i]||o,s=u.useMemo(()=>l,Object.values(l));return(0,c.jsx)(a.Provider,{value:s,children:r})};return l.displayName=t+"Provider",[l,function(n,l){let a=l?.[e]?.[i]||o,s=u.useContext(a);if(s)return s;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(ec),[ev,ep]=ed(ec),em=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=u.useRef(null),s=u.useRef(null),[d,f]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,l]=function({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),o=u.useRef(n),i=u.useRef(t);return m(()=>{i.current=t},[t]),u.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:o;{let t=u.useRef(void 0!==e);u.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[s,u.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else i(t)},[a,e,i,l])]}({prop:r,defaultProp:null!=o&&o,onChange:i,caller:ec});return(0,c.jsx)(ev,{scope:t,triggerRef:a,contentRef:s,contentId:p(),titleId:p(),descriptionId:p(),open:d,onOpenChange:f,onOpenToggle:u.useCallback(()=>f(e=>!e),[f]),modal:l,children:n})};em.displayName=ec;var eh="DialogTrigger",eg=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ep(eh,n),u=s(t,o.triggerRef);return(0,c.jsx)(y.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ek(o.open),...r,ref:u,onClick:l(e.onClick,o.onOpenToggle)})});eg.displayName=eh;var ey="DialogPortal",[eE,eb]=ed(ey,{forceMount:void 0}),ew=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=ep(ey,t);return(0,c.jsx)(eE,{scope:t,forceMount:n,children:u.Children.map(r,e=>(0,c.jsx)(M,{present:n||i.open,children:(0,c.jsx)(A,{asChild:!0,container:o,children:e})}))})};ew.displayName=ey;var eN="DialogOverlay",eC=u.forwardRef((e,t)=>{let n=eb(eN,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=ep(eN,e.__scopeDialog);return u.modal?(0,c.jsx)(M,{present:r||u.open,children:(0,c.jsx)(eD,{...o,ref:t})}):null});eC.displayName=eN;var ex=(0,g.Z8)("DialogOverlay.RemoveScroll"),eD=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ep(eN,n);return(0,c.jsx)(ea,{as:ex,allowPinchZoom:!0,shards:[o.contentRef],children:(0,c.jsx)(y.div,{"data-state":ek(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eR="DialogContent",eP=u.forwardRef((e,t)=>{let n=eb(eR,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=ep(eR,e.__scopeDialog);return(0,c.jsx)(M,{present:r||u.open,children:u.modal?(0,c.jsx)(eO,{...o,ref:t}):(0,c.jsx)(eT,{...o,ref:t})})});eP.displayName=eR;var eO=u.forwardRef((e,t)=>{let n=ep(eR,e.__scopeDialog),r=u.useRef(null),o=s(t,n.contentRef,r);return u.useEffect(()=>{let e=r.current;if(e)return(0,es.Ry)(e)},[]),(0,c.jsx)(ej,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:l(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:l(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:l(e.onFocusOutside,e=>e.preventDefault())})}),eT=u.forwardRef((e,t)=>{let n=ep(eR,e.__scopeDialog),r=u.useRef(!1),o=u.useRef(!1);return(0,c.jsx)(ej,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var u,i;null===(u=e.onCloseAutoFocus)||void 0===u||u.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var u,i;null===(u=e.onInteractOutside)||void 0===u||u.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let l=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),ej=u.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=ep(eR,n),d=u.useRef(null),f=s(t,d);return u.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:F()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:F()),k++,()=>{1===k&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),k--}},[]),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,c.jsx)(N,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ek(a.open),...l,ref:f,onDismiss:()=>a.onOpenChange(!1)})}),(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eU,{titleId:a.titleId}),(0,c.jsx)(eB,{contentRef:d,descriptionId:a.descriptionId})]})]})}),eS="DialogTitle",eL=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ep(eS,n);return(0,c.jsx)(y.h2,{id:o.titleId,...r,ref:t})});eL.displayName=eS;var eI="DialogDescription",eA=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ep(eI,n);return(0,c.jsx)(y.p,{id:o.descriptionId,...r,ref:t})});eA.displayName=eI;var eM="DialogClose",e_=u.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=ep(eM,n);return(0,c.jsx)(y.button,{type:"button",...r,ref:t,onClick:l(e.onClick,()=>o.onOpenChange(!1))})});function ek(e){return e?"open":"closed"}e_.displayName=eM;var eF="DialogTitleWarning",[eW,e$]=function(e,t){let n=u.createContext(t),r=e=>{let{children:t,...r}=e,o=u.useMemo(()=>r,Object.values(r));return(0,c.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=u.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(eF,{contentName:eR,titleName:eS,docsSlug:"dialog"}),eU=e=>{let{titleId:t}=e,n=e$(eF),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return u.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},eB=e=>{let{contentRef:t,descriptionId:n}=e,r=e$("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return u.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},eY=em,eK=eg,ez=ew,eV=eC,eX=eP,eZ=eL,eq=eA,eH=e_}}]);