(()=>{"use strict";var e={20(e,t,r){
/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var n=r(594),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,a={},s=null,u=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,n)&&!l.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:s,ref:u,props:a,_owner:c.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},848(e,t,r){e.exports=r(20)},594(e){e.exports=React}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nc=void 0;const n=wp.element,o=wp.i18n;var a=r(594);
/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const i=(...e)=>e.filter((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();
/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
var c={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const l=(0,a.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:l,iconNode:s,...u},d)=>(0,a.createElement)("svg",{ref:d,...c,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:i("lucide",o),...u},[...s.map(([e,t])=>(0,a.createElement)(e,t)),...Array.isArray(l)?l:[l]])),s=(e,t)=>{const r=(0,a.forwardRef)(({className:r,...n},o)=>{return(0,a.createElement)(l,{ref:o,iconNode:t,className:i(`lucide-${c=e,c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var c});return r.displayName=`${e}`,r},u=s("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),d=s("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),p=s("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),f=s("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),m=s("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),y=s("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),h=s("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),g=s("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),v=s("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);"undefined"==typeof window||!window.document||window.document.createElement;function b(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function w(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function x(...e){return t=>{let r=!1;const n=e.map(e=>{const n=w(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){const r=n[t];"function"==typeof r?r():w(e[t],null)}}}}function E(...e){return a.useCallback(x(...e),e)}var _=r(848);function R(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const n=r.reduce((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]}),{});return a.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}var k=globalThis?.document?a.useLayoutEffect:()=>{},S=a[" useId ".trim().toString()]||(()=>{}),O=0;function N(e){const[t,r]=a.useState(S());return k(()=>{e||r(e=>e??String(O++))},[e]),e||(t?`radix-${t}`:"")}var C=a[" useInsertionEffect ".trim().toString()]||k;function j({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,i,c]=function({defaultProp:e,onChange:t}){const[r,n]=a.useState(e),o=a.useRef(r),i=a.useRef(t);return C(()=>{i.current=t},[t]),a.useEffect(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}({defaultProp:t,onChange:r}),l=void 0!==e,s=l?e:o;{const t=a.useRef(void 0!==e);a.useEffect(()=>{const e=t.current;if(e!==l){const t=e?"controlled":"uncontrolled",r=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${t} to ${r}. 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=l},[l,n])}const u=a.useCallback(t=>{if(l){const r=function(e){return"function"==typeof e}(t)?t(e):t;r!==e&&c.current?.(r)}else i(t)},[l,e,i,c]);return[s,u]}Symbol("RADIX:SYNC_STATE");const P=ReactDOM;var A=r.n(P);function D(e){const t=M(e),r=a.forwardRef((e,r)=>{const{children:n,...o}=e,i=a.Children.toArray(n),c=i.find(I);if(c){const e=c.props.children,n=i.map(t=>t===c?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...o,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,_.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function M(e){const t=a.forwardRef((e,t)=>{const{children:r,...n}=e;if(a.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(o.ref=t?x(t,e):e),a.cloneElement(r,o)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var T=Symbol("radix.slottable");function I(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===T}var L=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const r=D(`Primitive.${t}`),n=a.forwardRef((e,n)=>{const{asChild:o,...a}=e,i=o?r:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,_.jsx)(i,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function W(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>(...e)=>t.current?.(...e),[])}var z,F="dismissableLayer.update",B="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",H=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),U=a.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:c,onDismiss:l,...s}=e,u=a.useContext(H),[d,p]=a.useState(null),f=d?.ownerDocument??globalThis?.document,[,m]=a.useState({}),y=E(t,e=>p(e)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(g),w=d?h.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,R=w>=v,k=function(e,t=globalThis?.document){const r=W(e),n=a.useRef(!1),o=a.useRef(()=>{});return a.useEffect(()=>{const e=e=>{if(e.target&&!n.current){let n=function(){q(B,r,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=n,t.addEventListener("click",o.current,{once:!0})):n()}else t.removeEventListener("click",o.current);n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}(e=>{const t=e.target,r=[...u.branches].some(e=>e.contains(t));R&&!r&&(o?.(e),c?.(e),e.defaultPrevented||l?.())},f),S=function(e,t=globalThis?.document){const r=W(e),n=a.useRef(!1);return a.useEffect(()=>{const e=e=>{if(e.target&&!n.current){q($,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(e=>{const t=e.target;[...u.branches].some(e=>e.contains(t))||(i?.(e),c?.(e),e.defaultPrevented||l?.())},f);return function(e,t=globalThis?.document){const r=W(e);a.useEffect(()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{w===u.layers.size-1&&(n?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},f),a.useEffect(()=>{if(d)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(z=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),V(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=z)}},[d,f,r,u]),a.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),V())},[d,u]),a.useEffect(()=>{const e=()=>m({});return document.addEventListener(F,e),()=>document.removeEventListener(F,e)},[]),(0,_.jsx)(L.div,{...s,ref:y,style:{pointerEvents:x?R?"auto":"none":void 0,...e.style},onFocusCapture:b(e.onFocusCapture,S.onFocusCapture),onBlurCapture:b(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:b(e.onPointerDownCapture,k.onPointerDownCapture)})});U.displayName="DismissableLayer";var G=a.forwardRef((e,t)=>{const r=a.useContext(H),n=a.useRef(null),o=E(t,n);return a.useEffect(()=>{const e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,_.jsx)(L.div,{...e,ref:o})});function V(){const e=new CustomEvent(F);document.dispatchEvent(e)}function q(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?function(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}(o,a):o.dispatchEvent(a)}G.displayName="DismissableLayerBranch";var Z="focusScope.autoFocusOnMount",X="focusScope.autoFocusOnUnmount",K={bubbles:!1,cancelable:!0},Y=a.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...c}=e,[l,s]=a.useState(null),u=W(o),d=W(i),p=a.useRef(null),f=E(t,e=>s(e)),m=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(n){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:te(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||te(p.current,{select:!0}))},r=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&te(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const n=new MutationObserver(r);return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[n,l,m.paused]),a.useEffect(()=>{if(l){re.add(m);const t=document.activeElement;if(!l.contains(t)){const r=new CustomEvent(Z,K);l.addEventListener(Z,u),l.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(te(n,{select:t}),document.activeElement!==r)return}((e=J(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&te(l))}return()=>{l.removeEventListener(Z,u),setTimeout(()=>{const e=new CustomEvent(X,K);l.addEventListener(X,d),l.dispatchEvent(e),e.defaultPrevented||te(t??document.body,{select:!0}),l.removeEventListener(X,d),re.remove(m)},0)}}var e},[l,u,d,m]);const y=a.useCallback(e=>{if(!r&&!n)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[n,a]=function(e){const t=J(e),r=Q(t,e),n=Q(t.reverse(),e);return[r,n]}(t);n&&a?e.shiftKey||o!==a?e.shiftKey&&o===n&&(e.preventDefault(),r&&te(a,{select:!0})):(e.preventDefault(),r&&te(n,{select:!0})):o===t&&e.preventDefault()}},[r,n,m.paused]);return(0,_.jsx)(L.div,{tabIndex:-1,...c,ref:f,onKeyDown:y})});function J(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const 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(;r.nextNode();)t.push(r.currentNode);return t}function Q(e,t){for(const r of e)if(!ee(r,{upTo:t}))return r}function ee(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Y.displayName="FocusScope";var re=function(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=ne(e,t),e.unshift(t)},remove(t){e=ne(e,t),e[0]?.resume()}}}();function ne(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}var oe=a.forwardRef((e,t)=>{const{container:r,...n}=e,[o,i]=a.useState(!1);k(()=>i(!0),[]);const c=r||o&&globalThis?.document?.body;return c?A().createPortal((0,_.jsx)(L.div,{...n,ref:t}),c):null});oe.displayName="Portal";var ae=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=a.useState(),n=a.useRef(null),o=a.useRef(e),i=a.useRef("none"),c=e?"mounted":"unmounted",[l,s]=function(e,t){return a.useReducer((e,r)=>t[e][r]??e,e)}(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const e=ie(n.current);i.current="mounted"===l?e:"none"},[l]),k(()=>{const t=n.current,r=o.current;if(r!==e){const n=i.current,a=ie(t);if(e)s("MOUNT");else if("none"===a||"none"===t?.display)s("UNMOUNT");else{s(r&&n!==a?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,s]),k(()=>{if(t){let e;const r=t.ownerDocument.defaultView??window,a=a=>{const i=ie(n.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(s("ANIMATION_END"),!o.current)){const n=t.style.animationFillMode;t.style.animationFillMode="forwards",e=r.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=n)})}},c=e=>{e.target===t&&(i.current=ie(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",a),t.addEventListener("animationend",a),()=>{r.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",a),t.removeEventListener("animationend",a)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:a.useCallback(e=>{n.current=e?getComputedStyle(e):null,r(e)},[])}}(t),o="function"==typeof r?r({present:n.isPresent}):a.Children.only(r),i=E(n.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof r||n.isPresent?a.cloneElement(o,{ref:i}):null};function ie(e){return e?.animationName||"none"}ae.displayName="Presence";var ce=0;function le(){a.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??se()),document.body.insertAdjacentElement("beforeend",e[1]??se()),ce++,()=>{1===ce&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),ce--}},[])}function se(){const 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 ue=function(){return ue=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ue.apply(this,arguments)};function de(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}Object.create;function pe(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"==typeof SuppressedError&&SuppressedError;var fe="right-scroll-bar-position",me="width-before-scroll-bar";function ye(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var he="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,ge=new WeakMap;function ve(e,t){var r,n,o,i=(r=t||null,n=function(t){return e.forEach(function(e){return ye(e,t)})},(o=(0,a.useState)(function(){return{value:r,callback:n,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=n,o.facade);return he(function(){var t=ge.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach(function(e){n.has(e)||ye(e,null)}),n.forEach(function(e){r.has(e)||ye(e,o)})}ge.set(i,e)},[e]),i}function be(e){return e}function we(e,t){void 0===t&&(t=be);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}}var xe=function(e){void 0===e&&(e={});var t=we(null);return t.options=ue({async:!0,ssr:!1},e),t}(),Ee=function(){},_e=a.forwardRef(function(e,t){var r=a.useRef(null),n=a.useState({onScrollCapture:Ee,onWheelCapture:Ee,onTouchMoveCapture:Ee}),o=n[0],i=n[1],c=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,f=e.sideCar,m=e.noRelative,y=e.noIsolation,h=e.inert,g=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,w=e.gapMode,x=de(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,_=ve([r,t]),R=ue(ue({},x),o);return a.createElement(a.Fragment,null,d&&a.createElement(E,{sideCar:xe,removeScrollBar:u,shards:p,noRelative:m,noIsolation:y,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:r,gapMode:w}),c?a.cloneElement(a.Children.only(l),ue(ue({},R),{ref:_})):a.createElement(b,ue({},R,{className:s,ref:_}),l))});_e.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_e.classNames={fullWidth:me,zeroRight:fe};var Re,ke=function(e){var t=e.sideCar,r=de(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return a.createElement(n,ue({},r))};ke.isSideCarExport=!0;function Se(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Re||r.nc;return t&&e.setAttribute("nonce",t),e}var Oe=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=Se())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ne=function(){var e,t=(e=Oe(),function(t,r){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},Ce={left:0,top:0,right:0,gap:0},je=function(e){return parseInt(e||"",10)||0},Pe=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ce;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[je(r),je(n),je(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Ae=Ne(),De="data-scroll-locked",Me=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===r&&(r="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(n,";\n   padding-right: ").concat(c,"px ").concat(n,";\n  }\n  body[").concat(De,"] {\n    overflow: hidden ").concat(n,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(c,"px ").concat(n,";\n    "),"padding"===r&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(fe," {\n    right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(me," {\n    margin-right: ").concat(c,"px ").concat(n,";\n  }\n  \n  .").concat(fe," .").concat(fe," {\n    right: 0 ").concat(n,";\n  }\n  \n  .").concat(me," .").concat(me," {\n    margin-right: 0 ").concat(n,";\n  }\n  \n  body[").concat(De,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n  }\n")},Te=function(){var e=parseInt(document.body.getAttribute(De)||"0",10);return isFinite(e)?e:0},Ie=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=void 0===n?"margin":n;a.useEffect(function(){return document.body.setAttribute(De,(Te()+1).toString()),function(){var e=Te()-1;e<=0?document.body.removeAttribute(De):document.body.setAttribute(De,e.toString())}},[]);var i=a.useMemo(function(){return Pe(o)},[o]);return a.createElement(Ae,{styles:Me(i,!t,o,r?"":"!important")})},Le=!1;if("undefined"!=typeof window)try{var We=Object.defineProperty({},"passive",{get:function(){return Le=!0,!0}});window.addEventListener("test",We,We),window.removeEventListener("test",We,We)}catch(e){Le=!1}var ze=!!Le&&{passive:!1},Fe=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},Be=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),$e(e,n)){var o=He(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},$e=function(e,t){return"v"===e?function(e){return Fe(e,"overflowY")}(t):function(e){return Fe(e,"overflowX")}(t)},He=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},Ue=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ge=function(e){return[e.deltaX,e.deltaY]},Ve=function(e){return e&&"current"in e?e.current:e},qe=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Ze=0,Xe=[];function Ke(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ye=(Je=function(e){var t=a.useRef([]),r=a.useRef([0,0]),n=a.useRef(),o=a.useState(Ze++)[0],i=a.useState(Ne)[0],c=a.useRef(e);a.useEffect(function(){c.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=pe([e.lockRef.current],(e.shards||[]).map(Ve),!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 l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!c.current.allowPinchZoom;var o,a=Ue(e),i=r.current,l="deltaX"in e?e.deltaX:i[0]-a[0],s="deltaY"in e?e.deltaY:i[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var p=window.getSelection(),f=p&&p.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var m=Be(d,u);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=Be(d,u)),!m)return!1;if(!n.current&&"changedTouches"in e&&(l||s)&&(n.current=o),!o)return!0;var y=n.current||o;return function(e,t,r,n,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,c=r.target,l=t.contains(c),s=!1,u=i>0,d=0,p=0;do{if(!c)break;var f=He(e,c),m=f[0],y=f[1]-f[2]-a*m;(m||y)&&$e(e,c)&&(d+=y,p+=m);var h=c.parentNode;c=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(p)<1||!o&&-i>p))&&(s=!0),s}(y,t,e,"h"===y?l:s,!0)},[]),s=a.useCallback(function(e){var r=e;if(Xe.length&&Xe[Xe.length-1]===i){var n="deltaY"in r?Ge(r):Ue(r),o=t.current.filter(function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var a=(c.current.shards||[]).map(Ve).filter(Boolean).filter(function(e){return e.contains(r.target)});(a.length>0?l(r,a[0]):!c.current.noIsolation)&&r.cancelable&&r.preventDefault()}}},[]),u=a.useCallback(function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:Ke(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=a.useCallback(function(e){r.current=Ue(e),n.current=void 0},[]),p=a.useCallback(function(t){u(t.type,Ge(t),t.target,l(t,e.lockRef.current))},[]),f=a.useCallback(function(t){u(t.type,Ue(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return Xe.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",s,ze),document.addEventListener("touchmove",s,ze),document.addEventListener("touchstart",d,ze),function(){Xe=Xe.filter(function(e){return e!==i}),document.removeEventListener("wheel",s,ze),document.removeEventListener("touchmove",s,ze),document.removeEventListener("touchstart",d,ze)}},[]);var m=e.removeScrollBar,y=e.inert;return a.createElement(a.Fragment,null,y?a.createElement(i,{styles:qe(o)}):null,m?a.createElement(Ie,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},xe.useMedium(Je),ke);var Je,Qe=a.forwardRef(function(e,t){return a.createElement(_e,ue({},e,{ref:t,sideCar:Ye}))});Qe.classNames=_e.classNames;const et=Qe;var tt=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},rt=new WeakMap,nt=new WeakMap,ot={},at=0,it=function(e){return e&&(e.host||it(e.parentNode))},ct=function(e,t,r,n){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var r=it(t);return r&&e.contains(r)?r:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ot[r]||(ot[r]=new WeakMap);var a=ot[r],i=[],c=new Set,l=new Set(o),s=function(e){e&&!c.has(e)&&(c.add(e),s(e.parentNode))};o.forEach(s);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(c.has(e))u(e);else try{var t=e.getAttribute(n),o=null!==t&&"false"!==t,l=(rt.get(e)||0)+1,s=(a.get(e)||0)+1;rt.set(e,l),a.set(e,s),i.push(e),1===l&&o&&nt.set(e,!0),1===s&&e.setAttribute(r,"true"),o||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),c.clear(),at++,function(){i.forEach(function(e){var t=rt.get(e)-1,o=a.get(e)-1;rt.set(e,t),a.set(e,o),t||(nt.has(e)||e.removeAttribute(n),nt.delete(e)),o||e.removeAttribute(r)}),--at||(rt=new WeakMap,rt=new WeakMap,nt=new WeakMap,ot={})}},lt=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||tt(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),ct(n,o,r,"aria-hidden")):function(){return null}};function st(e){const t=ut(e),r=a.forwardRef((e,r)=>{const{children:n,...o}=e,i=a.Children.toArray(n),c=i.find(pt);if(c){const e=c.props.children,n=i.map(t=>t===c?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,_.jsx)(t,{...o,ref:r,children:a.isValidElement(e)?a.cloneElement(e,void 0,n):null})}return(0,_.jsx)(t,{...o,ref:r,children:n})});return r.displayName=`${e}.Slot`,r}function ut(e){const t=a.forwardRef((e,t)=>{const{children:r,...n}=e;if(a.isValidElement(r)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;if(r)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(r),o=function(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(r[n]=o):"style"===n?r[n]={...o,...a}:"className"===n&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}(n,r.props);return r.type!==a.Fragment&&(o.ref=t?x(t,e):e),a.cloneElement(r,o)}return a.Children.count(r)>1?a.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var dt=Symbol("radix.slottable");function pt(e){return a.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===dt}var ft="Dialog",[mt,yt]=function(e,t=[]){let r=[];const n=()=>{const t=r.map(e=>a.createContext(e));return function(r){const n=r?.[e]||t;return a.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){const o=a.createContext(n),i=r.length;r=[...r,n];const c=t=>{const{scope:r,children:n,...c}=t,l=r?.[e]?.[i]||o,s=a.useMemo(()=>c,Object.values(c));return(0,_.jsx)(l.Provider,{value:s,children:n})};return c.displayName=t+"Provider",[c,function(r,c){const l=c?.[e]?.[i]||o,s=a.useContext(l);if(s)return s;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},R(n,...t)]}(ft),[ht,gt]=mt(ft),vt=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:c=!0}=e,l=a.useRef(null),s=a.useRef(null),[u,d]=j({prop:n,defaultProp:o??!1,onChange:i,caller:ft});return(0,_.jsx)(ht,{scope:t,triggerRef:l,contentRef:s,contentId:N(),titleId:N(),descriptionId:N(),open:u,onOpenChange:d,onOpenToggle:a.useCallback(()=>d(e=>!e),[d]),modal:c,children:r})};vt.displayName=ft;var bt="DialogTrigger",wt=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=gt(bt,r),a=E(t,o.triggerRef);return(0,_.jsx)(L.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ft(o.open),...n,ref:a,onClick:b(e.onClick,o.onOpenToggle)})});wt.displayName=bt;var xt="DialogPortal",[Et,_t]=mt(xt,{forceMount:void 0}),Rt=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=gt(xt,t);return(0,_.jsx)(Et,{scope:t,forceMount:r,children:a.Children.map(n,e=>(0,_.jsx)(ae,{present:r||i.open,children:(0,_.jsx)(oe,{asChild:!0,container:o,children:e})}))})};Rt.displayName=xt;var kt="DialogOverlay",St=a.forwardRef((e,t)=>{const r=_t(kt,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=gt(kt,e.__scopeDialog);return a.modal?(0,_.jsx)(ae,{present:n||a.open,children:(0,_.jsx)(Nt,{...o,ref:t})}):null});St.displayName=kt;var Ot=st("DialogOverlay.RemoveScroll"),Nt=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=gt(kt,r);return(0,_.jsx)(et,{as:Ot,allowPinchZoom:!0,shards:[o.contentRef],children:(0,_.jsx)(L.div,{"data-state":Ft(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ct="DialogContent",jt=a.forwardRef((e,t)=>{const r=_t(Ct,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=gt(Ct,e.__scopeDialog);return(0,_.jsx)(ae,{present:n||a.open,children:a.modal?(0,_.jsx)(Pt,{...o,ref:t}):(0,_.jsx)(At,{...o,ref:t})})});jt.displayName=Ct;var Pt=a.forwardRef((e,t)=>{const r=gt(Ct,e.__scopeDialog),n=a.useRef(null),o=E(t,r.contentRef,n);return a.useEffect(()=>{const e=n.current;if(e)return lt(e)},[]),(0,_.jsx)(Dt,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:b(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:b(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:b(e.onFocusOutside,e=>e.preventDefault())})}),At=a.forwardRef((e,t)=>{const r=gt(Ct,e.__scopeDialog),n=a.useRef(!1),o=a.useRef(!1);return(0,_.jsx)(Dt,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||r.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const a=t.target,i=r.triggerRef.current?.contains(a);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Dt=a.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...c}=e,l=gt(Ct,r),s=a.useRef(null),u=E(t,s);return le(),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Y,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,_.jsx)(U,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ft(l.open),...c,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ut,{titleId:l.titleId}),(0,_.jsx)(Gt,{contentRef:s,descriptionId:l.descriptionId})]})]})}),Mt="DialogTitle",Tt=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=gt(Mt,r);return(0,_.jsx)(L.h2,{id:o.titleId,...n,ref:t})});Tt.displayName=Mt;var It="DialogDescription",Lt=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=gt(It,r);return(0,_.jsx)(L.p,{id:o.descriptionId,...n,ref:t})});Lt.displayName=It;var Wt="DialogClose",zt=a.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=gt(Wt,r);return(0,_.jsx)(L.button,{type:"button",...n,ref:t,onClick:b(e.onClick,()=>o.onOpenChange(!1))})});function Ft(e){return e?"open":"closed"}zt.displayName=Wt;var Bt="DialogTitleWarning",[$t,Ht]=function(e,t){const r=a.createContext(t),n=e=>{const{children:t,...n}=e,o=a.useMemo(()=>n,Object.values(n));return(0,_.jsx)(r.Provider,{value:o,children:t})};return n.displayName=e+"Provider",[n,function(n){const o=a.useContext(r);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}]}(Bt,{contentName:Ct,titleName:Mt,docsSlug:"dialog"}),Ut=({titleId:e})=>{const t=Ht(Bt),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{if(e){document.getElementById(e)||console.error(r)}},[r,e]),null},Gt=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ht("DialogDescriptionWarning").contentName}}.`;return a.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)||console.warn(r)}},[r,e,t]),null},Vt=vt,qt=Rt,Zt=St,Xt=jt,Kt=Tt,Yt=Lt,Jt=zt;
/**
 * @license lucide-react v0.468.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */
const Qt=s("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function er(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=er(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function tr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=er(e))&&(n&&(n+=" "),n+=t);return n}const rr=e=>{const t=ir(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),nr(r,t)||ar(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},nr=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?nr(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},or=/^\[(.+)\]$/,ar=e=>{if(or.test(e)){const t=or.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},ir=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return ur(Object.entries(e.classGroups),r).forEach(([e,r])=>{cr(r,n,e,t)}),n},cr=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:lr(t,e)).classGroupId=r)}if("function"==typeof e)return sr(e)?void cr(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,o])=>{cr(o,lr(t,e),r,n)})})},lr=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},sr=e=>e.isThemeGetter,ur=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,dr=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,a)=>{r.set(o,a),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},pr=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],a=t.length,i=e=>{const r=[];let i,c=0,l=0;for(let s=0;s<e.length;s++){let u=e[s];if(0===c){if(u===o&&(n||e.slice(s,s+a)===t)){r.push(e.slice(l,s)),l=s+a;continue}if("/"===u){i=s;continue}}"["===u?c++:"]"===u&&c--}const s=0===r.length?e:e.substring(l),u=s.startsWith("!");return{modifiers:r,hasImportantModifier:u,baseClassName:u?s.substring(1):s,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return r?e=>r({className:e,parseClassName:i}):i},fr=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},mr=/\s+/;function yr(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=hr(e))&&(n&&(n+=" "),n+=t);return n}const hr=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=hr(e[n]))&&(r&&(r+=" "),r+=t);return r};function gr(e,...t){let r,n,o,a=function(c){const l=t.reduce((e,t)=>t(e),e());return r=(e=>({cache:dr(e.cacheSize),parseClassName:pr(e),...rr(e)}))(l),n=r.cache.get,o=r.cache.set,a=i,i(c)};function i(e){const t=n(e);if(t)return t;const a=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(mr);let c="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:s,baseClassName:u,maybePostfixModifierPosition:d}=r(t);let p=Boolean(d),f=n(p?u.substring(0,d):u);if(!f){if(!p){c=t+(c.length>0?" "+c:c);continue}if(f=n(u),!f){c=t+(c.length>0?" "+c:c);continue}p=!1}const m=fr(l).join(":"),y=s?m+"!":m,h=y+f;if(a.includes(h))continue;a.push(h);const g=o(f,p);for(let e=0;e<g.length;++e){const t=g[e];a.push(y+t)}c=t+(c.length>0?" "+c:c)}return c})(e,r);return o(e,a),a}return function(){return a(yr.apply(null,arguments))}}const vr=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},br=/^\[(?:([a-z-]+):)?(.+)\]$/i,wr=/^\d+\/\d+$/,xr=new Set(["px","full","screen"]),Er=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,_r=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Or=e=>Cr(e)||xr.has(e)||wr.test(e),Nr=e=>$r(e,"length",Hr),Cr=e=>Boolean(e)&&!Number.isNaN(Number(e)),jr=e=>$r(e,"number",Cr),Pr=e=>Boolean(e)&&Number.isInteger(Number(e)),Ar=e=>e.endsWith("%")&&Cr(e.slice(0,-1)),Dr=e=>br.test(e),Mr=e=>Er.test(e),Tr=new Set(["length","size","percentage"]),Ir=e=>$r(e,Tr,Ur),Lr=e=>$r(e,"position",Ur),Wr=new Set(["image","url"]),zr=e=>$r(e,Wr,Vr),Fr=e=>$r(e,"",Gr),Br=()=>!0,$r=(e,t,r)=>{const n=br.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Hr=e=>_r.test(e)&&!Rr.test(e),Ur=()=>!1,Gr=e=>kr.test(e),Vr=e=>Sr.test(e),qr=(Symbol.toStringTag,()=>{const e=vr("colors"),t=vr("spacing"),r=vr("blur"),n=vr("brightness"),o=vr("borderColor"),a=vr("borderRadius"),i=vr("borderSpacing"),c=vr("borderWidth"),l=vr("contrast"),s=vr("grayscale"),u=vr("hueRotate"),d=vr("invert"),p=vr("gap"),f=vr("gradientColorStops"),m=vr("gradientColorStopPositions"),y=vr("inset"),h=vr("margin"),g=vr("opacity"),v=vr("padding"),b=vr("saturate"),w=vr("scale"),x=vr("sepia"),E=vr("skew"),_=vr("space"),R=vr("translate"),k=()=>["auto",Dr,t],S=()=>[Dr,t],O=()=>["",Or,Nr],N=()=>["auto",Cr,Dr],C=()=>["","0",Dr],j=()=>[Cr,Dr];return{cacheSize:500,separator:":",theme:{colors:[Br],spacing:[Or,Nr],blur:["none","",Mr,Dr],brightness:j(),borderColor:[e],borderRadius:["none","","full",Mr,Dr],borderSpacing:S(),borderWidth:O(),contrast:j(),grayscale:C(),hueRotate:j(),invert:C(),gap:S(),gradientColorStops:[e],gradientColorStopPositions:[Ar,Nr],inset:k(),margin:k(),opacity:j(),padding:S(),saturate:j(),scale:j(),sepia:C(),skew:j(),space:S(),translate:S()},classGroups:{aspect:[{aspect:["auto","square","video",Dr]}],container:["container"],columns:[{columns:[Mr]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Dr]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pr,Dr]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Dr]}],grow:[{grow:C()}],shrink:[{shrink:C()}],order:[{order:["first","last","none",Pr,Dr]}],"grid-cols":[{"grid-cols":[Br]}],"col-start-end":[{col:["auto",{span:["full",Pr,Dr]},Dr]}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":[Br]}],"row-start-end":[{row:["auto",{span:[Pr,Dr]},Dr]}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Dr]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Dr]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[h]}],mx:[{mx:[h]}],my:[{my:[h]}],ms:[{ms:[h]}],me:[{me:[h]}],mt:[{mt:[h]}],mr:[{mr:[h]}],mb:[{mb:[h]}],ml:[{ml:[h]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Dr,t]}],"min-w":[{"min-w":[Dr,t,"min","max","fit"]}],"max-w":[{"max-w":[Dr,t,"none","full","min","max","fit","prose",{screen:[Mr]},Mr]}],h:[{h:[Dr,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Dr,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Dr,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Dr,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Mr,Nr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",jr]}],"font-family":[{font:[Br]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Dr]}],"line-clamp":[{"line-clamp":["none",Cr,jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Or,Dr]}],"list-image":[{"list-image":["none",Dr]}],"list-style-type":[{list:["none","disc","decimal",Dr]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Or,Nr]}],"underline-offset":[{"underline-offset":["auto",Or,Dr]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Dr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Dr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Lr]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ir]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},zr]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Or,Dr]}],"outline-w":[{outline:[Or,Nr]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Or,Nr]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Mr,Fr]}],"shadow-color":[{shadow:[Br]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Mr,Dr]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Dr]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",Dr]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",Dr]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pr,Dr]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Dr]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Dr]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Dr]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Or,Nr,jr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),Zr=gr(qr);function Xr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Zr(tr(t))}var Kr=["className"],Yr=["className","children","side"],Jr=["className"],Qr=["className"],en=["className"];function tn(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function rn(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function nn(){return nn=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},nn.apply(null,arguments)}function on(e){var t=nn({},(rn(e),e));return a.createElement(Vt,nn({"data-slot":"sheet"},t))}function an(e){var t=nn({},(rn(e),e));return a.createElement(qt,nn({"data-slot":"sheet-portal"},t))}function cn(e){var t=e.className,r=tn(e,Kr);return a.createElement(Zt,nn({"data-slot":"sheet-overlay",className:Xr("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},r))}function ln(e){var t=e.className,r=e.children,n=e.side,o=void 0===n?"right":n,i=tn(e,Yr);return a.createElement(an,null,a.createElement(cn,null),a.createElement(Xt,nn({"data-slot":"sheet-content",className:Xr("bg-background fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out","right"===o&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===o&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",t)},i),r,a.createElement(Jt,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none","aria-label":"Close"},a.createElement(Qt,{className:"h-4 w-4"}))))}function sn(e){var t=e.className,r=tn(e,Jr);return a.createElement("div",nn({"data-slot":"sheet-header",className:Xr("flex flex-col gap-1.5 p-6",t)},r))}function un(e){var t=e.className,r=tn(e,Qr);return a.createElement(Kt,nn({"data-slot":"sheet-title",className:Xr("text-foreground font-semibold text-base",t)},r))}function dn(e){var t=e.className,r=tn(e,en);return a.createElement(Yt,nn({"data-slot":"sheet-description",className:Xr("text-muted-foreground text-sm",t)},r))}var pn=[{heading:(0,o.__)("Getting Started","smartpay"),links:[{label:(0,o.__)("Main Documentation","smartpay"),url:"https://docs.wpsmartpay.com/en/category/wpsmartpay",icon:d},{label:(0,o.__)("Available Shortcodes","smartpay"),url:"https://docs.wpsmartpay.com/en/available-shortcodes",icon:p}]},{heading:(0,o.__)("Configuration","smartpay"),links:[{label:(0,o.__)("Product Configuration","smartpay"),url:"https://docs.wpsmartpay.com/en/product-configuration",icon:f},{label:(0,o.__)("Form Configuration","smartpay"),url:"https://docs.wpsmartpay.com/en/form-configuration",icon:m},{label:(0,o.__)("How to Setup Stripe","smartpay"),url:"https://docs.wpsmartpay.com/en/how-to-setup-stripe",icon:y}]},{heading:(0,o.__)("Extend","smartpay"),links:[{label:(0,o.__)("Integrations","smartpay"),url:"https://docs.wpsmartpay.com/en/developer-integration",icon:h},{label:(0,o.__)("Developer Docs","smartpay"),url:"https://docs.wpsmartpay.com/en/category/developer",icon:g}]}];function fn(e){var t=e.open,r=e.onOpenChange;return React.createElement(on,{open:t,onOpenChange:r},React.createElement(ln,{side:"right",className:"w-80 sm:max-w-xs overflow-y-auto"},React.createElement(sn,{className:"pb-4 border-b border-border"},React.createElement(un,{className:"flex items-center gap-2 text-base"},React.createElement(d,{className:"h-4 w-4 text-muted-foreground"}),(0,o.__)("Help & Documentation","smartpay")),React.createElement(dn,{className:"text-xs"},(0,o.__)("Guides, references and developer docs for WPSmartPay.","smartpay"))),React.createElement("nav",{className:"flex flex-col gap-6 px-6 pt-2 pb-5","aria-label":(0,o.__)("Documentation links","smartpay")},pn.map(function(e){return React.createElement("div",{key:e.heading},React.createElement("p",{className:"mb-2 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/60"},e.heading),React.createElement("ul",{className:"flex flex-col gap-0.5 list-none m-0 p-0"},e.links.map(function(e){var t=e.label,r=e.url,n=e.icon;return React.createElement("li",{key:t,className:"m-0 p-0"},React.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"group flex items-center gap-3 rounded-md px-3 py-2 text-sm text-foreground/80 hover:bg-muted hover:text-foreground transition-colors no-underline"},React.createElement(n,{className:"h-4 w-4 flex-shrink-0 text-muted-foreground group-hover:text-foreground transition-colors"}),React.createElement("span",{className:"flex-1 leading-snug"},t),React.createElement(v,{className:"h-3 w-3 flex-shrink-0 opacity-0 group-hover:opacity-40 transition-opacity"})))})))})),React.createElement("div",{className:"mt-auto px-6 pb-6 pt-4 border-t border-border"},React.createElement("a",{href:"https://wpsmartpay.com/support/",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center gap-2 w-full rounded-md border border-border bg-muted/40 px-4 py-2 text-sm text-muted-foreground hover:bg-muted hover:text-foreground transition-colors no-underline"},(0,o.__)("Contact Support","smartpay"),React.createElement(v,{className:"h-3.5 w-3.5 opacity-60"})))))}function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return yn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var hn="SmartPay";function gn(e){var t=e.title,r=(e.subtitle,mn((0,n.useState)(!1),2)),a=r[0],i=r[1];return(0,n.useEffect)(function(){document.title=t?"".concat(t," — ").concat(hn):hn},[t]),React.createElement(React.Fragment,null,React.createElement("div",{className:"smartpay-page-header"},React.createElement("div",{className:"smartpay-page-header__inner"},React.createElement("div",{className:"smartpay-page-header__logo"},React.createElement("img",{src:smartpay.logo,alt:"WPSmartPay"})),React.createElement("div",{className:"smartpay-page-header__actions"},React.createElement("button",{type:"button",className:"smartpay-page-header__help-btn",onClick:function(){return i(!0)},title:(0,o.__)("Help & Documentation","smartpay"),"aria-label":(0,o.__)("Open help documentation","smartpay")},React.createElement(u,{style:{width:14,height:14,opacity:.7}}),(0,o.__)("Help","smartpay"))))),React.createElement(fn,{open:a,onOpenChange:i}))}function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function bn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(r),!0).forEach(function(t){xn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=vn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function En(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Rn=window.smartpay.adminUrl,kn="sp_onboarding_v1",Sn="sp_onboarding_dismissed_v1",On=[{id:1,label:(0,o.__)("Configure currency & settings","smartpay"),desc:(0,o.__)("Set your currency, business name, and payment preferences.","smartpay"),links:[{label:(0,o.__)("Open Settings","smartpay"),href:"".concat(Rn,"?page=smartpay-setting")}]},{id:2,label:(0,o.__)("Create a payment form","smartpay"),desc:(0,o.__)("Build a form to collect payments on your site. Use a template or start from scratch.","smartpay"),links:[{label:(0,o.__)("Create Form","smartpay"),href:"".concat(Rn,"?page=smartpay#/native-forms")}]},{id:3,label:(0,o.__)("Connect a payment gateway","smartpay"),desc:(0,o.__)("Link Stripe, PayPal, Paddle, or another provider to process payments.","smartpay"),links:[{label:(0,o.__)("Open Integrations","smartpay"),href:"".concat(Rn,"?page=smartpay-integrations")}]},{id:4,label:(0,o.__)("Receive your first payment","smartpay"),desc:(0,o.__)("Share your form link — this checks automatically.","smartpay"),links:[],auto:!0}],Nn=function(e){return e.checked?React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",style:{flexShrink:0}},React.createElement("circle",{cx:"10",cy:"10",r:"10",fill:"var(--sp-brand)"}),React.createElement("path",{d:"M6 10.5l2.8 2.8 5.2-5.8",stroke:"#fff",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})):React.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",style:{flexShrink:0}},React.createElement("circle",{cx:"10",cy:"10",r:"9",stroke:"#c3c4c7",strokeWidth:"1.5",strokeDasharray:"3 2"}))},Cn=function(e){var t=e.dismissible,r=void 0===t||t,a=e.hasPayments,i=void 0!==a&&a,c=e.onLaunchWizard,l=En((0,n.useState)(function(){return function(){try{return JSON.parse(localStorage.getItem(kn)||"{}")}catch(e){return{}}}()}),2),s=l[0],u=l[1],d=En((0,n.useState)(function(){return r&&"1"===localStorage.getItem(Sn)}),2),p=d[0],f=d[1],m=En((0,n.useState)(!1),2),y=m[0],h=m[1],g=function(e){return 4===e?i:!!s[e]},v=On.filter(function(e){return g(e.id)}).length,b=function(){localStorage.setItem(Sn,"1"),f(!0)};return(0,n.useEffect)(function(){if(4===v&&(h(!0),r)){var e=setTimeout(b,3e3);return function(){return clearTimeout(e)}}},[v]),p?null:React.createElement("div",{style:{background:"var(--sp-surface)",border:"1px solid var(--sp-border)",borderRadius:"var(--sp-radius)",boxShadow:"var(--sp-shadow)",marginBottom:20,overflow:"hidden"}},React.createElement("div",{style:{padding:"16px 20px 0",display:"flex",alignItems:"center",justifyContent:"space-between"}},React.createElement("span",{style:{fontSize:13,fontWeight:700,color:"var(--sp-text)",letterSpacing:"-.1px"}},(0,o.__)("Getting Started","smartpay")),r&&React.createElement("button",{type:"button",onClick:b,"aria-label":(0,o.__)("Dismiss","smartpay"),style:{background:"none",border:"none",cursor:"pointer",color:"var(--sp-text-muted)",padding:4,display:"flex",alignItems:"center",borderRadius:4},onMouseOver:function(e){return e.currentTarget.style.color="var(--sp-text)"},onMouseOut:function(e){return e.currentTarget.style.color="var(--sp-text-muted)"}},React.createElement(Qt,{style:{width:15,height:15}}))),React.createElement("div",{style:{padding:"8px 20px 0"}},React.createElement("div",{style:{height:4,background:"var(--sp-border)",borderRadius:99,overflow:"hidden"}},React.createElement("div",{style:{height:"100%",width:"".concat(v/4*100,"%"),background:"var(--sp-brand)",borderRadius:99,transition:"width .3s ease"}})),React.createElement("div",{style:{fontSize:11,color:"var(--sp-text-muted)",marginTop:4}},v," / 4 ",(0,o.__)("complete","smartpay"))),y?React.createElement("div",{style:{padding:"20px 20px 22px",textAlign:"center"}},React.createElement("div",{style:{fontSize:13,fontWeight:600,color:"var(--sp-text)",marginBottom:4}},(0,o.__)("You're all set! Payments are ready to go.","smartpay")),React.createElement("div",{style:{fontSize:12,color:"var(--sp-text-muted)"}},r?(0,o.__)("This panel will close shortly.","smartpay"):(0,o.__)("All setup steps are complete.","smartpay"))):React.createElement(React.Fragment,null,React.createElement("ul",{style:{listStyle:"none",margin:"12px 0 0",padding:0}},On.map(function(e,t){var r=g(e.id);return React.createElement("li",{key:e.id,onClick:function(){return function(e){if(4!==e){var t=wn(wn({},s),{},xn({},e,!s[e]));u(t),localStorage.setItem(kn,JSON.stringify(t))}}(e.id)},style:{display:"flex",alignItems:"flex-start",gap:12,padding:"10px 20px",borderTop:t>0?"1px solid var(--sp-border)":"none",cursor:e.auto?"default":"pointer"},onMouseOver:function(t){e.auto||(t.currentTarget.style.background="var(--sp-surface-muted, #f6f7f7)")},onMouseOut:function(e){e.currentTarget.style.background="transparent"}},React.createElement("div",{style:{marginTop:1}},React.createElement(Nn,{checked:r})),React.createElement("div",{style:{flex:1,minWidth:0}},React.createElement("div",{style:{fontSize:13,fontWeight:600,color:r?"var(--sp-text-muted)":"var(--sp-text)",textDecoration:r?"line-through":"none",lineHeight:1.35}},e.label),!r&&React.createElement("div",{style:{fontSize:11.5,color:"var(--sp-text-muted)",marginTop:2,lineHeight:1.5}},e.desc)),!r&&e.links.length>0&&React.createElement("div",{style:{display:"flex",gap:10,alignItems:"center",flexShrink:0},onClick:function(e){return e.stopPropagation()}},e.links.map(function(e){return React.createElement("a",{key:e.href,href:e.href,style:{fontSize:12,color:"var(--sp-brand)",fontWeight:600,textDecoration:"none",whiteSpace:"nowrap"},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},e.label," →")})))})),c&&React.createElement("div",{style:{padding:"10px 20px 14px",borderTop:"1px solid var(--sp-border)"}},React.createElement("button",{type:"button",onClick:c,style:{background:"none",border:"none",padding:0,cursor:"pointer",fontSize:12,color:"var(--sp-brand)",fontWeight:600},onMouseOver:function(e){return e.currentTarget.style.textDecoration="underline"},onMouseOut:function(e){return e.currentTarget.style.textDecoration="none"}},(0,o.__)("Run Setup Wizard →","smartpay")))))},jn=Cn;function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?An(Object(r),!0).forEach(function(t){Mn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Pn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Pn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pn(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?In(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function In(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Ln={wordpress:(0,o.__)("WordPress","smartpay"),server:(0,o.__)("Server","smartpay"),smartpay:(0,o.__)("WPSmartPay","smartpay"),plugins:(0,o.__)("Active Plugins","smartpay")};function Wn(e){var t=e.text,r=Tn((0,n.useState)(!1),2),a=r[0],i=r[1];return React.createElement("button",{type:"button",onClick:function(){navigator.clipboard.writeText(t).then(function(){i(!0),setTimeout(function(){return i(!1)},2e3)})},className:"sp-btn sp-btn--outline",style:{flexShrink:0,fontSize:12}},a?(0,o.__)("Copied!","smartpay"):(0,o.__)("Copy","smartpay"))}function zn(e){var t=[];return Object.entries(e).forEach(function(e){var r,n=Tn(e,2),o=n[0],a=n[1];t.push("### ".concat(null!==(r=Ln[o])&&void 0!==r?r:o," ###")),"plugins"===o?a.forEach(function(e){return t.push("".concat(e.name,": ").concat(e.version))}):a.forEach(function(e){return t.push("".concat(e.label,": ").concat(e.value))}),t.push("")}),t.join("\n")}var Fn=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",className:"sp-accordion-btn__chevron"},React.createElement("path",{d:"m6 9 6 6 6-6"}))};function Bn(){var e=(window.smartpaySupport||{}).systemInfo,t=Tn((0,n.useState)({wordpress:!0,server:!0,smartpay:!0,plugins:!1}),2),r=t[0],a=t[1];if(!e)return null;return React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"}},React.createElement("div",null,React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("System Information","smartpay")),React.createElement("p",{style:{color:"var(--sp-text-muted)",fontSize:"12.5px",margin:"4px 0 0"}},(0,o.__)("Share this with support when reporting an issue.","smartpay"))),React.createElement(Wn,{text:zn(e)})),React.createElement("div",{className:"sp-detail-card__body",style:{padding:0}},Object.entries(e).map(function(e){var t,n=Tn(e,2),o=n[0],i=n[1];return React.createElement("div",{key:o,style:{borderBottom:"1px solid var(--sp-border)"}},React.createElement("button",{type:"button",className:"sp-accordion-btn".concat(r[o]?" sp-accordion-btn--open":""),onClick:function(){return function(e){return a(function(t){return Dn(Dn({},t),{},Mn({},e,!t[e]))})}(o)}},React.createElement("span",{style:{flex:1}},null!==(t=Ln[o])&&void 0!==t?t:o),React.createElement(Fn,null)),r[o]&&React.createElement("div",{style:{padding:"0 20px 4px"}},React.createElement("table",{className:"sp-kv-table"},React.createElement("tbody",null,"plugins"===o?i.map(function(e,t){return React.createElement("tr",{key:t},React.createElement("td",null,e.name),React.createElement("td",null,e.version))}):i.map(function(e,t){return React.createElement("tr",{key:t},React.createElement("td",null,e.label),React.createElement("td",null,e.value))})))))})))}function $n(e){return $n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$n(e)}function Hn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Un(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hn(Object(r),!0).forEach(function(t){Gn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Gn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=$n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$n(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(r,n,o,a){var l=n&&n.prototype instanceof c?n:c,s=Object.create(l.prototype);return qn(s,"_invoke",function(r,n,o){var a,c,l,s=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,r){return a=t,c=0,l=e,p.n=r,i}};function f(r,n){for(c=r,l=n,t=0;!d&&s&&!o&&t<u.length;t++){var o,a=u[t],f=p.p,m=a[2];r>3?(o=m===n)&&(l=a[(c=a[4])?5:(c=3,3)],a[4]=a[5]=e):a[0]<=f&&((o=r<2&&f<a[1])?(c=0,p.v=n,p.n=a[1]):f<m&&(o=r<3||a[0]>n||n>m)&&(a[4]=r,a[5]=n,p.n=m,c=0))}if(o||r>1)return i;throw d=!0,n}return function(o,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),c=u,l=m;(t=c<2?e:l)||!d;){a||(c?c<3?(c>1&&(p.n=-1),f(c,l)):p.n=l:p.v=l);try{if(s=2,a){if(c||(o="next"),t=a[o]){if(!(t=t.call(a,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,c<2&&(c=0)}else 1===c&&(t=a.return)&&t.call(a),c<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),c=1);a=e}else if((t=(d=p.n<0)?l:r.call(n,p))!==i)break}catch(t){a=e,c=1,l=t}finally{s=1}}return{value:t,done:d}}}(r,o,a),!0),s}var i={};function c(){}function l(){}function s(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(qn(t={},n,function(){return this}),t),d=s.prototype=c.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,qn(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=s,qn(d,"constructor",s),qn(s,"constructor",l),l.displayName="GeneratorFunction",qn(s,o,"GeneratorFunction"),qn(d),qn(d,o,"Generator"),qn(d,n,function(){return this}),qn(d,"toString",function(){return"[object Generator]"}),(Vn=function(){return{w:a,m:p}})()}function qn(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}qn=function(e,t,r,n){function a(t,r){qn(e,t,function(e){return this._invoke(t,r,e)})}t?o?o(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n}):e[t]=r:(a("next",0),a("throw",1),a("return",2))},qn(e,t,r,n)}function Zn(e,t,r,n,o,a,i){try{var c=e[a](i),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function Xn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Kn(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Yn(e){var t=e.text,r=Xn((0,n.useState)(!1),2),a=r[0],i=r[1];return React.createElement("button",{type:"button",onClick:function(){navigator.clipboard.writeText(t).then(function(){i(!0),setTimeout(function(){return i(!1)},2e3)})},className:"sp-btn sp-btn--outline",style:{fontSize:12}},a?(0,o.__)("Copied!","smartpay"):(0,o.__)("Copy","smartpay"))}function Jn(){var e=window.smartpaySupport||{},t=e.debugLog,r=e.nonce,a=e.restUrl,i=Xn((0,n.useState)(t||""),2),c=i[0],l=i[1],s=Xn((0,n.useState)(!1),2),u=s[0],d=s[1],p=Xn((0,n.useState)(!1),2),f=p[0],m=p[1],y=function(){var e,t=(e=Vn().m(function e(){var t;return Vn().w(function(e){for(;;)switch(e.p=e.n){case 0:return d(!0),e.p=1,t=new URL("".concat(a,"/support/debug-log/clear")),e.n=2,fetch(t.toString(),{method:"POST",headers:{"X-WP-Nonce":r,"Content-Type":"application/json"}});case 2:l(""),m(!0),setTimeout(function(){return m(!1)},2e3),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.p=4,d(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}),function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(e){Zn(a,n,o,i,c,"next",e)}function c(e){Zn(a,n,o,i,c,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}();return React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"}},React.createElement("div",null,React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("Debug Log","smartpay")),React.createElement("p",{style:{color:"var(--sp-text-muted)",fontSize:"12.5px",margin:"4px 0 0"}},(0,o.__)("Recent log entries from the WPSmartPay debug log file.","smartpay"))),React.createElement("div",{style:{display:"flex",gap:8,flexShrink:0,marginTop:2}},c&&React.createElement(Yn,{text:c}),React.createElement("button",{type:"button",onClick:y,disabled:u||!c,className:"sp-btn sp-btn--outline",style:Un({fontSize:12},c?{color:"#dc2626",borderColor:"#fecaca"}:{opacity:.45,cursor:"default"})},f?(0,o.__)("Cleared!","smartpay"):u?(0,o.__)("Clearing…","smartpay"):(0,o.__)("Clear Log","smartpay")))),React.createElement("div",{className:"sp-detail-card__body",style:{padding:0}},c?React.createElement("pre",{style:{background:"#111827",color:"#d1fae5",fontFamily:"monospace",fontSize:"11.5px",lineHeight:"1.65",margin:"0",maxHeight:"480px",overflowY:"auto",padding:"20px 24px",whiteSpace:"pre-wrap",wordBreak:"break-all"}},c):React.createElement("div",{style:{alignItems:"center",display:"flex",flexDirection:"column",gap:8,padding:"48px 24px",textAlign:"center"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 24 24",stroke:"#d1d5db",strokeWidth:"1.5"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})),React.createElement("p",{style:{color:"#374151",fontSize:"13.5px",fontWeight:600,margin:0}},(0,o.__)("Debug log is empty.","smartpay")),React.createElement("p",{style:{color:"#9ca3af",fontSize:"12.5px",margin:0}},(0,o.__)("Enable WP_DEBUG_LOG in wp-config.php to capture log entries.","smartpay")))))}function Qn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var to=[{tag:"sp_form",desc:(0,o.__)("Renders a native SmartPay form (CPT) inline on any page. Use this for new builds.","smartpay"),source:"Free · Pro overrides with template styling"},{tag:"smartpay_dashboard",desc:(0,o.__)("WooCommerce-style customer account dashboard (orders, subscriptions, downloads). Requires the visitor to be logged in.","smartpay"),source:"Free"},{tag:"smartpay_user_profile",desc:(0,o.__)("Edit-profile page (personal info, address, change password). Requires the visitor to be logged in.","smartpay"),source:"Free"},{tag:"smartpay_user_registration",desc:(0,o.__)("Frontend user registration form. Creates a SmartPay customer account on submit.","smartpay"),source:"Free"},{tag:"smartpay_user_login",desc:(0,o.__)("Frontend customer login form. Redirects to the dashboard on success.","smartpay"),source:"Free"},{tag:"smartpay_payment_receipt",desc:(0,o.__)('Shows the payment receipt for the current ?smartpay-payment=<uuid> URL. Typically used as the "return URL" on gateway settings.',"smartpay"),source:"Free"},{tag:"smartpay_form",desc:(0,o.__)("Legacy tag. Renders an older-generation payment form by ID. Auto-delegates to [sp_form] when the form has been migrated to the native CPT. Prefer [sp_form] for new builds.","smartpay"),source:"Free (legacy)"},{tag:"smartpay_product",desc:(0,o.__)("Legacy tag. Renders a Buy button for a product by ID. Supports popup and inline behavior. Still used by Pro product templates.","smartpay"),source:"Free (legacy) · Pro overrides with template styling"}],ro=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"}))},no=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2.5"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))};function oo(e){var t=e.text,r=Qn((0,n.useState)(!1),2),a=r[0],i=r[1];return React.createElement("button",{type:"button",onClick:function(e){e.preventDefault(),e.stopPropagation(),navigator.clipboard.writeText(t).then(function(){i(!0),setTimeout(function(){return i(!1)},1500)})},"aria-label":(0,o.__)("Copy shortcode","smartpay"),title:a?(0,o.__)("Copied!","smartpay"):(0,o.__)("Copy","smartpay"),style:{alignItems:"center",background:"transparent",border:"1px solid var(--sp-border)",borderRadius:6,color:a?"var(--sp-success, #10b981)":"var(--sp-text-muted)",cursor:"pointer",display:"inline-flex",flexShrink:0,height:26,justifyContent:"center",padding:0,transition:"color .15s, border-color .15s",width:28}},a?React.createElement(no,null):React.createElement(ro,null))}function ao(e){var t=e.item;return React.createElement("tr",{style:{borderBottom:"1px solid var(--sp-border)"}},React.createElement("td",{style:{padding:"14px 20px",verticalAlign:"top",width:1,whiteSpace:"nowrap"}},React.createElement("div",{style:{alignItems:"center",display:"flex",gap:8}},React.createElement("code",{style:{background:"var(--sp-surface-muted, #f3f4f6)",border:"1px solid var(--sp-border)",borderRadius:6,color:"var(--sp-text)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:12.5,fontWeight:500,padding:"4px 9px"}},"[",t.tag,"]"),React.createElement(oo,{text:"[".concat(t.tag,"]")}))),React.createElement("td",{style:{padding:"14px 20px",color:"var(--sp-text)",fontSize:13,lineHeight:1.55,verticalAlign:"top"}},t.desc),React.createElement("td",{style:{padding:"14px 20px",color:"var(--sp-text-muted)",fontSize:12,verticalAlign:"top",whiteSpace:"nowrap"}},t.source))}function io(){return React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header"},React.createElement("div",null,React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("Plugin Shortcodes","smartpay")),React.createElement("p",{style:{color:"var(--sp-text-muted)",fontSize:"12.5px",margin:"4px 0 0"}},(0,o.__)("Drop these into any page or post to render SmartPay components.","smartpay")))),React.createElement("div",{className:"sp-detail-card__body",style:{padding:0}},React.createElement("table",{style:{borderCollapse:"collapse",width:"100%"}},React.createElement("thead",null,React.createElement("tr",{style:{background:"var(--sp-surface-muted, #f9fafb)",borderBottom:"1px solid var(--sp-border)"}},React.createElement("th",{style:{color:"var(--sp-text-muted)",fontSize:11,fontWeight:600,padding:"10px 20px",textAlign:"left",textTransform:"uppercase",width:1,whiteSpace:"nowrap"}},(0,o.__)("Shortcode","smartpay")),React.createElement("th",{style:{color:"var(--sp-text-muted)",fontSize:11,fontWeight:600,padding:"10px 20px",textAlign:"left",textTransform:"uppercase"}},(0,o.__)("Description","smartpay")),React.createElement("th",{style:{color:"var(--sp-text-muted)",fontSize:11,fontWeight:600,padding:"10px 20px",textAlign:"left",textTransform:"uppercase",whiteSpace:"nowrap"}},(0,o.__)("Available in","smartpay")))),React.createElement("tbody",null,to.map(function(e){return React.createElement(ao,{key:e.tag,item:e})})))))}function co(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a,i,c=[],l=!0,s=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return lo(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lo(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var so,uo=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"}))},po=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m15.75 10.5 4.72-4.72a.75.75 0 0 1 1.28.53v11.38a.75.75 0 0 1-1.28.53l-4.72-4.72M4.5 18.75h9a2.25 2.25 0 0 0 2.25-2.25v-9a2.25 2.25 0 0 0-2.25-2.25h-9A2.25 2.25 0 0 0 2.25 7.5v9a2.25 2.25 0 0 0 2.25 2.25Z"}))},fo=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12c0 4.556-4.03 8.25-9 8.25a9.764 9.764 0 0 1-2.555-.337A5.972 5.972 0 0 1 5.41 20.97a5.969 5.969 0 0 1-.474-.065 4.48 4.48 0 0 0 .978-2.025c.09-.457-.133-.901-.467-1.226C3.93 16.178 3 14.189 3 12c0-4.556 4.03-8.25 9-8.25s9 3.694 9 8.25Z"}))},mo=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.35 3.836c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m8.9-4.414c.376.023.75.05 1.124.08 1.131.094 1.976 1.057 1.976 2.192V16.5A2.25 2.25 0 0 1 18 18.75h-2.25m-7.5-10.5H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V18.75m-7.5-10.5h6.375c.621 0 1.125.504 1.125 1.125v9.375m-8.25-3 1.5 1.5 3-3.75"}))},yo=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.25 6.75 22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3-4.5 16.5"}))},ho=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.75"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.48 3.499a.562.562 0 0 1 1.04 0l2.125 5.111a.563.563 0 0 0 .475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 0 0-.182.557l1.285 5.385a.562.562 0 0 1-.84.61l-4.725-2.885a.562.562 0 0 0-.586 0L6.982 20.54a.562.562 0 0 1-.84-.61l1.285-5.386a.562.562 0 0 0-.182-.557l-4.204-3.602a.562.562 0 0 1 .321-.988l5.518-.442a.563.563 0 0 0 .475-.345L11.48 3.5Z"}))},go=function(){return React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))},vo=[{key:"support",label:(0,o.__)("Support & Docs","smartpay")},{key:"sysinfo",label:(0,o.__)("System Info","smartpay")},{key:"debuglog",label:(0,o.__)("Debug Log","smartpay")},{key:"shortcodes",label:(0,o.__)("Shortcodes","smartpay")}],bo=[{icon:React.createElement(uo,null),title:(0,o.__)("Documentation","smartpay"),desc:(0,o.__)("Setup guides, shortcodes, and developer references.","smartpay"),url:"https://docs.wpsmartpay.com/"},{icon:React.createElement(po,null),title:(0,o.__)("Video Tutorials","smartpay"),desc:(0,o.__)("Watch step-by-step overviews for common workflows.","smartpay"),url:"https://www.youtube.com/watch?v=PdqA7XNH60Q"},{icon:React.createElement(fo,null),title:(0,o.__)("Contact Support","smartpay"),desc:(0,o.__)("Open a ticket and get help from the WPSmartPay team.","smartpay"),url:"https://wpsmartpay.com/support/"},{icon:React.createElement(mo,null),title:(0,o.__)("Changelog","smartpay"),desc:(0,o.__)("What's new — release notes and version history.","smartpay"),url:"https://wpsmartpay.com/changelog/"},{icon:React.createElement(yo,null),title:(0,o.__)("Developer Docs","smartpay"),desc:(0,o.__)("Hooks, REST API, and integration patterns for developers.","smartpay"),url:"https://docs.wpsmartpay.com/en/category/developer"},{icon:React.createElement(ho,null),title:(0,o.__)("Leave a Review","smartpay"),desc:(0,o.__)("Enjoying WPSmartPay? Share your experience on WordPress.org.","smartpay"),url:"https://wordpress.org/support/plugin/wp-smartpay/reviews/"}],wo=[{href:"https://wpsmartpay.com/support/",icon:React.createElement(fo,null),label:(0,o.__)("Open a Support Ticket","smartpay")},{href:"https://docs.wpsmartpay.com/",icon:React.createElement(uo,null),label:(0,o.__)("Search Documentation","smartpay")},{href:"https://wordpress.org/support/plugin/wp-smartpay/reviews/",icon:React.createElement(ho,null),label:(0,o.__)("Leave a Review","smartpay")}];function xo(e){var t=e.link;return React.createElement("a",{href:t.url,target:"_blank",rel:"noopener noreferrer",className:"sp-support-link"},React.createElement("div",{className:"sp-support-link__icon"},t.icon),React.createElement("div",{style:{flex:1,minWidth:0}},React.createElement("div",{className:"sp-support-link__title"},t.title),React.createElement("div",{className:"sp-support-link__desc"},t.desc)),React.createElement("div",{className:"sp-support-link__arrow"},React.createElement(go,null)))}function Eo(){var e=(window.smartpaySupport||{}).version;return React.createElement("div",{className:"sp-detail-grid"},React.createElement("div",null,React.createElement(jn,{dismissible:!1,hasPayments:!1}),React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header"},React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("Resources","smartpay"))),React.createElement("div",{className:"sp-detail-card__body",style:{padding:0}},bo.map(function(e){return React.createElement(xo,{key:e.url,link:e})})))),React.createElement("div",{className:"sp-detail-sidebar"},e&&React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header"},React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("Plugin","smartpay"))),React.createElement("div",{className:"sp-detail-card__body"},React.createElement("table",{className:"sp-kv-table"},React.createElement("tbody",null,React.createElement("tr",null,React.createElement("td",null,(0,o.__)("Version","smartpay")),React.createElement("td",null,React.createElement("span",{className:"sp-version-tag"},"v",e))),React.createElement("tr",null,React.createElement("td",null,(0,o.__)("Status","smartpay")),React.createElement("td",null,React.createElement("span",{className:"sp-badge sp-badge--active"},(0,o.__)("Active","smartpay")))))),React.createElement("a",{href:"https://wpsmartpay.com/changelog/",target:"_blank",rel:"noopener noreferrer",className:"sp-btn sp-btn--outline",style:{marginTop:12}},(0,o.__)("View Changelog","smartpay")," →"))),React.createElement("div",{className:"sp-detail-card"},React.createElement("div",{className:"sp-detail-card__header"},React.createElement("span",{className:"sp-detail-card__title"},(0,o.__)("Quick Links","smartpay"))),React.createElement("div",{className:"sp-detail-card__body",style:{padding:"8px 0"}},wo.map(function(e){var t=e.href,r=e.icon,n=e.label;return React.createElement("a",{key:t,href:t,target:"_blank",rel:"noopener noreferrer",className:"sp-quick-links__item"},React.createElement("span",{style:{color:"var(--sp-brand)",display:"flex",flexShrink:0}},r),n)})))))}function _o(){var e=co((0,n.useState)("support"),2),t=e[0],r=e[1];return React.createElement(React.Fragment,null,React.createElement(gn,{title:(0,o.__)("Support","smartpay"),subtitle:(0,o.__)("Documentation, debug tools, and system information.","smartpay")}),React.createElement("div",{className:"sp-layout"},React.createElement("div",{className:"sp-filter-tabs",style:{marginBottom:24}},vo.map(function(e){return React.createElement("button",{key:e.key,type:"button",onClick:function(){return r(e.key)},className:"sp-filter-tab"+(t===e.key?" sp-filter-tab--active":"")},e.label)})),"support"===t&&React.createElement(Eo,null),"sysinfo"===t&&React.createElement(Bn,null),"debuglog"===t&&React.createElement(Jn,null),"shortcodes"===t&&React.createElement(io,null)))}so=function(){var e=document.getElementById("smartpay-support");e&&(0,n.render)(React.createElement(_o,null),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",so):so())})();