diff --git a/ipk-source/sdxpinn-quecmanager-beta/CONTROL/conffiles b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/conffiles new file mode 100644 index 0000000..8d22bf5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/conffiles @@ -0,0 +1 @@ +/etc/quecManager.conf diff --git a/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control index 11b15f1..6d7ce0a 100755 --- a/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control +++ b/ipk-source/sdxpinn-quecmanager-beta/CONTROL/control @@ -1,5 +1,5 @@ Package: sdxpinn-quecmanager-beta -Version: 0.0.9 +Version: 1.0.0 Architecture: aarch64_cortex-a53 Maintainer: Russel Yasol dr-dolomite@github.com Cameron Thompson iamromulan@github.com Description: A custom web UI desgined to run alongside luci for Quectel RM55x modems diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html index d514a0e..a03e40a 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/404.html @@ -1 +1 @@ -404: This page could not be found.QuecManager

404

This page could not be found.

    \ No newline at end of file +404: This page could not be found.QuecManager

    404

    This page could not be found.

      \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html b/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html index d514a0e..a03e40a 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/404/index.html @@ -1 +1 @@ -404: This page could not be found.QuecManager

      404

      This page could not be found.

        \ No newline at end of file +404: This page could not be found.QuecManager

        404

        This page could not be found.

          \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QvDfYYz0ef9rtxFpRTam5/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QvDfYYz0ef9rtxFpRTam5/_buildManifest.js deleted file mode 100644 index 5a3db19..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/QvDfYYz0ef9rtxFpRTam5/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-0eb3e56ba33eb808.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_buildManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_buildManifest.js deleted file mode 100644 index 5a3db19..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_buildManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__BUILD_MANIFEST={__rewrites:{afterFiles:[],beforeFiles:[],fallback:[]},"/_error":["static/chunks/pages/_error-0eb3e56ba33eb808.js"],sortedPages:["/_app","/_error"]},self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_ssgManifest.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_ssgManifest.js deleted file mode 100644 index 5b3ff59..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/c40mh5Ivnpa8AFnGJhED8/_ssgManifest.js +++ /dev/null @@ -1 +0,0 @@ -self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB() \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1247-638b0a66a55403bc.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1247-638b0a66a55403bc.js new file mode 100644 index 0000000..32adb62 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/1247-638b0a66a55403bc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1247],{78580:function(e,t,r){r.d(t,{d:function(){return d},z:function(){return l}});var a=r(20881),n=r(64149),o=r(54098),s=r(20116),i=r(90270);let d=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,t)=>{let{className:r,variant:n,size:s,asChild:l=!1,...u}=e,c=l?o.g7:"button";return(0,a.jsx)(c,{className:(0,i.cn)(d({variant:n,size:s,className:r})),ref:t,...u})});l.displayName="Button"},94920:function(e,t,r){r.d(t,{Ol:function(){return i},SZ:function(){return l},Zb:function(){return s},aY:function(){return u},eW:function(){return c},ll:function(){return d}});var a=r(20881),n=r(64149),o=r(90270);let s=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});s.displayName="Card";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...n})});i.displayName="CardHeader";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...n})});d.displayName="CardTitle";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...n})});l.displayName="CardDescription";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...n})});u.displayName="CardContent";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...n})});c.displayName="CardFooter"},33335:function(e,t,r){r.d(t,{I:function(){return s}});var a=r(20881),n=r(64149),o=r(90270);let s=n.forwardRef((e,t)=>{let{className:r,type:n,...s}=e;return(0,a.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});s.displayName="Input"},21501:function(e,t,r){r.d(t,{_:function(){return l}});var a=r(20881),n=r(64149),o=r(51212),s=r(20116),i=r(90270);let d=(0,s.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.f,{ref:t,className:(0,i.cn)(d(),r),...n})});l.displayName=o.f.displayName},22989:function(e,t,r){r.d(t,{Bw:function(){return m},DI:function(){return l},Ph:function(){return d},Ql:function(){return x},i4:function(){return c},ki:function(){return u},n5:function(){return h}});var a=r(20881),n=r(64149),o=r(35935),s=r(62072),i=r(90270);let d=s.fC,l=s.ZA,u=s.B4,c=n.forwardRef((e,t)=>{let{className:r,children:n,...d}=e;return(0,a.jsxs)(s.xz,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...d,children:[n,(0,a.jsx)(s.JO,{asChild:!0,children:(0,a.jsx)(o.jnn,{className:"h-4 w-4 opacity-50"})})]})});c.displayName=s.xz.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.u_,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(o.g8U,{})})});f.displayName=s.u_.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.$G,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(o.v4q,{})})});p.displayName=s.$G.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,position:o="popper",...d}=e;return(0,a.jsx)(s.h_,{children:(0,a.jsxs)(s.VY,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...d,children:[(0,a.jsx)(f,{}),(0,a.jsx)(s.l_,{className:(0,i.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(p,{})]})})});m.displayName=s.VY.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...n})});h.displayName=s.__.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,...d}=e;return(0,a.jsxs)(s.ck,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...d,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(o.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(s.eT,{children:n})]})});x.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=s.Z0.displayName},47657:function(e,t,r){r.d(t,{Z:function(){return i}});var a=r(20881),n=r(64149),o=r(48897),s=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:i=!0,...d}=e;return(0,a.jsx)(o.f,{ref:t,decorative:i,orientation:n,className:(0,s.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...d})});i.displayName=o.f.displayName},46646:function(e,t,r){r.d(t,{pm:function(){return f}});var a=r(64149);let n=0,o=new Map,s=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?s(r):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function u(e){l=i(l,e),d.forEach(e=>{e(l)})}function c(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(l);return a.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){r.d(t,{cn:function(){return o}});var a=r(33958),n=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var s={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"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:u,iconNode:c,...f}=e;return(0,a.createElement)("svg",{ref:t,...s,width:n,height:n,stroke:r,strokeWidth:d?24*Number(i)/Number(n):i,className:o("lucide",l),...f},[...c.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,s)=>{let{className:d,...l}=r;return(0,a.createElement)(i,{ref:s,iconNode:t,className:o("lucide-".concat(n(e)),d),...l})});return r.displayName="".concat(e),r}},24052:function(e,t,r){r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},51212:function(e,t,r){r.d(t,{f:function(){return i}});var a=r(64149),n=r(79442),o=r(20881),s=a.forwardRef((e,t)=>(0,o.jsx)(n.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var i=s},48897:function(e,t,r){r.d(t,{f:function(){return l}});var a=r(64149),n=r(79442),o=r(20881),s="horizontal",i=["horizontal","vertical"],d=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=s,...d}=e,l=i.includes(a)?a:s;return(0,o.jsx)(n.WV.div,{"data-orientation":l,...r?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},...d,ref:t})});d.displayName="Separator";var l=d}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/131-3a9a87c28b6ddcc9.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/131-3a9a87c28b6ddcc9.js deleted file mode 100644 index 41d65db..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/131-3a9a87c28b6ddcc9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[131],{83027:function(e,t,n){n.d(t,{B:function(){return s}});var r=n(64149),o=n(245),i=n(83954),a=n(54098),l=n(20881);function s(e){let t=e+"CollectionProvider",[n,s]=(0,o.b)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),s=(0,i.e)(t,o.collectionRef);return(0,l.jsx)(a.g7,{ref:s,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...s}=e,u=r.useRef(null),d=(0,i.e)(t,u),f=c(m,n);return r.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,l.jsx)(a.g7,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}},89105:function(e,t,n){n.d(t,{M:function(){return s}});var r,o=n(64149),i=n(61013),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},45485:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64149),o=n(83954),i=n(61013),a=e=>{var t,n;let a,s;let{present:u,children:c}=e,d=function(e){var t,n;let[o,a]=r.useState(),s=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=l(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),a(e)},[])}}(u),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,o.e)(d.ref,(a=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},72919:function(e,t,n){n.d(t,{Dx:function(){return Z},aU:function(){return et},dk:function(){return ee},fC:function(){return Q},l_:function(){return G},x8:function(){return en},zt:function(){return $}});var r=n(64149),o=n(50149),i=n(64433),a=n(83954),l=n(83027),s=n(74873),u=n(72832),c=n(97498),d=n(45485),f=n(79442),p=n(2441),m=n(45306),v=n(61013),h=n(12230),w=n(20881),y="ToastProvider",[x,g,T]=(0,l.B)("Toast"),[E,b]=(0,s.b)("Toast",[T]),[C,R]=E(y),M=e=>{let{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:l}=e,[s,u]=r.useState(null),[c,d]=r.useState(0),f=r.useRef(!1),p=r.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(y,"`. Expected non-empty `string`.")),(0,w.jsx)(x.Provider,{scope:t,children:(0,w.jsx)(C,{scope:t,label:n,duration:o,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:r.useCallback(()=>d(e=>e+1),[]),onToastRemove:r.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};M.displayName=y;var N="ToastViewport",P=["F8"],S="toast.viewportPause",L="toast.viewportResume",k=r.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:o=P,label:i="Notifications ({hotkey})",...l}=e,s=R(N,n),c=g(n),d=r.useRef(null),p=r.useRef(null),m=r.useRef(null),v=r.useRef(null),h=(0,a.e)(t,v,s.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=s.toastCount>0;r.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=v.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{let e=d.current,t=v.current;if(T&&e&&t){let n=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[T,s.isClosePausedRef]);let E=r.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return r.useEffect(()=>{let e=v.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,o,i;let n=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(r=p.current)||void 0===r||r.focus();return}let l=E({tabbingDirection:a?"backwards":"forwards"}),s=l.findIndex(e=>e===n);J(l.slice(s+1))?t.preventDefault():a?null===(o=p.current)||void 0===o||o.focus():null===(i=m.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,E]),(0,w.jsxs)(u.I0,{ref:d,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:T?void 0:"none"},children:[T&&(0,w.jsx)(I,{ref:p,onFocusFromOutsideViewport:()=>{J(E({tabbingDirection:"forwards"}))}}),(0,w.jsx)(x.Slot,{scope:n,children:(0,w.jsx)(f.WV.ol,{tabIndex:-1,...l,ref:h})}),T&&(0,w.jsx)(I,{ref:m,onFocusFromOutsideViewport:()=>{J(E({tabbingDirection:"backwards"}))}})]})});k.displayName=N;var j="ToastFocusProxy",I=r.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=R(j,n);return(0,w.jsx)(h.T,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=i.viewport)||void 0===t?void 0:t.contains(n))||r()}})});I.displayName=j;var D="Toast",O=r.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...l}=e,[s=!0,u]=(0,m.T)({prop:r,defaultProp:o,onChange:a});return(0,w.jsx)(d.z,{present:n||s,children:(0,w.jsx)(_,{open:s,...l,ref:t,onClose:()=>u(!1),onPause:(0,p.W)(e.onPause),onResume:(0,p.W)(e.onResume),onSwipeStart:(0,i.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,i.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:(0,i.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,i.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),u(!1)})})})});O.displayName=D;var[A,F]=E(D,{onClose(){}}),_=r.forwardRef((e,t)=>{let{__scopeToast:n,type:l="foreground",duration:s,open:c,onClose:d,onEscapeKeyDown:m,onPause:v,onResume:h,onSwipeStart:y,onSwipeMove:g,onSwipeCancel:T,onSwipeEnd:E,...b}=e,C=R(D,n),[M,N]=r.useState(null),P=(0,a.e)(t,e=>N(e)),k=r.useRef(null),j=r.useRef(null),I=s||C.duration,O=r.useRef(0),F=r.useRef(I),_=r.useRef(0),{onToastAdd:V,onToastRemove:K}=C,U=(0,p.W)(()=>{var e;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=C.viewport)||void 0===e||e.focus()),d()}),H=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),O.current=new Date().getTime(),_.current=window.setTimeout(U,e))},[U]);r.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{H(F.current),null==h||h()},n=()=>{let e=new Date().getTime()-O.current;F.current=F.current-e,window.clearTimeout(_.current),null==v||v()};return e.addEventListener(S,n),e.addEventListener(L,t),()=>{e.removeEventListener(S,n),e.removeEventListener(L,t)}}},[C.viewport,I,v,h,H]),r.useEffect(()=>{c&&!C.isClosePausedRef.current&&H(I)},[c,I,C.isClosePausedRef,H]),r.useEffect(()=>(V(),()=>K()),[V,K]);let z=r.useMemo(()=>M?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!r){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(M):null,[M]);return C.viewport?(0,w.jsxs)(w.Fragment,{children:[z&&(0,w.jsx)(W,{__scopeToast:n,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0,children:z}),(0,w.jsx)(A,{scope:n,onClose:U,children:o.createPortal((0,w.jsx)(x.ItemSlot,{scope:n,children:(0,w.jsx)(u.fC,{asChild:!0,onEscapeKeyDown:(0,i.M)(m,()=>{C.isFocusedToastEscapeKeyDownRef.current||U(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,w.jsx)(f.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":C.swipeDirection,...b,ref:P,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==m||m(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{if(!k.current)return;let t=e.clientX-k.current.x,n=e.clientY-k.current.y,r=!!j.current,o=["left","right"].includes(C.swipeDirection),i=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,l=o?0:i(0,n),s="touch"===e.pointerType?10:2,u={x:a,y:l},c={originalEvent:e,delta:u};r?(j.current=u,Y("toast.swipeMove",g,c,{discrete:!1})):q(u,C.swipeDirection,s)?(j.current=u,Y("toast.swipeStart",y,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(n)>s)&&(k.current=null)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=j.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),j.current=null,k.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};q(t,C.swipeDirection,C.swipeThreshold)?Y("toast.swipeEnd",E,r,{discrete:!0}):Y("toast.swipeCancel",T,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),W=e=>{let{__scopeToast:t,children:n,...o}=e,i=R(D,t),[a,l]=r.useState(!1),[s,u]=r.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,p.W)(e);(0,v.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>l(!0)),r.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,w.jsx)(c.h,{asChild:!0,children:(0,w.jsx)(h.T,{...o,children:a&&(0,w.jsxs)(w.Fragment,{children:[i.label," ",n]})})})},V=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,w.jsx)(f.WV.div,{...r,ref:t})});V.displayName="ToastTitle";var K=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,w.jsx)(f.WV.div,{...r,ref:t})});K.displayName="ToastDescription";var U="ToastAction",H=r.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,w.jsx)(X,{altText:n,asChild:!0,children:(0,w.jsx)(B,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(U,"`. Expected non-empty `string`.")),null)});H.displayName=U;var z="ToastClose",B=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,o=F(z,n);return(0,w.jsx)(X,{asChild:!0,children:(0,w.jsx)(f.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,o.onClose)})})});B.displayName=z;var X=r.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...o}=e;return(0,w.jsx)(f.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Y(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,f.jH)(i,a):i.dispatchEvent(a)}var q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function J(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var $=M,G=k,Q=O,Z=V,ee=K,et=H,en=B},37503:function(e,t,n){n.d(t,{VY:function(){return U},fC:function(){return V},xz:function(){return K},zt:function(){return W}});var r=n(64149),o=n(64433),i=n(83954),a=n(74873),l=n(72832),s=n(89105),u=n(95420),c=(n(97498),n(45485)),d=n(79442),f=n(54098),p=n(45306),m=n(12230),v=n(20881),[h,w]=(0,a.b)("Tooltip",[u.D7]),y=(0,u.D7)(),x="TooltipProvider",g="tooltip.open",[T,E]=h(x),b=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=r.useState(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(T,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:a})};b.displayName=x;var C="Tooltip",[R,M]=h(C),N=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=e,d=E(C,e.__scopeTooltip),f=y(t),[m,h]=r.useState(null),w=(0,s.M)(),x=r.useRef(0),T=null!=l?l:d.disableHoverableContent,b=null!=c?c:d.delayDuration,M=r.useRef(!1),[N=!1,P]=(0,p.T)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(g))):d.onClose(),null==a||a(e)}}),S=r.useMemo(()=>N?M.current?"delayed-open":"instant-open":"closed",[N]),L=r.useCallback(()=>{window.clearTimeout(x.current),M.current=!1,P(!0)},[P]),k=r.useCallback(()=>{window.clearTimeout(x.current),P(!1)},[P]),j=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{M.current=!0,P(!0)},b)},[b,P]);return r.useEffect(()=>()=>window.clearTimeout(x.current),[]),(0,v.jsx)(u.fC,{...f,children:(0,v.jsx)(R,{scope:t,contentId:w,open:N,stateAttribute:S,trigger:m,onTriggerChange:h,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?j():L()},[d.isOpenDelayed,j,L]),onTriggerLeave:r.useCallback(()=>{T?k():window.clearTimeout(x.current)},[k,T]),onOpen:L,onClose:k,disableHoverableContent:T,children:n})})};N.displayName=C;var P="TooltipTrigger",S=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,l=M(P,n),s=E(P,n),c=y(n),f=r.useRef(null),p=(0,i.e)(t,f,l.onTriggerChange),m=r.useRef(!1),h=r.useRef(!1),w=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),(0,v.jsx)(u.ee,{asChild:!0,...c,children:(0,v.jsx)(d.WV.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{l.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,o.M)(e.onBlur,l.onClose),onClick:(0,o.M)(e.onClick,l.onClose)})})});S.displayName=P;var[L,k]=h("TooltipPortal",{forceMount:void 0}),j="TooltipContent",I=r.forwardRef((e,t)=>{let n=k(j,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=M(j,e.__scopeTooltip);return(0,v.jsx)(c.z,{present:r||a.open,children:a.disableHoverableContent?(0,v.jsx)(F,{side:o,...i,ref:t}):(0,v.jsx)(D,{side:o,...i,ref:t})})}),D=r.forwardRef((e,t)=>{let n=M(j,e.__scopeTooltip),o=E(j,e.__scopeTooltip),a=r.useRef(null),l=(0,i.e)(t,a),[s,u]=r.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:p}=o,m=r.useCallback(()=>{u(null),p(!1)},[p]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&f){let e=e=>h(e,f),t=e=>h(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,h,m]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,s);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,s,d,m]),(0,v.jsx)(F,{...e,ref:l})}),[O,A]=h(C,{isInside:!1}),F=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,d=M(j,n),p=y(n),{onClose:h}=d;return r.useEffect(()=>(document.addEventListener(g,h),()=>document.removeEventListener(g,h)),[h]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,v.jsx)(l.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,v.jsxs)(u.VY,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(f.A4,{children:o}),(0,v.jsx)(O,{scope:n,isInside:!0,children:(0,v.jsx)(m.f,{id:d.contentId,role:"tooltip",children:i||o})})]})})});I.displayName=j;var _="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=y(n);return A(_,n).isInside?null:(0,v.jsx)(u.Eh,{...o,...r,ref:t})}).displayName=_;var W=b,V=N,K=S,U=I},12230:function(e,t,n){n.d(t,{T:function(){return a},f:function(){return l}});var r=n(64149),o=n(79442),i=n(20881),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var l=a},89448:function(e,t,n){n.d(t,{F:function(){return u},f:function(){return c}});var r=n(64149),o=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,l=r.createContext(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(l))?e:s},c=e=>r.useContext(l)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:c=d,defaultTheme:f=a?"system":"light",attribute:w="data-theme",value:y,children:x,nonce:g}=e,[T,E]=r.useState(()=>m(u,f)),[b,C]=r.useState(()=>m(u)),R=y?Object.values(y):c,M=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=h());let r=y?y[t]:t,i=n?v():null,l=document.documentElement;if("class"===w?(l.classList.remove(...R),r&&l.classList.add(r)):r?l.setAttribute(w,r):l.removeAttribute(w),s){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[]),N=r.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),P=r.useCallback(e=>{C(h(e)),"system"===T&&a&&!t&&M("system")},[T,t]);r.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===u&&N(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[N]),r.useEffect(()=>{M(null!=t?t:T)},[t,T]);let S=r.useMemo(()=>({theme:T,setTheme:N,forcedTheme:t,resolvedTheme:"system"===T?b:T,themes:a?[...c,"system"]:c,systemTheme:a?b:void 0}),[T,N,t,b,a,c]);return r.createElement(l.Provider,{value:S},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:s,storageKey:u,themes:c,defaultTheme:f,attribute:w,value:y,children:x,attrs:R,nonce:g}),x)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:l,enableColorScheme:s,defaultTheme:u,value:c,attrs:d,nonce:f}=e,p="system"===u,m="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),v=s?(o.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=c?c[e]:e,i=t?e+"|| ''":"'".concat(r,"'"),l="";return s&&n&&!t&&o.includes(e)&&(l+="d.style.colorScheme = '".concat(e,"';")),"class"===a?t||r?l+="c.add(".concat(i,")"):l+="null":r&&(l+="d[s](n,".concat(i,")")),l},w=t?"!function(){".concat(m).concat(h(t),"}()"):l?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(i,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(h(c?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(u,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(h(c?"x[e]":"e",!0),"}else{").concat(h(u,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:w}})}),m=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/136-3f9b66fad4f436d4.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/136-3f9b66fad4f436d4.js deleted file mode 100644 index 8717c50..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/136-3f9b66fad4f436d4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{83027:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(64149),o=n(245),a=n(83954),l=n(54098),u=n(20881);function i(e){let t=e+"CollectionProvider",[n,i]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,u.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),i=(0,a.e)(t,o.collectionRef);return(0,u.jsx)(l.g7,{ref:i,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,c=r.useRef(null),d=(0,a.e)(t,c),f=s(m,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...i}),()=>void f.itemMap.delete(c))),(0,u.jsx)(l.g7,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}},86004:function(e,t,n){n.d(t,{gm:function(){return a}});var r=n(64149);n(20881);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},67293:function(e,t,n){n.d(t,{oC:function(){return tf},VY:function(){return ti},ZA:function(){return tc},ck:function(){return td},wU:function(){return tv},__:function(){return ts},Uv:function(){return tu},Ee:function(){return tp},Rk:function(){return tm},fC:function(){return ta},Z0:function(){return th},Tr:function(){return tg},tu:function(){return ty},fF:function(){return tw},xz:function(){return tl}});var r=n(64149),o=n(64433),a=n(83954),l=n(74873),u=n(45306),i=n(79442),c=n(83027),s=n(86004),d=n(72832),f=n(57117),p=n(96616),m=n(89105),v=n(95420),h=n(97498),g=n(45485),w=n(245),y=n(2441),x=n(20881),M="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[R,j,D]=(0,c.B)(C),[k,E]=(0,w.b)(C,[D]),[S,T]=k(C),_=r.forwardRef((e,t)=>(0,x.jsx)(R.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(R.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(I,{...e,ref:t})})}));_.displayName=C;var I=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:c=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:h=!1,...g}=e,w=r.useRef(null),C=(0,a.e)(t,w),R=(0,s.gm)(d),[D=null,k]=(0,u.T)({prop:f,defaultProp:p,onChange:m}),[E,T]=r.useState(!1),_=(0,y.W)(v),I=j(n),P=r.useRef(!1),[N,F]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(M,_),()=>e.removeEventListener(M,_)},[_]),(0,x.jsx)(S,{scope:n,orientation:l,dir:R,loop:c,currentTabStopId:D,onItemFocus:r.useCallback(e=>k(e),[k]),onItemShiftTab:r.useCallback(()=>T(!0),[]),onFocusableItemAdd:r.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>F(e=>e-1),[]),children:(0,x.jsx)(i.WV.div,{tabIndex:E||0===N?-1:0,"data-orientation":l,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(M,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),h)}}P.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>T(!1))})})}),P="RovingFocusGroupItem",N=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:u,...c}=e,s=(0,m.M)(),d=u||s,f=T(P,n),p=f.currentTabStopId===d,v=j(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=f;return r.useEffect(()=>{if(a)return h(),()=>g()},[a,h,g]),(0,x.jsx)(R.ItemSlot,{scope:n,id:d,focusable:a,active:l,children:(0,x.jsx)(i.WV.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return F[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=f.loop?(n=o,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>O(o))}})})})});N.displayName=P;var F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var A=n(54098),L=n(32286),K=n(3748),V=["Enter"," "],G=["ArrowUp","PageDown","End"],W=["ArrowDown","PageUp","Home",...G],B={ltr:[...V,"ArrowRight"],rtl:[...V,"ArrowLeft"]},U={ltr:["ArrowLeft"],rtl:["ArrowRight"]},z="Menu",[X,H,Y]=(0,c.B)(z),[Z,J]=(0,l.b)(z,[Y,v.D7,E]),q=(0,v.D7)(),Q=E(),[$,ee]=Z(z),[et,en]=Z(z),er=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:l,modal:u=!0}=e,i=q(t),[c,d]=r.useState(null),f=r.useRef(!1),p=(0,y.W)(l),m=(0,s.gm)(a);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.jsx)(v.fC,{...i,children:(0,x.jsx)($,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,x.jsx)(et,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:u,children:o})})})};er.displayName=z;var eo=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=q(n);return(0,x.jsx)(v.ee,{...o,...r,ref:t})});eo.displayName="MenuAnchor";var ea="MenuPortal",[el,eu]=Z(ea,{forceMount:void 0}),ei=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ee(ea,t);return(0,x.jsx)(el,{scope:t,forceMount:n,children:(0,x.jsx)(g.z,{present:n||a.open,children:(0,x.jsx)(h.h,{asChild:!0,container:o,children:r})})})};ei.displayName=ea;var ec="MenuContent",[es,ed]=Z(ec),ef=r.forwardRef((e,t)=>{let n=eu(ec,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ee(ec,e.__scopeMenu),l=en(ec,e.__scopeMenu);return(0,x.jsx)(X.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(g.z,{present:r||a.open,children:(0,x.jsx)(X.Slot,{scope:e.__scopeMenu,children:l.modal?(0,x.jsx)(ep,{...o,ref:t}):(0,x.jsx)(em,{...o,ref:t})})})})}),ep=r.forwardRef((e,t)=>{let n=ee(ec,e.__scopeMenu),l=r.useRef(null),u=(0,a.e)(t,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,L.Ry)(e)},[]),(0,x.jsx)(ev,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),em=r.forwardRef((e,t)=>{let n=ee(ec,e.__scopeMenu);return(0,x.jsx)(ev,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ev=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:l=!1,trapFocus:u,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:y,onDismiss:M,disableOutsideScroll:b,...C}=e,R=ee(ec,n),j=en(ec,n),D=q(n),k=Q(n),E=H(n),[S,T]=r.useState(null),I=r.useRef(null),P=(0,a.e)(t,I,R.onContentChange),N=r.useRef(0),F=r.useRef(""),O=r.useRef(0),L=r.useRef(null),V=r.useRef("right"),B=r.useRef(0),U=b?K.Z:r.Fragment,z=b?{as:A.g7,allowPinchZoom:!0}:void 0,X=e=>{var t,n;let r=F.current+e,o=E().filter(e=>!e.disabled),a=document.activeElement,l=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,u=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),i=null===(n=o.find(e=>e.textValue===u))||void 0===n?void 0:n.ref.current;!function e(t){F.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout(()=>e(""),1e3))}(r),i&&setTimeout(()=>i.focus())};r.useEffect(()=>()=>window.clearTimeout(N.current),[]),(0,f.EW)();let Y=r.useCallback(e=>{var t,n,r;return V.current===(null===(t=L.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=L.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;er!=c>r&&n<(i-l)*(r-u)/(c-u)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,x.jsx)(es,{scope:n,searchRef:F,onItemEnter:r.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),onItemLeave:r.useCallback(e=>{var t;Y(e)||(null===(t=I.current)||void 0===t||t.focus(),T(null))},[Y]),onTriggerLeave:r.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),pointerGraceTimerRef:O,onPointerGraceIntentChange:r.useCallback(e=>{L.current=e},[]),children:(0,x.jsx)(U,{...z,children:(0,x.jsx)(p.M,{asChild:!0,trapped:u,onMountAutoFocus:(0,o.M)(i,e=>{var t;e.preventDefault(),null===(t=I.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,x.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:y,onDismiss:M,children:(0,x.jsx)(_,{asChild:!0,...k,dir:j.dir,orientation:"vertical",loop:l,currentTabStopId:S,onCurrentTabStopIdChange:T,onEntryFocus:(0,o.M)(m,e=>{j.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,x.jsx)(v.VY,{role:"menu","aria-orientation":"vertical","data-state":eB(R.open),"data-radix-menu-content":"",dir:j.dir,...D,...C,ref:P,style:{outline:"none",...C.style},onKeyDown:(0,o.M)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&X(e.key));let o=I.current;if(e.target!==o||!W.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);G.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),F.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,eX(e=>{let t=e.target,n=B.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>B.current?"right":"left";V.current=t,B.current=e.clientX}}))})})})})})})});ef.displayName=ec;var eh=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{role:"group",...r,ref:t})});eh.displayName="MenuGroup";var eg=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{...r,ref:t})});eg.displayName="MenuLabel";var ew="MenuItem",ey="menu.itemSelect",ex=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:l,...u}=e,c=r.useRef(null),s=en(ew,e.__scopeMenu),d=ed(ew,e.__scopeMenu),f=(0,a.e)(t,c),p=r.useRef(!1);return(0,x.jsx)(eM,{...u,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==l?void 0:l(e),{once:!0}),(0,i.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&V.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ex.displayName=ew;var eM=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:l=!1,textValue:u,...c}=e,s=ed(ew,n),d=Q(n),f=r.useRef(null),p=(0,a.e)(t,f),[m,v]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,x.jsx)(X.ItemSlot,{scope:n,disabled:l,textValue:null!=u?u:h,children:(0,x.jsx)(N,{asChild:!0,...d,focusable:!l,children:(0,x.jsx)(i.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,eX(e=>{l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eX(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),eb=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...a}=e;return(0,x.jsx)(eT,{scope:e.__scopeMenu,checked:n,children:(0,x.jsx)(ex,{role:"menuitemcheckbox","aria-checked":eU(n)?"mixed":n,...a,ref:t,"data-state":ez(n),onSelect:(0,o.M)(a.onSelect,()=>null==r?void 0:r(!!eU(n)||!n),{checkForDefaultPrevented:!1})})})});eb.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[eR,ej]=Z(eC,{value:void 0,onValueChange:()=>{}}),eD=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,y.W)(r);return(0,x.jsx)(eR,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,x.jsx)(eh,{...o,ref:t})})});eD.displayName=eC;var ek="MenuRadioItem",eE=r.forwardRef((e,t)=>{let{value:n,...r}=e,a=ej(ek,e.__scopeMenu),l=n===a.value;return(0,x.jsx)(eT,{scope:e.__scopeMenu,checked:l,children:(0,x.jsx)(ex,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":ez(l),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});eE.displayName=ek;var eS="MenuItemIndicator",[eT,e_]=Z(eS,{checked:!1}),eI=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=e_(eS,n);return(0,x.jsx)(g.z,{present:r||eU(a.checked)||!0===a.checked,children:(0,x.jsx)(i.WV.span,{...o,ref:t,"data-state":ez(a.checked)})})});eI.displayName=eS;var eP=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eP.displayName="MenuSeparator";var eN=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=q(n);return(0,x.jsx)(v.Eh,{...o,...r,ref:t})});eN.displayName="MenuArrow";var eF="MenuSub",[eO,eA]=Z(eF),eL=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,l=ee(eF,t),u=q(t),[i,c]=r.useState(null),[s,d]=r.useState(null),f=(0,y.W)(a);return r.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,x.jsx)(v.fC,{...u,children:(0,x.jsx)($,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,x.jsx)(eO,{scope:t,contentId:(0,m.M)(),triggerId:(0,m.M)(),trigger:i,onTriggerChange:c,children:n})})})};eL.displayName=eF;var eK="MenuSubTrigger",eV=r.forwardRef((e,t)=>{let n=ee(eK,e.__scopeMenu),l=en(eK,e.__scopeMenu),u=eA(eK,e.__scopeMenu),i=ed(eK,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,x.jsx)(eo,{asChild:!0,...f,children:(0,x.jsx)(eM,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":eB(n.open),...e,ref:(0,a.F)(t,u.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,eX(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eX(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=o[a?"left":"right"],u=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==i.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&B[l.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});eV.displayName=eK;var eG="MenuSubContent",eW=r.forwardRef((e,t)=>{let n=eu(ec,e.__scopeMenu),{forceMount:l=n.forceMount,...u}=e,i=ee(ec,e.__scopeMenu),c=en(ec,e.__scopeMenu),s=eA(eG,e.__scopeMenu),d=r.useRef(null),f=(0,a.e)(t,d);return(0,x.jsx)(X.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(g.z,{present:l||i.open,children:(0,x.jsx)(X.Slot,{scope:e.__scopeMenu,children:(0,x.jsx)(ev,{id:s.contentId,"aria-labelledby":s.triggerId,...u,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=U[c.dir].includes(e.key);if(t&&n){var r;i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function eB(e){return e?"open":"closed"}function eU(e){return"indeterminate"===e}function ez(e){return eU(e)?"indeterminate":e?"checked":"unchecked"}function eX(e){return t=>"mouse"===t.pointerType?e(t):void 0}eW.displayName=eG;var eH="DropdownMenu",[eY,eZ]=(0,l.b)(eH,[J]),eJ=J(),[eq,eQ]=eY(eH),e$=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:l,onOpenChange:i,modal:c=!0}=e,s=eJ(t),d=r.useRef(null),[f=!1,p]=(0,u.T)({prop:a,defaultProp:l,onChange:i});return(0,x.jsx)(eq,{scope:t,triggerId:(0,m.M)(),triggerRef:d,contentId:(0,m.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,x.jsx)(er,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};e$.displayName=eH;var e0="DropdownMenuTrigger",e1=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...l}=e,u=eQ(e0,n),c=eJ(n);return(0,x.jsx)(eo,{asChild:!0,...c,children:(0,x.jsx)(i.WV.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...l,ref:(0,a.F)(t,u.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e1.displayName=e0;var e4=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eJ(t);return(0,x.jsx)(ei,{...r,...n})};e4.displayName="DropdownMenuPortal";var e8="DropdownMenuContent",e2=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,l=eQ(e8,n),u=eJ(n),i=r.useRef(!1);return(0,x.jsx)(ef,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...a,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;i.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e2.displayName=e8;var e7=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eh,{...o,...r,ref:t})});e7.displayName="DropdownMenuGroup";var e9=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eg,{...o,...r,ref:t})});e9.displayName="DropdownMenuLabel";var e3=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(ex,{...o,...r,ref:t})});e3.displayName="DropdownMenuItem";var e5=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eb,{...o,...r,ref:t})});e5.displayName="DropdownMenuCheckboxItem";var e6=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eD,{...o,...r,ref:t})});e6.displayName="DropdownMenuRadioGroup";var te=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eE,{...o,...r,ref:t})});te.displayName="DropdownMenuRadioItem";var tt=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eI,{...o,...r,ref:t})});tt.displayName="DropdownMenuItemIndicator";var tn=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eP,{...o,...r,ref:t})});tn.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eN,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var tr=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eV,{...o,...r,ref:t})});tr.displayName="DropdownMenuSubTrigger";var to=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eW,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});to.displayName="DropdownMenuSubContent";var ta=e$,tl=e1,tu=e4,ti=e2,tc=e7,ts=e9,td=e3,tf=e5,tp=e6,tm=te,tv=tt,th=tn,tg=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,l=eJ(t),[i=!1,c]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,x.jsx)(eL,{...l,open:i,onOpenChange:c,children:n})},tw=tr,ty=to},89448:function(e,t,n){n.d(t,{F:function(){return c},f:function(){return s}});var r=n(64149),o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,u=r.createContext(void 0),i={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(u))?e:i},s=e=>r.useContext(u)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:s=d,defaultTheme:f=l?"system":"light",attribute:g="data-theme",value:w,children:y,nonce:x}=e,[M,b]=r.useState(()=>m(c,f)),[C,R]=r.useState(()=>m(c)),j=w?Object.values(w):s,D=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=h());let r=w?w[t]:t,a=n?v():null,u=document.documentElement;if("class"===g?(u.classList.remove(...j),r&&u.classList.add(r)):r?u.setAttribute(g,r):u.removeAttribute(g),i){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;u.style.colorScheme=n}null==a||a()},[]),k=r.useCallback(e=>{let t="function"==typeof e?e(e):e;b(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),E=r.useCallback(e=>{R(h(e)),"system"===M&&l&&!t&&D("system")},[M,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(E),E(e),()=>e.removeListener(E)},[E]),r.useEffect(()=>{let e=e=>{e.key===c&&k(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),r.useEffect(()=>{D(null!=t?t:M)},[t,M]);let S=r.useMemo(()=>({theme:M,setTheme:k,forcedTheme:t,resolvedTheme:"system"===M?C:M,themes:l?[...s,"system"]:s,systemTheme:l?C:void 0}),[M,k,t,C,l,s]);return r.createElement(u.Provider,{value:S},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:i,storageKey:c,themes:s,defaultTheme:f,attribute:g,value:w,children:y,attrs:j,nonce:x}),y)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:l,enableSystem:u,enableColorScheme:i,defaultTheme:c,value:s,attrs:d,nonce:f}=e,p="system"===c,m="class"===l?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(l,"',s='setAttribute';"),v=i?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),u="";return i&&n&&!t&&o.includes(e)&&(u+="d.style.colorScheme = '".concat(e,"';")),"class"===l?t||r?u+="c.add(".concat(a,")"):u+="null":r&&(u+="d[s](n,".concat(a,")")),u},g=t?"!function(){".concat(m).concat(h(t),"}()"):u?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2072-6b7bff13a5bdf6cc.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2072-6b7bff13a5bdf6cc.js new file mode 100644 index 0000000..b02860f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2072-6b7bff13a5bdf6cc.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2072],{55157:function(e,t,r){r.d(t,{u:function(){return n}});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},83027:function(e,t,r){r.d(t,{B:function(){return u}});var n=r(64149),l=r(245),o=r(83954),i=r(54098),a=r(20881);function u(e){let t=e+"CollectionProvider",[r,u]=(0,l.b)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,a.jsx)(s,{scope:t,itemMap:o,collectionRef:l,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=c(f,r),u=(0,o.e)(t,l.collectionRef);return(0,a.jsx)(i.g7,{ref:u,children:n})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:l,...u}=e,s=n.useRef(null),d=(0,o.e)(t,s),f=c(v,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,a.jsx)(i.g7,{[h]:"",ref:d,children:l})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},86004:function(e,t,r){r.d(t,{gm:function(){return o}});var n=r(64149);r(20881);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},62072:function(e,t,r){r.d(t,{$G:function(){return eK},B4:function(){return eP},JO:function(){return eN},VY:function(){return eV},Z0:function(){return eF},ZA:function(){return eL},__:function(){return eW},ck:function(){return eA},eT:function(){return eH},fC:function(){return eE},h_:function(){return eD},l_:function(){return e_},u_:function(){return eO},wU:function(){return eB},xz:function(){return eI}});var n=r(64149),l=r(50149),o=r(55157),i=r(64433),a=r(83027),u=r(83954),s=r(74873),c=r(86004),d=r(72832),f=r(57117),p=r(96616),v=r(89105),h=r(95420),m=r(97498),w=r(79442),g=r(54098),x=r(2441),y=r(45306),b=r(61013),S=r(32437),C=r(12230),M=r(32286),j=r(3748),R=r(20881),T=[" ","Enter","ArrowUp","ArrowDown"],k=[" ","Enter"],E="Select",[I,P,N]=(0,a.B)(E),[D,V]=(0,s.b)(E,[N,h.D7]),_=(0,h.D7)(),[L,W]=D(E),[A,H]=D(E),B=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:d,name:f,autoComplete:p,disabled:m,required:w,form:g}=e,x=_(t),[b,S]=n.useState(null),[C,M]=n.useState(null),[j,T]=n.useState(!1),k=(0,c.gm)(d),[E=!1,P]=(0,y.T)({prop:l,defaultProp:o,onChange:i}),[N,D]=(0,y.T)({prop:a,defaultProp:u,onChange:s}),V=n.useRef(null),W=!b||g||!!b.closest("form"),[H,B]=n.useState(new Set),O=Array.from(H).map(e=>e.props.value).join(";");return(0,R.jsx)(h.fC,{...x,children:(0,R.jsxs)(L,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:M,valueNodeHasChildren:j,onValueNodeHasChildrenChange:T,contentId:(0,v.M)(),value:N,onValueChange:D,open:E,onOpenChange:P,dir:k,triggerPointerDownPosRef:V,disabled:m,children:[(0,R.jsx)(I.Provider,{scope:t,children:(0,R.jsx)(A,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),W?(0,R.jsxs)(eR,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:N,onChange:e=>D(e.target.value),disabled:m,form:g,children:[void 0===N?(0,R.jsx)("option",{value:""}):null,Array.from(H)]},O):null]})})};B.displayName=E;var O="SelectTrigger",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,a=_(r),s=W(O,r),c=s.disabled||l,d=(0,u.e)(t,s.onTriggerChange),f=P(r),p=n.useRef("touch"),[v,m,g]=eT(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=ek(t,e,r);void 0!==n&&s.onValueChange(n.value)}),x=e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,R.jsx)(h.ee,{asChild:!0,...a,children:(0,R.jsx)(w.WV.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ej(s.value)?"":void 0,...o,ref:d,onClick:(0,i.M)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&x(e)}),onPointerDown:(0,i.M)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,i.M)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(x(),e.preventDefault())})})})});K.displayName=O;var F="SelectValue",U=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:i="",...a}=e,s=W(F,r),{onValueNodeHasChildrenChange:c}=s,d=void 0!==o,f=(0,u.e)(t,s.onValueNodeChange);return(0,b.b)(()=>{c(d)},[c,d]),(0,R.jsx)(w.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:ej(s.value)?(0,R.jsx)(R.Fragment,{children:i}):o})});U.displayName=F;var z=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,R.jsx)(w.WV.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});z.displayName="SelectIcon";var q=e=>(0,R.jsx)(m.h,{asChild:!0,...e});q.displayName="SelectPortal";var Y="SelectContent",Z=n.forwardRef((e,t)=>{let r=W(Y,e.__scopeSelect),[o,i]=n.useState();return((0,b.b)(()=>{i(new DocumentFragment)},[]),r.open)?(0,R.jsx)(J,{...e,ref:t}):o?l.createPortal((0,R.jsx)(X,{scope:e.__scopeSelect,children:(0,R.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,R.jsx)("div",{children:e.children})})}),o):null});Z.displayName=Y;var[X,G]=D(Y),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...T}=e,k=W(Y,r),[E,I]=n.useState(null),[N,D]=n.useState(null),V=(0,u.e)(t,e=>I(e)),[_,L]=n.useState(null),[A,H]=n.useState(null),B=P(r),[O,K]=n.useState(!1),F=n.useRef(!1);n.useEffect(()=>{if(E)return(0,M.Ry)(E)},[E]),(0,f.EW)();let U=n.useCallback(e=>{let[t,...r]=B().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&N&&(N.scrollTop=0),r===n&&N&&(N.scrollTop=N.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[B,N]),z=n.useCallback(()=>U([_,E]),[U,_,E]);n.useEffect(()=>{O&&z()},[O,z]);let{onOpenChange:q,triggerPointerDownPosRef:Z}=k;n.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=Z.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=Z.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():E.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),Z.current=null};return null!==Z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[E,q,Z]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[G,J]=eT(e=>{let t=B().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=ek(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==k.value&&k.value===t||n)&&(L(e),n&&(F.current=!0))},[k.value]),et=n.useCallback(()=>null==E?void 0:E.focus(),[E]),er=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==k.value&&k.value===t||n)&&H(e)},[k.value]),en="popper"===l?Q:$,el=en===Q?{side:c,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,R.jsx)(X,{scope:r,content:E,viewport:N,onViewportChange:D,itemRefCallback:ee,selectedItem:_,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:z,selectedItemText:A,position:l,isPositioned:O,searchRef:G,children:(0,R.jsx)(j.Z,{as:g.g7,allowPinchZoom:!0,children:(0,R.jsx)(p.M,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.M)(o,e=>{var t;null===(t=k.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,R.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,R.jsx)(en,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...T,...el,onPlaced:()=>K(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:(0,i.M)(T.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var $=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...i}=e,a=W(Y,r),s=G(Y,r),[c,d]=n.useState(null),[f,p]=n.useState(null),v=(0,u.e)(t,e=>p(e)),h=P(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=s,M=n.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&f&&x&&y&&S){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==a.dir){let l=n.left-t.left,i=r.left-l,a=e.left-i,u=e.width+a,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,o.u)(i,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.left=f+"px"}else{let l=t.right-n.right,i=window.innerWidth-r.right-l,a=window.innerWidth-e.right-i,u=e.width+a,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,o.u)(i,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.right=f+"px"}let i=h(),u=window.innerHeight-20,s=x.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),g=p+v+s+parseInt(d.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),M=parseInt(C.paddingTop,10),j=parseInt(C.paddingBottom,10),R=e.top+e.height/2-10,T=y.offsetHeight/2,k=p+v+(y.offsetTop+T);if(k<=R){let e=i.length>0&&y===i[i.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-x.offsetTop-x.offsetHeight;c.style.height=k+Math.max(u-R,T+(e?j:0)+t+w)+"px"}else{let e=i.length>0&&y===i[0].ref.current;c.style.top="0px";let t=Math.max(R,p+x.offsetTop+(e?M:0)+T);c.style.height=t+(g-k)+"px",x.scrollTop=k-R+x.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=b+"px",c.style.maxHeight=u+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,c,f,x,y,S,a.dir,l]);(0,b.b)(()=>M(),[M]);let[j,T]=n.useState();(0,b.b)(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let k=n.useCallback(e=>{e&&!0===g.current&&(M(),null==C||C(),g.current=!1)},[M,C]);return(0,R.jsx)(ee,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:(0,R.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,R.jsx)(w.WV.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});$.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,i=_(r);return(0,R.jsx)(h.VY,{...i,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=D(Y,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,a=G(er,r),s=et(er,r),c=(0,u.e)(t,a.onViewportChange),d=n.useRef(0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,R.jsx)(I.Slot,{scope:r,children:(0,R.jsx)(w.WV.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,i.M)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?a:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var el="SelectGroup",[eo,ei]=D(el),ea=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.M)();return(0,R.jsx)(eo,{scope:r,id:l,children:(0,R.jsx)(w.WV.div,{role:"group","aria-labelledby":l,...n,ref:t})})});ea.displayName=el;var eu="SelectLabel",es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ei(eu,r);return(0,R.jsx)(w.WV.div,{id:l.id,...n,ref:t})});es.displayName=eu;var ec="SelectItem",[ed,ef]=D(ec),ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:a,...s}=e,c=W(ec,r),d=G(ec,r),f=c.value===l,[p,h]=n.useState(null!=a?a:""),[m,g]=n.useState(!1),x=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,l,o)}),y=(0,v.M)(),b=n.useRef("touch"),S=()=>{o||(c.onValueChange(l),c.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,R.jsx)(ed,{scope:r,value:l,disabled:o,textId:y,isSelected:f,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,R.jsx)(I.ItemSlot,{scope:r,value:l,disabled:o,textValue:p,children:(0,R.jsx)(w.WV.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:(0,i.M)(s.onFocus,()=>g(!0)),onBlur:(0,i.M)(s.onBlur,()=>g(!1)),onClick:(0,i.M)(s.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,i.M)(s.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,i.M)(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,i.M)(s.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,i.M)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,i.M)(s.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(k.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var ev="SelectItemText",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:i,...a}=e,s=W(ev,r),c=G(ev,r),d=ef(ev,r),f=H(ev,r),[p,v]=n.useState(null),h=(0,u.e)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,g=n.useMemo(()=>(0,R.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=f;return(0,b.b)(()=>(x(g),()=>y(g)),[x,y,g]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(w.WV.span,{id:d.textId,...a,ref:h}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(em,r).isSelected?(0,R.jsx)(w.WV.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=em;var eg="SelectScrollUpButton",ex=n.forwardRef((e,t)=>{let r=G(eg,e.__scopeSelect),l=et(eg,e.__scopeSelect),[o,i]=n.useState(!1),a=(0,u.e)(t,l.onScrollButtonChange);return(0,b.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){i(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=eg;var ey="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=G(ey,e.__scopeSelect),l=et(ey,e.__scopeSelect),[o,i]=n.useState(!1),a=(0,u.e)(t,l.onScrollButtonChange);return(0,b.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,a=G("SelectScrollButton",r),u=n.useRef(null),s=P(r),c=n.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,b.b)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[s]),(0,R.jsx)(w.WV.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,i.M)(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(l,50))}),onPointerMove:(0,i.M)(o.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(l,50))}),onPointerLeave:(0,i.M)(o.onPointerLeave,()=>{c()})})}),eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,R.jsx)(w.WV.div,{"aria-hidden":!0,...n,ref:t})});eC.displayName="SelectSeparator";var eM="SelectArrow";function ej(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=_(r),o=W(eM,r),i=G(eM,r);return o.open&&"popper"===i.position?(0,R.jsx)(h.Eh,{...l,...n,ref:t}):null}).displayName=eM;var eR=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),i=(0,u.e)(t,o),a=(0,S.D)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[a,r]),(0,R.jsx)(C.T,{asChild:!0,children:(0,R.jsx)("select",{...l,ref:i,defaultValue:r})})});function eT(e){let t=(0,x.W)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),i=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,i]}function ek(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let i=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return i!==r?i:void 0}eR.displayName="BubbleSelect";var eE=B,eI=K,eP=U,eN=z,eD=q,eV=Z,e_=en,eL=ea,eW=es,eA=ep,eH=eh,eB=ew,eO=ex,eK=eb,eF=eC},32437:function(e,t,r){r.d(t,{D:function(){return l}});var n=r(64149);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},12230:function(e,t,r){r.d(t,{T:function(){return i},f:function(){return a}});var n=r(64149),l=r(79442),o=r(20881),i=n.forwardRef((e,t)=>(0,o.jsx)(l.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var a=i}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2310-f22b802dc5c7a428.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2310-f22b802dc5c7a428.js new file mode 100644 index 0000000..dc4a337 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2310-f22b802dc5c7a428.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2310],{55157:function(e,r,t){t.d(r,{u:function(){return n}});function n(e,[r,t]){return Math.min(t,Math.max(r,e))}},86004:function(e,r,t){t.d(r,{gm:function(){return l}});var n=t(64149);t(20881);var o=n.createContext(void 0);function l(e){let r=n.useContext(o);return e||r||"ltr"}},82310:function(e,r,t){t.d(r,{Ns:function(){return J},fC:function(){return q},gb:function(){return y},l_:function(){return G},q4:function(){return N}});var n=t(64149),o=t(79442),l=t(45485),i=t(74873),a=t(83954),s=t(2441),c=t(86004),d=t(61013),u=t(55157),f=t(64433),p=t(20881),h="ScrollArea",[v,w]=(0,i.b)(h),[g,b]=v(h),m=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,f]=n.useState(null),[h,v]=n.useState(null),[w,b]=n.useState(null),[m,S]=n.useState(null),[x,E]=n.useState(null),[y,C]=n.useState(0),[T,R]=n.useState(0),[L,P]=n.useState(!1),[_,j]=n.useState(!1),D=(0,a.e)(r,e=>f(e)),W=(0,c.gm)(i);return(0,p.jsx)(g,{scope:t,type:l,dir:W,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:b,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:_,onScrollbarYEnabledChange:j,onCornerWidthChange:C,onCornerHeightChange:R,children:(0,p.jsx)(o.WV.div,{dir:W,...d,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});m.displayName=h;var S="ScrollAreaViewport",x=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,asChild:i,nonce:s,...c}=e,d=b(S,t),u=n.useRef(null),f=(0,a.e)(r,u,d.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:s}),(0,p.jsx)(o.WV.div,{"data-radix-scroll-area-viewport":"",...c,asChild:i,ref:f,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,r){let{asChild:t,children:o}=e;if(!t)return"function"==typeof r?r(o):r;let l=n.Children.only(o);return n.cloneElement(l,{children:"function"==typeof r?r(l.props.children):r})}({asChild:i,children:l},e=>(0,p.jsx)("div",{"data-radix-scroll-area-content":"",ref:d.onContentChange,style:{minWidth:d.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});x.displayName=S;var E="ScrollAreaScrollbar",y=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,l=b(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(C,{...o,ref:r,forceMount:t}):"scroll"===l.type?(0,p.jsx)(T,{...o,ref:r,forceMount:t}):"auto"===l.type?(0,p.jsx)(R,{...o,ref:r,forceMount:t}):"always"===l.type?(0,p.jsx)(L,{...o,ref:r}):null});y.displayName=E;var C=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,i=b(E,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},n=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.z,{present:t||a,children:(0,p.jsx)(R,{"data-state":a?"visible":"hidden",...o,ref:r})})}),T=n.forwardRef((e,r)=>{var t,o;let{forceMount:i,...a}=e,s=b(E,e.__scopeScrollArea),c="horizontal"===e.orientation,d=F(()=>h("SCROLL_END"),100),[u,h]=(t="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,r)=>{let t=o[e][r];return null!=t?t:e},t));return n.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,h]),n.useEffect(()=>{let e=s.viewport,r=c?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(h("SCROLL"),d()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,c,h,d]),(0,p.jsx)(l.z,{present:i||"hidden"!==u,children:(0,p.jsx)(L,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:r,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),R=n.forwardRef((e,r)=>{let t=b(E,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),c="horizontal"===e.orientation,d=F(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...o}=e,l=b(E,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=X(s.viewport,s.content),u={...o,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=Y(t),l=r||o/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(o-l),s=t.content-t.viewport;return U([i,a],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,p.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=k(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===t?(0,p.jsx)(_,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=k(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),P=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.e)(r,d,i.onScrollbarXChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(W,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:O(s.paddingLeft),paddingEnd:O(s.paddingRight)}})}})}),_=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.e)(r,d,i.onScrollbarYChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(W,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:O(s.paddingTop),paddingEnd:O(s.paddingBottom)}})}})}),[j,D]=v(E),W=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:g,...m}=e,S=b(E,t),[x,y]=n.useState(null),C=(0,a.e)(r,e=>y(e)),T=n.useRef(null),R=n.useRef(""),L=S.viewport,P=l.content-l.viewport,_=(0,s.W)(w),D=(0,s.W)(h),W=F(g,10);function A(e){T.current&&v({x:e.clientX-T.current.left,y:e.clientY-T.current.top})}return n.useEffect(()=>{let e=e=>{let r=e.target;(null==x?void 0:x.contains(r))&&_(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,x,P,_]),n.useEffect(D,[l,D]),B(x,W),B(S.content,W),(0,p.jsx)(j,{scope:t,scrollbar:x,hasThumb:i,onThumbChange:(0,s.W)(c),onThumbPointerUp:(0,s.W)(d),onThumbPositionChange:D,onThumbPointerDown:(0,s.W)(u),children:(0,p.jsx)(o.WV.div,{...m,ref:C,style:{position:"absolute",...m.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),T.current=x.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),A(e))}),onPointerMove:(0,f.M)(e.onPointerMove,A),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),T.current=null})})})}),A="ScrollAreaThumb",N=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=D(A,e.__scopeScrollArea);return(0,p.jsx)(l.z,{present:t||o.hasThumb,children:(0,p.jsx)(z,{ref:r,...n})})}),z=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=b(A,t),c=D(A,t),{onThumbPositionChange:d}=c,u=(0,a.e)(r,e=>c.onThumbChange(e)),h=n.useRef(),v=F(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{if(v(),!h.current){let r=V(e,d);h.current=r,d()}};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,p.jsx)(o.WV.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;c.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,f.M)(e.onPointerUp,c.onThumbPointerUp)})});N.displayName=A;var H="ScrollAreaCorner",M=n.forwardRef((e,r)=>{let t=b(H,e.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&n?(0,p.jsx)(I,{...e,ref:r}):null});M.displayName=H;var I=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=b(H,t),[a,s]=n.useState(0),[c,d]=n.useState(0),u=!!(a&&c);return B(i.scrollbarX,()=>{var e;let r=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),B(i.scrollbarY,()=>{var e;let r=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,p.jsx)(o.WV.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function O(e){return e?parseInt(e,10):0}function X(e,r){let t=e/r;return isNaN(t)?0:t}function Y(e){let r=X(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function k(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=Y(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-o,i=r.content-r.viewport,a=(0,u.u)(e,"ltr"===t?[0,i]:[-1*i,0]);return U([0,i],[0,l-n])(a)}function U(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var V=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function F(e,r){let t=(0,s.W)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(t,r)},[t,r])}function B(e,r){let t=(0,s.W)(r);(0,d.b)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var q=m,G=x,J=M}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/247-5e4920e793cf2e3a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/247-5e4920e793cf2e3a.js deleted file mode 100644 index 0eb432d..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/247-5e4920e793cf2e3a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[247],{78580:function(e,t,r){r.d(t,{d:function(){return d},z:function(){return l}});var a=r(20881),n=r(64149),o=r(54098),s=r(20116),i=r(90270);let d=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,t)=>{let{className:r,variant:n,size:s,asChild:l=!1,...u}=e,c=l?o.g7:"button";return(0,a.jsx)(c,{className:(0,i.cn)(d({variant:n,size:s,className:r})),ref:t,...u})});l.displayName="Button"},94920:function(e,t,r){r.d(t,{Ol:function(){return i},SZ:function(){return l},Zb:function(){return s},aY:function(){return u},eW:function(){return c},ll:function(){return d}});var a=r(20881),n=r(64149),o=r(90270);let s=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});s.displayName="Card";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",r),...n})});i.displayName="CardHeader";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,o.cn)("font-semibold leading-none tracking-tight",r),...n})});d.displayName="CardTitle";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,o.cn)("text-sm text-muted-foreground",r),...n})});l.displayName="CardDescription";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("p-6 pt-0",r),...n})});u.displayName="CardContent";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,o.cn)("flex items-center p-6 pt-0",r),...n})});c.displayName="CardFooter"},33335:function(e,t,r){r.d(t,{I:function(){return s}});var a=r(20881),n=r(64149),o=r(90270);let s=n.forwardRef((e,t)=>{let{className:r,type:n,...s}=e;return(0,a.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});s.displayName="Input"},21501:function(e,t,r){r.d(t,{_:function(){return l}});var a=r(20881),n=r(64149),o=r(51212),s=r(20116),i=r(90270);let d=(0,s.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(o.f,{ref:t,className:(0,i.cn)(d(),r),...n})});l.displayName=o.f.displayName},22989:function(e,t,r){r.d(t,{Bw:function(){return m},DI:function(){return l},Ph:function(){return d},Ql:function(){return x},i4:function(){return c},ki:function(){return u},n5:function(){return h}});var a=r(20881),n=r(64149),o=r(35935),s=r(62072),i=r(90270);let d=s.fC,l=s.ZA,u=s.B4,c=n.forwardRef((e,t)=>{let{className:r,children:n,...d}=e;return(0,a.jsxs)(s.xz,{ref:t,className:(0,i.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...d,children:[n,(0,a.jsx)(s.JO,{asChild:!0,children:(0,a.jsx)(o.jnn,{className:"h-4 w-4 opacity-50"})})]})});c.displayName=s.xz.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.u_,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(o.g8U,{})})});f.displayName=s.u_.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.$G,{ref:t,className:(0,i.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(o.v4q,{})})});p.displayName=s.$G.displayName;let m=n.forwardRef((e,t)=>{let{className:r,children:n,position:o="popper",...d}=e;return(0,a.jsx)(s.h_,{children:(0,a.jsxs)(s.VY,{ref:t,className:(0,i.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:o,...d,children:[(0,a.jsx)(f,{}),(0,a.jsx)(s.l_,{className:(0,i.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(p,{})]})})});m.displayName=s.VY.displayName;let h=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",r),...n})});h.displayName=s.__.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,...d}=e;return(0,a.jsxs)(s.ck,{ref:t,className:(0,i.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...d,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(o.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(s.eT,{children:n})]})});x.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=s.Z0.displayName},47657:function(e,t,r){r.d(t,{Z:function(){return i}});var a=r(20881),n=r(64149),o=r(48897),s=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:i=!0,...d}=e;return(0,a.jsx)(o.f,{ref:t,decorative:i,orientation:n,className:(0,s.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...d})});i.displayName=o.f.displayName},46646:function(e,t,r){r.d(t,{pm:function(){return f}});var a=r(64149);let n=0,o=new Map,s=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?s(r):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function u(e){l=i(l,e),d.forEach(e=>{e(l)})}function c(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(l);return a.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){r.d(t,{cn:function(){return o}});var a=r(33958),n=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var s={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"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:u,iconNode:c,...f}=e;return(0,a.createElement)("svg",{ref:t,...s,width:n,height:n,stroke:r,strokeWidth:d?24*Number(i)/Number(n):i,className:o("lucide",l),...f},[...c.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(u)?u:[u]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,s)=>{let{className:d,...l}=r;return(0,a.createElement)(i,{ref:s,iconNode:t,className:o("lucide-".concat(n(e)),d),...l})});return r.displayName="".concat(e),r}},24052:function(e,t,r){r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]])},51212:function(e,t,r){r.d(t,{f:function(){return i}});var a=r(64149),n=r(79442),o=r(20881),s=a.forwardRef((e,t)=>(0,o.jsx)(n.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var i=s},48897:function(e,t,r){r.d(t,{f:function(){return l}});var a=r(64149),n=r(79442),o=r(20881),s="horizontal",i=["horizontal","vertical"],d=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=s,...d}=e,l=i.includes(a)?a:s;return(0,o.jsx)(n.WV.div,{"data-orientation":l,...r?{role:"none"}:{"aria-orientation":"vertical"===l?l:void 0,role:"separator"},...d,ref:t})});d.displayName="Separator";var l=d}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2645-97102df9d3e081d3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2645-97102df9d3e081d3.js new file mode 100644 index 0000000..d36e196 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/2645-97102df9d3e081d3.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2645],{92093:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(64149);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={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"};let c=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:l="",children:s,iconNode:f,...d}=e;return(0,r.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:u?24*Number(c)/Number(o):c,className:i("lucide",l),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:u,...l}=n;return(0,r.createElement)(c,{ref:a,iconNode:t,className:i("lucide-".concat(o(e)),u),...l})});return n.displayName="".concat(e),n}},7410:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},83765:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},7694:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},7357:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},55215:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(64149)),l=n(91857),s=n(30408),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=e.color,o=void 0===n?"#000000":n,i=e.speedMultiplier,a=void 0===i?1:i,s=e.cssOverride,d=e.size,p=c(e,["loading","color","speedMultiplier","cssOverride","size"]),m=(0,l.parseLengthAndUnit)(void 0===d?15:d),g=m.value,y=m.unit,h=r({display:"inherit",position:"relative"},void 0===s?{}:s),v=function(e){return{position:"absolute",fontSize:"".concat(g/3).concat(y),width:"".concat(g).concat(y),height:"".concat(g).concat(y),background:o,borderRadius:"50%",animation:"".concat(f[e]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===t||t?u.createElement("span",r({style:h},p),u.createElement("span",{style:v(0)}),u.createElement("span",{style:v(1)}),u.createElement("span",{style:v(2)}),u.createElement("span",{style:v(3)}),u.createElement("span",{style:v(4)}),u.createElement("span",{style:v(5)})):null}},30408:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var i=o.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return i&&i.insertRule(a,0),r}},91857:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var o=(e.match(/[^0-9]*$/)||"").toString();return n[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},25696:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(64149);function o(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function i(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:o(r)&&o(a)?i(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function c(e){return"number"==typeof e}function u(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return h(e).map(Number)}function m(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function y(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function h(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,o,i={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i)):(n.addListener(o),a=()=>n.removeListener(o)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function O(e=0,t=0){let n=f(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(h(n).forEach(r=>{let o=t[r],i=n[r],a=s(o)&&s(i);t[r]=a?e(o,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},o=h(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(S),L=(k=[],{init:function(e,t){return(k=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){k=k.filter(e=>e.destroy())}}),D=b(),M=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:N,optionsAtMedia:_,optionsMediaQueries:I}=A,{on:X,off:C,emit:F}=M,z=!1,T=N(j,E.globalOptions),R=N(T),V=[];function Z(t,n){!z&&(R=_(T=N(T,t)),V=n||V,function(){let{container:t,slides:n}=R;i=(u(t)?e.querySelector(t):t)||e.children[0];let r=u(n)?i.querySelectorAll(n):n;a=[].slice.call(r||i.children)}(),r=function t(n){let r=function(e,t,n,r,o,i,a){let s,j;let{align:E,axis:k,direction:P,startIndex:S,loop:A,duration:L,dragFree:D,dragThreshold:M,inViewThreshold:N,slidesToScroll:_,skipSnaps:I,containScroll:X,watchResize:C,watchSlides:F,watchDrag:z,watchFocus:T}=i,R={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},V=R.measure(t),Z=n.map(R.measure),H=function(e,t){let n="rtl"===t,r="y"===e,o=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}}}(k,P),$=H.measureSize(V),B={measure:function(e){return e/100*$}},q=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,o){return u(e)?n[e](r):e(t,r,o)}}}(E,$),U=!A&&!!X,{slideSizes:W,slideSizesWithGaps:J,startGap:Q,endGap:Y}=function(e,t,n,r,o,i){let{measureSize:a,startEdge:c,endEdge:u}=e,l=n[0]&&o,s=function(){if(!l)return 0;let e=n[0];return f(t[c]-e[c])}(),d=l?parseFloat(i.getComputedStyle(m(r)).getPropertyValue(`margin-${u}`)):0,p=n.map(a),y=n.map((e,t,n)=>{let r=t===g(n);return t?r?p[t]+d:n[t+1][c]-e[c]:p[t]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:y,startGap:s,endGap:d}}(H,V,Z,n,A||!!X,o),G=function(e,t,n,r,o,i,a,u,l){let{startEdge:s,endEdge:d,direction:y}=e,h=c(n);return{groupSlides:function(e){return h?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,c,l)=>{let p=m(n)||0,h=c===g(e),v=o[s]-i[p][s],b=o[s]-i[c][d],O=r||0!==p?0:y(a),w=f(b-(!r&&h?y(u):0)-(v+O));return l&&w>t+2&&n.push(c),h&&n.push(e.length),n},[]).map((t,n,r)=>{let o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}}}(H,$,_,A,V,Z,Q,Y,0),{snaps:K,snapsAligned:ee}=function(e,t,n,r,o){let{startEdge:i,endEdge:a}=e,{groupSlides:c}=o,u=c(r).map(e=>m(e)[a]-e[0][i]).map(f).map(t.measure),l=r.map(e=>n[i]-e[i]).map(e=>-f(e)),s=c(l).map(e=>e[0]).map((e,t)=>e+u[t]);return{snaps:l,snapsAligned:s}}(H,q,V,Z,G),et=-m(K)+m(J),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,o){let i=O(-t+e,0),a=n.map((e,t)=>{let{min:r,max:o}=i,a=i.constrain(e),c=t===g(n);return t?c||1>f(r-a)?r:1>f(o-a)?o:a:o}).map(e=>parseFloat(e.toFixed(3))),c=function(){let e=a[0],t=m(a);return O(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===r)return a;let{min:n,max:o}=c;return a.slice(n,o)}(),scrollContainLimit:c}}($,et,ee,X,0),eo=U?en:ee,{limit:ei}=function(e,t,n){let r=t[0];return{limit:O(n?r-e:m(t),r)}}(et,eo,A),ea=function e(t,n,r){let{constrain:o}=O(0,t),i=t+1,a=c(n);function c(e){return r?f((i+e)%i):o(e)}function u(){return e(t,a,r)}let l={get:function(){return a},set:function(e){return a=c(e),l},add:function(e){return u().set(a+e)},clone:u};return l}(g(eo),S,A),ec=ea.clone(),eu=p(n),el=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},o)=>{r||n.constrain(e.pointerDown()),t.seek(o)},es=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:a,animation:c,eventHandler:u,scrollBounds:l,options:{loop:s}},f)=>{let d=e.settled(),p=!l.shouldConstrain(),m=s?d:d&&p;m&&!a.pointerDown()&&(c.stop(),u.emit("settle")),m||u.emit("scroll");let g=n.get()*f+em.get()*(1-f);r.set(g),s&&(o.loop(e.direction()),i.loop()),t.to(r.get())},ef=function(e,t,n,r){let o=b(),i=1e3/60,a=null,c=0,u=0;function l(e){if(!u)return;a||(a=e);let o=e-a;for(a=e,c+=o;c>=i;)n(i),c-=i;r(c/i),u&&t.requestAnimationFrame(l)}function s(){t.cancelAnimationFrame(u),a=null,c=0,u=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,c=0)})},destroy:function(){s(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:s,update:()=>n(i),render:r}}(r,o,e=>el(ek,e),e=>es(ek,e)),ed=eo[ea.get()],ep=w(ed),em=w(ed),eg=w(ed),ey=w(ed),eh=function(e,t,n,r,o,i){let a=0,c=0,u=o,l=.68,s=e.get(),p=0;function m(e){return u=e,y}function g(e){return l=e,y}let y={direction:function(){return c},duration:function(){return u},velocity:function(){return a},seek:function(t){let o=t/1e3,i=u*o,f=r.get()-e.get(),m=0;return u?(n.set(e),a+=f/i,a*=l,s+=a,e.add(a*o),m=s-p):(a=0,n.set(r),e.set(r),m=f),c=d(m),p=s,y},settled:function(){return .001>f(r.get()-t.get())},useBaseFriction:function(){return g(.68)},useBaseDuration:function(){return m(o)},useFriction:g,useDuration:m};return y}(ep,eg,em,ey,L,0),ev=function(e,t,n,r,o){let{reachedAny:i,removeOffset:a,constrain:c}=r;function u(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function l(t,r){let o=[t,t+n,t-n];if(!e)return t;if(!r)return u(o);let i=o.filter(e=>d(e)===r);return i.length?u(i):m(o)-n}return{byDistance:function(n,r){let u=o.get()+n,{index:s,distance:d}=function(n){let r=e?a(n):c(n),{index:o}=t.map((e,t)=>({diff:l(e-r,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:o,distance:r}}(u),p=!e&&i(u);if(!r||p)return{index:s,distance:n};let m=n+l(t[s]-d,0);return{index:s,distance:m}},byIndex:function(e,n){let r=l(t[e]-o.get(),n);return{index:e,distance:r}},shortcut:l}}(A,eo,et,ei,ey),eb=function(e,t,n,r,o,i,a){function c(o){let c=o.distance,u=o.index!==t.get();i.add(c),c&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){c(o.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);c(o.byIndex(r.get(),n))}}}(ef,ea,ec,eh,ev,ey,a),eO=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ei),ew=b(),ex=function(e,t,n,r){let o;let i={},a=null,c=null,u=!1;return{init:function(){o=new IntersectionObserver(e=>{u||(e.forEach(e=>{i[t.indexOf(e.target)]=e}),a=null,c=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>o.observe(e))},destroy:function(){o&&o.disconnect(),u=!0},get:function(e=!0){if(e&&a)return a;if(!e&&c)return c;let t=h(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:o}=i[r];return(e&&o||!e&&!o)&&t.push(r),t},[]);return e&&(a=t),e||(c=t),t}}}(t,n,a,N),{slideRegistry:ej}=function(e,t,n,r,o,i){let{groupSlides:a}=o,{min:c,max:u}=r;return{slideRegistry:function(){let r=a(i);return 1===n.length?[i]:e&&"keepSnaps"!==t?r.slice(c,u).map((e,t,n)=>{let r=t===g(n);return t?r?y(g(i)-m(n)[0]+1,m(n)[0]):e:y(m(n[0])+1)}):r}()}}(U,X,eo,er,G,eu),eE=function(e,t,n,r,o,i,a,u){let s={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){u&&(i.add(document,"keydown",d,!1),t.forEach((t,d)=>{i.add(t,"focus",t=>{(l(u)||u(p,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));c(i)&&(o.useDuration(0),r.index(i,0),a.emit("slideFocus"))}(d)},s)}))}}}(e,n,ej,eb,eh,ew,a,T),ek={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:V,slideRects:Z,animation:ef,axis:H,dragHandler:function(e,t,n,r,o,i,a,c,u,s,p,m,g,y,h,w,x,j,E){let{cross:k,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},L=b(),D=b(),M=O(50,225).constrain(y.measure(20)),N={mouse:300,touch:400},_={mouse:500,touch:600},I=h?43:25,X=!1,C=0,F=0,z=!1,T=!1,R=!1,V=!1;function Z(e){if(!v(e,r)&&e.touches.length>=2)return H(e);let t=i.readPoint(e),n=i.readPoint(e,k),a=f(t-C),u=f(n-F);if(!T&&!V&&(!e.cancelable||!(T=a>u)))return H(e);let l=i.pointerMove(e);a>w&&(R=!0),s.useFriction(.3).useDuration(.75),c.start(),o.add(P(l)),e.preventDefault()}function H(e){let t=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(e)*(h?_:N)[V?"mouse":"touch"],r=function(e,t){let n=m.add(-1*d(e)),r=p.byDistance(e,!h).distance;return h||f(e)e.preventDefault(),A).add(t,"touchmove",()=>void 0,A).add(t,"touchend",()=>void 0).add(t,"touchstart",c).add(t,"mousedown",c).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",$,!0);function c(c){(l(E)||E(e,c))&&function(e){let c=v(e,r);V=c,R=h&&c&&!e.buttons&&X,X=f(o.get()-a.get())>=2,c&&0!==e.button||function(e){let t=e.nodeName||"";return S.includes(t)}(e.target)||(z=!0,i.pointerDown(e),s.useFriction(0).useDuration(0),o.set(a),function(){let e=V?n:t;D.add(e,"touchmove",Z,A).add(e,"touchend",H).add(e,"mousemove",Z,A).add(e,"mouseup",H)}(),C=i.readPoint(e),F=i.readPoint(e,k),g.emit("pointerDown"))}(c)}},destroy:function(){L.clear(),D.clear()},pointerDown:function(){return z}}}(H,e,r,o,ey,function(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){let o=r||e.scroll,i=`client${"x"===o?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[i]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){let t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=i(r)-i(n),a=o(e)-o(n),c=o(e)-o(r)>170,u=t/a;return a&&!c&&f(u)>.1?u:0},readPoint:i}}(H,o),ep,ef,eb,eh,ev,ea,a,B,D,M,I,0,z),eventStore:ew,percentOfView:B,index:ea,indexPrevious:ec,limit:ei,location:ep,offsetLocation:eg,previousLocation:em,options:i,resizeHandler:function(e,t,n,r,o,i,a){let c,u;let s=[e].concat(r),d=[],p=!1;function m(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(u=m(e),d=r.map(m),c=new ResizeObserver(n=>{(l(i)||i(o,n))&&function(n){for(let i of n){if(p)return;let n=i.target===e,a=r.indexOf(i.target),c=n?u:d[a];if(f(m(n?e:r[a])-c)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(t,a,o,n,H,C,R),scrollBody:eh,scrollBounds:function(e,t,n,r,o){let i=o.measure(10),a=o.measure(50),c=O(.1,.99),u=!1;function l(){return!!(!u&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(o){if(!l())return;let u=e.reachedMin(t.get())?"min":"max",s=f(e[u]-t.get()),d=n.get()-t.get(),p=c.constrain(s/a);n.subtract(d*p),!o&&f(d)e.add(a))}}}(et,ei,eg,[ep,eg,em,ey]),scrollProgress:eO,scrollSnapList:eo.map(eO.get),scrollSnaps:eo,scrollTarget:ev,scrollTo:eb,slideLooper:function(e,t,n,r,o,i,a,c,u){let l=p(o),s=m(d(p(o).reverse(),a[0]),n,!1).concat(m(d(l,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-o[t],t)}function d(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(o,a,l){let s=i.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return o.map(t=>{let r=l?0:-n,o=l?n:0,i=s[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:w(-1),translate:x(e,u[t]),target:()=>c.get()>i?r:o}})}return{canLoop:function(){return s.every(({index:e})=>.1>=f(l.filter(t=>t!==e),t))},clear:function(){s.forEach(e=>e.translate.clear())},loop:function(){s.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:s}}(H,$,et,W,J,K,eo,eg,n),slideFocus:eE,slidesHandler:(j=!1,{init:function(e){F&&(s=new MutationObserver(t=>{!j&&(l(F)||F(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){s&&s.disconnect(),j=!0}}),slidesInView:ex,slideIndexes:eu,slideRegistry:ej,slidesToScroll:G,target:ey,translate:x(H,t)};return ek}(e,i,a,P,S,n,M);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(R),I([T,...V.map(({options:e})=>e)]).forEach(e=>D.add(e,"change",H)),R.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(U),r.eventHandler.init(U),r.resizeHandler.init(U),r.slidesHandler.init(U),r.options.loop&&r.slideLooper.loop(),i.offsetParent&&a.length&&r.dragHandler.init(U),o=L.init(U,V)))}function H(e,t){let n=q();$(),Z(N({startIndex:n},e),t),M.emit("reInit")}function $(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),L.destroy(),D.clear()}function B(e,t,n){R.active&&!z&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:R.duration),r.scrollTo.index(e,n||0))}function q(){return r.index.get()}let U={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return r},destroy:function(){z||(z=!0,D.clear(),$(),M.emit("destroy"),M.clear())},off:C,on:X,emit:F,plugins:function(){return o},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:H,rootNode:function(){return e},scrollNext:function(e){B(r.index.add(1).get(),e,-1)},scrollPrev:function(e){B(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:B,selectedScrollSnap:q,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return Z(t,n),setTimeout(()=>M.emit("init"),0),U}function k(e={},t=[]){let n=(0,r.useRef)(e),o=(0,r.useRef)(t),[c,u]=(0,r.useState)(),[l,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,o.current)},[c]);return(0,r.useEffect)(()=>{i(n.current,e)||(n.current=e,f())},[e,f]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>i(e,r[t]))}(o.current,t)&&(o.current=t,f())},[t,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){E.globalOptions=k.globalOptions;let e=E(l,n.current,o.current);return u(e),()=>e.destroy()}u(void 0)},[l,u]),[s,c]}E.globalOptions=void 0,k.globalOptions=void 0},83111:function(e,t,n){n.d(t,{w_:function(){return s}});var r=n(64149),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(f,c({attr:l({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,l({key:n},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var n,{attr:o,size:i,title:u}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),f=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:n,style:l(l({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==i?r.createElement(i.Consumer,null,e=>t(e)):t(o)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/310-30511f892e84fda6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/310-30511f892e84fda6.js deleted file mode 100644 index c23b5b6..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/310-30511f892e84fda6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[310],{55157:function(e,r,t){t.d(r,{u:function(){return n}});function n(e,[r,t]){return Math.min(t,Math.max(r,e))}},86004:function(e,r,t){t.d(r,{gm:function(){return l}});var n=t(64149);t(20881);var o=n.createContext(void 0);function l(e){let r=n.useContext(o);return e||r||"ltr"}},82310:function(e,r,t){t.d(r,{Ns:function(){return J},fC:function(){return q},gb:function(){return y},l_:function(){return G},q4:function(){return N}});var n=t(64149),o=t(79442),l=t(45485),i=t(74873),a=t(83954),s=t(2441),c=t(86004),d=t(61013),u=t(55157),f=t(64433),p=t(20881),h="ScrollArea",[v,w]=(0,i.b)(h),[g,b]=v(h),m=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,type:l="hover",dir:i,scrollHideDelay:s=600,...d}=e,[u,f]=n.useState(null),[h,v]=n.useState(null),[w,b]=n.useState(null),[m,S]=n.useState(null),[x,E]=n.useState(null),[y,C]=n.useState(0),[T,R]=n.useState(0),[L,P]=n.useState(!1),[_,j]=n.useState(!1),D=(0,a.e)(r,e=>f(e)),W=(0,c.gm)(i);return(0,p.jsx)(g,{scope:t,type:l,dir:W,scrollHideDelay:s,scrollArea:u,viewport:h,onViewportChange:v,content:w,onContentChange:b,scrollbarX:m,onScrollbarXChange:S,scrollbarXEnabled:L,onScrollbarXEnabledChange:P,scrollbarY:x,onScrollbarYChange:E,scrollbarYEnabled:_,onScrollbarYEnabledChange:j,onCornerWidthChange:C,onCornerHeightChange:R,children:(0,p.jsx)(o.WV.div,{dir:W,...d,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":T+"px",...e.style}})})});m.displayName=h;var S="ScrollAreaViewport",x=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,children:l,asChild:i,nonce:s,...c}=e,d=b(S,t),u=n.useRef(null),f=(0,a.e)(r,u,d.onViewportChange);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:s}),(0,p.jsx)(o.WV.div,{"data-radix-scroll-area-viewport":"",...c,asChild:i,ref:f,style:{overflowX:d.scrollbarXEnabled?"scroll":"hidden",overflowY:d.scrollbarYEnabled?"scroll":"hidden",...e.style},children:function(e,r){let{asChild:t,children:o}=e;if(!t)return"function"==typeof r?r(o):r;let l=n.Children.only(o);return n.cloneElement(l,{children:"function"==typeof r?r(l.props.children):r})}({asChild:i,children:l},e=>(0,p.jsx)("div",{"data-radix-scroll-area-content":"",ref:d.onContentChange,style:{minWidth:d.scrollbarXEnabled?"fit-content":void 0},children:e}))})]})});x.displayName=S;var E="ScrollAreaScrollbar",y=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,l=b(E,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=l,s="horizontal"===e.orientation;return n.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),"hover"===l.type?(0,p.jsx)(C,{...o,ref:r,forceMount:t}):"scroll"===l.type?(0,p.jsx)(T,{...o,ref:r,forceMount:t}):"auto"===l.type?(0,p.jsx)(R,{...o,ref:r,forceMount:t}):"always"===l.type?(0,p.jsx)(L,{...o,ref:r}):null});y.displayName=E;var C=n.forwardRef((e,r)=>{let{forceMount:t,...o}=e,i=b(E,e.__scopeScrollArea),[a,s]=n.useState(!1);return n.useEffect(()=>{let e=i.scrollArea,r=0;if(e){let t=()=>{window.clearTimeout(r),s(!0)},n=()=>{r=window.setTimeout(()=>s(!1),i.scrollHideDelay)};return e.addEventListener("pointerenter",t),e.addEventListener("pointerleave",n),()=>{window.clearTimeout(r),e.removeEventListener("pointerenter",t),e.removeEventListener("pointerleave",n)}}},[i.scrollArea,i.scrollHideDelay]),(0,p.jsx)(l.z,{present:t||a,children:(0,p.jsx)(R,{"data-state":a?"visible":"hidden",...o,ref:r})})}),T=n.forwardRef((e,r)=>{var t,o;let{forceMount:i,...a}=e,s=b(E,e.__scopeScrollArea),c="horizontal"===e.orientation,d=F(()=>h("SCROLL_END"),100),[u,h]=(t="hidden",o={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},n.useReducer((e,r)=>{let t=o[e][r];return null!=t?t:e},t));return n.useEffect(()=>{if("idle"===u){let e=window.setTimeout(()=>h("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[u,s.scrollHideDelay,h]),n.useEffect(()=>{let e=s.viewport,r=c?"scrollLeft":"scrollTop";if(e){let t=e[r],n=()=>{let n=e[r];t!==n&&(h("SCROLL"),d()),t=n};return e.addEventListener("scroll",n),()=>e.removeEventListener("scroll",n)}},[s.viewport,c,h,d]),(0,p.jsx)(l.z,{present:i||"hidden"!==u,children:(0,p.jsx)(L,{"data-state":"hidden"===u?"hidden":"visible",...a,ref:r,onPointerEnter:(0,f.M)(e.onPointerEnter,()=>h("POINTER_ENTER")),onPointerLeave:(0,f.M)(e.onPointerLeave,()=>h("POINTER_LEAVE"))})})}),R=n.forwardRef((e,r)=>{let t=b(E,e.__scopeScrollArea),{forceMount:o,...i}=e,[a,s]=n.useState(!1),c="horizontal"===e.orientation,d=F(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{orientation:t="vertical",...o}=e,l=b(E,e.__scopeScrollArea),i=n.useRef(null),a=n.useRef(0),[s,c]=n.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=X(s.viewport,s.content),u={...o,sizes:s,onSizesChange:c,hasThumb:!!(d>0&&d<1),onThumbChange:e=>i.current=e,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:e=>a.current=e};function f(e,r){return function(e,r,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"ltr",o=Y(t),l=r||o/2,i=t.scrollbar.paddingStart+l,a=t.scrollbar.size-t.scrollbar.paddingEnd-(o-l),s=t.content-t.viewport;return U([i,a],"ltr"===n?[0,s]:[-1*s,0])(e)}(e,a.current,s,r)}return"horizontal"===t?(0,p.jsx)(P,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=k(l.viewport.scrollLeft,s,l.dir);i.current.style.transform="translate3d(".concat(e,"px, 0, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollLeft=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollLeft=f(e,l.dir))}}):"vertical"===t?(0,p.jsx)(_,{...u,ref:r,onThumbPositionChange:()=>{if(l.viewport&&i.current){let e=k(l.viewport.scrollTop,s);i.current.style.transform="translate3d(0, ".concat(e,"px, 0)")}},onWheelScroll:e=>{l.viewport&&(l.viewport.scrollTop=e)},onDragScroll:e=>{l.viewport&&(l.viewport.scrollTop=f(e))}}):null}),P=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.e)(r,d,i.onScrollbarXChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(W,{"data-orientation":"horizontal",...l,ref:u,sizes:t,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.x),onDragScroll:r=>e.onDragScroll(r.x),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollLeft+r.deltaX;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&s&&o({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:O(s.paddingLeft),paddingEnd:O(s.paddingRight)}})}})}),_=n.forwardRef((e,r)=>{let{sizes:t,onSizesChange:o,...l}=e,i=b(E,e.__scopeScrollArea),[s,c]=n.useState(),d=n.useRef(null),u=(0,a.e)(r,d,i.onScrollbarYChange);return n.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),(0,p.jsx)(W,{"data-orientation":"vertical",...l,ref:u,sizes:t,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Y(t)+"px",...e.style},onThumbPointerDown:r=>e.onThumbPointerDown(r.y),onDragScroll:r=>e.onDragScroll(r.y),onWheelScroll:(r,t)=>{if(i.viewport){let n=i.viewport.scrollTop+r.deltaY;e.onWheelScroll(n),n>0&&n{d.current&&i.viewport&&s&&o({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:O(s.paddingTop),paddingEnd:O(s.paddingBottom)}})}})}),[j,D]=v(E),W=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,sizes:l,hasThumb:i,onThumbChange:c,onThumbPointerUp:d,onThumbPointerDown:u,onThumbPositionChange:h,onDragScroll:v,onWheelScroll:w,onResize:g,...m}=e,S=b(E,t),[x,y]=n.useState(null),C=(0,a.e)(r,e=>y(e)),T=n.useRef(null),R=n.useRef(""),L=S.viewport,P=l.content-l.viewport,_=(0,s.W)(w),D=(0,s.W)(h),W=F(g,10);function A(e){T.current&&v({x:e.clientX-T.current.left,y:e.clientY-T.current.top})}return n.useEffect(()=>{let e=e=>{let r=e.target;(null==x?void 0:x.contains(r))&&_(e,P)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[L,x,P,_]),n.useEffect(D,[l,D]),B(x,W),B(S.content,W),(0,p.jsx)(j,{scope:t,scrollbar:x,hasThumb:i,onThumbChange:(0,s.W)(c),onThumbPointerUp:(0,s.W)(d),onThumbPositionChange:D,onThumbPointerDown:(0,s.W)(u),children:(0,p.jsx)(o.WV.div,{...m,ref:C,style:{position:"absolute",...m.style},onPointerDown:(0,f.M)(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),T.current=x.getBoundingClientRect(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),A(e))}),onPointerMove:(0,f.M)(e.onPointerMove,A),onPointerUp:(0,f.M)(e.onPointerUp,e=>{let r=e.target;r.hasPointerCapture(e.pointerId)&&r.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=R.current,S.viewport&&(S.viewport.style.scrollBehavior=""),T.current=null})})})}),A="ScrollAreaThumb",N=n.forwardRef((e,r)=>{let{forceMount:t,...n}=e,o=D(A,e.__scopeScrollArea);return(0,p.jsx)(l.z,{present:t||o.hasThumb,children:(0,p.jsx)(z,{ref:r,...n})})}),z=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,style:l,...i}=e,s=b(A,t),c=D(A,t),{onThumbPositionChange:d}=c,u=(0,a.e)(r,e=>c.onThumbChange(e)),h=n.useRef(),v=F(()=>{h.current&&(h.current(),h.current=void 0)},100);return n.useEffect(()=>{let e=s.viewport;if(e){let r=()=>{if(v(),!h.current){let r=V(e,d);h.current=r,d()}};return d(),e.addEventListener("scroll",r),()=>e.removeEventListener("scroll",r)}},[s.viewport,v,d]),(0,p.jsx)(o.WV.div,{"data-state":c.hasThumb?"visible":"hidden",...i,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...l},onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,e=>{let r=e.target.getBoundingClientRect(),t=e.clientX-r.left,n=e.clientY-r.top;c.onThumbPointerDown({x:t,y:n})}),onPointerUp:(0,f.M)(e.onPointerUp,c.onThumbPointerUp)})});N.displayName=A;var H="ScrollAreaCorner",M=n.forwardRef((e,r)=>{let t=b(H,e.__scopeScrollArea),n=!!(t.scrollbarX&&t.scrollbarY);return"scroll"!==t.type&&n?(0,p.jsx)(I,{...e,ref:r}):null});M.displayName=H;var I=n.forwardRef((e,r)=>{let{__scopeScrollArea:t,...l}=e,i=b(H,t),[a,s]=n.useState(0),[c,d]=n.useState(0),u=!!(a&&c);return B(i.scrollbarX,()=>{var e;let r=(null===(e=i.scrollbarX)||void 0===e?void 0:e.offsetHeight)||0;i.onCornerHeightChange(r),d(r)}),B(i.scrollbarY,()=>{var e;let r=(null===(e=i.scrollbarY)||void 0===e?void 0:e.offsetWidth)||0;i.onCornerWidthChange(r),s(r)}),u?(0,p.jsx)(o.WV.div,{...l,ref:r,style:{width:a,height:c,position:"absolute",right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:0,...e.style}}):null});function O(e){return e?parseInt(e,10):0}function X(e,r){let t=e/r;return isNaN(t)?0:t}function Y(e){let r=X(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-t)*r,18)}function k(e,r){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ltr",n=Y(r),o=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,l=r.scrollbar.size-o,i=r.content-r.viewport,a=(0,u.u)(e,"ltr"===t?[0,i]:[-1*i,0]);return U([0,i],[0,l-n])(a)}function U(e,r){return t=>{if(e[0]===e[1]||r[0]===r[1])return r[0];let n=(r[1]-r[0])/(e[1]-e[0]);return r[0]+n*(t-e[0])}}var V=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},t={left:e.scrollLeft,top:e.scrollTop},n=0;return!function o(){let l={left:e.scrollLeft,top:e.scrollTop},i=t.left!==l.left,a=t.top!==l.top;(i||a)&&r(),t=l,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function F(e,r){let t=(0,s.W)(e),o=n.useRef(0);return n.useEffect(()=>()=>window.clearTimeout(o.current),[]),n.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(t,r)},[t,r])}function B(e,r){let t=(0,s.W)(r);(0,d.b)(()=>{let r=0;if(e){let n=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return n.observe(e),()=>{window.cancelAnimationFrame(r),n.unobserve(e)}}},[e,t])}var q=m,G=x,J=M}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3131-90588f130914b471.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3131-90588f130914b471.js new file mode 100644 index 0000000..614131a --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/3131-90588f130914b471.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3131],{83027:function(e,t,n){n.d(t,{B:function(){return s}});var r=n(64149),o=n(245),i=n(83954),a=n(54098),l=n(20881);function s(e){let t=e+"CollectionProvider",[n,s]=(0,o.b)(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:i,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),s=(0,i.e)(t,o.collectionRef);return(0,l.jsx)(a.g7,{ref:s,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...s}=e,u=r.useRef(null),d=(0,i.e)(t,u),f=c(m,n);return r.useEffect(()=>(f.itemMap.set(u,{ref:u,...s}),()=>void f.itemMap.delete(u))),(0,l.jsx)(a.g7,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},s]}},89105:function(e,t,n){n.d(t,{M:function(){return s}});var r,o=n(64149),i=n(61013),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},45485:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(64149),o=n(83954),i=n(61013),a=e=>{var t,n;let a,s;let{present:u,children:c}=e,d=function(e){var t,n;let[o,a]=r.useState(),s=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);c.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(c.current=l(s.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),a(e)},[])}}(u),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,o.e)(d.ref,(a=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},72919:function(e,t,n){n.d(t,{Dx:function(){return Z},aU:function(){return et},dk:function(){return ee},fC:function(){return Q},l_:function(){return G},x8:function(){return en},zt:function(){return $}});var r=n(64149),o=n(50149),i=n(64433),a=n(83954),l=n(83027),s=n(74873),u=n(72832),c=n(97498),d=n(45485),f=n(79442),p=n(2441),m=n(45306),v=n(61013),h=n(12230),w=n(20881),y="ToastProvider",[x,g,T]=(0,l.B)("Toast"),[E,b]=(0,s.b)("Toast",[T]),[C,R]=E(y),M=e=>{let{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:l}=e,[s,u]=r.useState(null),[c,d]=r.useState(0),f=r.useRef(!1),p=r.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(y,"`. Expected non-empty `string`.")),(0,w.jsx)(x.Provider,{scope:t,children:(0,w.jsx)(C,{scope:t,label:n,duration:o,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:r.useCallback(()=>d(e=>e+1),[]),onToastRemove:r.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p,children:l})})};M.displayName=y;var N="ToastViewport",P=["F8"],S="toast.viewportPause",L="toast.viewportResume",k=r.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:o=P,label:i="Notifications ({hotkey})",...l}=e,s=R(N,n),c=g(n),d=r.useRef(null),p=r.useRef(null),m=r.useRef(null),v=r.useRef(null),h=(0,a.e)(t,v,s.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),T=s.toastCount>0;r.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=v.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{let e=d.current,t=v.current;if(T&&e&&t){let n=()=>{if(!s.isClosePausedRef.current){let e=new CustomEvent(S);t.dispatchEvent(e),s.isClosePausedRef.current=!0}},r=()=>{if(s.isClosePausedRef.current){let e=new CustomEvent(L);t.dispatchEvent(e),s.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[T,s.isClosePausedRef]);let E=r.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return r.useEffect(()=>{let e=v.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,o,i;let n=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(r=p.current)||void 0===r||r.focus();return}let l=E({tabbingDirection:a?"backwards":"forwards"}),s=l.findIndex(e=>e===n);J(l.slice(s+1))?t.preventDefault():a?null===(o=p.current)||void 0===o||o.focus():null===(i=m.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,E]),(0,w.jsxs)(u.I0,{ref:d,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:T?void 0:"none"},children:[T&&(0,w.jsx)(I,{ref:p,onFocusFromOutsideViewport:()=>{J(E({tabbingDirection:"forwards"}))}}),(0,w.jsx)(x.Slot,{scope:n,children:(0,w.jsx)(f.WV.ol,{tabIndex:-1,...l,ref:h})}),T&&(0,w.jsx)(I,{ref:m,onFocusFromOutsideViewport:()=>{J(E({tabbingDirection:"backwards"}))}})]})});k.displayName=N;var j="ToastFocusProxy",I=r.forwardRef((e,t)=>{let{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=R(j,n);return(0,w.jsx)(h.T,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=i.viewport)||void 0===t?void 0:t.contains(n))||r()}})});I.displayName=j;var D="Toast",O=r.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...l}=e,[s=!0,u]=(0,m.T)({prop:r,defaultProp:o,onChange:a});return(0,w.jsx)(d.z,{present:n||s,children:(0,w.jsx)(_,{open:s,...l,ref:t,onClose:()=>u(!1),onPause:(0,p.W)(e.onPause),onResume:(0,p.W)(e.onResume),onSwipeStart:(0,i.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,i.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:(0,i.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,i.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),u(!1)})})})});O.displayName=D;var[A,F]=E(D,{onClose(){}}),_=r.forwardRef((e,t)=>{let{__scopeToast:n,type:l="foreground",duration:s,open:c,onClose:d,onEscapeKeyDown:m,onPause:v,onResume:h,onSwipeStart:y,onSwipeMove:g,onSwipeCancel:T,onSwipeEnd:E,...b}=e,C=R(D,n),[M,N]=r.useState(null),P=(0,a.e)(t,e=>N(e)),k=r.useRef(null),j=r.useRef(null),I=s||C.duration,O=r.useRef(0),F=r.useRef(I),_=r.useRef(0),{onToastAdd:V,onToastRemove:K}=C,U=(0,p.W)(()=>{var e;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=C.viewport)||void 0===e||e.focus()),d()}),H=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),O.current=new Date().getTime(),_.current=window.setTimeout(U,e))},[U]);r.useEffect(()=>{let e=C.viewport;if(e){let t=()=>{H(F.current),null==h||h()},n=()=>{let e=new Date().getTime()-O.current;F.current=F.current-e,window.clearTimeout(_.current),null==v||v()};return e.addEventListener(S,n),e.addEventListener(L,t),()=>{e.removeEventListener(S,n),e.removeEventListener(L,t)}}},[C.viewport,I,v,h,H]),r.useEffect(()=>{c&&!C.isClosePausedRef.current&&H(I)},[c,I,C.isClosePausedRef,H]),r.useEffect(()=>(V(),()=>K()),[V,K]);let z=r.useMemo(()=>M?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!r){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(M):null,[M]);return C.viewport?(0,w.jsxs)(w.Fragment,{children:[z&&(0,w.jsx)(W,{__scopeToast:n,role:"status","aria-live":"foreground"===l?"assertive":"polite","aria-atomic":!0,children:z}),(0,w.jsx)(A,{scope:n,onClose:U,children:o.createPortal((0,w.jsx)(x.ItemSlot,{scope:n,children:(0,w.jsx)(u.fC,{asChild:!0,onEscapeKeyDown:(0,i.M)(m,()=>{C.isFocusedToastEscapeKeyDownRef.current||U(),C.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,w.jsx)(f.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":C.swipeDirection,...b,ref:P,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==m||m(e.nativeEvent),e.nativeEvent.defaultPrevented||(C.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{0===e.button&&(k.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{if(!k.current)return;let t=e.clientX-k.current.x,n=e.clientY-k.current.y,r=!!j.current,o=["left","right"].includes(C.swipeDirection),i=["left","up"].includes(C.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,l=o?0:i(0,n),s="touch"===e.pointerType?10:2,u={x:a,y:l},c={originalEvent:e,delta:u};r?(j.current=u,Y("toast.swipeMove",g,c,{discrete:!1})):q(u,C.swipeDirection,s)?(j.current=u,Y("toast.swipeStart",y,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>s||Math.abs(n)>s)&&(k.current=null)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=j.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),j.current=null,k.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};q(t,C.swipeDirection,C.swipeThreshold)?Y("toast.swipeEnd",E,r,{discrete:!0}):Y("toast.swipeCancel",T,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),C.viewport)})]}):null}),W=e=>{let{__scopeToast:t,children:n,...o}=e,i=R(D,t),[a,l]=r.useState(!1),[s,u]=r.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,p.W)(e);(0,v.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>l(!0)),r.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),s?null:(0,w.jsx)(c.h,{asChild:!0,children:(0,w.jsx)(h.T,{...o,children:a&&(0,w.jsxs)(w.Fragment,{children:[i.label," ",n]})})})},V=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,w.jsx)(f.WV.div,{...r,ref:t})});V.displayName="ToastTitle";var K=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,w.jsx)(f.WV.div,{...r,ref:t})});K.displayName="ToastDescription";var U="ToastAction",H=r.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,w.jsx)(X,{altText:n,asChild:!0,children:(0,w.jsx)(B,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(U,"`. Expected non-empty `string`.")),null)});H.displayName=U;var z="ToastClose",B=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,o=F(z,n);return(0,w.jsx)(X,{asChild:!0,children:(0,w.jsx)(f.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,o.onClose)})})});B.displayName=z;var X=r.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...o}=e;return(0,w.jsx)(f.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function Y(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,f.jH)(i,a):i.dispatchEvent(a)}var q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function J(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var $=M,G=k,Q=O,Z=V,ee=K,et=H,en=B},37503:function(e,t,n){n.d(t,{VY:function(){return U},fC:function(){return V},xz:function(){return K},zt:function(){return W}});var r=n(64149),o=n(64433),i=n(83954),a=n(74873),l=n(72832),s=n(89105),u=n(95420),c=(n(97498),n(45485)),d=n(79442),f=n(54098),p=n(45306),m=n(12230),v=n(20881),[h,w]=(0,a.b)("Tooltip",[u.D7]),y=(0,u.D7)(),x="TooltipProvider",g="tooltip.open",[T,E]=h(x),b=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[l,s]=r.useState(!0),u=r.useRef(!1),c=r.useRef(0);return r.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,v.jsx)(T,{scope:t,isOpenDelayed:l,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(c.current),s(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>s(!0),o)},[o]),isPointerInTransitRef:u,onPointerInTransitChange:r.useCallback(e=>{u.current=e},[]),disableHoverableContent:i,children:a})};b.displayName=x;var C="Tooltip",[R,M]=h(C),N=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:l,delayDuration:c}=e,d=E(C,e.__scopeTooltip),f=y(t),[m,h]=r.useState(null),w=(0,s.M)(),x=r.useRef(0),T=null!=l?l:d.disableHoverableContent,b=null!=c?c:d.delayDuration,M=r.useRef(!1),[N=!1,P]=(0,p.T)({prop:o,defaultProp:i,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(g))):d.onClose(),null==a||a(e)}}),S=r.useMemo(()=>N?M.current?"delayed-open":"instant-open":"closed",[N]),L=r.useCallback(()=>{window.clearTimeout(x.current),M.current=!1,P(!0)},[P]),k=r.useCallback(()=>{window.clearTimeout(x.current),P(!1)},[P]),j=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{M.current=!0,P(!0)},b)},[b,P]);return r.useEffect(()=>()=>window.clearTimeout(x.current),[]),(0,v.jsx)(u.fC,{...f,children:(0,v.jsx)(R,{scope:t,contentId:w,open:N,stateAttribute:S,trigger:m,onTriggerChange:h,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayed?j():L()},[d.isOpenDelayed,j,L]),onTriggerLeave:r.useCallback(()=>{T?k():window.clearTimeout(x.current)},[k,T]),onOpen:L,onClose:k,disableHoverableContent:T,children:n})})};N.displayName=C;var P="TooltipTrigger",S=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,l=M(P,n),s=E(P,n),c=y(n),f=r.useRef(null),p=(0,i.e)(t,f,l.onTriggerChange),m=r.useRef(!1),h=r.useRef(!1),w=r.useCallback(()=>m.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),(0,v.jsx)(u.ee,{asChild:!0,...c,children:(0,v.jsx)(d.WV.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...a,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||s.isPointerInTransitRef.current||(l.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{l.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{m.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{m.current||l.onOpen()}),onBlur:(0,o.M)(e.onBlur,l.onClose),onClick:(0,o.M)(e.onClick,l.onClose)})})});S.displayName=P;var[L,k]=h("TooltipPortal",{forceMount:void 0}),j="TooltipContent",I=r.forwardRef((e,t)=>{let n=k(j,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=M(j,e.__scopeTooltip);return(0,v.jsx)(c.z,{present:r||a.open,children:a.disableHoverableContent?(0,v.jsx)(F,{side:o,...i,ref:t}):(0,v.jsx)(D,{side:o,...i,ref:t})})}),D=r.forwardRef((e,t)=>{let n=M(j,e.__scopeTooltip),o=E(j,e.__scopeTooltip),a=r.useRef(null),l=(0,i.e)(t,a),[s,u]=r.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:p}=o,m=r.useCallback(()=>{u(null),p(!1)},[p]),h=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.xt.x?1:e.yt.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>m(),[m]),r.useEffect(()=>{if(c&&f){let e=e=>h(e,f),t=e=>h(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,h,m]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;er!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}(n,s);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,s,d,m]),(0,v.jsx)(F,{...e,ref:l})}),[O,A]=h(C,{isInside:!1}),F=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,d=M(j,n),p=y(n),{onClose:h}=d;return r.useEffect(()=>(document.addEventListener(g,h),()=>document.removeEventListener(g,h)),[h]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,v.jsx)(l.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,v.jsxs)(u.VY,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,v.jsx)(f.A4,{children:o}),(0,v.jsx)(O,{scope:n,isInside:!0,children:(0,v.jsx)(m.f,{id:d.contentId,role:"tooltip",children:i||o})})]})})});I.displayName=j;var _="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=y(n);return A(_,n).isInside?null:(0,v.jsx)(u.Eh,{...o,...r,ref:t})}).displayName=_;var W=b,V=N,K=S,U=I},12230:function(e,t,n){n.d(t,{T:function(){return a},f:function(){return l}});var r=n(64149),o=n(79442),i=n(20881),a=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));a.displayName="VisuallyHidden";var l=a},89448:function(e,t,n){n.d(t,{F:function(){return u},f:function(){return c}});var r=n(64149),o=["light","dark"],i="(prefers-color-scheme: dark)",a="undefined"==typeof window,l=r.createContext(void 0),s={setTheme:e=>{},themes:[]},u=()=>{var e;return null!=(e=r.useContext(l))?e:s},c=e=>r.useContext(l)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:a=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:c=d,defaultTheme:f=a?"system":"light",attribute:w="data-theme",value:y,children:x,nonce:g}=e,[T,E]=r.useState(()=>m(u,f)),[b,C]=r.useState(()=>m(u)),R=y?Object.values(y):c,M=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&a&&(t=h());let r=y?y[t]:t,i=n?v():null,l=document.documentElement;if("class"===w?(l.classList.remove(...R),r&&l.classList.add(r)):r?l.setAttribute(w,r):l.removeAttribute(w),s){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;l.style.colorScheme=n}null==i||i()},[]),N=r.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),P=r.useCallback(e=>{C(h(e)),"system"===T&&a&&!t&&M("system")},[T,t]);r.useEffect(()=>{let e=window.matchMedia(i);return e.addListener(P),P(e),()=>e.removeListener(P)},[P]),r.useEffect(()=>{let e=e=>{e.key===u&&N(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[N]),r.useEffect(()=>{M(null!=t?t:T)},[t,T]);let S=r.useMemo(()=>({theme:T,setTheme:N,forcedTheme:t,resolvedTheme:"system"===T?b:T,themes:a?[...c,"system"]:c,systemTheme:a?b:void 0}),[T,N,t,b,a,c]);return r.createElement(l.Provider,{value:S},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:a,enableColorScheme:s,storageKey:u,themes:c,defaultTheme:f,attribute:w,value:y,children:x,attrs:R,nonce:g}),x)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:a,enableSystem:l,enableColorScheme:s,defaultTheme:u,value:c,attrs:d,nonce:f}=e,p="system"===u,m="class"===a?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(a,"',s='setAttribute';"),v=s?(o.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=c?c[e]:e,i=t?e+"|| ''":"'".concat(r,"'"),l="";return s&&n&&!t&&o.includes(e)&&(l+="d.style.colorScheme = '".concat(e,"';")),"class"===a?t||r?l+="c.add(".concat(i,")"):l+="null":r&&(l+="d[s](n,".concat(i,")")),l},w=t?"!function(){".concat(m).concat(h(t),"}()"):l?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(i,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(h(c?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(u,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(h(c?"x[e]":"e",!0),"}else{").concat(h(u,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:w}})}),m=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(i)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/330-d9fdf12d0e0b9b99.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/330-d9fdf12d0e0b9b99.js deleted file mode 100644 index b57ff31..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/330-d9fdf12d0e0b9b99.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{59113:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},5483:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},61221:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(29068),o=n(12168);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29156:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.15",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(81013);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40196:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return x}});let u=n(88806),l=n(59994),a=n(20881);n(5483);let i=u._(n(55826)),c=l._(n(64149)),s=n(53150),f=n(61373),d=u._(n(96300)),p=n(79775),h=n(65590),y=n(65470);n(70902);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(98837),(0,n(29156).appBootstrap)(()=>{let{hydrate:e}=n(40196);n(81013),n(16102),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98837:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(59113);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(51223),a=n(69024),i=n(27549),c=n(84985),s=n(40500),f=n(41626),d=n(34165),p=n(85202),h=n(61221),y=n(65055),_=n(27456),v=n(34671),b=n(12896),g=n(18310),m=n(33854),R=n(15282),P=n(84478),j="undefined"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,urlParts:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,urlParts:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,U,k]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}M(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(90351),o=n(5733);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(20881),o=n(81802);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(88806),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(65590),i=n(5733),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24278:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(35479),o=n(58070);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=n(88806),o=n(59994),u=n(20881),l=o._(n(64149)),a=r._(n(50149)),i=n(51223),c=n(70326),s=n(12896),f=n(41626),d=n(17127),p=n(66270),h=n(27456),y=n(84262),_=n(80597),v=n(50416),b=n(99374),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b}=e,g=(0,l.useContext)(i.LayoutRouterContext);if(!g)throw Error("invariant expected layout router to be mounted");let{childNodes:m,tree:R,url:S,loading:E}=g,w=m.get(t);w||(w=new Map,m.set(t,w));let T=R[1][t][0],M=(0,_.getSegmentValue)(T),x=[T];return(0,u.jsx)(u.Fragment,{children:x.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!E,loading:null==E?void 0:E[0],loadingStyles:null==E?void 0:E[1],loadingScripts:null==E?void 0:E[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:S,tree:R,childNodes:w,segmentPath:n,cacheKey:g,isActive:M===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17127:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(37828),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39886:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(64149),o=n(51223),u=n(84985),l=n(80597),a=n(84478),i=n(7279),c=n(60773);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(58951);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(58070),o=n(35479);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(35479);n(12303);let i=n(51223);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(78710),o=n(19052);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(58070);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6280:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58070:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(7870),l=n(30138),a=n(6280),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(51223);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(72453);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(73254),o=n(53764);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(84478),o=n(17127),u=n(42578);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79235:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(51693),o=n(84478),u=n(17127),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27549:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(27549),o=n(73254),u=n(79235),l=n(50306),a=n(69024),i=n(42578);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,urlParts:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=f.join("/"),v=!p,b={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:v?new Map:d,lazyDataResolved:!1,loading:s[3]},g=p?(0,r.createHrefFromUrl)(p):_;(0,i.addRefreshMarkerToActiveParallelSegments)(c,g);let m=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(b,void 0,c,s,h);let R={buildId:n,tree:c,cache:b,prefetchCache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:g,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:R.tree,prefetchCache:R.prefetchCache,nextUrl:R.nextUrl})}return R}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(84478);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(18310),o=n(81013),u=n(79775),l=n(69024),a=n(22132),{createFromFetch:i}=n(53150);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(12928),o=n(73254),u=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73254:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(50416),o=n(69024);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(79235);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(91615);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12928:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(50416);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10939:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(84478),o=n(17127),u=n(50416);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(27549),o=n(70326),u=n(69024),l=n(29565);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,O);if(document.getElementById("__next-page-redirect"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u,g=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(18310),o=n(16076),u=n(50306),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(70326),o=n(27549),u=n(69078),l=n(10939),a=n(91615),i=n(53464),c=n(73254),s=n(81013),f=n(94586),d=n(99374),p=n(42578);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99854:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(27549),o=n(79235);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(34626),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(79775),o=n(18310),u=n(61221),l=n(27549),a=n(91615),i=n(69078),c=n(10939),s=n(53464),f=n(73254),d=n(81013),p=n(99374),h=n(94586),y=n(42578),{createFromFetch:_,encodeReply:v}=n(53150);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(27549),o=n(69078),u=n(10939),l=n(91615),a=n(21239),i=n(53464),c=n(81013),s=n(94586);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(21239),o=n(70326),u=n(84478);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69024:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(69024),o=n(91615),u=n(36463),l=n(99854),a=n(51780),i=n(29565),c=n(50449),s=n(43674),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(17127);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(5733),o=n(24703),u=n(98250);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(8136);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63107:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12896:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40500:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(59994)._(n(64149)),o=n(69024),u=n(65470);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15282:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(52097);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(15466),o=n(52363),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,r.removeTrailingSlash)(t)+n+u:t.endsWith("/")?""+t+n+u:t+"/"+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(90351);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33854:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(15282),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80227:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if("function"==typeof m)l=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},29553:function(e,t,n){"use strict";e.exports=n(80227)},98651:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return r},isFullStringUrl:function(){return o},parseUrl:function(){return u}});let n="http://n";function r(e){return new URL(e,n).pathname}function o(e){return/https?:\/\//.test(e)}function u(e){let t;try{t=new URL(e,n)}catch{}return t}},24703:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(64149))&&r.__esModule?r:{default:r},u=n(24278),l=n(63107),a=n(98651),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function v(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},37828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(51693);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},70902:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},51693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(66322),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},98250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},51223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(88806)._(n(64149)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},22132:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},61373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(88806)._(n(64149)).default.createContext({})},84985:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(64149),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},90351:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},88584:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},65470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(59994),o=n(69024),u=n(62704),l=r._(n(64149)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},29068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(52363);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},66322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(88584),o=n(84478);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},66270:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},85202:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},52363:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},52097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(52363);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},15466:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},84478:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},60773:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(59994)._(n(64149)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},12303:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},96223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55826:function(e,t,n){"use strict";var r=n(50149);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},50149:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(23727)},87224:function(e,t,n){"use strict";var r=n(50149),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":E(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var O=d.byteOffset+p;if(-1e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={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"};let c=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:l="",children:s,iconNode:f,...d}=e;return(0,r.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:u?24*Number(c)/Number(o):c,className:i("lucide",l),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:u,...l}=n;return(0,r.createElement)(c,{ref:a,iconNode:t,className:i("lucide-".concat(o(e)),u),...l})});return n.displayName="".concat(e),n}},7410:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},83765:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},7694:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},7357:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},55215:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(64149)),l=n(91857),s=n(30408),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=e.color,o=void 0===n?"#000000":n,i=e.speedMultiplier,a=void 0===i?1:i,s=e.cssOverride,d=e.size,p=c(e,["loading","color","speedMultiplier","cssOverride","size"]),m=(0,l.parseLengthAndUnit)(void 0===d?15:d),g=m.value,h=m.unit,y=r({display:"inherit",position:"relative"},void 0===s?{}:s),v=function(e){return{position:"absolute",fontSize:"".concat(g/3).concat(h),width:"".concat(g).concat(h),height:"".concat(g).concat(h),background:o,borderRadius:"50%",animation:"".concat(f[e]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===t||t?u.createElement("span",r({style:y},p),u.createElement("span",{style:v(0)}),u.createElement("span",{style:v(1)}),u.createElement("span",{style:v(2)}),u.createElement("span",{style:v(3)}),u.createElement("span",{style:v(4)}),u.createElement("span",{style:v(5)})):null}},30408:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var i=o.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return i&&i.insertRule(a,0),r}},91857:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var o=(e.match(/[^0-9]*$/)||"").toString();return n[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},25696:function(e,t,n){n.d(t,{Z:function(){return S}});var r=n(64149);function o(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function i(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:o(r)&&o(a)?i(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function c(e){return"number"==typeof e}function u(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return y(e).map(Number)}function m(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function h(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function y(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,o,i={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i)):(n.addListener(o),a=()=>n.removeListener(o)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function x(e=0,t=0){let n=f(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(y(n).forEach(r=>{let o=t[r],i=n[r],a=s(o)&&s(i);t[r]=a?e(o,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},o=y(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(L),P=(S=[],{init:function(e,t){return(S=t.filter(({options:e})=>!1!==M.optionsAtMedia(e).active)).forEach(t=>t.init(e,M)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){S=S.filter(e=>e.destroy())}}),j=b(),D=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:X,optionsAtMedia:_,optionsMediaQueries:I}=M,{on:F,off:N,emit:C}=D,z=!1,T=X(k,E.globalOptions),R=X(T),V=[];function Z(t,n){!z&&(R=_(T=X(T,t)),V=n||V,function(){let{container:t,slides:n}=R;i=(u(t)?e.querySelector(t):t)||e.children[0];let r=u(n)?i.querySelectorAll(n):n;a=[].slice.call(r||i.children)}(),r=function t(n){let r=function(e,t,n,r,o,i,a){let s,k;let{align:E,axis:S,direction:A,startIndex:L,loop:M,duration:P,dragFree:j,dragThreshold:D,inViewThreshold:X,slidesToScroll:_,skipSnaps:I,containScroll:F,watchResize:N,watchSlides:C,watchDrag:z,watchFocus:T}=i,R={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},V=R.measure(t),Z=n.map(R.measure),H=function(e,t){let n="rtl"===t,r="y"===e,o=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}}}(S,A),$=H.measureSize(V),B={measure:function(e){return e/100*$}},q=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,o){return u(e)?n[e](r):e(t,r,o)}}}(E,$),U=!M&&!!F,{slideSizes:J,slideSizesWithGaps:W,startGap:Q,endGap:Y}=function(e,t,n,r,o,i){let{measureSize:a,startEdge:c,endEdge:u}=e,l=n[0]&&o,s=function(){if(!l)return 0;let e=n[0];return f(t[c]-e[c])}(),d=l?parseFloat(i.getComputedStyle(m(r)).getPropertyValue(`margin-${u}`)):0,p=n.map(a),h=n.map((e,t,n)=>{let r=t===g(n);return t?r?p[t]+d:n[t+1][c]-e[c]:p[t]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:h,startGap:s,endGap:d}}(H,V,Z,n,M||!!F,o),G=function(e,t,n,r,o,i,a,u,l){let{startEdge:s,endEdge:d,direction:h}=e,y=c(n);return{groupSlides:function(e){return y?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,c,l)=>{let p=m(n)||0,y=c===g(e),v=o[s]-i[p][s],b=o[s]-i[c][d],x=r||0!==p?0:h(a),w=f(b-(!r&&y?h(u):0)-(v+x));return l&&w>t+2&&n.push(c),y&&n.push(e.length),n},[]).map((t,n,r)=>{let o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}}}(H,$,_,M,V,Z,Q,Y,0),{snaps:K,snapsAligned:ee}=function(e,t,n,r,o){let{startEdge:i,endEdge:a}=e,{groupSlides:c}=o,u=c(r).map(e=>m(e)[a]-e[0][i]).map(f).map(t.measure),l=r.map(e=>n[i]-e[i]).map(e=>-f(e)),s=c(l).map(e=>e[0]).map((e,t)=>e+u[t]);return{snaps:l,snapsAligned:s}}(H,q,V,Z,G),et=-m(K)+m(W),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,o){let i=x(-t+e,0),a=n.map((e,t)=>{let{min:r,max:o}=i,a=i.constrain(e),c=t===g(n);return t?c||1>f(r-a)?r:1>f(o-a)?o:a:o}).map(e=>parseFloat(e.toFixed(3))),c=function(){let e=a[0],t=m(a);return x(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===r)return a;let{min:n,max:o}=c;return a.slice(n,o)}(),scrollContainLimit:c}}($,et,ee,F,0),eo=U?en:ee,{limit:ei}=function(e,t,n){let r=t[0];return{limit:x(n?r-e:m(t),r)}}(et,eo,M),ea=function e(t,n,r){let{constrain:o}=x(0,t),i=t+1,a=c(n);function c(e){return r?f((i+e)%i):o(e)}function u(){return e(t,a,r)}let l={get:function(){return a},set:function(e){return a=c(e),l},add:function(e){return u().set(a+e)},clone:u};return l}(g(eo),L,M),ec=ea.clone(),eu=p(n),el=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},o)=>{r||n.constrain(e.pointerDown()),t.seek(o)},es=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:a,animation:c,eventHandler:u,scrollBounds:l,options:{loop:s}},f)=>{let d=e.settled(),p=!l.shouldConstrain(),m=s?d:d&&p;m&&!a.pointerDown()&&(c.stop(),u.emit("settle")),m||u.emit("scroll");let g=n.get()*f+em.get()*(1-f);r.set(g),s&&(o.loop(e.direction()),i.loop()),t.to(r.get())},ef=function(e,t,n,r){let o=b(),i=1e3/60,a=null,c=0,u=0;function l(e){if(!u)return;a||(a=e);let o=e-a;for(a=e,c+=o;c>=i;)n(i),c-=i;r(c/i),u&&t.requestAnimationFrame(l)}function s(){t.cancelAnimationFrame(u),a=null,c=0,u=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,c=0)})},destroy:function(){s(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:s,update:()=>n(i),render:r}}(r,o,e=>el(eS,e),e=>es(eS,e)),ed=eo[ea.get()],ep=w(ed),em=w(ed),eg=w(ed),eh=w(ed),ey=function(e,t,n,r,o,i){let a=0,c=0,u=o,l=.68,s=e.get(),p=0;function m(e){return u=e,h}function g(e){return l=e,h}let h={direction:function(){return c},duration:function(){return u},velocity:function(){return a},seek:function(t){let o=t/1e3,i=u*o,f=r.get()-e.get(),m=0;return u?(n.set(e),a+=f/i,a*=l,s+=a,e.add(a*o),m=s-p):(a=0,n.set(r),e.set(r),m=f),c=d(m),p=s,h},settled:function(){return .001>f(r.get()-t.get())},useBaseFriction:function(){return g(.68)},useBaseDuration:function(){return m(o)},useFriction:g,useDuration:m};return h}(ep,eg,em,eh,P,0),ev=function(e,t,n,r,o){let{reachedAny:i,removeOffset:a,constrain:c}=r;function u(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function l(t,r){let o=[t,t+n,t-n];if(!e)return t;if(!r)return u(o);let i=o.filter(e=>d(e)===r);return i.length?u(i):m(o)-n}return{byDistance:function(n,r){let u=o.get()+n,{index:s,distance:d}=function(n){let r=e?a(n):c(n),{index:o}=t.map((e,t)=>({diff:l(e-r,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:o,distance:r}}(u),p=!e&&i(u);if(!r||p)return{index:s,distance:n};let m=n+l(t[s]-d,0);return{index:s,distance:m}},byIndex:function(e,n){let r=l(t[e]-o.get(),n);return{index:e,distance:r}},shortcut:l}}(M,eo,et,ei,eh),eb=function(e,t,n,r,o,i,a){function c(o){let c=o.distance,u=o.index!==t.get();i.add(c),c&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){c(o.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);c(o.byIndex(r.get(),n))}}}(ef,ea,ec,ey,ev,eh,a),ex=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ei),ew=b(),eO=function(e,t,n,r){let o;let i={},a=null,c=null,u=!1;return{init:function(){o=new IntersectionObserver(e=>{u||(e.forEach(e=>{i[t.indexOf(e.target)]=e}),a=null,c=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>o.observe(e))},destroy:function(){o&&o.disconnect(),u=!0},get:function(e=!0){if(e&&a)return a;if(!e&&c)return c;let t=y(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:o}=i[r];return(e&&o||!e&&!o)&&t.push(r),t},[]);return e&&(a=t),e||(c=t),t}}}(t,n,a,X),{slideRegistry:ek}=function(e,t,n,r,o,i){let{groupSlides:a}=o,{min:c,max:u}=r;return{slideRegistry:function(){let r=a(i);return 1===n.length?[i]:e&&"keepSnaps"!==t?r.slice(c,u).map((e,t,n)=>{let r=t===g(n);return t?r?h(g(i)-m(n)[0]+1,m(n)[0]):e:h(m(n[0])+1)}):r}()}}(U,F,eo,er,G,eu),eE=function(e,t,n,r,o,i,a,u){let s={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){u&&(i.add(document,"keydown",d,!1),t.forEach((t,d)=>{i.add(t,"focus",t=>{(l(u)||u(p,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));c(i)&&(o.useDuration(0),r.index(i,0),a.emit("slideFocus"))}(d)},s)}))}}}(e,n,ek,eb,ey,ew,a,T),eS={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:V,slideRects:Z,animation:ef,axis:H,dragHandler:function(e,t,n,r,o,i,a,c,u,s,p,m,g,h,y,w,O,k,E){let{cross:S,direction:A}=e,L=["INPUT","SELECT","TEXTAREA"],M={passive:!1},P=b(),j=b(),D=x(50,225).constrain(h.measure(20)),X={mouse:300,touch:400},_={mouse:500,touch:600},I=y?43:25,F=!1,N=0,C=0,z=!1,T=!1,R=!1,V=!1;function Z(e){if(!v(e,r)&&e.touches.length>=2)return H(e);let t=i.readPoint(e),n=i.readPoint(e,S),a=f(t-N),u=f(n-C);if(!T&&!V&&(!e.cancelable||!(T=a>u)))return H(e);let l=i.pointerMove(e);a>w&&(R=!0),s.useFriction(.3).useDuration(.75),c.start(),o.add(A(l)),e.preventDefault()}function H(e){let t=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(e)*(y?_:X)[V?"mouse":"touch"],r=function(e,t){let n=m.add(-1*d(e)),r=p.byDistance(e,!y).distance;return y||f(e)e.preventDefault(),M).add(t,"touchmove",()=>void 0,M).add(t,"touchend",()=>void 0).add(t,"touchstart",c).add(t,"mousedown",c).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",$,!0);function c(c){(l(E)||E(e,c))&&function(e){let c=v(e,r);V=c,R=y&&c&&!e.buttons&&F,F=f(o.get()-a.get())>=2,c&&0!==e.button||function(e){let t=e.nodeName||"";return L.includes(t)}(e.target)||(z=!0,i.pointerDown(e),s.useFriction(0).useDuration(0),o.set(a),function(){let e=V?n:t;j.add(e,"touchmove",Z,M).add(e,"touchend",H).add(e,"mousemove",Z,M).add(e,"mouseup",H)}(),N=i.readPoint(e),C=i.readPoint(e,S),g.emit("pointerDown"))}(c)}},destroy:function(){P.clear(),j.clear()},pointerDown:function(){return z}}}(H,e,r,o,eh,function(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){let o=r||e.scroll,i=`client${"x"===o?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[i]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){let t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=i(r)-i(n),a=o(e)-o(n),c=o(e)-o(r)>170,u=t/a;return a&&!c&&f(u)>.1?u:0},readPoint:i}}(H,o),ep,ef,eb,ey,ev,ea,a,B,j,D,I,0,z),eventStore:ew,percentOfView:B,index:ea,indexPrevious:ec,limit:ei,location:ep,offsetLocation:eg,previousLocation:em,options:i,resizeHandler:function(e,t,n,r,o,i,a){let c,u;let s=[e].concat(r),d=[],p=!1;function m(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(u=m(e),d=r.map(m),c=new ResizeObserver(n=>{(l(i)||i(o,n))&&function(n){for(let i of n){if(p)return;let n=i.target===e,a=r.indexOf(i.target),c=n?u:d[a];if(f(m(n?e:r[a])-c)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(t,a,o,n,H,N,R),scrollBody:ey,scrollBounds:function(e,t,n,r,o){let i=o.measure(10),a=o.measure(50),c=x(.1,.99),u=!1;function l(){return!!(!u&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(o){if(!l())return;let u=e.reachedMin(t.get())?"min":"max",s=f(e[u]-t.get()),d=n.get()-t.get(),p=c.constrain(s/a);n.subtract(d*p),!o&&f(d)e.add(a))}}}(et,ei,eg,[ep,eg,em,eh]),scrollProgress:ex,scrollSnapList:eo.map(ex.get),scrollSnaps:eo,scrollTarget:ev,scrollTo:eb,slideLooper:function(e,t,n,r,o,i,a,c,u){let l=p(o),s=m(d(p(o).reverse(),a[0]),n,!1).concat(m(d(l,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-o[t],t)}function d(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(o,a,l){let s=i.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return o.map(t=>{let r=l?0:-n,o=l?n:0,i=s[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:w(-1),translate:O(e,u[t]),target:()=>c.get()>i?r:o}})}return{canLoop:function(){return s.every(({index:e})=>.1>=f(l.filter(t=>t!==e),t))},clear:function(){s.forEach(e=>e.translate.clear())},loop:function(){s.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:s}}(H,$,et,J,W,K,eo,eg,n),slideFocus:eE,slidesHandler:(k=!1,{init:function(e){C&&(s=new MutationObserver(t=>{!k&&(l(C)||C(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){s&&s.disconnect(),k=!0}}),slidesInView:eO,slideIndexes:eu,slideRegistry:ek,slidesToScroll:G,target:eh,translate:O(H,t)};return eS}(e,i,a,A,L,n,D);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(R),I([T,...V.map(({options:e})=>e)]).forEach(e=>j.add(e,"change",H)),R.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(U),r.eventHandler.init(U),r.resizeHandler.init(U),r.slidesHandler.init(U),r.options.loop&&r.slideLooper.loop(),i.offsetParent&&a.length&&r.dragHandler.init(U),o=P.init(U,V)))}function H(e,t){let n=q();$(),Z(X({startIndex:n},e),t),D.emit("reInit")}function $(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),P.destroy(),j.clear()}function B(e,t,n){R.active&&!z&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:R.duration),r.scrollTo.index(e,n||0))}function q(){return r.index.get()}let U={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return r},destroy:function(){z||(z=!0,j.clear(),$(),D.emit("destroy"),D.clear())},off:N,on:F,emit:C,plugins:function(){return o},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:H,rootNode:function(){return e},scrollNext:function(e){B(r.index.add(1).get(),e,-1)},scrollPrev:function(e){B(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:B,selectedScrollSnap:q,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return Z(t,n),setTimeout(()=>D.emit("init"),0),U}function S(e={},t=[]){let n=(0,r.useRef)(e),o=(0,r.useRef)(t),[c,u]=(0,r.useState)(),[l,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,o.current)},[c]);return(0,r.useEffect)(()=>{i(n.current,e)||(n.current=e,f())},[e,f]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>i(e,r[t]))}(o.current,t)&&(o.current=t,f())},[t,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){E.globalOptions=S.globalOptions;let e=E(l,n.current,o.current);return u(e),()=>e.destroy()}u(void 0)},[l,u]),[s,c]}E.globalOptions=void 0,S.globalOptions=void 0}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4059-9aec608b956e2da7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4059-9aec608b956e2da7.js new file mode 100644 index 0000000..2bf6bc5 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4059-9aec608b956e2da7.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4059],{83954:function(e,r,o){o.d(r,{F:function(){return n},e:function(){return l}});var t=o(64149);function n(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function l(...e){return t.useCallback(n(...e),e)}},54098:function(e,r,o){o.d(r,{A4:function(){return a},g7:function(){return s}});var t=o(64149),n=o(83954),l=o(20881),s=t.forwardRef((e,r)=>{let{children:o,...n}=e,s=t.Children.toArray(o),a=s.find(d);if(a){let e=a.props.children,o=s.map(r=>r!==a?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(i,{...n,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,l.jsx)(i,{...n,ref:r,children:o})});s.displayName="Slot";var i=t.forwardRef((e,r)=>{let{children:o,...l}=e;if(t.isValidElement(o)){let e,s;let i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.ref:(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.props.ref:o.props.ref||o.ref;return t.cloneElement(o,{...function(e,r){let o={...r};for(let t in r){let n=e[t],l=r[t];/^on[A-Z]/.test(t)?n&&l?o[t]=(...e)=>{l(...e),n(...e)}:n&&(o[t]=n):"style"===t?o[t]={...n,...l}:"className"===t&&(o[t]=[n,l].filter(Boolean).join(" "))}return{...e,...o}}(l,o.props),ref:r?(0,n.F)(r,i):i})}return t.Children.count(o)>1?t.Children.only(null):null});i.displayName="SlotClone";var a=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function d(e){return t.isValidElement(e)&&e.type===a}},33958:function(e,r,o){function t(){for(var e,r,o=0,t="",n=arguments.length;o{let r=i(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},i=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{a(o,t,e,r)}),t},a=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){a(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{a(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],i=0,a=0;for(let d=0;da?o-a:void 0}};return o?e=>o({className:e,parseClassName:s}):s},f=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(g),i="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){i=r+(i.length>0?" "+i:i);continue}u=!1}let m=f(a).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+i:i)}return i};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\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$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>R(e)||z.has(e)||k.test(e),G=e=>Z(e,"length",B),R=e=>!!e&&!Number.isNaN(Number(e)),O=e=>Z(e,"number",R),W=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&R(e.slice(0,-1)),$=e=>w.test(e),I=e=>j.test(e),_=new Set(["length","size","percentage"]),A=e=>Z(e,_,H),V=e=>Z(e,"position",H),F=new Set(["image","url"]),q=e=>Z(e,F,K),D=e=>Z(e,"",J),T=()=>!0,Z=(e,r,o)=>{let t=w.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},B=e=>C.test(e)&&!E.test(e),H=()=>!1,J=e=>S.test(e),K=e=>N.test(e),L=function(e,...r){let o,t,n;let l=function(i){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(i)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),t=v("brightness"),n=v("borderColor"),l=v("borderRadius"),s=v("borderSpacing"),i=v("borderWidth"),a=v("contrast"),d=v("grayscale"),c=v("hueRotate"),p=v("invert"),u=v("gap"),b=v("gradientColorStops"),f=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),h=v("opacity"),y=v("padding"),x=v("saturate"),w=v("scale"),k=v("sepia"),z=v("skew"),j=v("space"),C=v("translate"),E=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",$,r],_=()=>[$,r],F=()=>["",P,G],Z=()=>["auto",R,$],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",$],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[R,$];return{cacheSize:500,separator:":",theme:{colors:[T],spacing:[P,G],blur:["none","",I,$],brightness:U(),borderColor:[e],borderRadius:["none","","full",I,$],borderSpacing:_(),borderWidth:F(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[M,G],inset:N(),margin:N(),opacity:U(),padding:_(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...B(),$]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,$]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",W,$]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",W,$]},$]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[W,$]},$]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,r]}],"min-w":[{"min-w":[$,r,"min","max","fit"]}],"max-w":[{"max-w":[$,r,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[$,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,r,"auto","min","max","fit"]}],"font-size":[{text:["base",I,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[T]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",R,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,G]}],"underline-offset":[{"underline-offset":["auto",P,$]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],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",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:H()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[P,$]}],"outline-w":[{outline:[P,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[P,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,D]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",I,$]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[W,$]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],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",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,G,O]}],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"]}}})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/420-26015e1723fa01e0.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/420-26015e1723fa01e0.js deleted file mode 100644 index 799d30f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/420-26015e1723fa01e0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[420],{245:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(64149),i=n(20881);function o(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;function f(t){let{scope:n,children:o,...f}=t,u=n?.[e][a]||l,c=r.useMemo(()=>f,Object.values(f));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],f.displayName=t+"Provider",[f,function(n,i){let f=i?.[e][a]||l,u=r.useContext(f);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},95420:function(e,t,n){n.d(t,{ee:function(){return eG},Eh:function(){return eK},VY:function(){return eJ},fC:function(){return eq},D7:function(){return ek}});var r=n(64149);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,f=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>s[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let r,{reference:i,floating:o}=e,l=y(t),a=m(y(t)),f=g(a),u=p(t),c="y"===l,s=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,v=i[f]/2-o[f]/2;switch(u){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:s}=A(u,r,f),d=r,p={},h=0;for(let n=0;ne[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=h(n),f="y"===y(n),u=["left","top"].includes(l)?-1:1,c=o&&f?-1:1,s=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:s.mainAxis||0,crossAxis:s.crossAxis||0,alignmentAxis:s.alignmentAxis};return a&&"number"==typeof v&&(g="end"===a?-1*v:v),f?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function C(){return"undefined"!=typeof window}function O(e){return H(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(H(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function H(e){return!!C()&&(e instanceof Node||e instanceof P(e).Node)}function D(e){return!!C()&&(e instanceof Element||e instanceof P(e).Element)}function N(e){return!!C()&&(e instanceof HTMLElement||e instanceof P(e).HTMLElement)}function W(e){return!!C()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function M(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=V(),n=D(e)?_(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(O(e))}function _(e){return P(e).getComputedStyle(e)}function B(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||k(e);return W(t)?t.host:t}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=$(t);return z(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&j(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=P(i);if(o){let e=I(l);return t.concat(l,l.visualViewport||[],j(i)?i:[],e&&n?Y(e):[])}return t.concat(i,Y(i,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X(e){let t=_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=N(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=a(n)!==o||a(r)!==l;return f&&(n=o,r=l),{width:n,height:r,$:f}}function q(e){return D(e)?e:e.contextElement}function G(e){let t=q(e);if(!N(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=X(t),l=(o?a(n.width):n.width)/r,f=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),f&&Number.isFinite(f)||(f=1),{x:l,y:f}}let J=u(0);function K(e){let t=P(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function Q(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=q(e),a=u(1);t&&(r?D(r)&&(a=G(r)):a=G(e));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===P(l))&&i)?K(l):u(0),c=(o.left+f.x)/a.x,s=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=P(l),t=r&&D(r)?P(r):r,n=e,i=I(n);for(;i&&r&&t!==n;){let e=G(i),t=i.getBoundingClientRect(),r=_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,p*=e.y,c+=o,s+=l,i=I(n=P(i))}}return b({width:d,height:p,x:c,y:s})}function U(e,t){let n=B(e).scrollLeft;return t?t.left+n:Q(k(e)).left+n}function Z(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=P(e),r=k(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=V();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t)r=function(e){let t=k(e),n=B(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+U(e),f=-n.scrollTop;return"rtl"===_(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:f}}(k(e));else if(D(t))r=function(e,t){let n=Q(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=N(e)?G(e):u(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=K(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function ee(e){return"static"===_(e).position}function et(e,t){if(!N(e)||"fixed"===_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=P(e);if(M(e))return n;if(!N(e)){let t=$(e);for(;t&&!z(t);){if(D(t)&&!ee(t))return t;t=$(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(O(r))&&ee(r);)r=et(r,t);return r&&z(r)&&ee(r)&&!F(r)?n:r||function(e){let t=$(e);for(;N(t)&&!z(t);){if(F(t))return t;if(M(t))break;t=$(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),i=k(t),o="fixed"===n,l=Q(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=u(0);if(r||!r&&!o){if(("body"!==O(t)||j(i))&&(a=B(t)),r){let e=Q(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=U(i))}let c=0,s=0;if(i&&!r&&!o){let e=i.getBoundingClientRect();s=e.top+a.scrollTop,c=e.left+a.scrollLeft-U(i,e)}return{x:l.left+a.scrollLeft-f.x-c,y:l.top+a.scrollTop-f.y-s,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=k(r),a=!!t&&M(t.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=u(1),s=u(0),d=N(r);if((d||!d&&!o)&&(("body"!==O(r)||j(l))&&(f=B(r)),N(r))){let e=Q(r);c=G(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+s.x,y:n.y*c.y-f.scrollTop*c.y+s.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?M(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>D(e)&&"body"!==O(e)),i=null,o="fixed"===_(e).position,l=o?$(e):e;for(;D(l)&&!z(l);){let t=_(l),n=F(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||j(l)&&!n&&function e(t,n){let r=$(t);return!(r===n||!D(r)||z(r))&&("fixed"===_(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=$(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],u=a.reduce((e,n)=>{let r=Z(t,n,i);return e.top=l(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Z(t,f,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=X(e);return{width:t,height:n}},getScale:G,isElement:D,isRTL:function(e){return"rtl"===_(e).direction}},eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:f,elements:u,middlewareData:c}=t,{element:s,padding:p=0}=d(e,t)||{};if(null==s)return{};let v=x(p),w={x:n,y:r},b=m(y(i)),A=g(b),R=await f.getDimensions(s),E="y"===b,L=E?"clientHeight":"clientWidth",S=a.reference[A]+a.reference[b]-w[b]-a.floating[A],T=w[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(s)),O=C?C[L]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=u.floating[L]||a.floating[A]);let P=O/2-R[A]/2-1,k=o(v[E?"top":"left"],P),H=o(v[E?"bottom":"right"],P),D=O-R[A]-H,N=O/2-R[A]/2+(S/2-T/2),W=l(k,o(N,D)),j=!c.arrow&&null!=h(i)&&N!==W&&a.reference[A]/2-(N{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return R(e,t,{...i,platform:o})};var ea=n(50149),ef="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eu(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eu(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eu(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ec(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function es(e,t){let n=ec(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return ef(()=>{t.current=e}),t}let ep=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eo({element:n.current,padding:r}).fn(t):{}:n?eo({element:n,padding:r}).fn(t):{}}}),eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:l,middlewareData:a}=e,f=await T(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),s={x:t,y:r},h=await E(e,c),g=y(p(i)),v=m(g),w=s[v],x=s[g];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+h[e],r=w-h[t];w=l(n,o(w,r))}if(f){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}let b=u.fn({...e,[v]:w,[g]:x});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[v]:a,[g]:f}}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=d(n,e),c={x:t,y:r},s=y(i),h=m(s),g=c[h],v=c[s],w=d(a,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,n=o.reference[h]+o.reference[e]-x.mainAxis;gn&&(g=n)}if(u){var b,A;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[s]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[s])||0)+(t?0:x.crossAxis),r=o.reference[s]+o.reference[e]+(t?0:(null==(A=l.offset)?void 0:A[s])||0)-(t?x.crossAxis:0);vr&&(v=r)}return{[h]:g,[s]:v}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,l;let{placement:a,middlewareData:f,rects:u,initialPlacement:c,platform:s,elements:x}=e,{mainAxis:b=!0,crossAxis:A=!0,fallbackPlacements:R,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...C}=d(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let O=p(a),P=y(c),k=p(c)===c,H=await (null==s.isRTL?void 0:s.isRTL(x.floating)),D=R||(k||!T?[w(c)]:function(e){let t=w(e);return[v(e),t,v(t)]}(c)),N="none"!==S;!R&&N&&D.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(c,T,S,H));let W=[c,...D],j=await E(e,C),M=[],F=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&M.push(j[O]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(y(e)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=w(l)),[l,w(l)]}(a,u,H);M.push(j[e[0]],j[e[1]])}if(F=[...F,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=W[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=F.filter(e=>{if(N){let t=y(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,a;let{placement:f,rects:u,platform:c,elements:s}=e,{apply:m=()=>{},...g}=d(n,e),v=await E(e,g),w=p(f),x=h(f),b="y"===y(f),{width:A,height:R}=u.floating;"top"===w||"bottom"===w?(i=w,a=x===(await (null==c.isRTL?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(a=w,i="end"===x?"top":"bottom");let L=R-v.top-v.bottom,S=A-v.left-v.right,T=o(R-v[i],L),C=o(A-v[a],S),O=!e.middlewareData.shift,P=T,k=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=L),O&&!x){let e=l(v.left,0),t=l(v.right,0),n=l(v.top,0),r=l(v.bottom,0);b?k=A-2*(0!==e||0!==t?e+t:l(v.left,v.right)):P=R-2*(0!==n||0!==r?n+r:l(v.top,v.bottom))}await m({...e,availableWidth:k,availableHeight:P});let H=await c.getDimensions(s.floating);return A!==H.width||R!==H.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=d(n,e);switch(r){case"referenceHidden":{let n=L(await E(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:S(n)}}}case"escaped":{let n=L(await E(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:S(n)}}}default:return{}}}}),options:[e,t]}},ex=(e,t)=>({...ep(e),options:[e,t]});var eb=n(79442),eA=n(20881),eR=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eA.jsx)(eb.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eA.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eR.displayName="Arrow";var eE=n(83954),eL=n(245),eS=n(2441),eT=n(61013),eC=n(73452),eO="Popper",[eP,ek]=(0,eL.b)(eO),[eH,eD]=eP(eO),eN=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eA.jsx)(eH,{scope:t,anchor:i,onAnchorChange:o,children:n})};eN.displayName=eO;var eW="PopperAnchor",ej=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=eD(eW,n),a=r.useRef(null),f=(0,eE.e)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,eA.jsx)(eb.WV.div,{...o,ref:f})});ej.displayName=eW;var eM="PopperContent",[eF,eV]=eP(eM),ez=r.forwardRef((e,t)=>{var n,i,a,u,c,s,d,p;let{__scopePopper:h,side:m="bottom",sideOffset:g=0,align:y="center",alignOffset:v=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:A=0,sticky:R="partial",hideWhenDetached:E=!1,updatePositionStrategy:L="optimized",onPlaced:S,...T}=e,C=eD(eM,h),[O,P]=r.useState(null),H=(0,eE.e)(t,e=>P(e)),[D,N]=r.useState(null),W=(0,eC.t)(D),j=null!==(d=null==W?void 0:W.width)&&void 0!==d?d:0,M=null!==(p=null==W?void 0:W.height)&&void 0!==p?p:0,F="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},V=Array.isArray(b)?b:[b],z=V.length>0,_={padding:F,boundary:V.filter(eY),altBoundary:z},{refs:B,floatingStyles:$,placement:I,isPositioned:X,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:u,open:c}=e,[s,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);eu(p,i)||h(i);let[m,g]=r.useState(null),[y,v]=r.useState(null),w=r.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=r.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),b=l||m,A=a||y,R=r.useRef(null),E=r.useRef(null),L=r.useRef(s),S=null!=u,T=ed(u),C=ed(o),O=ed(c),P=r.useCallback(()=>{if(!R.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),el(R.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};k.current&&!eu(L.current,t)&&(L.current=t,ea.flushSync(()=>{d(t)}))})},[p,t,n,C,O]);ef(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);ef(()=>(k.current=!0,()=>{k.current=!1}),[]),ef(()=>{if(b&&(R.current=b),A&&(E.current=A),b&&A){if(T.current)return T.current(b,A,P);P()}},[b,A,P,T,S]);let H=r.useMemo(()=>({reference:R,floating:E,setReference:w,setFloating:x}),[w,x]),D=r.useMemo(()=>({reference:b,floating:A}),[b,A]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=es(D.floating,s.x),r=es(D.floating,s.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...ec(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,f,D.floating,s.x,s.y]);return r.useMemo(()=>({...s,update:P,refs:H,elements:D,floatingStyles:N}),[s,P,H,D,N])}({strategy:"fixed",placement:m+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&s?function(e,t){let n,r=null,i=k(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g=f(p),y=f(i.clientWidth-(d+h)),v={rootMargin:-g+"px "+-y+"px "+-f(i.clientHeight-(p+m))+"px "+-f(d)+"px",threshold:l(0,o(1,s))||1},w=!0;function x(e){let t=e[0].intersectionRatio;if(t!==s){if(!w)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,v)}r.observe(e)}(!0),a}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let v=d?Q(e):null;return d&&function t(){let r=Q(e);v&&(r.x!==v.x||r.y!==v.y||r.width!==v.width||r.height!==v.height)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===L})},elements:{reference:C.anchor},middleware:[eh({mainAxis:g+M,alignmentAxis:v}),x&&em({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eg():void 0,..._}),x&&ey({..._}),ev({..._,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&ex({element:D,padding:w}),eI({arrowWidth:j,arrowHeight:M}),E&&ew({strategy:"referenceHidden",..._})]}),[J,K]=eX(I),U=(0,eS.W)(S);(0,eT.b)(()=>{X&&(null==U||U())},[X,U]);let Z=null===(n=G.arrow)||void 0===n?void 0:n.x,ee=null===(i=G.arrow)||void 0===i?void 0:i.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,er]=r.useState();return(0,eT.b)(()=>{O&&er(window.getComputedStyle(O).zIndex)},[O]),(0,eA.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:X?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(u=G.transformOrigin)||void 0===u?void 0:u.x,null===(c=G.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=G.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eA.jsx)(eF,{scope:h,placedSide:J,onArrowChange:N,arrowX:Z,arrowY:ee,shouldHideArrow:et,children:(0,eA.jsx)(eb.WV.div,{"data-side":J,"data-align":K,...T,ref:H,style:{...T.style,animation:X?void 0:"none"}})})})});ez.displayName=eM;var e_="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},e$=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eV(e_,n),o=eB[i.placedSide];return(0,eA.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eA.jsx)(eR,{...r,ref:t,style:{...r.style,display:"block"}})})});function eY(e){return null!==e}e$.displayName=e_;var eI=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eX(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+s/2,y=(null!==(l=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,v="",w="";return"bottom"===p?(v=c?m:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(v=c?m:"".concat(g,"px"),w="".concat(f.floating.height+d,"px")):"right"===p?(v="".concat(-d,"px"),w=c?m:"".concat(y,"px")):"left"===p&&(v="".concat(f.floating.width+d,"px"),w=c?m:"".concat(y,"px")),{data:{x:v,y:w}}}});function eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eq=eN,eG=ej,eJ=ez,eK=e$},73452:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(64149),i=n(61013);function o(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4491-e84291153712f394.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4491-e84291153712f394.js new file mode 100644 index 0000000..587f9da --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/4491-e84291153712f394.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4491],{14491:function(e,n,t){t.d(n,{Dx:function(){return et},VY:function(){return en},aV:function(){return ee},dk:function(){return er},fC:function(){return J},h_:function(){return $},jm:function(){return K},p8:function(){return O},x8:function(){return eo},xz:function(){return Q}});var r=t(64149),o=t(64433),i=t(83954),a=t(74873),l=t(89105),u=t(45306),s=t(72832),d=t(96616),c=t(97498),f=t(45485),p=t(79442),m=t(57117),g=t(3748),v=t(32286),N=t(54098),y=t(20881),D="Dialog",[h,O]=(0,a.b)(D),[R,M]=h(D),b=e=>{let{__scopeDialog:n,children:t,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(R,{scope:n,triggerRef:d,contentRef:c,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:t})};b.displayName=D;var w="DialogTrigger",x=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,a=M(w,t),l=(0,i.e)(n,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":q(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});x.displayName=w;var I="DialogPortal",[j,E]=h(I,{forceMount:void 0}),C=e=>{let{__scopeDialog:n,forceMount:t,children:o,container:i}=e,a=M(I,n);return(0,y.jsx)(j,{scope:n,forceMount:t,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:t||a.open,children:(0,y.jsx)(c.h,{asChild:!0,container:i,children:e})}))})};C.displayName=I;var _="DialogOverlay",T=r.forwardRef((e,n)=>{let t=E(_,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=M(_,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(A,{...o,ref:n})}):null});T.displayName=_;var A=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(_,t);return(0,y.jsx)(g.Z,{as:N.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":q(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",P=r.forwardRef((e,n)=>{let t=E(F,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=M(F,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||i.open,children:i.modal?(0,y.jsx)(W,{...o,ref:n}):(0,y.jsx)(k,{...o,ref:n})})});P.displayName=F;var W=r.forwardRef((e,n)=>{let t=M(F,e.__scopeDialog),a=r.useRef(null),l=(0,i.e)(n,t.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(U,{...e,ref:l,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,n)=>{let t=M(F,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(U,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(i.current=!0));let l=n.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(l))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&i.current&&n.preventDefault()}})}),U=r.forwardRef((e,n)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,c=M(F,t),f=r.useRef(null),p=(0,i.e)(n,f);return(0,m.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(s.XB,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...u,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:c.titleId}),(0,y.jsx)(G,{contentRef:f,descriptionId:c.descriptionId})]})]})}),V="DialogTitle",S=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(V,t);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:n})});S.displayName=V;var L="DialogDescription",z=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(L,t);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:n})});z.displayName=L;var B="DialogClose",Z=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,i=M(B,t);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:n,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function q(e){return e?"open":"closed"}Z.displayName=B;var H="DialogTitleWarning",[K,X]=(0,a.k)(H,{contentName:F,titleName:V,docsSlug:"dialog"}),Y=e=>{let{titleId:n}=e,t=X(H),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return r.useEffect(()=>{n&&!document.getElementById(n)&&console.error(o)},[o,n]),null},G=e=>{let{contentRef:n,descriptionId:t}=e,o=X("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,n,t]),null},J=b,Q=x,$=C,ee=T,en=P,et=S,er=z,eo=Z},45485:function(e,n,t){t.d(n,{z:function(){return a}});var r=t(64149),o=t(83954),i=t(61013),a=e=>{var n,t;let a,u;let{present:s,children:d}=e,c=function(e){var n,t;let[o,a]=r.useState(),u=r.useRef({}),s=r.useRef(e),d=r.useRef("none"),[c,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=l(u.current);d.current="mounted"===c?e:"none"},[c]),(0,i.b)(()=>{let n=u.current,t=s.current;if(t!==e){let r=d.current,o=l(n);e?f("MOUNT"):"none"===o||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let n;let t=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(n),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(s),f="function"==typeof d?d({present:c.isPresent}):r.Children.only(d),p=(0,o.e)(c.ref,(a=null===(n=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(t=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof d||c.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/491-71d567345aaa1076.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/491-71d567345aaa1076.js deleted file mode 100644 index 48bc57c..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/491-71d567345aaa1076.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[491],{14491:function(e,n,t){t.d(n,{Dx:function(){return et},VY:function(){return en},aV:function(){return ee},dk:function(){return er},fC:function(){return J},h_:function(){return $},jm:function(){return K},p8:function(){return O},x8:function(){return eo},xz:function(){return Q}});var r=t(64149),o=t(64433),i=t(83954),a=t(74873),l=t(89105),u=t(45306),s=t(72832),d=t(96616),c=t(97498),f=t(45485),p=t(79442),m=t(57117),g=t(3748),v=t(32286),N=t(54098),y=t(20881),D="Dialog",[h,O]=(0,a.b)(D),[R,M]=h(D),b=e=>{let{__scopeDialog:n,children:t,open:o,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,d=r.useRef(null),c=r.useRef(null),[f=!1,p]=(0,u.T)({prop:o,defaultProp:i,onChange:a});return(0,y.jsx)(R,{scope:n,triggerRef:d,contentRef:c,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:s,children:t})};b.displayName=D;var w="DialogTrigger",x=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,a=M(w,t),l=(0,i.e)(n,a.triggerRef);return(0,y.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":q(a.open),...r,ref:l,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});x.displayName=w;var I="DialogPortal",[j,E]=h(I,{forceMount:void 0}),C=e=>{let{__scopeDialog:n,forceMount:t,children:o,container:i}=e,a=M(I,n);return(0,y.jsx)(j,{scope:n,forceMount:t,children:r.Children.map(o,e=>(0,y.jsx)(f.z,{present:t||a.open,children:(0,y.jsx)(c.h,{asChild:!0,container:i,children:e})}))})};C.displayName=I;var _="DialogOverlay",T=r.forwardRef((e,n)=>{let t=E(_,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=M(_,e.__scopeDialog);return i.modal?(0,y.jsx)(f.z,{present:r||i.open,children:(0,y.jsx)(A,{...o,ref:n})}):null});T.displayName=_;var A=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(_,t);return(0,y.jsx)(g.Z,{as:N.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.WV.div,{"data-state":q(o.open),...r,ref:n,style:{pointerEvents:"auto",...r.style}})})}),F="DialogContent",P=r.forwardRef((e,n)=>{let t=E(F,e.__scopeDialog),{forceMount:r=t.forceMount,...o}=e,i=M(F,e.__scopeDialog);return(0,y.jsx)(f.z,{present:r||i.open,children:i.modal?(0,y.jsx)(W,{...o,ref:n}):(0,y.jsx)(k,{...o,ref:n})})});P.displayName=F;var W=r.forwardRef((e,n)=>{let t=M(F,e.__scopeDialog),a=r.useRef(null),l=(0,i.e)(n,t.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,v.Ry)(e)},[]),(0,y.jsx)(U,{...e,ref:l,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var n;e.preventDefault(),null===(n=t.triggerRef.current)||void 0===n||n.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let n=e.detail.originalEvent,t=0===n.button&&!0===n.ctrlKey;(2===n.button||t)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),k=r.forwardRef((e,n)=>{let t=M(F,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,y.jsx)(U,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current||null===(a=t.triggerRef.current)||void 0===a||a.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,n),n.defaultPrevented||(o.current=!0,"pointerdown"!==n.detail.originalEvent.type||(i.current=!0));let l=n.target;(null===(a=t.triggerRef.current)||void 0===a?void 0:a.contains(l))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&i.current&&n.preventDefault()}})}),U=r.forwardRef((e,n)=>{let{__scopeDialog:t,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,c=M(F,t),f=r.useRef(null),p=(0,i.e)(n,f);return(0,m.EW)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(d.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:l,children:(0,y.jsx)(s.XB,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":q(c.open),...u,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Y,{titleId:c.titleId}),(0,y.jsx)(G,{contentRef:f,descriptionId:c.descriptionId})]})]})}),V="DialogTitle",S=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(V,t);return(0,y.jsx)(p.WV.h2,{id:o.titleId,...r,ref:n})});S.displayName=V;var L="DialogDescription",z=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,o=M(L,t);return(0,y.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:n})});z.displayName=L;var B="DialogClose",Z=r.forwardRef((e,n)=>{let{__scopeDialog:t,...r}=e,i=M(B,t);return(0,y.jsx)(p.WV.button,{type:"button",...r,ref:n,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function q(e){return e?"open":"closed"}Z.displayName=B;var H="DialogTitleWarning",[K,X]=(0,a.k)(H,{contentName:F,titleName:V,docsSlug:"dialog"}),Y=e=>{let{titleId:n}=e,t=X(H),o="`".concat(t.contentName,"` requires a `").concat(t.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(t.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(t.docsSlug);return r.useEffect(()=>{n&&!document.getElementById(n)&&console.error(o)},[o,n]),null},G=e=>{let{contentRef:n,descriptionId:t}=e,o=X("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=n.current)||void 0===e?void 0:e.getAttribute("aria-describedby");t&&r&&!document.getElementById(t)&&console.warn(i)},[i,n,t]),null},J=b,Q=x,$=C,ee=T,en=P,et=S,er=z,eo=Z},45485:function(e,n,t){t.d(n,{z:function(){return a}});var r=t(64149),o=t(83954),i=t(61013),a=e=>{var n,t;let a,u;let{present:s,children:d}=e,c=function(e){var n,t;let[o,a]=r.useState(),u=r.useRef({}),s=r.useRef(e),d=r.useRef("none"),[c,f]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=l(u.current);d.current="mounted"===c?e:"none"},[c]),(0,i.b)(()=>{let n=u.current,t=s.current;if(t!==e){let r=d.current,o=l(n);e?f("MOUNT"):"none"===o||(null==n?void 0:n.display)==="none"?f("UNMOUNT"):t&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let n;let t=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(d.current=l(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{t.clearTimeout(n),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(s),f="function"==typeof d?d({present:c.isPresent}):r.Children.only(d),p=(0,o.e)(c.ref,(a=null===(n=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(t=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof d||c.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/509-5c1794098df9e8cb.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/509-5c1794098df9e8cb.js deleted file mode 100644 index aff7951..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/509-5c1794098df9e8cb.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[509],{26509:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(26196),o=n.n(r)},50712:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(12168);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ri?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let P=i.default.forwardRef(function(e,t){let n,r;let{href:l,as:y,children:P,prefetch:v=null,passHref:R,replace:O,shallow:j,scroll:E,locale:S,onClick:w,onMouseEnter:x,onTouchStart:M,legacyBehavior:N=!1,...C}=e;n=P,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=i.default.useContext(f.RouterContext),I=i.default.useContext(d.AppRouterContext),T=null!=k?k:I,L=!k,U=!1!==v,A=null===v?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:W,as:D}=i.default.useMemo(()=>{if(!k){let e=_(l);return{href:e,as:y?_(y):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:y?(0,a.resolveHref)(k,y):t||e}},[k,l,y]),z=i.default.useRef(W),K=i.default.useRef(D);N&&(r=i.default.Children.only(n));let q=N?r&&"object"==typeof r&&r.ref:t,[F,$,B]=(0,p.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(K.current!==D||z.current!==W)&&(B(),K.current=D,z.current=W),F(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[D,q,W,B,F]);i.default.useEffect(()=>{T&&$&&U&&b(T,W,D,{locale:S},{kind:A},L)},[D,W,$,S,U,null==k?void 0:k.locale,T,L,A]);let Q={ref:Y,onClick(e){N||"function"!=typeof w||w(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,o,a,l,s,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,u.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(d):d()}(e,T,W,D,O,j,E,S,L)},onMouseEnter(e){N||"function"!=typeof x||x(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)},onTouchStart:function(e){N||"function"!=typeof M||M(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)}};if((0,s.isAbsoluteUrl)(D))Q.href=D;else if(!N||R||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(D,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);Q.href=t||(0,m.addBasePath)((0,c.addLocale)(D,e,null==k?void 0:k.defaultLocale))}return N?i.default.cloneElement(r,Q):(0,o.jsx)("a",{...C,...Q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57500:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(7419),o=n(78120),i=n(46667),a=n(53331),u=n(12168),l=n(12570),s=n(22495),c=n(41198);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,u)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55232:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(64149),o=n(57500),i="function"==typeof IntersectionObserver,a=new Map,u=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,s=l||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=u.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},u.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=u.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&u.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51156:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},24072:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(88806)._(n(64149)).default.createContext(null)},78120:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return a}});let r=n(59994)._(n(7419)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+i+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},22495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(27202),o=n(97360)},41198:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(81371),o=n(55970);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),u=a.groups,l=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=u[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},97360:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(51693),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},12570:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(53331),o=n(15282);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},46667:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},7419:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},81371:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(53331);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},55970:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l},parseParameter:function(){return a}});let r=n(51693),o=n(51156),i=n(15466);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},u=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:l}=a(i[1]);return n[e]={pos:u++,repeat:l,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:u++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=a(r),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),u?i[f]=""+u+l:i[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return s({getSafeRouteKey:u,interceptionMarker:n,segment:i[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return i?s({getSafeRouteKey:u,segment:i[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let n=c(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},27202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},53331:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function u(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/529-02225f4a139b669c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/529-02225f4a139b669c.js deleted file mode 100644 index 2bb7167..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/529-02225f4a139b669c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[529],{6120:function(e,t,r){var n=r(20881),o=r(78580),i=r(35935);t.Z=()=>(0,n.jsx)(o.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,n.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,n.jsx)(i.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){r.d(t,{d:function(){return a},z:function(){return l}});var n=r(20881),o=r(64149),i=r(54098),s=r(20116),u=r(90270);let a=(0,s.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=o.forwardRef((e,t)=>{let{className:r,variant:o,size:s,asChild:l=!1,...c}=e,d=l?i.g7:"button";return(0,n.jsx)(d,{className:(0,u.cn)(a({variant:o,size:s,className:r})),ref:t,...c})});l.displayName="Button"},94920:function(e,t,r){r.d(t,{Ol:function(){return u},SZ:function(){return l},Zb:function(){return s},aY:function(){return c},eW:function(){return d},ll:function(){return a}});var n=r(20881),o=r(64149),i=r(90270);let s=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...o})});s.displayName="Card";let u=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...o})});u.displayName="CardHeader";let a=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...o})});a.displayName="CardTitle";let l=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...o})});l.displayName="CardDescription";let c=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...o})});c.displayName="CardContent";let d=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...o})});d.displayName="CardFooter"},33335:function(e,t,r){r.d(t,{I:function(){return s}});var n=r(20881),o=r(64149),i=r(90270);let s=o.forwardRef((e,t)=>{let{className:r,type:o,...s}=e;return(0,n.jsx)("input",{type:o,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...s})});s.displayName="Input"},23853:function(e,t,r){r.d(t,{r:function(){return S}});var n=r(20881),o=r(64149),i=r(64433),s=r(83954),u=r(74873),a=r(45306),l=r(32437),c=r(73452),d=r(79442),f="Switch",[p,v]=(0,u.b)(f),[m,b]=p(f),h=o.forwardRef((e,t)=>{let{__scopeSwitch:r,name:u,checked:l,defaultChecked:c,required:f,disabled:p,value:v="on",onCheckedChange:b,form:h,...g}=e,[y,N]=o.useState(null),S=(0,s.e)(t,e=>N(e)),j=o.useRef(!1),k=!y||h||!!y.closest("form"),[T=!1,E]=(0,a.T)({prop:l,defaultProp:c,onChange:b});return(0,n.jsxs)(m,{scope:r,checked:T,disabled:p,children:[(0,n.jsx)(d.WV.button,{type:"button",role:"switch","aria-checked":T,"aria-required":f,"data-state":w(T),"data-disabled":p?"":void 0,disabled:p,value:v,...g,ref:S,onClick:(0,i.M)(e.onClick,e=>{E(e=>!e),k&&(j.current=e.isPropagationStopped(),j.current||e.stopPropagation())})}),k&&(0,n.jsx)(x,{control:y,bubbles:!j.current,name:u,value:v,checked:T,required:f,disabled:p,form:h,style:{transform:"translateX(-100%)"}})]})});h.displayName=f;var g="SwitchThumb",y=o.forwardRef((e,t)=>{let{__scopeSwitch:r,...o}=e,i=b(g,r);return(0,n.jsx)(d.WV.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})});y.displayName=g;var x=e=>{let{control:t,checked:r,bubbles:i=!0,...s}=e,u=o.useRef(null),a=(0,l.D)(r),d=(0,c.t)(t);return o.useEffect(()=>{let e=u.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(a!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[a,r,i]),(0,n.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:u,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var N=r(90270);let S=o.forwardRef((e,t)=>{let{className:r,...o}=e;return(0,n.jsx)(h,{className:(0,N.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...o,ref:t,children:(0,n.jsx)(y,{className:(0,N.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});S.displayName=h.displayName},46646:function(e,t,r){r.d(t,{pm:function(){return f}});var n=r(64149);let o=0,i=new Map,s=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},u=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?s(r):e.toasts.forEach(e=>{s(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},a=[],l={toasts:[]};function c(e){l=u(l,e),a.forEach(e=>{e(l)})}function d(e){let{...t}=e,r=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(l);return n.useEffect(()=>(a.push(t),()=>{let e=a.indexOf(t);e>-1&&a.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){r.d(t,{cn:function(){return i}});var n=r(33958),o=r(61779);function i(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,...i}=e,s=n.useMemo(()=>i,Object.values(i));return(0,o.jsx)(r.Provider,{value:s,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function s(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let o=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(t,i){let s=n.createContext(i),u=r.length;r=[...r,i];let a=t=>{let{scope:r,children:i,...a}=t,l=r?.[e]?.[u]||s,c=n.useMemo(()=>a,Object.values(a));return(0,o.jsx)(l.Provider,{value:c,children:i})};return a.displayName=t+"Provider",[a,function(r,o){let a=o?.[e]?.[u]||s,l=n.useContext(a);if(l)return l;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:r,scopeName:n})=>{let o=r(e)[`__scope${n}`];return{...t,...o}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}(i,...t)]}},79442:function(e,t,r){r.d(t,{WV:function(){return u},jH:function(){return a}});var n=r(64149),o=r(50149),i=r(54098),s=r(20881),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...o}=e,u=n?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(u,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function a(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},2441:function(e,t,r){r.d(t,{W:function(){return o}});var n=r(64149);function o(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},45306:function(e,t,r){r.d(t,{T:function(){return i}});var n=r(64149),o=r(2441);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,s]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,s=n.useRef(i),u=(0,o.W)(t);return n.useEffect(()=>{s.current!==i&&(u(i),s.current=i)},[i,s,u]),r}({defaultProp:t,onChange:r}),u=void 0!==e,a=u?e:i,l=(0,o.W)(r);return[a,n.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&l(r)}else s(t)},[u,e,s,l])]}},61013:function(e,t,r){r.d(t,{b:function(){return o}});var n=r(64149),o=globalThis?.document?n.useLayoutEffect:()=>{}},32437:function(e,t,r){r.d(t,{D:function(){return o}});var n=r(64149);function o(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){r.d(t,{t:function(){return i}});var n=r(64149),o=r(61013);function i(e){let[t,r]=n.useState(void 0);return(0,o.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,o=t.blockSize}else n=e.offsetWidth,o=e.offsetHeight;r({width:n,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},20116:function(e,t,r){r.d(t,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,r=0,n="";rr=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:u}=t,a=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],o=null==u?void 0:u[e];if(null===t)return null;let i=n(t)||n(o);return s[e][i]}),l=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,a,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...o}=t;return Object.entries(o).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...u,...l}[t]):({...u,...l})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5330-e647d902870ffa0d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5330-e647d902870ffa0d.js new file mode 100644 index 0000000..9b9379d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/5330-e647d902870ffa0d.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5330],{59113:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},5483:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)}),"canParse"in URL||(URL.canParse=function(e,t){try{return new URL(e,t),!0}catch(e){return!1}})},61221:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(29068),o=n(12168);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,""))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29156:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.15",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(81013);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40196:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return x}});let u=n(88806),l=n(59994),a=n(20881);n(5483);let i=u._(n(55826)),c=l._(n(64149)),s=n(53150),f=n(61373),d=u._(n(96300)),p=n(79775),h=n(65590),y=n(65470);n(70902);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},90039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(98837),(0,n(29156).appBootstrap)(()=>{let{hydrate:e}=n(40196);n(81013),n(16102),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98837:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(59113);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81013:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(51223),a=n(69024),i=n(27549),c=n(84985),s=n(40500),f=n(41626),d=n(34165),p=n(85202),h=n(61221),y=n(65055),_=n(27456),v=n(34671),b=n(12896),g=n(18310),m=n(33854),R=n(15282),P=n(84478),j="undefined"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,urlParts:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,urlParts:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,U,k]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}M(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58951:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(90351),o=n(5733);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},78073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(20881),o=n(81802);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(88806),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(65590),i=n(5733),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24278:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(35479),o=n(58070);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=n(88806),o=n(59994),u=n(20881),l=o._(n(64149)),a=r._(n(50149)),i=n(51223),c=n(70326),s=n(12896),f=n(41626),d=n(17127),p=n(66270),h=n(27456),y=n(84262),_=n(80597),v=n(50416),b=n(99374),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b}=e,g=(0,l.useContext)(i.LayoutRouterContext);if(!g)throw Error("invariant expected layout router to be mounted");let{childNodes:m,tree:R,url:S,loading:E}=g,w=m.get(t);w||(w=new Map,m.set(t,w));let T=R[1][t][0],M=(0,_.getSegmentValue)(T),x=[T];return(0,u.jsx)(u.Fragment,{children:x.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!E,loading:null==E?void 0:E[0],loadingStyles:null==E?void 0:E[1],loadingScripts:null==E?void 0:E[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:S,tree:R,childNodes:w,segmentPath:n,cacheKey:g,isActive:M===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},17127:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(37828),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39886:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(64149),o=n(51223),u=n(84985),l=n(80597),a=n(84478),i=n(7279),c=n(60773);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(58951);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(58070),o=n(35479);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84262:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(35479);n(12303);let i=n(51223);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},35479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(78710),o=n(19052);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27456:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(39886),a=n(58070);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6280:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58070:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(7870),l=n(30138),a=n(6280),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(59994),o=n(20881),u=r._(n(64149)),l=n(51223);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(72453);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(73254),o=n(53764);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69078:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(84478),o=n(17127),u=n(42578);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79235:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(51693),o=n(84478),u=n(17127),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27549:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34165:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(27549),o=n(73254),u=n(79235),l=n(50306),a=n(69024),i=n(42578);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,urlParts:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=f.join("/"),v=!p,b={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:v?new Map:d,lazyDataResolved:!1,loading:s[3]},g=p?(0,r.createHrefFromUrl)(p):_;(0,i.addRefreshMarkerToActiveParallelSegments)(c,g);let m=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(b,void 0,c,s,h);let R={buildId:n,tree:c,cache:b,prefetchCache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:g,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:R.tree,prefetchCache:R.prefetchCache,nextUrl:R.nextUrl})}return R}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(84478);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70326:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(18310),o=n(81013),u=n(79775),l=n(69024),a=n(22132),{createFromFetch:i}=n(53150);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53764:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(12928),o=n(73254),u=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73254:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(50416),o=n(69024);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53464:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(79235);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},94586:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(91615);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(50416);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12928:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(50416);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10939:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(84478),o=n(17127),u=n(50416);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50306:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(27549),o=n(70326),u=n(69024),l=n(29565);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,O);if(document.getElementById("__next-page-redirect"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u,g=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29565:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(18310),o=n(16076),u=n(50306),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51780:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(70326),o=n(27549),u=n(69078),l=n(10939),a=n(91615),i=n(53464),c=n(73254),s=n(81013),f=n(94586),d=n(99374),p=n(42578);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99854:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(27549),o=n(79235);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(34626),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43674:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(79775),o=n(18310),u=n(61221),l=n(27549),a=n(91615),i=n(69078),c=n(10939),s=n(53464),f=n(73254),d=n(81013),p=n(99374),h=n(94586),y=n(42578),{createFromFetch:_,encodeReply:v}=n(53150);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(27549),o=n(69078),u=n(10939),l=n(91615),a=n(21239),i=n(53464),c=n(81013),s=n(94586);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42578:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(21239),o=n(70326),u=n(84478);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69024:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},62704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(69024),o=n(91615),u=n(36463),l=n(99854),a=n(51780),i=n(29565),c=n(50449),s=n(43674),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},89315:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(17127);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81802:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(5733),o=n(24703),u=n(98250);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5733:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(8136);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},63107:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12896:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40500:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(59994)._(n(64149)),o=n(69024),u=n(65470);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15282:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(52097);function o(e){return(0,r.pathHasPrefix)(e,"")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12168:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(15466),o=n(52363),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return/\.[^/]+\/?$/.test(t)?""+(0,r.removeTrailingSlash)(t)+n+u:t.endsWith("/")?""+t+n+u:t+"/"+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96300:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(90351);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},33854:function(e,t,n){"use strict";function r(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return r}}),n(15282),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80227:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if("function"==typeof m)l=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},29553:function(e,t,n){"use strict";e.exports=n(80227)},98651:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return r},isFullStringUrl:function(){return o},parseUrl:function(){return u}});let n="http://n";function r(e){return new URL(e,n).pathname}function o(e){return/https?:\/\//.test(e)}function u(e){let t;try{t=new URL(e,n)}catch{}return t}},24703:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(64149))&&r.__esModule?r:{default:r},u=n(24278),l=n(63107),a=n(98651),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function v(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},37828:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(51693);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},70902:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},51693:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(66322),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},98250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},51223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(88806)._(n(64149)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},22132:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},61373:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(88806)._(n(64149)).default.createContext({})},84985:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(64149),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},90351:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},88584:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},65470:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(59994),o=n(69024),u=n(62704),l=r._(n(64149)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},29068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(52363);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},66322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(88584),o=n(84478);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},66270:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},85202:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},52363:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},52097:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(52363);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},15466:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},84478:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},60773:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(59994)._(n(64149)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},12303:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},96223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},72453:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8136:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(8164).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55826:function(e,t,n){"use strict";var r=n(50149);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},50149:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(23727)},87224:function(e,t,n){"use strict";var r=n(50149),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":E(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var O=d.byteOffset+p;if(-1{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let l=r.createContext(o),a=n.length;function f(t){let{scope:n,children:o,...f}=t,u=n?.[e][a]||l,c=r.useMemo(()=>f,Object.values(f));return(0,i.jsx)(u.Provider,{value:c,children:o})}return n=[...n,o],f.displayName=t+"Provider",[f,function(n,i){let f=i?.[e][a]||l,u=r.useContext(f);if(u)return u;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},95420:function(e,t,n){n.d(t,{ee:function(){return eG},Eh:function(){return eK},VY:function(){return eJ},fC:function(){return eq},D7:function(){return ek}});var r=n(64149);let i=["top","right","bottom","left"],o=Math.min,l=Math.max,a=Math.round,f=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function g(e){return"y"===e?"height":"width"}function y(e){return["top","bottom"].includes(p(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>s[e])}function w(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function x(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let r,{reference:i,floating:o}=e,l=y(t),a=m(y(t)),f=g(a),u=p(t),c="y"===l,s=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,v=i[f]/2-o[f]/2;switch(u){case"top":r={x:s,y:i.y-o.height};break;case"bottom":r={x:s,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}let R=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,a=o.filter(Boolean),f=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:s}=A(u,r,f),d=r,p={},h=0;for(let n=0;ne[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=p(n),a=h(n),f="y"===y(n),u=["left","top"].includes(l)?-1:1,c=o&&f?-1:1,s=d(t,e),{mainAxis:m,crossAxis:g,alignmentAxis:v}="number"==typeof s?{mainAxis:s,crossAxis:0,alignmentAxis:null}:{mainAxis:s.mainAxis||0,crossAxis:s.crossAxis||0,alignmentAxis:s.alignmentAxis};return a&&"number"==typeof v&&(g="end"===a?-1*v:v),f?{x:g*c,y:m*u}:{x:m*u,y:g*c}}function C(){return"undefined"!=typeof window}function O(e){return H(e)?(e.nodeName||"").toLowerCase():"#document"}function P(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function k(e){var t;return null==(t=(H(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function H(e){return!!C()&&(e instanceof Node||e instanceof P(e).Node)}function D(e){return!!C()&&(e instanceof Element||e instanceof P(e).Element)}function N(e){return!!C()&&(e instanceof HTMLElement||e instanceof P(e).HTMLElement)}function W(e){return!!C()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof P(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=_(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function M(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function F(e){let t=V(),n=D(e)?_(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function V(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function z(e){return["html","body","#document"].includes(O(e))}function _(e){return P(e).getComputedStyle(e)}function B(e){return D(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $(e){if("html"===O(e))return e;let t=e.assignedSlot||e.parentNode||W(e)&&e.host||k(e);return W(t)?t.host:t}function Y(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=$(t);return z(n)?t.ownerDocument?t.ownerDocument.body:t.body:N(n)&&j(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=P(i);if(o){let e=I(l);return t.concat(l,l.visualViewport||[],j(i)?i:[],e&&n?Y(e):[])}return t.concat(i,Y(i,[],n))}function I(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function X(e){let t=_(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=N(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,f=a(n)!==o||a(r)!==l;return f&&(n=o,r=l),{width:n,height:r,$:f}}function q(e){return D(e)?e:e.contextElement}function G(e){let t=q(e);if(!N(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=X(t),l=(o?a(n.width):n.width)/r,f=(o?a(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),f&&Number.isFinite(f)||(f=1),{x:l,y:f}}let J=u(0);function K(e){let t=P(e);return V()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:J}function Q(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=q(e),a=u(1);t&&(r?D(r)&&(a=G(r)):a=G(e));let f=(void 0===(i=n)&&(i=!1),r&&(!i||r===P(l))&&i)?K(l):u(0),c=(o.left+f.x)/a.x,s=(o.top+f.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(l){let e=P(l),t=r&&D(r)?P(r):r,n=e,i=I(n);for(;i&&r&&t!==n;){let e=G(i),t=i.getBoundingClientRect(),r=_(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,p*=e.y,c+=o,s+=l,i=I(n=P(i))}}return b({width:d,height:p,x:c,y:s})}function U(e,t){let n=B(e).scrollLeft;return t?t.left+n:Q(k(e)).left+n}function Z(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=P(e),r=k(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,a=0,f=0;if(i){o=i.width,l=i.height;let e=V();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:a,y:f}}(e,n);else if("document"===t)r=function(e){let t=k(e),n=B(e),r=e.ownerDocument.body,i=l(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=l(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+U(e),f=-n.scrollTop;return"rtl"===_(r).direction&&(a+=l(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:f}}(k(e));else if(D(t))r=function(e,t){let n=Q(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=N(e)?G(e):u(1),l=e.clientWidth*o.x;return{width:l,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=K(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return b(r)}function ee(e){return"static"===_(e).position}function et(e,t){if(!N(e)||"fixed"===_(e).position)return null;if(t)return t(e);let n=e.offsetParent;return k(e)===n&&(n=n.ownerDocument.body),n}function en(e,t){let n=P(e);if(M(e))return n;if(!N(e)){let t=$(e);for(;t&&!z(t);){if(D(t)&&!ee(t))return t;t=$(t)}return n}let r=et(e,t);for(;r&&["table","td","th"].includes(O(r))&&ee(r);)r=et(r,t);return r&&z(r)&&ee(r)&&!F(r)?n:r||function(e){let t=$(e);for(;N(t)&&!z(t);){if(F(t))return t;if(M(t))break;t=$(t)}return null}(e)||n}let er=async function(e){let t=this.getOffsetParent||en,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=N(t),i=k(t),o="fixed"===n,l=Q(e,!0,o,t),a={scrollLeft:0,scrollTop:0},f=u(0);if(r||!r&&!o){if(("body"!==O(t)||j(i))&&(a=B(t)),r){let e=Q(t,!0,o,t);f.x=e.x+t.clientLeft,f.y=e.y+t.clientTop}else i&&(f.x=U(i))}let c=0,s=0;if(i&&!r&&!o){let e=i.getBoundingClientRect();s=e.top+a.scrollTop,c=e.left+a.scrollLeft-U(i,e)}return{x:l.left+a.scrollLeft-f.x-c,y:l.top+a.scrollTop-f.y-s,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ei={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=k(r),a=!!t&&M(t.floating);if(r===l||a&&o)return n;let f={scrollLeft:0,scrollTop:0},c=u(1),s=u(0),d=N(r);if((d||!d&&!o)&&(("body"!==O(r)||j(l))&&(f=B(r)),N(r))){let e=Q(r);c=G(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-f.scrollLeft*c.x+s.x,y:n.y*c.y-f.scrollTop*c.y+s.y}},getDocumentElement:k,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[..."clippingAncestors"===n?M(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=Y(e,[],!1).filter(e=>D(e)&&"body"!==O(e)),i=null,o="fixed"===_(e).position,l=o?$(e):e;for(;D(l)&&!z(l);){let t=_(l),n=F(l);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||j(l)&&!n&&function e(t,n){let r=$(t);return!(r===n||!D(r)||z(r))&&("fixed"===_(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):i=t,l=$(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],f=a[0],u=a.reduce((e,n)=>{let r=Z(t,n,i);return e.top=l(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=l(r.left,e.left),e},Z(t,f,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:en,getElementRects:er,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=X(e);return{width:t,height:n}},getScale:G,isElement:D,isRTL:function(e){return"rtl"===_(e).direction}},eo=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:f,elements:u,middlewareData:c}=t,{element:s,padding:p=0}=d(e,t)||{};if(null==s)return{};let v=x(p),w={x:n,y:r},b=m(y(i)),A=g(b),R=await f.getDimensions(s),E="y"===b,L=E?"clientHeight":"clientWidth",S=a.reference[A]+a.reference[b]-w[b]-a.floating[A],T=w[b]-a.reference[b],C=await (null==f.getOffsetParent?void 0:f.getOffsetParent(s)),O=C?C[L]:0;O&&await (null==f.isElement?void 0:f.isElement(C))||(O=u.floating[L]||a.floating[A]);let P=O/2-R[A]/2-1,k=o(v[E?"top":"left"],P),H=o(v[E?"bottom":"right"],P),D=O-R[A]-H,N=O/2-R[A]/2+(S/2-T/2),W=l(k,o(N,D)),j=!c.arrow&&null!=h(i)&&N!==W&&a.reference[A]/2-(N{let r=new Map,i={platform:ei,...n},o={...i.platform,_c:r};return R(e,t,{...i,platform:o})};var ea=n(50149),ef="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eu(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eu(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eu(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ec(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function es(e,t){let n=ec(e);return Math.round(t*n)/n}function ed(e){let t=r.useRef(e);return ef(()=>{t.current=e}),t}let ep=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eo({element:n.current,padding:r}).fn(t):{}:n?eo({element:n,padding:r}).fn(t):{}}}),eh=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:l,middlewareData:a}=e,f=await T(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:l}}}}),options:[e,t]}},em=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:f=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(n,e),s={x:t,y:r},h=await E(e,c),g=y(p(i)),v=m(g),w=s[v],x=s[g];if(a){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=w+h[e],r=w-h[t];w=l(n,o(w,r))}if(f){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=x+h[e],r=x-h[t];x=l(n,o(x,r))}let b=u.fn({...e,[v]:w,[g]:x});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[v]:a,[g]:f}}}}}),options:[e,t]}},eg=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:o,middlewareData:l}=e,{offset:a=0,mainAxis:f=!0,crossAxis:u=!0}=d(n,e),c={x:t,y:r},s=y(i),h=m(s),g=c[h],v=c[s],w=d(a,e),x="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,n=o.reference[h]+o.reference[e]-x.mainAxis;gn&&(g=n)}if(u){var b,A;let e="y"===h?"width":"height",t=["top","left"].includes(p(i)),n=o.reference[s]-o.floating[e]+(t&&(null==(b=l.offset)?void 0:b[s])||0)+(t?0:x.crossAxis),r=o.reference[s]+o.reference[e]+(t?0:(null==(A=l.offset)?void 0:A[s])||0)-(t?x.crossAxis:0);vr&&(v=r)}return{[h]:g,[s]:v}}}),options:[e,t]}},ey=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,l;let{placement:a,middlewareData:f,rects:u,initialPlacement:c,platform:s,elements:x}=e,{mainAxis:b=!0,crossAxis:A=!0,fallbackPlacements:R,fallbackStrategy:L="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...C}=d(n,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let O=p(a),P=y(c),k=p(c)===c,H=await (null==s.isRTL?void 0:s.isRTL(x.floating)),D=R||(k||!T?[w(c)]:function(e){let t=w(e);return[v(e),t,v(t)]}(c)),N="none"!==S;!R&&N&&D.push(...function(e,t,n,r){let i=h(e),o=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(p(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(v)))),o}(c,T,S,H));let W=[c,...D],j=await E(e,C),M=[],F=(null==(r=f.flip)?void 0:r.overflows)||[];if(b&&M.push(j[O]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=m(y(e)),o=g(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=w(l)),[l,w(l)]}(a,u,H);M.push(j[e[0]],j[e[1]])}if(F=[...F,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=f.flip)?void 0:i.index)||0)+1,t=W[e];if(t)return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(o=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(L){case"bestFit":{let e=null==(l=F.filter(e=>{if(N){let t=y(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},ev=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,a;let{placement:f,rects:u,platform:c,elements:s}=e,{apply:m=()=>{},...g}=d(n,e),v=await E(e,g),w=p(f),x=h(f),b="y"===y(f),{width:A,height:R}=u.floating;"top"===w||"bottom"===w?(i=w,a=x===(await (null==c.isRTL?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(a=w,i="end"===x?"top":"bottom");let L=R-v.top-v.bottom,S=A-v.left-v.right,T=o(R-v[i],L),C=o(A-v[a],S),O=!e.middlewareData.shift,P=T,k=C;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=L),O&&!x){let e=l(v.left,0),t=l(v.right,0),n=l(v.top,0),r=l(v.bottom,0);b?k=A-2*(0!==e||0!==t?e+t:l(v.left,v.right)):P=R-2*(0!==n||0!==r?n+r:l(v.top,v.bottom))}await m({...e,availableWidth:k,availableHeight:P});let H=await c.getDimensions(s.floating);return A!==H.width||R!==H.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},ew=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=d(n,e);switch(r){case"referenceHidden":{let n=L(await E(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:S(n)}}}case"escaped":{let n=L(await E(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:S(n)}}}default:return{}}}}),options:[e,t]}},ex=(e,t)=>({...ep(e),options:[e,t]});var eb=n(79442),eA=n(20881),eR=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,eA.jsx)(eb.WV.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eA.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eR.displayName="Arrow";var eE=n(83954),eL=n(245),eS=n(2441),eT=n(61013),eC=n(73452),eO="Popper",[eP,ek]=(0,eL.b)(eO),[eH,eD]=eP(eO),eN=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,eA.jsx)(eH,{scope:t,anchor:i,onAnchorChange:o,children:n})};eN.displayName=eO;var eW="PopperAnchor",ej=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...o}=e,l=eD(eW,n),a=r.useRef(null),f=(0,eE.e)(t,a);return r.useEffect(()=>{l.onAnchorChange((null==i?void 0:i.current)||a.current)}),i?null:(0,eA.jsx)(eb.WV.div,{...o,ref:f})});ej.displayName=eW;var eM="PopperContent",[eF,eV]=eP(eM),ez=r.forwardRef((e,t)=>{var n,i,a,u,c,s,d,p;let{__scopePopper:h,side:m="bottom",sideOffset:g=0,align:y="center",alignOffset:v=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:b=[],collisionPadding:A=0,sticky:R="partial",hideWhenDetached:E=!1,updatePositionStrategy:L="optimized",onPlaced:S,...T}=e,C=eD(eM,h),[O,P]=r.useState(null),H=(0,eE.e)(t,e=>P(e)),[D,N]=r.useState(null),W=(0,eC.t)(D),j=null!==(d=null==W?void 0:W.width)&&void 0!==d?d:0,M=null!==(p=null==W?void 0:W.height)&&void 0!==p?p:0,F="number"==typeof A?A:{top:0,right:0,bottom:0,left:0,...A},V=Array.isArray(b)?b:[b],z=V.length>0,_={padding:F,boundary:V.filter(eY),altBoundary:z},{refs:B,floatingStyles:$,placement:I,isPositioned:X,middlewareData:G}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:l,floating:a}={},transform:f=!0,whileElementsMounted:u,open:c}=e,[s,d]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=r.useState(i);eu(p,i)||h(i);let[m,g]=r.useState(null),[y,v]=r.useState(null),w=r.useCallback(e=>{e!==R.current&&(R.current=e,g(e))},[]),x=r.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),b=l||m,A=a||y,R=r.useRef(null),E=r.useRef(null),L=r.useRef(s),S=null!=u,T=ed(u),C=ed(o),O=ed(c),P=r.useCallback(()=>{if(!R.current||!E.current)return;let e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),el(R.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};k.current&&!eu(L.current,t)&&(L.current=t,ea.flushSync(()=>{d(t)}))})},[p,t,n,C,O]);ef(()=>{!1===c&&L.current.isPositioned&&(L.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let k=r.useRef(!1);ef(()=>(k.current=!0,()=>{k.current=!1}),[]),ef(()=>{if(b&&(R.current=b),A&&(E.current=A),b&&A){if(T.current)return T.current(b,A,P);P()}},[b,A,P,T,S]);let H=r.useMemo(()=>({reference:R,floating:E,setReference:w,setFloating:x}),[w,x]),D=r.useMemo(()=>({reference:b,floating:A}),[b,A]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=es(D.floating,s.x),r=es(D.floating,s.y);return f?{...e,transform:"translate("+t+"px, "+r+"px)",...ec(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,f,D.floating,s.x,s.y]);return r.useMemo(()=>({...s,update:P,refs:H,elements:D,floatingStyles:N}),[s,P,H,D,N])}({strategy:"fixed",placement:m+("center"!==y?"-"+y:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n{a&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&s?function(e,t){let n,r=null,i=k(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),a();let{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(c||t(),!h||!m)return;let g=f(p),y=f(i.clientWidth-(d+h)),v={rootMargin:-g+"px "+-y+"px "+-f(i.clientHeight-(p+m))+"px "+-f(d)+"px",threshold:l(0,o(1,s))||1},w=!0;function x(e){let t=e[0].intersectionRatio;if(t!==s){if(!w)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(x,v)}r.observe(e)}(!0),a}(p,n):null,g=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&(y.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!d&&y.observe(p),y.observe(t));let v=d?Q(e):null;return d&&function t(){let r=Q(e);v&&(r.x!==v.x||r.y!==v.y||r.width!==v.width||r.height!==v.height)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{a&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===L})},elements:{reference:C.anchor},middleware:[eh({mainAxis:g+M,alignmentAxis:v}),x&&em({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eg():void 0,..._}),x&&ey({..._}),ev({..._,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:o,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(o,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),D&&ex({element:D,padding:w}),eI({arrowWidth:j,arrowHeight:M}),E&&ew({strategy:"referenceHidden",..._})]}),[J,K]=eX(I),U=(0,eS.W)(S);(0,eT.b)(()=>{X&&(null==U||U())},[X,U]);let Z=null===(n=G.arrow)||void 0===n?void 0:n.x,ee=null===(i=G.arrow)||void 0===i?void 0:i.y,et=(null===(a=G.arrow)||void 0===a?void 0:a.centerOffset)!==0,[en,er]=r.useState();return(0,eT.b)(()=>{O&&er(window.getComputedStyle(O).zIndex)},[O]),(0,eA.jsx)("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:X?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:en,"--radix-popper-transform-origin":[null===(u=G.transformOrigin)||void 0===u?void 0:u.x,null===(c=G.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=G.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eA.jsx)(eF,{scope:h,placedSide:J,onArrowChange:N,arrowX:Z,arrowY:ee,shouldHideArrow:et,children:(0,eA.jsx)(eb.WV.div,{"data-side":J,"data-align":K,...T,ref:H,style:{...T.style,animation:X?void 0:"none"}})})})});ez.displayName=eM;var e_="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},e$=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eV(e_,n),o=eB[i.placedSide];return(0,eA.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eA.jsx)(eR,{...r,ref:t,style:{...r.style,display:"block"}})})});function eY(e){return null!==e}e$.displayName=e_;var eI=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,l;let{placement:a,rects:f,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,s=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[p,h]=eX(a),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(o=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==o?o:0)+s/2,y=(null!==(l=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==l?l:0)+d/2,v="",w="";return"bottom"===p?(v=c?m:"".concat(g,"px"),w="".concat(-d,"px")):"top"===p?(v=c?m:"".concat(g,"px"),w="".concat(f.floating.height+d,"px")):"right"===p?(v="".concat(-d,"px"),w=c?m:"".concat(y,"px")):"left"===p&&(v="".concat(f.floating.width+d,"px"),w=c?m:"".concat(y,"px")),{data:{x:v,y:w}}}});function eX(e){let[t,n="center"]=e.split("-");return[t,n]}var eq=eN,eG=ej,eJ=ez,eK=e$},73452:function(e,t,n){n.d(t,{t:function(){return o}});var r=n(64149),i=n(61013);function o(e){let[t,n]=r.useState(void 0);return(0,i.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/59-baefa124caadc35a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/59-baefa124caadc35a.js deleted file mode 100644 index 64340c2..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/59-baefa124caadc35a.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[59],{83954:function(e,r,o){o.d(r,{F:function(){return n},e:function(){return l}});var t=o(64149);function n(...e){return r=>e.forEach(e=>{"function"==typeof e?e(r):null!=e&&(e.current=r)})}function l(...e){return t.useCallback(n(...e),e)}},54098:function(e,r,o){o.d(r,{A4:function(){return a},g7:function(){return s}});var t=o(64149),n=o(83954),l=o(20881),s=t.forwardRef((e,r)=>{let{children:o,...n}=e,s=t.Children.toArray(o),a=s.find(d);if(a){let e=a.props.children,o=s.map(r=>r!==a?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,l.jsx)(i,{...n,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,o):null})}return(0,l.jsx)(i,{...n,ref:r,children:o})});s.displayName="Slot";var i=t.forwardRef((e,r)=>{let{children:o,...l}=e;if(t.isValidElement(o)){let e,s;let i=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.ref:(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?o.props.ref:o.props.ref||o.ref;return t.cloneElement(o,{...function(e,r){let o={...r};for(let t in r){let n=e[t],l=r[t];/^on[A-Z]/.test(t)?n&&l?o[t]=(...e)=>{l(...e),n(...e)}:n&&(o[t]=n):"style"===t?o[t]={...n,...l}:"className"===t&&(o[t]=[n,l].filter(Boolean).join(" "))}return{...e,...o}}(l,o.props),ref:r?(0,n.F)(r,i):i})}return t.Children.count(o)>1?t.Children.only(null):null});i.displayName="SlotClone";var a=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function d(e){return t.isValidElement(e)&&e.type===a}},33958:function(e,r,o){function t(){for(var e,r,o=0,t="",n=arguments.length;o{let r=i(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:e=>{let o=e.split("-");return""===o[0]&&1!==o.length&&o.shift(),n(o,r)||s(e)},getConflictingClassGroupIds:(e,r)=>{let n=o[e]||[];return r&&t[e]?[...n,...t[e]]:n}}},n=(e,r)=>{if(0===e.length)return r.classGroupId;let o=e[0],t=r.nextPart.get(o),l=t?n(e.slice(1),t):void 0;if(l)return l;if(0===r.validators.length)return;let s=e.join("-");return r.validators.find(({validator:e})=>e(s))?.classGroupId},l=/^\[(.+)\]$/,s=e=>{if(l.test(e)){let r=l.exec(e)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},i=e=>{let{theme:r,prefix:o}=e,t={nextPart:new Map,validators:[]};return p(Object.entries(e.classGroups),o).forEach(([e,o])=>{a(o,t,e,r)}),t},a=(e,r,o,t)=>{e.forEach(e=>{if("string"==typeof e){(""===e?r:d(r,e)).classGroupId=o;return}if("function"==typeof e){if(c(e)){a(e(t),r,o,t);return}r.validators.push({validator:e,classGroupId:o});return}Object.entries(e).forEach(([e,n])=>{a(n,d(r,e),o,t)})})},d=(e,r)=>{let o=e;return r.split("-").forEach(e=>{o.nextPart.has(e)||o.nextPart.set(e,{nextPart:new Map,validators:[]}),o=o.nextPart.get(e)}),o},c=e=>e.isThemeGetter,p=(e,r)=>r?e.map(([e,o])=>[e,o.map(e=>"string"==typeof e?r+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,o])=>[r+e,o])):e)]):e,u=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let r=0,o=new Map,t=new Map,n=(n,l)=>{o.set(n,l),++r>e&&(r=0,t=o,o=new Map)};return{get(e){let r=o.get(e);return void 0!==r?r:void 0!==(r=t.get(e))?(n(e,r),r):void 0},set(e,r){o.has(e)?o.set(e,r):n(e,r)}}},b=e=>{let{separator:r,experimentalParseClassName:o}=e,t=1===r.length,n=r[0],l=r.length,s=e=>{let o;let s=[],i=0,a=0;for(let d=0;da?o-a:void 0}};return o?e=>o({className:e,parseClassName:s}):s},f=e=>{if(e.length<=1)return e;let r=[],o=[];return e.forEach(e=>{"["===e[0]?(r.push(...o.sort(),e),o=[]):o.push(e)}),r.push(...o.sort()),r},m=e=>({cache:u(e.cacheSize),parseClassName:b(e),...t(e)}),g=/\s+/,h=(e,r)=>{let{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n}=r,l=[],s=e.trim().split(g),i="";for(let e=s.length-1;e>=0;e-=1){let r=s[e],{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:p}=o(r),u=!!p,b=t(u?c.substring(0,p):c);if(!b){if(!u||!(b=t(c))){i=r+(i.length>0?" "+i:i);continue}u=!1}let m=f(a).join(":"),g=d?m+"!":m,h=g+b;if(l.includes(h))continue;l.push(h);let y=n(b,u);for(let e=0;e0?" "+i:i)}return i};function y(){let e,r,o=0,t="";for(;o{let r;if("string"==typeof e)return e;let o="";for(let t=0;t{let r=r=>r[e]||[];return r.isThemeGetter=!0,r},w=/^\[(?:([a-z-]+):)?(.+)\]$/i,k=/^\d+\/\d+$/,z=new Set(["px","full","screen"]),j=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\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$/,E=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,S=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,N=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>R(e)||z.has(e)||k.test(e),G=e=>Z(e,"length",B),R=e=>!!e&&!Number.isNaN(Number(e)),O=e=>Z(e,"number",R),W=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&R(e.slice(0,-1)),$=e=>w.test(e),I=e=>j.test(e),_=new Set(["length","size","percentage"]),A=e=>Z(e,_,H),V=e=>Z(e,"position",H),F=new Set(["image","url"]),q=e=>Z(e,F,K),D=e=>Z(e,"",J),T=()=>!0,Z=(e,r,o)=>{let t=w.exec(e);return!!t&&(t[1]?"string"==typeof r?t[1]===r:r.has(t[1]):o(t[2]))},B=e=>C.test(e)&&!E.test(e),H=()=>!1,J=e=>S.test(e),K=e=>N.test(e),L=function(e,...r){let o,t,n;let l=function(i){return t=(o=m(r.reduce((e,r)=>r(e),e()))).cache.get,n=o.cache.set,l=s,s(i)};function s(e){let r=t(e);if(r)return r;let l=h(e,o);return n(e,l),l}return function(){return l(y.apply(null,arguments))}}(()=>{let e=v("colors"),r=v("spacing"),o=v("blur"),t=v("brightness"),n=v("borderColor"),l=v("borderRadius"),s=v("borderSpacing"),i=v("borderWidth"),a=v("contrast"),d=v("grayscale"),c=v("hueRotate"),p=v("invert"),u=v("gap"),b=v("gradientColorStops"),f=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),h=v("opacity"),y=v("padding"),x=v("saturate"),w=v("scale"),k=v("sepia"),z=v("skew"),j=v("space"),C=v("translate"),E=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto",$,r],_=()=>[$,r],F=()=>["",P,G],Z=()=>["auto",R,$],B=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],H=()=>["solid","dashed","dotted","double","none"],J=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",$],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>[R,$];return{cacheSize:500,separator:":",theme:{colors:[T],spacing:[P,G],blur:["none","",I,$],brightness:U(),borderColor:[e],borderRadius:["none","","full",I,$],borderSpacing:_(),borderWidth:F(),contrast:U(),grayscale:L(),hueRotate:U(),invert:L(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[M,G],inset:N(),margin:N(),opacity:U(),padding:_(),saturate:U(),scale:U(),sepia:L(),skew:U(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",$]}],container:["container"],columns:[{columns:[I]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"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:[...B(),$]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",W,$]}],basis:[{basis:N()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",$]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",W,$]}],"grid-cols":[{"grid-cols":[T]}],"col-start-end":[{col:["auto",{span:["full",W,$]},$]}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":[T]}],"row-start-end":[{row:["auto",{span:[W,$]},$]}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$]}],gap:[{gap:[u]}],"gap-x":[{"gap-x":[u]}],"gap-y":[{"gap-y":[u]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$,r]}],"min-w":[{"min-w":[$,r,"min","max","fit"]}],"max-w":[{"max-w":[$,r,"none","full","min","max","fit","prose",{screen:[I]},I]}],h:[{h:[$,r,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$,r,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$,r,"auto","min","max","fit"]}],"font-size":[{text:["base",I,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O]}],"font-family":[{font:[T]}],"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-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",$]}],"line-clamp":[{"line-clamp":["none",R,O]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",P,$]}],"list-image":[{"list-image":["none",$]}],"list-style-type":[{list:["none","disc","decimal",$]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",P,G]}],"underline-offset":[{"underline-offset":["auto",P,$]}],"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:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$]}],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",$]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...B(),V]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",A]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[b]}],"gradient-via":[{via:[b]}],"gradient-to":[{to:[b]}],rounded:[{rounded:[l]}],"rounded-s":[{"rounded-s":[l]}],"rounded-e":[{"rounded-e":[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-ss":[{"rounded-ss":[l]}],"rounded-se":[{"rounded-se":[l]}],"rounded-ee":[{"rounded-ee":[l]}],"rounded-es":[{"rounded-es":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...H(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:H()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...H()]}],"outline-offset":[{"outline-offset":[P,$]}],"outline-w":[{outline:[P,G]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[P,G]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",I,D]}],"shadow-color":[{shadow:[T]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...J(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":J()}],filter:[{filter:["","none"]}],blur:[{blur:[o]}],brightness:[{brightness:[t]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",I,$]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[x]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[o]}],"backdrop-brightness":[{"backdrop-brightness":[t]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",$]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",$]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",$]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[W,$]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[z]}],"skew-y":[{"skew-y":[z]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",$]}],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",$]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"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",$]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[P,G,O]}],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"]}}})}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6136-23dd132652ecafea.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6136-23dd132652ecafea.js new file mode 100644 index 0000000..6e8c63e --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6136-23dd132652ecafea.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6136],{83027:function(e,t,n){n.d(t,{B:function(){return i}});var r=n(64149),o=n(245),a=n(83954),l=n(54098),u=n(20881);function i(e){let t=e+"CollectionProvider",[n,i]=(0,o.b)(t),[c,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,u.jsx)(c,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),i=(0,a.e)(t,o.collectionRef);return(0,u.jsx)(l.g7,{ref:i,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",h=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,c=r.useRef(null),d=(0,a.e)(t,c),f=s(m,n);return r.useEffect(()=>(f.itemMap.set(c,{ref:c,...i}),()=>void f.itemMap.delete(c))),(0,u.jsx)(l.g7,{[v]:"",ref:d,children:o})});return h.displayName=m,[{Provider:d,Slot:p,ItemSlot:h},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}},86004:function(e,t,n){n.d(t,{gm:function(){return a}});var r=n(64149);n(20881);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},67293:function(e,t,n){n.d(t,{oC:function(){return tf},VY:function(){return ti},ZA:function(){return tc},ck:function(){return td},wU:function(){return tv},__:function(){return ts},Uv:function(){return tu},Ee:function(){return tp},Rk:function(){return tm},fC:function(){return ta},Z0:function(){return th},Tr:function(){return tg},tu:function(){return ty},fF:function(){return tw},xz:function(){return tl}});var r=n(64149),o=n(64433),a=n(83954),l=n(74873),u=n(45306),i=n(79442),c=n(83027),s=n(86004),d=n(72832),f=n(57117),p=n(96616),m=n(89105),v=n(95420),h=n(97498),g=n(45485),w=n(245),y=n(2441),x=n(20881),M="rovingFocusGroup.onEntryFocus",b={bubbles:!1,cancelable:!0},C="RovingFocusGroup",[R,j,D]=(0,c.B)(C),[k,E]=(0,w.b)(C,[D]),[S,T]=k(C),_=r.forwardRef((e,t)=>(0,x.jsx)(R.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(R.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,x.jsx)(I,{...e,ref:t})})}));_.displayName=C;var I=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:l,loop:c=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:m,onEntryFocus:v,preventScrollOnEntryFocus:h=!1,...g}=e,w=r.useRef(null),C=(0,a.e)(t,w),R=(0,s.gm)(d),[D=null,k]=(0,u.T)({prop:f,defaultProp:p,onChange:m}),[E,T]=r.useState(!1),_=(0,y.W)(v),I=j(n),P=r.useRef(!1),[N,F]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(M,_),()=>e.removeEventListener(M,_)},[_]),(0,x.jsx)(S,{scope:n,orientation:l,dir:R,loop:c,currentTabStopId:D,onItemFocus:r.useCallback(e=>k(e),[k]),onItemShiftTab:r.useCallback(()=>T(!0),[]),onFocusableItemAdd:r.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>F(e=>e-1),[]),children:(0,x.jsx)(i.WV.div,{tabIndex:E||0===N?-1:0,"data-orientation":l,...g,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{P.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!P.current;if(e.target===e.currentTarget&&t&&!E){let t=new CustomEvent(M,b);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);O([e.find(e=>e.active),e.find(e=>e.id===D),...e].filter(Boolean).map(e=>e.ref.current),h)}}P.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>T(!1))})})}),P="RovingFocusGroupItem",N=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:l=!1,tabStopId:u,...c}=e,s=(0,m.M)(),d=u||s,f=T(P,n),p=f.currentTabStopId===d,v=j(n),{onFocusableItemAdd:h,onFocusableItemRemove:g}=f;return r.useEffect(()=>{if(a)return h(),()=>g()},[a,h,g]),(0,x.jsx)(R.ItemSlot,{scope:n,id:d,focusable:a,active:l,children:(0,x.jsx)(i.WV.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return F[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=f.loop?(n=o,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>O(o))}})})})});N.displayName=P;var F={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function O(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var A=n(54098),L=n(32286),K=n(3748),V=["Enter"," "],G=["ArrowUp","PageDown","End"],W=["ArrowDown","PageUp","Home",...G],B={ltr:[...V,"ArrowRight"],rtl:[...V,"ArrowLeft"]},U={ltr:["ArrowLeft"],rtl:["ArrowRight"]},z="Menu",[X,H,Y]=(0,c.B)(z),[Z,J]=(0,l.b)(z,[Y,v.D7,E]),q=(0,v.D7)(),Q=E(),[$,ee]=Z(z),[et,en]=Z(z),er=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:l,modal:u=!0}=e,i=q(t),[c,d]=r.useState(null),f=r.useRef(!1),p=(0,y.W)(l),m=(0,s.gm)(a);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,x.jsx)(v.fC,{...i,children:(0,x.jsx)($,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,x.jsx)(et,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:u,children:o})})})};er.displayName=z;var eo=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=q(n);return(0,x.jsx)(v.ee,{...o,...r,ref:t})});eo.displayName="MenuAnchor";var ea="MenuPortal",[el,eu]=Z(ea,{forceMount:void 0}),ei=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=ee(ea,t);return(0,x.jsx)(el,{scope:t,forceMount:n,children:(0,x.jsx)(g.z,{present:n||a.open,children:(0,x.jsx)(h.h,{asChild:!0,container:o,children:r})})})};ei.displayName=ea;var ec="MenuContent",[es,ed]=Z(ec),ef=r.forwardRef((e,t)=>{let n=eu(ec,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=ee(ec,e.__scopeMenu),l=en(ec,e.__scopeMenu);return(0,x.jsx)(X.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(g.z,{present:r||a.open,children:(0,x.jsx)(X.Slot,{scope:e.__scopeMenu,children:l.modal?(0,x.jsx)(ep,{...o,ref:t}):(0,x.jsx)(em,{...o,ref:t})})})})}),ep=r.forwardRef((e,t)=>{let n=ee(ec,e.__scopeMenu),l=r.useRef(null),u=(0,a.e)(t,l);return r.useEffect(()=>{let e=l.current;if(e)return(0,L.Ry)(e)},[]),(0,x.jsx)(ev,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),em=r.forwardRef((e,t)=>{let n=ee(ec,e.__scopeMenu);return(0,x.jsx)(ev,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ev=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:l=!1,trapFocus:u,onOpenAutoFocus:i,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:y,onDismiss:M,disableOutsideScroll:b,...C}=e,R=ee(ec,n),j=en(ec,n),D=q(n),k=Q(n),E=H(n),[S,T]=r.useState(null),I=r.useRef(null),P=(0,a.e)(t,I,R.onContentChange),N=r.useRef(0),F=r.useRef(""),O=r.useRef(0),L=r.useRef(null),V=r.useRef("right"),B=r.useRef(0),U=b?K.Z:r.Fragment,z=b?{as:A.g7,allowPinchZoom:!0}:void 0,X=e=>{var t,n;let r=F.current+e,o=E().filter(e=>!e.disabled),a=document.activeElement,l=null===(t=o.find(e=>e.ref.current===a))||void 0===t?void 0:t.textValue,u=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let l=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,l),i=null===(n=o.find(e=>e.textValue===u))||void 0===n?void 0:n.ref.current;!function e(t){F.current=t,window.clearTimeout(N.current),""!==t&&(N.current=window.setTimeout(()=>e(""),1e3))}(r),i&&setTimeout(()=>i.focus())};r.useEffect(()=>()=>window.clearTimeout(N.current),[]),(0,f.EW)();let Y=r.useCallback(e=>{var t,n,r;return V.current===(null===(t=L.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=L.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;er!=c>r&&n<(i-l)*(r-u)/(c-u)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,x.jsx)(es,{scope:n,searchRef:F,onItemEnter:r.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),onItemLeave:r.useCallback(e=>{var t;Y(e)||(null===(t=I.current)||void 0===t||t.focus(),T(null))},[Y]),onTriggerLeave:r.useCallback(e=>{Y(e)&&e.preventDefault()},[Y]),pointerGraceTimerRef:O,onPointerGraceIntentChange:r.useCallback(e=>{L.current=e},[]),children:(0,x.jsx)(U,{...z,children:(0,x.jsx)(p.M,{asChild:!0,trapped:u,onMountAutoFocus:(0,o.M)(i,e=>{var t;e.preventDefault(),null===(t=I.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,x.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:w,onInteractOutside:y,onDismiss:M,children:(0,x.jsx)(_,{asChild:!0,...k,dir:j.dir,orientation:"vertical",loop:l,currentTabStopId:S,onCurrentTabStopIdChange:T,onEntryFocus:(0,o.M)(m,e=>{j.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,x.jsx)(v.VY,{role:"menu","aria-orientation":"vertical","data-state":eB(R.open),"data-radix-menu-content":"",dir:j.dir,...D,...C,ref:P,style:{outline:"none",...C.style},onKeyDown:(0,o.M)(C.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&X(e.key));let o=I.current;if(e.target!==o||!W.includes(e.key))return;e.preventDefault();let a=E().filter(e=>!e.disabled).map(e=>e.ref.current);G.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),F.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,eX(e=>{let t=e.target,n=B.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>B.current?"right":"left";V.current=t,B.current=e.clientX}}))})})})})})})});ef.displayName=ec;var eh=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{role:"group",...r,ref:t})});eh.displayName="MenuGroup";var eg=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{...r,ref:t})});eg.displayName="MenuLabel";var ew="MenuItem",ey="menu.itemSelect",ex=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:l,...u}=e,c=r.useRef(null),s=en(ew,e.__scopeMenu),d=ed(ew,e.__scopeMenu),f=(0,a.e)(t,c),p=r.useRef(!1);return(0,x.jsx)(eM,{...u,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(ey,{bubbles:!0,cancelable:!0});e.addEventListener(ey,e=>null==l?void 0:l(e),{once:!0}),(0,i.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&V.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});ex.displayName=ew;var eM=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:l=!1,textValue:u,...c}=e,s=ed(ew,n),d=Q(n),f=r.useRef(null),p=(0,a.e)(t,f),[m,v]=r.useState(!1),[h,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,x.jsx)(X.ItemSlot,{scope:n,disabled:l,textValue:null!=u?u:h,children:(0,x.jsx)(N,{asChild:!0,...d,focusable:!l,children:(0,x.jsx)(i.WV.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...c,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,eX(e=>{l?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eX(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>v(!0)),onBlur:(0,o.M)(e.onBlur,()=>v(!1))})})})}),eb=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...a}=e;return(0,x.jsx)(eT,{scope:e.__scopeMenu,checked:n,children:(0,x.jsx)(ex,{role:"menuitemcheckbox","aria-checked":eU(n)?"mixed":n,...a,ref:t,"data-state":ez(n),onSelect:(0,o.M)(a.onSelect,()=>null==r?void 0:r(!!eU(n)||!n),{checkForDefaultPrevented:!1})})})});eb.displayName="MenuCheckboxItem";var eC="MenuRadioGroup",[eR,ej]=Z(eC,{value:void 0,onValueChange:()=>{}}),eD=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,y.W)(r);return(0,x.jsx)(eR,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,x.jsx)(eh,{...o,ref:t})})});eD.displayName=eC;var ek="MenuRadioItem",eE=r.forwardRef((e,t)=>{let{value:n,...r}=e,a=ej(ek,e.__scopeMenu),l=n===a.value;return(0,x.jsx)(eT,{scope:e.__scopeMenu,checked:l,children:(0,x.jsx)(ex,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":ez(l),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=a.onValueChange)||void 0===e?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});eE.displayName=ek;var eS="MenuItemIndicator",[eT,e_]=Z(eS,{checked:!1}),eI=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=e_(eS,n);return(0,x.jsx)(g.z,{present:r||eU(a.checked)||!0===a.checked,children:(0,x.jsx)(i.WV.span,{...o,ref:t,"data-state":ez(a.checked)})})});eI.displayName=eS;var eP=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,x.jsx)(i.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eP.displayName="MenuSeparator";var eN=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=q(n);return(0,x.jsx)(v.Eh,{...o,...r,ref:t})});eN.displayName="MenuArrow";var eF="MenuSub",[eO,eA]=Z(eF),eL=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,l=ee(eF,t),u=q(t),[i,c]=r.useState(null),[s,d]=r.useState(null),f=(0,y.W)(a);return r.useEffect(()=>(!1===l.open&&f(!1),()=>f(!1)),[l.open,f]),(0,x.jsx)(v.fC,{...u,children:(0,x.jsx)($,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,x.jsx)(eO,{scope:t,contentId:(0,m.M)(),triggerId:(0,m.M)(),trigger:i,onTriggerChange:c,children:n})})})};eL.displayName=eF;var eK="MenuSubTrigger",eV=r.forwardRef((e,t)=>{let n=ee(eK,e.__scopeMenu),l=en(eK,e.__scopeMenu),u=eA(eK,e.__scopeMenu),i=ed(eK,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,x.jsx)(eo,{asChild:!0,...f,children:(0,x.jsx)(eM,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":u.contentId,"data-state":eB(n.open),...e,ref:(0,a.F)(t,u.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,eX(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,eX(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,a="right"===t,l=o[a?"left":"right"],u=o[a?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:l,y:o.top},{x:u,y:o.top},{x:u,y:o.bottom},{x:l,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==i.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&B[l.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});eV.displayName=eK;var eG="MenuSubContent",eW=r.forwardRef((e,t)=>{let n=eu(ec,e.__scopeMenu),{forceMount:l=n.forceMount,...u}=e,i=ee(ec,e.__scopeMenu),c=en(ec,e.__scopeMenu),s=eA(eG,e.__scopeMenu),d=r.useRef(null),f=(0,a.e)(t,d);return(0,x.jsx)(X.Provider,{scope:e.__scopeMenu,children:(0,x.jsx)(g.z,{present:l||i.open,children:(0,x.jsx)(X.Slot,{scope:e.__scopeMenu,children:(0,x.jsx)(ev,{id:s.contentId,"aria-labelledby":s.triggerId,...u,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=U[c.dir].includes(e.key);if(t&&n){var r;i.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function eB(e){return e?"open":"closed"}function eU(e){return"indeterminate"===e}function ez(e){return eU(e)?"indeterminate":e?"checked":"unchecked"}function eX(e){return t=>"mouse"===t.pointerType?e(t):void 0}eW.displayName=eG;var eH="DropdownMenu",[eY,eZ]=(0,l.b)(eH,[J]),eJ=J(),[eq,eQ]=eY(eH),e$=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:l,onOpenChange:i,modal:c=!0}=e,s=eJ(t),d=r.useRef(null),[f=!1,p]=(0,u.T)({prop:a,defaultProp:l,onChange:i});return(0,x.jsx)(eq,{scope:t,triggerId:(0,m.M)(),triggerRef:d,contentId:(0,m.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,x.jsx)(er,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};e$.displayName=eH;var e0="DropdownMenuTrigger",e1=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...l}=e,u=eQ(e0,n),c=eJ(n);return(0,x.jsx)(eo,{asChild:!0,...c,children:(0,x.jsx)(i.WV.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...l,ref:(0,a.F)(t,u.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});e1.displayName=e0;var e4=e=>{let{__scopeDropdownMenu:t,...n}=e,r=eJ(t);return(0,x.jsx)(ei,{...r,...n})};e4.displayName="DropdownMenuPortal";var e8="DropdownMenuContent",e2=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,l=eQ(e8,n),u=eJ(n),i=r.useRef(!1);return(0,x.jsx)(ef,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...a,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;i.current||null===(t=l.triggerRef.current)||void 0===t||t.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!l.modal||r)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});e2.displayName=e8;var e7=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eh,{...o,...r,ref:t})});e7.displayName="DropdownMenuGroup";var e9=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eg,{...o,...r,ref:t})});e9.displayName="DropdownMenuLabel";var e3=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(ex,{...o,...r,ref:t})});e3.displayName="DropdownMenuItem";var e6=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eb,{...o,...r,ref:t})});e6.displayName="DropdownMenuCheckboxItem";var e5=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eD,{...o,...r,ref:t})});e5.displayName="DropdownMenuRadioGroup";var te=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eE,{...o,...r,ref:t})});te.displayName="DropdownMenuRadioItem";var tt=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eI,{...o,...r,ref:t})});tt.displayName="DropdownMenuItemIndicator";var tn=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eP,{...o,...r,ref:t})});tn.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eN,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var tr=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eV,{...o,...r,ref:t})});tr.displayName="DropdownMenuSubTrigger";var to=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=eJ(n);return(0,x.jsx)(eW,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});to.displayName="DropdownMenuSubContent";var ta=e$,tl=e1,tu=e4,ti=e2,tc=e7,ts=e9,td=e3,tf=e6,tp=e5,tm=te,tv=tt,th=tn,tg=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,l=eJ(t),[i=!1,c]=(0,u.T)({prop:r,defaultProp:a,onChange:o});return(0,x.jsx)(eL,{...l,open:i,onOpenChange:c,children:n})},tw=tr,ty=to},89448:function(e,t,n){n.d(t,{F:function(){return c},f:function(){return s}});var r=n(64149),o=["light","dark"],a="(prefers-color-scheme: dark)",l="undefined"==typeof window,u=r.createContext(void 0),i={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(u))?e:i},s=e=>r.useContext(u)?e.children:r.createElement(f,{...e}),d=["light","dark"],f=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:i=!0,storageKey:c="theme",themes:s=d,defaultTheme:f=l?"system":"light",attribute:g="data-theme",value:w,children:y,nonce:x}=e,[M,b]=r.useState(()=>m(c,f)),[C,R]=r.useState(()=>m(c)),j=w?Object.values(w):s,D=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=h());let r=w?w[t]:t,a=n?v():null,u=document.documentElement;if("class"===g?(u.classList.remove(...j),r&&u.classList.add(r)):r?u.setAttribute(g,r):u.removeAttribute(g),i){let e=o.includes(f)?f:null,n=o.includes(t)?t:e;u.style.colorScheme=n}null==a||a()},[]),k=r.useCallback(e=>{let t="function"==typeof e?e(e):e;b(t);try{localStorage.setItem(c,t)}catch(e){}},[t]),E=r.useCallback(e=>{R(h(e)),"system"===M&&l&&!t&&D("system")},[M,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(E),E(e),()=>e.removeListener(E)},[E]),r.useEffect(()=>{let e=e=>{e.key===c&&k(e.newValue||f)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[k]),r.useEffect(()=>{D(null!=t?t:M)},[t,M]);let S=r.useMemo(()=>({theme:M,setTheme:k,forcedTheme:t,resolvedTheme:"system"===M?C:M,themes:l?[...s,"system"]:s,systemTheme:l?C:void 0}),[M,k,t,C,l,s]);return r.createElement(u.Provider,{value:S},r.createElement(p,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:i,storageKey:c,themes:s,defaultTheme:f,attribute:g,value:w,children:y,attrs:j,nonce:x}),y)},p=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:l,enableSystem:u,enableColorScheme:i,defaultTheme:c,value:s,attrs:d,nonce:f}=e,p="system"===c,m="class"===l?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(l,"',s='setAttribute';"),v=i?(o.includes(c)?c:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(c,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=s?s[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),u="";return i&&n&&!t&&o.includes(e)&&(u+="d.style.colorScheme = '".concat(e,"';")),"class"===l?t||r?u+="c.add(".concat(a,")"):u+="null":r&&(u+="d[s](n,".concat(a,")")),u},g=t?"!function(){".concat(m).concat(h(t),"}()"):u?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(h("dark"),"}else{").concat(h("light"),"}}else if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}").concat(p?"":"else{"+h(c,!1,!1)+"}").concat(v,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(s?"var x=".concat(JSON.stringify(s),";"):"").concat(h(s?"x[e]":"e",!0),"}else{").concat(h(c,!1,!1),";}").concat(v,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:g}})}),m=(e,t)=>{let n;if(!l){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},v=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/645-e15337358f8590f3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/645-e15337358f8590f3.js deleted file mode 100644 index 74748e8..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/645-e15337358f8590f3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[645],{92093:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(64149);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),i=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var a={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"};let c=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:c=2,absoluteStrokeWidth:u,className:l="",children:s,iconNode:f,...d}=e;return(0,r.createElement)("svg",{ref:t,...a,width:o,height:o,stroke:n,strokeWidth:u?24*Number(c)/Number(o):c,className:i("lucide",l),...d},[...f.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(s)?s:[s]])}),u=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:u,...l}=n;return(0,r.createElement)(c,{ref:a,iconNode:t,className:i("lucide-".concat(o(e)),u),...l})});return n.displayName="".concat(e),n}},7410:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},83765:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},7694:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]])},7357:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},55215:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};Object.defineProperty(t,"__esModule",{value:!0});var u=a(n(64149)),l=n(91857),s=n(30408),f=[(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-0"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(-").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-1"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(-".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(-").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-2"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 75% {transform: translateX(").concat(1,"rem) scale(0.75)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-3"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-4"),(0,s.createAnimation)("PropagateLoader","25% {transform: translateX(".concat(1,"rem) scale(0.75)}\n 50% {transform: translateX(").concat(3,"rem) scale(0.6)}\n 75% {transform: translateX(").concat(5,"rem) scale(0.5)}\n 95% {transform: translateX(0rem) scale(1)}"),"propogate-5")];t.default=function(e){var t=e.loading,n=e.color,o=void 0===n?"#000000":n,i=e.speedMultiplier,a=void 0===i?1:i,s=e.cssOverride,d=e.size,p=c(e,["loading","color","speedMultiplier","cssOverride","size"]),m=(0,l.parseLengthAndUnit)(void 0===d?15:d),g=m.value,y=m.unit,h=r({display:"inherit",position:"relative"},void 0===s?{}:s),v=function(e){return{position:"absolute",fontSize:"".concat(g/3).concat(y),width:"".concat(g).concat(y),height:"".concat(g).concat(y),background:o,borderRadius:"50%",animation:"".concat(f[e]," ").concat(1.5/a,"s infinite"),animationFillMode:"forwards"}};return void 0===t||t?u.createElement("span",r({style:h},p),u.createElement("span",{style:v(0)}),u.createElement("span",{style:v(1)}),u.createElement("span",{style:v(2)}),u.createElement("span",{style:v(3)}),u.createElement("span",{style:v(4)}),u.createElement("span",{style:v(5)})):null}},30408:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=void 0,t.createAnimation=function(e,t,n){var r="react-spinners-".concat(e,"-").concat(n);if("undefined"==typeof window||!window.document)return r;var o=document.createElement("style");document.head.appendChild(o);var i=o.sheet,a="\n @keyframes ".concat(r," {\n ").concat(t,"\n }\n ");return i&&i.insertRule(a,0),r}},91857:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.cssValue=t.parseLengthAndUnit=void 0;var n={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function r(e){if("number"==typeof e)return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();t=r.includes(".")?parseFloat(r):parseInt(r,10);var o=(e.match(/[^0-9]*$/)||"").toString();return n[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}t.parseLengthAndUnit=r,t.cssValue=function(e){var t=r(e);return"".concat(t.value).concat(t.unit)}},25696:function(e,t,n){n.d(t,{Z:function(){return k}});var r=n(64149);function o(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function i(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let r=e[n],a=t[n];return"function"==typeof r?`${r}`==`${a}`:o(r)&&o(a)?i(r,a):r===a})}function a(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function c(e){return"number"==typeof e}function u(e){return"string"==typeof e}function l(e){return"boolean"==typeof e}function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function f(e){return Math.abs(e)}function d(e){return Math.sign(e)}function p(e){return h(e).map(Number)}function m(e){return e[g(e)]}function g(e){return Math.max(0,e.length-1)}function y(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function h(e){return Object.keys(e)}function v(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(n,r,o,i={passive:!0}){let a;return"addEventListener"in n?(n.addEventListener(r,o,i),a=()=>n.removeEventListener(r,o,i)):(n.addListener(o),a=()=>n.removeListener(o)),e.push(a),t},clear:function(){e=e.filter(e=>e())}};return t}function O(e=0,t=0){let n=f(e-t);function r(n){return nt}return{length:n,max:t,min:e,constrain:function(n){return r(n)?nt},reachedMin:function(t){return t(h(n).forEach(r=>{let o=t[r],i=n[r],a=s(o)&&s(i);t[r]=a?e(o,i):i}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let r=n.breakpoints||{},o=h(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{});return t(n,o)},optionsMediaQueries:function(t){return t.map(e=>h(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(S),L=(k=[],{init:function(e,t){return(k=t.filter(({options:e})=>!1!==A.optionsAtMedia(e).active)).forEach(t=>t.init(e,A)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){k=k.filter(e=>e.destroy())}}),D=b(),M=function(){let e,t={},n={init:function(t){e=t},emit:function(r){return(t[r]||[]).forEach(t=>t(e,r)),n},off:function(e,r){return t[e]=(t[e]||[]).filter(e=>e!==r),n},on:function(e,r){return t[e]=(t[e]||[]).concat([r]),n},clear:function(){t={}}};return n}(),{mergeOptions:N,optionsAtMedia:_,optionsMediaQueries:I}=A,{on:X,off:C,emit:F}=M,z=!1,T=N(j,E.globalOptions),R=N(T),V=[];function Z(t,n){!z&&(R=_(T=N(T,t)),V=n||V,function(){let{container:t,slides:n}=R;i=(u(t)?e.querySelector(t):t)||e.children[0];let r=u(n)?i.querySelectorAll(n):n;a=[].slice.call(r||i.children)}(),r=function t(n){let r=function(e,t,n,r,o,i,a){let s,j;let{align:E,axis:k,direction:P,startIndex:S,loop:A,duration:L,dragFree:D,dragThreshold:M,inViewThreshold:N,slidesToScroll:_,skipSnaps:I,containScroll:X,watchResize:C,watchSlides:F,watchDrag:z,watchFocus:T}=i,R={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:o}=e;return{top:t,right:n+r,bottom:t+o,left:n,width:r,height:o}}},V=R.measure(t),Z=n.map(R.measure),H=function(e,t){let n="rtl"===t,r="y"===e,o=!r&&n?-1:1;return{scroll:r?"y":"x",cross:r?"x":"y",startEdge:r?"top":n?"right":"left",endEdge:r?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return r?t:n},direction:function(e){return e*o}}}(k,P),$=H.measureSize(V),B={measure:function(e){return e/100*$}},q=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(r,o){return u(e)?n[e](r):e(t,r,o)}}}(E,$),U=!A&&!!X,{slideSizes:W,slideSizesWithGaps:J,startGap:Q,endGap:Y}=function(e,t,n,r,o,i){let{measureSize:a,startEdge:c,endEdge:u}=e,l=n[0]&&o,s=function(){if(!l)return 0;let e=n[0];return f(t[c]-e[c])}(),d=l?parseFloat(i.getComputedStyle(m(r)).getPropertyValue(`margin-${u}`)):0,p=n.map(a),y=n.map((e,t,n)=>{let r=t===g(n);return t?r?p[t]+d:n[t+1][c]-e[c]:p[t]+s}).map(f);return{slideSizes:p,slideSizesWithGaps:y,startGap:s,endGap:d}}(H,V,Z,n,A||!!X,o),G=function(e,t,n,r,o,i,a,u,l){let{startEdge:s,endEdge:d,direction:y}=e,h=c(n);return{groupSlides:function(e){return h?p(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?p(e).reduce((n,c,l)=>{let p=m(n)||0,h=c===g(e),v=o[s]-i[p][s],b=o[s]-i[c][d],O=r||0!==p?0:y(a),w=f(b-(!r&&h?y(u):0)-(v+O));return l&&w>t+2&&n.push(c),h&&n.push(e.length),n},[]).map((t,n,r)=>{let o=Math.max(r[n-1]||0);return e.slice(o,t)}):[]}}}(H,$,_,A,V,Z,Q,Y,0),{snaps:K,snapsAligned:ee}=function(e,t,n,r,o){let{startEdge:i,endEdge:a}=e,{groupSlides:c}=o,u=c(r).map(e=>m(e)[a]-e[0][i]).map(f).map(t.measure),l=r.map(e=>n[i]-e[i]).map(e=>-f(e)),s=c(l).map(e=>e[0]).map((e,t)=>e+u[t]);return{snaps:l,snapsAligned:s}}(H,q,V,Z,G),et=-m(K)+m(J),{snapsContained:en,scrollContainLimit:er}=function(e,t,n,r,o){let i=O(-t+e,0),a=n.map((e,t)=>{let{min:r,max:o}=i,a=i.constrain(e),c=t===g(n);return t?c||1>f(r-a)?r:1>f(o-a)?o:a:o}).map(e=>parseFloat(e.toFixed(3))),c=function(){let e=a[0],t=m(a);return O(a.lastIndexOf(e),a.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[i.max];if("keepSnaps"===r)return a;let{min:n,max:o}=c;return a.slice(n,o)}(),scrollContainLimit:c}}($,et,ee,X,0),eo=U?en:ee,{limit:ei}=function(e,t,n){let r=t[0];return{limit:O(n?r-e:m(t),r)}}(et,eo,A),ea=function e(t,n,r){let{constrain:o}=O(0,t),i=t+1,a=c(n);function c(e){return r?f((i+e)%i):o(e)}function u(){return e(t,a,r)}let l={get:function(){return a},set:function(e){return a=c(e),l},add:function(e){return u().set(a+e)},clone:u};return l}(g(eo),S,A),ec=ea.clone(),eu=p(n),el=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}},o)=>{r||n.constrain(e.pointerDown()),t.seek(o)},es=({scrollBody:e,translate:t,location:n,offsetLocation:r,scrollLooper:o,slideLooper:i,dragHandler:a,animation:c,eventHandler:u,scrollBounds:l,options:{loop:s}},f)=>{let d=e.settled(),p=!l.shouldConstrain(),m=s?d:d&&p;m&&!a.pointerDown()&&(c.stop(),u.emit("settle")),m||u.emit("scroll");let g=n.get()*f+em.get()*(1-f);r.set(g),s&&(o.loop(e.direction()),i.loop()),t.to(r.get())},ef=function(e,t,n,r){let o=b(),i=1e3/60,a=null,c=0,u=0;function l(e){if(!u)return;a||(a=e);let o=e-a;for(a=e,c+=o;c>=i;)n(i),c-=i;r(c/i),u&&t.requestAnimationFrame(l)}function s(){t.cancelAnimationFrame(u),a=null,c=0,u=0}return{init:function(){o.add(e,"visibilitychange",()=>{e.hidden&&(a=null,c=0)})},destroy:function(){s(),o.clear()},start:function(){u||(u=t.requestAnimationFrame(l))},stop:s,update:()=>n(i),render:r}}(r,o,e=>el(ek,e),e=>es(ek,e)),ed=eo[ea.get()],ep=w(ed),em=w(ed),eg=w(ed),ey=w(ed),eh=function(e,t,n,r,o,i){let a=0,c=0,u=o,l=.68,s=e.get(),p=0;function m(e){return u=e,y}function g(e){return l=e,y}let y={direction:function(){return c},duration:function(){return u},velocity:function(){return a},seek:function(t){let o=t/1e3,i=u*o,f=r.get()-e.get(),m=0;return u?(n.set(e),a+=f/i,a*=l,s+=a,e.add(a*o),m=s-p):(a=0,n.set(r),e.set(r),m=f),c=d(m),p=s,y},settled:function(){return .001>f(r.get()-t.get())},useBaseFriction:function(){return g(.68)},useBaseDuration:function(){return m(o)},useFriction:g,useDuration:m};return y}(ep,eg,em,ey,L,0),ev=function(e,t,n,r,o){let{reachedAny:i,removeOffset:a,constrain:c}=r;function u(e){return e.concat().sort((e,t)=>f(e)-f(t))[0]}function l(t,r){let o=[t,t+n,t-n];if(!e)return t;if(!r)return u(o);let i=o.filter(e=>d(e)===r);return i.length?u(i):m(o)-n}return{byDistance:function(n,r){let u=o.get()+n,{index:s,distance:d}=function(n){let r=e?a(n):c(n),{index:o}=t.map((e,t)=>({diff:l(e-r,0),index:t})).sort((e,t)=>f(e.diff)-f(t.diff))[0];return{index:o,distance:r}}(u),p=!e&&i(u);if(!r||p)return{index:s,distance:n};let m=n+l(t[s]-d,0);return{index:s,distance:m}},byIndex:function(e,n){let r=l(t[e]-o.get(),n);return{index:e,distance:r}},shortcut:l}}(A,eo,et,ei,ey),eb=function(e,t,n,r,o,i,a){function c(o){let c=o.distance,u=o.index!==t.get();i.add(c),c&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(o.index),a.emit("select"))}return{distance:function(e,t){c(o.byDistance(e,t))},index:function(e,n){let r=t.clone().set(e);c(o.byIndex(r.get(),n))}}}(ef,ea,ec,eh,ev,ey,a),eO=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(ei),ew=b(),ex=function(e,t,n,r){let o;let i={},a=null,c=null,u=!1;return{init:function(){o=new IntersectionObserver(e=>{u||(e.forEach(e=>{i[t.indexOf(e.target)]=e}),a=null,c=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(e=>o.observe(e))},destroy:function(){o&&o.disconnect(),u=!0},get:function(e=!0){if(e&&a)return a;if(!e&&c)return c;let t=h(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:o}=i[r];return(e&&o||!e&&!o)&&t.push(r),t},[]);return e&&(a=t),e||(c=t),t}}}(t,n,a,N),{slideRegistry:ej}=function(e,t,n,r,o,i){let{groupSlides:a}=o,{min:c,max:u}=r;return{slideRegistry:function(){let r=a(i);return 1===n.length?[i]:e&&"keepSnaps"!==t?r.slice(c,u).map((e,t,n)=>{let r=t===g(n);return t?r?y(g(i)-m(n)[0]+1,m(n)[0]):e:y(m(n[0])+1)}):r}()}}(U,X,eo,er,G,eu),eE=function(e,t,n,r,o,i,a,u){let s={passive:!0,capture:!0},f=0;function d(e){"Tab"===e.code&&(f=new Date().getTime())}return{init:function(p){u&&(i.add(document,"keydown",d,!1),t.forEach((t,d)=>{i.add(t,"focus",t=>{(l(u)||u(p,t))&&function(t){if(new Date().getTime()-f>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;let i=n.findIndex(e=>e.includes(t));c(i)&&(o.useDuration(0),r.index(i,0),a.emit("slideFocus"))}(d)},s)}))}}}(e,n,ej,eb,eh,ew,a,T),ek={ownerDocument:r,ownerWindow:o,eventHandler:a,containerRect:V,slideRects:Z,animation:ef,axis:H,dragHandler:function(e,t,n,r,o,i,a,c,u,s,p,m,g,y,h,w,x,j,E){let{cross:k,direction:P}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},L=b(),D=b(),M=O(50,225).constrain(y.measure(20)),N={mouse:300,touch:400},_={mouse:500,touch:600},I=h?43:25,X=!1,C=0,F=0,z=!1,T=!1,R=!1,V=!1;function Z(e){if(!v(e,r)&&e.touches.length>=2)return H(e);let t=i.readPoint(e),n=i.readPoint(e,k),a=f(t-C),u=f(n-F);if(!T&&!V&&(!e.cancelable||!(T=a>u)))return H(e);let l=i.pointerMove(e);a>w&&(R=!0),s.useFriction(.3).useDuration(.75),c.start(),o.add(P(l)),e.preventDefault()}function H(e){let t=p.byDistance(0,!1).index!==m.get(),n=i.pointerUp(e)*(h?_:N)[V?"mouse":"touch"],r=function(e,t){let n=m.add(-1*d(e)),r=p.byDistance(e,!h).distance;return h||f(e)e.preventDefault(),A).add(t,"touchmove",()=>void 0,A).add(t,"touchend",()=>void 0).add(t,"touchstart",c).add(t,"mousedown",c).add(t,"touchcancel",H).add(t,"contextmenu",H).add(t,"click",$,!0);function c(c){(l(E)||E(e,c))&&function(e){let c=v(e,r);V=c,R=h&&c&&!e.buttons&&X,X=f(o.get()-a.get())>=2,c&&0!==e.button||function(e){let t=e.nodeName||"";return S.includes(t)}(e.target)||(z=!0,i.pointerDown(e),s.useFriction(0).useDuration(0),o.set(a),function(){let e=V?n:t;D.add(e,"touchmove",Z,A).add(e,"touchend",H).add(e,"mousemove",Z,A).add(e,"mouseup",H)}(),C=i.readPoint(e),F=i.readPoint(e,k),g.emit("pointerDown"))}(c)}},destroy:function(){L.clear(),D.clear()},pointerDown:function(){return z}}}(H,e,r,o,ey,function(e,t){let n,r;function o(e){return e.timeStamp}function i(n,r){let o=r||e.scroll,i=`client${"x"===o?"X":"Y"}`;return(v(n,t)?n:n.touches[0])[i]}return{pointerDown:function(e){return n=e,r=e,i(e)},pointerMove:function(e){let t=i(e)-i(r),a=o(e)-o(n)>170;return r=e,a&&(n=e),t},pointerUp:function(e){if(!n||!r)return 0;let t=i(r)-i(n),a=o(e)-o(n),c=o(e)-o(r)>170,u=t/a;return a&&!c&&f(u)>.1?u:0},readPoint:i}}(H,o),ep,ef,eb,eh,ev,ea,a,B,D,M,I,0,z),eventStore:ew,percentOfView:B,index:ea,indexPrevious:ec,limit:ei,location:ep,offsetLocation:eg,previousLocation:em,options:i,resizeHandler:function(e,t,n,r,o,i,a){let c,u;let s=[e].concat(r),d=[],p=!1;function m(e){return o.measureSize(a.measure(e))}return{init:function(o){i&&(u=m(e),d=r.map(m),c=new ResizeObserver(n=>{(l(i)||i(o,n))&&function(n){for(let i of n){if(p)return;let n=i.target===e,a=r.indexOf(i.target),c=n?u:d[a];if(f(m(n?e:r[a])-c)>=.5){o.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>{s.forEach(e=>c.observe(e))}))},destroy:function(){p=!0,c&&c.disconnect()}}}(t,a,o,n,H,C,R),scrollBody:eh,scrollBounds:function(e,t,n,r,o){let i=o.measure(10),a=o.measure(50),c=O(.1,.99),u=!1;function l(){return!!(!u&&e.reachedAny(n.get())&&e.reachedAny(t.get()))}return{shouldConstrain:l,constrain:function(o){if(!l())return;let u=e.reachedMin(t.get())?"min":"max",s=f(e[u]-t.get()),d=n.get()-t.get(),p=c.constrain(s/a);n.subtract(d*p),!o&&f(d)e.add(a))}}}(et,ei,eg,[ep,eg,em,ey]),scrollProgress:eO,scrollSnapList:eo.map(eO.get),scrollSnaps:eo,scrollTarget:ev,scrollTo:eb,slideLooper:function(e,t,n,r,o,i,a,c,u){let l=p(o),s=m(d(p(o).reverse(),a[0]),n,!1).concat(m(d(l,t-a[0]-1),-n,!0));function f(e,t){return e.reduce((e,t)=>e-o[t],t)}function d(e,t){return e.reduce((e,n)=>f(e,t)>0?e.concat([n]):e,[])}function m(o,a,l){let s=i.map((e,n)=>({start:e-r[n]+.5+a,end:e+t-.5+a}));return o.map(t=>{let r=l?0:-n,o=l?n:0,i=s[t][l?"end":"start"];return{index:t,loopPoint:i,slideLocation:w(-1),translate:x(e,u[t]),target:()=>c.get()>i?r:o}})}return{canLoop:function(){return s.every(({index:e})=>.1>=f(l.filter(t=>t!==e),t))},clear:function(){s.forEach(e=>e.translate.clear())},loop:function(){s.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,o=t();o!==r.get()&&(n.to(o),r.set(o))})},loopPoints:s}}(H,$,et,W,J,K,eo,eg,n),slideFocus:eE,slidesHandler:(j=!1,{init:function(e){F&&(s=new MutationObserver(t=>{!j&&(l(F)||F(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),a.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){s&&s.disconnect(),j=!0}}),slidesInView:ex,slideIndexes:eu,slideRegistry:ej,slidesToScroll:G,target:ey,translate:x(H,t)};return ek}(e,i,a,P,S,n,M);return n.loop&&!r.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):r}(R),I([T,...V.map(({options:e})=>e)]).forEach(e=>D.add(e,"change",H)),R.active&&(r.translate.to(r.location.get()),r.animation.init(),r.slidesInView.init(),r.slideFocus.init(U),r.eventHandler.init(U),r.resizeHandler.init(U),r.slidesHandler.init(U),r.options.loop&&r.slideLooper.loop(),i.offsetParent&&a.length&&r.dragHandler.init(U),o=L.init(U,V)))}function H(e,t){let n=q();$(),Z(N({startIndex:n},e),t),M.emit("reInit")}function $(){r.dragHandler.destroy(),r.eventStore.clear(),r.translate.clear(),r.slideLooper.clear(),r.resizeHandler.destroy(),r.slidesHandler.destroy(),r.slidesInView.destroy(),r.animation.destroy(),L.destroy(),D.clear()}function B(e,t,n){R.active&&!z&&(r.scrollBody.useBaseFriction().useDuration(!0===t?0:R.duration),r.scrollTo.index(e,n||0))}function q(){return r.index.get()}let U={canScrollNext:function(){return r.index.add(1).get()!==q()},canScrollPrev:function(){return r.index.add(-1).get()!==q()},containerNode:function(){return i},internalEngine:function(){return r},destroy:function(){z||(z=!0,D.clear(),$(),M.emit("destroy"),M.clear())},off:C,on:X,emit:F,plugins:function(){return o},previousScrollSnap:function(){return r.indexPrevious.get()},reInit:H,rootNode:function(){return e},scrollNext:function(e){B(r.index.add(1).get(),e,-1)},scrollPrev:function(e){B(r.index.add(-1).get(),e,1)},scrollProgress:function(){return r.scrollProgress.get(r.location.get())},scrollSnapList:function(){return r.scrollSnapList},scrollTo:B,selectedScrollSnap:q,slideNodes:function(){return a},slidesInView:function(){return r.slidesInView.get()},slidesNotInView:function(){return r.slidesInView.get(!1)}};return Z(t,n),setTimeout(()=>M.emit("init"),0),U}function k(e={},t=[]){let n=(0,r.useRef)(e),o=(0,r.useRef)(t),[c,u]=(0,r.useState)(),[l,s]=(0,r.useState)(),f=(0,r.useCallback)(()=>{c&&c.reInit(n.current,o.current)},[c]);return(0,r.useEffect)(()=>{i(n.current,e)||(n.current=e,f())},[e,f]),(0,r.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let n=a(e),r=a(t);return n.every((e,t)=>i(e,r[t]))}(o.current,t)&&(o.current=t,f())},[t,f]),(0,r.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&l){E.globalOptions=k.globalOptions;let e=E(l,n.current,o.current);return u(e),()=>e.destroy()}u(void 0)},[l,u]),[s,c]}E.globalOptions=void 0,k.globalOptions=void 0},83111:function(e,t,n){n.d(t,{w_:function(){return s}});var r=n(64149),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=["attr","size","title"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(f,c({attr:l({},e.attr)},t),function e(t){return t&&t.map((t,n)=>r.createElement(t.tag,l({key:n},t.attr),e(t.child)))}(e.child))}function f(e){var t=t=>{var n,{attr:o,size:i,title:u}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),f=i||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",c({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:n,style:l(l({color:e.color||t.color},t.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),e.children)};return void 0!==i?r.createElement(i.Consumer,null,e=>t(e)):t(o)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6509-9ee8afe5e5b56e4d.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6509-9ee8afe5e5b56e4d.js new file mode 100644 index 0000000..a455e7c --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/6509-9ee8afe5e5b56e4d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6509],{26509:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(26196),o=n.n(r)},50712:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return r}}),n(12168);let r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;ri?e.prefetch(t,o):e.prefetch(t,n,r))().catch(e=>{})}}function _(e){return"string"==typeof e?e:(0,l.formatUrl)(e)}let P=i.default.forwardRef(function(e,t){let n,r;let{href:l,as:y,children:P,prefetch:v=null,passHref:R,replace:O,shallow:j,scroll:E,locale:S,onClick:w,onMouseEnter:x,onTouchStart:M,legacyBehavior:N=!1,...C}=e;n=P,N&&("string"==typeof n||"number"==typeof n)&&(n=(0,o.jsx)("a",{children:n}));let k=i.default.useContext(f.RouterContext),I=i.default.useContext(d.AppRouterContext),T=null!=k?k:I,L=!k,U=!1!==v,A=null===v?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:W,as:D}=i.default.useMemo(()=>{if(!k){let e=_(l);return{href:e,as:y?_(y):e}}let[e,t]=(0,a.resolveHref)(k,l,!0);return{href:e,as:y?(0,a.resolveHref)(k,y):t||e}},[k,l,y]),z=i.default.useRef(W),K=i.default.useRef(D);N&&(r=i.default.Children.only(n));let q=N?r&&"object"==typeof r&&r.ref:t,[F,$,B]=(0,p.useIntersection)({rootMargin:"200px"}),Y=i.default.useCallback(e=>{(K.current!==D||z.current!==W)&&(B(),K.current=D,z.current=W),F(e),q&&("function"==typeof q?q(e):"object"==typeof q&&(q.current=e))},[D,q,W,B,F]);i.default.useEffect(()=>{T&&$&&U&&b(T,W,D,{locale:S},{kind:A},L)},[D,W,$,S,U,null==k?void 0:k.locale,T,L,A]);let Q={ref:Y,onClick(e){N||"function"!=typeof w||w(e),N&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),T&&!e.defaultPrevented&&function(e,t,n,r,o,a,l,s,c){let{nodeName:f}=e.currentTarget;if("A"===f.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,u.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==l||l;"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:e}):t[o?"replace":"push"](r||n,{scroll:e})};c?i.default.startTransition(d):d()}(e,T,W,D,O,j,E,S,L)},onMouseEnter(e){N||"function"!=typeof x||x(e),N&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)},onTouchStart:function(e){N||"function"!=typeof M||M(e),N&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),T&&(U||!L)&&b(T,W,D,{locale:S,priority:!0,bypassPrefetchedCheck:!0},{kind:A},L)}};if((0,s.isAbsoluteUrl)(D))Q.href=D;else if(!N||R||"a"===r.type&&!("href"in r.props)){let e=void 0!==S?S:null==k?void 0:k.locale,t=(null==k?void 0:k.isLocaleDomain)&&(0,h.getDomainLocale)(D,e,null==k?void 0:k.locales,null==k?void 0:k.domainLocales);Q.href=t||(0,m.addBasePath)((0,c.addLocale)(D,e,null==k?void 0:k.defaultLocale))}return N?i.default.cloneElement(r,Q):(0,o.jsx)("a",{...C,...Q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57500:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"resolveHref",{enumerable:!0,get:function(){return f}});let r=n(7419),o=n(78120),i=n(46667),a=n(53331),u=n(12168),l=n(12570),s=n(22495),c=n(41198);function f(e,t,n){let f;let d="string"==typeof t?t:(0,o.formatWithValidation)(t),p=d.match(/^[a-zA-Z]{1,}:\/\//),h=p?d.slice(p[0].length):d;if((h.split("?",1)[0]||"").match(/(\/\/|\\)/)){console.error("Invalid href '"+d+"' passed to next/router in page: '"+e.pathname+"'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");let t=(0,a.normalizeRepeatedSlashes)(h);d=(p?p[0]:"")+t}if(!(0,l.isLocalURL)(d))return n?[d]:d;try{f=new URL(d.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){f=new URL("/","http://n")}try{let e=new URL(d,f);e.pathname=(0,u.normalizePathTrailingSlash)(e.pathname);let t="";if((0,s.isDynamicRoute)(e.pathname)&&e.searchParams&&n){let n=(0,r.searchParamsToUrlQuery)(e.searchParams),{result:a,params:u}=(0,c.interpolateAs)(e.pathname,e.pathname,n);a&&(t=(0,o.formatWithValidation)({pathname:a,hash:e.hash,query:(0,i.omit)(n,u)}))}let a=e.origin===f.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[d]:d}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55232:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return l}});let r=n(64149),o=n(57500),i="function"==typeof IntersectionObserver,a=new Map,u=[];function l(e){let{rootRef:t,rootMargin:n,disabled:l}=e,s=l||!i,[c,f]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(i){if(s||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:o,elements:i}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=u.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=a.get(r)))return t;let o=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:o},u.push(n),a.set(n,t),t}(n);return i.set(e,t),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=u.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&u.splice(e,1)}}}(e,e=>e&&f(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,o.requestIdleCallback)(()=>f(!0));return()=>(0,o.cancelIdleCallback)(e)}},[s,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{f(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51156:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"escapeStringRegexp",{enumerable:!0,get:function(){return o}});let n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/g;function o(e){return n.test(e)?e.replace(r,"\\$&"):e}},24072:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return r}});let r=n(88806)._(n(64149)).default.createContext(null)},78120:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{formatUrl:function(){return i},formatWithValidation:function(){return u},urlObjectKeys:function(){return a}});let r=n(59994)._(n(7419)),o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",u=e.hash||"",l=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?"["+n+"]":n),e.port&&(s+=":"+e.port)),l&&"object"==typeof l&&(l=String(r.urlQueryToSearchParams(l)));let c=e.search||l&&"?"+l||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),c&&"?"!==c[0]&&(c="?"+c),""+i+s+(a=a.replace(/[?#]/g,encodeURIComponent))+(c=c.replace("#","%23"))+u}let a=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return i(e)}},22495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getSortedRoutes:function(){return r.getSortedRoutes},isDynamicRoute:function(){return o.isDynamicRoute}});let r=n(27202),o=n(97360)},41198:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"interpolateAs",{enumerable:!0,get:function(){return i}});let r=n(81371),o=n(55970);function i(e,t,n){let i="",a=(0,o.getRouteRegex)(e),u=a.groups,l=(t!==e?(0,r.getRouteMatcher)(a)(t):"")||n;i=e;let s=Object.keys(u);return s.every(e=>{let t=l[e]||"",{repeat:n,optional:r}=u[e],o="["+(n?"...":"")+e+"]";return r&&(o=(t?"":"/")+"["+o+"]"),n&&!Array.isArray(t)&&(t=[t]),(r||e in l)&&(i=i.replace(o,n?t.map(e=>encodeURIComponent(e)).join("/"):encodeURIComponent(t))||"/")})||(i=""),{params:s,result:i}}},97360:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return i}});let r=n(51693),o=/\/\[[^/]+?\](?=\/|$)/;function i(e){return(0,r.isInterceptionRouteAppPath)(e)&&(e=(0,r.extractInterceptionRouteInformation)(e).interceptedRoute),o.test(e)}},12570:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isLocalURL",{enumerable:!0,get:function(){return i}});let r=n(53331),o=n(15282);function i(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},46667:function(e,t){function n(e,t){let n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"omit",{enumerable:!0,get:function(){return n}})},7419:function(e,t){function n(e){let t={};return e.forEach((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]}),t}function r(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function o(e){let t=new URLSearchParams;return Object.entries(e).forEach(e=>{let[n,o]=e;Array.isArray(o)?o.forEach(e=>t.append(n,r(e))):t.set(n,r(o))}),t}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r{Array.from(t.keys()).forEach(t=>e.delete(t)),t.forEach((t,n)=>e.append(n,t))}),e}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{assign:function(){return i},searchParamsToUrlQuery:function(){return n},urlQueryToSearchParams:function(){return o}})},81371:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o}});let r=n(53331);function o(e){let{re:t,groups:n}=e;return e=>{let o=t.exec(e);if(!o)return!1;let i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach(e=>{let t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map(e=>i(e)):t.repeat?[i(r)]:i(r))}),a}}},55970:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getNamedMiddlewareRegex:function(){return d},getNamedRouteRegex:function(){return f},getRouteRegex:function(){return l},parseParameter:function(){return a}});let r=n(51693),o=n(51156),i=n(15466);function a(e){let t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));let n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function u(e){let t=(0,i.removeTrailingSlash)(e).slice(1).split("/"),n={},u=1;return{parameterizedRoute:t.map(e=>{let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(t&&i){let{key:e,optional:r,repeat:l}=a(i[1]);return n[e]={pos:u++,repeat:l,optional:r},"/"+(0,o.escapeStringRegexp)(t)+"([^/]+?)"}if(!i)return"/"+(0,o.escapeStringRegexp)(e);{let{key:e,repeat:t,optional:r}=a(i[1]);return n[e]={pos:u++,repeat:t,optional:r},t?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}}).join(""),groups:n}}function l(e){let{parameterizedRoute:t,groups:n}=u(e);return{re:RegExp("^"+t+"(?:/)?$"),groups:n}}function s(e){let{interceptionMarker:t,getSafeRouteKey:n,segment:r,routeKeys:i,keyPrefix:u}=e,{key:l,optional:s,repeat:c}=a(r),f=l.replace(/\W/g,"");u&&(f=""+u+f);let d=!1;(0===f.length||f.length>30)&&(d=!0),isNaN(parseInt(f.slice(0,1)))||(d=!0),d&&(f=n()),u?i[f]=""+u+l:i[f]=l;let p=t?(0,o.escapeStringRegexp)(t):"";return c?s?"(?:/"+p+"(?<"+f+">.+?))?":"/"+p+"(?<"+f+">.+?)":"/"+p+"(?<"+f+">[^/]+?)"}function c(e,t){let n;let a=(0,i.removeTrailingSlash)(e).slice(1).split("/"),u=(n=0,()=>{let e="",t=++n;for(;t>0;)e+=String.fromCharCode(97+(t-1)%26),t=Math.floor((t-1)/26);return e}),l={};return{namedParameterizedRoute:a.map(e=>{let n=r.INTERCEPTION_ROUTE_MARKERS.some(t=>e.startsWith(t)),i=e.match(/\[((?:\[.*\])|.+)\]/);if(n&&i){let[n]=e.split(i[0]);return s({getSafeRouteKey:u,interceptionMarker:n,segment:i[1],routeKeys:l,keyPrefix:t?"nxtI":void 0})}return i?s({getSafeRouteKey:u,segment:i[1],routeKeys:l,keyPrefix:t?"nxtP":void 0}):"/"+(0,o.escapeStringRegexp)(e)}).join(""),routeKeys:l}}function f(e,t){let n=c(e,t);return{...l(e),namedRegex:"^"+n.namedParameterizedRoute+"(?:/)?$",routeKeys:n.routeKeys}}function d(e,t){let{parameterizedRoute:n}=u(e),{catchAll:r=!0}=t;if("/"===n)return{namedRegex:"^/"+(r?".*":"")+"$"};let{namedParameterizedRoute:o}=c(e,!1);return{namedRegex:"^"+o+(r?"(?:(/.*)?)":"")+"$"}}},27202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return r}});class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e){void 0===e&&(e="/");let t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);let n=t.map(t=>this.children.get(t)._smoosh(""+e+t+"/")).reduce((e,t)=>[...e,...t],[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(e+"["+this.slugName+"]/")),!this.placeholder){let t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw Error('You cannot define a route with the same specificity as a optional catch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").');n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(e+"[[..."+this.optionalRestSlugName+"]]/")),n}_insert(e,t,r){if(0===e.length){this.placeholder=!1;return}if(r)throw Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let n=o.slice(1,-1),a=!1;if(n.startsWith("[")&&n.endsWith("]")&&(n=n.slice(1,-1),a=!0),n.startsWith("...")&&(n=n.substring(3),r=!0),n.startsWith("[")||n.endsWith("]"))throw Error("Segment names may not start or end with extra brackets ('"+n+"').");if(n.startsWith("."))throw Error("Segment names may not start with erroneous periods ('"+n+"').");function i(e,n){if(null!==e&&e!==n)throw Error("You cannot use different slug names for the same dynamic path ('"+e+"' !== '"+n+"').");t.forEach(e=>{if(e===n)throw Error('You cannot have the same slug name "'+n+'" repeat within a single dynamic path');if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw Error('You cannot have the slug names "'+e+'" and "'+n+'" differ only by non-word symbols within a single dynamic path')}),t.push(n)}if(r){if(a){if(null!=this.restSlugName)throw Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+e[0]+'" ).');i(this.optionalRestSlugName,n),this.optionalRestSlugName=n,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+e[0]+'").');i(this.restSlugName,n),this.restSlugName=n,o="[...]"}}else{if(a)throw Error('Optional route parameters are not yet supported ("'+e[0]+'").');i(this.slugName,n),this.slugName=n,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function r(e){let t=new n;return e.forEach(e=>t.insert(e)),t.smoosh()}},53331:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DecodeError:function(){return h},MiddlewareNotFoundError:function(){return b},MissingStaticPage:function(){return y},NormalizeError:function(){return m},PageNotFoundError:function(){return g},SP:function(){return d},ST:function(){return p},WEB_VITALS:function(){return n},execOnce:function(){return r},getDisplayName:function(){return l},getLocationOrigin:function(){return a},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return s},loadGetInitialProps:function(){return f},normalizeRepeatedSlashes:function(){return c},stringifyError:function(){return _}});let n=["CLS","FCP","FID","INP","LCP","TTFB"];function r(e){let t,n=!1;return function(){for(var r=arguments.length,o=Array(r),i=0;io.test(e);function a(){let{protocol:e,hostname:t,port:n}=window.location;return e+"//"+t+(n?":"+n:"")}function u(){let{href:e}=window.location,t=a();return e.substring(t.length)}function l(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function s(e){return e.finished||e.headersSent}function c(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?"?"+t.slice(1).join("?"):"")}async function f(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await f(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&s(n))return r;if(!r)throw Error('"'+l(e)+'.getInitialProps()" should resolve to an object. But found "'+r+'" instead.');return r}let d="undefined"!=typeof performance,p=d&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class h extends Error{}class m extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message="Cannot find module for page: "+e}}class y extends Error{constructor(e,t){super(),this.message="Failed to load static file for page: "+e+" "+t}}class b extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function _(e){return JSON.stringify({message:e.message,stack:e.stack})}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/714-f84e9a05035632c8.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/714-f84e9a05035632c8.js deleted file mode 100644 index 2b846a5..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/714-f84e9a05035632c8.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[714],{64433:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},74873:function(e,t,n){n.d(t,{b:function(){return o},k:function(){return i}});var r=n(64149),u=n(20881);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,o=r.useMemo(()=>i,Object.values(i));return(0,u.jsx)(n.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(u){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),l=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,a=n?.[e]?.[l]||o,c=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(a.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(n,u){let s=u?.[e]?.[l]||o,a=r.useContext(s);if(a)return a;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72832:function(e,t,n){n.d(t,{I0:function(){return b},XB:function(){return f},fC:function(){return y}});var r,u=n(64149),i=n(64433),o=n(79442),l=n(83954),s=n(2441),a=n(20881),c="dismissableLayer.update",d=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=u.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:h,onDismiss:w,...C}=e,g=u.useContext(d),[P,L]=u.useState(null),x=null!==(f=null==P?void 0:P.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=u.useState({}),W=(0,l.e)(t,e=>L(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),j=D.indexOf(O),k=P?D.indexOf(P):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,S=k>=j,T=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),i=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,u,{discrete:!0})},u={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!S||n||(null==b||b(e),null==h||h(e),e.defaultPrevented||null==w||w())},x),_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),i=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==E||E(e),null==h||h(e),e.defaultPrevented||null==w||w())},x);return!function(e,t=globalThis?.document){let n=(0,s.W)(e);u.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k!==g.layers.size-1||(null==y||y(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},x),u.useEffect(()=>{if(P)return v&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(P)),g.layers.add(P),p(),()=>{v&&1===g.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[P,x,v,g]),u.useEffect(()=>()=>{P&&(g.layers.delete(P),g.layersWithOutsidePointerEventsDisabled.delete(P),p())},[P,g]),u.useEffect(()=>{let e=()=>N({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(o.WV.div,{...C,ref:W,style:{pointerEvents:R?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,_.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,T.onPointerDownCapture)})});f.displayName="DismissableLayer";var v=u.forwardRef((e,t)=>{let n=u.useContext(d),r=u.useRef(null),i=(0,l.e)(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(o.WV.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:u}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),u?(0,o.jH)(i,l):i.dispatchEvent(l)}v.displayName="DismissableLayerBranch";var y=f,b=v},97498:function(e,t,n){n.d(t,{h:function(){return s}});var r=n(64149),u=n(50149),i=n(79442),o=n(61013),l=n(20881),s=r.forwardRef((e,t)=>{var n,s;let{container:a,...c}=e,[d,f]=r.useState(!1);(0,o.b)(()=>f(!0),[]);let v=a||d&&(null===(s=globalThis)||void 0===s?void 0:null===(n=s.document)||void 0===n?void 0:n.body);return v?u.createPortal((0,l.jsx)(i.WV.div,{...c,ref:t}),v):null});s.displayName="Portal"},79442:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return s}});var r=n(64149),u=n(50149),i=n(54098),o=n(20881),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},2441:function(e,t,n){n.d(t,{W:function(){return u}});var r=n(64149);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},45306:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(64149),u=n(2441);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,o=r.useRef(i),l=(0,u.W)(t);return r.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i,a=(0,u.W)(n);return[s,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}},61013:function(e,t,n){n.d(t,{b:function(){return u}});var r=n(64149),u=globalThis?.document?r.useLayoutEffect:()=>{}},20116:function(e,t,n){n.d(t,{j:function(){return i}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var i;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(u);return o[e][i]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,s,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...a}[t]):({...l,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/72-6b5cb49de987fb33.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/72-6b5cb49de987fb33.js deleted file mode 100644 index 69f263f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/72-6b5cb49de987fb33.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72],{55157:function(e,t,r){r.d(t,{u:function(){return n}});function n(e,[t,r]){return Math.min(r,Math.max(t,e))}},83027:function(e,t,r){r.d(t,{B:function(){return u}});var n=r(64149),l=r(245),o=r(83954),i=r(54098),a=r(20881);function u(e){let t=e+"CollectionProvider",[r,u]=(0,l.b)(t),[s,c]=r(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:r}=e,l=n.useRef(null),o=n.useRef(new Map).current;return(0,a.jsx)(s,{scope:t,itemMap:o,collectionRef:l,children:r})};d.displayName=t;let f=e+"CollectionSlot",p=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=c(f,r),u=(0,o.e)(t,l.collectionRef);return(0,a.jsx)(i.g7,{ref:u,children:n})});p.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",m=n.forwardRef((e,t)=>{let{scope:r,children:l,...u}=e,s=n.useRef(null),d=(0,o.e)(t,s),f=c(v,r);return n.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,a.jsx)(i.g7,{[h]:"",ref:d,children:l})});return m.displayName=v,[{Provider:d,Slot:p,ItemSlot:m},function(t){let r=c(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},86004:function(e,t,r){r.d(t,{gm:function(){return o}});var n=r(64149);r(20881);var l=n.createContext(void 0);function o(e){let t=n.useContext(l);return e||t||"ltr"}},62072:function(e,t,r){r.d(t,{$G:function(){return eK},B4:function(){return eP},JO:function(){return eN},VY:function(){return eV},Z0:function(){return eF},ZA:function(){return eL},__:function(){return eW},ck:function(){return eA},eT:function(){return eH},fC:function(){return eE},h_:function(){return eD},l_:function(){return e_},u_:function(){return eO},wU:function(){return eB},xz:function(){return eI}});var n=r(64149),l=r(50149),o=r(55157),i=r(64433),a=r(83027),u=r(83954),s=r(74873),c=r(86004),d=r(72832),f=r(57117),p=r(96616),v=r(89105),h=r(95420),m=r(97498),w=r(79442),g=r(54098),x=r(2441),y=r(45306),b=r(61013),S=r(32437),C=r(12230),M=r(32286),j=r(3748),R=r(20881),T=[" ","Enter","ArrowUp","ArrowDown"],k=[" ","Enter"],E="Select",[I,P,N]=(0,a.B)(E),[D,V]=(0,s.b)(E,[N,h.D7]),_=(0,h.D7)(),[L,W]=D(E),[A,H]=D(E),B=e=>{let{__scopeSelect:t,children:r,open:l,defaultOpen:o,onOpenChange:i,value:a,defaultValue:u,onValueChange:s,dir:d,name:f,autoComplete:p,disabled:m,required:w,form:g}=e,x=_(t),[b,S]=n.useState(null),[C,M]=n.useState(null),[j,T]=n.useState(!1),k=(0,c.gm)(d),[E=!1,P]=(0,y.T)({prop:l,defaultProp:o,onChange:i}),[N,D]=(0,y.T)({prop:a,defaultProp:u,onChange:s}),V=n.useRef(null),W=!b||g||!!b.closest("form"),[H,B]=n.useState(new Set),O=Array.from(H).map(e=>e.props.value).join(";");return(0,R.jsx)(h.fC,{...x,children:(0,R.jsxs)(L,{required:w,scope:t,trigger:b,onTriggerChange:S,valueNode:C,onValueNodeChange:M,valueNodeHasChildren:j,onValueNodeHasChildrenChange:T,contentId:(0,v.M)(),value:N,onValueChange:D,open:E,onOpenChange:P,dir:k,triggerPointerDownPosRef:V,disabled:m,children:[(0,R.jsx)(I.Provider,{scope:t,children:(0,R.jsx)(A,{scope:e.__scopeSelect,onNativeOptionAdd:n.useCallback(e=>{B(t=>new Set(t).add(e))},[]),onNativeOptionRemove:n.useCallback(e=>{B(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),W?(0,R.jsxs)(eR,{"aria-hidden":!0,required:w,tabIndex:-1,name:f,autoComplete:p,value:N,onChange:e=>D(e.target.value),disabled:m,form:g,children:[void 0===N?(0,R.jsx)("option",{value:""}):null,Array.from(H)]},O):null]})})};B.displayName=E;var O="SelectTrigger",K=n.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:l=!1,...o}=e,a=_(r),s=W(O,r),c=s.disabled||l,d=(0,u.e)(t,s.onTriggerChange),f=P(r),p=n.useRef("touch"),[v,m,g]=eT(e=>{let t=f().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=ek(t,e,r);void 0!==n&&s.onValueChange(n.value)}),x=e=>{c||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,R.jsx)(h.ee,{asChild:!0,...a,children:(0,R.jsx)(w.WV.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":ej(s.value)?"":void 0,...o,ref:d,onClick:(0,i.M)(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&x(e)}),onPointerDown:(0,i.M)(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())}),onKeyDown:(0,i.M)(o.onKeyDown,e=>{let t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&T.includes(e.key)&&(x(),e.preventDefault())})})})});K.displayName=O;var F="SelectValue",U=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:l,children:o,placeholder:i="",...a}=e,s=W(F,r),{onValueNodeHasChildrenChange:c}=s,d=void 0!==o,f=(0,u.e)(t,s.onValueNodeChange);return(0,b.b)(()=>{c(d)},[c,d]),(0,R.jsx)(w.WV.span,{...a,ref:f,style:{pointerEvents:"none"},children:ej(s.value)?(0,R.jsx)(R.Fragment,{children:i}):o})});U.displayName=F;var z=n.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...l}=e;return(0,R.jsx)(w.WV.span,{"aria-hidden":!0,...l,ref:t,children:n||"▼"})});z.displayName="SelectIcon";var q=e=>(0,R.jsx)(m.h,{asChild:!0,...e});q.displayName="SelectPortal";var Y="SelectContent",Z=n.forwardRef((e,t)=>{let r=W(Y,e.__scopeSelect),[o,i]=n.useState();return((0,b.b)(()=>{i(new DocumentFragment)},[]),r.open)?(0,R.jsx)(J,{...e,ref:t}):o?l.createPortal((0,R.jsx)(X,{scope:e.__scopeSelect,children:(0,R.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,R.jsx)("div",{children:e.children})})}),o):null});Z.displayName=Y;var[X,G]=D(Y),J=n.forwardRef((e,t)=>{let{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C,...T}=e,k=W(Y,r),[E,I]=n.useState(null),[N,D]=n.useState(null),V=(0,u.e)(t,e=>I(e)),[_,L]=n.useState(null),[A,H]=n.useState(null),B=P(r),[O,K]=n.useState(!1),F=n.useRef(!1);n.useEffect(()=>{if(E)return(0,M.Ry)(E)},[E]),(0,f.EW)();let U=n.useCallback(e=>{let[t,...r]=B().map(e=>e.ref.current),[n]=r.slice(-1),l=document.activeElement;for(let r of e)if(r===l||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&N&&(N.scrollTop=0),r===n&&N&&(N.scrollTop=N.scrollHeight),null==r||r.focus(),document.activeElement!==l))return},[B,N]),z=n.useCallback(()=>U([_,E]),[U,_,E]);n.useEffect(()=>{O&&z()},[O,z]);let{onOpenChange:q,triggerPointerDownPosRef:Z}=k;n.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var r,n,l,o;e={x:Math.abs(Math.round(t.pageX)-(null!==(l=null===(r=Z.current)||void 0===r?void 0:r.x)&&void 0!==l?l:0)),y:Math.abs(Math.round(t.pageY)-(null!==(o=null===(n=Z.current)||void 0===n?void 0:n.y)&&void 0!==o?o:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():E.contains(r.target)||q(!1),document.removeEventListener("pointermove",t),Z.current=null};return null!==Z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[E,q,Z]),n.useEffect(()=>{let e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[q]);let[G,J]=eT(e=>{let t=B().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=ek(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),ee=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==k.value&&k.value===t||n)&&(L(e),n&&(F.current=!0))},[k.value]),et=n.useCallback(()=>null==E?void 0:E.focus(),[E]),er=n.useCallback((e,t,r)=>{let n=!F.current&&!r;(void 0!==k.value&&k.value===t||n)&&H(e)},[k.value]),en="popper"===l?Q:$,el=en===Q?{side:c,sideOffset:v,align:h,alignOffset:m,arrowPadding:w,collisionBoundary:x,collisionPadding:y,sticky:b,hideWhenDetached:S,avoidCollisions:C}:{};return(0,R.jsx)(X,{scope:r,content:E,viewport:N,onViewportChange:D,itemRefCallback:ee,selectedItem:_,onItemLeave:et,itemTextRefCallback:er,focusSelectedItem:z,selectedItemText:A,position:l,isPositioned:O,searchRef:G,children:(0,R.jsx)(j.Z,{as:g.g7,allowPinchZoom:!0,children:(0,R.jsx)(p.M,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.M)(o,e=>{var t;null===(t=k.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,R.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,R.jsx)(en,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...T,...el,onPlaced:()=>K(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:(0,i.M)(T.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=B().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>U(t)),e.preventDefault()}})})})})})})});J.displayName="SelectContentImpl";var $=n.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:l,...i}=e,a=W(Y,r),s=G(Y,r),[c,d]=n.useState(null),[f,p]=n.useState(null),v=(0,u.e)(t,e=>p(e)),h=P(r),m=n.useRef(!1),g=n.useRef(!0),{viewport:x,selectedItem:y,selectedItemText:S,focusSelectedItem:C}=s,M=n.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&f&&x&&y&&S){let e=a.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),n=S.getBoundingClientRect();if("rtl"!==a.dir){let l=n.left-t.left,i=r.left-l,a=e.left-i,u=e.width+a,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,o.u)(i,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.left=f+"px"}else{let l=t.right-n.right,i=window.innerWidth-r.right-l,a=window.innerWidth-e.right-i,u=e.width+a,s=Math.max(u,t.width),d=window.innerWidth-10,f=(0,o.u)(i,[10,Math.max(10,d-s)]);c.style.minWidth=u+"px",c.style.right=f+"px"}let i=h(),u=window.innerHeight-20,s=x.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),w=parseInt(d.borderBottomWidth,10),g=p+v+s+parseInt(d.paddingBottom,10)+w,b=Math.min(5*y.offsetHeight,g),C=window.getComputedStyle(x),M=parseInt(C.paddingTop,10),j=parseInt(C.paddingBottom,10),R=e.top+e.height/2-10,T=y.offsetHeight/2,k=p+v+(y.offsetTop+T);if(k<=R){let e=i.length>0&&y===i[i.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-x.offsetTop-x.offsetHeight;c.style.height=k+Math.max(u-R,T+(e?j:0)+t+w)+"px"}else{let e=i.length>0&&y===i[0].ref.current;c.style.top="0px";let t=Math.max(R,p+x.offsetTop+(e?M:0)+T);c.style.height=t+(g-k)+"px",x.scrollTop=k-R+x.offsetTop}c.style.margin="".concat(10,"px 0"),c.style.minHeight=b+"px",c.style.maxHeight=u+"px",null==l||l(),requestAnimationFrame(()=>m.current=!0)}},[h,a.trigger,a.valueNode,c,f,x,y,S,a.dir,l]);(0,b.b)(()=>M(),[M]);let[j,T]=n.useState();(0,b.b)(()=>{f&&T(window.getComputedStyle(f).zIndex)},[f]);let k=n.useCallback(e=>{e&&!0===g.current&&(M(),null==C||C(),g.current=!1)},[M,C]);return(0,R.jsx)(ee,{scope:r,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:k,children:(0,R.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,R.jsx)(w.WV.div,{...i,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});$.displayName="SelectItemAlignedPosition";var Q=n.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:l=10,...o}=e,i=_(r);return(0,R.jsx)(h.VY,{...i,...o,ref:t,align:n,collisionPadding:l,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Q.displayName="SelectPopperPosition";var[ee,et]=D(Y,{}),er="SelectViewport",en=n.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:l,...o}=e,a=G(er,r),s=et(er,r),c=(0,u.e)(t,a.onViewportChange),d=n.useRef(0);return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),(0,R.jsx)(I.Slot,{scope:r,children:(0,R.jsx)(w.WV.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:(0,i.M)(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if((null==n?void 0:n.current)&&r){let e=Math.abs(d.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,l=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(l0?a:0,r.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});en.displayName=er;var el="SelectGroup",[eo,ei]=D(el),ea=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=(0,v.M)();return(0,R.jsx)(eo,{scope:r,id:l,children:(0,R.jsx)(w.WV.div,{role:"group","aria-labelledby":l,...n,ref:t})})});ea.displayName=el;var eu="SelectLabel",es=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=ei(eu,r);return(0,R.jsx)(w.WV.div,{id:l.id,...n,ref:t})});es.displayName=eu;var ec="SelectItem",[ed,ef]=D(ec),ep=n.forwardRef((e,t)=>{let{__scopeSelect:r,value:l,disabled:o=!1,textValue:a,...s}=e,c=W(ec,r),d=G(ec,r),f=c.value===l,[p,h]=n.useState(null!=a?a:""),[m,g]=n.useState(!1),x=(0,u.e)(t,e=>{var t;return null===(t=d.itemRefCallback)||void 0===t?void 0:t.call(d,e,l,o)}),y=(0,v.M)(),b=n.useRef("touch"),S=()=>{o||(c.onValueChange(l),c.onOpenChange(!1))};if(""===l)throw Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,R.jsx)(ed,{scope:r,value:l,disabled:o,textId:y,isSelected:f,onItemTextChange:n.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,R.jsx)(I.ItemSlot,{scope:r,value:l,disabled:o,textValue:p,children:(0,R.jsx)(w.WV.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:x,onFocus:(0,i.M)(s.onFocus,()=>g(!0)),onBlur:(0,i.M)(s.onBlur,()=>g(!1)),onClick:(0,i.M)(s.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:(0,i.M)(s.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:(0,i.M)(s.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,i.M)(s.onPointerMove,e=>{if(b.current=e.pointerType,o){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,i.M)(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=d.onItemLeave)||void 0===t||t.call(d)}}),onKeyDown:(0,i.M)(s.onKeyDown,e=>{var t;(null===(t=d.searchRef)||void 0===t?void 0:t.current)!==""&&" "===e.key||(k.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});ep.displayName=ec;var ev="SelectItemText",eh=n.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:i,...a}=e,s=W(ev,r),c=G(ev,r),d=ef(ev,r),f=H(ev,r),[p,v]=n.useState(null),h=(0,u.e)(t,e=>v(e),d.onItemTextChange,e=>{var t;return null===(t=c.itemTextRefCallback)||void 0===t?void 0:t.call(c,e,d.value,d.disabled)}),m=null==p?void 0:p.textContent,g=n.useMemo(()=>(0,R.jsx)("option",{value:d.value,disabled:d.disabled,children:m},d.value),[d.disabled,d.value,m]),{onNativeOptionAdd:x,onNativeOptionRemove:y}=f;return(0,b.b)(()=>(x(g),()=>y(g)),[x,y,g]),(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(w.WV.span,{id:d.textId,...a,ref:h}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});eh.displayName=ev;var em="SelectItemIndicator",ew=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return ef(em,r).isSelected?(0,R.jsx)(w.WV.span,{"aria-hidden":!0,...n,ref:t}):null});ew.displayName=em;var eg="SelectScrollUpButton",ex=n.forwardRef((e,t)=>{let r=G(eg,e.__scopeSelect),l=et(eg,e.__scopeSelect),[o,i]=n.useState(!1),a=(0,u.e)(t,l.onScrollButtonChange);return(0,b.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){i(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ex.displayName=eg;var ey="SelectScrollDownButton",eb=n.forwardRef((e,t)=>{let r=G(ey,e.__scopeSelect),l=et(ey,e.__scopeSelect),[o,i]=n.useState(!1),a=(0,u.e)(t,l.onScrollButtonChange);return(0,b.b)(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;i(Math.ceil(t.scrollTop)t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),o?(0,R.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eb.displayName=ey;var eS=n.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:l,...o}=e,a=G("SelectScrollButton",r),u=n.useRef(null),s=P(r),c=n.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return n.useEffect(()=>()=>c(),[c]),(0,b.b)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[s]),(0,R.jsx)(w.WV.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:(0,i.M)(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(l,50))}),onPointerMove:(0,i.M)(o.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===u.current&&(u.current=window.setInterval(l,50))}),onPointerLeave:(0,i.M)(o.onPointerLeave,()=>{c()})})}),eC=n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,R.jsx)(w.WV.div,{"aria-hidden":!0,...n,ref:t})});eC.displayName="SelectSeparator";var eM="SelectArrow";function ej(e){return""===e||void 0===e}n.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,l=_(r),o=W(eM,r),i=G(eM,r);return o.open&&"popper"===i.position?(0,R.jsx)(h.Eh,{...l,...n,ref:t}):null}).displayName=eM;var eR=n.forwardRef((e,t)=>{let{value:r,...l}=e,o=n.useRef(null),i=(0,u.e)(t,o),a=(0,S.D)(r);return n.useEffect(()=>{let e=o.current,t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(a!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[a,r]),(0,R.jsx)(C.T,{asChild:!0,children:(0,R.jsx)("select",{...l,ref:i,defaultValue:r})})});function eT(e){let t=(0,x.W)(e),r=n.useRef(""),l=n.useRef(0),o=n.useCallback(e=>{let n=r.current+e;t(n),function e(t){r.current=t,window.clearTimeout(l.current),""!==t&&(l.current=window.setTimeout(()=>e(""),1e3))}(n)},[t]),i=n.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,i]}function ek(e,t,r){var n;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(n=Math.max(r?e.indexOf(r):-1,0),e.map((t,r)=>e[(n+r)%e.length]));1===l.length&&(o=o.filter(e=>e!==r));let i=o.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return i!==r?i:void 0}eR.displayName="BubbleSelect";var eE=B,eI=K,eP=U,eN=z,eD=q,eV=Z,e_=en,eL=ea,eW=es,eA=ep,eH=eh,eB=ew,eO=ex,eK=eb,eF=eC},32437:function(e,t,r){r.d(t,{D:function(){return l}});var n=r(64149);function l(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},12230:function(e,t,r){r.d(t,{T:function(){return i},f:function(){return a}});var n=r(64149),l=r(79442),o=r(20881),i=n.forwardRef((e,t)=>(0,o.jsx)(l.WV.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));i.displayName="VisuallyHidden";var a=i}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7829-6db56c17b5199270.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7829-6db56c17b5199270.js new file mode 100644 index 0000000..e92173d --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/7829-6db56c17b5199270.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7829],{92093:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(64149);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var i={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"};let u=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:l,className:s="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:n,strokeWidth:l?24*Number(u)/Number(o):u,className:a("lucide",s),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:l,...s}=n;return(0,r.createElement)(u,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),l),...s})});return n.displayName="".concat(e),n}},36306:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},395:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},37971:function(e,t,n){n.d(t,{VY:function(){return S},fC:function(){return k},xz:function(){return P}});var r,o=n(64149),a=n(64433),i=n(74873),u=n(45306),l=n(83954),s=n(95420),c=(n(97498),n(45485)),d=n(79442),f=n(72832),p=n(20881),v="HoverCard",[m,h]=(0,i.b)(v,[s.D7]),w=(0,s.D7)(),[N,y]=m(v),g=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:a,onOpenChange:i,openDelay:l=700,closeDelay:c=300}=e,d=w(t),f=o.useRef(0),v=o.useRef(0),m=o.useRef(!1),h=o.useRef(!1),[y=!1,g]=(0,u.T)({prop:r,defaultProp:a,onChange:i}),x=o.useCallback(()=>{clearTimeout(v.current),f.current=window.setTimeout(()=>g(!0),l)},[l,g]),C=o.useCallback(()=>{clearTimeout(f.current),m.current||h.current||(v.current=window.setTimeout(()=>g(!1),c))},[c,g]),E=o.useCallback(()=>g(!1),[g]);return o.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(v.current)},[]),(0,p.jsx)(N,{scope:t,open:y,onOpenChange:g,onOpen:x,onClose:C,onDismiss:E,hasSelectionRef:m,isPointerDownOnContentRef:h,children:(0,p.jsx)(s.fC,{...d,children:n})})};g.displayName=v;var x="HoverCardTrigger",C=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=y(x,n),i=w(n);return(0,p.jsx)(s.ee,{asChild:!0,...i,children:(0,p.jsx)(d.WV.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:(0,a.M)(e.onPointerEnter,b(o.onOpen)),onPointerLeave:(0,a.M)(e.onPointerLeave,b(o.onClose)),onFocus:(0,a.M)(e.onFocus,o.onOpen),onBlur:(0,a.M)(e.onBlur,o.onClose),onTouchStart:(0,a.M)(e.onTouchStart,e=>e.preventDefault())})})});C.displayName=x;var[E,T]=m("HoverCardPortal",{forceMount:void 0}),M="HoverCardContent",R=o.forwardRef((e,t)=>{let n=T(M,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=y(M,e.__scopeHoverCard);return(0,p.jsx)(c.z,{present:r||i.open,children:(0,p.jsx)(O,{"data-state":i.open?"open":"closed",...o,onPointerEnter:(0,a.M)(e.onPointerEnter,b(i.onOpen)),onPointerLeave:(0,a.M)(e.onPointerLeave,b(i.onClose)),ref:t})})});R.displayName=M;var O=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...v}=e,m=y(M,n),h=w(n),N=o.useRef(null),g=(0,l.e)(t,N),[x,C]=o.useState(!1);return o.useEffect(()=>{if(x){let e=document.body;return r=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r,e.style.webkitUserSelect=r}}},[x]),o.useEffect(()=>{if(N.current){let e=()=>{C(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),o.useEffect(()=>{N.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(N.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,p.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:(0,a.M)(c,e=>{e.preventDefault()}),onDismiss:m.onDismiss,children:(0,p.jsx)(s.VY,{...h,...v,onPointerDown:(0,a.M)(v.onPointerDown,e=>{e.currentTarget.contains(e.target)&&C(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:g,style:{...v.style,userSelect:x?"text":void 0,WebkitUserSelect:x?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function b(e){return t=>"touch"===t.pointerType?void 0:e()}o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=w(n);return(0,p.jsx)(s.Eh,{...o,...r,ref:t})}).displayName="HoverCardArrow";var k=g,P=C,S=R},51212:function(e,t,n){n.d(t,{f:function(){return u}});var r=n(64149),o=n(79442),a=n(20881),i=r.forwardRef((e,t)=>(0,a.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var u=i},45485:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(64149),o=n(83954),a=n(61013),i=e=>{var t,n;let i,l;let{present:s,children:c}=e,d=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=u(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=l.current,n=s.current;if(n!==e){let r=c.current,o=u(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,a.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=u(l.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(c.current=u(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(s),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,o.e)(d.ref,(i=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in i&&i.isReactWarning?f.ref:(i=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},48897:function(e,t,n){n.d(t,{f:function(){return s}});var r=n(64149),o=n(79442),a=n(20881),i="horizontal",u=["horizontal","vertical"],l=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...l}=e,s=u.includes(r)?r:i;return(0,a.jsx)(o.WV.div,{"data-orientation":s,...n?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var s=l}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/829-f0aacc5828a765ae.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/829-f0aacc5828a765ae.js deleted file mode 100644 index f4051ef..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/829-f0aacc5828a765ae.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[829],{92093:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(64149);let o=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=function(){for(var e=arguments.length,t=Array(e),n=0;n!!e&&n.indexOf(e)===t).join(" ")};var i={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"};let u=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:u=2,absoluteStrokeWidth:l,className:s="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...i,width:o,height:o,stroke:n,strokeWidth:l?24*Number(u)/Number(o):u,className:a("lucide",s),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,i)=>{let{className:l,...s}=n;return(0,r.createElement)(u,{ref:i,iconNode:t,className:a("lucide-".concat(o(e)),l),...s})});return n.displayName="".concat(e),n}},36306:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},395:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(92093).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},37971:function(e,t,n){n.d(t,{VY:function(){return S},fC:function(){return k},xz:function(){return P}});var r,o=n(64149),a=n(64433),i=n(74873),u=n(45306),l=n(83954),s=n(95420),c=(n(97498),n(45485)),d=n(79442),f=n(72832),p=n(20881),v="HoverCard",[m,h]=(0,i.b)(v,[s.D7]),w=(0,s.D7)(),[N,y]=m(v),g=e=>{let{__scopeHoverCard:t,children:n,open:r,defaultOpen:a,onOpenChange:i,openDelay:l=700,closeDelay:c=300}=e,d=w(t),f=o.useRef(0),v=o.useRef(0),m=o.useRef(!1),h=o.useRef(!1),[y=!1,g]=(0,u.T)({prop:r,defaultProp:a,onChange:i}),x=o.useCallback(()=>{clearTimeout(v.current),f.current=window.setTimeout(()=>g(!0),l)},[l,g]),C=o.useCallback(()=>{clearTimeout(f.current),m.current||h.current||(v.current=window.setTimeout(()=>g(!1),c))},[c,g]),E=o.useCallback(()=>g(!1),[g]);return o.useEffect(()=>()=>{clearTimeout(f.current),clearTimeout(v.current)},[]),(0,p.jsx)(N,{scope:t,open:y,onOpenChange:g,onOpen:x,onClose:C,onDismiss:E,hasSelectionRef:m,isPointerDownOnContentRef:h,children:(0,p.jsx)(s.fC,{...d,children:n})})};g.displayName=v;var x="HoverCardTrigger",C=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=y(x,n),i=w(n);return(0,p.jsx)(s.ee,{asChild:!0,...i,children:(0,p.jsx)(d.WV.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:(0,a.M)(e.onPointerEnter,b(o.onOpen)),onPointerLeave:(0,a.M)(e.onPointerLeave,b(o.onClose)),onFocus:(0,a.M)(e.onFocus,o.onOpen),onBlur:(0,a.M)(e.onBlur,o.onClose),onTouchStart:(0,a.M)(e.onTouchStart,e=>e.preventDefault())})})});C.displayName=x;var[E,T]=m("HoverCardPortal",{forceMount:void 0}),M="HoverCardContent",R=o.forwardRef((e,t)=>{let n=T(M,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,i=y(M,e.__scopeHoverCard);return(0,p.jsx)(c.z,{present:r||i.open,children:(0,p.jsx)(O,{"data-state":i.open?"open":"closed",...o,onPointerEnter:(0,a.M)(e.onPointerEnter,b(i.onOpen)),onPointerLeave:(0,a.M)(e.onPointerLeave,b(i.onClose)),ref:t})})});R.displayName=M;var O=o.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:d,...v}=e,m=y(M,n),h=w(n),N=o.useRef(null),g=(0,l.e)(t,N),[x,C]=o.useState(!1);return o.useEffect(()=>{if(x){let e=document.body;return r=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r,e.style.webkitUserSelect=r}}},[x]),o.useEffect(()=>{if(N.current){let e=()=>{C(!1),m.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;(null===(e=document.getSelection())||void 0===e?void 0:e.toString())!==""&&(m.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!1}}},[m.isPointerDownOnContentRef,m.hasSelectionRef]),o.useEffect(()=>{N.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(N.current).forEach(e=>e.setAttribute("tabindex","-1"))}),(0,p.jsx)(f.XB,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:d,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:(0,a.M)(c,e=>{e.preventDefault()}),onDismiss:m.onDismiss,children:(0,p.jsx)(s.VY,{...h,...v,onPointerDown:(0,a.M)(v.onPointerDown,e=>{e.currentTarget.contains(e.target)&&C(!0),m.hasSelectionRef.current=!1,m.isPointerDownOnContentRef.current=!0}),ref:g,style:{...v.style,userSelect:x?"text":void 0,WebkitUserSelect:x?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function b(e){return t=>"touch"===t.pointerType?void 0:e()}o.forwardRef((e,t)=>{let{__scopeHoverCard:n,...r}=e,o=w(n);return(0,p.jsx)(s.Eh,{...o,...r,ref:t})}).displayName="HoverCardArrow";var k=g,P=C,S=R},51212:function(e,t,n){n.d(t,{f:function(){return u}});var r=n(64149),o=n(79442),a=n(20881),i=r.forwardRef((e,t)=>(0,a.jsx)(o.WV.label,{...e,ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var u=i},45485:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(64149),o=n(83954),a=n(61013),i=e=>{var t,n;let i,l;let{present:s,children:c}=e,d=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=u(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=l.current,n=s.current;if(n!==e){let r=c.current,o=u(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,a.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=u(l.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!s.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(c.current=u(l.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(s),f="function"==typeof c?c({present:d.isPresent}):r.Children.only(c),p=(0,o.e)(d.ref,(i=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in i&&i.isReactWarning?f.ref:(i=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof c||d.isPresent?r.cloneElement(f,{ref:p}):null};function u(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},48897:function(e,t,n){n.d(t,{f:function(){return s}});var r=n(64149),o=n(79442),a=n(20881),i="horizontal",u=["horizontal","vertical"],l=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=i,...l}=e,s=u.includes(r)?r:i;return(0,a.jsx)(o.WV.div,{"data-orientation":s,...n?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},...l,ref:t})});l.displayName="Separator";var s=l}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8714-2a49f958b43b9e79.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8714-2a49f958b43b9e79.js new file mode 100644 index 0000000..0342657 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/8714-2a49f958b43b9e79.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8714],{64433:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}},74873:function(e,t,n){n.d(t,{b:function(){return o},k:function(){return i}});var r=n(64149),u=n(20881);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,o=r.useMemo(()=>i,Object.values(i));return(0,u.jsx)(n.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(u){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function o(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let u=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:u}}),[n,u])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),l=n.length;n=[...n,i];let s=t=>{let{scope:n,children:i,...s}=t,a=n?.[e]?.[l]||o,c=r.useMemo(()=>s,Object.values(s));return(0,u.jsx)(a.Provider,{value:c,children:i})};return s.displayName=t+"Provider",[s,function(n,u){let s=u?.[e]?.[l]||o,a=r.useContext(s);if(a)return a;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=n.reduce((t,{useScope:n,scopeName:r})=>{let u=n(e)[`__scope${r}`];return{...t,...u}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}(i,...t)]}},72832:function(e,t,n){n.d(t,{I0:function(){return b},XB:function(){return f},fC:function(){return y}});var r,u=n(64149),i=n(64433),o=n(79442),l=n(83954),s=n(2441),a=n(20881),c="dismissableLayer.update",d=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=u.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:v=!1,onEscapeKeyDown:y,onPointerDownOutside:b,onFocusOutside:E,onInteractOutside:h,onDismiss:w,...C}=e,g=u.useContext(d),[P,L]=u.useState(null),x=null!==(f=null==P?void 0:P.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,N]=u.useState({}),W=(0,l.e)(t,e=>L(e)),D=Array.from(g.layers),[O]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),j=D.indexOf(O),k=P?D.indexOf(P):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,S=k>=j,T=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),i=u.useRef(!1),o=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,u,{discrete:!0})},u={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...g.branches].some(e=>e.contains(t));!S||n||(null==b||b(e),null==h||h(e),e.defaultPrevented||null==w||w())},x),_=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,s.W)(e),i=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...g.branches].some(e=>e.contains(t))||(null==E||E(e),null==h||h(e),e.defaultPrevented||null==w||w())},x);return!function(e,t=globalThis?.document){let n=(0,s.W)(e);u.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k!==g.layers.size-1||(null==y||y(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},x),u.useEffect(()=>{if(P)return v&&(0===g.layersWithOutsidePointerEventsDisabled.size&&(r=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(P)),g.layers.add(P),p(),()=>{v&&1===g.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=r)}},[P,x,v,g]),u.useEffect(()=>()=>{P&&(g.layers.delete(P),g.layersWithOutsidePointerEventsDisabled.delete(P),p())},[P,g]),u.useEffect(()=>{let e=()=>N({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,a.jsx)(o.WV.div,{...C,ref:W,style:{pointerEvents:R?S?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,_.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,T.onPointerDownCapture)})});f.displayName="DismissableLayer";var v=u.forwardRef((e,t)=>{let n=u.useContext(d),r=u.useRef(null),i=(0,l.e)(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(o.WV.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:u}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),u?(0,o.jH)(i,l):i.dispatchEvent(l)}v.displayName="DismissableLayerBranch";var y=f,b=v},97498:function(e,t,n){n.d(t,{h:function(){return s}});var r=n(64149),u=n(50149),i=n(79442),o=n(61013),l=n(20881),s=r.forwardRef((e,t)=>{var n,s;let{container:a,...c}=e,[d,f]=r.useState(!1);(0,o.b)(()=>f(!0),[]);let v=a||d&&(null===(s=globalThis)||void 0===s?void 0:null===(n=s.document)||void 0===n?void 0:n.body);return v?u.createPortal((0,l.jsx)(i.WV.div,{...c,ref:t}),v):null});s.displayName="Portal"},79442:function(e,t,n){n.d(t,{WV:function(){return l},jH:function(){return s}});var r=n(64149),u=n(50149),i=n(54098),o=n(20881),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...u}=e,l=r?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(l,{...u,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}},2441:function(e,t,n){n.d(t,{W:function(){return u}});var r=n(64149);function u(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},45306:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(64149),u=n(2441);function i({prop:e,defaultProp:t,onChange:n=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[i]=n,o=r.useRef(i),l=(0,u.W)(t);return r.useEffect(()=>{o.current!==i&&(l(i),o.current=i)},[i,o,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:i,a=(0,u.W)(n);return[s,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&a(n)}else o(t)},[l,e,o,a])]}},61013:function(e,t,n){n.d(t,{b:function(){return u}});var r=n(64149),u=globalThis?.document?r.useLayoutEffect:()=>{}},20116:function(e,t,n){n.d(t,{j:function(){return i}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,u=function(){for(var e,t,n=0,r="";nn=>{var i;if((null==t?void 0:t.variants)==null)return u(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:l}=t,s=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],u=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(u);return o[e][i]}),a=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return u(e,s,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...u}=t;return Object.entries(u).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...a}[t]):({...l,...a})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-5b4fe3c9c99f378b.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-5b4fe3c9c99f378b.js new file mode 100644 index 0000000..815cbec --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-5b4fe3c9c99f378b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7409],{66325:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(89094)}])},89094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(88806);let i=n(20881);n(64149);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[8985,5330,1744],function(){return e(e.s=66325)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-d7951e1cf3de9f43.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-d7951e1cf3de9f43.js deleted file mode 100644 index 1d9cbb7..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/_not-found/page-d7951e1cf3de9f43.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[409],{66325:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_not-found/page",function(){return n(89094)}])},89094:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return s}}),n(88806);let i=n(20881);n(64149);let o={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},l={display:"inline-block"},r={display:"inline-block",margin:"0 20px 0 0",padding:"0 23px 0 0",fontSize:24,fontWeight:500,verticalAlign:"top",lineHeight:"49px"},d={fontSize:14,fontWeight:400,lineHeight:"49px",margin:0};function s(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:"404: This page could not be found."}),(0,i.jsx)("div",{style:o,children:(0,i.jsxs)("div",{children:[(0,i.jsx)("style",{dangerouslySetInnerHTML:{__html:"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}),(0,i.jsx)("h1",{className:"next-error-h1",style:r,children:"404"}),(0,i.jsx)("div",{style:l,children:(0,i.jsx)("h2",{style:d,children:"This page could not be found."})})]})})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)}},function(e){e.O(0,[985,330,744],function(){return e(e.s=66325)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-457768215dca2f2c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-457768215dca2f2c.js new file mode 100644 index 0000000..3a8d6f9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-457768215dca2f2c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9878],{26888:function(e,n,t){Promise.resolve().then(t.bind(t,13967))},13967:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});var r=t(20881),s=t(64149),a=t(94920),l=()=>{let[e,n]=(0,s.useState)(null),[t,r]=(0,s.useState)(!0),a=(0,s.useCallback)(async()=>{try{r(!0);let e=await fetch("/cgi-bin/fetch_data.sh?set=3"),t=await e.json();console.log("Fetched about data:",t);let s={manufacturer:t[0].response.split("\n")[1].trim(),model:t[1].response.split("\n")[1].trim(),firmwareVersion:t[2].response.split("\n")[1].trim(),phoneNum:t[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:t[4].response.split("\n")[1].trim(),iccid:t[5].response.split("\n")[1].split(":")[1].trim(),imei:t[6].response.split("\n")[1].trim(),currentDeviceIP:t[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:t[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:t[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:t[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:t[9].response.split("\n")[5].split(":")[2].trim()};n(s),console.log("Processed cell settings data:",s)}catch(e){console.error("Error fetching cell settings data:",e)}r(!1)},[]);return(0,s.useEffect)(()=>{a()},[a]),{data:e,isLoading:t,fetchAboutData:a}},i=t(24004),c=t(88766),o=()=>{let{data:e,isLoading:n}=l();return(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"QuecManager"}),(0,r.jsx)(a.SZ,{children:"What is QuecManager and how it can help you."})]}),(0,r.jsxs)(a.aY,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"Device Technical Details"}),(0,r.jsx)(a.SZ,{children:"View technical details of your device."})]}),(0,r.jsx)(a.aY,{children:(0,r.jsxs)(i.x,{className:"w-full",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Modem Manufacturer"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.manufacturer)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Modem Model"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.model)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Firmware Revision"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.firmwareVersion)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"LTE Category"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsxs)(r.Fragment,{children:["CAT-",(null==e?void 0:e.lteCategory)||"N/A"]})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active Phone Number"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.phoneNum)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active IMSI"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.imsi)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active ICCID"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.iccid)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"IMEI"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.imei)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Current Device IP"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.currentDeviceIP)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"LAN Gateway"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.lanGateway)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"WWAN IPv4"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.wwanIPv4)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"WWAN IPv6"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.wwanIPv6)||"N/A"})})]})]}),(0,r.jsx)(i.B,{orientation:"horizontal"})]})})]}),(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"About Us"}),(0,r.jsx)(a.SZ,{children:"Who we are and what we do."})]}),(0,r.jsxs)(a.aY,{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,r.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager began as 'Simple Admin,' a straightforward GUI in the RGMII toolkit. Over time, it’s evolved into a comprehensive dashboard with powerful features for managing cellular modems. While we’ve moved beyond the 'Simple' name, our goal remains the same: providing a clean, easy-to-use interface that makes advanced modem management feel straightforward and accessible."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,r.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,r.jsxs)("li",{children:["RGMII Toolkit and Documentation, and Backend",(0,r.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,r.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager GUI",(0,r.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,r.jsxs)("li",{children:["SMS Feature",(0,r.jsx)("a",{href:"https://github.com/snjzb",target:"_blank",className:"text-primary font-semibold ml-2",children:"snjzb"})]}),(0,r.jsxs)("li",{children:["Original Simple Admin",(0,r.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,r.jsxs)("li",{children:["Original Socat Bridge",(0,r.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,r.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,r.jsx)(a.eW,{className:"flex justify-center",children:(0,r.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},94920:function(e,n,t){"use strict";t.d(n,{Ol:function(){return i},SZ:function(){return o},Zb:function(){return l},aY:function(){return d},eW:function(){return u},ll:function(){return c}});var r=t(20881),s=t(64149),a=t(90270);let l=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...s})});l.displayName="Card";let i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",t),...s})});i.displayName="CardHeader";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("h3",{ref:n,className:(0,a.cn)("font-semibold leading-none tracking-tight",t),...s})});c.displayName="CardTitle";let o=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("p",{ref:n,className:(0,a.cn)("text-sm text-muted-foreground",t),...s})});o.displayName="CardDescription";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("p-6 pt-0",t),...s})});d.displayName="CardContent";let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("flex items-center p-6 pt-0",t),...s})});u.displayName="CardFooter"},24004:function(e,n,t){"use strict";t.d(n,{B:function(){return c},x:function(){return i}});var r=t(20881),s=t(64149),a=t(82310),l=t(90270);let i=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,r.jsxs)(a.fC,{ref:n,className:(0,l.cn)("relative overflow-hidden",t),...i,children:[(0,r.jsx)(a.l_,{className:"h-full w-full rounded-[inherit]",children:s}),(0,r.jsx)(c,{}),(0,r.jsx)(a.Ns,{})]})});i.displayName=a.fC.displayName;let c=s.forwardRef((e,n)=>{let{className:t,orientation:s="vertical",...i}=e;return(0,r.jsx)(a.gb,{ref:n,orientation:s,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...i,children:(0,r.jsx)(a.q4,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=a.gb.displayName},88766:function(e,n,t){"use strict";t.d(n,{O:function(){return a}});var r=t(20881),s=t(90270);function a(e){let{className:n,...t}=e;return(0,r.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",n),...t})}},90270:function(e,n,t){"use strict";t.d(n,{cn:function(){return a}});var r=t(33958),s=t(61779);function a(){for(var e=arguments.length,n=Array(e),t=0;t{let{children:n,...a}=e,l=r.useMemo(()=>a,Object.values(a));return(0,s.jsx)(t.Provider,{value:l,children:n})};return a.displayName=e+"Provider",[a,function(s){let a=r.useContext(t);if(a)return a;if(void 0!==n)return n;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function l(e,n=[]){let t=[],a=()=>{let n=t.map(e=>r.createContext(e));return function(t){let s=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:s}}),[t,s])}};return a.scopeName=e,[function(n,a){let l=r.createContext(a),i=t.length;t=[...t,a];let c=n=>{let{scope:t,children:a,...c}=n,o=t?.[e]?.[i]||l,d=r.useMemo(()=>c,Object.values(c));return(0,s.jsx)(o.Provider,{value:d,children:a})};return c.displayName=n+"Provider",[c,function(t,s){let c=s?.[e]?.[i]||l,o=r.useContext(c);if(o)return o;if(void 0!==a)return a;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=t.reduce((n,{useScope:t,scopeName:r})=>{let s=t(e)[`__scope${r}`];return{...n,...s}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:s}),[s])}};return t.scopeName=n.scopeName,t}(a,...n)]}},45485:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});var r=t(64149),s=t(83954),a=t(61013),l=e=>{var n,t;let l,c;let{present:o,children:d}=e,u=function(e){var n,t;let[s,l]=r.useState(),c=r.useRef({}),o=r.useRef(e),d=r.useRef("none"),[u,m]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=i(c.current);d.current="mounted"===u?e:"none"},[u]),(0,a.b)(()=>{let n=c.current,t=o.current;if(t!==e){let r=d.current,s=i(n);e?m("MOUNT"):"none"===s||(null==n?void 0:n.display)==="none"?m("UNMOUNT"):t&&r!==s?m("ANIMATION_OUT"):m("UNMOUNT"),o.current=e}},[e,m]),(0,a.b)(()=>{if(s){var e;let n;let t=null!==(e=s.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=i(c.current).includes(e.animationName);if(e.target===s&&r&&(m("ANIMATION_END"),!o.current)){let e=s.style.animationFillMode;s.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=e)})}},a=e=>{e.target===s&&(d.current=i(c.current))};return s.addEventListener("animationstart",a),s.addEventListener("animationcancel",r),s.addEventListener("animationend",r),()=>{t.clearTimeout(n),s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",r),s.removeEventListener("animationend",r)}}m("ANIMATION_END")},[s,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{e&&(c.current=getComputedStyle(e)),l(e)},[])}}(o),m="function"==typeof d?d({present:u.isPresent}):r.Children.only(d),f=(0,s.e)(u.ref,(l=null===(n=Object.getOwnPropertyDescriptor(m.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in l&&l.isReactWarning?m.ref:(l=null===(t=Object.getOwnPropertyDescriptor(m,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in l&&l.isReactWarning?m.props.ref:m.props.ref||m.ref);return"function"==typeof d||u.isPresent?r.cloneElement(m,{ref:f}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},79442:function(e,n,t){"use strict";t.d(n,{WV:function(){return i},jH:function(){return c}});var r=t(64149),s=t(50149),a=t(54098),l=t(20881),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let t=r.forwardRef((e,t)=>{let{asChild:r,...s}=e,i=r?a.g7:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...s,ref:t})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function c(e,n){e&&s.flushSync(()=>e.dispatchEvent(n))}},2441:function(e,n,t){"use strict";t.d(n,{W:function(){return s}});var r=t(64149);function s(e){let n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}},61013:function(e,n,t){"use strict";t.d(n,{b:function(){return s}});var r=t(64149),s=globalThis?.document?r.useLayoutEffect:()=>{}}},function(e){e.O(0,[4059,2310,8985,5330,1744],function(){return e(e.s=26888)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-6f80570614b72ce6.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-6f80570614b72ce6.js deleted file mode 100644 index a7ab1ae..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/about/page-6f80570614b72ce6.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[878],{26888:function(e,n,t){Promise.resolve().then(t.bind(t,13967))},13967:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return o}});var r=t(20881),s=t(64149),a=t(94920),l=()=>{let[e,n]=(0,s.useState)(null),[t,r]=(0,s.useState)(!0),a=(0,s.useCallback)(async()=>{try{r(!0);let e=await fetch("/cgi-bin/fetch_data.sh?set=3"),t=await e.json();console.log("Fetched about data:",t);let s={manufacturer:t[0].response.split("\n")[1].trim(),model:t[1].response.split("\n")[1].trim(),firmwareVersion:t[2].response.split("\n")[1].trim(),phoneNum:t[3].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim(),imsi:t[4].response.split("\n")[1].trim(),iccid:t[5].response.split("\n")[1].split(":")[1].trim(),imei:t[6].response.split("\n")[1].trim(),currentDeviceIP:t[7].response.split("\n")[1].split(",")[1].replace(/"/g,"").trim(),lanGateway:t[7].response.split("\n")[1].split(":")[1].split(",")[3].replace(/"/g,"").trim(),wwanIPv4:t[8].response.split("\n")[1].split(":")[1].split(",")[4].replace(/"/g,"").trim(),wwanIPv6:t[8].response.split("\n")[2].split(",")[4].replace(/"/g,"").trim(),lteCategory:t[9].response.split("\n")[5].split(":")[2].trim()};n(s),console.log("Processed cell settings data:",s)}catch(e){console.error("Error fetching cell settings data:",e)}r(!1)},[]);return(0,s.useEffect)(()=>{a()},[a]),{data:e,isLoading:t,fetchAboutData:a}},i=t(24004),c=t(88766),o=()=>{let{data:e,isLoading:n}=l();return(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"QuecManager"}),(0,r.jsx)(a.SZ,{children:"What is QuecManager and how it can help you."})]}),(0,r.jsxs)(a.aY,{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-8",children:[(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"Device Technical Details"}),(0,r.jsx)(a.SZ,{children:"View technical details of your device."})]}),(0,r.jsx)(a.aY,{children:(0,r.jsxs)(i.x,{className:"w-full",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Modem Manufacturer"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.manufacturer)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Modem Model"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.model)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Firmware Revision"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.firmwareVersion)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"LTE Category"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsxs)(r.Fragment,{children:["CAT-",(null==e?void 0:e.lteCategory)||"N/A"]})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active Phone Number"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.phoneNum)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active IMSI"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.imsi)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Active ICCID"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.iccid)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"IMEI"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.imei)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"Current Device IP"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.currentDeviceIP)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"LAN Gateway"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.lanGateway)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"WWAN IPv4"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.wwanIPv4)||"N/A"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between",children:[(0,r.jsx)("span",{children:"WWAN IPv6"}),(0,r.jsx)("span",{className:"font-semibold max-w-32 md:max-w-full truncate",children:n?(0,r.jsx)(c.O,{className:"h-4 w-32"}):(0,r.jsx)(r.Fragment,{children:(null==e?void 0:e.wwanIPv6)||"N/A"})})]})]}),(0,r.jsx)(i.B,{orientation:"horizontal"})]})})]}),(0,r.jsxs)(a.Zb,{children:[(0,r.jsxs)(a.Ol,{children:[(0,r.jsx)(a.ll,{children:"About Us"}),(0,r.jsx)(a.SZ,{children:"Who we are and what we do."})]}),(0,r.jsxs)(a.aY,{className:"space-y-6",children:[(0,r.jsxs)("div",{className:"grid gap-2",children:[(0,r.jsx)("h1",{className:"text-xl font-bold antialiased",children:"QuecManager"}),(0,r.jsx)("p",{className:"text-md font-medium antialiased",children:"QuecManager began as 'Simple Admin,' a straightforward GUI in the RGMII toolkit. Over time, it’s evolved into a comprehensive dashboard with powerful features for managing cellular modems. While we’ve moved beyond the 'Simple' name, our goal remains the same: providing a clean, easy-to-use interface that makes advanced modem management feel straightforward and accessible."})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"text-xl font-bold antialiased",children:"Thanks to"}),(0,r.jsxs)("ul",{className:"list-disc list-inside text-md font-medium antialiased",children:[(0,r.jsxs)("li",{children:["RGMII Toolkit and Documentation, and Backend",(0,r.jsx)("a",{href:"https://github.com/iamromulan",target:"_blank",className:"text-primary font-semibold ml-2",children:"iamromulan"})]}),(0,r.jsxs)("li",{children:["Simple Admin 2.0 and QuecManager GUI",(0,r.jsx)("a",{href:"https://github.com/dr-dolomite",target:"_blank",className:"text-primary font-semibold ml-2",children:"dr-dolomite"})]}),(0,r.jsxs)("li",{children:["SMS Feature",(0,r.jsx)("a",{href:"https://github.com/snjzb",target:"_blank",className:"text-primary font-semibold ml-2",children:"snjzb"})]}),(0,r.jsxs)("li",{children:["Original Simple Admin",(0,r.jsx)("a",{href:"https://github.com/aesthernr",target:"_blank",className:"text-primary font-semibold ml-2",children:"aesthernr"})]}),(0,r.jsxs)("li",{children:["Original Socat Bridge",(0,r.jsx)("a",{href:"https://github.com/natecarlson",target:"_blank",className:"text-primary font-semibold ml-2",children:"natecarlson"})]}),(0,r.jsx)("li",{children:"Wutang Clan"})]})]})]})]})]}),(0,r.jsx)(a.eW,{className:"flex justify-center",children:(0,r.jsx)("p",{children:"QuecManager \xa9 2024 - For Personal Use Only. All rights reserved."})})]})}},94920:function(e,n,t){"use strict";t.d(n,{Ol:function(){return i},SZ:function(){return o},Zb:function(){return l},aY:function(){return d},eW:function(){return u},ll:function(){return c}});var r=t(20881),s=t(64149),a=t(90270);let l=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...s})});l.displayName="Card";let i=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",t),...s})});i.displayName="CardHeader";let c=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("h3",{ref:n,className:(0,a.cn)("font-semibold leading-none tracking-tight",t),...s})});c.displayName="CardTitle";let o=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("p",{ref:n,className:(0,a.cn)("text-sm text-muted-foreground",t),...s})});o.displayName="CardDescription";let d=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("p-6 pt-0",t),...s})});d.displayName="CardContent";let u=s.forwardRef((e,n)=>{let{className:t,...s}=e;return(0,r.jsx)("div",{ref:n,className:(0,a.cn)("flex items-center p-6 pt-0",t),...s})});u.displayName="CardFooter"},24004:function(e,n,t){"use strict";t.d(n,{B:function(){return c},x:function(){return i}});var r=t(20881),s=t(64149),a=t(82310),l=t(90270);let i=s.forwardRef((e,n)=>{let{className:t,children:s,...i}=e;return(0,r.jsxs)(a.fC,{ref:n,className:(0,l.cn)("relative overflow-hidden",t),...i,children:[(0,r.jsx)(a.l_,{className:"h-full w-full rounded-[inherit]",children:s}),(0,r.jsx)(c,{}),(0,r.jsx)(a.Ns,{})]})});i.displayName=a.fC.displayName;let c=s.forwardRef((e,n)=>{let{className:t,orientation:s="vertical",...i}=e;return(0,r.jsx)(a.gb,{ref:n,orientation:s,className:(0,l.cn)("flex touch-none select-none transition-colors","vertical"===s&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===s&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...i,children:(0,r.jsx)(a.q4,{className:"relative flex-1 rounded-full bg-border"})})});c.displayName=a.gb.displayName},88766:function(e,n,t){"use strict";t.d(n,{O:function(){return a}});var r=t(20881),s=t(90270);function a(e){let{className:n,...t}=e;return(0,r.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",n),...t})}},90270:function(e,n,t){"use strict";t.d(n,{cn:function(){return a}});var r=t(33958),s=t(61779);function a(){for(var e=arguments.length,n=Array(e),t=0;t{let{children:n,...a}=e,l=r.useMemo(()=>a,Object.values(a));return(0,s.jsx)(t.Provider,{value:l,children:n})};return a.displayName=e+"Provider",[a,function(s){let a=r.useContext(t);if(a)return a;if(void 0!==n)return n;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function l(e,n=[]){let t=[],a=()=>{let n=t.map(e=>r.createContext(e));return function(t){let s=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:s}}),[t,s])}};return a.scopeName=e,[function(n,a){let l=r.createContext(a),i=t.length;t=[...t,a];let c=n=>{let{scope:t,children:a,...c}=n,o=t?.[e]?.[i]||l,d=r.useMemo(()=>c,Object.values(c));return(0,s.jsx)(o.Provider,{value:d,children:a})};return c.displayName=n+"Provider",[c,function(t,s){let c=s?.[e]?.[i]||l,o=r.useContext(c);if(o)return o;if(void 0!==a)return a;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=t.reduce((n,{useScope:t,scopeName:r})=>{let s=t(e)[`__scope${r}`];return{...n,...s}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:s}),[s])}};return t.scopeName=n.scopeName,t}(a,...n)]}},45485:function(e,n,t){"use strict";t.d(n,{z:function(){return l}});var r=t(64149),s=t(83954),a=t(61013),l=e=>{var n,t;let l,c;let{present:o,children:d}=e,u=function(e){var n,t;let[s,l]=r.useState(),c=r.useRef({}),o=r.useRef(e),d=r.useRef("none"),[u,m]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>{let r=t[e][n];return null!=r?r:e},n));return r.useEffect(()=>{let e=i(c.current);d.current="mounted"===u?e:"none"},[u]),(0,a.b)(()=>{let n=c.current,t=o.current;if(t!==e){let r=d.current,s=i(n);e?m("MOUNT"):"none"===s||(null==n?void 0:n.display)==="none"?m("UNMOUNT"):t&&r!==s?m("ANIMATION_OUT"):m("UNMOUNT"),o.current=e}},[e,m]),(0,a.b)(()=>{if(s){var e;let n;let t=null!==(e=s.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=i(c.current).includes(e.animationName);if(e.target===s&&r&&(m("ANIMATION_END"),!o.current)){let e=s.style.animationFillMode;s.style.animationFillMode="forwards",n=t.setTimeout(()=>{"forwards"===s.style.animationFillMode&&(s.style.animationFillMode=e)})}},a=e=>{e.target===s&&(d.current=i(c.current))};return s.addEventListener("animationstart",a),s.addEventListener("animationcancel",r),s.addEventListener("animationend",r),()=>{t.clearTimeout(n),s.removeEventListener("animationstart",a),s.removeEventListener("animationcancel",r),s.removeEventListener("animationend",r)}}m("ANIMATION_END")},[s,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{e&&(c.current=getComputedStyle(e)),l(e)},[])}}(o),m="function"==typeof d?d({present:u.isPresent}):r.Children.only(d),f=(0,s.e)(u.ref,(l=null===(n=Object.getOwnPropertyDescriptor(m.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in l&&l.isReactWarning?m.ref:(l=null===(t=Object.getOwnPropertyDescriptor(m,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in l&&l.isReactWarning?m.props.ref:m.props.ref||m.ref);return"function"==typeof d||u.isPresent?r.cloneElement(m,{ref:f}):null};function i(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},79442:function(e,n,t){"use strict";t.d(n,{WV:function(){return i},jH:function(){return c}});var r=t(64149),s=t(50149),a=t(54098),l=t(20881),i=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let t=r.forwardRef((e,t)=>{let{asChild:r,...s}=e,i=r?a.g7:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...s,ref:t})});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function c(e,n){e&&s.flushSync(()=>e.dispatchEvent(n))}},2441:function(e,n,t){"use strict";t.d(n,{W:function(){return s}});var r=t(64149);function s(e){let n=r.useRef(e);return r.useEffect(()=>{n.current=e}),r.useMemo(()=>(...e)=>n.current?.(...e),[])}},61013:function(e,n,t){"use strict";t.d(n,{b:function(){return s}});var r=t(64149),s=globalThis?.document?r.useLayoutEffect:()=>{}}},function(e){e.O(0,[59,310,985,330,744],function(){return e(e.s=26888)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-85455cfccf5227af.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-85455cfccf5227af.js deleted file mode 100644 index b0df408..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-85455cfccf5227af.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[164],{88276:function(e,t,r){Promise.resolve().then(r.bind(r,21585))},21585:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return A}});var a=r(20881),n=r(64149),s=r(94920),o=r(24004),l=r(78580),i=r(21501),d=r(75577),c=r(33335),u=r(36306),m=r(92093);let f=(0,m.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var p=r(75526);let x=(0,m.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var h=r(47657),y=r(46646),g=r(16236),v=r(90270);let b=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,v.cn)("w-full caption-bottom text-sm",r),...n})})});b.displayName="Table";let j=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("thead",{ref:t,className:(0,v.cn)("[&_tr]:border-b",r),...n})});j.displayName="TableHeader";let w=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,v.cn)("[&_tr:last-child]:border-0",r),...n})});w.displayName="TableBody",n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,v.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...n})}).displayName="TableFooter";let N=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tr",{ref:t,className:(0,v.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...n})});N.displayName="TableRow";let C=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("th",{ref:t,className:(0,v.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...n})});C.displayName="TableHead";let T=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("td",{ref:t,className:(0,v.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...n})});T.displayName="TableCell";let S=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("caption",{ref:t,className:(0,v.cn)("mt-4 text-sm text-muted-foreground",r),...n})});S.displayName="TableCaption";var A=()=>{let e=(0,y.pm)(),[t,r]=(0,n.useState)(""),[m,v]=(0,n.useState)(""),[A,R]=(0,n.useState)([]),[k,O]=(0,n.useState)([]),[D,E]=(0,n.useState)([]),[_,I]=(0,n.useState)(!1),[z,Z]=(0,n.useState)([]),[F,M]=(0,n.useState)(!0);(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);Z(r)}catch(t){console.error("Failed to fetch AT commands:",t),e.toast({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{M(!1)}})()},[e]),(0,n.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{let t=JSON.parse(e);R(t)}catch(e){console.error("Failed to parse command history:",e),R([])}if(t)try{let e=JSON.parse(t);E(e)}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,n.useEffect)(()=>{A.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(A))},[A]),(0,n.useEffect)(()=>{D.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(D))},[D]);let H=e=>e.trim(),L=e=>{try{return JSON.parse(e).output}catch(t){return e}},V=async()=>{if(m.trim()){I(!0),v(""),r("");try{let e=H(m),t=encodeURIComponent(e),a=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),n=await a.text(),s=L(n),o={command:m,response:s,timestamp:new Date().toISOString()};R(e=>[o,...e]),r(e=>"".concat(e).concat(e?"\n":"","> ").concat(m,"\n\n").concat(s)),D.includes(m)||E(e=>[...e,m])}catch(t){let e=t instanceof Error?t.message:"An unknown error occurred";r(t=>"".concat(t).concat(t?"\n":"","Error: ").concat(e))}finally{I(!1)}}},W=e=>{v(e),O([])},Y=e=>{R(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},P=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),O(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e.toast({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e.toast({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(s.Zb,{children:[(0,a.jsxs)(s.Ol,{children:[(0,a.jsx)(s.ll,{children:"AT Terminal"}),(0,a.jsx)(s.SZ,{children:"Send AT commands to your device"})]}),(0,a.jsx)(s.aY,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i._,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.g,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-[240px] font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(h.Z,{className:"mb-2"}),0===A.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i._,{children:"Command History"}),(0,a.jsxs)(g.aR,{children:[(0,a.jsx)(g.vW,{asChild:!0,children:(0,a.jsxs)(l.z,{variant:"outline",size:"sm",children:[(0,a.jsx)(u.Z,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g._T,{children:[(0,a.jsxs)(g.fY,{children:[(0,a.jsx)(g.f$,{children:"Clear Command History"}),(0,a.jsx)(g.yT,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.xo,{children:[(0,a.jsx)(g.le,{children:"Cancel"}),(0,a.jsx)(g.OL,{onClick:()=>{R([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(o.x,{className:"h-[180px] p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:A.map((e,t)=>(0,a.jsx)(s.Zb,{children:(0,a.jsx)(s.aY,{className:"p-3 relative",children:(0,a.jsxs)(o.x,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.z,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:()=>Y(t),children:(0,a.jsx)(f,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono",children:e.response})]}),(0,a.jsx)(o.B,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(h.Z,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i._,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.I,{value:m,onChange:e=>{let t=e.target.value;v(t),t.trim()?O(D.filter(e=>e.toLowerCase().includes(t.toLowerCase()))):O([])},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),V())},placeholder:"ATI",id:"ATInput",disabled:_,autoComplete:"off"}),k.length>0&&(0,a.jsx)("div",{className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10",children:(0,a.jsx)(o.x,{className:"h-24",children:k.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 hover:bg-accent cursor-pointer flex items-center justify-between group",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",onClick:()=>W(e),children:e}),(0,a.jsx)(l.z,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),P(e)},children:(0,a.jsx)(f,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(s.eW,{className:"grid border-t py-4",children:(0,a.jsxs)(l.z,{onClick:V,disabled:_,children:[(0,a.jsx)(p.Z,{className:"mr-2"}),_?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(s.Zb,{children:[(0,a.jsxs)(s.Ol,{children:[(0,a.jsx)(s.ll,{children:"Common AT Commands List"}),(0,a.jsx)(s.SZ,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(s.aY,{children:(0,a.jsxs)(b,{children:[(0,a.jsx)(S,{children:"AT Command List"}),(0,a.jsx)(j,{children:(0,a.jsxs)(N,{children:[(0,a.jsx)(C,{children:"AT Command"}),(0,a.jsx)(C,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(w,{children:F?(0,a.jsx)(N,{children:(0,a.jsx)(T,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===z.length?(0,a.jsx)(N,{children:(0,a.jsx)(T,{colSpan:3,className:"text-center",children:"No commands available"})}):z.map((e,t)=>(0,a.jsxs)(N,{children:[(0,a.jsxs)(T,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(x,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(T,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},16236:function(e,t,r){"use strict";r.d(t,{aR:function(){return E},OL:function(){return L},le:function(){return V},_T:function(){return z},yT:function(){return H},xo:function(){return F},fY:function(){return Z},f$:function(){return M},vW:function(){return _}});var a=r(20881),n=r(64149),s=r(74873),o=r(83954),l=r(14491),i=r(64433),d=r(54098),c="AlertDialog",[u,m]=(0,s.b)(c,[l.p8]),f=(0,l.p8)(),p=e=>{let{__scopeAlertDialog:t,...r}=e,n=f(t);return(0,a.jsx)(l.fC,{...n,...r,modal:!0})};p.displayName=c;var x=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.xz,{...s,...n,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,n=f(t);return(0,a.jsx)(l.h_,{...n,...r})};h.displayName="AlertDialogPortal";var y=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.aV,{...s,...n,ref:t})});y.displayName="AlertDialogOverlay";var g="AlertDialogContent",[v,b]=u(g),j=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:s,...c}=e,u=f(r),m=n.useRef(null),p=(0,o.e)(t,m),x=n.useRef(null);return(0,a.jsx)(l.jm,{contentName:g,titleName:w,docsSlug:"alert-dialog",children:(0,a.jsx)(v,{scope:r,cancelRef:x,children:(0,a.jsxs)(l.VY,{role:"alertdialog",...u,...c,ref:p,onOpenAutoFocus:(0,i.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.A4,{children:s}),(0,a.jsx)(k,{contentRef:m})]})})})});j.displayName=g;var w="AlertDialogTitle",N=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.Dx,{...s,...n,ref:t})});N.displayName=w;var C="AlertDialogDescription",T=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.dk,{...s,...n,ref:t})});T.displayName=C;var S=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.x8,{...s,...n,ref:t})});S.displayName="AlertDialogAction";var A="AlertDialogCancel",R=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:s}=b(A,r),i=f(r),d=(0,o.e)(t,s);return(0,a.jsx)(l.x8,{...i,...n,ref:d})});R.displayName=A;var k=e=>{let{contentRef:t}=e,r="`".concat(g,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(g,"` by passing a `").concat(C,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(g,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},O=r(90270),D=r(78580);let E=p,_=x,I=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(y,{className:(0,O.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n,ref:t})});I.displayName=y.displayName;let z=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(j,{ref:t,className:(0,O.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...n})]})});z.displayName=j.displayName;let Z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,O.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};Z.displayName="AlertDialogHeader";let F=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,O.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};F.displayName="AlertDialogFooter";let M=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(N,{ref:t,className:(0,O.cn)("text-lg font-semibold",r),...n})});M.displayName=N.displayName;let H=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(T,{ref:t,className:(0,O.cn)("text-sm text-muted-foreground",r),...n})});H.displayName=T.displayName;let L=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(S,{ref:t,className:(0,O.cn)((0,D.d)(),r),...n})});L.displayName=S.displayName;let V=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(R,{ref:t,className:(0,O.cn)((0,D.d)({variant:"outline"}),"mt-2 sm:mt-0",r),...n})});V.displayName=R.displayName},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),n=r(64149),s=r(54098),o=r(20116),l=r(90270);let i=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:o,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,l.cn)(i({variant:n,size:o,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});o.displayName="Card";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});l.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,type:n,...o}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(20881),n=r(64149),s=r(51212),o=r(20116),l=r(90270);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,l.cn)(i(),r),...n})});d.displayName=s.f.displayName},24004:function(e,t,r){"use strict";r.d(t,{B:function(){return i},x:function(){return l}});var a=r(20881),n=r(64149),s=r(82310),o=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,a.jsxs)(s.fC,{ref:t,className:(0,o.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:n}),(0,a.jsx)(i,{}),(0,a.jsx)(s.Ns,{})]})});l.displayName=s.fC.displayName;let i=n.forwardRef((e,t)=>{let{className:r,orientation:n="vertical",...l}=e;return(0,a.jsx)(s.gb,{ref:t,orientation:n,className:(0,o.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=s.gb.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(20881),n=r(64149),s=r(48897),o=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(s.f,{ref:t,decorative:l,orientation:n,className:(0,o.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=s.f.displayName},75577:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...n})});o.displayName="Textarea"},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return m}});var a=r(64149);let n=0,s=new Map,o=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(33958),n=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var o={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"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...o,width:n,height:n,stroke:r,strokeWidth:i?24*Number(l)/Number(n):l,className:s("lucide",d),...m},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:i,...d}=r;return(0,a.createElement)(l,{ref:o,iconNode:t,className:s("lucide-".concat(n(e)),i),...d})});return r.displayName="".concat(e),r}},75526:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},36306:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},51212:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var a=r(64149),n=r(79442),s=r(20881),o=a.forwardRef((e,t)=>(0,s.jsx)(n.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var l=o},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var a=r(64149),n=r(79442),s=r(20881),o="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=o,...i}=e,d=l.includes(a)?a:o;return(0,s.jsx)(n.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},function(e){e.O(0,[59,714,217,491,310,985,330,744],function(){return e(e.s=88276)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-b3abeb1a34930b18.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-b3abeb1a34930b18.js new file mode 100644 index 0000000..fb9ef22 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/at-terminal/page-b3abeb1a34930b18.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4164],{88276:function(e,t,r){Promise.resolve().then(r.bind(r,21585))},21585:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return A}});var a=r(20881),n=r(64149),s=r(94920),o=r(24004),l=r(78580),i=r(21501),d=r(75577),c=r(33335),u=r(36306),m=r(92093);let f=(0,m.Z)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var p=r(75526);let x=(0,m.Z)("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var h=r(47657),y=r(46646),g=r(16236),v=r(90270);let b=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{className:"relative w-full overflow-auto",children:(0,a.jsx)("table",{ref:t,className:(0,v.cn)("w-full caption-bottom text-sm",r),...n})})});b.displayName="Table";let j=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("thead",{ref:t,className:(0,v.cn)("[&_tr]:border-b",r),...n})});j.displayName="TableHeader";let w=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tbody",{ref:t,className:(0,v.cn)("[&_tr:last-child]:border-0",r),...n})});w.displayName="TableBody",n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tfoot",{ref:t,className:(0,v.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r),...n})}).displayName="TableFooter";let N=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("tr",{ref:t,className:(0,v.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r),...n})});N.displayName="TableRow";let C=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("th",{ref:t,className:(0,v.cn)("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...n})});C.displayName="TableHead";let T=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("td",{ref:t,className:(0,v.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",r),...n})});T.displayName="TableCell";let S=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("caption",{ref:t,className:(0,v.cn)("mt-4 text-sm text-muted-foreground",r),...n})});S.displayName="TableCaption";var A=()=>{let e=(0,y.pm)(),[t,r]=(0,n.useState)(""),[m,v]=(0,n.useState)(""),[A,R]=(0,n.useState)([]),[k,O]=(0,n.useState)([]),[D,E]=(0,n.useState)([]),[_,I]=(0,n.useState)(!1),[z,Z]=(0,n.useState)([]),[F,M]=(0,n.useState)(!0);(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/fetch_commands.sh"),t=await e.json(),r=Object.entries(t).filter(e=>{let[t]=e;return"error"!==t}).map(e=>{let[t,r]=e;return{description:t,command:r}});if(0===r.length&&t.error)throw Error(t.error);Z(r)}catch(t){console.error("Failed to fetch AT commands:",t),e.toast({title:"Error",description:t instanceof Error?t.message:"Failed to load common AT commands",variant:"destructive"})}finally{M(!1)}})()},[e]),(0,n.useEffect)(()=>{let e=window.localStorage.getItem("atCommandHistory"),t=window.localStorage.getItem("atCommands");if(e)try{let t=JSON.parse(e);R(t)}catch(e){console.error("Failed to parse command history:",e),R([])}if(t)try{let e=JSON.parse(t);E(e)}catch(e){console.error("Failed to parse previous commands:",e),E([])}},[]),(0,n.useEffect)(()=>{A.length>0&&window.localStorage.setItem("atCommandHistory",JSON.stringify(A))},[A]),(0,n.useEffect)(()=>{D.length>0&&window.localStorage.setItem("atCommands",JSON.stringify(D))},[D]);let H=e=>e.trim(),L=e=>{try{return JSON.parse(e).output}catch(t){return e}},V=async()=>{if(m.trim()){I(!0),v(""),r("");try{let e=H(m),t=encodeURIComponent(e),a=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),n=await a.text(),s=L(n),o={command:m,response:s,timestamp:new Date().toISOString()};R(e=>[o,...e]),r(e=>"".concat(e).concat(e?"\n":"","> ").concat(m,"\n\n").concat(s)),D.includes(m)||E(e=>[...e,m])}catch(t){let e=t instanceof Error?t.message:"An unknown error occurred";r(t=>"".concat(t).concat(t?"\n":"","Error: ").concat(e))}finally{I(!1)}}},W=e=>{v(e),O([])},Y=e=>{R(t=>{let r=[...t];return r.splice(e,1),0===r.length&&window.localStorage.removeItem("atCommandHistory"),r})},P=e=>{E(t=>{let r=t.filter(t=>t!==e);return window.localStorage.setItem("atCommands",JSON.stringify(r)),r}),O(t=>t.filter(t=>t!==e))},B=async t=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(t);else{let e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();try{document.execCommand("copy")}catch(e){throw console.error("Fallback: Oops, unable to copy",e),Error("Copy failed")}finally{e.remove()}}e.toast({title:"Copied!",description:'Command "'.concat(t,'" copied to clipboard'),duration:2e3})}catch(t){console.error("Failed to copy command:",t),e.toast({title:"Error",description:"Failed to copy command to clipboard",variant:"destructive",duration:3e3})}};return(0,a.jsxs)("div",{className:"grid gap-6",children:[(0,a.jsxs)(s.Zb,{children:[(0,a.jsxs)(s.Ol,{children:[(0,a.jsx)(s.ll,{children:"AT Terminal"}),(0,a.jsx)(s.SZ,{children:"Send AT commands to your device"})]}),(0,a.jsx)(s.aY,{children:(0,a.jsxs)("div",{className:"grid gap-8 w-full max-w-screen p-4",children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[(0,a.jsx)(i._,{htmlFor:"ATOutput",children:"AT Command Output"}),(0,a.jsx)(d.g,{value:t,placeholder:"AT command output will appear here...",readOnly:!0,className:"h-[240px] font-mono",id:"ATOutput"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(h.Z,{className:"mb-2"}),0===A.length?(0,a.jsx)("p",{className:"italic text-sm text-muted-foreground font-medium text-center",children:"Command History is Empty"}):(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"flex justify-between items-center mb-2",children:[(0,a.jsx)(i._,{children:"Command History"}),(0,a.jsxs)(g.aR,{children:[(0,a.jsx)(g.vW,{asChild:!0,children:(0,a.jsxs)(l.z,{variant:"outline",size:"sm",children:[(0,a.jsx)(u.Z,{className:"h-4 w-4 text-rose-500"}),"Clear All"]})}),(0,a.jsxs)(g._T,{children:[(0,a.jsxs)(g.fY,{children:[(0,a.jsx)(g.f$,{children:"Clear Command History"}),(0,a.jsx)(g.yT,{children:"This action cannot be undone. This will permanently delete your command history."})]}),(0,a.jsxs)(g.xo,{children:[(0,a.jsx)(g.le,{children:"Cancel"}),(0,a.jsx)(g.OL,{onClick:()=>{R([]),window.localStorage.removeItem("atCommandHistory")},children:"Continue"})]})]})]})]}),(0,a.jsx)(o.x,{className:"h-[180px] p-4",children:(0,a.jsx)("div",{className:"grid gap-y-2",children:A.map((e,t)=>(0,a.jsx)(s.Zb,{children:(0,a.jsx)(s.aY,{className:"p-3 relative",children:(0,a.jsxs)(o.x,{className:"max-w-xs md:max-w-full",children:[(0,a.jsx)(l.z,{variant:"ghost",size:"icon",className:"absolute right-2 top-2 h-4 w-4",onClick:()=>Y(t),children:(0,a.jsx)(f,{className:"h-4 w-4"})}),(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsx)("p",{className:"text-sm font-medium",children:e.command}),(0,a.jsx)("p",{className:"whitespace-pre-wrap font-mono",children:e.response})]}),(0,a.jsx)(o.B,{orientation:"horizontal"})]})})},"".concat(e.timestamp,"-").concat(t)))})})]}),(0,a.jsx)(h.Z,{className:"mt-2"})]}),(0,a.jsxs)("div",{className:"grid gap-1.5 relative",children:[(0,a.jsx)(i._,{htmlFor:"ATInput",children:"AT Command Input"}),(0,a.jsx)(c.I,{value:m,onChange:e=>{let t=e.target.value;v(t),t.trim()?O(D.filter(e=>e.toLowerCase().includes(t.toLowerCase()))):O([])},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),V())},placeholder:"ATI",id:"ATInput",disabled:_,autoComplete:"off"}),k.length>0&&(0,a.jsx)("div",{className:"absolute top-full mt-1 bg-background border rounded-md shadow-lg z-10",children:(0,a.jsx)(o.x,{className:"h-24",children:k.map((e,t)=>(0,a.jsxs)("div",{className:"p-2 hover:bg-accent cursor-pointer flex items-center justify-between group",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-muted-foreground flex-grow",onClick:()=>W(e),children:e}),(0,a.jsx)(l.z,{variant:"ghost",size:"icon",className:"h-4 w-4 opacity-0 group-hover:opacity-100 transition-opacity",onClick:t=>{t.stopPropagation(),P(e)},children:(0,a.jsx)(f,{className:"h-4 w-4"})})]},t))})}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground",children:"Your successful commands will be saved for autocomplete."})]})]})}),(0,a.jsx)(s.eW,{className:"grid border-t py-4",children:(0,a.jsxs)(l.z,{onClick:V,disabled:_,children:[(0,a.jsx)(p.Z,{className:"mr-2"}),_?"Sending...":"Send Command"]})})]}),(0,a.jsxs)(s.Zb,{children:[(0,a.jsxs)(s.Ol,{children:[(0,a.jsx)(s.ll,{children:"Common AT Commands List"}),(0,a.jsx)(s.SZ,{children:"Here are some common AT commands you can try:"})]}),(0,a.jsx)(s.aY,{children:(0,a.jsxs)(b,{children:[(0,a.jsx)(S,{children:"AT Command List"}),(0,a.jsx)(j,{children:(0,a.jsxs)(N,{children:[(0,a.jsx)(C,{children:"AT Command"}),(0,a.jsx)(C,{className:"text-right",children:"Description"})]})}),(0,a.jsx)(w,{children:F?(0,a.jsx)(N,{children:(0,a.jsx)(T,{colSpan:3,className:"text-center",children:"Loading commands..."})}):0===z.length?(0,a.jsx)(N,{children:(0,a.jsx)(T,{colSpan:3,className:"text-center",children:"No commands available"})}):z.map((e,t)=>(0,a.jsxs)(N,{children:[(0,a.jsxs)(T,{className:"flex items-center gap-x-2",children:[(0,a.jsx)("p",{className:"font-mono truncate max-w-6 md:max-w-md",children:e.command}),(0,a.jsx)(x,{className:"w-3 h-3 hover:text-purple-300 cursor-pointer",onClick:()=>B(e.command)})]}),(0,a.jsx)(T,{className:"text-right max-w-10 md:max-w-lg",children:e.description})]},t))})]})})]})]})}},16236:function(e,t,r){"use strict";r.d(t,{aR:function(){return E},OL:function(){return L},le:function(){return V},_T:function(){return z},yT:function(){return H},xo:function(){return F},fY:function(){return Z},f$:function(){return M},vW:function(){return _}});var a=r(20881),n=r(64149),s=r(74873),o=r(83954),l=r(14491),i=r(64433),d=r(54098),c="AlertDialog",[u,m]=(0,s.b)(c,[l.p8]),f=(0,l.p8)(),p=e=>{let{__scopeAlertDialog:t,...r}=e,n=f(t);return(0,a.jsx)(l.fC,{...n,...r,modal:!0})};p.displayName=c;var x=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.xz,{...s,...n,ref:t})});x.displayName="AlertDialogTrigger";var h=e=>{let{__scopeAlertDialog:t,...r}=e,n=f(t);return(0,a.jsx)(l.h_,{...n,...r})};h.displayName="AlertDialogPortal";var y=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.aV,{...s,...n,ref:t})});y.displayName="AlertDialogOverlay";var g="AlertDialogContent",[v,b]=u(g),j=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:s,...c}=e,u=f(r),m=n.useRef(null),p=(0,o.e)(t,m),x=n.useRef(null);return(0,a.jsx)(l.jm,{contentName:g,titleName:w,docsSlug:"alert-dialog",children:(0,a.jsx)(v,{scope:r,cancelRef:x,children:(0,a.jsxs)(l.VY,{role:"alertdialog",...u,...c,ref:p,onOpenAutoFocus:(0,i.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.A4,{children:s}),(0,a.jsx)(k,{contentRef:m})]})})})});j.displayName=g;var w="AlertDialogTitle",N=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.Dx,{...s,...n,ref:t})});N.displayName=w;var C="AlertDialogDescription",T=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.dk,{...s,...n,ref:t})});T.displayName=C;var S=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,s=f(r);return(0,a.jsx)(l.x8,{...s,...n,ref:t})});S.displayName="AlertDialogAction";var A="AlertDialogCancel",R=n.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...n}=e,{cancelRef:s}=b(A,r),i=f(r),d=(0,o.e)(t,s);return(0,a.jsx)(l.x8,{...i,...n,ref:d})});R.displayName=A;var k=e=>{let{contentRef:t}=e,r="`".concat(g,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(g,"` by passing a `").concat(C,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(g,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return n.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},O=r(90270),D=r(78580);let E=p,_=x,I=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(y,{className:(0,O.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...n,ref:t})});I.displayName=y.displayName;let z=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsxs)(h,{children:[(0,a.jsx)(I,{}),(0,a.jsx)(j,{ref:t,className:(0,O.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...n})]})});z.displayName=j.displayName;let Z=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,O.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};Z.displayName="AlertDialogHeader";let F=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,O.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};F.displayName="AlertDialogFooter";let M=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(N,{ref:t,className:(0,O.cn)("text-lg font-semibold",r),...n})});M.displayName=N.displayName;let H=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(T,{ref:t,className:(0,O.cn)("text-sm text-muted-foreground",r),...n})});H.displayName=T.displayName;let L=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(S,{ref:t,className:(0,O.cn)((0,D.d)(),r),...n})});L.displayName=S.displayName;let V=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(R,{ref:t,className:(0,O.cn)((0,D.d)({variant:"outline"}),"mt-2 sm:mt-0",r),...n})});V.displayName=R.displayName},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),n=r(64149),s=r(54098),o=r(20116),l=r(90270);let i=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:o,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,l.cn)(i({variant:n,size:o,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});o.displayName="Card";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});l.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,type:n,...o}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(20881),n=r(64149),s=r(51212),o=r(20116),l=r(90270);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,l.cn)(i(),r),...n})});d.displayName=s.f.displayName},24004:function(e,t,r){"use strict";r.d(t,{B:function(){return i},x:function(){return l}});var a=r(20881),n=r(64149),s=r(82310),o=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,children:n,...l}=e;return(0,a.jsxs)(s.fC,{ref:t,className:(0,o.cn)("relative overflow-hidden",r),...l,children:[(0,a.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:n}),(0,a.jsx)(i,{}),(0,a.jsx)(s.Ns,{})]})});l.displayName=s.fC.displayName;let i=n.forwardRef((e,t)=>{let{className:r,orientation:n="vertical",...l}=e;return(0,a.jsx)(s.gb,{ref:t,orientation:n,className:(0,o.cn)("flex touch-none select-none transition-colors","vertical"===n&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===n&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,a.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});i.displayName=s.gb.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(20881),n=r(64149),s=r(48897),o=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(s.f,{ref:t,decorative:l,orientation:n,className:(0,o.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=s.f.displayName},75577:function(e,t,r){"use strict";r.d(t,{g:function(){return o}});var a=r(20881),n=r(64149),s=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...n})});o.displayName="Textarea"},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return m}});var a=r(64149);let n=0,s=new Map,o=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function m(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(33958),n=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var o={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"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:i,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...o,width:n,height:n,stroke:r,strokeWidth:i?24*Number(l)/Number(n):l,className:s("lucide",d),...m},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),i=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:i,...d}=r;return(0,a.createElement)(l,{ref:o,iconNode:t,className:s("lucide-".concat(n(e)),i),...d})});return r.displayName="".concat(e),r}},75526:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},36306:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});let a=(0,r(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},51212:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var a=r(64149),n=r(79442),s=r(20881),o=a.forwardRef((e,t)=>(0,s.jsx)(n.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var l=o},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var a=r(64149),n=r(79442),s=r(20881),o="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=o,...i}=e,d=l.includes(a)?a:o;return(0,s.jsx)(n.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},function(e){e.O(0,[4059,8714,217,4491,2310,8985,5330,1744],function(){return e(e.s=88276)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-281c60b314d73106.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-281c60b314d73106.js deleted file mode 100644 index 36d4d0f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-281c60b314d73106.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[812],{53830:function(e,t,r){Promise.resolve().then(r.bind(r,8133))},8133:function(e,t,r){"use strict";r.r(t);var a=r(20881),s=r(64149),n=r(94920),o=r(22989),l=r(16236),i=r(46646),d=r(78580),c=r(21501),u=r(88766),f=r(47657),m=r(6120);t.default=()=>{let{toast:e}=(0,i.pm)(),[t,r]=(0,s.useState)(!0),[h,p]=(0,s.useState)([]),[x,g]=(0,s.useState)(!1),[j,v]=(0,s.useState)(""),[y,b]=(0,s.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[N,w]=(0,s.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),P={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let t={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:r}=e;if(r.includes("MPDN_rule")){let e=r.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?t.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?t.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(t.passthrough="disabled")}if(r.includes("usbnet")){let e=r.match(/usbnet",(\d)/);e&&(t.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}r.includes("DHCPV4DNS")&&(r.includes('"enable"')?t.dnsProxy="enabled":r.includes('"disable"')&&(t.dnsProxy="disabled"))}),t},S=()=>{let e=[],t=Object.entries(N).reduce((e,t)=>{let[r,a]=t;return a!==y[r]&&(e[r]=a),e},{});if("passthrough"in t){if("disabled"===t.passthrough)e.push(P.passthrough.disabled.replace(";+QPOWD=1",""));else if(t.passthrough){let e=P.passthrough[t.passthrough](N.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in t&&t.modemProtocol){let r=P.modemProtocol[t.modemProtocol];if(1===Object.keys(t).length)return"AT".concat(r.replace(";+QPOWD=1",""));e.push(r.replace(";+QPOWD=1",""))}if("dnsProxy"in t&&t.dnsProxy){let r=P.dnsProxy[t.dnsProxy];if(1===Object.keys(t).length)return"AT".concat(r);e.push(r)}return e.length>0?"AT".concat(e.join(";")):""},A=async()=>{try{let t=encodeURIComponent("AT+QPOWD=1");await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,a.jsx)(m.Z,{})})}},O=async()=>{try{let e=S();v(e),g(!0)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,a.jsx)(m.Z,{})})}},R=async()=>{try{let e=encodeURIComponent(j);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e)})).ok)throw Error("Failed to save settings");b({...N}),await A()}catch(t){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,a.jsx)(m.Z,{})})}};return(0,s.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/cgi-bin/advance/fetch_macs.sh"),fetch("/cgi-bin/fetch_data.sh?set=4")]),[a,s]=await Promise.all([e.json(),t.json()]);p(a);let n=D(s);b(n),w(n),r(!1)}catch(t){r(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,a.jsx)(m.Z,{})})}})()},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Zb,{children:[(0,a.jsxs)(n.Ol,{children:[(0,a.jsx)(n.ll,{children:"Connectivity Settings"}),(0,a.jsx)(n.SZ,{children:"Configure your device's connectivity settings."})]}),(0,a.jsx)(n.aY,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,passthrough:e})),value:N.passthrough||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select IP Passthrough Mode"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"Passthrough Mode"}),(0,a.jsx)(o.Ql,{value:"disabled",children:"Disabled"}),(0,a.jsx)(o.Ql,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,a.jsx)(o.Ql,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"mac",children:"Connected MAC"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,selectedMac:e})),value:N.selectedMac||void 0,disabled:!N.passthrough||"disabled"===N.passthrough,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select Active MAC"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"Active MAC"}),h.map(e=>(0,a.jsx)(o.Ql,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,a.jsx)(f.Z,{className:"lg:col-span-2 col-span-1 my-2"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,modemProtocol:e})),value:N.modemProtocol||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select USB Modem Protocol"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"USB Modem Protocol"}),(0,a.jsx)(o.Ql,{value:"rmnet",children:"RMNET"}),(0,a.jsx)(o.Ql,{value:"ecm",children:"ECM (Recommended)"}),(0,a.jsx)(o.Ql,{value:"mbim",children:"MBIM"}),(0,a.jsx)(o.Ql,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,dnsProxy:e})),value:N.dnsProxy||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select DNS Proxy Mode"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"DNS Proxy Mode"}),(0,a.jsx)(o.Ql,{value:"enabled",children:"Enabled"}),(0,a.jsx)(o.Ql,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,a.jsx)(n.eW,{className:"grid border-t py-4",children:(0,a.jsx)(d.z,{onClick:O,disabled:!Object.entries(N).some(e=>{let[t,r]=e;return r!==y[t]})||!(!N.passthrough||"disabled"===N.passthrough||N.selectedMac),children:"Save"})})]}),(0,a.jsx)(l.aR,{open:x,onOpenChange:g,children:(0,a.jsxs)(l._T,{children:[(0,a.jsxs)(l.fY,{children:[(0,a.jsx)(l.f$,{children:"Reboot Required"}),(0,a.jsx)(l.yT,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,a.jsxs)(l.xo,{children:[(0,a.jsx)(l.le,{children:"Later"}),(0,a.jsx)(l.OL,{onClick:R,children:"Save & Reboot Now"})]})]})})]})}},6120:function(e,t,r){"use strict";var a=r(20881),s=r(78580),n=r(35935);t.Z=()=>(0,a.jsx)(s.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,a.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,a.jsx)(n.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},16236:function(e,t,r){"use strict";r.d(t,{aR:function(){return T},OL:function(){return W},le:function(){return B},_T:function(){return E},yT:function(){return F},xo:function(){return I},fY:function(){return k},f$:function(){return z},vW:function(){return C}});var a=r(20881),s=r(64149),n=r(74873),o=r(83954),l=r(14491),i=r(64433),d=r(54098),c="AlertDialog",[u,f]=(0,n.b)(c,[l.p8]),m=(0,l.p8)(),h=e=>{let{__scopeAlertDialog:t,...r}=e,s=m(t);return(0,a.jsx)(l.fC,{...s,...r,modal:!0})};h.displayName=c;var p=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.xz,{...n,...s,ref:t})});p.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...r}=e,s=m(t);return(0,a.jsx)(l.h_,{...s,...r})};x.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.aV,{...n,...s,ref:t})});g.displayName="AlertDialogOverlay";var j="AlertDialogContent",[v,y]=u(j),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:n,...c}=e,u=m(r),f=s.useRef(null),h=(0,o.e)(t,f),p=s.useRef(null);return(0,a.jsx)(l.jm,{contentName:j,titleName:N,docsSlug:"alert-dialog",children:(0,a.jsx)(v,{scope:r,cancelRef:p,children:(0,a.jsxs)(l.VY,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:(0,i.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=p.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.A4,{children:n}),(0,a.jsx)(R,{contentRef:f})]})})})});b.displayName=j;var N="AlertDialogTitle",w=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.Dx,{...n,...s,ref:t})});w.displayName=N;var P="AlertDialogDescription",D=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.dk,{...n,...s,ref:t})});D.displayName=P;var S=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.x8,{...n,...s,ref:t})});S.displayName="AlertDialogAction";var A="AlertDialogCancel",O=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:n}=y(A,r),i=m(r),d=(0,o.e)(t,n);return(0,a.jsx)(l.x8,{...i,...s,ref:d})});O.displayName=A;var R=e=>{let{contentRef:t}=e,r="`".concat(j,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(j,"` by passing a `").concat(P,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(j,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},_=r(90270),M=r(78580);let T=h,C=p,Q=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,_.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});Q.displayName=g.displayName;let E=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(x,{children:[(0,a.jsx)(Q,{}),(0,a.jsx)(b,{ref:t,className:(0,_.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});E.displayName=b.displayName;let k=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,_.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};k.displayName="AlertDialogHeader";let I=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,_.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};I.displayName="AlertDialogFooter";let z=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(w,{ref:t,className:(0,_.cn)("text-lg font-semibold",r),...s})});z.displayName=w.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(D,{ref:t,className:(0,_.cn)("text-sm text-muted-foreground",r),...s})});F.displayName=D.displayName;let W=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(S,{ref:t,className:(0,_.cn)((0,M.d)(),r),...s})});W.displayName=S.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(O,{ref:t,className:(0,_.cn)((0,M.d)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=O.displayName},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),s=r(64149),n=r(54098),o=r(20116),l=r(90270);let i=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:d=!1,...c}=e,u=d?n.g7:"button";return(0,a.jsx)(u,{className:(0,l.cn)(i({variant:s,size:o,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),s=r(64149),n=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});o.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(20881),s=r(64149),n=r(51212),o=r(20116),l=r(90270);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.f,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=n.f.displayName},22989:function(e,t,r){"use strict";r.d(t,{Bw:function(){return h},DI:function(){return d},Ph:function(){return i},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return p}});var a=r(20881),s=r(64149),n=r(35935),o=r(62072),l=r(90270);let i=o.fC,d=o.ZA,c=o.B4,u=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.xz,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,(0,a.jsx)(o.JO,{asChild:!0,children:(0,a.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=o.xz.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.u_,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(n.g8U,{})})});f.displayName=o.u_.displayName;let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.$G,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(n.v4q,{})})});m.displayName=o.$G.displayName;let h=s.forwardRef((e,t)=>{let{className:r,children:s,position:n="popper",...i}=e;return(0,a.jsx)(o.h_,{children:(0,a.jsxs)(o.VY,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,a.jsx)(f,{}),(0,a.jsx)(o.l_,{className:(0,l.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(m,{})]})})});h.displayName=o.VY.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})});p.displayName=o.__.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.ck,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(o.wU,{children:(0,a.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(o.eT,{children:s})]})});x.displayName=o.ck.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=o.Z0.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(20881),s=r(64149),n=r(48897),o=r(90270);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(n.f,{ref:t,decorative:l,orientation:s,className:(0,o.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=n.f.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var a=r(20881),s=r(90270);function n(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var a=r(64149);let s=0,n=new Map,o=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return n}});var a=r(33958),s=r(61779);function n(){for(var e=arguments.length,t=Array(e),r=0;r(0,n.jsx)(s.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var l=o},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var a=r(64149),s=r(79442),n=r(20881),o="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=o,...i}=e,d=l.includes(a)?a:o;return(0,n.jsx)(s.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},function(e){e.O(0,[792,59,714,217,420,491,72,985,330,744],function(){return e(e.s=53830)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-d13607969762b01a.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-d13607969762b01a.js new file mode 100644 index 0000000..6a8d1c9 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/connectivity/page-d13607969762b01a.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4812],{53830:function(e,t,r){Promise.resolve().then(r.bind(r,8133))},8133:function(e,t,r){"use strict";r.r(t);var a=r(20881),s=r(64149),n=r(94920),o=r(22989),l=r(16236),i=r(46646),d=r(78580),c=r(21501),u=r(88766),f=r(47657),m=r(6120);t.default=()=>{let{toast:e}=(0,i.pm)(),[t,r]=(0,s.useState)(!0),[h,p]=(0,s.useState)([]),[x,g]=(0,s.useState)(!1),[j,v]=(0,s.useState)(""),[y,b]=(0,s.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),[N,w]=(0,s.useState)({passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null}),P={passthrough:{disabled:'+QMAP="MPDN_rule",0;+QMAPWAC=1;+QPOWD=1',ETH:e=>'+QMAP="MPDN_rule",0,1,0,1,1,"'.concat(e,'";+QPOWD=1'),USB:e=>'+QMAP="MPDN_rule",0,1,0,3,1,"'.concat(e,'";+QPOWD=1')},modemProtocol:{rmnet:'+QCFG="usbnet",0;+QPOWD=1',ecm:'+QCFG="usbnet",1;+QPOWD=1',mbim:'+QCFG="usbnet",2;+QPOWD=1',rndis:'+QCFG="usbnet",3;+QPOWD=1'},dnsProxy:{enabled:'+QMAP="DHCPV4DNS","enable"',disabled:'+QMAP="DHCPV4DNS","disable"'}},D=e=>{let t={passthrough:null,selectedMac:null,modemProtocol:null,dnsProxy:null};return e.forEach(e=>{let{response:r}=e;if(r.includes("MPDN_rule")){let e=r.split("\n")[1];e.includes('MPDN_rule",0,1,0,1,1')?t.passthrough="ETH":e.includes('MPDN_rule",0,1,0,3,1')?t.passthrough="USB":e.includes('MPDN_rule",0,0,0,0,0')&&(t.passthrough="disabled")}if(r.includes("usbnet")){let e=r.match(/usbnet",(\d)/);e&&(t.modemProtocol=({0:"rmnet",1:"ecm",2:"mbim",3:"rndis"})[e[1]])}r.includes("DHCPV4DNS")&&(r.includes('"enable"')?t.dnsProxy="enabled":r.includes('"disable"')&&(t.dnsProxy="disabled"))}),t},S=()=>{let e=[],t=Object.entries(N).reduce((e,t)=>{let[r,a]=t;return a!==y[r]&&(e[r]=a),e},{});if("passthrough"in t){if("disabled"===t.passthrough)e.push(P.passthrough.disabled.replace(";+QPOWD=1",""));else if(t.passthrough){let e=P.passthrough[t.passthrough](N.selectedMac);return"AT".concat(e.replace(";+QPOWD=1",""))}}if("modemProtocol"in t&&t.modemProtocol){let r=P.modemProtocol[t.modemProtocol];if(1===Object.keys(t).length)return"AT".concat(r.replace(";+QPOWD=1",""));e.push(r.replace(";+QPOWD=1",""))}if("dnsProxy"in t&&t.dnsProxy){let r=P.dnsProxy[t.dnsProxy];if(1===Object.keys(t).length)return"AT".concat(r);e.push(r)}return e.length>0?"AT".concat(e.join(";")):""},A=async()=>{try{let t=encodeURIComponent("AT+QPOWD=1");await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),e({title:"Success",description:"Settings saved and device is rebooting..."}),setTimeout(()=>{window.location.reload()},9e4)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to reboot device",action:(0,a.jsx)(m.Z,{})})}},O=async()=>{try{let e=S();v(e),g(!0)}catch(t){e({variant:"destructive",title:"Error",description:"Failed to prepare settings",action:(0,a.jsx)(m.Z,{})})}},R=async()=>{try{let e=encodeURIComponent(j);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e)})).ok)throw Error("Failed to save settings");b({...N}),await A()}catch(t){e({variant:"destructive",title:"Error",description:"Failed to save settings",action:(0,a.jsx)(m.Z,{})})}};return(0,s.useEffect)(()=>{(async()=>{try{let[e,t]=await Promise.all([fetch("/cgi-bin/advance/fetch_macs.sh"),fetch("/cgi-bin/fetch_data.sh?set=4")]),[a,s]=await Promise.all([e.json(),t.json()]);p(a);let n=D(s);b(n),w(n),r(!1)}catch(t){r(!1),e({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch connectivity settings",action:(0,a.jsx)(m.Z,{})})}})()},[]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n.Zb,{children:[(0,a.jsxs)(n.Ol,{children:[(0,a.jsx)(n.ll,{children:"Connectivity Settings"}),(0,a.jsx)(n.SZ,{children:"Configure your device's connectivity settings."})]}),(0,a.jsx)(n.aY,{children:(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"passthrough",children:"IP Passthrough Mode"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,passthrough:e})),value:N.passthrough||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select IP Passthrough Mode"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"Passthrough Mode"}),(0,a.jsx)(o.Ql,{value:"disabled",children:"Disabled"}),(0,a.jsx)(o.Ql,{value:"ETH",children:"ETH Passthrough Enabled"}),(0,a.jsx)(o.Ql,{value:"USB",children:"USB Passthrough Enabled"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"mac",children:"Connected MAC"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,selectedMac:e})),value:N.selectedMac||void 0,disabled:!N.passthrough||"disabled"===N.passthrough,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select Active MAC"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"Active MAC"}),h.map(e=>(0,a.jsx)(o.Ql,{value:e.mac,children:"".concat(e.hostname," - ").concat(e.mac)},e.mac))]})})]})]}),(0,a.jsx)(f.Z,{className:"lg:col-span-2 col-span-1 my-2"}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"modemProtocol",children:"USB Modem Protocol"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,modemProtocol:e})),value:N.modemProtocol||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select USB Modem Protocol"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"USB Modem Protocol"}),(0,a.jsx)(o.Ql,{value:"rmnet",children:"RMNET"}),(0,a.jsx)(o.Ql,{value:"ecm",children:"ECM (Recommended)"}),(0,a.jsx)(o.Ql,{value:"mbim",children:"MBIM"}),(0,a.jsx)(o.Ql,{value:"rndis",children:"RNDIS"})]})})]})]}),(0,a.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,a.jsx)(c._,{htmlFor:"dnsProxy",children:"Onboard DNS Proxy Mode"}),t?(0,a.jsx)(u.O,{className:"w-full h-8"}):(0,a.jsxs)(o.Ph,{onValueChange:e=>w(t=>({...t,dnsProxy:e})),value:N.dnsProxy||void 0,children:[(0,a.jsx)(o.i4,{children:(0,a.jsx)(o.ki,{placeholder:"Select DNS Proxy Mode"})}),(0,a.jsx)(o.Bw,{children:(0,a.jsxs)(o.DI,{children:[(0,a.jsx)(o.n5,{children:"DNS Proxy Mode"}),(0,a.jsx)(o.Ql,{value:"enabled",children:"Enabled"}),(0,a.jsx)(o.Ql,{value:"disabled",children:"Disabled (Recommended for Passthrough)"})]})})]})]})]})}),(0,a.jsx)(n.eW,{className:"grid border-t py-4",children:(0,a.jsx)(d.z,{onClick:O,disabled:!Object.entries(N).some(e=>{let[t,r]=e;return r!==y[t]})||!(!N.passthrough||"disabled"===N.passthrough||N.selectedMac),children:"Save"})})]}),(0,a.jsx)(l.aR,{open:x,onOpenChange:g,children:(0,a.jsxs)(l._T,{children:[(0,a.jsxs)(l.fY,{children:[(0,a.jsx)(l.f$,{children:"Reboot Required"}),(0,a.jsx)(l.yT,{children:"The changes you made require a device reboot to take effect. Would you like to reboot now?"})]}),(0,a.jsxs)(l.xo,{children:[(0,a.jsx)(l.le,{children:"Later"}),(0,a.jsx)(l.OL,{onClick:R,children:"Save & Reboot Now"})]})]})})]})}},6120:function(e,t,r){"use strict";var a=r(20881),s=r(78580),n=r(35935);t.Z=()=>(0,a.jsx)(s.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,a.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,a.jsx)(n.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},16236:function(e,t,r){"use strict";r.d(t,{aR:function(){return T},OL:function(){return W},le:function(){return B},_T:function(){return E},yT:function(){return F},xo:function(){return I},fY:function(){return k},f$:function(){return z},vW:function(){return C}});var a=r(20881),s=r(64149),n=r(74873),o=r(83954),l=r(14491),i=r(64433),d=r(54098),c="AlertDialog",[u,f]=(0,n.b)(c,[l.p8]),m=(0,l.p8)(),h=e=>{let{__scopeAlertDialog:t,...r}=e,s=m(t);return(0,a.jsx)(l.fC,{...s,...r,modal:!0})};h.displayName=c;var p=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.xz,{...n,...s,ref:t})});p.displayName="AlertDialogTrigger";var x=e=>{let{__scopeAlertDialog:t,...r}=e,s=m(t);return(0,a.jsx)(l.h_,{...s,...r})};x.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.aV,{...n,...s,ref:t})});g.displayName="AlertDialogOverlay";var j="AlertDialogContent",[v,y]=u(j),b=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,children:n,...c}=e,u=m(r),f=s.useRef(null),h=(0,o.e)(t,f),p=s.useRef(null);return(0,a.jsx)(l.jm,{contentName:j,titleName:N,docsSlug:"alert-dialog",children:(0,a.jsx)(v,{scope:r,cancelRef:p,children:(0,a.jsxs)(l.VY,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:(0,i.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=p.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,a.jsx)(d.A4,{children:n}),(0,a.jsx)(R,{contentRef:f})]})})})});b.displayName=j;var N="AlertDialogTitle",w=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.Dx,{...n,...s,ref:t})});w.displayName=N;var P="AlertDialogDescription",D=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.dk,{...n,...s,ref:t})});D.displayName=P;var S=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,n=m(r);return(0,a.jsx)(l.x8,{...n,...s,ref:t})});S.displayName="AlertDialogAction";var A="AlertDialogCancel",O=s.forwardRef((e,t)=>{let{__scopeAlertDialog:r,...s}=e,{cancelRef:n}=y(A,r),i=m(r),d=(0,o.e)(t,n);return(0,a.jsx)(l.x8,{...i,...s,ref:d})});O.displayName=A;var R=e=>{let{contentRef:t}=e,r="`".concat(j,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(j,"` by passing a `").concat(P,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(j,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(r)},[r,t]),null},_=r(90270),M=r(78580);let T=h,C=p,Q=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(g,{className:(0,_.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...s,ref:t})});Q.displayName=g.displayName;let E=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsxs)(x,{children:[(0,a.jsx)(Q,{}),(0,a.jsx)(b,{ref:t,className:(0,_.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...s})]})});E.displayName=b.displayName;let k=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,_.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...r})};k.displayName="AlertDialogHeader";let I=e=>{let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,_.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...r})};I.displayName="AlertDialogFooter";let z=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(w,{ref:t,className:(0,_.cn)("text-lg font-semibold",r),...s})});z.displayName=w.displayName;let F=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(D,{ref:t,className:(0,_.cn)("text-sm text-muted-foreground",r),...s})});F.displayName=D.displayName;let W=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(S,{ref:t,className:(0,_.cn)((0,M.d)(),r),...s})});W.displayName=S.displayName;let B=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(O,{ref:t,className:(0,_.cn)((0,M.d)({variant:"outline"}),"mt-2 sm:mt-0",r),...s})});B.displayName=O.displayName},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),s=r(64149),n=r(54098),o=r(20116),l=r(90270);let i=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:d=!1,...c}=e,u=d?n.g7:"button";return(0,a.jsx)(u,{className:(0,l.cn)(i({variant:s,size:o,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return o},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),s=r(64149),n=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});o.displayName="Card";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...s})});l.displayName="CardHeader";let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...s})});i.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...s})});c.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var a=r(20881),s=r(64149),n=r(51212),o=r(20116),l=r(90270);let i=(0,o.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(n.f,{ref:t,className:(0,l.cn)(i(),r),...s})});d.displayName=n.f.displayName},22989:function(e,t,r){"use strict";r.d(t,{Bw:function(){return h},DI:function(){return d},Ph:function(){return i},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return p}});var a=r(20881),s=r(64149),n=r(35935),o=r(62072),l=r(90270);let i=o.fC,d=o.ZA,c=o.B4,u=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.xz,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...i,children:[s,(0,a.jsx)(o.JO,{asChild:!0,children:(0,a.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=o.xz.displayName;let f=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.u_,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(n.g8U,{})})});f.displayName=o.u_.displayName;let m=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.$G,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...s,children:(0,a.jsx)(n.v4q,{})})});m.displayName=o.$G.displayName;let h=s.forwardRef((e,t)=>{let{className:r,children:s,position:n="popper",...i}=e;return(0,a.jsx)(o.h_,{children:(0,a.jsxs)(o.VY,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...i,children:[(0,a.jsx)(f,{}),(0,a.jsx)(o.l_,{className:(0,l.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),(0,a.jsx)(m,{})]})})});h.displayName=o.VY.displayName;let p=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",r),...s})});p.displayName=o.__.displayName;let x=s.forwardRef((e,t)=>{let{className:r,children:s,...i}=e;return(0,a.jsxs)(o.ck,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(o.wU,{children:(0,a.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(o.eT,{children:s})]})});x.displayName=o.ck.displayName,s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,a.jsx)(o.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",r),...s})}).displayName=o.Z0.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var a=r(20881),s=r(64149),n=r(48897),o=r(90270);let l=s.forwardRef((e,t)=>{let{className:r,orientation:s="horizontal",decorative:l=!0,...i}=e;return(0,a.jsx)(n.f,{ref:t,decorative:l,orientation:s,className:(0,o.cn)("shrink-0 bg-border","horizontal"===s?"h-[1px] w-full":"h-full w-[1px]",r),...i})});l.displayName=n.f.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var a=r(20881),s=r(90270);function n(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,s.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var a=r(64149);let s=0,n=new Map,o=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},i=[],d={toasts:[]};function c(e){d=l(d,e),i.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(d);return a.useEffect(()=>(i.push(t),()=>{let e=i.indexOf(t);e>-1&&i.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return n}});var a=r(33958),s=r(61779);function n(){for(var e=arguments.length,t=Array(e),r=0;r(0,n.jsx)(s.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));o.displayName="Label";var l=o},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var a=r(64149),s=r(79442),n=r(20881),o="horizontal",l=["horizontal","vertical"],i=a.forwardRef((e,t)=>{let{decorative:r,orientation:a=o,...i}=e,d=l.includes(a)?a:o;return(0,n.jsx)(s.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...i,ref:t})});i.displayName="Separator";var d=i}},function(e){e.O(0,[792,4059,8714,217,5420,2072,4491,8985,5330,1744],function(){return e(e.s=53830)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-ec27291099cba867.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-ec27291099cba867.js new file mode 100644 index 0000000..c77fefb --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-ec27291099cba867.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1060],{89460:function(t,e,a){Promise.resolve().then(a.bind(a,27442))},27442:function(t,e,a){"use strict";a.r(e);var s=a(20881);a(64149);var n=a(27525),d=a(26509);e.default=t=>{let{children:e}=t,a=(0,n.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===a?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===a?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===a?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===a?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},27525:function(t,e,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(e,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(e,{useRouter:function(){return s.useRouter}})}},function(t){t.O(0,[6509,8985,5330,1744],function(){return t(t.s=89460)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-fd01dcf326dbdbc3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-fd01dcf326dbdbc3.js deleted file mode 100644 index 40a5a2a..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/layout-fd01dcf326dbdbc3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[60],{89460:function(t,e,a){Promise.resolve().then(a.bind(a,27442))},27442:function(t,e,a){"use strict";a.r(e);var s=a(20881);a(64149);var n=a(27525),d=a(26509);e.default=t=>{let{children:e}=t,a=(0,n.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Advanced Settings"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat("/dashboard/advanced-settings/connectivity/"===a?"font-semibold text-primary":"text-sm"),children:"Connectivity"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/ttl-settings",className:"".concat("/dashboard/advanced-settings/ttl-settings/"===a?"font-semibold text-primary":"text-sm"),children:"TTL Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/mtu",className:"".concat("/dashboard/advanced-settings/mtu/"===a?"font-semibold text-primary":"text-sm"),children:"MTU Settings"}),(0,s.jsx)(d.default,{href:"/dashboard/advanced-settings/at-terminal",className:"".concat("/dashboard/advanced-settings/at-terminal/"===a?"font-semibold text-primary":"text-sm"),children:"AT Terminal"})]}),e]})]})}},27525:function(t,e,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(e,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(e,{useRouter:function(){return s.useRouter}})}},function(t){t.O(0,[509,985,330,744],function(){return t(t.s=89460)}),_N_E=t.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-2eb5c0ca53c5b386.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-2eb5c0ca53c5b386.js deleted file mode 100644 index d6a6763..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-2eb5c0ca53c5b386.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[654],{12541:function(e,t,s){Promise.resolve().then(s.bind(s,37569))},37569:function(e,t,s){"use strict";s.r(t);var a=s(20881),n=s(64149),i=s(94920),c=s(33335),l=s(23853),r=s(78580),o=s(46646),d=s(6120);t.default=()=>{let[e,t]=(0,n.useState)("1500"),[s,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!0),[x,g]=(0,n.useState)(""),f=(0,o.pm)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/mtu.sh"),s=await e.json();u(s.isEnabled),t(s.currentValue.toString()),m(!1)}catch(e){g("Failed to fetch MTU settings"),m(!1),f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,a.jsx)(d.Z,{})})}})()},[]);let j=async t=>{t.preventDefault(),g("");let n=s?e:"disable";try{let e=await fetch("/cgi-bin/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(n)}),t=await e.json();!0===t.success?f.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,a.jsx)(d.Z,{})})}catch(e){g("Failed to save MTU settings"),f.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,a.jsx)(d.Z,{})})}};return h?(0,a.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,a.jsx)(i.aY,{className:"p-6",children:(0,a.jsx)("div",{className:"text-center",children:"Loading MTU settings..."})})}):(0,a.jsxs)(i.Zb,{children:[(0,a.jsxs)(i.Ol,{children:[(0,a.jsx)(i.ll,{children:"MTU Settings"}),(0,a.jsx)(i.SZ,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,a.jsx)(i.aY,{children:(0,a.jsxs)("form",{onSubmit:j,className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,a.jsx)(c.I,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!s,className:"mt-1",min:"68",max:"9000"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,a.jsx)(l.r,{checked:s,onCheckedChange:e=>{u(e),e||t("1500")}})]})]}),(0,a.jsx)(r.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}}},function(e){e.O(0,[792,59,529,985,330,744],function(){return e(e.s=12541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-c526f7d515da50e7.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-c526f7d515da50e7.js new file mode 100644 index 0000000..ce50255 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/mtu/page-c526f7d515da50e7.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8654],{12541:function(e,t,r){Promise.resolve().then(r.bind(r,37569))},37569:function(e,t,r){"use strict";r.r(t);var n=r(20881),s=r(64149),i=r(94920),o=r(33335),a=r(23853),u=r(78580),c=r(46646),l=r(6120);t.default=()=>{let[e,t]=(0,s.useState)("1500"),[r,d]=(0,s.useState)(!1),[f,m]=(0,s.useState)(!0),[p,h]=(0,s.useState)(""),v=(0,c.pm)();(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/mtu.sh"),r=await e.json();d(r.isEnabled),t(r.currentValue.toString()),m(!1)}catch(e){h("Failed to fetch MTU settings"),m(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to fetch MTU settings",action:(0,n.jsx)(l.Z,{})})}})()},[]);let b=async t=>{t.preventDefault(),h("");let s=r?e:"disable";try{let e=await fetch("/cgi-bin/advance/mtu.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"mtu=".concat(s)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:t.message||"MTU settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:t.error||"Failed to save MTU settings",action:(0,n.jsx)(l.Z,{})})}catch(e){h("Failed to save MTU settings"),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Network error while saving MTU settings",action:(0,n.jsx)(l.Z,{})})}};return f?(0,n.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,n.jsx)(i.aY,{className:"p-6",children:(0,n.jsx)("div",{className:"text-center",children:"Loading MTU settings..."})})}):(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[(0,n.jsx)(i.ll,{children:"MTU Settings"}),(0,n.jsx)(i.SZ,{children:"Configure MTU for rmnet_data0 interface."})]}),(0,n.jsx)(i.aY,{children:(0,n.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-sm font-medium",children:"MTU Value"}),(0,n.jsx)(o.I,{type:"number",value:e,onChange:e=>t(e.target.value),disabled:!r,className:"mt-1",min:"68",max:"9000"}),(0,n.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the MTU value for your connection (default: 1500)."})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-base font-medium",children:"MTU State"}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable custom MTU value."})]}),(0,n.jsx)(a.r,{checked:r,onCheckedChange:e=>{d(e),e||t("1500")}})]})]}),(0,n.jsx)(u.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}},6120:function(e,t,r){"use strict";var n=r(20881),s=r(78580),i=r(35935);t.Z=()=>(0,n.jsx)(s.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,n.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,n.jsx)(i.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return u},z:function(){return c}});var n=r(20881),s=r(64149),i=r(54098),o=r(20116),a=r(90270);let u=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:c=!1,...l}=e,d=c?i.g7:"button";return(0,n.jsx)(d,{className:(0,a.cn)(u({variant:s,size:o,className:r})),ref:t,...l})});c.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return a},SZ:function(){return c},Zb:function(){return o},aY:function(){return l},eW:function(){return d},ll:function(){return u}});var n=r(20881),s=r(64149),i=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});o.displayName="Card";let a=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...s})});a.displayName="CardHeader";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...s})});u.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});c.displayName="CardDescription";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...s})});l.displayName="CardContent";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...s})});d.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n=r(20881),s=r(64149),i=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,type:s,...o}=e;return(0,n.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},23853:function(e,t,r){"use strict";r.d(t,{r:function(){return N}});var n=r(20881),s=r(64149),i=r(64433),o=r(83954),a=r(74873),u=r(45306),c=r(32437),l=r(73452),d=r(79442),f="Switch",[m,p]=(0,a.b)(f),[h,v]=m(f),b=s.forwardRef((e,t)=>{let{__scopeSwitch:r,name:a,checked:c,defaultChecked:l,required:f,disabled:m,value:p="on",onCheckedChange:v,form:b,...g}=e,[x,j]=s.useState(null),N=(0,o.e)(t,e=>j(e)),S=s.useRef(!1),T=!x||b||!!x.closest("form"),[k=!1,M]=(0,u.T)({prop:c,defaultProp:l,onChange:v});return(0,n.jsxs)(h,{scope:r,checked:k,disabled:m,children:[(0,n.jsx)(d.WV.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":m?"":void 0,disabled:m,value:p,...g,ref:N,onClick:(0,i.M)(e.onClick,e=>{M(e=>!e),T&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),T&&(0,n.jsx)(y,{control:x,bubbles:!S.current,name:a,value:p,checked:k,required:f,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var g="SwitchThumb",x=s.forwardRef((e,t)=>{let{__scopeSwitch:r,...s}=e,i=v(g,r);return(0,n.jsx)(d.WV.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});x.displayName=g;var y=e=>{let{control:t,checked:r,bubbles:i=!0,...o}=e,a=s.useRef(null),u=(0,c.D)(r),d=(0,l.t)(t);return s.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[u,r,i]),(0,n.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var j=r(90270);let N=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(b,{className:(0,j.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...s,ref:t,children:(0,n.jsx)(x,{className:(0,j.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});N.displayName=b.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var n=r(64149);let s=0,i=new Map,o=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},a=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},u=[],c={toasts:[]};function l(e){c=a(c,e),u.forEach(e=>{e(c)})}function d(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(c);return n.useEffect(()=>(u.push(t),()=>{let e=u.indexOf(t);e>-1&&u.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return i}});var n=r(33958),s=r(61779);function i(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,...i}=e,o=n.useMemo(()=>i,Object.values(i));return(0,s.jsx)(r.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(s){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let s=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:s}}),[r,s])}};return i.scopeName=e,[function(t,i){let o=n.createContext(i),a=r.length;r=[...r,i];let u=t=>{let{scope:r,children:i,...u}=t,c=r?.[e]?.[a]||o,l=n.useMemo(()=>u,Object.values(u));return(0,s.jsx)(c.Provider,{value:l,children:i})};return u.displayName=t+"Provider",[u,function(r,s){let u=s?.[e]?.[a]||o,c=n.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=r.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}(i,...t)]}},79442:function(e,t,r){"use strict";r.d(t,{WV:function(){return a},jH:function(){return u}});var n=r(64149),s=r(50149),i=r(54098),o=r(20881),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...s}=e,a=n?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},2441:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(64149);function s(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},45306:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(64149),s=r(2441);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,o=n.useRef(i),a=(0,s.W)(t);return n.useEffect(()=>{o.current!==i&&(a(i),o.current=i)},[i,o,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,u=a?e:i,c=(0,s.W)(r);return[u,n.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else o(t)},[a,e,o,c])]}},61013:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});var n=r(64149),s=globalThis?.document?n.useLayoutEffect:()=>{}},32437:function(e,t,r){"use strict";r.d(t,{D:function(){return s}});var n=r(64149);function s(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(64149),s=r(61013);function i(e){let[t,r]=n.useState(void 0);return(0,s.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,s;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,s=t.blockSize}else n=e.offsetWidth,s=e.offsetHeight;r({width:n,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},20116:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e,t,r=0,n="";rr=>{var i;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:a}=t,u=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],s=null==a?void 0:a[e];if(null===t)return null;let i=n(t)||n(s);return o[e][i]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,u,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...c}[t]):({...a,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[792,4059,8985,5330,1744],function(){return e(e.s=12541)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-750c4d0e6d187ae1.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-750c4d0e6d187ae1.js new file mode 100644 index 0000000..5d00d78 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-750c4d0e6d187ae1.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1876],{87168:function(e,t,r){Promise.resolve().then(r.bind(r,11597))},11597:function(e,t,r){"use strict";r.r(t);var n=r(20881),s=r(64149),i=r(94920),o=r(33335),a=r(23853),u=r(78580),c=r(46646),l=r(6120);t.default=()=>{let[e,t]=(0,s.useState)("0"),[r,d]=(0,s.useState)(!1),[f,m]=(0,s.useState)(!0),[p,h]=(0,s.useState)(""),[v,b]=(0,s.useState)(""),g=(0,c.pm)();(0,s.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/ttl.sh"),r=await e.json();d(r.isEnabled),t(r.currentValue.toString()),m(!1)}catch(e){h("Failed to fetch TTL settings"),m(!1),g.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:p,action:(0,n.jsx)(l.Z,{})})}})()},[]);let x=async t=>{t.preventDefault(),h(""),b("");let s=r?e:"0";try{let e=await fetch("/cgi-bin/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(s)}),t=await e.json();!0===t.success?g.toast({title:"Success",description:"Settings saved successfully"}):g.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to save settings",action:(0,n.jsx)(l.Z,{})})}catch(e){h("Failed to save settings")}};return f?(0,n.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,n.jsx)(i.aY,{className:"p-6",children:(0,n.jsx)("div",{className:"text-center",children:"Loading TTL settings..."})})}):(0,n.jsxs)(i.Zb,{children:[(0,n.jsxs)(i.Ol,{children:[(0,n.jsx)(i.ll,{children:"TTL Settings"}),(0,n.jsx)(i.SZ,{children:"Configure TTL mangling for your connection."})]}),(0,n.jsx)(i.aY,{children:(0,n.jsxs)("form",{onSubmit:x,className:"space-y-8",children:[(0,n.jsxs)("div",{className:"space-y-6",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,n.jsx)(o.I,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!r,className:"mt-1"}),(0,n.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,n.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,n.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,n.jsx)(a.r,{checked:r,onCheckedChange:d})]})]}),(0,n.jsx)(u.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}},6120:function(e,t,r){"use strict";var n=r(20881),s=r(78580),i=r(35935);t.Z=()=>(0,n.jsx)(s.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,n.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,n.jsx)(i.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return u},z:function(){return c}});var n=r(20881),s=r(64149),i=r(54098),o=r(20116),a=r(90270);let u=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,t)=>{let{className:r,variant:s,size:o,asChild:c=!1,...l}=e,d=c?i.g7:"button";return(0,n.jsx)(d,{className:(0,a.cn)(u({variant:s,size:o,className:r})),ref:t,...l})});c.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return a},SZ:function(){return c},Zb:function(){return o},aY:function(){return l},eW:function(){return d},ll:function(){return u}});var n=r(20881),s=r(64149),i=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});o.displayName="Card";let a=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",r),...s})});a.displayName="CardHeader";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,i.cn)("font-semibold leading-none tracking-tight",r),...s})});u.displayName="CardTitle";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("p",{ref:t,className:(0,i.cn)("text-sm text-muted-foreground",r),...s})});c.displayName="CardDescription";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("p-6 pt-0",r),...s})});l.displayName="CardContent";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,i.cn)("flex items-center p-6 pt-0",r),...s})});d.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return o}});var n=r(20881),s=r(64149),i=r(90270);let o=s.forwardRef((e,t)=>{let{className:r,type:s,...o}=e;return(0,n.jsx)("input",{type:s,className:(0,i.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...o})});o.displayName="Input"},23853:function(e,t,r){"use strict";r.d(t,{r:function(){return N}});var n=r(20881),s=r(64149),i=r(64433),o=r(83954),a=r(74873),u=r(45306),c=r(32437),l=r(73452),d=r(79442),f="Switch",[m,p]=(0,a.b)(f),[h,v]=m(f),b=s.forwardRef((e,t)=>{let{__scopeSwitch:r,name:a,checked:c,defaultChecked:l,required:f,disabled:m,value:p="on",onCheckedChange:v,form:b,...g}=e,[x,j]=s.useState(null),N=(0,o.e)(t,e=>j(e)),S=s.useRef(!1),T=!x||b||!!x.closest("form"),[k=!1,E]=(0,u.T)({prop:c,defaultProp:l,onChange:v});return(0,n.jsxs)(h,{scope:r,checked:k,disabled:m,children:[(0,n.jsx)(d.WV.button,{type:"button",role:"switch","aria-checked":k,"aria-required":f,"data-state":w(k),"data-disabled":m?"":void 0,disabled:m,value:p,...g,ref:N,onClick:(0,i.M)(e.onClick,e=>{E(e=>!e),T&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),T&&(0,n.jsx)(y,{control:x,bubbles:!S.current,name:a,value:p,checked:k,required:f,disabled:m,form:b,style:{transform:"translateX(-100%)"}})]})});b.displayName=f;var g="SwitchThumb",x=s.forwardRef((e,t)=>{let{__scopeSwitch:r,...s}=e,i=v(g,r);return(0,n.jsx)(d.WV.span,{"data-state":w(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:t})});x.displayName=g;var y=e=>{let{control:t,checked:r,bubbles:i=!0,...o}=e,a=s.useRef(null),u=(0,c.D)(r),d=(0,l.t)(t);return s.useEffect(()=>{let e=a.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(u!==r&&t){let n=new Event("click",{bubbles:i});t.call(e,r),e.dispatchEvent(n)}},[u,r,i]),(0,n.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:a,style:{...e.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function w(e){return e?"checked":"unchecked"}var j=r(90270);let N=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(b,{className:(0,j.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...s,ref:t,children:(0,n.jsx)(x,{className:(0,j.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});N.displayName=b.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var n=r(64149);let s=0,i=new Map,o=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},a=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?o(r):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},u=[],c={toasts:[]};function l(e){c=a(c,e),u.forEach(e=>{e(c)})}function d(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(c);return n.useEffect(()=>(u.push(t),()=>{let e=u.indexOf(t);e>-1&&u.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return i}});var n=r(33958),s=r(61779);function i(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t,...i}=e,o=n.useMemo(()=>i,Object.values(i));return(0,s.jsx)(r.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(s){let i=n.useContext(r);if(i)return i;if(void 0!==t)return t;throw Error(`\`${s}\` must be used within \`${e}\``)}]}function o(e,t=[]){let r=[],i=()=>{let t=r.map(e=>n.createContext(e));return function(r){let s=r?.[e]||t;return n.useMemo(()=>({[`__scope${e}`]:{...r,[e]:s}}),[r,s])}};return i.scopeName=e,[function(t,i){let o=n.createContext(i),a=r.length;r=[...r,i];let u=t=>{let{scope:r,children:i,...u}=t,c=r?.[e]?.[a]||o,l=n.useMemo(()=>u,Object.values(u));return(0,s.jsx)(c.Provider,{value:l,children:i})};return u.displayName=t+"Provider",[u,function(r,s){let u=s?.[e]?.[a]||o,c=n.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let s=r.reduce((t,{useScope:r,scopeName:n})=>{let s=r(e)[`__scope${n}`];return{...t,...s}},{});return n.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}(i,...t)]}},79442:function(e,t,r){"use strict";r.d(t,{WV:function(){return a},jH:function(){return u}});var n=r(64149),s=r(50149),i=r(54098),o=r(20881),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let r=n.forwardRef((e,r)=>{let{asChild:n,...s}=e,a=n?i.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(a,{...s,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e,t){e&&s.flushSync(()=>e.dispatchEvent(t))}},2441:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(64149);function s(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},45306:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(64149),s=r(2441);function i({prop:e,defaultProp:t,onChange:r=()=>{}}){let[i,o]=function({defaultProp:e,onChange:t}){let r=n.useState(e),[i]=r,o=n.useRef(i),a=(0,s.W)(t);return n.useEffect(()=>{o.current!==i&&(a(i),o.current=i)},[i,o,a]),r}({defaultProp:t,onChange:r}),a=void 0!==e,u=a?e:i,c=(0,s.W)(r);return[u,n.useCallback(t=>{if(a){let r="function"==typeof t?t(e):t;r!==e&&c(r)}else o(t)},[a,e,o,c])]}},61013:function(e,t,r){"use strict";r.d(t,{b:function(){return s}});var n=r(64149),s=globalThis?.document?n.useLayoutEffect:()=>{}},32437:function(e,t,r){"use strict";r.d(t,{D:function(){return s}});var n=r(64149);function s(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){"use strict";r.d(t,{t:function(){return i}});var n=r(64149),s=r(61013);function i(e){let[t,r]=n.useState(void 0);return(0,s.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,s;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,s=t.blockSize}else n=e.offsetWidth,s=e.offsetHeight;r({width:n,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},20116:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});let n=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,s=function(){for(var e,t,r=0,n="";rr=>{var i;if((null==t?void 0:t.variants)==null)return s(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:a}=t,u=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],s=null==a?void 0:a[e];if(null===t)return null;let i=n(t)||n(s);return o[e][i]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(e,u,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:r,className:n,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...c}[t]):({...a,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}}},function(e){e.O(0,[792,4059,8985,5330,1744],function(){return e(e.s=87168)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-918258a622f31d74.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-918258a622f31d74.js deleted file mode 100644 index 7ab993f..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/advanced-settings/ttl-settings/page-918258a622f31d74.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[876],{87168:function(e,t,s){Promise.resolve().then(s.bind(s,11597))},11597:function(e,t,s){"use strict";s.r(t);var a=s(20881),n=s(64149),i=s(94920),c=s(33335),l=s(23853),r=s(78580),o=s(46646),d=s(6120);t.default=()=>{let[e,t]=(0,n.useState)("0"),[s,u]=(0,n.useState)(!1),[h,m]=(0,n.useState)(!0),[x,g]=(0,n.useState)(""),[f,j]=(0,n.useState)(""),v=(0,o.pm)();(0,n.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/advance/ttl.sh"),s=await e.json();u(s.isEnabled),t(s.currentValue.toString()),m(!1)}catch(e){g("Failed to fetch TTL settings"),m(!1),v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:x,action:(0,a.jsx)(d.Z,{})})}})()},[]);let b=async t=>{t.preventDefault(),g(""),j("");let n=s?e:"0";try{let e=await fetch("/cgi-bin/advance/ttl.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"ttl=".concat(n)}),t=await e.json();!0===t.success?v.toast({title:"Success",description:"Settings saved successfully"}):v.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Failed to save settings",action:(0,a.jsx)(d.Z,{})})}catch(e){g("Failed to save settings")}};return h?(0,a.jsx)(i.Zb,{className:"w-full max-w-2xl mx-auto",children:(0,a.jsx)(i.aY,{className:"p-6",children:(0,a.jsx)("div",{className:"text-center",children:"Loading TTL settings..."})})}):(0,a.jsxs)(i.Zb,{children:[(0,a.jsxs)(i.Ol,{children:[(0,a.jsx)(i.ll,{children:"TTL Settings"}),(0,a.jsx)(i.SZ,{children:"Configure TTL mangling for your connection."})]}),(0,a.jsx)(i.aY,{children:(0,a.jsxs)("form",{onSubmit:b,className:"space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-sm font-medium",children:"TTL Value"}),(0,a.jsx)(c.I,{type:"number",min:"0",max:"255",value:e,onChange:e=>t(e.target.value),disabled:!s,className:"mt-1"}),(0,a.jsx)("p",{className:"text-sm text-gray-500 mt-1",children:"Set the TTL value for your connection (0-255)."})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("label",{className:"text-base font-medium",children:"TTL State"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Toggle to enable or disable TTL mangling"})]}),(0,a.jsx)(l.r,{checked:s,onCheckedChange:u})]})]}),(0,a.jsx)(r.z,{type:"submit",className:"w-full",children:"Save Configuration"})]})})]})}}},function(e){e.O(0,[792,59,529,985,330,744],function(){return e(e.s=87168)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2f99e70b9577f8d5.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-a4794c21581a3f67.js similarity index 99% rename from ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2f99e70b9577f8d5.js rename to ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-a4794c21581a3f67.js index 55815cb..cca3a40 100644 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-2f99e70b9577f8d5.js +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/band-locking/page-a4794c21581a3f67.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[932],{7617:function(e,t,r){Promise.resolve().then(r.bind(r,31291))},31291:function(e,t,r){"use strict";r.r(t);var n=r(20881),s=r(64149),a=r(94920),i=r(835),o=r(78580),c=r(46646),d=r(5501),l=r(98228);let u={lte:"lte_band",nsa:"nsa_nr5g_band",sa:"nr5g_band"};t.default=()=>{let{toast:e}=(0,c.pm)(),[t,r]=(0,s.useState)({lte:[],nsa:[],sa:[]}),[f,p]=(0,s.useState)({lte:[],nsa:[],sa:[]}),[h,m]=(0,s.useState)(!0),g=async e=>{try{let t=encodeURIComponent(e),r=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t),signal:AbortSignal.timeout(5e3)});if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let n=await r.json();if(n.error)throw Error(n.error);return n}catch(e){throw console.error("AT Command error:",e),e}},b=(e,t)=>{for(let r of e.output.split("\n"))if(r.includes(t)){let e=r.match(/"([^"]+)",(.+)/);if(e&&e[2])return e[2].split(":").map(Number)}return[]},v=async()=>{try{let e=(await g('AT+QNWPREFCFG="policy_band"')).output.split("\n"),t={lte:[],nsa:[],sa:[]};e.forEach(e=>{var r,n,s;e.includes('"lte_band"')?t.lte=(null===(r=e.split(",")[1])||void 0===r?void 0:r.split(":").map(Number))||[]:e.includes('"nsa_nr5g_band"')?t.nsa=(null===(n=e.split(",")[1])||void 0===n?void 0:n.split(":").map(Number))||[]:e.includes('"nrdc_nr5g_band"')&&(t.sa=(null===(s=e.split(",")[1])||void 0===s?void 0:s.split(":").map(Number))||[])}),r(t)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch available bands.",variant:"destructive"})}},x=async()=>{try{let e=await g('AT+QNWPREFCFG="lte_band";+QNWPREFCFG="nsa_nr5g_band";+QNWPREFCFG="nr5g_band"'),t={lte:b(e,"lte_band"),nsa:b(e,'+QNWPREFCFG: "nsa_nr5g_band"'),sa:b(e,'+QNWPREFCFG: "nr5g_band"')};console.log("New Checked Bands: ",t),p(t),m(!1)}catch(t){console.error("Error fetching checked bands:",t),e({title:"Error",description:"Failed to fetch checked bands.",variant:"destructive"}),m(!1)}};(0,s.useEffect)(()=>{(async()=>{await v(),await x()})()},[]);let y=(e,t)=>{p(r=>({...r,[e]:r[e].includes(t)?r[e].filter(e=>e!==t):[...r[e],t].sort((e,t)=>e-t)}))},N=async t=>{try{let r=f[t].join(":");await g('AT+QNWPREFCFG="'.concat(u[t],'",').concat(r)),e({title:"Band Locking",description:"Bands locked successfully."}),await x()}catch(r){console.error("Error locking ".concat(t," bands:"),r),e({title:"Error",description:"Failed to lock ".concat(t.toUpperCase()," bands."),variant:"destructive"})}},w=e=>{p(t=>({...t,[e]:[]}))},_=async r=>{try{let n=t[r].join(":");await g('AT+QNWPREFCFG="'.concat(u[r],'",').concat(n)),e({title:"Reset Successful",description:"".concat(r.toUpperCase()," bands reset to default.")}),await x()}catch(t){console.error("Error resetting ".concat(r," bands:"),t),e({title:"Error",description:"Failed to reset ".concat(r.toUpperCase()," bands."),variant:"destructive"})}},E=e=>{let{title:r,description:s,bandType:c,prefix:u}=e;return(0,n.jsxs)(a.Zb,{children:[(0,n.jsxs)(a.Ol,{children:[(0,n.jsx)(a.ll,{children:r}),(0,n.jsx)(a.SZ,{children:s})]}),(0,n.jsx)(a.aY,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:h?(0,n.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[c].map(e=>(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(i.X,{id:"".concat(c,"-").concat(e),checked:f[c].includes(e),onCheckedChange:()=>y(c,e)}),(0,n.jsxs)("label",{htmlFor:"".concat(c,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[u,e]})]},e))}),(0,n.jsxs)(a.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,n.jsxs)(o.z,{onClick:()=>N(c),children:[(0,n.jsx)(d.Z,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,n.jsx)(o.z,{variant:"secondary",onClick:()=>w(c),children:"Uncheck All"}),(0,n.jsxs)(o.z,{variant:"secondary",onClick:()=>_(c),children:[(0,n.jsx)(l.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)(E,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B"}),(0,n.jsx)(E,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N"}),(0,n.jsx)(E,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N"})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return c},z:function(){return d}});var n=r(20881),s=r(64149),a=r(54098),i=r(20116),o=r(90270);let c=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:i,asChild:d=!1,...l}=e,u=d?a.g7:"button";return(0,n.jsx)(u,{className:(0,o.cn)(c({variant:s,size:i,className:r})),ref:t,...l})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return i},aY:function(){return l},eW:function(){return u},ll:function(){return c}});var n=r(20881),s=r(64149),a=r(90270);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});i.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...s})});o.displayName="CardHeader";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...s})});c.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...s})});l.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},835:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var n=r(20881),s=r(64149),a=r(17533),i=r(35935),o=r(90270);let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.fC,{ref:t,className:(0,o.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...s,children:(0,n.jsx)(a.z$,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(i.nQG,{className:"h-4 w-4"})})})});c.displayName=a.fC.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var n=r(64149);let s=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},c=[],d={toasts:[]};function l(e){d=o(d,e),c.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(d);return n.useEffect(()=>(c.push(t),()=>{let e=c.indexOf(t);e>-1&&c.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(33958),s=r(61779);function a(){for(var e=arguments.length,t=Array(e),r=0;r{let{toast:e}=(0,c.pm)(),[t,r]=(0,s.useState)({lte:[],nsa:[],sa:[]}),[f,p]=(0,s.useState)({lte:[],nsa:[],sa:[]}),[h,m]=(0,s.useState)(!0),g=async e=>{try{let t=encodeURIComponent(e),r=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t),signal:AbortSignal.timeout(5e3)});if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let n=await r.json();if(n.error)throw Error(n.error);return n}catch(e){throw console.error("AT Command error:",e),e}},b=(e,t)=>{for(let r of e.output.split("\n"))if(r.includes(t)){let e=r.match(/"([^"]+)",(.+)/);if(e&&e[2])return e[2].split(":").map(Number)}return[]},v=async()=>{try{let e=(await g('AT+QNWPREFCFG="policy_band"')).output.split("\n"),t={lte:[],nsa:[],sa:[]};e.forEach(e=>{var r,n,s;e.includes('"lte_band"')?t.lte=(null===(r=e.split(",")[1])||void 0===r?void 0:r.split(":").map(Number))||[]:e.includes('"nsa_nr5g_band"')?t.nsa=(null===(n=e.split(",")[1])||void 0===n?void 0:n.split(":").map(Number))||[]:e.includes('"nrdc_nr5g_band"')&&(t.sa=(null===(s=e.split(",")[1])||void 0===s?void 0:s.split(":").map(Number))||[])}),r(t)}catch(t){console.error("Error fetching bands:",t),e({title:"Error",description:"Failed to fetch available bands.",variant:"destructive"})}},x=async()=>{try{let e=await g('AT+QNWPREFCFG="lte_band";+QNWPREFCFG="nsa_nr5g_band";+QNWPREFCFG="nr5g_band"'),t={lte:b(e,"lte_band"),nsa:b(e,'+QNWPREFCFG: "nsa_nr5g_band"'),sa:b(e,'+QNWPREFCFG: "nr5g_band"')};console.log("New Checked Bands: ",t),p(t),m(!1)}catch(t){console.error("Error fetching checked bands:",t),e({title:"Error",description:"Failed to fetch checked bands.",variant:"destructive"}),m(!1)}};(0,s.useEffect)(()=>{(async()=>{await v(),await x()})()},[]);let y=(e,t)=>{p(r=>({...r,[e]:r[e].includes(t)?r[e].filter(e=>e!==t):[...r[e],t].sort((e,t)=>e-t)}))},N=async t=>{try{let r=f[t].join(":");await g('AT+QNWPREFCFG="'.concat(u[t],'",').concat(r)),e({title:"Band Locking",description:"Bands locked successfully."}),await x()}catch(r){console.error("Error locking ".concat(t," bands:"),r),e({title:"Error",description:"Failed to lock ".concat(t.toUpperCase()," bands."),variant:"destructive"})}},w=e=>{p(t=>({...t,[e]:[]}))},_=async r=>{try{let n=t[r].join(":");await g('AT+QNWPREFCFG="'.concat(u[r],'",').concat(n)),e({title:"Reset Successful",description:"".concat(r.toUpperCase()," bands reset to default.")}),await x()}catch(t){console.error("Error resetting ".concat(r," bands:"),t),e({title:"Error",description:"Failed to reset ".concat(r.toUpperCase()," bands."),variant:"destructive"})}},E=e=>{let{title:r,description:s,bandType:c,prefix:u}=e;return(0,n.jsxs)(a.Zb,{children:[(0,n.jsxs)(a.Ol,{children:[(0,n.jsx)(a.ll,{children:r}),(0,n.jsx)(a.SZ,{children:s})]}),(0,n.jsx)(a.aY,{className:"grid lg:grid-cols-8 md:grid-cols-6 sm:grid-cols-4 grid-cols-3 grid-flow-row gap-4",children:h?(0,n.jsx)("div",{className:"col-span-8",children:"Fetching bands..."}):t[c].map(e=>(0,n.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,n.jsx)(i.X,{id:"".concat(c,"-").concat(e),checked:f[c].includes(e),onCheckedChange:()=>y(c,e)}),(0,n.jsxs)("label",{htmlFor:"".concat(c,"-").concat(e),className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:[u,e]})]},e))}),(0,n.jsxs)(a.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-3",children:[(0,n.jsxs)(o.z,{onClick:()=>N(c),children:[(0,n.jsx)(d.Z,{className:"h-4 w-4"}),"Lock Selected Bands"]}),(0,n.jsx)(o.z,{variant:"secondary",onClick:()=>w(c),children:"Uncheck All"}),(0,n.jsxs)(o.z,{variant:"secondary",onClick:()=>_(c),children:[(0,n.jsx)(l.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]})};return(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)(E,{title:"4G LTE Band Locking",description:"Lock the device to specific LTE bands.",bandType:"lte",prefix:"B"}),(0,n.jsx)(E,{title:"NR5G-NSA Band Locking",description:"Lock the device to specific NR5G-NSA bands.",bandType:"nsa",prefix:"N"}),(0,n.jsx)(E,{title:"NR5G-SA Band Locking",description:"Lock the device to specific NR5G-SA bands.",bandType:"sa",prefix:"N"})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return c},z:function(){return d}});var n=r(20881),s=r(64149),a=r(54098),i=r(20116),o=r(90270);let c=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=s.forwardRef((e,t)=>{let{className:r,variant:s,size:i,asChild:d=!1,...l}=e,u=d?a.g7:"button";return(0,n.jsx)(u,{className:(0,o.cn)(c({variant:s,size:i,className:r})),ref:t,...l})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return i},aY:function(){return l},eW:function(){return u},ll:function(){return c}});var n=r(20881),s=r(64149),a=r(90270);let i=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...s})});i.displayName="Card";let o=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex flex-col space-y-1.5 p-6",r),...s})});o.displayName="CardHeader";let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("h3",{ref:t,className:(0,a.cn)("font-semibold leading-none tracking-tight",r),...s})});c.displayName="CardTitle";let d=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("p",{ref:t,className:(0,a.cn)("text-sm text-muted-foreground",r),...s})});d.displayName="CardDescription";let l=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("p-6 pt-0",r),...s})});l.displayName="CardContent";let u=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)("div",{ref:t,className:(0,a.cn)("flex items-center p-6 pt-0",r),...s})});u.displayName="CardFooter"},835:function(e,t,r){"use strict";r.d(t,{X:function(){return c}});var n=r(20881),s=r(64149),a=r(17533),i=r(35935),o=r(90270);let c=s.forwardRef((e,t)=>{let{className:r,...s}=e;return(0,n.jsx)(a.fC,{ref:t,className:(0,o.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...s,children:(0,n.jsx)(a.z$,{className:(0,o.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(i.nQG,{className:"h-4 w-4"})})})});c.displayName=a.fC.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var n=r(64149);let s=0,a=new Map,i=e=>{if(a.has(e))return;let t=setTimeout(()=>{a.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);a.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},c=[],d={toasts:[]};function l(e){d=o(d,e),c.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||n()}}}),{id:r,dismiss:n,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=n.useState(d);return n.useEffect(()=>(c.push(t),()=>{let e=c.indexOf(t);e>-1&&c.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return a}});var n=r(33958),s=r(61779);function a(){for(var e=arguments.length,t=Array(e),r=0;r{let[e,r]=(0,t.useState)(null),[l,i]=(0,t.useState)(!0),s=(0,t.useCallback)(async()=>{try{i(!0);let e=await fetch("/cgi-bin/fetch_data.sh?set=2"),l=await e.json();console.log("Fetched cell settings data:",l);let t={currentAPN:u(l[0].response,l[1].response),apnPDPType:h(l[0].response),preferredNetworkType:P(l[2].response),nr5gMode:v(l[3].response),simSlot:g(l[4].response)};r(t),console.log("Processed cell settings data:",t)}catch(e){console.error("Error fetching cell settings data:",e)}i(!1)},[]);return(0,t.useEffect)(()=>{s()},[s]),{data:e,isLoading:l,fetchCellSettingsData:s}};let u=(e,r)=>{var l,i;let t=null===(l=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===l?void 0:l.split(",")[2].replace(/"/g,"");if(void 0===t||""===t){let e=null===(i=r.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===i?void 0:i.split(",")[2].replace(/"/g,"");return void 0===e||""===e?"No APN found":e}return t},h=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching PDP Type":l},P=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching network type":l},v=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching NR5G mode":l},g=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===r?void 0:r.split(":")[1].trim();return void 0===l||""===l?"Error fetching SIM slot":l};var y=l(47657),x=l(24052),m=l(36306);let N={apn:"",pdpType:"",iccid:""},j={profile1:{...N},profile2:{...N}},w=[{value:"IPV4",label:"IPv4 Only"},{value:"IPV6",label:"IPv6 Only"},{value:"IPV4V6",label:"IPv4 and IPv6"},{value:"P2P",label:"P2P Protocol"}];var S=()=>{let{toast:e}=(0,p.pm)(),{profiles:r,isLoading:l,updateAPNProfile:f,deleteAPNProfiles:u}=function(){let[e,r]=(0,t.useState)({}),[l,i]=(0,t.useState)(!0),s=async()=>{try{i(!0);let e=await fetch("/cgi-bin/cell-settings/apn-profiles/fetch-profile.sh",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let l=await e.json();console.log("Fetched APN profiles data:",l),r(l)}catch(e){console.error("Error fetching APN profiles:",e)}finally{i(!1)}};(0,t.useEffect)(()=>{s()},[]);let n=async(l,i)=>{try{var t,s,n,o,a,c;let d=new URLSearchParams;"profile1"===l?(d.append("iccidProfile1",i.iccid),d.append("apnProfile1",i.apn),d.append("pdpType1",i.pdpType)):(d.append("iccidProfile1",(null===(t=e.profile1)||void 0===t?void 0:t.iccid)||""),d.append("apnProfile1",(null===(s=e.profile1)||void 0===s?void 0:s.apn)||""),d.append("pdpType1",(null===(n=e.profile1)||void 0===n?void 0:n.pdpType)||"")),("profile2"===l||e.profile2)&&(d.append("iccidProfile2","profile2"===l?i.iccid:(null===(o=e.profile2)||void 0===o?void 0:o.iccid)||""),d.append("apnProfile2","profile2"===l?i.apn:(null===(a=e.profile2)||void 0===a?void 0:a.apn)||""),d.append("pdpType2","profile2"===l?i.pdpType:(null===(c=e.profile2)||void 0===c?void 0:c.pdpType)||""));let p=await fetch("/cgi-bin/cell-settings/apn-profiles/save-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:d.toString(),signal:AbortSignal.timeout(1e4)});if(!p.ok)throw Error("Failed to update profile");let f=await p.json();if("success"===f.status)return r(e=>({...e,[l]:i})),!0;throw Error(f.message||"Failed to update profile")}catch(e){return console.error("Error updating ".concat(l,":"),e),!1}};return{profiles:e,isLoading:l,updateAPNProfile:n,deleteAPNProfiles:async()=>{try{let e=await fetch("/cgi-bin/cell-settings/apn-profiles/delete-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("Failed to delete profiles");let l=await e.json();if("success"===l.status)return r({}),!0;throw Error(l.message||"Failed to delete profiles")}catch(e){return console.error("Error deleting APN profiles:",e),!1}}}}(),[h,P]=(0,t.useState)(!1),[v,g]=(0,t.useState)(!1),[N,S]=(0,t.useState)(j);(0,t.useEffect)(()=>{if(r){var e,l,i,t,s,n;S({profile1:{apn:(null===(e=r.profile1)||void 0===e?void 0:e.apn)||"",pdpType:(null===(l=r.profile1)||void 0===l?void 0:l.pdpType)||"",iccid:(null===(i=r.profile1)||void 0===i?void 0:i.iccid)||""},profile2:{apn:(null===(t=r.profile2)||void 0===t?void 0:t.apn)||"",pdpType:(null===(s=r.profile2)||void 0===s?void 0:s.pdpType)||"",iccid:(null===(n=r.profile2)||void 0===n?void 0:n.iccid)||""}})}},[r]);let T=(e,r,l)=>{S(i=>({...i,[e]:{...i[e],[r]:l}}))},A=()=>N.profile1.apn&&N.profile1.pdpType&&N.profile1.iccid?!Object.values(N.profile2).some(e=>""!==e)||!!N.profile2.apn&&!!N.profile2.pdpType&&!!N.profile2.iccid||(e({variant:"destructive",title:"Invalid Profile 2",description:"All fields for Profile 2 are required if any field is filled"}),!1):(e({variant:"destructive",title:"Invalid Profile 1",description:"All fields for Profile 1 are required"}),!1),I=async r=>{if(r.preventDefault(),A()){P(!0);try{let r=await f("profile1",N.profile1),l=!Object.values(N.profile2).some(e=>""!==e)||await f("profile2",N.profile2);if(r&&l)e({title:"Success",description:"APN profiles have been saved successfully"});else throw Error("Failed to save one or more profiles")}catch(r){e({variant:"destructive",title:"Error",description:"Failed to save APN profiles. Please try again."})}finally{P(!1)}}},C=async()=>{if(confirm("Are you sure you want to delete all APN profiles?")){g(!0);try{if(await u())S(j),e({title:"Success",description:"APN profiles have been deleted successfully"});else throw Error("Failed to delete profiles")}catch(r){e({variant:"destructive",title:"Error",description:"Failed to delete APN profiles. Please try again."})}finally{g(!1)}}},b=(e,r)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsxs)(c._,{htmlFor:"APNProfile".concat(r),children:["APN Profile ",r]}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"APNProfile".concat(r),placeholder:"APN for Profile ".concat(r),value:N[e].apn,onChange:r=>T(e,"apn",r.target.value)})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"PDPType".concat(r),children:"APN PDP Type"}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N[e].pdpType,onValueChange:r=>T(e,"pdpType",r),children:[(0,i.jsx)(n.i4,{id:"PDPType".concat(r),children:(0,i.jsx)(n.ki,{placeholder:"Select PDP Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"PDP Type"}),w.map(e=>{let{value:r,label:l}=e;return(0,i.jsx)(n.Ql,{value:r,children:l},r)})]})})]})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2 col-span-2",children:[(0,i.jsxs)(c._,{htmlFor:"ICCIDProfile".concat(r),children:["ICCID Profile ",r]}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"ICCIDProfile".concat(r),placeholder:"ICCID for Profile ".concat(r),value:N[e].iccid,onChange:r=>T(e,"iccid",r.target.value)})]})]});return(0,i.jsxs)(s.Zb,{children:[(0,i.jsxs)(s.Ol,{children:[(0,i.jsx)(s.ll,{children:"APN and ICCID Profiles"}),(0,i.jsx)(s.SZ,{children:"Configure APN profiles based on SIM card ICCID. Profile 1 is required."})]}),(0,i.jsx)(s.aY,{children:(0,i.jsxs)("form",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",onSubmit:I,children:[b("profile1",1),(0,i.jsx)(y.Z,{className:"col-span-2 w-full my-2"}),b("profile2",2),(0,i.jsx)("div",{className:"col-span-2",children:(0,i.jsxs)(s.eW,{className:"border-t py-4 grid md:grid-cols-2 grid-cols-1 gap-4 px-0",children:[(0,i.jsxs)(o.z,{type:"submit",disabled:h||v,children:[(0,i.jsx)(x.Z,{className:"h-4 w-4"}),h?"Saving...":"Save Profiles"]}),(0,i.jsxs)(o.z,{type:"button",variant:"secondary",onClick:C,disabled:h||v,children:[(0,i.jsx)(m.Z,{className:"h-4 w-4"}),v?"Deleting...":"Delete All Profiles"]})]})})]})})]})},T=()=>{var e,r,l;let{toast:u}=(0,p.pm)(),{data:h,isLoading:P,fetchCellSettingsData:v}=f(),[g,y]=(0,t.useState)(!1),[x,m]=(0,t.useState)(!1),[N,j]=(0,t.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:""});(0,t.useEffect)(()=>{h&&!x&&(j({currentAPN:String(h.currentAPN||""),apnPDPType:String(h.apnPDPType||""),preferredNetworkType:String(h.preferredNetworkType||""),nr5gMode:String(h.nr5gMode||""),simSlot:String(h.simSlot||"")}),m(!0))},[h,x]),(0,t.useEffect)(()=>{h||m(!1)},[h]);let w=e=>{let r=[];if(e.currentAPN||e.apnPDPType){let l=e.apnPDPType||N.apnPDPType,i=e.currentAPN||N.currentAPN;r.push('AT+CGDCONT=1,"'.concat(l,'","').concat(i,'"'))}if(e.preferredNetworkType){let l='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(l):l)}if(e.nr5gMode){let l='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(l):l)}if(e.simSlot){let l="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(l):l)}return r.join(";")},T=(e,r)=>{j(l=>({...l,[e]:r}))},A=async()=>{try{let e=await fetch("/cgi-bin/settings/force-rerun.sh"),r=await e.json();if("success"===r.status)u({title:"Scripts Restarted",description:"Scripts have been restarted successfully"});else if("info"===r.status)u({title:"Info",description:"No scripts were found to restart"});else throw Error("Failed to restart scripts")}catch(e){console.error("Error rerunning scripts:",e),u({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},I=async e=>{e.preventDefault(),y(!0);try{let e={};if(Object.keys(N).forEach(r=>{N[r]!==(null==h?void 0:h[r])&&(e[r]=N[r])}),0===Object.keys(e).length){u({title:"No changes detected",description:"Try changing some settings before saving"});return}let r=w(e),l=encodeURIComponent(r);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(l)})).ok)throw Error("Failed to save settings");await v(),m(!1),u({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3}),e.simSlot&&setTimeout(()=>{A()},3100)}catch(e){console.error("Error saving settings:",e),u({variant:"destructive",title:"Failed to save settings!",description:"An error occurred while saving the settings"})}finally{y(!1)}};return(0,i.jsxs)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:[(0,i.jsx)(s.Zb,{children:(0,i.jsxs)("form",{onSubmit:I,children:[(0,i.jsxs)(s.Ol,{children:[(0,i.jsx)(s.ll,{children:"Network Settings"}),(0,i.jsx)(s.SZ,{children:"Change the network settings of the device."})]}),(0,i.jsx)(s.aY,{children:(0,i.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"APN",children:"Current APN"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"APN",placeholder:"Current APN",value:N.currentAPN,onChange:e=>T("currentAPN",e.target.value)})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"APN",children:"APN PDP Type"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.apnPDPType,onValueChange:e=>T("apnPDPType",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.apnPDPType?({IPV4:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e=N.apnPDPType]||e:"Select PDP Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"PDP Type"}),(0,i.jsx)(n.Ql,{value:"IPV4",children:"IPv4 Only"}),(0,i.jsx)(n.Ql,{value:"IPV6",children:"IPv6 Only"}),(0,i.jsx)(n.Ql,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,i.jsx)(n.Ql,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(N.apnPDPType))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"Preferred Network Type"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.preferredNetworkType,onValueChange:e=>T("preferredNetworkType",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.preferredNetworkType?({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[r=N.preferredNetworkType]||r:"Select Network Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"Preferred Network Type"}),(0,i.jsx)(n.Ql,{value:"AUTO",children:"Automatic"}),(0,i.jsx)(n.Ql,{value:"LTE",children:"LTE Only"}),(0,i.jsx)(n.Ql,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,i.jsx)(n.Ql,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(N.preferredNetworkType))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"NR5G Mode Control"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.nr5gMode,onValueChange:e=>T("nr5gMode",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.nr5gMode?({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[l=N.nr5gMode]||l:"Select NR5G Mode"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"NR5G Mode"}),(0,i.jsx)(n.Ql,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,i.jsx)(n.Ql,{value:"1",children:"NR5G-NSA Only"}),(0,i.jsx)(n.Ql,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(N.nr5gMode))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"U-SIM Slot Configuration"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.simSlot,onValueChange:e=>T("simSlot",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.simSlot?"U-SIM Slot ".concat(N.simSlot):"Select U-SIM Slot"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"U-SIM Slot"}),(0,i.jsx)(n.Ql,{value:"1",children:"U-SIM Slot 1"}),(0,i.jsx)(n.Ql,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(N.simSlot))]})]})}),(0,i.jsx)(s.eW,{className:"grid border-t py-4",children:(0,i.jsx)(o.z,{type:"submit",disabled:g,children:g?"Saving...":"Save"})})]})}),(0,i.jsx)(S,{})]})}},88766:function(e,r,l){"use strict";l.d(r,{O:function(){return s}});var i=l(20881),t=l(90270);function s(e){let{className:r,...l}=e;return(0,i.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",r),...l})}},36306:function(e,r,l){"use strict";l.d(r,{Z:function(){return i}});let i=(0,l(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])}},function(e){e.O(0,[792,59,714,217,420,72,247,985,330,744],function(){return e(e.s=51437)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-253a235ebaf95218.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-253a235ebaf95218.js new file mode 100644 index 0000000..5b71c65 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/basic-settings/page-253a235ebaf95218.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8265],{51437:function(e,r,l){Promise.resolve().then(l.bind(l,80887))},80887:function(e,r,l){"use strict";l.r(r),l.d(r,{default:function(){return T}});var i=l(20881),t=l(64149),s=l(94920),n=l(22989),o=l(78580),a=l(33335),c=l(21501),d=l(88766),p=l(46646),f=()=>{let[e,r]=(0,t.useState)(null),[l,i]=(0,t.useState)(!0),s=(0,t.useCallback)(async()=>{try{i(!0);let e=await fetch("/cgi-bin/fetch_data.sh?set=2"),l=await e.json();console.log("Fetched cell settings data:",l);let t={currentAPN:u(l[0].response,l[1].response),apnPDPType:h(l[0].response),preferredNetworkType:P(l[2].response),nr5gMode:v(l[3].response),simSlot:g(l[4].response)};r(t),console.log("Processed cell settings data:",t)}catch(e){console.error("Error fetching cell settings data:",e)}i(!1)},[]);return(0,t.useEffect)(()=>{s()},[s]),{data:e,isLoading:l,fetchCellSettingsData:s}};let u=(e,r)=>{var l,i;let t=null===(l=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===l?void 0:l.split(",")[2].replace(/"/g,"");if(void 0===t||""===t){let e=null===(i=r.split("\n").find(e=>e.includes("+CGCONTRDP:")))||void 0===i?void 0:i.split(",")[2].replace(/"/g,"");return void 0===e||""===e?"No APN found":e}return t},h=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes("+CGDCONT: 1")))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching PDP Type":l},P=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "mode_pref"')))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching network type":l},v=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes('+QNWPREFCFG: "nr5g_disable_mode"')))||void 0===r?void 0:r.split(",")[1].replace(/"/g,"");return void 0===l||""===l?"Error fetching NR5G mode":l},g=e=>{var r;let l=null===(r=e.split("\n").find(e=>e.includes("+QUIMSLOT:")))||void 0===r?void 0:r.split(":")[1].trim();return void 0===l||""===l?"Error fetching SIM slot":l};var y=l(47657),x=l(24052),m=l(36306);let N={apn:"",pdpType:"",iccid:""},j={profile1:{...N},profile2:{...N}},w=[{value:"IPV4",label:"IPv4 Only"},{value:"IPV6",label:"IPv6 Only"},{value:"IPV4V6",label:"IPv4 and IPv6"},{value:"P2P",label:"P2P Protocol"}];var S=()=>{let{toast:e}=(0,p.pm)(),{profiles:r,isLoading:l,updateAPNProfile:f,deleteAPNProfiles:u}=function(){let[e,r]=(0,t.useState)({}),[l,i]=(0,t.useState)(!0),s=async()=>{try{i(!0);let e=await fetch("/cgi-bin/cell-settings/apn-profiles/fetch-profile.sh",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let l=await e.json();console.log("Fetched APN profiles data:",l),r(l)}catch(e){console.error("Error fetching APN profiles:",e)}finally{i(!1)}};(0,t.useEffect)(()=>{s()},[]);let n=async(l,i)=>{try{var t,s,n,o,a,c;let d=new URLSearchParams;"profile1"===l?(d.append("iccidProfile1",i.iccid),d.append("apnProfile1",i.apn),d.append("pdpType1",i.pdpType)):(d.append("iccidProfile1",(null===(t=e.profile1)||void 0===t?void 0:t.iccid)||""),d.append("apnProfile1",(null===(s=e.profile1)||void 0===s?void 0:s.apn)||""),d.append("pdpType1",(null===(n=e.profile1)||void 0===n?void 0:n.pdpType)||"")),("profile2"===l||e.profile2)&&(d.append("iccidProfile2","profile2"===l?i.iccid:(null===(o=e.profile2)||void 0===o?void 0:o.iccid)||""),d.append("apnProfile2","profile2"===l?i.apn:(null===(a=e.profile2)||void 0===a?void 0:a.apn)||""),d.append("pdpType2","profile2"===l?i.pdpType:(null===(c=e.profile2)||void 0===c?void 0:c.pdpType)||""));let p=await fetch("/cgi-bin/cell-settings/apn-profiles/save-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:d.toString(),signal:AbortSignal.timeout(1e4)});if(!p.ok)throw Error("Failed to update profile");let f=await p.json();if("success"===f.status)return r(e=>({...e,[l]:i})),!0;throw Error(f.message||"Failed to update profile")}catch(e){return console.error("Error updating ".concat(l,":"),e),!1}};return{profiles:e,isLoading:l,updateAPNProfile:n,deleteAPNProfiles:async()=>{try{let e=await fetch("/cgi-bin/cell-settings/apn-profiles/delete-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("Failed to delete profiles");let l=await e.json();if("success"===l.status)return r({}),!0;throw Error(l.message||"Failed to delete profiles")}catch(e){return console.error("Error deleting APN profiles:",e),!1}}}}(),[h,P]=(0,t.useState)(!1),[v,g]=(0,t.useState)(!1),[N,S]=(0,t.useState)(j);(0,t.useEffect)(()=>{if(r){var e,l,i,t,s,n;S({profile1:{apn:(null===(e=r.profile1)||void 0===e?void 0:e.apn)||"",pdpType:(null===(l=r.profile1)||void 0===l?void 0:l.pdpType)||"",iccid:(null===(i=r.profile1)||void 0===i?void 0:i.iccid)||""},profile2:{apn:(null===(t=r.profile2)||void 0===t?void 0:t.apn)||"",pdpType:(null===(s=r.profile2)||void 0===s?void 0:s.pdpType)||"",iccid:(null===(n=r.profile2)||void 0===n?void 0:n.iccid)||""}})}},[r]);let T=(e,r,l)=>{S(i=>({...i,[e]:{...i[e],[r]:l}}))},A=()=>N.profile1.apn&&N.profile1.pdpType&&N.profile1.iccid?!Object.values(N.profile2).some(e=>""!==e)||!!N.profile2.apn&&!!N.profile2.pdpType&&!!N.profile2.iccid||(e({variant:"destructive",title:"Invalid Profile 2",description:"All fields for Profile 2 are required if any field is filled"}),!1):(e({variant:"destructive",title:"Invalid Profile 1",description:"All fields for Profile 1 are required"}),!1),I=async r=>{if(r.preventDefault(),A()){P(!0);try{let r=await f("profile1",N.profile1),l=!Object.values(N.profile2).some(e=>""!==e)||await f("profile2",N.profile2);if(r&&l)e({title:"Success",description:"APN profiles have been saved successfully"});else throw Error("Failed to save one or more profiles")}catch(r){e({variant:"destructive",title:"Error",description:"Failed to save APN profiles. Please try again."})}finally{P(!1)}}},C=async()=>{if(confirm("Are you sure you want to delete all APN profiles?")){g(!0);try{if(await u())S(j),e({title:"Success",description:"APN profiles have been deleted successfully"});else throw Error("Failed to delete profiles")}catch(r){e({variant:"destructive",title:"Error",description:"Failed to delete APN profiles. Please try again."})}finally{g(!1)}}},b=(e,r)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsxs)(c._,{htmlFor:"APNProfile".concat(r),children:["APN Profile ",r]}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"APNProfile".concat(r),placeholder:"APN for Profile ".concat(r),value:N[e].apn,onChange:r=>T(e,"apn",r.target.value)})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"PDPType".concat(r),children:"APN PDP Type"}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N[e].pdpType,onValueChange:r=>T(e,"pdpType",r),children:[(0,i.jsx)(n.i4,{id:"PDPType".concat(r),children:(0,i.jsx)(n.ki,{placeholder:"Select PDP Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"PDP Type"}),w.map(e=>{let{value:r,label:l}=e;return(0,i.jsx)(n.Ql,{value:r,children:l},r)})]})})]})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2 col-span-2",children:[(0,i.jsxs)(c._,{htmlFor:"ICCIDProfile".concat(r),children:["ICCID Profile ",r]}),l?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"ICCIDProfile".concat(r),placeholder:"ICCID for Profile ".concat(r),value:N[e].iccid,onChange:r=>T(e,"iccid",r.target.value)})]})]});return(0,i.jsxs)(s.Zb,{children:[(0,i.jsxs)(s.Ol,{children:[(0,i.jsx)(s.ll,{children:"APN and ICCID Profiles"}),(0,i.jsx)(s.SZ,{children:"Configure APN profiles based on SIM card ICCID. Profile 1 is required."})]}),(0,i.jsx)(s.aY,{children:(0,i.jsxs)("form",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",onSubmit:I,children:[b("profile1",1),(0,i.jsx)(y.Z,{className:"col-span-2 w-full my-2"}),b("profile2",2),(0,i.jsx)("div",{className:"col-span-2",children:(0,i.jsxs)(s.eW,{className:"border-t py-4 grid md:grid-cols-2 grid-cols-1 gap-4 px-0",children:[(0,i.jsxs)(o.z,{type:"submit",disabled:h||v,children:[(0,i.jsx)(x.Z,{className:"h-4 w-4"}),h?"Saving...":"Save Profiles"]}),(0,i.jsxs)(o.z,{type:"button",variant:"secondary",onClick:C,disabled:h||v,children:[(0,i.jsx)(m.Z,{className:"h-4 w-4"}),v?"Deleting...":"Delete All Profiles"]})]})})]})})]})},T=()=>{var e,r,l;let{toast:u}=(0,p.pm)(),{data:h,isLoading:P,fetchCellSettingsData:v}=f(),[g,y]=(0,t.useState)(!1),[x,m]=(0,t.useState)(!1),[N,j]=(0,t.useState)({currentAPN:"",apnPDPType:"",preferredNetworkType:"",nr5gMode:"",simSlot:""});(0,t.useEffect)(()=>{h&&!x&&(j({currentAPN:String(h.currentAPN||""),apnPDPType:String(h.apnPDPType||""),preferredNetworkType:String(h.preferredNetworkType||""),nr5gMode:String(h.nr5gMode||""),simSlot:String(h.simSlot||"")}),m(!0))},[h,x]),(0,t.useEffect)(()=>{h||m(!1)},[h]);let w=e=>{let r=[];if(e.currentAPN||e.apnPDPType){let l=e.apnPDPType||N.apnPDPType,i=e.currentAPN||N.currentAPN;r.push('AT+CGDCONT=1,"'.concat(l,'","').concat(i,'"'))}if(e.preferredNetworkType){let l='+QNWPREFCFG="mode_pref",'.concat(e.preferredNetworkType);r.push(0===r.length?"AT".concat(l):l)}if(e.nr5gMode){let l='+QNWPREFCFG="nr5g_disable_mode",'.concat(e.nr5gMode);r.push(0===r.length?"AT".concat(l):l)}if(e.simSlot){let l="+QUIMSLOT=".concat(e.simSlot,";+COPS=2;+COPS=0");r.push(0===r.length?"AT".concat(l):l)}return r.join(";")},T=(e,r)=>{j(l=>({...l,[e]:r}))},A=async()=>{try{let e=await fetch("/cgi-bin/settings/force-rerun.sh"),r=await e.json();if("success"===r.status)u({title:"Scripts Restarted",description:"Scripts have been restarted successfully"});else if("info"===r.status)u({title:"Info",description:"No scripts were found to restart"});else throw Error("Failed to restart scripts")}catch(e){console.error("Error rerunning scripts:",e),u({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},I=async e=>{e.preventDefault(),y(!0);try{let e={};if(Object.keys(N).forEach(r=>{N[r]!==(null==h?void 0:h[r])&&(e[r]=N[r])}),0===Object.keys(e).length){u({title:"No changes detected",description:"Try changing some settings before saving"});return}let r=w(e),l=encodeURIComponent(r);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(l)})).ok)throw Error("Failed to save settings");await v(),m(!1),u({title:"Settings saved!",description:"The settings have been saved successfully",duration:3e3}),e.simSlot&&setTimeout(()=>{A()},3100)}catch(e){console.error("Error saving settings:",e),u({variant:"destructive",title:"Failed to save settings!",description:"An error occurred while saving the settings"})}finally{y(!1)}};return(0,i.jsxs)("div",{className:"grid grid-cols-1 grid-flow-row gap-8",children:[(0,i.jsx)(s.Zb,{children:(0,i.jsxs)("form",{onSubmit:I,children:[(0,i.jsxs)(s.Ol,{children:[(0,i.jsx)(s.ll,{children:"Network Settings"}),(0,i.jsx)(s.SZ,{children:"Change the network settings of the device."})]}),(0,i.jsx)(s.aY,{children:(0,i.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 grid-flow-row gap-6",children:[(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"APN",children:"Current APN"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsx)(a.I,{type:"text",id:"APN",placeholder:"Current APN",value:N.currentAPN,onChange:e=>T("currentAPN",e.target.value)})]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{htmlFor:"APN",children:"APN PDP Type"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.apnPDPType,onValueChange:e=>T("apnPDPType",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.apnPDPType?({IPV4:"IPv4 Only",IPV6:"IPv6 Only",IPV4V6:"IPv4 and IPv6",P2P:"P2P Protocol"})[e=N.apnPDPType]||e:"Select PDP Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"PDP Type"}),(0,i.jsx)(n.Ql,{value:"IPV4",children:"IPv4 Only"}),(0,i.jsx)(n.Ql,{value:"IPV6",children:"IPv6 Only"}),(0,i.jsx)(n.Ql,{value:"IPV4V6",children:"IPv4 and IPv6"}),(0,i.jsx)(n.Ql,{value:"P2P",children:"P2P Protocol"})]})})]},"pdp-type-".concat(N.apnPDPType))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"Preferred Network Type"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.preferredNetworkType,onValueChange:e=>T("preferredNetworkType",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.preferredNetworkType?({AUTO:"Automatic",LTE:"LTE Only","LTE:NR5G":"NR5G-NSA",NR5G:"NR5G-SA"})[r=N.preferredNetworkType]||r:"Select Network Type"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"Preferred Network Type"}),(0,i.jsx)(n.Ql,{value:"AUTO",children:"Automatic"}),(0,i.jsx)(n.Ql,{value:"LTE",children:"LTE Only"}),(0,i.jsx)(n.Ql,{value:"LTE:NR5G",children:"NR5G-NSA"}),(0,i.jsx)(n.Ql,{value:"NR5G",children:"NR5G-SA"})]})})]},"network-type-".concat(N.preferredNetworkType))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"NR5G Mode Control"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.nr5gMode,onValueChange:e=>T("nr5gMode",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.nr5gMode?({0:"NR5G-SA and NSA Enabled",1:"NR5G-NSA Only",2:"NR5G-SA Only"})[l=N.nr5gMode]||l:"Select NR5G Mode"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"NR5G Mode"}),(0,i.jsx)(n.Ql,{value:"0",children:"NR5G-SA and NSA Enabled"}),(0,i.jsx)(n.Ql,{value:"1",children:"NR5G-NSA Only"}),(0,i.jsx)(n.Ql,{value:"2",children:"NR5G-SA Only"})]})})]},"nr5g-mode-".concat(N.nr5gMode))]}),(0,i.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,i.jsx)(c._,{children:"U-SIM Slot Configuration"}),P?(0,i.jsx)(d.O,{className:"h-8"}):(0,i.jsxs)(n.Ph,{value:N.simSlot,onValueChange:e=>T("simSlot",e),children:[(0,i.jsx)(n.i4,{children:(0,i.jsx)(n.ki,{children:N.simSlot?"U-SIM Slot ".concat(N.simSlot):"Select U-SIM Slot"})}),(0,i.jsx)(n.Bw,{children:(0,i.jsxs)(n.DI,{children:[(0,i.jsx)(n.n5,{children:"U-SIM Slot"}),(0,i.jsx)(n.Ql,{value:"1",children:"U-SIM Slot 1"}),(0,i.jsx)(n.Ql,{value:"2",children:"U-SIM Slot 2"})]})})]},"sim-slot-".concat(N.simSlot))]})]})}),(0,i.jsx)(s.eW,{className:"grid border-t py-4",children:(0,i.jsx)(o.z,{type:"submit",disabled:g,children:g?"Saving...":"Save"})})]})}),(0,i.jsx)(S,{})]})}},88766:function(e,r,l){"use strict";l.d(r,{O:function(){return s}});var i=l(20881),t=l(90270);function s(e){let{className:r,...l}=e;return(0,i.jsx)("div",{className:(0,t.cn)("animate-pulse rounded-md bg-primary/10",r),...l})}},36306:function(e,r,l){"use strict";l.d(r,{Z:function(){return i}});let i=(0,l(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])}},function(e){e.O(0,[792,4059,8714,217,5420,2072,1247,8985,5330,1744],function(){return e(e.s=51437)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-8154deabdb3e9b66.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-8154deabdb3e9b66.js deleted file mode 100644 index 1376b2e..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-8154deabdb3e9b66.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81],{63542:function(e,t,a){Promise.resolve().then(a.bind(a,61830))},61830:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return j}});var s=a(20881),l=a(64149),r=a(94920),i=a(22989),c=a(78580),n=a(47657),o=a(33335),d=a(21501),h=a(64433),u=a(45306),C=a(79442),N=l.forwardRef((e,t)=>{let{pressed:a,defaultPressed:l=!1,onPressedChange:r,...i}=e,[c=!1,n]=(0,u.T)({prop:a,onChange:r,defaultProp:l});return(0,s.jsx)(C.WV.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:(0,h.M)(e.onClick,()=>{e.disabled||n(!c)})})});N.displayName="Toggle";var m=a(20116),g=a(90270);let p=(0,m.j)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),x=l.forwardRef((e,t)=>{let{className:a,variant:l,size:r,...i}=e;return(0,s.jsx)(N,{ref:t,className:(0,g.cn)(p({variant:l,size:r,className:a})),...i})});x.displayName=N.displayName;var w=a(5501),f=a(24052),R=a(7357),v=a(46646),j=()=>{let{toast:e}=(0,v.pm)(),[t,a]=(0,l.useState)(!1),[h,u]=(0,l.useState)(!1),[C,N]=(0,l.useState)(!1),[m,g]=(0,l.useState)(!1),[p,j]=(0,l.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[A,P]=(0,l.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),E=async e=>{let t=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to execute AT command");return a}catch(e){if(e instanceof Error)throw Error("AT command failed: ".concat(e.message));throw Error("AT command failed with unknown error")}},F=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},y=async()=>{try{let e=await E('AT+QNWLOCK="save_ctrl"');if(e&&e.output){let t=F(e.output);console.log("Persist status:",t),t&&t.length>=2&&(N("1"===t[1]),g("1"===t[2]))}}catch(e){console.error("Error fetching persist status:",e)}},I=async()=>{try{a(!0),await y(),await new Promise(e=>setTimeout(e,1e3));let e=await E('AT+QNWLOCK="common/4g"');if(e&&e.output){let t=F(e.output);if(t){let e=parseInt(t[1]),a={EARFCN1:e>=1?t[2]:"",PCI1:e>=1?t[3]:"",EARFCN2:e>=2?t[4]:"",PCI2:e>=2?t[5]:"",EARFCN3:e>=3?t[6]:"",PCI3:e>=3?t[7]:""};j(a),e>0&&u(!0)}}let t=await E('AT+QNWLOCK="common/5g"');if(console.log("Current NR5G lock status:",t),t&&t.output){let e=F(t.output);if(e&&e.length>=5){let t={NRPCI:e[1],NRARFCN:e[2],SCS:e[3],NRBAND:e[4]};P(t),parseInt(e[1])>0&&u(!0)}}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{a(!1)}};(0,l.useEffect)(()=>{I()},[]);let S=async()=>{try{a(!0);let t=[];if(p.EARFCN1&&p.PCI1&&t.push([p.EARFCN1,p.PCI1]),p.EARFCN2&&p.PCI2&&t.push([p.EARFCN2,p.PCI2]),p.EARFCN3&&p.PCI3&&t.push([p.EARFCN3,p.PCI3]),0===t.length)throw Error("Please fill at least one EARFCN and PCI pair");let s='AT+QNWLOCK="common/4g",'.concat(t.length);t.forEach(e=>{let[t,a]=e;s+=",".concat(t,",").concat(a)}),await E(s),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",1,0'),await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(t.length," pair").concat(t.length>1?"s":"")})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},b=async()=>{try{if(a(!0),!A.NRPCI||!A.NRARFCN||!A.SCS||!A.NRBAND)throw Error("Please fill all NR5G fields");let t='AT+QNWLOCK="common/5g",'.concat(A.NRPCI,",").concat(A.NRARFCN,",").concat(A.SCS,",").concat(A.NRBAND);await E(t),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",0,1'),await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},k=async()=>{try{a(!0),await E('AT+QNWLOCK="common/4g",0'),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",1,0'),await E("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),await E("AT+COPS=0"),await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},T=async()=>{try{a(!0),await E('AT+QNWLOCK="common/5g",0'),await E('AT+QNWLOCK="save_ctrl",0,1'),await E("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),await E("AT+COPS=0"),await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},L=async t=>{try{a(!0),await E('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(m?"1":"0")),await y(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{a(!1)}},_=async t=>{try{a(!0),await E('AT+QNWLOCK="save_ctrl",'.concat(C?"1":"0",",").concat(t?"1":"0")),await y(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{a(!1)}};return(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(r.Zb,{children:[(0,s.jsxs)(r.Ol,{children:[(0,s.jsx)(r.ll,{children:"4G LTE Cellular Locking"}),(0,s.jsx)(r.SZ,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,s.jsx)(r.aY,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:p.EARFCN1,onChange:e=>j(t=>({...t,EARFCN1:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI1",children:"PCI 1"}),(0,s.jsx)(o.I,{type:"text",id:"PCI1",placeholder:"PCI 1",value:p.PCI1,onChange:e=>j(t=>({...t,PCI1:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:p.EARFCN2,onChange:e=>j(t=>({...t,EARFCN2:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI2",children:"PCI 2"}),(0,s.jsx)(o.I,{type:"text",id:"PCI2",placeholder:"PCI 2",value:p.PCI2,onChange:e=>j(t=>({...t,PCI2:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:p.EARFCN3,onChange:e=>j(t=>({...t,EARFCN3:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI3",children:"PCI 3"}),(0,s.jsx)(o.I,{type:"text",id:"PCI3",placeholder:"PCI 3",value:p.PCI3,onChange:e=>j(t=>({...t,PCI3:e.target.value}))})]})]})}),(0,s.jsxs)(r.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(c.z,{onClick:S,disabled:t,children:[(0,s.jsx)(w.Z,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,s.jsxs)(x,{pressed:C,onPressedChange:L,disabled:t,children:[(0,s.jsx)(f.Z,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(c.z,{variant:"secondary",onClick:k,disabled:t||!h,children:[(0,s.jsx)(R.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsxs)(r.Zb,{children:[(0,s.jsxs)(r.Ol,{children:[(0,s.jsx)(r.ll,{children:"NR5G-SA Cellular Locking"}),(0,s.jsx)(r.SZ,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,s.jsx)(r.aY,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,s.jsx)(o.I,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:A.NRARFCN,onChange:e=>P(t=>({...t,NRARFCN:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,s.jsx)(o.I,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:A.NRPCI,onChange:e=>P(t=>({...t,NRPCI:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-0.5 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"SCS",children:"SCS"}),(0,s.jsxs)(i.Ph,{value:A.SCS,onValueChange:e=>P(t=>({...t,SCS:e})),children:[(0,s.jsx)(i.i4,{id:"SCS",children:(0,s.jsx)(i.ki,{placeholder:"SCS"})}),(0,s.jsx)(i.Bw,{children:(0,s.jsxs)(i.DI,{children:[(0,s.jsx)(i.n5,{children:"SCS"}),(0,s.jsx)(i.Ql,{value:"15",children:"15 kHz"}),(0,s.jsx)(i.Ql,{value:"30",children:"30 kHz"}),(0,s.jsx)(i.Ql,{value:"60",children:"60 kHz"}),(0,s.jsx)(i.Ql,{value:"120",children:"120 kHz"}),(0,s.jsx)(i.Ql,{value:"240",children:"240 kHz"})]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NRBAND",children:"NR Band"}),(0,s.jsx)(o.I,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:A.NRBAND,onChange:e=>P(t=>({...t,NRBAND:e.target.value}))})]})]})}),(0,s.jsxs)(r.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(c.z,{onClick:b,disabled:t,children:[(0,s.jsx)(w.Z,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,s.jsxs)(x,{pressed:m,onPressedChange:_,disabled:t,children:[(0,s.jsx)(f.Z,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(c.z,{variant:"secondary",onClick:T,disabled:t||!h,children:[(0,s.jsx)(R.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]})]})}},5501:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(92093).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},7357:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(92093).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])}},function(e){e.O(0,[792,59,714,217,420,72,247,985,330,744],function(){return e(e.s=63542)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-ca289761b4fe57f2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-ca289761b4fe57f2.js new file mode 100644 index 0000000..7bac5d2 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/cell-locking/page-ca289761b4fe57f2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1081],{63542:function(e,t,a){Promise.resolve().then(a.bind(a,61830))},61830:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return j}});var s=a(20881),l=a(64149),r=a(94920),i=a(22989),c=a(78580),n=a(47657),o=a(33335),d=a(21501),h=a(64433),u=a(45306),C=a(79442),N=l.forwardRef((e,t)=>{let{pressed:a,defaultPressed:l=!1,onPressedChange:r,...i}=e,[c=!1,n]=(0,u.T)({prop:a,onChange:r,defaultProp:l});return(0,s.jsx)(C.WV.button,{type:"button","aria-pressed":c,"data-state":c?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:(0,h.M)(e.onClick,()=>{e.disabled||n(!c)})})});N.displayName="Toggle";var m=a(20116),g=a(90270);let p=(0,m.j)("inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-3",sm:"h-8 px-2",lg:"h-10 px-3"}},defaultVariants:{variant:"default",size:"default"}}),x=l.forwardRef((e,t)=>{let{className:a,variant:l,size:r,...i}=e;return(0,s.jsx)(N,{ref:t,className:(0,g.cn)(p({variant:l,size:r,className:a})),...i})});x.displayName=N.displayName;var w=a(5501),f=a(24052),R=a(7357),v=a(46646),j=()=>{let{toast:e}=(0,v.pm)(),[t,a]=(0,l.useState)(!1),[h,u]=(0,l.useState)(!1),[C,N]=(0,l.useState)(!1),[m,g]=(0,l.useState)(!1),[p,j]=(0,l.useState)({EARFCN1:"",PCI1:"",EARFCN2:"",PCI2:"",EARFCN3:"",PCI3:""}),[A,P]=(0,l.useState)({NRARFCN:"",NRPCI:"",SCS:"",NRBAND:""}),E=async e=>{let t=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)}),a=await e.json();if(!e.ok)throw Error(a.error||"Failed to execute AT command");return a}catch(e){if(e instanceof Error)throw Error("AT command failed: ".concat(e.message));throw Error("AT command failed with unknown error")}},F=e=>{let t=e.match(/\+QNWLOCK:\s*(.+?)\n/);return t?t[1].replace(/"/g,"").split(",").map(e=>e.trim()):null},y=async()=>{try{let e=await E('AT+QNWLOCK="save_ctrl"');if(e&&e.output){let t=F(e.output);console.log("Persist status:",t),t&&t.length>=2&&(N("1"===t[1]),g("1"===t[2]))}}catch(e){console.error("Error fetching persist status:",e)}},I=async()=>{try{a(!0),await y(),await new Promise(e=>setTimeout(e,1e3));let e=await E('AT+QNWLOCK="common/4g"');if(e&&e.output){let t=F(e.output);if(t){let e=parseInt(t[1]),a={EARFCN1:e>=1?t[2]:"",PCI1:e>=1?t[3]:"",EARFCN2:e>=2?t[4]:"",PCI2:e>=2?t[5]:"",EARFCN3:e>=3?t[6]:"",PCI3:e>=3?t[7]:""};j(a),e>0&&u(!0)}}let t=await E('AT+QNWLOCK="common/5g"');if(console.log("Current NR5G lock status:",t),t&&t.output){let e=F(t.output);if(e&&e.length>=5){let t={NRPCI:e[1],NRARFCN:e[2],SCS:e[3],NRBAND:e[4]};P(t),parseInt(e[1])>0&&u(!0)}}}catch(t){console.error("Error fetching current status:",t),e({title:"Error",description:"Failed to fetch current cell locking status",variant:"destructive"})}finally{a(!1)}};(0,l.useEffect)(()=>{I()},[]);let S=async()=>{try{a(!0);let t=[];if(p.EARFCN1&&p.PCI1&&t.push([p.EARFCN1,p.PCI1]),p.EARFCN2&&p.PCI2&&t.push([p.EARFCN2,p.PCI2]),p.EARFCN3&&p.PCI3&&t.push([p.EARFCN3,p.PCI3]),0===t.length)throw Error("Please fill at least one EARFCN and PCI pair");let s='AT+QNWLOCK="common/4g",'.concat(t.length);t.forEach(e=>{let[t,a]=e;s+=",".concat(t,",").concat(a)}),await E(s),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",1,0'),await I(),e({title:"Success",description:"LTE cells locked successfully with ".concat(t.length," pair").concat(t.length>1?"s":"")})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock LTE cells",variant:"destructive"})}},b=async()=>{try{if(a(!0),!A.NRPCI||!A.NRARFCN||!A.SCS||!A.NRBAND)throw Error("Please fill all NR5G fields");let t='AT+QNWLOCK="common/5g",'.concat(A.NRPCI,",").concat(A.NRARFCN,",").concat(A.SCS,",").concat(A.NRBAND);await E(t),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",0,1'),await I(),e({title:"Success",description:"NR5G cell locked successfully"})}catch(t){a(!1),e({title:"Error",description:t instanceof Error?t.message:"Failed to lock NR5G cell",variant:"destructive"})}},k=async()=>{try{a(!0),await E('AT+QNWLOCK="common/4g",0'),await new Promise(e=>setTimeout(e,1e3)),await E('AT+QNWLOCK="save_ctrl",1,0'),await E("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),await E("AT+COPS=0"),await I(),e({title:"Success",description:"LTE cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset LTE cell locking",variant:"destructive"})}},T=async()=>{try{a(!0),await E('AT+QNWLOCK="common/5g",0'),await E('AT+QNWLOCK="save_ctrl",0,1'),await E("AT+COPS=2"),await new Promise(e=>setTimeout(e,2e3)),await E("AT+COPS=0"),await I(),e({title:"Success",description:"NR5G cell locking reset to default"})}catch(t){a(!1),e({title:"Error",description:"Failed to reset NR5G cell locking",variant:"destructive"})}},L=async t=>{try{a(!0),await E('AT+QNWLOCK="save_ctrl",'.concat(t?"1":"0",",").concat(m?"1":"0")),await y(),e({title:"Success",description:"LTE persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update LTE persist setting",variant:"destructive"})}finally{a(!1)}},_=async t=>{try{a(!0),await E('AT+QNWLOCK="save_ctrl",'.concat(C?"1":"0",",").concat(t?"1":"0")),await y(),e({title:"Success",description:"NR5G persist on boot ".concat(t?"enabled":"disabled")}),await new Promise(e=>setTimeout(e,2e3)),window.location.reload()}catch(t){e({title:"Error",description:"Failed to update NR5G persist setting",variant:"destructive"})}finally{a(!1)}};return(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(r.Zb,{children:[(0,s.jsxs)(r.Ol,{children:[(0,s.jsx)(r.ll,{children:"4G LTE Cellular Locking"}),(0,s.jsx)(r.SZ,{children:"Lock the device to specific LTE Physical Cell IDs."})]}),(0,s.jsx)(r.aY,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN1",children:"EARFCN 1"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN1",placeholder:"EARFCN 1",value:p.EARFCN1,onChange:e=>j(t=>({...t,EARFCN1:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI1",children:"PCI 1"}),(0,s.jsx)(o.I,{type:"text",id:"PCI1",placeholder:"PCI 1",value:p.PCI1,onChange:e=>j(t=>({...t,PCI1:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN2",children:"EARFCN 2"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN2",placeholder:"EARFCN 2",value:p.EARFCN2,onChange:e=>j(t=>({...t,EARFCN2:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI2",children:"PCI 2"}),(0,s.jsx)(o.I,{type:"text",id:"PCI2",placeholder:"PCI 2",value:p.PCI2,onChange:e=>j(t=>({...t,PCI2:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-1 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"EARFCN3",children:"EARFCN 3"}),(0,s.jsx)(o.I,{type:"text",id:"EARFCN3",placeholder:"EARFCN 3",value:p.EARFCN3,onChange:e=>j(t=>({...t,EARFCN3:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"PCI3",children:"PCI 3"}),(0,s.jsx)(o.I,{type:"text",id:"PCI3",placeholder:"PCI 3",value:p.PCI3,onChange:e=>j(t=>({...t,PCI3:e.target.value}))})]})]})}),(0,s.jsxs)(r.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(c.z,{onClick:S,disabled:t,children:[(0,s.jsx)(w.Z,{className:"h-4 w-4"}),"Lock LTE Cells"]}),(0,s.jsxs)(x,{pressed:C,onPressedChange:L,disabled:t,children:[(0,s.jsx)(f.Z,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(c.z,{variant:"secondary",onClick:k,disabled:t||!h,children:[(0,s.jsx)(R.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]}),(0,s.jsxs)(r.Zb,{children:[(0,s.jsxs)(r.Ol,{children:[(0,s.jsx)(r.ll,{children:"NR5G-SA Cellular Locking"}),(0,s.jsx)(r.SZ,{children:"Lock the device to a specific NR5G-SA Physical Cell ID."})]}),(0,s.jsx)(r.aY,{children:(0,s.jsxs)("form",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-6",children:[(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NR-ARFCN",children:"NR ARFCN"}),(0,s.jsx)(o.I,{type:"text",id:"NR-ARFCN",placeholder:"NR ARFCN",value:A.NRARFCN,onChange:e=>P(t=>({...t,NRARFCN:e.target.value}))})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NR-PCI",children:"NR PCI"}),(0,s.jsx)(o.I,{type:"text",id:"NR-PCI",placeholder:"NR PCI",value:A.NRPCI,onChange:e=>P(t=>({...t,NRPCI:e.target.value}))})]}),(0,s.jsx)(n.Z,{className:"my-0.5 col-span-2 w-full"}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"SCS",children:"SCS"}),(0,s.jsxs)(i.Ph,{value:A.SCS,onValueChange:e=>P(t=>({...t,SCS:e})),children:[(0,s.jsx)(i.i4,{id:"SCS",children:(0,s.jsx)(i.ki,{placeholder:"SCS"})}),(0,s.jsx)(i.Bw,{children:(0,s.jsxs)(i.DI,{children:[(0,s.jsx)(i.n5,{children:"SCS"}),(0,s.jsx)(i.Ql,{value:"15",children:"15 kHz"}),(0,s.jsx)(i.Ql,{value:"30",children:"30 kHz"}),(0,s.jsx)(i.Ql,{value:"60",children:"60 kHz"}),(0,s.jsx)(i.Ql,{value:"120",children:"120 kHz"}),(0,s.jsx)(i.Ql,{value:"240",children:"240 kHz"})]})})]})]}),(0,s.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,s.jsx)(d._,{htmlFor:"NRBAND",children:"NR Band"}),(0,s.jsx)(o.I,{type:"text",id:"NRBAND",placeholder:"NR BAND",value:A.NRBAND,onChange:e=>P(t=>({...t,NRBAND:e.target.value}))})]})]})}),(0,s.jsxs)(r.eW,{className:"border-t py-4 grid grid-flow-row md:grid-cols-3 grid-cols-1 gap-4",children:[(0,s.jsxs)(c.z,{onClick:b,disabled:t,children:[(0,s.jsx)(w.Z,{className:"h-4 w-4"}),"Lock NR5G-SA Cell"]}),(0,s.jsxs)(x,{pressed:m,onPressedChange:_,disabled:t,children:[(0,s.jsx)(f.Z,{className:"h-4 w-4 mr-2"}),"Persist on Reboot"]}),(0,s.jsxs)(c.z,{variant:"secondary",onClick:T,disabled:t||!h,children:[(0,s.jsx)(R.Z,{className:"h-4 w-4"}),"Reset to Default"]})]})]})]})}},5501:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(92093).Z)("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},7357:function(e,t,a){"use strict";a.d(t,{Z:function(){return s}});let s=(0,a(92093).Z)("RefreshCcw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])}},function(e){e.O(0,[792,4059,8714,217,5420,2072,1247,8985,5330,1744],function(){return e(e.s=63542)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-1d06e85afd5744cd.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-1d06e85afd5744cd.js new file mode 100644 index 0000000..57f7b57 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/imei-mangling/page-1d06e85afd5744cd.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4385],{36364:function(e,t,i){Promise.resolve().then(i.bind(i,47410))},47410:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return w}});var r=i(20881),o=i(64149),s=i(94920),a=i(37971),l=i(90270);let n=a.fC,d=a.xz,c=o.forwardRef((e,t)=>{let{className:i,align:o="center",sideOffset:s=4,...n}=e;return(0,r.jsx)(a.VY,{ref:t,align:o,sideOffset:s,className:(0,l.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i),...n})});c.displayName=a.VY.displayName;var f=i(395),u=i(36306),p=i(78580),m=i(33335),h=i(21501),v=i(88766),I=i(46646),g=i(47657);let x={imei:"",iccid:""},y={profile1:{...x},profile2:{...x}};var w=()=>{let[e,t]=(0,o.useState)(!0),[i,a]=(0,o.useState)(!1),[l,x]=(0,o.useState)(!1),[w,b]=(0,o.useState)(""),[j,E]=(0,o.useState)(""),[N,C]=(0,o.useState)(y),[M,S]=(0,o.useState)(y),{profiles:T,hasActiveProfile:P,updateIMEIProfile:O,deleteIMEIProfiles:D}=function(){let[e,t]=(0,o.useState)({}),[i,r]=(0,o.useState)(!0),[s,a]=(0,o.useState)(!1),l=async()=>{try{r(!0);let e=await fetch("/cgi-bin/cell-settings/imei-profiles/fetch-profile.sh",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let i=await e.json();t(i),(i.profile1||i.profile2)&&a(!0)}catch(e){console.error("Error fetching IMEI profiles:",e)}finally{r(!1)}};(0,o.useEffect)(()=>{l()},[]);let n=async(i,r)=>{try{var o,s,a,l;let n=new URLSearchParams;"profile1"===i?(n.append("iccidProfile1",r.iccid),n.append("imeiProfile1",r.imei)):(n.append("iccidProfile1",(null===(o=e.profile1)||void 0===o?void 0:o.iccid)||""),n.append("imeiProfile1",(null===(s=e.profile1)||void 0===s?void 0:s.imei)||"")),("profile2"===i||e.profile2)&&(n.append("iccidProfile2","profile2"===i?r.iccid:(null===(a=e.profile2)||void 0===a?void 0:a.iccid)||""),n.append("imeiProfile2","profile2"===i?r.imei:(null===(l=e.profile2)||void 0===l?void 0:l.imei)||""));let d=await fetch("/cgi-bin/cell-settings/imei-profiles/save-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString(),signal:AbortSignal.timeout(1e4)});if(!d.ok)throw Error("Failed to update profile");let c=await d.json();if("success"===c.status)return t(e=>({...e,[i]:r})),!0;throw Error(c.message||"Failed to update profile")}catch(e){return console.error("Error updating ".concat(i,":"),e),!1}};return{profiles:e,hasActiveProfile:s,updateIMEIProfile:n,deleteIMEIProfiles:async()=>{try{let e=await fetch("/cgi-bin/cell-settings/imei-profiles/delete-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("Failed to delete profiles");let i=await e.json();if("success"===i.status)return t({}),!0;throw Error(i.message||"Failed to delete profiles")}catch(e){return console.error("Error deleting IMEI profiles:",e),!1}}}}(),{toast:_}=(0,I.pm)(),A=(0,o.useCallback)(async()=>{try{t(!0);let e=encodeURIComponent("AT+CGSN"),i=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e)}),r=(await i.text()).match(/\d{15}/),o=r?r[0]:null;if(o)b(o),E(o);else throw Error("IMEI not found in response")}catch(e){_({title:"Failed to fetch IMEI",description:"Failed to fetch IMEI from the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},[]);(0,o.useEffect)(()=>{if(A(),T){var e,t,i,r,o,s,a,l;S({profile1:{imei:(null===(e=T.profile1)||void 0===e?void 0:e.imei)||"",iccid:(null===(t=T.profile1)||void 0===t?void 0:t.iccid)||""},profile2:{imei:(null===(i=T.profile2)||void 0===i?void 0:i.imei)||"",iccid:(null===(r=T.profile2)||void 0===r?void 0:r.iccid)||""}}),C({profile1:{imei:(null===(o=T.profile1)||void 0===o?void 0:o.imei)||"",iccid:(null===(s=T.profile1)||void 0===s?void 0:s.iccid)||""},profile2:{imei:(null===(a=T.profile2)||void 0===a?void 0:a.imei)||"",iccid:(null===(l=T.profile2)||void 0===l?void 0:l.iccid)||""}})}},[A,T]);let F=async e=>{if(e.preventDefault(),t(!0),15!==j.length||isNaN(Number(j))){_({title:"Invalid IMEI",description:"IMEI must be 15 digits and numbers only",variant:"destructive"}),t(!1);return}try{let e='AT+EGMR=1,7,"'.concat(j,';+QPOWD=1"'),t=encodeURIComponent(e);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)})).ok)throw Error("Failed to update IMEI")}catch(e){_({title:"Failed to update IMEI",description:"Failed to update IMEI on the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},R=()=>{if(!M.profile1.imei||!M.profile1.iccid)return _({variant:"destructive",title:"Invalid Profile 1",description:"Both IMEI and ICCID are required for Profile 1"}),!1;if(!/^\d{15}$/.test(M.profile1.imei))return _({variant:"destructive",title:"Invalid IMEI in Profile 1",description:"IMEI must be exactly 15 digits"}),!1;if(Object.values(M.profile2).some(e=>""!==e)){if(!M.profile2.imei||!M.profile2.iccid)return _({variant:"destructive",title:"Invalid Profile 2",description:"Both IMEI and ICCID are required if any Profile 2 field is filled"}),!1;if(!/^\d{15}$/.test(M.profile2.imei))return _({variant:"destructive",title:"Invalid IMEI in Profile 2",description:"IMEI must be exactly 15 digits"}),!1}return!0},k=async e=>{if(e.preventDefault(),R()){a(!0);try{await O("profile1",M.profile1),Object.values(M.profile2).some(e=>""!==e)&&await O("profile2",M.profile2),_({title:"Success",description:"IMEI profiles have been saved successfully. Rebooting...",duration:9e4}),setTimeout(()=>{window.location.reload()},9e4)}catch(e){_({variant:"destructive",title:"Error",description:"Failed to save IMEI profiles. Please try again."})}finally{a(!1)}}},z=async()=>{if(confirm("Are you sure you want to delete all IMEI profiles?")){x(!0);try{if(await D())S(y),_({title:"Success",description:"IMEI profiles have been deleted successfully"});else throw Error("Failed to delete profiles")}catch(e){_({variant:"destructive",title:"Error",description:"Failed to delete IMEI profiles. Please try again."})}finally{setTimeout(()=>{x(!1)},2e3)}}},Z=(e,t,i)=>{S(r=>({...r,[e]:{...r[e],[t]:i}}))};return(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsx)(s.Zb,{children:(0,r.jsxs)("form",{onSubmit:F,children:[(0,r.jsxs)(s.Ol,{children:[(0,r.jsx)(s.ll,{children:"IMEI Mangling"}),(0,r.jsxs)(s.SZ,{className:"flex items-center justify-between",children:["Change the IMEI of the device.",(0,r.jsxs)("div",{className:"flex items-center text-orange-500",children:[(0,r.jsx)(f.Z,{className:"size-4 mr-1"}),"Do at your own risk!"]})]})]}),(0,r.jsx)(s.aY,{children:(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI",children:"Change Current IMEI"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsxs)("div",{className:"grid gap-1.5",children:[P?(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsxs)(n,{children:[(0,r.jsxs)(d,{children:[(0,r.jsx)(m.I,{className:"pr-9",placeholder:w,disabled:!0}),(0,r.jsx)(f.Z,{className:"absolute right-0 top-0 m-2.5 h-4 w-4 text-muted-foreground"})]}),(0,r.jsx)(c,{className:"text-sm",children:"You cannot use this feature while IMEI profiles are active."})]})}):(0,r.jsx)(m.I,{type:"text",id:"IMEI",value:j,onChange:e=>E(e.target.value),placeholder:w}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"This will reboot the device."})]})]})}),(0,r.jsx)(s.eW,{className:"grid border-t py-4",children:(0,r.jsx)(p.z,{type:"submit",className:"w-full",disabled:e||j===w,children:e?"Processing...":"Change IMEI"})})]})}),(0,r.jsxs)(s.Zb,{children:[(0,r.jsxs)(s.Ol,{children:[(0,r.jsx)(s.ll,{children:"ICCID Based IMEI Mangling"}),(0,r.jsxs)(s.SZ,{className:"flex items-center justify-between",children:["Change the IMEI of the device based on the ICCID.",(0,r.jsxs)("div",{className:"flex items-center text-orange-500",children:[(0,r.jsx)(f.Z,{className:"size-4 mr-1"}),"Do at your own risk!"]})]})]}),(0,r.jsxs)("form",{onSubmit:k,children:[(0,r.jsx)(s.aY,{children:(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI-prof1",children:"IMEI for Profile 1"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"IMEI-prof1",placeholder:"IMEI for Profile 1",value:M.profile1.imei,onChange:e=>Z("profile1","imei",e.target.value)})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"ICCID-prof1",children:"ICCID for Profile 1"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"ICCID-prof1",placeholder:"ICCID for Profile 1",value:M.profile1.iccid,onChange:e=>Z("profile1","iccid",e.target.value)})]}),(0,r.jsx)(g.Z,{className:"col-span-full my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI-prof2",children:"IMEI for Profile 2"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"IMEI-prof2",placeholder:"IMEI for Profile 2",value:M.profile2.imei,onChange:e=>Z("profile2","imei",e.target.value)})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"ICCID-prof2",children:"ICCID for Profile 2"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"ICCID-prof2",placeholder:"ICCID for Profile 2",value:M.profile2.iccid,onChange:e=>Z("profile2","iccid",e.target.value)})]})]})}),(0,r.jsxs)(s.eW,{className:"grid grid-cols-2 grid-flow-row gap-6 border-t py-4",children:[(0,r.jsx)(p.z,{type:"submit",className:"w-full",disabled:e||i||!(M.profile1.imei!==N.profile1.imei||M.profile1.iccid!==N.profile1.iccid||M.profile2.imei!==N.profile2.imei||M.profile2.iccid!==N.profile2.iccid),children:i?"Saving...":"Save IMEI Profiles"}),(0,r.jsxs)(p.z,{type:"button",variant:"secondary",className:"w-full",onClick:z,disabled:e||l,children:[(0,r.jsx)(u.Z,{className:"h-4 w-4"}),l?"Deleting...":"Delete All Profiles"]})]})]})]})]})}},78580:function(e,t,i){"use strict";i.d(t,{d:function(){return n},z:function(){return d}});var r=i(20881),o=i(64149),s=i(54098),a=i(20116),l=i(90270);let n=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:i,variant:o,size:a,asChild:d=!1,...c}=e,f=d?s.g7:"button";return(0,r.jsx)(f,{className:(0,l.cn)(n({variant:o,size:a,className:i})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,i){"use strict";i.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return a},aY:function(){return c},eW:function(){return f},ll:function(){return n}});var r=i(20881),o=i(64149),s=i(90270);let a=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",i),...o})});a.displayName="Card";let l=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",i),...o})});l.displayName="CardHeader";let n=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",i),...o})});n.displayName="CardTitle";let d=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",i),...o})});d.displayName="CardDescription";let c=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",i),...o})});c.displayName="CardContent";let f=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",i),...o})});f.displayName="CardFooter"},33335:function(e,t,i){"use strict";i.d(t,{I:function(){return a}});var r=i(20881),o=i(64149),s=i(90270);let a=o.forwardRef((e,t)=>{let{className:i,type:o,...a}=e;return(0,r.jsx)("input",{type:o,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",i),ref:t,...a})});a.displayName="Input"},21501:function(e,t,i){"use strict";i.d(t,{_:function(){return d}});var r=i(20881),o=i(64149),s=i(51212),a=i(20116),l=i(90270);let n=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)(s.f,{ref:t,className:(0,l.cn)(n(),i),...o})});d.displayName=s.f.displayName},47657:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var r=i(20881),o=i(64149),s=i(48897),a=i(90270);let l=o.forwardRef((e,t)=>{let{className:i,orientation:o="horizontal",decorative:l=!0,...n}=e;return(0,r.jsx)(s.f,{ref:t,decorative:l,orientation:o,className:(0,a.cn)("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",i),...n})});l.displayName=s.f.displayName},88766:function(e,t,i){"use strict";i.d(t,{O:function(){return s}});var r=i(20881),o=i(90270);function s(e){let{className:t,...i}=e;return(0,r.jsx)("div",{className:(0,o.cn)("animate-pulse rounded-md bg-primary/10",t),...i})}},46646:function(e,t,i){"use strict";i.d(t,{pm:function(){return u}});var r=i(64149);let o=0,s=new Map,a=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:i}=t;return i?a(i):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=l(d,e),n.forEach(e=>{e(d)})}function f(e){let{...t}=e,i=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:i});return c({type:"ADD_TOAST",toast:{...t,id:i,open:!0,onOpenChange:e=>{e||r()}}}),{id:i,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:i}})}}function u(){let[e,t]=r.useState(d);return r.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:f,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,i){"use strict";i.d(t,{cn:function(){return s}});var r=i(33958),o=i(61779);function s(){for(var e=arguments.length,t=Array(e),i=0;i{let{className:i,align:o="center",sideOffset:s=4,...n}=e;return(0,r.jsx)(a.VY,{ref:t,align:o,sideOffset:s,className:(0,l.cn)("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",i),...n})});c.displayName=a.VY.displayName;var f=i(395),u=i(36306),p=i(78580),m=i(33335),h=i(21501),v=i(88766),I=i(46646),g=i(47657);let x={imei:"",iccid:""},y={profile1:{...x},profile2:{...x}};var w=()=>{let[e,t]=(0,o.useState)(!0),[i,a]=(0,o.useState)(!1),[l,x]=(0,o.useState)(!1),[w,b]=(0,o.useState)(""),[j,E]=(0,o.useState)(""),[N,C]=(0,o.useState)(y),[M,S]=(0,o.useState)(y),{profiles:T,hasActiveProfile:P,updateIMEIProfile:O,deleteIMEIProfiles:D}=function(){let[e,t]=(0,o.useState)({}),[i,r]=(0,o.useState)(!0),[s,a]=(0,o.useState)(!1),l=async()=>{try{r(!0);let e=await fetch("/cgi-bin/cell-settings/imei-profiles/fetch-profile.sh",{method:"GET",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let i=await e.json();t(i),(i.profile1||i.profile2)&&a(!0)}catch(e){console.error("Error fetching IMEI profiles:",e)}finally{r(!1)}};(0,o.useEffect)(()=>{l()},[]);let n=async(i,r)=>{try{var o,s,a,l;let n=new URLSearchParams;"profile1"===i?(n.append("iccidProfile1",r.iccid),n.append("imeiProfile1",r.imei)):(n.append("iccidProfile1",(null===(o=e.profile1)||void 0===o?void 0:o.iccid)||""),n.append("imeiProfile1",(null===(s=e.profile1)||void 0===s?void 0:s.imei)||"")),("profile2"===i||e.profile2)&&(n.append("iccidProfile2","profile2"===i?r.iccid:(null===(a=e.profile2)||void 0===a?void 0:a.iccid)||""),n.append("imeiProfile2","profile2"===i?r.imei:(null===(l=e.profile2)||void 0===l?void 0:l.imei)||""));let d=await fetch("/cgi-bin/cell-settings/imei-profiles/save-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString(),signal:AbortSignal.timeout(1e4)});if(!d.ok)throw Error("Failed to update profile");let c=await d.json();if("success"===c.status)return t(e=>({...e,[i]:r})),!0;throw Error(c.message||"Failed to update profile")}catch(e){return console.error("Error updating ".concat(i,":"),e),!1}};return{profiles:e,hasActiveProfile:s,updateIMEIProfile:n,deleteIMEIProfiles:async()=>{try{let e=await fetch("/cgi-bin/cell-settings/imei-profiles/delete-profile.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},signal:AbortSignal.timeout(1e4)});if(!e.ok)throw Error("Failed to delete profiles");let i=await e.json();if("success"===i.status)return t({}),!0;throw Error(i.message||"Failed to delete profiles")}catch(e){return console.error("Error deleting IMEI profiles:",e),!1}}}}(),{toast:_}=(0,I.pm)(),A=(0,o.useCallback)(async()=>{try{t(!0);let e=encodeURIComponent("AT+CGSN"),i=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e)}),r=(await i.text()).match(/\d{15}/),o=r?r[0]:null;if(o)b(o),E(o);else throw Error("IMEI not found in response")}catch(e){_({title:"Failed to fetch IMEI",description:"Failed to fetch IMEI from the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},[]);(0,o.useEffect)(()=>{if(A(),T){var e,t,i,r,o,s,a,l;S({profile1:{imei:(null===(e=T.profile1)||void 0===e?void 0:e.imei)||"",iccid:(null===(t=T.profile1)||void 0===t?void 0:t.iccid)||""},profile2:{imei:(null===(i=T.profile2)||void 0===i?void 0:i.imei)||"",iccid:(null===(r=T.profile2)||void 0===r?void 0:r.iccid)||""}}),C({profile1:{imei:(null===(o=T.profile1)||void 0===o?void 0:o.imei)||"",iccid:(null===(s=T.profile1)||void 0===s?void 0:s.iccid)||""},profile2:{imei:(null===(a=T.profile2)||void 0===a?void 0:a.imei)||"",iccid:(null===(l=T.profile2)||void 0===l?void 0:l.iccid)||""}})}},[A,T]);let F=async e=>{if(e.preventDefault(),t(!0),15!==j.length||isNaN(Number(j))){_({title:"Invalid IMEI",description:"IMEI must be 15 digits and numbers only",variant:"destructive"}),t(!1);return}try{let e='AT+EGMR=1,7,"'.concat(j,';+QPOWD=1"'),t=encodeURIComponent(e);if(!(await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)})).ok)throw Error("Failed to update IMEI")}catch(e){_({title:"Failed to update IMEI",description:"Failed to update IMEI on the device",variant:"destructive"}),console.error(e)}finally{t(!1)}},R=()=>{if(!M.profile1.imei||!M.profile1.iccid)return _({variant:"destructive",title:"Invalid Profile 1",description:"Both IMEI and ICCID are required for Profile 1"}),!1;if(!/^\d{15}$/.test(M.profile1.imei))return _({variant:"destructive",title:"Invalid IMEI in Profile 1",description:"IMEI must be exactly 15 digits"}),!1;if(Object.values(M.profile2).some(e=>""!==e)){if(!M.profile2.imei||!M.profile2.iccid)return _({variant:"destructive",title:"Invalid Profile 2",description:"Both IMEI and ICCID are required if any Profile 2 field is filled"}),!1;if(!/^\d{15}$/.test(M.profile2.imei))return _({variant:"destructive",title:"Invalid IMEI in Profile 2",description:"IMEI must be exactly 15 digits"}),!1}return!0},k=async e=>{if(e.preventDefault(),R()){a(!0);try{await O("profile1",M.profile1),Object.values(M.profile2).some(e=>""!==e)&&await O("profile2",M.profile2),_({title:"Success",description:"IMEI profiles have been saved successfully. Rebooting...",duration:9e4}),setTimeout(()=>{window.location.reload()},9e4)}catch(e){_({variant:"destructive",title:"Error",description:"Failed to save IMEI profiles. Please try again."})}finally{a(!1)}}},z=async()=>{if(confirm("Are you sure you want to delete all IMEI profiles?")){x(!0);try{if(await D())S(y),_({title:"Success",description:"IMEI profiles have been deleted successfully"});else throw Error("Failed to delete profiles")}catch(e){_({variant:"destructive",title:"Error",description:"Failed to delete IMEI profiles. Please try again."})}finally{setTimeout(()=>{x(!1)},2e3)}}},Z=(e,t,i)=>{S(r=>({...r,[e]:{...r[e],[t]:i}}))};return(0,r.jsxs)("div",{className:"grid gap-8",children:[(0,r.jsx)(s.Zb,{children:(0,r.jsxs)("form",{onSubmit:F,children:[(0,r.jsxs)(s.Ol,{children:[(0,r.jsx)(s.ll,{children:"IMEI Mangling"}),(0,r.jsxs)(s.SZ,{className:"flex items-center justify-between",children:["Change the IMEI of the device.",(0,r.jsxs)("div",{className:"flex items-center text-orange-500",children:[(0,r.jsx)(f.Z,{className:"size-4 mr-1"}),"Do at your own risk!"]})]})]}),(0,r.jsx)(s.aY,{children:(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI",children:"Change Current IMEI"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsxs)("div",{className:"grid gap-1.5",children:[P?(0,r.jsx)("div",{className:"relative w-full",children:(0,r.jsxs)(n,{children:[(0,r.jsxs)(d,{children:[(0,r.jsx)(m.I,{className:"pr-9",placeholder:w,disabled:!0}),(0,r.jsx)(f.Z,{className:"absolute right-0 top-0 m-2.5 h-4 w-4 text-muted-foreground"})]}),(0,r.jsx)(c,{className:"text-sm",children:"You cannot use this feature while IMEI profiles are active."})]})}):(0,r.jsx)(m.I,{type:"text",id:"IMEI",value:j,onChange:e=>E(e.target.value),placeholder:w}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground font-medium",children:"This will reboot the device."})]})]})}),(0,r.jsx)(s.eW,{className:"grid border-t py-4",children:(0,r.jsx)(p.z,{type:"submit",className:"w-full",disabled:e||j===w,children:e?"Processing...":"Change IMEI"})})]})}),(0,r.jsxs)(s.Zb,{children:[(0,r.jsxs)(s.Ol,{children:[(0,r.jsx)(s.ll,{children:"ICCID Based IMEI Mangling"}),(0,r.jsxs)(s.SZ,{className:"flex items-center justify-between",children:["Change the IMEI of the device based on the ICCID.",(0,r.jsxs)("div",{className:"flex items-center text-orange-500",children:[(0,r.jsx)(f.Z,{className:"size-4 mr-1"}),"Do at your own risk!"]})]})]}),(0,r.jsxs)("form",{onSubmit:k,children:[(0,r.jsx)(s.aY,{children:(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 grid-cols-1 grid-flow-row gap-4",children:[(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI-prof1",children:"IMEI for Profile 1"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"IMEI-prof1",placeholder:"IMEI for Profile 1",value:M.profile1.imei,onChange:e=>Z("profile1","imei",e.target.value)})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"ICCID-prof1",children:"ICCID for Profile 1"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"ICCID-prof1",placeholder:"ICCID for Profile 1",value:M.profile1.iccid,onChange:e=>Z("profile1","iccid",e.target.value)})]}),(0,r.jsx)(g.Z,{className:"col-span-full my-2"}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"IMEI-prof2",children:"IMEI for Profile 2"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"IMEI-prof2",placeholder:"IMEI for Profile 2",value:M.profile2.imei,onChange:e=>Z("profile2","imei",e.target.value)})]}),(0,r.jsxs)("div",{className:"grid w-full max-w-sm items-center gap-2",children:[(0,r.jsx)(h._,{htmlFor:"ICCID-prof2",children:"ICCID for Profile 2"}),e?(0,r.jsx)(v.O,{className:"h-8"}):(0,r.jsx)(m.I,{type:"text",id:"ICCID-prof2",placeholder:"ICCID for Profile 2",value:M.profile2.iccid,onChange:e=>Z("profile2","iccid",e.target.value)})]})]})}),(0,r.jsxs)(s.eW,{className:"grid grid-cols-2 grid-flow-row gap-6 border-t py-4",children:[(0,r.jsx)(p.z,{type:"submit",className:"w-full",disabled:e||i||!(M.profile1.imei!==N.profile1.imei||M.profile1.iccid!==N.profile1.iccid||M.profile2.imei!==N.profile2.imei||M.profile2.iccid!==N.profile2.iccid),children:i?"Saving...":"Save IMEI Profiles"}),(0,r.jsxs)(p.z,{type:"button",variant:"secondary",className:"w-full",onClick:z,disabled:e||l,children:[(0,r.jsx)(u.Z,{className:"h-4 w-4"}),l?"Deleting...":"Delete All Profiles"]})]})]})]})]})}},78580:function(e,t,i){"use strict";i.d(t,{d:function(){return n},z:function(){return d}});var r=i(20881),o=i(64149),s=i(54098),a=i(20116),l=i(90270);let n=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=o.forwardRef((e,t)=>{let{className:i,variant:o,size:a,asChild:d=!1,...c}=e,f=d?s.g7:"button";return(0,r.jsx)(f,{className:(0,l.cn)(n({variant:o,size:a,className:i})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,i){"use strict";i.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return a},aY:function(){return c},eW:function(){return f},ll:function(){return n}});var r=i(20881),o=i(64149),s=i(90270);let a=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",i),...o})});a.displayName="Card";let l=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",i),...o})});l.displayName="CardHeader";let n=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",i),...o})});n.displayName="CardTitle";let d=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",i),...o})});d.displayName="CardDescription";let c=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",i),...o})});c.displayName="CardContent";let f=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",i),...o})});f.displayName="CardFooter"},33335:function(e,t,i){"use strict";i.d(t,{I:function(){return a}});var r=i(20881),o=i(64149),s=i(90270);let a=o.forwardRef((e,t)=>{let{className:i,type:o,...a}=e;return(0,r.jsx)("input",{type:o,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",i),ref:t,...a})});a.displayName="Input"},21501:function(e,t,i){"use strict";i.d(t,{_:function(){return d}});var r=i(20881),o=i(64149),s=i(51212),a=i(20116),l=i(90270);let n=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=o.forwardRef((e,t)=>{let{className:i,...o}=e;return(0,r.jsx)(s.f,{ref:t,className:(0,l.cn)(n(),i),...o})});d.displayName=s.f.displayName},47657:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});var r=i(20881),o=i(64149),s=i(48897),a=i(90270);let l=o.forwardRef((e,t)=>{let{className:i,orientation:o="horizontal",decorative:l=!0,...n}=e;return(0,r.jsx)(s.f,{ref:t,decorative:l,orientation:o,className:(0,a.cn)("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",i),...n})});l.displayName=s.f.displayName},88766:function(e,t,i){"use strict";i.d(t,{O:function(){return s}});var r=i(20881),o=i(90270);function s(e){let{className:t,...i}=e;return(0,r.jsx)("div",{className:(0,o.cn)("animate-pulse rounded-md bg-primary/10",t),...i})}},46646:function(e,t,i){"use strict";i.d(t,{pm:function(){return u}});var r=i(64149);let o=0,s=new Map,a=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:i}=t;return i?a(i):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},n=[],d={toasts:[]};function c(e){d=l(d,e),n.forEach(e=>{e(d)})}function f(e){let{...t}=e,i=(o=(o+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:i});return c({type:"ADD_TOAST",toast:{...t,id:i,open:!0,onOpenChange:e=>{e||r()}}}),{id:i,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:i}})}}function u(){let[e,t]=r.useState(d);return r.useEffect(()=>(n.push(t),()=>{let e=n.indexOf(t);e>-1&&n.splice(e,1)}),[e]),{...e,toast:f,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,i){"use strict";i.d(t,{cn:function(){return s}});var r=i(33958),o=i(61779);function s(){for(var e=arguments.length,t=Array(e),i=0;i{let{children:s}=e,t=(0,l.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Cellular Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/basic-settings",className:"".concat("/dashboard/cell-settings/basic-settings/"===t?"font-semibold text-primary":"text-sm"),children:"Basic Settings"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/band-locking",className:"".concat("/dashboard/cell-settings/band-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Band Locking"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/cell-locking",className:"".concat("/dashboard/cell-settings/cell-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Cellular Locking"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/imei-mangling",className:"".concat("/dashboard/cell-settings/imei-mangling/"===t?"font-semibold text-primary":"text-sm"),children:"IMEI Mangling"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/sms",className:"".concat("/dashboard/cell-settings/sms/"===t?"font-semibold text-primary":"text-sm"),children:"SMS Inbox"})]}),s]})]})}},27525:function(e,s,t){"use strict";var a=t(39886);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}})}},function(e){e.O(0,[509,985,330,744],function(){return e(e.s=37946)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-66aa85089ee93918.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-66aa85089ee93918.js new file mode 100644 index 0000000..e024248 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/layout-66aa85089ee93918.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1159],{37946:function(e,s,t){Promise.resolve().then(t.bind(t,78700))},78700:function(e,s,t){"use strict";t.r(s);var a=t(20881);t(64149);var l=t(27525),n=t(26509);s.default=e=>{let{children:s}=e,t=(0,l.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Cellular Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/basic-settings",className:"".concat("/dashboard/cell-settings/basic-settings/"===t?"font-semibold text-primary":"text-sm"),children:"Basic Settings"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/band-locking",className:"".concat("/dashboard/cell-settings/band-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Band Locking"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/cell-locking",className:"".concat("/dashboard/cell-settings/cell-locking/"===t?"font-semibold text-primary":"text-sm"),children:"Cellular Locking"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/imei-mangling",className:"".concat("/dashboard/cell-settings/imei-mangling/"===t?"font-semibold text-primary":"text-sm"),children:"IMEI Mangling"}),(0,a.jsx)(n.default,{href:"/dashboard/cell-settings/sms",className:"".concat("/dashboard/cell-settings/sms/"===t?"font-semibold text-primary":"text-sm"),children:"SMS Inbox"})]}),s]})]})}},27525:function(e,s,t){"use strict";var a=t(39886);t.o(a,"usePathname")&&t.d(s,{usePathname:function(){return a.usePathname}}),t.o(a,"useRouter")&&t.d(s,{useRouter:function(){return a.useRouter}})}},function(e){e.O(0,[6509,8985,5330,1744],function(){return e(e.s=37946)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-789cbd15928d0a30.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-789cbd15928d0a30.js deleted file mode 100644 index 6c41d64..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-789cbd15928d0a30.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{98910:function(e,t,r){Promise.resolve().then(r.bind(r,26678))},26678:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r(20881),a=r(64149),s=r(92093);let i=(0,s.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var l=r(75526);let o=(0,s.Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var d=r(36306),c=r(94920),u=r(30214),f=r(24004),m=r(835),h=r(78580),x=r(47657),p=r(75577),g=r(33335),v=()=>{let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!1),[v,b]=(0,a.useState)([]),[y,j]=(0,a.useState)({phoneNumber:"",message:""}),N=async e=>{try{let t=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"command=".concat(encodeURIComponent(e))});return await t.json()}catch(e){throw console.error("AT command failed:",e),e}},w=e=>{let t=[],r=e.split("\n"),n=null;for(let e=0;e{s(!0);try{let e;await N("AT+CMGF=1");let r=await N('AT+CMGL="ALL"');if("string"==typeof r)e=r;else if(null==r?void 0:r.result)e=r.result;else if(null==r?void 0:r.output)e=r.output;else throw Error("No valid data received");let n=w(e);t(n)}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{s(!1)}},C=e=>{b(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},S=async()=>{if(v.length)try{for(let e of v)await N("AT+CMGD=".concat(e));await k(),b([])}catch(e){console.error("Failed to delete messages:",e)}},R=async()=>{let{phoneNumber:e,message:t}=y;if(!e||!t){alert("Please enter both phone number and message");return}try{await N('AT+CMGS="'.concat(e,'"')),await N("".concat(t,"\x1a")),j({phoneNumber:"",message:""}),await k()}catch(e){console.error("Failed to send SMS:",e)}};return(0,a.useEffect)(()=>{k()},[]),(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsxs)(c.Zb,{className:"w-full max-w-screen",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"SMS Inbox"}),(0,n.jsx)(c.SZ,{children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{children:"View and manage SMS messages"}),(0,n.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,n.jsx)(m.X,{checked:v.length===e.length,onCheckedChange:t=>{b(t?e.map(e=>e.index):[])}}),(0,n.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)(f.x,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:r?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,n.jsx)(i,{className:"h-8 w-8 animate-spin"}),(0,n.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,n.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>(0,n.jsxs)(u.Vq,{children:[(0,n.jsx)(u.hg,{className:"w-full",children:(0,n.jsxs)(c.Zb,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(c.ll,{children:e.sender}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:e.index}),(0,n.jsx)(m.X,{checked:v.includes(e.index),onCheckedChange:()=>C(e.index)})]})]}),(0,n.jsxs)(c.SZ,{className:"text-left",children:[e.date," at ",e.time]})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,n.jsxs)(u.cZ,{children:[(0,n.jsxs)(u.fK,{children:[(0,n.jsx)(u.$N,{children:e.sender}),(0,n.jsxs)(u.Be,{children:[e.date," at ",e.time]})]}),(0,n.jsx)("p",{children:e.message}),(0,n.jsx)(x.Z,{className:"my-2"}),(0,n.jsx)(p.g,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4 mr-2"}),"Send"]})})]})]},e.index))})}),(0,n.jsx)(c.eW,{className:"border-t py-4",children:(0,n.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,n.jsxs)(h.z,{variant:"outline",onClick:k,disabled:r,children:[(0,n.jsx)(o,{className:"h-4 w-4"}),"Refresh"]}),(0,n.jsxs)(h.z,{variant:"destructive",onClick:S,disabled:0===v.length,children:[(0,n.jsx)(d.Z,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,n.jsxs)(c.Zb,{children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"Send SMS"}),(0,n.jsx)(c.SZ,{children:"Send a new SMS message"})]}),(0,n.jsx)(c.aY,{children:(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)(g.I,{placeholder:"Recipient Number",value:y.phoneNumber,onChange:e=>j(t=>({...t,phoneNumber:e.target.value})),readOnly:!0}),(0,n.jsx)(p.g,{placeholder:"Sending message is still in development...",className:"h-32",value:y.message,onChange:e=>j(t=>({...t,message:e.target.value})),readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4"}),"Send"]})})]})})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return d}});var n=r(20881),a=r(64149),s=r(54098),i=r(20116),l=r(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},835:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n=r(20881),a=r(64149),s=r(17533),i=r(35935),l=r(90270);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.fC,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...a,children:(0,n.jsx)(s.z$,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(i.nQG,{className:"h-4 w-4"})})})});o.displayName=s.fC.displayName},30214:function(e,t,r){"use strict";r.d(t,{$N:function(){return x},Be:function(){return p},GG:function(){return u},Vq:function(){return o},cZ:function(){return m},fK:function(){return h},hg:function(){return d}});var n=r(20881),a=r(64149),s=r(14491),i=r(35935),l=r(90270);let o=s.fC,d=s.xz,c=s.h_,u=s.x8,f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});f.displayName=s.aV.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...o,children:[a,(0,n.jsxs)(s.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=s.VY.displayName;let h=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};h.displayName="DialogHeader";let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});x.displayName=s.Dx.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});p.displayName=s.dk.displayName},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},24004:function(e,t,r){"use strict";r.d(t,{B:function(){return o},x:function(){return l}});var n=r(20881),a=r(64149),s=r(82310),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,n.jsxs)(s.fC,{ref:t,className:(0,i.cn)("relative overflow-hidden",r),...l,children:[(0,n.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:a}),(0,n.jsx)(o,{}),(0,n.jsx)(s.Ns,{})]})});l.displayName=s.fC.displayName;let o=a.forwardRef((e,t)=>{let{className:r,orientation:a="vertical",...l}=e;return(0,n.jsx)(s.gb,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,n.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=s.gb.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(20881),a=r(64149),s=r(48897),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(s.f,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",r),...o})});l.displayName=s.f.displayName},75577:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});i.displayName="Textarea"},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(33958),a=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={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"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:r,strokeWidth:o?24*Number(l)/Number(a):l,className:s("lucide",d),...f},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:o,...d}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:s("lucide-".concat(a(e)),o),...d})});return r.displayName="".concat(e),r}},75526:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},36306:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},17533:function(e,t,r){"use strict";r.d(t,{fC:function(){return k},z$:function(){return C}});var n=r(64149),a=r(83954),s=r(74873),i=r(64433),l=r(45306),o=r(32437),d=r(73452),c=r(45485),u=r(79442),f=r(20881),m="Checkbox",[h,x]=(0,s.b)(m),[p,g]=h(m),v=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:s,checked:o,defaultChecked:d,required:c,disabled:m,value:h="on",onCheckedChange:x,form:g,...v}=e,[b,y]=n.useState(null),k=(0,a.e)(t,e=>y(e)),C=n.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,z]=(0,l.T)({prop:o,defaultProp:d,onChange:x}),M=n.useRef(R);return n.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>z(M.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,z]),(0,f.jsxs)(p,{scope:r,state:R,disabled:m,children:[(0,f.jsx)(u.WV.button,{type:"button",role:"checkbox","aria-checked":N(R)?"mixed":R,"aria-required":c,"data-state":w(R),"data-disabled":m?"":void 0,disabled:m,value:h,...v,ref:k,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{z(e=>!!N(e)||!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,f.jsx)(j,{control:b,bubbles:!C.current,name:s,value:h,checked:R,required:c,disabled:m,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!N(d)&&d})]})});v.displayName=m;var b="CheckboxIndicator",y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,s=g(b,r);return(0,f.jsx)(c.z,{present:n||N(s.state)||!0===s.state,children:(0,f.jsx)(u.WV.span,{"data-state":w(s.state),"data-disabled":s.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});y.displayName=b;var j=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:s,...i}=e,l=n.useRef(null),c=(0,o.D)(r),u=(0,d.t)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=N(r),t.call(e,!N(r)&&r),e.dispatchEvent(n)}},[c,r,a]);let m=n.useRef(!N(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=s?s:m.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(e){return"indeterminate"===e}function w(e){return N(e)?"indeterminate":e?"checked":"unchecked"}var k=v,C=y},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var n=r(64149),a=r(79442),s=r(20881),i="horizontal",l=["horizontal","vertical"],o=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...o}=e,d=l.includes(n)?n:i;return(0,s.jsx)(a.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},32437:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});var n=r(64149);function a(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){"use strict";r.d(t,{t:function(){return s}});var n=r(64149),a=r(61013);function s(e){let[t,r]=n.useState(void 0);return(0,a.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},function(e){e.O(0,[792,59,714,217,491,310,985,330,744],function(){return e(e.s=98910)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-7b44734d5366691c.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-7b44734d5366691c.js deleted file mode 100644 index 5e38fc8..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-7b44734d5366691c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[959],{98910:function(e,t,r){Promise.resolve().then(r.bind(r,26678))},26678:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r(20881),a=r(64149),s=r(92093);let i=(0,s.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var l=r(75526);let o=(0,s.Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var d=r(36306),c=r(94920),u=r(30214),f=r(24004),m=r(835),h=r(78580),x=r(47657),p=r(75577),g=r(33335),v=()=>{let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!1),[v,b]=(0,a.useState)([]),[y,j]=(0,a.useState)({phoneNumber:"",message:""}),N=async e=>{try{let t=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"command=".concat(encodeURIComponent(e))});return await t.json()}catch(e){throw console.error("AT command failed:",e),e}},w=e=>{let t=[],r=e.split("\n"),n=null;for(let e=0;e{s(!0);try{let e;await N("AT+CMGF=1");let r=await N('AT+CMGL="ALL"');if("string"==typeof r)e=r;else if(null==r?void 0:r.result)e=r.result;else if(null==r?void 0:r.output)e=r.output;else throw Error("No valid data received");let n=w(e);t(n)}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{s(!1)}},C=e=>{b(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},S=async()=>{if(v.length)try{for(let e of v)await N("AT+CMGD=".concat(e));await k(),b([])}catch(e){console.error("Failed to delete messages:",e)}},R=async()=>{let{phoneNumber:e,message:t}=y;if(!e||!t){alert("Please enter both phone number and message");return}try{await N('AT+CMGS="'.concat(e,'"')),await N("".concat(t,"\x1a")),j({phoneNumber:"",message:""}),await k()}catch(e){console.error("Failed to send SMS:",e)}};return(0,a.useEffect)(()=>{k()},[]),(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsxs)(c.Zb,{className:"w-full max-w-screen",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"SMS Inbox"}),(0,n.jsx)(c.SZ,{children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{children:"View and manage SMS messages"}),(0,n.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,n.jsx)(m.X,{checked:v.length===e.length,onCheckedChange:t=>{b(t?e.map(e=>e.index):[])}}),(0,n.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)(f.x,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:r?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,n.jsx)(i,{className:"h-8 w-8 animate-spin"}),(0,n.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,n.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>(0,n.jsxs)(u.Vq,{children:[(0,n.jsx)(u.hg,{className:"w-full",children:(0,n.jsxs)(c.Zb,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(c.ll,{children:e.sender}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:e.index}),(0,n.jsx)(m.X,{checked:v.includes(e.index),onCheckedChange:()=>C(e.index)})]})]}),(0,n.jsxs)(c.SZ,{className:"text-left",children:[e.date," at ",e.time]})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,n.jsxs)(u.cZ,{children:[(0,n.jsxs)(u.fK,{children:[(0,n.jsx)(u.$N,{children:e.sender}),(0,n.jsxs)(u.Be,{children:[e.date," at ",e.time]})]}),(0,n.jsx)("p",{children:e.message}),(0,n.jsx)(x.Z,{className:"my-2"}),(0,n.jsx)(p.g,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4 mr-2"}),"Send"]})})]})]},e.index))})}),(0,n.jsx)(c.eW,{className:"border-t py-4",children:(0,n.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,n.jsxs)(h.z,{variant:"outline",onClick:k,disabled:r,children:[(0,n.jsx)(o,{className:"h-4 w-4"}),"Refresh"]}),(0,n.jsxs)(h.z,{variant:"destructive",onClick:S,disabled:0===v.length,children:[(0,n.jsx)(d.Z,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,n.jsxs)(c.Zb,{children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"Send SMS"}),(0,n.jsx)(c.SZ,{children:"Send a new SMS message"})]}),(0,n.jsx)(c.aY,{children:(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)(g.I,{placeholder:"Recipient Number",value:y.phoneNumber,onChange:e=>j(t=>({...t,phoneNumber:e.target.value})),readOnly:!0}),(0,n.jsx)(p.g,{placeholder:"Sending message is still in development...",className:"h-32",value:y.message,onChange:e=>j(t=>({...t,message:e.target.value})),readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4"}),"Send"]})})]})})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return d}});var n=r(20881),a=r(64149),s=r(54098),i=r(20116),l=r(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},835:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n=r(20881),a=r(64149),s=r(17533),i=r(35935),l=r(90270);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.fC,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...a,children:(0,n.jsx)(s.z$,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(i.nQG,{className:"h-4 w-4"})})})});o.displayName=s.fC.displayName},30214:function(e,t,r){"use strict";r.d(t,{$N:function(){return h},Be:function(){return x},Vq:function(){return o},cZ:function(){return f},fK:function(){return m},hg:function(){return d}});var n=r(20881),a=r(64149),s=r(14491),i=r(35935),l=r(90270);let o=s.fC,d=s.xz,c=s.h_;s.x8;let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});u.displayName=s.aV.displayName;let f=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(u,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...o,children:[a,(0,n.jsxs)(s.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});f.displayName=s.VY.displayName;let m=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};m.displayName="DialogHeader";let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});h.displayName=s.Dx.displayName;let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});x.displayName=s.dk.displayName},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},24004:function(e,t,r){"use strict";r.d(t,{B:function(){return o},x:function(){return l}});var n=r(20881),a=r(64149),s=r(82310),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,n.jsxs)(s.fC,{ref:t,className:(0,i.cn)("relative overflow-hidden",r),...l,children:[(0,n.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:a}),(0,n.jsx)(o,{}),(0,n.jsx)(s.Ns,{})]})});l.displayName=s.fC.displayName;let o=a.forwardRef((e,t)=>{let{className:r,orientation:a="vertical",...l}=e;return(0,n.jsx)(s.gb,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,n.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=s.gb.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(20881),a=r(64149),s=r(48897),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(s.f,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",r),...o})});l.displayName=s.f.displayName},75577:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});i.displayName="Textarea"},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(33958),a=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={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"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:r,strokeWidth:o?24*Number(l)/Number(a):l,className:s("lucide",d),...f},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:o,...d}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:s("lucide-".concat(a(e)),o),...d})});return r.displayName="".concat(e),r}},75526:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},36306:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},17533:function(e,t,r){"use strict";r.d(t,{fC:function(){return k},z$:function(){return C}});var n=r(64149),a=r(83954),s=r(74873),i=r(64433),l=r(45306),o=r(32437),d=r(73452),c=r(45485),u=r(79442),f=r(20881),m="Checkbox",[h,x]=(0,s.b)(m),[p,g]=h(m),v=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:s,checked:o,defaultChecked:d,required:c,disabled:m,value:h="on",onCheckedChange:x,form:g,...v}=e,[b,y]=n.useState(null),k=(0,a.e)(t,e=>y(e)),C=n.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,z]=(0,l.T)({prop:o,defaultProp:d,onChange:x}),M=n.useRef(R);return n.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>z(M.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,z]),(0,f.jsxs)(p,{scope:r,state:R,disabled:m,children:[(0,f.jsx)(u.WV.button,{type:"button",role:"checkbox","aria-checked":N(R)?"mixed":R,"aria-required":c,"data-state":w(R),"data-disabled":m?"":void 0,disabled:m,value:h,...v,ref:k,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{z(e=>!!N(e)||!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,f.jsx)(j,{control:b,bubbles:!C.current,name:s,value:h,checked:R,required:c,disabled:m,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!N(d)&&d})]})});v.displayName=m;var b="CheckboxIndicator",y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,s=g(b,r);return(0,f.jsx)(c.z,{present:n||N(s.state)||!0===s.state,children:(0,f.jsx)(u.WV.span,{"data-state":w(s.state),"data-disabled":s.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});y.displayName=b;var j=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:s,...i}=e,l=n.useRef(null),c=(0,o.D)(r),u=(0,d.t)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=N(r),t.call(e,!N(r)&&r),e.dispatchEvent(n)}},[c,r,a]);let m=n.useRef(!N(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=s?s:m.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(e){return"indeterminate"===e}function w(e){return N(e)?"indeterminate":e?"checked":"unchecked"}var k=v,C=y},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var n=r(64149),a=r(79442),s=r(20881),i="horizontal",l=["horizontal","vertical"],o=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...o}=e,d=l.includes(n)?n:i;return(0,s.jsx)(a.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},32437:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});var n=r(64149);function a(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){"use strict";r.d(t,{t:function(){return s}});var n=r(64149),a=r(61013);function s(e){let[t,r]=n.useState(void 0);return(0,a.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},function(e){e.O(0,[792,59,714,217,491,310,985,330,744],function(){return e(e.s=98910)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-886ee1e66fa55baf.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-886ee1e66fa55baf.js new file mode 100644 index 0000000..89403b1 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/cell-settings/sms/page-886ee1e66fa55baf.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2959],{98910:function(e,t,r){Promise.resolve().then(r.bind(r,26678))},26678:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return v}});var n=r(20881),a=r(64149),s=r(92093);let i=(0,s.Z)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);var l=r(75526);let o=(0,s.Z)("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);var d=r(36306),c=r(94920),u=r(30214),f=r(24004),m=r(835),h=r(78580),x=r(47657),p=r(75577),g=r(33335),v=()=>{let[e,t]=(0,a.useState)([]),[r,s]=(0,a.useState)(!1),[v,b]=(0,a.useState)([]),[y,j]=(0,a.useState)({phoneNumber:"",message:""}),N=async e=>{try{let t=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"command=".concat(encodeURIComponent(e))});return await t.json()}catch(e){throw console.error("AT command failed:",e),e}},w=e=>{let t=[],r=e.split("\n"),n=null;for(let e=0;e{s(!0);try{let e;await N("AT+CMGF=1");let r=await N('AT+CMGL="ALL"');if("string"==typeof r)e=r;else if(null==r?void 0:r.result)e=r.result;else if(null==r?void 0:r.output)e=r.output;else throw Error("No valid data received");let n=w(e);t(n)}catch(e){console.error("Failed to refresh SMS:",e),t([])}finally{s(!1)}},C=e=>{b(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},S=async()=>{if(v.length)try{for(let e of v)await N("AT+CMGD=".concat(e));await k(),b([])}catch(e){console.error("Failed to delete messages:",e)}},R=async()=>{let{phoneNumber:e,message:t}=y;if(!e||!t){alert("Please enter both phone number and message");return}try{await N('AT+CMGS="'.concat(e,'"')),await N("".concat(t,"\x1a")),j({phoneNumber:"",message:""}),await k()}catch(e){console.error("Failed to send SMS:",e)}};return(0,a.useEffect)(()=>{k()},[]),(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsxs)(c.Zb,{className:"w-full max-w-screen",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"SMS Inbox"}),(0,n.jsx)(c.SZ,{children:(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)("span",{children:"View and manage SMS messages"}),(0,n.jsxs)("div",{className:"flex items-center space-x-1.5",children:[(0,n.jsx)(m.X,{checked:v.length===e.length,onCheckedChange:t=>{b(t?e.map(e=>e.index):[])}}),(0,n.jsx)("span",{className:"text-sm",children:"Select All"})]})]})})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)(f.x,{className:"h-[400px] w-full xs:max-w-xs p-4 grid",children:r?(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center py-8",children:[(0,n.jsx)(i,{className:"h-8 w-8 animate-spin"}),(0,n.jsx)("p",{className:"mt-2",children:"Loading messages..."})]}):0===e.length?(0,n.jsx)("p",{className:"text-center py-8 text-muted-foreground",children:"No messages found"}):e.map(e=>(0,n.jsxs)(u.Vq,{children:[(0,n.jsx)(u.hg,{className:"w-full",children:(0,n.jsxs)(c.Zb,{className:"my-2 dark:hover:bg-slate-900 hover:bg-slate-100",children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsxs)("div",{className:"flex justify-between items-center",children:[(0,n.jsx)(c.ll,{children:e.sender}),(0,n.jsxs)("div",{className:"flex items-center space-x-2",onClick:e=>e.stopPropagation(),children:[(0,n.jsx)("p",{className:"text-muted-foreground font-medium text-xs",children:e.index}),(0,n.jsx)(m.X,{checked:v.includes(e.index),onCheckedChange:()=>C(e.index)})]})]}),(0,n.jsxs)(c.SZ,{className:"text-left",children:[e.date," at ",e.time]})]}),(0,n.jsx)(c.aY,{children:(0,n.jsx)("p",{className:"line-clamp-3",children:e.message})})]})}),(0,n.jsxs)(u.cZ,{children:[(0,n.jsxs)(u.fK,{children:[(0,n.jsx)(u.$N,{children:e.sender}),(0,n.jsxs)(u.Be,{children:[e.date," at ",e.time]})]}),(0,n.jsx)("p",{children:e.message}),(0,n.jsx)(x.Z,{className:"my-2"}),(0,n.jsx)(p.g,{placeholder:"Reply to ".concat(e.sender,"..."),className:"h-24",readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4 mr-2"}),"Send"]})})]})]},e.index))})}),(0,n.jsx)(c.eW,{className:"border-t py-4",children:(0,n.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,n.jsxs)(h.z,{variant:"outline",onClick:k,disabled:r,children:[(0,n.jsx)(o,{className:"h-4 w-4"}),"Refresh"]}),(0,n.jsxs)(h.z,{variant:"destructive",onClick:S,disabled:0===v.length,children:[(0,n.jsx)(d.Z,{className:"h-4 w-4"}),"Delete Selected"]})]})})]}),(0,n.jsxs)(c.Zb,{children:[(0,n.jsxs)(c.Ol,{children:[(0,n.jsx)(c.ll,{children:"Send SMS"}),(0,n.jsx)(c.SZ,{children:"Send a new SMS message"})]}),(0,n.jsx)(c.aY,{children:(0,n.jsxs)("div",{className:"grid gap-6",children:[(0,n.jsx)(g.I,{placeholder:"Recipient Number",value:y.phoneNumber,onChange:e=>j(t=>({...t,phoneNumber:e.target.value})),readOnly:!0}),(0,n.jsx)(p.g,{placeholder:"Sending message is still in development...",className:"h-32",value:y.message,onChange:e=>j(t=>({...t,message:e.target.value})),readOnly:!0}),(0,n.jsx)("div",{className:"flex justify-end",children:(0,n.jsxs)(h.z,{onClick:R,disabled:!0,children:[(0,n.jsx)(l.Z,{className:"h-4 w-4"}),"Send"]})})]})})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return d}});var n=r(20881),a=r(64149),s=r(54098),i=r(20116),l=r(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,n.jsx)(u,{className:(0,l.cn)(o({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return o}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...a})});l.displayName="CardHeader";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...a})});o.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},835:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n=r(20881),a=r(64149),s=r(17533),i=r(35935),l=r(90270);let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.fC,{ref:t,className:(0,l.cn)("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",r),...a,children:(0,n.jsx)(s.z$,{className:(0,l.cn)("flex items-center justify-center text-current"),children:(0,n.jsx)(i.nQG,{className:"h-4 w-4"})})})});o.displayName=s.fC.displayName},30214:function(e,t,r){"use strict";r.d(t,{$N:function(){return x},Be:function(){return p},GG:function(){return u},Vq:function(){return o},cZ:function(){return m},fK:function(){return h},hg:function(){return d}});var n=r(20881),a=r(64149),s=r(14491),i=r(35935),l=r(90270);let o=s.fC,d=s.xz,c=s.h_,u=s.x8,f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.aV,{ref:t,className:(0,l.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",r),...a})});f.displayName=s.aV.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,...o}=e;return(0,n.jsxs)(c,{children:[(0,n.jsx)(f,{}),(0,n.jsxs)(s.VY,{ref:t,className:(0,l.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",r),...o,children:[a,(0,n.jsxs)(s.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,n.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=s.VY.displayName;let h=e=>{let{className:t,...r}=e;return(0,n.jsx)("div",{className:(0,l.cn)("flex flex-col space-y-1.5 text-center sm:text-left",t),...r})};h.displayName="DialogHeader";let x=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.Dx,{ref:t,className:(0,l.cn)("text-lg font-semibold leading-none tracking-tight",r),...a})});x.displayName=s.Dx.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)(s.dk,{ref:t,className:(0,l.cn)("text-sm text-muted-foreground",r),...a})});p.displayName=s.dk.displayName},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,n.jsx)("input",{type:a,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},24004:function(e,t,r){"use strict";r.d(t,{B:function(){return o},x:function(){return l}});var n=r(20881),a=r(64149),s=r(82310),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,n.jsxs)(s.fC,{ref:t,className:(0,i.cn)("relative overflow-hidden",r),...l,children:[(0,n.jsx)(s.l_,{className:"h-full w-full rounded-[inherit]",children:a}),(0,n.jsx)(o,{}),(0,n.jsx)(s.Ns,{})]})});l.displayName=s.fC.displayName;let o=a.forwardRef((e,t)=>{let{className:r,orientation:a="vertical",...l}=e;return(0,n.jsx)(s.gb,{ref:t,orientation:a,className:(0,i.cn)("flex touch-none select-none transition-colors","vertical"===a&&"h-full w-2.5 border-l border-l-transparent p-[1px]","horizontal"===a&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:(0,n.jsx)(s.q4,{className:"relative flex-1 rounded-full bg-border"})})});o.displayName=s.gb.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return l}});var n=r(20881),a=r(64149),s=r(48897),i=r(90270);let l=a.forwardRef((e,t)=>{let{className:r,orientation:a="horizontal",decorative:l=!0,...o}=e;return(0,n.jsx)(s.f,{ref:t,decorative:l,orientation:a,className:(0,i.cn)("shrink-0 bg-border","horizontal"===a?"h-[1px] w-full":"h-full w-[1px]",r),...o})});l.displayName=s.f.displayName},75577:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(20881),a=r(64149),s=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,n.jsx)("textarea",{className:(0,s.cn)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),ref:t,...a})});i.displayName="Textarea"},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var n=r(33958),a=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={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"};let l=(0,n.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:d="",children:c,iconNode:u,...f}=e;return(0,n.createElement)("svg",{ref:t,...i,width:a,height:a,stroke:r,strokeWidth:o?24*Number(l)/Number(a):l,className:s("lucide",d),...f},[...u.map(e=>{let[t,r]=e;return(0,n.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),o=(e,t)=>{let r=(0,n.forwardRef)((r,i)=>{let{className:o,...d}=r;return(0,n.createElement)(l,{ref:i,iconNode:t,className:s("lucide-".concat(a(e)),o),...d})});return r.displayName="".concat(e),r}},75526:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},36306:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}});let n=(0,r(92093).Z)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])},17533:function(e,t,r){"use strict";r.d(t,{fC:function(){return k},z$:function(){return C}});var n=r(64149),a=r(83954),s=r(74873),i=r(64433),l=r(45306),o=r(32437),d=r(73452),c=r(45485),u=r(79442),f=r(20881),m="Checkbox",[h,x]=(0,s.b)(m),[p,g]=h(m),v=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,name:s,checked:o,defaultChecked:d,required:c,disabled:m,value:h="on",onCheckedChange:x,form:g,...v}=e,[b,y]=n.useState(null),k=(0,a.e)(t,e=>y(e)),C=n.useRef(!1),S=!b||g||!!b.closest("form"),[R=!1,z]=(0,l.T)({prop:o,defaultProp:d,onChange:x}),M=n.useRef(R);return n.useEffect(()=>{let e=null==b?void 0:b.form;if(e){let t=()=>z(M.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[b,z]),(0,f.jsxs)(p,{scope:r,state:R,disabled:m,children:[(0,f.jsx)(u.WV.button,{type:"button",role:"checkbox","aria-checked":N(R)?"mixed":R,"aria-required":c,"data-state":w(R),"data-disabled":m?"":void 0,disabled:m,value:h,...v,ref:k,onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:(0,i.M)(e.onClick,e=>{z(e=>!!N(e)||!e),S&&(C.current=e.isPropagationStopped(),C.current||e.stopPropagation())})}),S&&(0,f.jsx)(j,{control:b,bubbles:!C.current,name:s,value:h,checked:R,required:c,disabled:m,form:g,style:{transform:"translateX(-100%)"},defaultChecked:!N(d)&&d})]})});v.displayName=m;var b="CheckboxIndicator",y=n.forwardRef((e,t)=>{let{__scopeCheckbox:r,forceMount:n,...a}=e,s=g(b,r);return(0,f.jsx)(c.z,{present:n||N(s.state)||!0===s.state,children:(0,f.jsx)(u.WV.span,{"data-state":w(s.state),"data-disabled":s.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});y.displayName=b;var j=e=>{let{control:t,checked:r,bubbles:a=!0,defaultChecked:s,...i}=e,l=n.useRef(null),c=(0,o.D)(r),u=(0,d.t)(t);n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(c!==r&&t){let n=new Event("click",{bubbles:a});e.indeterminate=N(r),t.call(e,!N(r)&&r),e.dispatchEvent(n)}},[c,r,a]);let m=n.useRef(!N(r)&&r);return(0,f.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:null!=s?s:m.current,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function N(e){return"indeterminate"===e}function w(e){return N(e)?"indeterminate":e?"checked":"unchecked"}var k=v,C=y},48897:function(e,t,r){"use strict";r.d(t,{f:function(){return d}});var n=r(64149),a=r(79442),s=r(20881),i="horizontal",l=["horizontal","vertical"],o=n.forwardRef((e,t)=>{let{decorative:r,orientation:n=i,...o}=e,d=l.includes(n)?n:i;return(0,s.jsx)(a.WV.div,{"data-orientation":d,...r?{role:"none"}:{"aria-orientation":"vertical"===d?d:void 0,role:"separator"},...o,ref:t})});o.displayName="Separator";var d=o},32437:function(e,t,r){"use strict";r.d(t,{D:function(){return a}});var n=r(64149);function a(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},73452:function(e,t,r){"use strict";r.d(t,{t:function(){return s}});var n=r(64149),a=r(61013);function s(e){let[t,r]=n.useState(void 0);return(0,a.b)(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,a;if(!Array.isArray(t)||!t.length)return;let s=t[0];if("borderBoxSize"in s){let e=s.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,a=t.blockSize}else n=e.offsetWidth,a=e.offsetHeight;r({width:n,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}}},function(e){e.O(0,[792,4059,8714,217,4491,2310,8985,5330,1744],function(){return e(e.s=98910)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-16b6cf36e2f299c3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-16b6cf36e2f299c3.js new file mode 100644 index 0000000..1a5e8de --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/layout-16b6cf36e2f299c3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5342],{97017:function(e,t,a){Promise.resolve().then(a.bind(a,98496))},98496:function(e,t,a){"use strict";a.r(t);var s=a(20881);a(64149);var r=a(27525),n=a(26509);t.default=e=>{let{children:t}=e,a=(0,r.usePathname)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,s.jsx)("h1",{className:"text-3xl font-semibold",children:"Experimental"})}),(0,s.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,s.jsx)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:(0,s.jsx)(n.default,{href:"/dashboard/experimental/quecwatch",className:"".concat("/dashboard/experimental/quecwatch/"===a?"font-semibold text-primary":"text-sm"),children:"QuecWatch"})}),t]})]})}},27525:function(e,t,a){"use strict";var s=a(39886);a.o(s,"usePathname")&&a.d(t,{usePathname:function(){return s.usePathname}}),a.o(s,"useRouter")&&a.d(t,{useRouter:function(){return s.useRouter}})}},function(e){e.O(0,[6509,8985,5330,1744],function(){return e(e.s=97017)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-00b29d19c1e10c77.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-00b29d19c1e10c77.js deleted file mode 100644 index 35c3dab..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-00b29d19c1e10c77.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[387],{43682:function(){}},function(n){n.O(0,[985,330,744],function(){return n(n.s=43682)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-2e6c22f85a60b0b3.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-2e6c22f85a60b0b3.js new file mode 100644 index 0000000..bc77576 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/page-2e6c22f85a60b0b3.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7387],{43682:function(){}},function(n){n.O(0,[8985,5330,1744],function(){return n(n.s=43682)}),_N_E=n.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-7674fe15b1501845.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-7674fe15b1501845.js new file mode 100644 index 0000000..a78ec92 --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/experimental/quecwatch/page-7674fe15b1501845.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8078],{2549:function(e,t,r){Promise.resolve().then(r.bind(r,89076))},89076:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var a=r(20881),n=r(64149),s=r(94920),i=r(22989),l=r(78580),o=r(23853),c=r(21501),d=r(33335),u=r(92093);let f=(0,u.Z)("ShieldX",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m14.5 9.5-5 5",key:"17q4r4"}],["path",{d:"m9.5 9.5 5 5",key:"18nt4w"}]]),m=(0,u.Z)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var h=r(46646),p=()=>{let{toast:e}=(0,h.pm)(),[t,r]=(0,n.useState)({pingTarget:"",pingInterval:30,pingFailures:3,maxRetries:5,connectionRefresh:!1,mobileDataReconnect:!1,autoSimFailover:!1,simFailoverSchedule:30}),[u,p]=(0,n.useState)("loading"),[x,g]=(0,n.useState)(!1),[v,b]=(0,n.useState)(null),[w,j]=(0,n.useState)(null),y=async()=>{try{let t=await fetch("/cgi-bin/experimental/quecwatch/quecwatch-fetch.sh",{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)throw Error("Network response was not ok");let a=await t.json();switch(a.status){case"active":if(a.config){let t={pingTarget:a.config.pingTarget,pingInterval:a.config.pingInterval,pingFailures:a.config.pingFailures,maxRetries:a.config.maxRetries,connectionRefresh:!0===a.config.connectionRefresh,mobileDataReconnect:!0===a.config.mobileDataReconnect,autoSimFailover:!0===a.config.autoSimFailover,simFailoverSchedule:a.config.simFailoverSchedule||30,currentRetries:a.config.currentRetries,refreshCount:a.config.refreshCount};r(t),void 0!==t.currentRetries&&t.currentRetries>=t.maxRetries?(p("inactive"),e({title:"QuecWatch Stopped",description:"Maximum retries exhausted",variant:"destructive"})):p("active"),j(a.lastActivity||null)}break;case"inactive":p("inactive");break;default:p("error"),b(a.message||"Unknown error occurred"),e({title:"Error",description:"Failed to fetch quecwatch configuration",variant:"destructive"})}}catch(t){p("error"),b(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to fetch quecwatch configuration",variant:"destructive"})}};(0,n.useEffect)(()=>{y()},[]),(0,n.useEffect)(()=>{if("active"===u){let e=setInterval(y,5e3);return()=>clearInterval(e)}},[u]);let N=async()=>{g(!0),b(null);try{let r=new URLSearchParams;r.append("action","enable"),r.append("ping_target",t.pingTarget),r.append("ping_interval",t.pingInterval.toString()),r.append("ping_failures",t.pingFailures.toString()),r.append("max_retries",t.maxRetries.toString()),r.append("connection_refresh",t.connectionRefresh.toString()),r.append("mobile_data_reconnect",t.mobileDataReconnect.toString()),r.append("auto_sim_failover",t.autoSimFailover.toString()),r.append("sim_failover_schedule",t.simFailoverSchedule.toString());let a=await fetch("/cgi-bin/experimental/quecwatch/enable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:r});if(!a.ok)throw Error("Network response was not ok");let n=await a.json();if("success"===n.status)p("active"),e({title:"QuecWatch Enabled",description:"Quecwatch enabled successfully"}),await y();else throw Error(n.message)}catch(e){p("error"),b(e instanceof Error?e.message:"An unknown error occurred")}finally{g(!1)}},S=async()=>{g(!0),b(null);try{let t=new URLSearchParams;t.append("action","disable");let a=await fetch("/cgi-bin/experimental/quecwatch/disable-quecwatch.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t});if(!a.ok)throw Error("Network response was not ok");let n=await a.json();if("success"===n.status)p("inactive"),r({pingTarget:"",pingInterval:30,pingFailures:3,maxRetries:5,connectionRefresh:!1,mobileDataReconnect:!1,autoSimFailover:!1,simFailoverSchedule:30}),e({title:"QuecWatch Disabled",description:"Quecwatch disabled successfully",variant:"default"});else throw Error(n.message)}catch(t){p("error"),b(t instanceof Error?t.message:"An unknown error occurred"),e({title:"Error",description:"Failed to disable QuecWatch",variant:"destructive"})}finally{g(!1)}};return(0,a.jsxs)(s.Zb,{children:[(0,a.jsxs)(s.Ol,{children:[(0,a.jsx)(s.ll,{children:"QuecWatch"}),(0,a.jsx)(s.SZ,{children:"A watchdog feature catered for Quectel-AP modems"})]}),(0,a.jsx)(s.aY,{children:(0,a.jsxs)("div",{className:"grid gap-8",children:[(0,a.jsxs)("div",{className:"grid gap-2",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,a.jsx)(c._,{children:"QuecWatch Status"}),(0,a.jsx)("div",{className:"flex items-center space-x-1",children:"inactive"===u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{className:"text-rose-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:void 0!==t.currentRetries&&t.currentRetries>=t.maxRetries?"Max Retries Exhausted":"Inactive"})]}):"active"===u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m,{className:"text-green-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Active"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(f,{className:"text-amber-500 size-4"}),(0,a.jsx)("p",{className:"text-muted-foreground text-sm",children:"Error"})]})})]}),(0,a.jsxs)("div",{className:"flex justify-between items-center gap-x-4 rounded-lg border p-4",children:[(0,a.jsx)(c._,{children:"Remaining Retries"}),(0,a.jsxs)("p",{className:"text-muted-foreground text-sm",children:[t.currentRetries," / ",t.maxRetries]})]})]}),(0,a.jsxs)("div",{className:"grid grid-flow-row lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(c._,{htmlFor:"ping",children:"Ping Target"}),(0,a.jsx)(d.I,{id:"ping",placeholder:"8.8.8.8",value:t.pingTarget,disabled:"active"===u,readOnly:"active"===u,onChange:e=>r(t=>({...t,pingTarget:e.target.value}))})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(c._,{htmlFor:"ping-interval",children:"Ping Interval"}),(0,a.jsxs)(i.Ph,{value:t.pingInterval.toString(),disabled:"active"===u,onValueChange:e=>r(t=>({...t,pingInterval:parseInt(e)})),children:[(0,a.jsx)(i.i4,{id:"ping-interval",children:(0,a.jsx)(i.ki,{placeholder:"Select Ping Interval"})}),(0,a.jsx)(i.Bw,{children:[1,3,5,10,15,30,60].map(e=>(0,a.jsxs)(i.Ql,{value:e.toString(),children:[e," second",1!==e?"s":""]},e))})]})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(c._,{htmlFor:"ping-failure",children:"Ping Failures"}),(0,a.jsxs)(i.Ph,{value:t.pingFailures.toString(),disabled:"active"===u,onValueChange:e=>r(t=>({...t,pingFailures:parseInt(e)})),children:[(0,a.jsx)(i.i4,{id:"ping-failure",children:(0,a.jsx)(i.ki,{placeholder:"Select Ping Failures"})}),(0,a.jsx)(i.Bw,{children:[1,3,5,10].map(e=>(0,a.jsxs)(i.Ql,{value:e.toString(),children:[e," failure",1!==e?"s":""]},e))})]})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(c._,{htmlFor:"max-retries",children:"Max Retries"}),(0,a.jsxs)(i.Ph,{value:t.maxRetries.toString(),disabled:"active"===u,onValueChange:e=>r(t=>({...t,maxRetries:parseInt(e)})),children:[(0,a.jsx)(i.i4,{id:"max-retries",children:(0,a.jsx)(i.ki,{placeholder:"Select Max Retries"})}),(0,a.jsx)(i.Bw,{children:[1,3,5,10].map(e=>(0,a.jsx)(i.Ql,{value:e.toString(),children:e},e))})]})]})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,a.jsx)(c._,{className:"text-base",children:"Connection Refresh"}),(0,a.jsx)(c._,{className:"text-sm font-normal text-muted-foreground",children:"Toggle the connection refresh for the modem to first attempt reconnecting to the network before restarting."})]}),(0,a.jsx)(o.r,{checked:t.connectionRefresh,disabled:"active"===u,onCheckedChange:e=>r(t=>({...t,connectionRefresh:e}))})]}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between rounded-lg border p-4",children:[(0,a.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,a.jsx)(c._,{className:"text-base",children:"Use Mobile Data Reconnect"}),(0,a.jsx)(c._,{className:"text-sm font-normal text-muted-foreground",children:"Use Mobile Data Reconnect will turn off and on the mobile data connection rather than restarting the modem."})]}),(0,a.jsx)(o.r,{checked:t.mobileDataReconnect,disabled:"active"===u,onCheckedChange:e=>r(t=>({...t,mobileDataReconnect:e}))})]}),(0,a.jsxs)("div",{className:" rounded-lg border p-4 grid gap-y-6",children:[(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,a.jsxs)("div",{className:"space-y-0.5 grid",children:[(0,a.jsx)(c._,{className:"text-base",children:"Auto SIM Failover"}),(0,a.jsx)(c._,{className:"text-sm font-normal text-muted-foreground",children:"Auto SIM Failover will automatically switch to the next available SIM card when the current SIM card fails to connect to the network."})]}),(0,a.jsx)(o.r,{checked:t.autoSimFailover,disabled:"active"===u,onCheckedChange:e=>r(t=>({...t,autoSimFailover:e}))})]}),(0,a.jsxs)("div",{className:"grid w-full items-center gap-1.5",children:[(0,a.jsx)(c._,{htmlFor:"sim-failover",children:"Schedule SIM Checking"}),(0,a.jsxs)(i.Ph,{value:t.simFailoverSchedule.toString(),disabled:"active"===u,onValueChange:e=>r(t=>({...t,simFailoverSchedule:parseInt(e)})),children:[(0,a.jsx)(i.i4,{id:"sim-failover",className:"max-w-xs",children:(0,a.jsx)(i.ki,{placeholder:"Select SIM Checking Interval"})}),(0,a.jsxs)(i.Bw,{children:[(0,a.jsx)(i.Ql,{value:"1",children:"1 Minute"}),(0,a.jsx)(i.Ql,{value:"5",children:"5 Minutes"}),(0,a.jsx)(i.Ql,{value:"30",children:"30 Minutes"}),(0,a.jsx)(i.Ql,{value:"60",children:"1 Hour"}),(0,a.jsx)(i.Ql,{value:"360",children:"6 Hours"}),(0,a.jsx)(i.Ql,{value:"720",children:"12 Hours"}),(0,a.jsx)(i.Ql,{value:"1440",children:"24 Hours"})]})]})]})]}),(0,a.jsxs)("div",{className:"rounded-lg border p-4",children:[(0,a.jsx)(c._,{className:"text-base",children:"Last Activity"}),(0,a.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:w})]}),v&&(0,a.jsx)("div",{className:"text-red-500 text-sm",children:v})]})}),(0,a.jsxs)(s.eW,{className:"flex gap-4",children:[(0,a.jsx)(l.z,{onClick:N,disabled:x||!t.pingTarget||"active"===u,children:x?"Enabling...":"Enable QuecWatch"}),"active"===u&&(0,a.jsx)(l.z,{variant:"destructive",onClick:S,disabled:x,children:x?"Disabling...":"Disable QuecWatch"})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return o},z:function(){return c}});var a=r(20881),n=r(64149),s=r(54098),i=r(20116),l=r(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:c=!1,...d}=e,u=c?s.g7:"button";return(0,a.jsx)(u,{className:(0,l.cn)(o({variant:n,size:i,className:r})),ref:t,...d})});c.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return l},SZ:function(){return c},Zb:function(){return i},aY:function(){return d},eW:function(){return u},ll:function(){return o}});var a=r(20881),n=r(64149),s=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});i.displayName="Card";let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});l.displayName="CardHeader";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});o.displayName="CardTitle";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});c.displayName="CardDescription";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});d.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var a=r(20881),n=r(64149),s=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,a.jsx)("input",{type:n,className:(0,s.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return c}});var a=r(20881),n=r(64149),s=r(51212),i=r(20116),l=r(90270);let o=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.f,{ref:t,className:(0,l.cn)(o(),r),...n})});c.displayName=s.f.displayName},22989:function(e,t,r){"use strict";r.d(t,{Bw:function(){return h},DI:function(){return c},Ph:function(){return o},Ql:function(){return x},i4:function(){return u},ki:function(){return d},n5:function(){return p}});var a=r(20881),n=r(64149),s=r(35935),i=r(62072),l=r(90270);let o=i.fC,c=i.ZA,d=i.B4,u=n.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,a.jsxs)(i.xz,{ref:t,className:(0,l.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...o,children:[n,(0,a.jsx)(i.JO,{asChild:!0,children:(0,a.jsx)(s.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(i.u_,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(s.g8U,{})})});f.displayName=i.u_.displayName;let m=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(i.$G,{ref:t,className:(0,l.cn)("flex cursor-default items-center justify-center py-1",r),...n,children:(0,a.jsx)(s.v4q,{})})});m.displayName=i.$G.displayName;let h=n.forwardRef((e,t)=>{let{className:r,children:n,position:s="popper",...o}=e;return(0,a.jsx)(i.h_,{children:(0,a.jsxs)(i.VY,{ref:t,className:(0,l.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===s&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:s,...o,children:[(0,a.jsx)(f,{}),(0,a.jsx)(i.l_,{className:(0,l.cn)("p-1","popper"===s&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,a.jsx)(m,{})]})})});h.displayName=i.VY.displayName;let p=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(i.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",r),...n})});p.displayName=i.__.displayName;let x=n.forwardRef((e,t)=>{let{className:r,children:n,...o}=e;return(0,a.jsxs)(i.ck,{ref:t,className:(0,l.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...o,children:[(0,a.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(i.wU,{children:(0,a.jsx)(s.nQG,{className:"h-4 w-4"})})}),(0,a.jsx)(i.eT,{children:n})]})});x.displayName=i.ck.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(i.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",r),...n})}).displayName=i.Z0.displayName},23853:function(e,t,r){"use strict";r.d(t,{r:function(){return N}});var a=r(20881),n=r(64149),s=r(64433),i=r(83954),l=r(74873),o=r(45306),c=r(32437),d=r(73452),u=r(79442),f="Switch",[m,h]=(0,l.b)(f),[p,x]=m(f),g=n.forwardRef((e,t)=>{let{__scopeSwitch:r,name:l,checked:c,defaultChecked:d,required:f,disabled:m,value:h="on",onCheckedChange:x,form:g,...v}=e,[b,y]=n.useState(null),N=(0,i.e)(t,e=>y(e)),S=n.useRef(!1),k=!b||g||!!b.closest("form"),[R=!1,_]=(0,o.T)({prop:c,defaultProp:d,onChange:x});return(0,a.jsxs)(p,{scope:r,checked:R,disabled:m,children:[(0,a.jsx)(u.WV.button,{type:"button",role:"switch","aria-checked":R,"aria-required":f,"data-state":j(R),"data-disabled":m?"":void 0,disabled:m,value:h,...v,ref:N,onClick:(0,s.M)(e.onClick,e=>{_(e=>!e),k&&(S.current=e.isPropagationStopped(),S.current||e.stopPropagation())})}),k&&(0,a.jsx)(w,{control:b,bubbles:!S.current,name:l,value:h,checked:R,required:f,disabled:m,form:g,style:{transform:"translateX(-100%)"}})]})});g.displayName=f;var v="SwitchThumb",b=n.forwardRef((e,t)=>{let{__scopeSwitch:r,...n}=e,s=x(v,r);return(0,a.jsx)(u.WV.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:t})});b.displayName=v;var w=e=>{let{control:t,checked:r,bubbles:s=!0,...i}=e,l=n.useRef(null),o=(0,c.D)(r),u=(0,d.t)(t);return n.useEffect(()=>{let e=l.current,t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(o!==r&&t){let a=new Event("click",{bubbles:s});t.call(e,r),e.dispatchEvent(a)}},[o,r,s]),(0,a.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...i,tabIndex:-1,ref:l,style:{...e.style,...u,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j(e){return e?"checked":"unchecked"}var y=r(90270);let N=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(g,{className:(0,y.cn)("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",r),...n,ref:t,children:(0,a.jsx)(b,{className:(0,y.cn)("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})})});N.displayName=g.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var a=r(64149);let n=0,s=new Map,i=e=>{if(s.has(e))return;let t=setTimeout(()=>{s.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);s.set(e,t)},l=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},o=[],c={toasts:[]};function d(e){c=l(c,e),o.forEach(e=>{e(c)})}function u(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),a=()=>d({type:"DISMISS_TOAST",toastId:r});return d({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||a()}}}),{id:r,dismiss:a,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=a.useState(c);return a.useEffect(()=>(o.push(t),()=>{let e=o.indexOf(t);e>-1&&o.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(33958),n=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;re.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),s=function(){for(var e=arguments.length,t=Array(e),r=0;r!!e&&r.indexOf(e)===t).join(" ")};var i={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"};let l=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:d,iconNode:u,...f}=e;return(0,a.createElement)("svg",{ref:t,...i,width:n,height:n,stroke:r,strokeWidth:o?24*Number(l)/Number(n):l,className:s("lucide",c),...f},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,a.forwardRef)((r,i)=>{let{className:o,...c}=r;return(0,a.createElement)(l,{ref:i,iconNode:t,className:s("lucide-".concat(n(e)),o),...c})});return r.displayName="".concat(e),r}},51212:function(e,t,r){"use strict";r.d(t,{f:function(){return l}});var a=r(64149),n=r(79442),s=r(20881),i=a.forwardRef((e,t)=>(0,s.jsx)(n.WV.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));i.displayName="Label";var l=i}},function(e){e.O(0,[792,4059,8714,217,5420,2072,8985,5330,1744],function(){return e(e.s=2549)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-417dc2e75c577b03.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-417dc2e75c577b03.js deleted file mode 100644 index 80d5416..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/home/page-417dc2e75c577b03.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[883],{4591:function(e,s,n){Promise.resolve().then(n.bind(n,96019))},96019:function(e,s,n){"use strict";n.r(s),n.d(s,{default:function(){return eu}});var t=n(20881),l=n(64149),r=n(46646),i=n(94920),a=n(88766),o=n(20116),c=n(90270);let d=(0,o.j)("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function p(e){let{className:s,variant:n,...l}=e;return(0,t.jsx)("div",{className:(0,c.cn)(d({variant:n}),s),...l})}var u=e=>{let{data:s,isLoading:n}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Sim Card"}),(0,t.jsx)(i.SZ,{children:"Sim card information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card Slot in Use"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[50px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Provider"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Phone Number"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMSI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"ICCID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMEI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})};let m={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},h={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},x={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},f=e=>x[e]||"Unknown";var g=e=>{let{data:s,isLoading:n,dataConnectionState:l,connectionStateLoading:r}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Connection"}),(0,t.jsx)(i.SZ,{children:"Connection information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"APN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Operator State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Functionality State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Data Connection State"}),r?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat("Connected"===l?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Network Type"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Modem Temperature"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Access Technology"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?f(s.connection.accessTechnology):"Unknown"})]})]})]})},j=e=>{let{data:s,isLoading:n,bytesSent:l,bytesReceived:r}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Data Transmission"}),(0,t.jsx)(i.SZ,{children:"Data transmission information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Carrier Aggregation"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bandwidth"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Connected Bands"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Strength"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"MIMO Layers"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Sent"}),(0,t.jsx)("p",{className:"font-bold",children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Received"}),(0,t.jsx)("p",{className:"font-bold",children:r})]})]})]})},N=e=>{let{data:s,isLoading:n}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Cellular Information"}),(0,t.jsx)(i.SZ,{children:"Cellular network information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Cell ID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"TAC"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Physical Cell IDs"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Country Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Network Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Quality"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)(p,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})},w=n(84773),v=n(78580),b=n(30214),y=n(7357),S=n(7694),C=n(83765),k=n(7410),R=n(55215),T=n.n(R),A=n(35935),I=n(25696);let U=l.createContext(null);function E(){let e=l.useContext(U);if(!e)throw Error("useCarousel must be used within a ");return e}let M=l.forwardRef((e,s)=>{let{orientation:n="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...p}=e,[u,m]=(0,I.Z)({...r,axis:"horizontal"===n?"x":"y"},a),[h,x]=l.useState(!1),[f,g]=l.useState(!1),j=l.useCallback(e=>{e&&(x(e.canScrollPrev()),g(e.canScrollNext()))},[]),N=l.useCallback(()=>{null==m||m.scrollPrev()},[m]),w=l.useCallback(()=>{null==m||m.scrollNext()},[m]),v=l.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),w())},[N,w]);return l.useEffect(()=>{m&&i&&i(m)},[m,i]),l.useEffect(()=>{if(m)return j(m),m.on("reInit",j),m.on("select",j),()=>{null==m||m.off("select",j)}},[m,j]),(0,t.jsx)(U.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:n||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:w,canScrollPrev:h,canScrollNext:f},children:(0,t.jsx)("div",{ref:s,onKeyDownCapture:v,className:(0,c.cn)("relative",o),role:"region","aria-roledescription":"carousel",...p,children:d})})});M.displayName="Carousel";let D=l.forwardRef((e,s)=>{let{className:n,...l}=e,{carouselRef:r,orientation:i}=E();return(0,t.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:s,className:(0,c.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",n),...l})})});D.displayName="CarouselContent";let B=l.forwardRef((e,s)=>{let{className:n,...l}=e,{orientation:r}=E();return(0,t.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,c.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",n),...l})});B.displayName="CarouselItem";let G=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=E();return(0,t.jsxs)(v.z,{ref:s,variant:l,size:r,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(A.Y4O,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});G.displayName="CarouselPrevious";let O=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=E();return(0,t.jsxs)(v.z,{ref:s,variant:l,size:r,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(A.LZ3,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});O.displayName="CarouselNext";var z=e=>{let{id:s,bandNumber:n,earfcn:l,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:d}=e;return(0,t.jsx)(i.Zb,{className:"p-8",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,t.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,t.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[n.replace("LTE BAND ","B").replace("NR5G BAND ","N"),n.includes("NR5G")&&(0,t.jsx)(p,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,t.jsx)("p",{children:l})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,t.jsx)("p",{children:r})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,t.jsx)("p",{children:a})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(d)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dB"]})]})]})})},L=e=>{let{bands:s,isLoading:n}=e;return n?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(i.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(z,{...e},e.id)),(0,t.jsx)(i.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(i.SZ,{className:"text-md",children:"Currently bands connected."})})]})}),(0,t.jsx)(M,{className:"lg:hidden w-full max-w-xs",children:(0,t.jsx)(D,{children:(0,t.jsx)(B,{children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zb,{children:(0,t.jsxs)(i.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(i.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(z,{...e},e.id)),(0,t.jsx)(i.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(i.SZ,{className:"text-md",children:"Current bands connected."})})]})}),(0,t.jsxs)(M,{className:"lg:hidden w-full max-w-xs",children:[(0,t.jsx)(D,{children:null==s?void 0:s.map(e=>(0,t.jsx)(B,{className:"md:basis-1/2 lg:basis-1/3",children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zb,{children:(0,t.jsxs)(i.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("p",{children:e.bandNumber})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("p",{children:e.earfcn})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("p",{children:e.bandwidth})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("p",{children:e.pci})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,t.jsx)(G,{}),(0,t.jsx)(O,{})]})]})};let P=(e,s)=>{switch(e.split("\n")[1].split(":")[1].split(",")[1].trim()||s.split("\n")[1].split(":")[1].split(",")[1].trim()){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},Z=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),n=null==s?void 0:s.some(e=>e.includes("LTE")),t=null==s?void 0:s.some(e=>e.includes("NR5G"));return n&&t?"NR5G-NSA":n?"LTE":t?"NR5G-SA":"No Signal"},H=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>parseInt(e.split("\n").find(e=>e.includes(s)).split(":")[1].split(",")[1].replace(/"/g,"").trim())),n=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(n),"\xb0C")},_=(e,s)=>{let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[2].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[2].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(l=l.map(e=>e.split(":")[1].split(",")[2].trim()),"LTE"===s)return!t.length&&n?m[n]||"Unknown":[n?m[n]:"",...t.map(e=>m[e])].join(", ");if("NR5G-SA"===s&&n)return l.length?[h[n],...l.map(e=>h[e])].join(", "):h[n]||"Unknown";if("NR5G-NSA"===s&&n)return t.length||l.length?t.length&&!l.length?[m[n],...t.map(e=>m[e])].join(", "):[m[n],...t.map(e=>m[e]),...l.map(e=>h[e])].join(", "):m[n]||"Unknown";return"Unknown"},F=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},Q=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},q=(e,s)=>"NR5G-SA"===s||"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[6].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[4].trim():"Unknown",V=(e,s)=>"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[8].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[9].trim():"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[12].trim():"Unknown",Y=(e,s)=>{if("LTE"===s||"NR5G-NSA"===s){let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[5].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[5].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(l=l.map(e=>e.split(":")[1].split(",")[4].trim()),t.length||l.length)?"LTE"===s?[n,...t].join(", "):[n,...t,...l].join(", "):n}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[4].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>e.split(":")[1].split(",")[5].trim())).length?[s,...n].join(", "):s}},W=e=>{let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[1].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>e.split(":")[1].split(",")[1].trim());let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>e.split(":")[1].split(",")[1].trim()),!s||n.length||t.length)?s&&n.length&&!t.length?[s,...n].join(", "):s&&!n.length&&t.length?[s,...t].join(", "):s&&n.length&&t.length?[s,...n,...t].join(", "):"Unknown":s},K=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[4].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[2].trim():"Unknown",$=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[5].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[3].trim():void 0,X=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},J=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):s.length?s.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):n.length?n.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):["Unknown"]},ee=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[1]):s.length?s.map(e=>e.split(":")[1].split(",")[1]):n.length?n.map(e=>e.split(":")[1].split(",")[1]):["Unknown"]},es=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND")),t=s.map(e=>m[e.split(":")[1].split(",")[2]]),l=n.map(e=>h[e.split(":")[1].split(",")[2]]);return t.length&&l.length?[...t,...l]:t.length?t:l.length?l:["Unknown"]},en=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=s?s.split(":")[1].split(",")[4].trim():"Unknown";let n=e.split("\n").filter(e=>e.includes("BAND"));return n.length?[s,...n.map(e=>e.split(":")[1].split(",")[5]||"Unknown")]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>e.split(":")[1].split(",")[5]||"Unknown"),...n.map(e=>e.split(":")[1].split(",")[4]||"Unknown")]}return["Unknown"]},et=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]);if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[4]);return s.length&&t.length?[...s,...t]:s.length?s:t.length?t:["Unknown"]}if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));if(e)return[e.split(":")[1].split(",")[12]]}return["Unknown"]},el=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[7]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[7]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[6]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},er=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[9]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[9]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[5]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ei=e=>{let s=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),t=e.split("\n").find(e=>e.includes("NR5G")),l=[],r=[];return(n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t&&(r=t.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),l=l.filter(e=>!s.includes(e)),r=r.filter(e=>!s.includes(e)),l.length)?r.length?"LTE ".concat(l.length.toString()," / NR ").concat(r.length.toString()):"LTE ".concat(l.length.toString()):r.length?"NR ".concat(r.length.toString()):"Unknown"};var ea=()=>{let[e,s]=(0,l.useState)(null),[n,t]=(0,l.useState)(6e4),[r,i]=(0,l.useState)(!0),[a,o]=(0,l.useState)(!0),c=async()=>{try{let e=await fetch("/cgi-bin/settings/fetch-config.sh"),s=await e.json(),n=Math.max(1e3,parseInt(s.data_refresh_rate));t(n)}catch(e){console.error("Error fetching refresh rate:",e)}},d=(0,l.useCallback)(async()=>{try{var e,n,t;a&&i(!0);let l=await fetch("/cgi-bin/fetch_data.sh?set=1"),r=await l.json();console.log(r),await c();let o={simCard:{slot:r[0].response.split("\n")[1].split(":")[1].trim()||"Unknown",state:r[6].response.match("READY")?"Inserted":"Not Inserted",provider:r[2].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",phoneNumber:r[1].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"Unknown",imsi:r[3].response.split("\n")[1].trim()||"Unknown",iccid:r[4].response.split("\n")[1].split(":")[1].trim()||"Unknown",imei:r[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:r[7].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||r[12].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",operatorState:P(r[8].response,r[16].response)||"Unknown",functionalityState:"1"===r[9].response.split("\n")[1].split(":")[1].trim()?"Enabled":"Disabled",networkType:Z(r[13].response)||"No Signal",modemTemperature:H(r[11].response)||"Unknown",accessTechnology:r[2].response.split("\n")[1].split(":")[1].split(",")[3].trim()||"Unknown"},dataTransmission:{carrierAggregation:(null===(e=r[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===e?void 0:e.length)>1?"Multi":"Inactive",bandwidth:_(r[13].response,Z(r[13].response))||"Unknown",connectedBands:F(r[13].response)||"Unknown",signalStrength:Q(r[14].response)||"Unknown",mimoLayers:ei(r[14].response)||"Unknown"},cellularInfo:{cellId:q(r[10].response,Z(r[13].response))||"Unknown",trackingAreaCode:V(r[10].response,Z(r[13].response))||"Unknown",physicalCellId:Y(r[13].response,Z(r[13].response)),earfcn:W(r[13].response),mcc:K(r[10].response,Z(r[13].response))||"Unknown",mnc:$(r[10].response,Z(r[13].response))||"Unknown",signalQuality:X(r[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(t=null===(n=J(r[13].response))||void 0===n?void 0:n.length)&&void 0!==t?t:0},(e,s)=>s+1)||[1],bandNumber:J(r[13].response)||["Unknown"],earfcn:ee(r[13].response),bandwidth:es(r[13].response)||["Unknown"],pci:en(r[13].response,Z(r[13].response))||["Unknown"],rsrp:et(r[13].response,Z(r[13].response),r[10].response),rsrq:el(r[13].response,Z(r[13].response),r[10].response)||["Unknown"],sinr:er(r[13].response,Z(r[13].response),r[10].response)||["Unknown"]}};s(o)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}})}finally{a&&setTimeout(()=>{i(!1),o(!1)},300)}},[a]);return(0,l.useEffect)(()=>{d();let e=setInterval(d,n);return()=>clearInterval(e)},[d,n]),{data:e,isLoading:r,refresh:d}},eo=()=>{let[e,s]=(0,l.useState)("Unknown"),[n,t]=(0,l.useState)(!0),r=(0,l.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/home/check_net.sh"),n=await e.json();s("ACTIVE"===n.connection?"Connected":"Disconnected"),t(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),t(!1)}},[]);return(0,l.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,l.useCallback)(()=>{r()},[r]),isStateLoading:n}};let ec=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]};var ed=()=>{let[e,s]=(0,l.useState)("0 Bytes"),[n,t]=(0,l.useState)("0 Bytes"),r=(0,l.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(encodeURIComponent("AT+QGDCNT?;+QGDNRCNT?"))}),n=await e.json(),l=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[0]),r=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[1]),i=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[0]),a=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[1]);s(ec(r+i)),t(ec(l+a))}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,l.useEffect)(()=>{r();let e=setInterval(r,2e3);return()=>clearInterval(e)},[r]),{bytesSent:e,bytesReceived:n,refresh:(0,l.useCallback)(()=>{r()},[r])}},ep=()=>{let[e,s]=(0,l.useState)(!1),[n,t]=(0,l.useState)(null),r=(e,s)=>{let n=e.split("\n")[1].split(":")[1].split(",")[1].trim(),t=s.split("\n")[1].split(":")[1].split(",")[1].trim();return"1"===n||"1"===t?"Registered":"Not Registered"},i=(e,s)=>e.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()===s.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()?"Enabled":"Disabled",a=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim();return s&&"1"===s||n&&"1"===n?"Connected":"Disconnected"},o=e=>{let s=e.split("\n")[1].split(":")[1].split(",").slice(0,4).map(e=>e.trim()),n=e.includes("NR5G"),t=null;if(n&&(t=e.split("\n")[2].split(":")[1].split(",").slice(0,4).map(e=>e.trim())),s&&s.length>0){let e=s.reduce((e,s)=>e+parseInt(s),0)/s.length;return n&&t&&t.length>0?(e+t.reduce((e,s)=>e+parseInt(s),0)/t.length)/2<-100?"Poor":"Good":e<-100?"Poor":"Good"}return"N/A"},c=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},d=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim(),t=e.split("\n")[3].split(":")[1].split(",")[1].trim(),l=["0"!==s?"".concat(s):null,"0"!==n?"".concat(n):null,"0"!==t?"".concat(t):null].filter(Boolean);return l.length>0?l.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:n,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let n={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:c(s[7].response),netReject:d(s[8].response)};return t(n),n}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}},eu=()=>{let{toast:e}=(0,r.pm)(),{data:s,isLoading:n,refresh:i}=ea(),{dataConnectionState:a,isStateLoading:o,refresh:c}=eo(),{isRunningDiagnostics:d,runDiagnosticsData:p,startDiagnostics:m}=ep(),{bytesSent:h,bytesReceived:x,refresh:f}=ed(),R=async()=>{try{let s=await fetch("/cgi-bin/settings/force-rerun.sh"),n=await s.json();if("success"===n.status)e({title:"Data Refreshed",description:"Data and scripts has been refreshed successfully"});else if("info"===n.status)e({title:"Data Refreshed",description:"Data refreshed successfully, but no scripts to restart."});else throw Error("Failed to restart scripts")}catch(s){console.error("Error rerunning scripts:",s),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},A=async()=>{try{var n;let t=null==s?void 0:null===(n=s.simCard)||void 0===n?void 0:n.slot,l=encodeURIComponent("Slot 1"===t?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(l),signal:AbortSignal.timeout(5e3)});if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e),signal:AbortSignal.timeout(5e3)});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let n=await s.json();if(n.error)throw Error(n.error)},3e3),setTimeout(I,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},I=(0,l.useCallback)(async()=>{try{await Promise.all([i(),c(),f()]),await R()}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,f,e]),[U,E]=(0,l.useState)([]),M=async()=>{try{await m()}catch(e){console.error("Error running diagnostics:",e)}};return(0,l.useEffect)(()=>{p&&console.log("Diagnostics data updated:",p)},[p]),(0,l.useEffect)(()=>{if(s&&s.currentBands){var e;let n=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,n)=>{var t,l,r,i,a,o,c;return{id:e,bandNumber:(null===(t=s.currentBands.bandNumber)||void 0===t?void 0:t[n])||"N/A",earfcn:(null===(l=s.currentBands.earfcn)||void 0===l?void 0:l[n])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[n])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[n])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[n])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[n])||"N/A",sinr:(null===(c=s.currentBands.sinr)||void 0===c?void 0:c[n])||"N/A"}});n&&E(n)}},[s]),(0,t.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Connection Summary"}),(0,t.jsx)(v.z,{variant:"ghost",size:"icon",className:"text-sm",onClick:I,children:(0,t.jsx)(y.Z,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,t.jsxs)(b.Vq,{children:[(0,t.jsx)(b.hg,{children:(0,t.jsxs)(v.z,{variant:"destructive",children:[(0,t.jsx)(w.GWp,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"No SIM Detected"})}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(w.GWp,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,t.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,t.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,t.jsx)(v.z,{variant:"secondary",onClick:A,className:"mr-2",children:"Change SIM Slot"}),(0,t.jsx)(b.GG,{asChild:!0,children:(0,t.jsx)(v.z,{children:"Close"})})]})]})]}),(0,t.jsxs)(b.Vq,{children:[(0,t.jsx)(b.hg,{children:(0,t.jsxs)(v.z,{variant:"secondary",onClick:M,children:[(0,t.jsx)(S.Z,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!d&&(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"Diagnostics Result"})}),(0,t.jsx)(b.Be,{children:"This is the result of the diagnostic test ran on your device."}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==p?void 0:p.netRegistration)==="Registered"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==p?void 0:p.simState)==="READY"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==p?void 0:p.manualAPN)==="Enabled"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==p?void 0:p.wanIP)==="Connected"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==p?void 0:p.cellSignal)==="Good"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==p?void 0:p.modemTemp)==="Normal"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==p?void 0:p.netReject)==="None"?(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(C.Z,{className:"text-green-500"}),(0,t.jsx)("span",{children:"None"})]}):(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(k.Z,{className:"text-red-500"}),(0,t.jsx)("span",{children:null==p?void 0:p.netReject})]})]})]})]}),d&&(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"Running Diagnostics"})}),(0,t.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,t.jsx)(T(),{color:"#6D28D9"})}),(0,t.jsx)(b.Be,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,t.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,t.jsx)(u,{data:s,isLoading:n}),(0,t.jsx)(g,{data:s,isLoading:n,dataConnectionState:a,connectionStateLoading:o}),(0,t.jsx)(j,{data:s,isLoading:n,bytesSent:h,bytesReceived:x}),(0,t.jsx)(N,{data:s,isLoading:n})]})]}),(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Current Active Bands"}),(0,t.jsx)(L,{bands:U,isLoading:n})]})]})}},78580:function(e,s,n){"use strict";n.d(s,{d:function(){return o},z:function(){return c}});var t=n(20881),l=n(64149),r=n(54098),i=n(20116),a=n(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef((e,s)=>{let{className:n,variant:l,size:i,asChild:c=!1,...d}=e,p=c?r.g7:"button";return(0,t.jsx)(p,{className:(0,a.cn)(o({variant:l,size:i,className:n})),ref:s,...d})});c.displayName="Button"},94920:function(e,s,n){"use strict";n.d(s,{Ol:function(){return a},SZ:function(){return c},Zb:function(){return i},aY:function(){return d},eW:function(){return p},ll:function(){return o}});var t=n(20881),l=n(64149),r=n(90270);let i=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...l})});i.displayName="Card";let a=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",n),...l})});a.displayName="CardHeader";let o=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",n),...l})});o.displayName="CardTitle";let c=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",n),...l})});c.displayName="CardDescription";let d=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",n),...l})});d.displayName="CardContent";let p=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",n),...l})});p.displayName="CardFooter"},30214:function(e,s,n){"use strict";n.d(s,{$N:function(){return x},Be:function(){return f},GG:function(){return p},Vq:function(){return o},cZ:function(){return m},fK:function(){return h},hg:function(){return c}});var t=n(20881),l=n(64149),r=n(14491),i=n(35935),a=n(90270);let o=r.fC,c=r.xz,d=r.h_,p=r.x8,u=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.aV,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l})});u.displayName=r.aV.displayName;let m=l.forwardRef((e,s)=>{let{className:n,children:l,...o}=e;return(0,t.jsxs)(d,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(r.VY,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...o,children:[l,(0,t.jsxs)(r.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=r.VY.displayName;let h=e=>{let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...n})};h.displayName="DialogHeader";let x=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.Dx,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",n),...l})});x.displayName=r.Dx.displayName;let f=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.dk,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",n),...l})});f.displayName=r.dk.displayName},88766:function(e,s,n){"use strict";n.d(s,{O:function(){return r}});var t=n(20881),l=n(90270);function r(e){let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",s),...n})}},46646:function(e,s,n){"use strict";n.d(s,{pm:function(){return u}});var t=n(64149);let l=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=s;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],c={toasts:[]};function d(e){c=a(c,e),o.forEach(e=>{e(c)})}function p(e){let{...s}=e,n=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>d({type:"DISMISS_TOAST",toastId:n});return d({type:"ADD_TOAST",toast:{...s,id:n,open:!0,onOpenChange:e=>{e||t()}}}),{id:n,dismiss:t,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,s]=t.useState(c);return t.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:p,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,s,n){"use strict";n.d(s,{cn:function(){return r}});var t=n(33958),l=n(61779);function r(){for(var e=arguments.length,s=Array(e),n=0;n{let{data:s,isLoading:n}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Sim Card"}),(0,t.jsx)(i.SZ,{children:"Sim card information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card Slot in Use"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[50px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Provider"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Phone Number"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMSI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"ICCID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMEI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})};let m={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},h={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},x={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},f=e=>x[e]||"Unknown";var g=e=>{let{data:s,isLoading:n,dataConnectionState:l,connectionStateLoading:r}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Connection"}),(0,t.jsx)(i.SZ,{children:"Connection information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"APN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Operator State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Functionality State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Data Connection State"}),r?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat("Connected"===l?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Network Type"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Modem Temperature"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Access Technology"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?f(s.connection.accessTechnology):"Unknown"})]})]})]})},j=e=>{let{data:s,isLoading:n,bytesSent:l,bytesReceived:r}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Data Transmission"}),(0,t.jsx)(i.SZ,{children:"Data transmission information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Carrier Aggregation"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bandwidth"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Connected Bands"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Strength"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"MIMO Layers"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Sent"}),(0,t.jsx)("p",{className:"font-bold",children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Received"}),(0,t.jsx)("p",{className:"font-bold",children:r})]})]})]})},N=e=>{let{data:s,isLoading:n}=e;return(0,t.jsxs)(i.Zb,{children:[(0,t.jsxs)(i.Ol,{children:[(0,t.jsx)(i.ll,{children:"Cellular Information"}),(0,t.jsx)(i.SZ,{children:"Cellular network information"})]}),(0,t.jsxs)(i.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Cell ID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"TAC"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Physical Cell IDs"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Country Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Network Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Quality"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)(p,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})},w=n(84773),v=n(78580),b=n(30214),y=n(7357),S=n(7694),C=n(83765),k=n(7410),R=n(55215),T=n.n(R),A=n(35935),I=n(25696);let U=l.createContext(null);function E(){let e=l.useContext(U);if(!e)throw Error("useCarousel must be used within a ");return e}let M=l.forwardRef((e,s)=>{let{orientation:n="horizontal",opts:r,setApi:i,plugins:a,className:o,children:d,...p}=e,[u,m]=(0,I.Z)({...r,axis:"horizontal"===n?"x":"y"},a),[h,x]=l.useState(!1),[f,g]=l.useState(!1),j=l.useCallback(e=>{e&&(x(e.canScrollPrev()),g(e.canScrollNext()))},[]),N=l.useCallback(()=>{null==m||m.scrollPrev()},[m]),w=l.useCallback(()=>{null==m||m.scrollNext()},[m]),v=l.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),w())},[N,w]);return l.useEffect(()=>{m&&i&&i(m)},[m,i]),l.useEffect(()=>{if(m)return j(m),m.on("reInit",j),m.on("select",j),()=>{null==m||m.off("select",j)}},[m,j]),(0,t.jsx)(U.Provider,{value:{carouselRef:u,api:m,opts:r,orientation:n||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:w,canScrollPrev:h,canScrollNext:f},children:(0,t.jsx)("div",{ref:s,onKeyDownCapture:v,className:(0,c.cn)("relative",o),role:"region","aria-roledescription":"carousel",...p,children:d})})});M.displayName="Carousel";let D=l.forwardRef((e,s)=>{let{className:n,...l}=e,{carouselRef:r,orientation:i}=E();return(0,t.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:s,className:(0,c.cn)("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",n),...l})})});D.displayName="CarouselContent";let B=l.forwardRef((e,s)=>{let{className:n,...l}=e,{orientation:r}=E();return(0,t.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,c.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",n),...l})});B.displayName="CarouselItem";let G=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:r="icon",...i}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=E();return(0,t.jsxs)(v.z,{ref:s,variant:l,size:r,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(A.Y4O,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});G.displayName="CarouselPrevious";let O=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:r="icon",...i}=e,{orientation:a,scrollNext:o,canScrollNext:d}=E();return(0,t.jsxs)(v.z,{ref:s,variant:l,size:r,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...i,children:[(0,t.jsx)(A.LZ3,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});O.displayName="CarouselNext";var z=e=>{let{id:s,bandNumber:n,earfcn:l,bandwidth:r,pci:a,rsrp:o,rsrq:c,sinr:d}=e;return(0,t.jsx)(i.Zb,{className:"p-8",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,t.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,t.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[n.replace("LTE BAND ","B").replace("NR5G BAND ","N"),n.includes("NR5G")&&(0,t.jsx)(p,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,t.jsx)("p",{children:l})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,t.jsx)("p",{children:r})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,t.jsx)("p",{children:a})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(d)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dB"]})]})]})})},L=e=>{let{bands:s,isLoading:n}=e;return n?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(i.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(z,{...e},e.id)),(0,t.jsx)(i.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(i.SZ,{className:"text-md",children:"Currently bands connected."})})]})}),(0,t.jsx)(M,{className:"lg:hidden w-full max-w-xs",children:(0,t.jsx)(D,{children:(0,t.jsx)(B,{children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zb,{children:(0,t.jsxs)(i.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(i.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(z,{...e},e.id)),(0,t.jsx)(i.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(i.SZ,{className:"text-md",children:"Current bands connected."})})]})}),(0,t.jsxs)(M,{className:"lg:hidden w-full max-w-xs",children:[(0,t.jsx)(D,{children:null==s?void 0:s.map(e=>(0,t.jsx)(B,{className:"md:basis-1/2 lg:basis-1/3",children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(i.Zb,{children:(0,t.jsxs)(i.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("p",{children:e.bandNumber})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("p",{children:e.earfcn})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("p",{children:e.bandwidth})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("p",{children:e.pci})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,t.jsx)(G,{}),(0,t.jsx)(O,{})]})]})};let P=(e,s)=>{switch(e.split("\n")[1].split(":")[1].split(",")[1].trim()||s.split("\n")[1].split(":")[1].split(",")[1].trim()){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},Z=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),n=null==s?void 0:s.some(e=>e.includes("LTE")),t=null==s?void 0:s.some(e=>e.includes("NR5G"));return n&&t?"NR5G-NSA":n?"LTE":t?"NR5G-SA":"No Signal"},H=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>parseInt(e.split("\n").find(e=>e.includes(s)).split(":")[1].split(",")[1].replace(/"/g,"").trim())),n=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(n),"\xb0C")},_=(e,s)=>{let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[2].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[2].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(l=l.map(e=>e.split(":")[1].split(",")[2].trim()),"LTE"===s)return!t.length&&n?m[n]||"Unknown":[n?m[n]:"",...t.map(e=>m[e])].join(", ");if("NR5G-SA"===s&&n)return l.length?[h[n],...l.map(e=>h[e])].join(", "):h[n]||"Unknown";if("NR5G-NSA"===s&&n)return t.length||l.length?t.length&&!l.length?[m[n],...t.map(e=>m[e])].join(", "):[m[n],...t.map(e=>m[e]),...l.map(e=>h[e])].join(", "):m[n]||"Unknown";return"Unknown"},F=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},Q=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},q=(e,s)=>"NR5G-SA"===s||"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[6].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[4].trim():"Unknown",V=(e,s)=>"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[8].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[9].trim():"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[12].trim():"Unknown",Y=(e,s)=>{if("LTE"===s||"NR5G-NSA"===s){let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[5].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[5].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(l=l.map(e=>e.split(":")[1].split(",")[4].trim()),t.length||l.length)?"LTE"===s?[n,...t].join(", "):[n,...t,...l].join(", "):n}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[4].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>e.split(":")[1].split(",")[5].trim())).length?[s,...n].join(", "):s}},W=e=>{let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[1].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>e.split(":")[1].split(",")[1].trim());let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>e.split(":")[1].split(",")[1].trim()),!s||n.length||t.length)?s&&n.length&&!t.length?[s,...n].join(", "):s&&!n.length&&t.length?[s,...t].join(", "):s&&n.length&&t.length?[s,...n,...t].join(", "):"Unknown":s},K=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[4].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[2].trim():"Unknown",$=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[5].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[3].trim():void 0,X=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},J=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):s.length?s.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):n.length?n.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):["Unknown"]},ee=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[1]):s.length?s.map(e=>e.split(":")[1].split(",")[1]):n.length?n.map(e=>e.split(":")[1].split(",")[1]):["Unknown"]},es=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND")),t=s.map(e=>m[e.split(":")[1].split(",")[2]]),l=n.map(e=>h[e.split(":")[1].split(",")[2]]);return t.length&&l.length?[...t,...l]:t.length?t:l.length?l:["Unknown"]},en=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=s?s.split(":")[1].split(",")[4].trim():"Unknown";let n=e.split("\n").filter(e=>e.includes("BAND"));return n.length?[s,...n.map(e=>e.split(":")[1].split(",")[5]||"Unknown")]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>e.split(":")[1].split(",")[5]||"Unknown"),...n.map(e=>e.split(":")[1].split(",")[4]||"Unknown")]}return["Unknown"]},et=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]);if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[4]);return s.length&&t.length?[...s,...t]:s.length?s:t.length?t:["Unknown"]}if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));if(e)return[e.split(":")[1].split(",")[12]]}return["Unknown"]},el=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[7]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[7]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[6]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},er=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[9]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[9]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[5]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ei=e=>{let s=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),t=e.split("\n").find(e=>e.includes("NR5G")),l=[],r=[];return(n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t&&(r=t.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),l=l.filter(e=>!s.includes(e)),r=r.filter(e=>!s.includes(e)),l.length)?r.length?"LTE ".concat(l.length.toString()," / NR ").concat(r.length.toString()):"LTE ".concat(l.length.toString()):r.length?"NR ".concat(r.length.toString()):"Unknown"};var ea=()=>{let[e,s]=(0,l.useState)(null),[n,t]=(0,l.useState)(6e4),[r,i]=(0,l.useState)(!0),[a,o]=(0,l.useState)(!0),c=async()=>{try{let e=await fetch("/cgi-bin/settings/fetch-config.sh"),s=await e.json(),n=Math.max(1e3,parseInt(s.data_refresh_rate));t(n)}catch(e){console.error("Error fetching refresh rate:",e)}},d=(0,l.useCallback)(async()=>{try{var e,n,t;a&&i(!0);let l=await fetch("/cgi-bin/fetch_data.sh?set=1"),r=await l.json();console.log(r),await c();let o={simCard:{slot:r[0].response.split("\n")[1].split(":")[1].trim()||"Unknown",state:r[6].response.match("READY")?"Inserted":"Not Inserted",provider:r[2].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",phoneNumber:r[1].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"Unknown",imsi:r[3].response.split("\n")[1].trim()||"Unknown",iccid:r[4].response.split("\n")[1].split(":")[1].trim()||"Unknown",imei:r[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:r[7].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||r[12].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",operatorState:P(r[8].response,r[16].response)||"Unknown",functionalityState:"1"===r[9].response.split("\n")[1].split(":")[1].trim()?"Enabled":"Disabled",networkType:Z(r[13].response)||"No Signal",modemTemperature:H(r[11].response)||"Unknown",accessTechnology:r[2].response.split("\n")[1].split(":")[1].split(",")[3].trim()||"Unknown"},dataTransmission:{carrierAggregation:(null===(e=r[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===e?void 0:e.length)>1?"Multi":"Inactive",bandwidth:_(r[13].response,Z(r[13].response))||"Unknown",connectedBands:F(r[13].response)||"Unknown",signalStrength:Q(r[14].response)||"Unknown",mimoLayers:ei(r[14].response)||"Unknown"},cellularInfo:{cellId:q(r[10].response,Z(r[13].response))||"Unknown",trackingAreaCode:V(r[10].response,Z(r[13].response))||"Unknown",physicalCellId:Y(r[13].response,Z(r[13].response)),earfcn:W(r[13].response),mcc:K(r[10].response,Z(r[13].response))||"Unknown",mnc:$(r[10].response,Z(r[13].response))||"Unknown",signalQuality:X(r[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(t=null===(n=J(r[13].response))||void 0===n?void 0:n.length)&&void 0!==t?t:0},(e,s)=>s+1)||[1],bandNumber:J(r[13].response)||["Unknown"],earfcn:ee(r[13].response),bandwidth:es(r[13].response)||["Unknown"],pci:en(r[13].response,Z(r[13].response))||["Unknown"],rsrp:et(r[13].response,Z(r[13].response),r[10].response),rsrq:el(r[13].response,Z(r[13].response),r[10].response)||["Unknown"],sinr:er(r[13].response,Z(r[13].response),r[10].response)||["Unknown"]}};s(o)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}})}finally{a&&setTimeout(()=>{i(!1),o(!1)},300)}},[a]);return(0,l.useEffect)(()=>{d();let e=setInterval(d,n);return()=>clearInterval(e)},[d,n]),{data:e,isLoading:r,refresh:d}},eo=()=>{let[e,s]=(0,l.useState)("Unknown"),[n,t]=(0,l.useState)(!0),r=(0,l.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/home/check_net.sh"),n=await e.json();s("ACTIVE"===n.connection?"Connected":"Disconnected"),t(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),t(!1)}},[]);return(0,l.useEffect)(()=>{r();let e=setInterval(r,3e4);return()=>clearInterval(e)},[r]),{dataConnectionState:e,refresh:(0,l.useCallback)(()=>{r()},[r]),isStateLoading:n}};let ec=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]};var ed=()=>{let[e,s]=(0,l.useState)("0 Bytes"),[n,t]=(0,l.useState)("0 Bytes"),r=(0,l.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(encodeURIComponent("AT+QGDCNT?;+QGDNRCNT?"))}),n=await e.json(),l=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[0]),r=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[1]),i=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[0]),a=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[1]);s(ec(r+i)),t(ec(l+a))}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,l.useEffect)(()=>{r();let e=setInterval(r,2e3);return()=>clearInterval(e)},[r]),{bytesSent:e,bytesReceived:n,refresh:(0,l.useCallback)(()=>{r()},[r])}},ep=()=>{let[e,s]=(0,l.useState)(!1),[n,t]=(0,l.useState)(null),r=(e,s)=>{let n=e.split("\n")[1].split(":")[1].split(",")[1].trim(),t=s.split("\n")[1].split(":")[1].split(",")[1].trim();return"1"===n||"1"===t?"Registered":"Not Registered"},i=(e,s)=>e.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()===s.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()?"Enabled":"Disabled",a=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim();return s&&"1"===s||n&&"1"===n?"Connected":"Disconnected"},o=e=>{let s=e.split("\n")[1].split(":")[1].split(",").slice(0,4).map(e=>e.trim()),n=e.includes("NR5G"),t=null;if(n&&(t=e.split("\n")[2].split(":")[1].split(",").slice(0,4).map(e=>e.trim())),s&&s.length>0){let e=s.reduce((e,s)=>e+parseInt(s),0)/s.length;return n&&t&&t.length>0?(e+t.reduce((e,s)=>e+parseInt(s),0)/t.length)/2<-100?"Poor":"Good":e<-100?"Poor":"Good"}return"N/A"},c=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},d=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim(),t=e.split("\n")[3].split(":")[1].split(",")[1].trim(),l=["0"!==s?"".concat(s):null,"0"!==n?"".concat(n):null,"0"!==t?"".concat(t):null].filter(Boolean);return l.length>0?l.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:n,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let n={netRegistration:r(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:i(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:c(s[7].response),netReject:d(s[8].response)};return t(n),n}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}},eu=()=>{let{toast:e}=(0,r.pm)(),{data:s,isLoading:n,refresh:i}=ea(),{dataConnectionState:a,isStateLoading:o,refresh:c}=eo(),{isRunningDiagnostics:d,runDiagnosticsData:p,startDiagnostics:m}=ep(),{bytesSent:h,bytesReceived:x,refresh:f}=ed(),R=async()=>{try{let s=await fetch("/cgi-bin/settings/force-rerun.sh"),n=await s.json();if("success"===n.status)e({title:"Data Refreshed",description:"Data and scripts has been refreshed successfully"});else if("info"===n.status)e({title:"Data Refreshed",description:"Data refreshed successfully, but no scripts to restart."});else throw Error("Failed to restart scripts")}catch(s){console.error("Error rerunning scripts:",s),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},A=async()=>{try{var n;let t=null==s?void 0:null===(n=s.simCard)||void 0===n?void 0:n.slot,l=encodeURIComponent("Slot 1"===t?"AT+QUIMSLOT=1":"AT+QUIMSLOT=2"),r=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(l),signal:AbortSignal.timeout(5e3)});if(!r.ok)throw Error("HTTP error! status: ".concat(r.status));let i=await r.json();if(i.error)throw Error(i.error);e({title:"SIM Slot Changed",description:"The SIM slot has been changed successfully"}),setTimeout(async()=>{let e=encodeURIComponent("AT+COPS=0;+COPS=2"),s=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(e),signal:AbortSignal.timeout(5e3)});if(!s.ok)throw Error("HTTP error! status: ".concat(s.status));let n=await s.json();if(n.error)throw Error(n.error)},3e3),setTimeout(I,3e3)}catch(s){console.error("Error changing SIM slot:",s),e({variant:"destructive",title:"SIM Slot Change Failed",description:"Failed to change the SIM slot"})}},I=(0,l.useCallback)(async()=>{try{await Promise.all([i(),c(),f()]),await R()}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[i,c,f,e]),[U,E]=(0,l.useState)([]),M=async()=>{try{await m()}catch(e){console.error("Error running diagnostics:",e)}};return(0,l.useEffect)(()=>{p&&console.log("Diagnostics data updated:",p)},[p]),(0,l.useEffect)(()=>{if(s&&s.currentBands){var e;let n=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,n)=>{var t,l,r,i,a,o,c;return{id:e,bandNumber:(null===(t=s.currentBands.bandNumber)||void 0===t?void 0:t[n])||"N/A",earfcn:(null===(l=s.currentBands.earfcn)||void 0===l?void 0:l[n])||"N/A",bandwidth:(null===(r=s.currentBands.bandwidth)||void 0===r?void 0:r[n])||"N/A",pci:(null===(i=s.currentBands.pci)||void 0===i?void 0:i[n])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[n])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[n])||"N/A",sinr:(null===(c=s.currentBands.sinr)||void 0===c?void 0:c[n])||"N/A"}});n&&E(n)}},[s]),(0,t.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Connection Summary"}),(0,t.jsx)(v.z,{variant:"ghost",size:"icon",className:"text-sm",onClick:I,children:(0,t.jsx)(y.Z,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-x-2",children:[(null==s?void 0:s.simCard.state)==="Not Inserted"&&(0,t.jsxs)(b.Vq,{children:[(0,t.jsx)(b.hg,{children:(0,t.jsxs)(v.z,{variant:"destructive",children:[(0,t.jsx)(w.GWp,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"No SIM"})]})}),(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"No SIM Detected"})}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-center",children:(0,t.jsx)(w.GWp,{className:"xl:size-14 md:size-12 size-6 text-red-500"})}),(0,t.jsx)("p",{className:"text-center",children:"There is no SIM card detected in the device. Please insert a SIM card or change the SIM card slot to use the device."})]}),(0,t.jsxs)("div",{className:"flex justify-end mt-4",children:[(0,t.jsx)(v.z,{variant:"secondary",onClick:A,className:"mr-2",children:"Change SIM Slot"}),(0,t.jsx)(b.GG,{asChild:!0,children:(0,t.jsx)(v.z,{children:"Close"})})]})]})]}),(0,t.jsxs)(b.Vq,{children:[(0,t.jsx)(b.hg,{children:(0,t.jsxs)(v.z,{variant:"secondary",onClick:M,children:[(0,t.jsx)(S.Z,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!d&&(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"Diagnostics Result"})}),(0,t.jsx)(b.Be,{children:"This is the result of the diagnostic test ran on your device."}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==p?void 0:p.netRegistration)==="Registered"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==p?void 0:p.simState)==="READY"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==p?void 0:p.manualAPN)==="Enabled"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==p?void 0:p.wanIP)==="Connected"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==p?void 0:p.cellSignal)==="Good"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==p?void 0:p.modemTemp)==="Normal"?(0,t.jsx)(C.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==p?void 0:p.netReject)==="None"?(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(C.Z,{className:"text-green-500"}),(0,t.jsx)("span",{children:"None"})]}):(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(k.Z,{className:"text-red-500"}),(0,t.jsx)("span",{children:null==p?void 0:p.netReject})]})]})]})]}),d&&(0,t.jsxs)(b.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(b.fK,{children:(0,t.jsx)(b.$N,{children:"Running Diagnostics"})}),(0,t.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,t.jsx)(T(),{color:"#6D28D9"})}),(0,t.jsx)(b.Be,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]})]}),(0,t.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,t.jsx)(u,{data:s,isLoading:n}),(0,t.jsx)(g,{data:s,isLoading:n,dataConnectionState:a,connectionStateLoading:o}),(0,t.jsx)(j,{data:s,isLoading:n,bytesSent:h,bytesReceived:x}),(0,t.jsx)(N,{data:s,isLoading:n})]})]}),(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Current Active Bands"}),(0,t.jsx)(L,{bands:U,isLoading:n})]})]})}},78580:function(e,s,n){"use strict";n.d(s,{d:function(){return o},z:function(){return c}});var t=n(20881),l=n(64149),r=n(54098),i=n(20116),a=n(90270);let o=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef((e,s)=>{let{className:n,variant:l,size:i,asChild:c=!1,...d}=e,p=c?r.g7:"button";return(0,t.jsx)(p,{className:(0,a.cn)(o({variant:l,size:i,className:n})),ref:s,...d})});c.displayName="Button"},94920:function(e,s,n){"use strict";n.d(s,{Ol:function(){return a},SZ:function(){return c},Zb:function(){return i},aY:function(){return d},eW:function(){return p},ll:function(){return o}});var t=n(20881),l=n(64149),r=n(90270);let i=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...l})});i.displayName="Card";let a=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex flex-col space-y-1.5 p-6",n),...l})});a.displayName="CardHeader";let o=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("h3",{ref:s,className:(0,r.cn)("font-semibold leading-none tracking-tight",n),...l})});o.displayName="CardTitle";let c=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("p",{ref:s,className:(0,r.cn)("text-sm text-muted-foreground",n),...l})});c.displayName="CardDescription";let d=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("p-6 pt-0",n),...l})});d.displayName="CardContent";let p=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,r.cn)("flex items-center p-6 pt-0",n),...l})});p.displayName="CardFooter"},30214:function(e,s,n){"use strict";n.d(s,{$N:function(){return x},Be:function(){return f},GG:function(){return p},Vq:function(){return o},cZ:function(){return m},fK:function(){return h},hg:function(){return c}});var t=n(20881),l=n(64149),r=n(14491),i=n(35935),a=n(90270);let o=r.fC,c=r.xz,d=r.h_,p=r.x8,u=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.aV,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l})});u.displayName=r.aV.displayName;let m=l.forwardRef((e,s)=>{let{className:n,children:l,...o}=e;return(0,t.jsxs)(d,{children:[(0,t.jsx)(u,{}),(0,t.jsxs)(r.VY,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...o,children:[l,(0,t.jsxs)(r.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(i.Pxu,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});m.displayName=r.VY.displayName;let h=e=>{let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...n})};h.displayName="DialogHeader";let x=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.Dx,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",n),...l})});x.displayName=r.Dx.displayName;let f=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(r.dk,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",n),...l})});f.displayName=r.dk.displayName},88766:function(e,s,n){"use strict";n.d(s,{O:function(){return r}});var t=n(20881),l=n(90270);function r(e){let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",s),...n})}},46646:function(e,s,n){"use strict";n.d(s,{pm:function(){return u}});var t=n(64149);let l=0,r=new Map,i=e=>{if(r.has(e))return;let s=setTimeout(()=>{r.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=s;return n?i(n):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],c={toasts:[]};function d(e){c=a(c,e),o.forEach(e=>{e(c)})}function p(e){let{...s}=e,n=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>d({type:"DISMISS_TOAST",toastId:n});return d({type:"ADD_TOAST",toast:{...s,id:n,open:!0,onOpenChange:e=>{e||t()}}}),{id:n,dismiss:t,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,s]=t.useState(c);return t.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:p,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,s,n){"use strict";n.d(s,{cn:function(){return r}});var t=n(33958),l=n(61779);function r(){for(var e=arguments.length,s=Array(e),n=0;n{let{data:s,isLoading:n}=e;return(0,t.jsxs)(r.Zb,{children:[(0,t.jsxs)(r.Ol,{children:[(0,t.jsx)(r.ll,{children:"Sim Card"}),(0,t.jsx)(r.SZ,{children:"Sim card information"})]}),(0,t.jsxs)(r.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card Slot in Use"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[50px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.slot})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Sim Card State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.simCard.state)==="Inserted"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.simCard.state})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Provider"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.provider})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Phone Number"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.phoneNumber})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMSI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imsi})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"ICCID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.iccid})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"IMEI"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[140px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.simCard.imei})]})]})]})};let m={6:"1.4 MHz",15:"3 MHz",25:"5 MHz",50:"10 MHz",75:"15 MHz",100:"20 MHz"},x={0:"5 MHz",1:"10 MHz",2:"15 MHz",3:"20 MHz",4:"25 MHz",5:"30 MHz",6:"40 MHz",7:"50 MHz",8:"60 MHz",9:"70 MHz",10:"80 MHz",11:"90 MHz",12:"100 MHz",13:"200 MHz",14:"400 MHz",15:"35 MHz",16:"45 MHz"},h={2:"UTRAN",4:"HSDPA",5:"HSUPA",6:"HSDPA & HSUPA",7:"E-UTRAN",10:"E-UTRAN - 5GCN",11:"NR - 5GCN",12:"NG-RAN",13:"E-UTRAN-NR Dual"},f=e=>h[e]||"Unknown";var g=e=>{let{data:s,isLoading:n,dataConnectionState:l,connectionStateLoading:i}=e;return(0,t.jsxs)(r.Zb,{children:[(0,t.jsxs)(r.Ol,{children:[(0,t.jsx)(r.ll,{children:"Connection"}),(0,t.jsx)(r.SZ,{children:"Connection information"})]}),(0,t.jsxs)(r.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"APN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.apn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Operator State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.operatorState)==="Unknown"||(null==s?void 0:s.connection.operatorState)==="Denied"?"bg-rose-500 hover:bg-rose-800":"bg-emerald-500 hover:bg-emerald-800"),children:null==s?void 0:s.connection.operatorState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Functionality State"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.connection.functionalityState)==="Enabled"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.connection.functionalityState})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Data Connection State"}),i?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat("Connected"===l?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Network Type"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.networkType})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Modem Temperature"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:null==s?void 0:s.connection.modemTemperature})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("div",{children:"Access Technology"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("div",{className:"font-bold",children:(null==s?void 0:s.connection.accessTechnology)?f(s.connection.accessTechnology):"Unknown"})]})]})]})},j=e=>{let{data:s,isLoading:n,bytesSent:l,bytesReceived:i}=e;return(0,t.jsxs)(r.Zb,{children:[(0,t.jsxs)(r.Ol,{children:[(0,t.jsx)(r.ll,{children:"Data Transmission"}),(0,t.jsx)(r.SZ,{children:"Data transmission information"})]}),(0,t.jsxs)(r.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Carrier Aggregation"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.carrierAggregation)==="Multi"?"bg-emerald-500 hover:bg-emerald-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.carrierAggregation})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bandwidth"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.bandwidth})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Connected Bands"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.connectedBands})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Strength"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)(p,{className:"font-bold ".concat((null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.dataTransmission.signalStrength)&&parseInt(null==s?void 0:s.dataTransmission.signalStrength)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.dataTransmission.signalStrength})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"MIMO Layers"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[100px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.dataTransmission.mimoLayers})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Sent"}),(0,t.jsx)("p",{className:"font-bold",children:l})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Bytes Received"}),(0,t.jsx)("p",{className:"font-bold",children:i})]})]})]})},N=e=>{let{data:s,isLoading:n}=e;return(0,t.jsxs)(r.Zb,{children:[(0,t.jsxs)(r.Ol,{children:[(0,t.jsx)(r.ll,{children:"Cellular Information"}),(0,t.jsx)(r.SZ,{children:"Cellular network information"})]}),(0,t.jsxs)(r.aY,{className:"grid gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Cell ID"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.cellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"TAC"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.trackingAreaCode})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Physical Cell IDs"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.physicalCellId})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.earfcn})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Country Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mcc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Mobile Network Code"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)("p",{className:"font-bold",children:null==s?void 0:s.cellularInfo.mnc})]}),(0,t.jsxs)("div",{className:"flex flex-row justify-between text-md",children:[(0,t.jsx)("p",{children:"Signal Quality"}),n?(0,t.jsx)(a.O,{className:"h-4 w-[80px]"}):(0,t.jsx)(p,{className:"\n font-bold ".concat((null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>80?"bg-emerald-500 hover:bg-emerald-800":(null==s?void 0:s.cellularInfo.signalQuality)&&parseInt(null==s?void 0:s.cellularInfo.signalQuality)>40?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800"),children:null==s?void 0:s.cellularInfo.signalQuality})]})]})]})},w=n(78580),v=n(30214),b=n(7357),y=n(7694),S=n(83765),k=n(7410),R=n(55215),C=n.n(R),A=n(35935),T=n(25696);let I=l.createContext(null);function U(){let e=l.useContext(I);if(!e)throw Error("useCarousel must be used within a ");return e}let E=l.forwardRef((e,s)=>{let{orientation:n="horizontal",opts:i,setApi:r,plugins:a,className:o,children:d,...p}=e,[u,m]=(0,T.Z)({...i,axis:"horizontal"===n?"x":"y"},a),[x,h]=l.useState(!1),[f,g]=l.useState(!1),j=l.useCallback(e=>{e&&(h(e.canScrollPrev()),g(e.canScrollNext()))},[]),N=l.useCallback(()=>{null==m||m.scrollPrev()},[m]),w=l.useCallback(()=>{null==m||m.scrollNext()},[m]),v=l.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),N()):"ArrowRight"===e.key&&(e.preventDefault(),w())},[N,w]);return l.useEffect(()=>{m&&r&&r(m)},[m,r]),l.useEffect(()=>{if(m)return j(m),m.on("reInit",j),m.on("select",j),()=>{null==m||m.off("select",j)}},[m,j]),(0,t.jsx)(I.Provider,{value:{carouselRef:u,api:m,opts:i,orientation:n||((null==i?void 0:i.axis)==="y"?"vertical":"horizontal"),scrollPrev:N,scrollNext:w,canScrollPrev:x,canScrollNext:f},children:(0,t.jsx)("div",{ref:s,onKeyDownCapture:v,className:(0,c.cn)("relative",o),role:"region","aria-roledescription":"carousel",...p,children:d})})});E.displayName="Carousel";let D=l.forwardRef((e,s)=>{let{className:n,...l}=e,{carouselRef:i,orientation:r}=U();return(0,t.jsx)("div",{ref:i,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:s,className:(0,c.cn)("flex","horizontal"===r?"-ml-4":"-mt-4 flex-col",n),...l})})});D.displayName="CarouselContent";let M=l.forwardRef((e,s)=>{let{className:n,...l}=e,{orientation:i}=U();return(0,t.jsx)("div",{ref:s,role:"group","aria-roledescription":"slide",className:(0,c.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===i?"pl-4":"pt-4",n),...l})});M.displayName="CarouselItem";let B=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:i="icon",...r}=e,{orientation:a,scrollPrev:o,canScrollPrev:d}=U();return(0,t.jsxs)(w.z,{ref:s,variant:l,size:i,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...r,children:[(0,t.jsx)(A.Y4O,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});B.displayName="CarouselPrevious";let G=l.forwardRef((e,s)=>{let{className:n,variant:l="outline",size:i="icon",...r}=e,{orientation:a,scrollNext:o,canScrollNext:d}=U();return(0,t.jsxs)(w.z,{ref:s,variant:l,size:i,className:(0,c.cn)("absolute h-8 w-8 rounded-full","horizontal"===a?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",n),disabled:!d,onClick:o,...r,children:[(0,t.jsx)(A.LZ3,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});G.displayName="CarouselNext";var O=e=>{let{id:s,bandNumber:n,earfcn:l,bandwidth:i,pci:a,rsrp:o,rsrq:c,sinr:d}=e;return(0,t.jsx)(r.Zb,{className:"p-8",children:(0,t.jsxs)("div",{className:"flex flex-row items-center gap-6 justify-between",children:[(0,t.jsxs)("div",{className:"grid gap-2 w-[180px]",children:[(0,t.jsx)("h2",{className:"text-md font-bold",children:"Band"}),(0,t.jsxs)("div",{className:"flex flex-row items-center gap-2",children:[n.replace("LTE BAND ","B").replace("NR5G BAND ","N"),n.includes("NR5G")&&(0,t.jsx)(p,{className:"text-xs bg-blue-600 hover:bg-blue-800",children:"NR 5G"})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"E/ARFCN"}),(0,t.jsx)("p",{children:l})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Bandwidth"}),(0,t.jsx)("p",{children:i})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"Physical Cell ID"}),(0,t.jsx)("p",{children:a})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(o)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(o)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[o," dBm"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(c)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(c)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[c," dB"]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("p",{className:"text-sm font-bold",children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(d)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(d)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[d," dB"]})]})]})})},z=e=>{let{bands:s,isLoading:n}=e;return n?(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(r.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(O,{...e},e.id)),(0,t.jsx)(r.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(r.SZ,{className:"text-md",children:"Currently bands connected."})})]})}),(0,t.jsx)(E,{className:"lg:hidden w-full max-w-xs",children:(0,t.jsx)(D,{children:(0,t.jsx)(M,{children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(r.Zb,{children:(0,t.jsxs)(r.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-16 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsx)("div",{children:(0,t.jsx)(a.O,{className:"w-32 h-4"})})]})]})})})})})})]}):(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("div",{className:"hidden lg:block w-full",children:(0,t.jsxs)(r.Zb,{className:"p-6 grid gap-4",children:[s&&s.map(e=>(0,t.jsx)(O,{...e},e.id)),(0,t.jsx)(r.eW,{className:"w-full p-6 flex items-center justify-center",children:(0,t.jsx)(r.SZ,{className:"text-md",children:"Current bands connected."})})]})}),(0,t.jsxs)(E,{className:"lg:hidden w-full max-w-xs",children:[(0,t.jsx)(D,{children:null==s?void 0:s.map(e=>(0,t.jsx)(M,{className:"md:basis-1/2 lg:basis-1/3",children:(0,t.jsx)("div",{className:"p-1",children:(0,t.jsx)(r.Zb,{children:(0,t.jsxs)(r.aY,{className:"aspect-square p-4 gap-4 flex flex-col items-center justify-center flex-grow",children:[(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Band"}),(0,t.jsx)("p",{children:e.bandNumber})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"E/ARFCN"}),(0,t.jsx)("p",{children:e.earfcn})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"Bandwidth"}),(0,t.jsx)("p",{children:e.bandwidth})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"PCI"}),(0,t.jsx)("p",{children:e.pci})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRP"}),(0,t.jsxs)(p,{className:parseInt(e.rsrp)>=-80?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.rsrp)>=-100?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrp," dBm"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"RSRQ"}),(0,t.jsxs)(p,{className:10>=parseInt(e.rsrq)?"bg-emerald-500 hover:bg-emerald-800":20>=parseInt(e.rsrq)?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.rsrq," dB"]})]}),(0,t.jsxs)("div",{className:"flex justify-between w-full",children:[(0,t.jsx)("p",{children:"SINR"}),(0,t.jsxs)(p,{className:parseInt(e.sinr)>=20?"bg-emerald-500 hover:bg-emerald-800":parseInt(e.sinr)>=0?"bg-orange-500 hover:bg-orange-800":"bg-rose-500 hover:bg-rose-800",children:[e.sinr," dB"]})]})]})})})},e.id))}),(0,t.jsx)(B,{}),(0,t.jsx)(G,{})]})]})};let L=(e,s)=>{switch(e.split("\n")[1].split(":")[1].split(",")[1].trim()||s.split("\n")[1].split(":")[1].split(",")[1].trim()){case"1":return"Registered";case"2":return"Searching";case"3":return"Denied";case"4":return"Unknown";case"5":return"Roaming";default:return"Not Registered"}},P=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),n=null==s?void 0:s.some(e=>e.includes("LTE")),t=null==s?void 0:s.some(e=>e.includes("NR5G"));return n&&t?"NR5G-NSA":n?"LTE":t?"NR5G-SA":"No Signal"},Z=e=>{let s=["cpuss-0","cpuss-1","cpuss-2","cpuss-3"].map(s=>parseInt(e.split("\n").find(e=>e.includes(s)).split(":")[1].split(",")[1].replace(/"/g,"").trim())),n=s.reduce((e,s)=>e+s,0)/s.length;return"".concat(Math.round(n),"\xb0C")},H=(e,s)=>{let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[2].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[2].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));if(l=l.map(e=>e.split(":")[1].split(",")[2].trim()),"LTE"===s)return!t.length&&n?m[n]||"Unknown":[n?m[n]:"",...t.map(e=>m[e])].join(", ");if("NR5G-SA"===s&&n)return l.length?[x[n],...l.map(e=>x[e])].join(", "):x[n]||"Unknown";if("NR5G-NSA"===s&&n)return t.length||l.length?t.length&&!l.length?[m[n],...t.map(e=>m[e])].join(", "):[m[n],...t.map(e=>m[e]),...l.map(e=>x[e])].join(", "):m[n]||"Unknown"},_=e=>{let s=e.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g);return(null==s?void 0:s.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0).join(", "))||"Unknown"},F=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},Q=(e,s)=>"NR5G-SA"===s||"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[6].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[4].trim():"Unknown",q=(e,s)=>"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[8].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[9].trim():"LTE"===s?e.split("\n")[1].split(":")[1].split(",")[12].trim():"Unknown",Y=(e,s)=>{if("LTE"===s||"NR5G-NSA"===s){let n=e.split("\n").find(e=>e.includes("PCC"));n=null==n?void 0:n.split(":")[1].split(",")[5].trim();let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));t=t.map(e=>e.split(":")[1].split(",")[5].trim());let l=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(l=l.map(e=>e.split(":")[1].split(",")[4].trim()),t.length||l.length)?"LTE"===s?[n,...t].join(", "):[n,...t,...l].join(", "):n}if("NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[4].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(n=n.map(e=>e.split(":")[1].split(",")[5].trim())).length?[s,...n].join(", "):s}},V=e=>{let s=e.split("\n").find(e=>e.includes("PCC"));s=null==s?void 0:s.split(":")[1].split(",")[1].trim();let n=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("LTE"));n=n.map(e=>e.split(":")[1].split(",")[1].trim());let t=e.split("\n").filter(e=>e.includes("SCC")&&e.includes("NR5G"));return(t=t.map(e=>e.split(":")[1].split(",")[1].trim()),!s||n.length||t.length)?s&&n.length&&!t.length?[s,...n].join(", "):s&&!n.length&&t.length?[s,...t].join(", "):s&&n.length&&t.length?[s,...n,...t].join(", "):"Unknown":s},W=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[4].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[2].trim():void 0,K=(e,s)=>"LTE"===s||"NR5G-SA"===s?e.split("\n")[1].split(":")[1].split(",")[5].trim():"NR5G-NSA"===s?e.split("\n")[2].split(":")[1].split(",")[3].trim():void 0,$=e=>{let s=e.split("\n").find(e=>e.includes("LTE")),n=e.split("\n").find(e=>e.includes("NR5G")),t=[],l=[];if(s&&(t=s.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t=t.filter(e=>-140!==e&&-37625!==e),l=l.filter(e=>-140!==e&&-37625!==e),t.length){if(l.length){let e=t.reduce((e,s)=>e+s,0)/t.length,s=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round((Math.max(0,Math.min(100,(e+125)/50*100))+Math.max(0,Math.min(100,(s+125)/50*100)))/2),"%")}{let e=t.reduce((e,s)=>e+s,0)/t.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}}if(!l.length)return"Unknown%";{let e=l.reduce((e,s)=>e+s,0)/l.length;return"".concat(Math.round(Math.max(0,Math.min(100,(e+125)/50*100))),"%")}},X=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):s.length?s.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):n.length?n.map(e=>e.split(":")[1].split(",")[3].replace(/"/g,"")):["Unknown"]},J=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return s.length&&n.length?[...s,...n].map(e=>e.split(":")[1].split(",")[1]):s.length?s.map(e=>e.split(":")[1].split(",")[1]):n.length?n.map(e=>e.split(":")[1].split(",")[1]):["Unknown"]},ee=e=>{let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND")),t=s.map(e=>m[e.split(":")[1].split(",")[2]]),l=n.map(e=>x[e.split(":")[1].split(",")[2]]);return t.length&&l.length?[...t,...l]:t.length?t:l.length?l:["Unknown"]},es=(e,s)=>{if("LTE"===s||"NR5G-SA"===s){let s=e.split("\n").find(e=>e.includes("PCC"));s=s?s.split(":")[1].split(",")[4].trim():"Unknown";let n=e.split("\n").filter(e=>e.includes("BAND"));return n.length?[s,...n.map(e=>e.split(":")[1].split(",")[5]||"Unknown")]:[s]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")),n=e.split("\n").filter(e=>e.includes("NR5G BAND"));return[...s.map(e=>e.split(":")[1].split(",")[5]||"Unknown"),...n.map(e=>e.split(":")[1].split(",")[4]||"Unknown")]}return["Unknown"]},en=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]);if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[6]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[4]);return s.length&&t.length?[...s,...t]:s.length?s:t.length?t:["Unknown"]}if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));if(e)return[e.split(":")[1].split(",")[12]]}return["Unknown"]},et=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[7]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[13]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[7]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[6]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},el=(e,s,n)=>{if("LTE"===s)return e.split("\n").filter(e=>e.includes("BAND")).map(e=>e.split(":")[1].split(",")[9]);if("NR5G-SA"===s){let e=n.split("\n").find(e=>e.includes("NR5G-SA"));return e?[e.split(":")[1].split(",")[14]]:["Unknown"]}if("NR5G-NSA"===s){let s=e.split("\n").filter(e=>e.includes("LTE BAND")).map(e=>e.split(":")[1].split(",")[9]),t=n.split("\n").filter(e=>e.includes("NR5G-NSA")).map(e=>e.split(":")[1].split(",")[5]);if(s.length&&t.length)return[...s,...t];if(s.length)return s;if(t.length)return t}return["Unknown"]},ei=e=>{let s=[-32768,-140],n=e.split("\n").find(e=>e.includes("LTE")),t=e.split("\n").find(e=>e.includes("NR5G")),l=[],i=[];return(n&&(l=n.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),t&&(i=t.split(":")[1].split(",").slice(0,4).map(e=>parseInt(e.trim()))),l=l.filter(e=>!s.includes(e)),i=i.filter(e=>!s.includes(e)),l.length)?i.length?"LTE ".concat(l.length.toString()," / NR ").concat(i.length.toString()):"LTE ".concat(l.length.toString()):i.length?"NR ".concat(i.length.toString()):"Unknown"};var er=()=>{let[e,s]=(0,l.useState)(null),[n,t]=(0,l.useState)(6e4),[i,r]=(0,l.useState)(!0),[a,o]=(0,l.useState)(!0),c=async()=>{try{let e=await fetch("/cgi-bin/settings/fetch-config.sh"),s=await e.json(),n=Math.max(1e3,parseInt(s.data_refresh_rate));t(n)}catch(e){console.error("Error fetching refresh rate:",e)}},d=(0,l.useCallback)(async()=>{try{var e,n,t;a&&r(!0);let l=await fetch("/cgi-bin/fetch_data.sh?set=1"),i=await l.json();console.log(i),await c();let o={simCard:{slot:i[0].response.split("\n")[1].split(":")[1].trim()||"Unknown",state:i[6].response.match("READY")?"Inserted":"Not Inserted",provider:i[2].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",phoneNumber:i[1].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"Unknown",imsi:i[3].response.split("\n")[1].trim()||"Unknown",iccid:i[4].response.split("\n")[1].split(":")[1].trim()||"Unknown",imei:i[5].response.split("\n")[1].trim()||"Unknown"},connection:{apn:i[7].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||i[12].response.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()||"Unknown",operatorState:L(i[8].response,i[16].response)||"Unknown",functionalityState:"1"===i[9].response.split("\n")[1].split(":")[1].trim()?"Enabled":"Disabled",networkType:P(i[13].response)||"No Signal",modemTemperature:Z(i[11].response)||"Unknown",accessTechnology:i[2].response.split("\n")[1].split(":")[1].split(",")[3].trim()||"Unknown"},dataTransmission:{carrierAggregation:(null===(e=i[13].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g))||void 0===e?void 0:e.length)>1?"Multi":"Inactive",bandwidth:H(i[13].response,P(i[13].response))||"Unknown",connectedBands:_(i[13].response)||"Unknown",signalStrength:F(i[14].response)||"Unknown",mimoLayers:ei(i[14].response)||"Unknown"},cellularInfo:{cellId:Q(i[10].response,P(i[13].response))||"Unknown",trackingAreaCode:q(i[10].response,P(i[13].response))||"Unknown",physicalCellId:Y(i[13].response,P(i[13].response)),earfcn:V(i[13].response),mcc:W(i[10].response,P(i[13].response))||"Unknown",mnc:K(i[10].response,P(i[13].response))||"Unknown",signalQuality:$(i[19].response)||"Unknown"},currentBands:{id:Array.from({length:null!==(t=null===(n=X(i[13].response))||void 0===n?void 0:n.length)&&void 0!==t?t:0},(e,s)=>s+1)||[1],bandNumber:X(i[13].response)||["Unknown"],earfcn:J(i[13].response),bandwidth:ee(i[13].response)||["Unknown"],pci:es(i[13].response,P(i[13].response))||["Unknown"],rsrp:en(i[13].response,P(i[13].response),i[10].response),rsrq:et(i[13].response,P(i[13].response),i[10].response)||["Unknown"],sinr:el(i[13].response,P(i[13].response),i[10].response)||["Unknown"]}};s(o)}catch(e){console.error("Error fetching home data:",e),s({simCard:{slot:"Unknown",state:"Not Inserted",provider:"Unknown",phoneNumber:"Unknown",imsi:"Unknown",iccid:"Unknown",imei:"Unknown"},connection:{apn:"Unknown",operatorState:"Unknown",functionalityState:"Disabled",networkType:"No Signal",modemTemperature:"Unknown",accessTechnology:"Unknown"},dataTransmission:{carrierAggregation:"Inactive",connectedBands:"Unknown",signalStrength:"Unknown",mimoLayers:"Unknown"},cellularInfo:{cellId:"Unknown",trackingAreaCode:"Unknown",physicalCellId:"Unknown",earfcn:"Unknown",mnc:"Unknown",signalQuality:"Unknown"},currentBands:{id:[1],bandNumber:["Unknown"],earfcn:["Unknown"],bandwidth:["Unknown"],pci:["Unknown"],rsrp:["Unknown"],rsrq:["Unknown"],sinr:["Unknown"]}})}finally{a&&setTimeout(()=>{r(!1),o(!1)},300)}},[a]);return(0,l.useEffect)(()=>{d();let e=setInterval(d,n);return()=>clearInterval(e)},[d,n]),{data:e,isLoading:i,refresh:d}},ea=()=>{let[e,s]=(0,l.useState)("Unknown"),[n,t]=(0,l.useState)(!0),i=(0,l.useCallback)(async()=>{try{t(!0);let e=await fetch("/cgi-bin/home/check_net.sh"),n=await e.json();s("ACTIVE"===n.connection?"Connected":"Disconnected"),t(!1)}catch(e){console.error("Error fetching data connection state:",e),s("Unknown"),t(!1)}},[]);return(0,l.useEffect)(()=>{i();let e=setInterval(i,3e4);return()=>clearInterval(e)},[i]),{dataConnectionState:e,refresh:(0,l.useCallback)(()=>{i()},[i]),isStateLoading:n}};let eo=e=>{if(0===e)return"0 Bytes";let s=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,s)).toFixed(2))+" "+["Bytes","KB","MB","GB","TB"][s]};var ec=()=>{let[e,s]=(0,l.useState)("0 Bytes"),[n,t]=(0,l.useState)("0 Bytes"),i=(0,l.useCallback)(async()=>{try{let e=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(encodeURIComponent("AT+QGDCNT?;+QGDNRCNT?"))}),n=await e.json(),l=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[0]),i=parseInt(n.output.split("\n")[1].split(":")[1].split(",")[1]),r=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[0]),a=parseInt(n.output.split("\n")[3].split(":")[1].split(",")[1]);s(eo(i+r)),t(eo(l+a))}catch(e){console.error("Error fetching traffic stats:",e)}},[]);return(0,l.useEffect)(()=>{i();let e=setInterval(i,2e3);return()=>clearInterval(e)},[i]),{bytesSent:e,bytesReceived:n,refresh:(0,l.useCallback)(()=>{i()},[i])}},ed=()=>{let[e,s]=(0,l.useState)(!1),[n,t]=(0,l.useState)(null),i=(e,s)=>{let n=e.split("\n")[1].split(":")[1].split(",")[1].trim(),t=s.split("\n")[1].split(":")[1].split(",")[1].trim();return"1"===n||"1"===t?"Registered":"Not Registered"},r=(e,s)=>e.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()===s.split("\n")[1].split(":")[1].split(",")[2].replace(/"/g,"").trim()?"Enabled":"Disabled",a=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim();return s&&"1"===s||n&&"1"===n?"Connected":"Disconnected"},o=e=>{let s=e.split("\n")[1].split(":")[1].split(",").slice(0,4).map(e=>e.trim()),n=e.includes("NR5G"),t=null;if(n&&(t=e.split("\n")[2].split(":")[1].split(",").slice(0,4).map(e=>e.trim())),s&&s.length>0){let e=s.reduce((e,s)=>e+parseInt(s),0)/s.length;return n&&t&&t.length>0?(e+t.reduce((e,s)=>e+parseInt(s),0)/t.length)/2<-100?"Poor":"Good":e<-100?"Poor":"Good"}return"N/A"},c=e=>{let s=e.split("\n").filter(e=>e.startsWith("+QTEMP:")).map(e=>parseInt(e.split(":")[1].split(",")[1].replace(/"/g,"").trim())).filter(e=>e>=0&&e<99);return s.reduce((e,s)=>e+s,0)/s.length<50?"Normal":"High"},d=e=>{let s=e.split("\n")[1].split(":")[1].split(",")[1].trim(),n=e.split("\n")[2].split(":")[1].split(",")[1].trim(),t=e.split("\n")[3].split(":")[1].split(",")[1].trim(),l=["0"!==s?"".concat(s):null,"0"!==n?"".concat(n):null,"0"!==t?"".concat(t):null].filter(Boolean);return l.length>0?l.join(", "):"None"};return{isRunningDiagnostics:e,runDiagnosticsData:n,startDiagnostics:async()=>{s(!0);try{let e=await fetch("/cgi-bin/fetch_data.sh?set=6"),s=await e.json();console.log("Diagnostics data:",s);let n={netRegistration:i(s[0].response,s[1].response),simState:s[2].response.split("\n")[1].split(":")[1].trim(),manualAPN:r(s[3].response,s[4].response),wanIP:a(s[5].response),cellSignal:o(s[6].response),modemTemp:c(s[7].response),netReject:d(s[8].response)};return t(n),n}catch(e){throw console.error("Error running diagnostics:",e),e}finally{s(!1)}}}},ep=()=>{let{toast:e}=(0,i.pm)(),{data:s,isLoading:n,refresh:r}=er(),{dataConnectionState:a,isStateLoading:o,refresh:c}=ea(),{isRunningDiagnostics:d,runDiagnosticsData:p,startDiagnostics:m}=ed(),{bytesSent:x,bytesReceived:h,refresh:f}=ec(),R=async()=>{try{let s=await fetch("/cgi-bin/settings/force-rerun.sh"),n=await s.json();if("success"===n.status)e({title:"Data Refreshed",description:"Data and scripts has been refreshed successfully"});else if("info"===n.status)e({title:"Data Refreshed",description:"Data refreshed successfully, but no scripts to restart."});else throw Error("Failed to restart scripts")}catch(s){console.error("Error rerunning scripts:",s),e({variant:"destructive",title:"Script Restart Failed",description:"Failed to restart the required scripts"})}},A=(0,l.useCallback)(async()=>{try{await Promise.all([r(),c(),f()]),await R()}catch(s){console.error("Error refreshing data:",s),e({variant:"destructive",title:"Refresh Failed",description:"Failed to refresh the data"})}},[r,c,f,e]),[T,I]=(0,l.useState)([]),U=async()=>{try{await m()}catch(e){console.error("Error running diagnostics:",e)}};return(0,l.useEffect)(()=>{p&&console.log("Diagnostics data updated:",p)},[p]),(0,l.useEffect)(()=>{if(s&&s.currentBands){var e;let n=null===(e=s.currentBands.id)||void 0===e?void 0:e.map((e,n)=>{var t,l,i,r,a,o,c;return{id:e,bandNumber:(null===(t=s.currentBands.bandNumber)||void 0===t?void 0:t[n])||"N/A",earfcn:(null===(l=s.currentBands.earfcn)||void 0===l?void 0:l[n])||"N/A",bandwidth:(null===(i=s.currentBands.bandwidth)||void 0===i?void 0:i[n])||"N/A",pci:(null===(r=s.currentBands.pci)||void 0===r?void 0:r[n])||"N/A",rsrp:(null===(a=s.currentBands.rsrp)||void 0===a?void 0:a[n])||"N/A",rsrq:(null===(o=s.currentBands.rsrq)||void 0===o?void 0:o[n])||"N/A",sinr:(null===(c=s.currentBands.sinr)||void 0===c?void 0:c[n])||"N/A"}});n&&I(n)}},[s]),(0,t.jsxs)("div",{className:"grid xl:gap-y-12 gap-y-8 gap-4",children:[(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,t.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Connection Summary"}),(0,t.jsx)(w.z,{variant:"ghost",size:"icon",className:"text-sm",onClick:A,children:(0,t.jsx)(b.Z,{className:"xl:size-6 size-5 text-blue-500",strokeWidth:3})})]}),(0,t.jsxs)(v.Vq,{children:[(0,t.jsx)(v.hg,{children:(0,t.jsxs)(w.z,{variant:"secondary",onClick:U,children:[(0,t.jsx)(y.Z,{className:"xl:size-6 size-5"}),(0,t.jsx)("span",{className:"hidden md:block",children:"Run Diagnostics"})]})}),!d&&(0,t.jsxs)(v.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(v.fK,{children:(0,t.jsx)(v.$N,{children:"Diagnostics Result"})}),(0,t.jsx)(v.Be,{children:"This is the result of the diagnostic test ran on your device."}),(0,t.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Network Registration "}),(null==p?void 0:p.netRegistration)==="Registered"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"U-SIM State"}),(null==p?void 0:p.simState)==="READY"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Manual APN"}),(null==p?void 0:p.manualAPN)==="Enabled"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"WAN IP"}),(null==p?void 0:p.wanIP)==="Connected"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Cellular Signal"}),(null==p?void 0:p.cellSignal)==="Good"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Modem Temperature"}),(null==p?void 0:p.modemTemp)==="Normal"?(0,t.jsx)(S.Z,{className:"text-green-500"}):(0,t.jsx)(k.Z,{className:"text-red-500"})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between mt-6",children:[(0,t.jsx)("h3",{className:"font-semibold",children:"Net Reject Cause"}),(null==p?void 0:p.netReject)==="None"?(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(S.Z,{className:"text-green-500"}),(0,t.jsx)("span",{children:"None"})]}):(0,t.jsxs)("div",{className:"flex space-x-2 items-center",children:[(0,t.jsx)(k.Z,{className:"text-red-500"}),(0,t.jsx)("span",{children:null==p?void 0:p.netReject})]})]})]})]}),d&&(0,t.jsxs)(v.cZ,{className:"max-w-xs md:max-w-lg",children:[(0,t.jsx)(v.fK,{children:(0,t.jsx)(v.$N,{children:"Running Diagnostics"})}),(0,t.jsx)("div",{className:"flex items-center justify-center my-4",children:(0,t.jsx)(C(),{color:"#6D28D9"})}),(0,t.jsx)(v.Be,{className:"text-center",children:"Please wait while we run diagnostics on your device."})]})]})]}),(0,t.jsxs)("div",{className:"grid 2xl:grid-cols-4 lg:grid-cols-2 grid-cols-1 gap-4",children:[(0,t.jsx)(u,{data:s,isLoading:n}),(0,t.jsx)(g,{data:s,isLoading:n,dataConnectionState:a,connectionStateLoading:o}),(0,t.jsx)(j,{data:s,isLoading:n,bytesSent:x,bytesReceived:h}),(0,t.jsx)(N,{data:s,isLoading:n})]})]}),(0,t.jsxs)("div",{className:"grid xl:gap-6 gap-4",children:[(0,t.jsx)("h1",{className:"xl:text-3xl text-lg font-bold",children:"Current Active Bands"}),(0,t.jsx)(z,{bands:T,isLoading:n})]})]})}},78580:function(e,s,n){"use strict";n.d(s,{d:function(){return o},z:function(){return c}});var t=n(20881),l=n(64149),i=n(54098),r=n(20116),a=n(90270);let o=(0,r.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=l.forwardRef((e,s)=>{let{className:n,variant:l,size:r,asChild:c=!1,...d}=e,p=c?i.g7:"button";return(0,t.jsx)(p,{className:(0,a.cn)(o({variant:l,size:r,className:n})),ref:s,...d})});c.displayName="Button"},94920:function(e,s,n){"use strict";n.d(s,{Ol:function(){return a},SZ:function(){return c},Zb:function(){return r},aY:function(){return d},eW:function(){return p},ll:function(){return o}});var t=n(20881),l=n(64149),i=n(90270);let r=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...l})});r.displayName="Card";let a=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("flex flex-col space-y-1.5 p-6",n),...l})});a.displayName="CardHeader";let o=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("h3",{ref:s,className:(0,i.cn)("font-semibold leading-none tracking-tight",n),...l})});o.displayName="CardTitle";let c=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("p",{ref:s,className:(0,i.cn)("text-sm text-muted-foreground",n),...l})});c.displayName="CardDescription";let d=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("p-6 pt-0",n),...l})});d.displayName="CardContent";let p=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)("div",{ref:s,className:(0,i.cn)("flex items-center p-6 pt-0",n),...l})});p.displayName="CardFooter"},30214:function(e,s,n){"use strict";n.d(s,{$N:function(){return x},Be:function(){return h},Vq:function(){return o},cZ:function(){return u},fK:function(){return m},hg:function(){return c}});var t=n(20881),l=n(64149),i=n(14491),r=n(35935),a=n(90270);let o=i.fC,c=i.xz,d=i.h_;i.x8;let p=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(i.aV,{ref:s,className:(0,a.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l})});p.displayName=i.aV.displayName;let u=l.forwardRef((e,s)=>{let{className:n,children:l,...o}=e;return(0,t.jsxs)(d,{children:[(0,t.jsx)(p,{}),(0,t.jsxs)(i.VY,{ref:s,className:(0,a.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n),...o,children:[l,(0,t.jsxs)(i.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,t.jsx)(r.Pxu,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});u.displayName=i.VY.displayName;let m=e=>{let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,a.cn)("flex flex-col space-y-1.5 text-center sm:text-left",s),...n})};m.displayName="DialogHeader";let x=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(i.Dx,{ref:s,className:(0,a.cn)("text-lg font-semibold leading-none tracking-tight",n),...l})});x.displayName=i.Dx.displayName;let h=l.forwardRef((e,s)=>{let{className:n,...l}=e;return(0,t.jsx)(i.dk,{ref:s,className:(0,a.cn)("text-sm text-muted-foreground",n),...l})});h.displayName=i.dk.displayName},88766:function(e,s,n){"use strict";n.d(s,{O:function(){return i}});var t=n(20881),l=n(90270);function i(e){let{className:s,...n}=e;return(0,t.jsx)("div",{className:(0,l.cn)("animate-pulse rounded-md bg-primary/10",s),...n})}},46646:function(e,s,n){"use strict";n.d(s,{pm:function(){return u}});var t=n(64149);let l=0,i=new Map,r=e=>{if(i.has(e))return;let s=setTimeout(()=>{i.delete(e),d({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,s)},a=(e,s)=>{switch(s.type){case"ADD_TOAST":return{...e,toasts:[s.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===s.toast.id?{...e,...s.toast}:e)};case"DISMISS_TOAST":{let{toastId:n}=s;return n?r(n):e.toasts.forEach(e=>{r(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===n||void 0===n?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===s.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==s.toastId)}}},o=[],c={toasts:[]};function d(e){c=a(c,e),o.forEach(e=>{e(c)})}function p(e){let{...s}=e,n=(l=(l+1)%Number.MAX_SAFE_INTEGER).toString(),t=()=>d({type:"DISMISS_TOAST",toastId:n});return d({type:"ADD_TOAST",toast:{...s,id:n,open:!0,onOpenChange:e=>{e||t()}}}),{id:n,dismiss:t,update:e=>d({type:"UPDATE_TOAST",toast:{...e,id:n}})}}function u(){let[e,s]=t.useState(c);return t.useEffect(()=>(o.push(s),()=>{let e=o.indexOf(s);e>-1&&o.splice(e,1)}),[e]),{...e,toast:p,dismiss:e=>d({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,s,n){"use strict";n.d(s,{cn:function(){return i}});var t=n(33958),l=n(61779);function i(){for(var e=arguments.length,s=Array(e),n=0;n{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:s,checkAuth:d}=(0,n.a)();return((0,o.useEffect)(()=>{d()||a.push("/login")},[]),s)?(0,r.jsx)(r.Fragment,{children:t}):null};var l=a(92093);let c=(0,l.Z)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,l.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),f=(0,l.Z)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),m=(0,l.Z)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);var h=a(78580),x=a(71036),p=a(16236);let g=(0,l.Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),y=(0,l.Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var b=a(89448),v=a(14491),j=a(35935),w=a(20116),N=a(90270);let k=v.fC,A=v.xz,R=v.x8,T=v.h_,C=o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.aV,{className:(0,N.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});C.displayName=v.aV.displayName;let S=(0,w.j)("fixed z-50 gap-4 bg-background p-6 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",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"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",right:"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"}},defaultVariants:{side:"right"}}),D=o.forwardRef((e,t)=>{let{side:a="right",className:s,children:n,...o}=e;return(0,r.jsxs)(T,{children:[(0,r.jsx)(C,{}),(0,r.jsxs)(v.VY,{ref:t,className:(0,N.cn)(S({side:a}),s),...o,children:[(0,r.jsxs)(v.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-secondary",children:[(0,r.jsx)(j.Pxu,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),n]})]})});D.displayName=v.VY.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.Dx,{ref:t,className:(0,N.cn)("text-lg font-semibold text-foreground",a),...s})}).displayName=v.Dx.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.dk,{ref:t,className:(0,N.cn)("text-sm text-muted-foreground",a),...s})}).displayName=v.dk.displayName;var _=a(46646),O=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:l}=(0,n.a)(),{setTheme:v}=(0,b.F)(),[j,w]=(0,o.useState)(!1),[N,T]=(0,o.useState)("192.168.224.1"),C=(0,_.pm)(),S=async e=>{try{let t=encodeURIComponent(e),a=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)});if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));return a}catch(e){throw console.error("AT Command error:",e),e}},O=async()=>{try{w(!0),await S("AT+QPOWD=1"),C.toast({title:"Rebooting device",description:"Please wait for the device to restart."}),setTimeout(()=>{C.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),C.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{w(!1)}},z=async()=>{try{await S("AT+COPS=2"),C.toast({title:"Reconnecting to network",description:"Please wait for the device to reconnect."}),await new Promise(e=>setTimeout(e,2e3)),await S("AT+COPS=0"),C.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){C.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}(0,o.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/settings/get-ip.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();T(t.br_lan_ip)}catch(e){console.error("Failed to fetch IP address:",e),C.toast({title:"Failed to fetch IP address",description:"Using default IP address",variant:"destructive"})}})()},[])};return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,r.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,r.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,r.jsxs)(s.default,{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,r.jsx)(c,{className:"h-6 w-6"}),(0,r.jsx)("h1",{children:"QuecManager"})]}),(0,r.jsx)(s.default,{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,r.jsx)(s.default,{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,r.jsx)(s.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,r.jsx)(s.default,{href:"/dashboard/experimental/quecwatch",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,r.jsx)(s.default,{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,r.jsxs)(k,{children:[(0,r.jsx)(A,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,r.jsx)(u,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,r.jsx)(D,{side:"left",children:(0,r.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,r.jsx)(R,{asChild:!0,children:(0,r.jsxs)(s.default,{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,r.jsx)(c,{className:"h-6 w-6"}),(0,r.jsx)("span",{children:"QuecManager"})]})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/settings/general",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,r.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,r.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,r.jsxs)(x.h_,{children:[(0,r.jsx)(x.$F,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"outline",size:"icon",children:[(0,r.jsx)(g,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,r.jsx)(y,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,r.jsxs)(x.AW,{align:"end",children:[(0,r.jsx)(x.Xi,{onClick:()=>v("light"),children:"Light"}),(0,r.jsx)(x.Xi,{onClick:()=>v("dark"),children:"Dark"}),(0,r.jsx)(x.Xi,{onClick:()=>v("system"),children:"System"})]})]})}),(0,r.jsxs)(x.h_,{children:[(0,r.jsx)(x.$F,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,r.jsx)(f,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,r.jsxs)(x.AW,{align:"end",children:[(0,r.jsx)(x.Ju,{children:"Options"}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/settings/general",children:"Settings"})}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)("a",{href:"/cgi-bin/luci",children:"Luci"})}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{onClick:z,children:"Reconnect"}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsxs)(p.aR,{children:[(0,r.jsx)(p.vW,{asChild:!0,children:(0,r.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,r.jsxs)(p._T,{children:[(0,r.jsxs)(p.fY,{children:[(0,r.jsx)(p.f$,{children:"Are you sure?"}),(0,r.jsx)(p.yT,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,r.jsxs)(p.xo,{children:[(0,r.jsx)(p.le,{children:"Cancel"}),(0,r.jsxs)(p.OL,{onClick:O,disabled:j,children:[(0,r.jsx)(m,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{onClick:l,children:"Logout"})]})]})]})]}),(0,r.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,r.jsx)(d,{children:t})})]})}},16236:function(e,t,a){"use strict";a.d(t,{aR:function(){return O},OL:function(){return X},le:function(){return Z},_T:function(){return P},yT:function(){return F},xo:function(){return I},fY:function(){return M},f$:function(){return V},vW:function(){return z}});var r=a(20881),s=a(64149),n=a(74873),o=a(83954),i=a(14491),d=a(64433),l=a(54098),c="AlertDialog",[u,f]=(0,n.b)(c,[i.p8]),m=(0,i.p8)(),h=e=>{let{__scopeAlertDialog:t,...a}=e,s=m(t);return(0,r.jsx)(i.fC,{...s,...a,modal:!0})};h.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.xz,{...n,...s,ref:t})});x.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:t,...a}=e,s=m(t);return(0,r.jsx)(i.h_,{...s,...a})};p.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.aV,{...n,...s,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,v]=u(y),j=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:n,...c}=e,u=m(a),f=s.useRef(null),h=(0,o.e)(t,f),x=s.useRef(null);return(0,r.jsx)(i.jm,{contentName:y,titleName:w,docsSlug:"alert-dialog",children:(0,r.jsx)(b,{scope:a,cancelRef:x,children:(0,r.jsxs)(i.VY,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:(0,d.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,r.jsx)(l.A4,{children:n}),(0,r.jsx)(S,{contentRef:f})]})})})});j.displayName=y;var w="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.Dx,{...n,...s,ref:t})});N.displayName=w;var k="AlertDialogDescription",A=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.dk,{...n,...s,ref:t})});A.displayName=k;var R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.x8,{...n,...s,ref:t})});R.displayName="AlertDialogAction";var T="AlertDialogCancel",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,{cancelRef:n}=v(T,a),d=m(a),l=(0,o.e)(t,n);return(0,r.jsx)(i.x8,{...d,...s,ref:l})});C.displayName=T;var S=e=>{let{contentRef:t}=e,a="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(k,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},D=a(90270),_=a(78580);let O=h,z=x,E=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(g,{className:(0,D.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});E.displayName=g.displayName;let P=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsxs)(p,{children:[(0,r.jsx)(E,{}),(0,r.jsx)(j,{ref:t,className:(0,D.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...s})]})});P.displayName=j.displayName;let M=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,D.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};M.displayName="AlertDialogHeader";let I=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,D.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};I.displayName="AlertDialogFooter";let V=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(N,{ref:t,className:(0,D.cn)("text-lg font-semibold",a),...s})});V.displayName=N.displayName;let F=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(A,{ref:t,className:(0,D.cn)("text-sm text-muted-foreground",a),...s})});F.displayName=A.displayName;let X=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(R,{ref:t,className:(0,D.cn)((0,_.d)(),a),...s})});X.displayName=R.displayName;let Z=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(C,{ref:t,className:(0,D.cn)((0,_.d)({variant:"outline"}),"mt-2 sm:mt-0",a),...s})});Z.displayName=C.displayName},78580:function(e,t,a){"use strict";a.d(t,{d:function(){return d},z:function(){return l}});var r=a(20881),s=a(64149),n=a(54098),o=a(20116),i=a(90270);let d=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,size:o,asChild:l=!1,...c}=e,u=l?n.g7:"button";return(0,r.jsx)(u,{className:(0,i.cn)(d({variant:s,size:o,className:a})),ref:t,...c})});l.displayName="Button"},71036:function(e,t,a){"use strict";a.d(t,{$F:function(){return l},AW:function(){return c},Ju:function(){return f},VD:function(){return m},Xi:function(){return u},h_:function(){return d}});var r=a(20881),s=a(64149),n=a(67293),o=a(35935),i=a(90270);let d=n.fC,l=n.xz;n.ZA,n.Uv,n.Tr,n.Ee,s.forwardRef((e,t)=>{let{className:a,inset:s,children:d,...l}=e;return(0,r.jsxs)(n.fF,{ref:t,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&&"pl-8",a),...l,children:[d,(0,r.jsx)(o.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=n.fF.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.tu,{ref:t,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=n.tu.displayName;let c=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...o}=e;return(0,r.jsx)(n.Uv,{children:(0,r.jsx)(n.VY,{ref:t,sideOffset:s,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});c.displayName=n.VY.displayName;let u=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,r.jsx)(n.ck,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",a),...o})});u.displayName=n.ck.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,checked:d,...l}=e;return(0,r.jsxs)(n.oC,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:d,...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.wU,{children:(0,r.jsx)(o.nQG,{className:"h-4 w-4"})})}),s]})}).displayName=n.oC.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,...d}=e;return(0,r.jsxs)(n.Rk,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.wU,{children:(0,r.jsx)(o.jXb,{className:"h-4 w-4 fill-current"})})}),s]})}).displayName=n.Rk.displayName;let f=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,r.jsx)(n.__,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...o})});f.displayName=n.__.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.Z0,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...s})});m.displayName=n.Z0.displayName},45320:function(e,t,a){"use strict";a.d(t,{a:function(){return n}});var r=a(64149),s=a(27525);function n(){let[e,t]=(0,r.useState)(!1),a=(0,s.useRouter)();function n(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function o(){localStorage.removeItem("session"),t(!1),a.push("/login")}function i(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(o(),!1):(t-e.lastActivity>3e5&&n(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{i()},[]),{isAuthenticated:e,login:async function(e){let r=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(r)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return n(e),t(!0),a.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:o,checkAuth:i}}},46646:function(e,t,a){"use strict";a.d(t,{pm:function(){return f}});var r=a(64149);let s=0,n=new Map,o=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function f(){let[e,t]=r.useState(l);return r.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,a){"use strict";a.d(t,{cn:function(){return n}});var r=a(33958),s=a(61779);function n(){for(var e=arguments.length,t=Array(e),a=0;ae.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var o={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"};let i=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:c,iconNode:u,...f}=e;return(0,r.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:a,strokeWidth:d?24*Number(i)/Number(s):i,className:n("lucide",l),...f},[...u.map(e=>{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(0,r.forwardRef)((a,o)=>{let{className:d,...l}=a;return(0,r.createElement)(i,{ref:o,iconNode:t,className:n("lucide-".concat(s(e)),d),...l})});return a.displayName="".concat(e),a}},27525:function(e,t,a){"use strict";var r=a(39886);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}})}},function(e){e.O(0,[792,4059,8714,217,5420,6509,4491,6136,8985,5330,1744],function(){return e(e.s=14658)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-c431058cda853dae.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-c431058cda853dae.js deleted file mode 100644 index 8e28cff..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/layout-c431058cda853dae.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[663],{14658:function(e,t,a){Promise.resolve().then(a.bind(a,65213))},65213:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return O}});var r=a(20881),s=a(26509),n=a(45320),o=a(64149),i=a(27525);let d=e=>{let{children:t}=e,a=(0,i.useRouter)(),{isAuthenticated:s,checkAuth:d}=(0,n.a)();return((0,o.useEffect)(()=>{d()||a.push("/login")},[]),s)?(0,r.jsx)(r.Fragment,{children:t}):null};var l=a(92093);let c=(0,l.Z)("RadioTower",[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9",key:"s0qx1y"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5",key:"1idnkw"}],["circle",{cx:"12",cy:"9",r:"2",key:"1092wv"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47",key:"ojru2q"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1",key:"rhi7fg"}],["path",{d:"M9.5 18h5",key:"mfy3pd"}],["path",{d:"m8 22 4-11 4 11",key:"25yftu"}]]),u=(0,l.Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]),f=(0,l.Z)("UserRound",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]),m=(0,l.Z)("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);var h=a(78580),x=a(71036),p=a(16236);let g=(0,l.Z)("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),y=(0,l.Z)("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);var b=a(89448),v=a(14491),j=a(35935),w=a(20116),N=a(90270);let k=v.fC,A=v.xz,R=v.x8,T=v.h_,C=o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.aV,{className:(0,N.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});C.displayName=v.aV.displayName;let S=(0,w.j)("fixed z-50 gap-4 bg-background p-6 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",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"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",right:"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"}},defaultVariants:{side:"right"}}),D=o.forwardRef((e,t)=>{let{side:a="right",className:s,children:n,...o}=e;return(0,r.jsxs)(T,{children:[(0,r.jsx)(C,{}),(0,r.jsxs)(v.VY,{ref:t,className:(0,N.cn)(S({side:a}),s),...o,children:[(0,r.jsxs)(v.x8,{className:"absolute right-4 top-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 data-[state=open]:bg-secondary",children:[(0,r.jsx)(j.Pxu,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),n]})]})});D.displayName=v.VY.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.Dx,{ref:t,className:(0,N.cn)("text-lg font-semibold text-foreground",a),...s})}).displayName=v.Dx.displayName,o.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(v.dk,{ref:t,className:(0,N.cn)("text-sm text-muted-foreground",a),...s})}).displayName=v.dk.displayName;var _=a(46646),O=e=>{let{children:t}=e,a=(0,i.usePathname)(),{logout:l}=(0,n.a)(),{setTheme:v}=(0,b.F)(),[j,w]=(0,o.useState)(!1),[N,T]=(0,o.useState)("192.168.224.1"),C=(0,_.pm)(),S=async e=>{try{let t=encodeURIComponent(e),a=await fetch("/cgi-bin/atinout_handler.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"command=".concat(t)});if(!a.ok)throw Error("HTTP error! status: ".concat(a.status));return a}catch(e){throw console.error("AT Command error:",e),e}},O=async()=>{try{w(!0),await S("AT+QPOWD=1"),C.toast({title:"Rebooting device",description:"Please wait for the device to restart."}),setTimeout(()=>{C.toast({title:"Device is now active",description:"The device has been rebooted successfully."})},9e4),setTimeout(()=>{window.location.reload()},92e3)}catch(e){console.error("Reboot error:",e),C.toast({title:"Failed to reboot device",description:"Please try again.",variant:"destructive"})}finally{w(!1)}},z=async()=>{try{await S("AT+COPS=2"),C.toast({title:"Reconnecting to network",description:"Please wait for the device to reconnect."}),await new Promise(e=>setTimeout(e,2e3)),await S("AT+COPS=0"),C.toast({title:"Reconnected to network",description:"The device has been reconnected successfully."}),await new Promise(e=>setTimeout(e,3e3)),window.location.reload()}catch(e){C.toast({title:"Failed to reconnect to network",description:"Please try again.",variant:"destructive"})}(0,o.useEffect)(()=>{(async()=>{try{let e=await fetch("/cgi-bin/settings/get-ip.sh");if(!e.ok)throw Error("HTTP error! status: ".concat(e.status));let t=await e.json();T(t.br_lan_ip)}catch(e){console.error("Failed to fetch IP address:",e),C.toast({title:"Failed to fetch IP address",description:"Using default IP address",variant:"destructive"})}})()},[])};return(0,r.jsxs)("div",{className:"flex min-h-screen w-full flex-col",children:[(0,r.jsxs)("header",{className:"sticky top-0 flex h-16 items-center gap-4 border-b bg-background px-4 md:px-6",children:[(0,r.jsxs)("nav",{className:"hidden flex-col gap-6 text-lg font-medium md:flex md:flex-row md:items-center md:gap-5 md:text-base lg:gap-6",children:[(0,r.jsxs)(s.default,{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold md:text-xl md:mr-8",children:[(0,r.jsx)(c,{className:"h-6 w-6"}),(0,r.jsx)("h1",{children:"QuecManager"})]}),(0,r.jsx)(s.default,{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"}),(0,r.jsx)(s.default,{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"}),(0,r.jsx)(s.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"}),(0,r.jsx)(s.default,{href:"/dashboard/experimental/",className:"".concat(a.includes("/dashboard/experimental/")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"}),(0,r.jsx)(s.default,{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})]}),(0,r.jsxs)(k,{children:[(0,r.jsx)(A,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"outline",size:"icon",className:"shrink-0 md:hidden",children:[(0,r.jsx)(u,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle navigation menu"})]})}),(0,r.jsx)(D,{side:"left",children:(0,r.jsxs)("nav",{className:"grid gap-6 text-lg font-medium",children:[(0,r.jsx)(R,{asChild:!0,children:(0,r.jsxs)(s.default,{href:"/dashboard/home/",className:"flex items-center gap-2 text-lg font-semibold",children:[(0,r.jsx)(c,{className:"h-6 w-6"}),(0,r.jsx)("span",{children:"QuecManager"})]})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/home/",className:"".concat("/dashboard/home/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Home"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/cell-settings/basic-settings/",className:"".concat(a.includes("/dashboard/cell-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Cellular"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/advanced-settings/connectivity",className:"".concat(a.includes("/dashboard/advanced-settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Advance"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/experimental/",className:"".concat("/dashboard/experimental/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Experimental"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/about/",className:"".concat("/dashboard/about/"===a?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"About"})}),(0,r.jsx)(R,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/settings/general",className:"".concat(a.includes("/dashboard/settings")?"text-foreground":"text-muted-foreground"," transition-colors hover:text-foreground"),children:"Settings"})})]})})]}),(0,r.jsxs)("div",{className:"flex w-full items-center gap-4 md:ml-auto md:gap-2 lg:gap-4",children:[(0,r.jsx)("form",{className:"ml-auto flex-1 sm:flex-initial",children:(0,r.jsxs)(x.h_,{children:[(0,r.jsx)(x.$F,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"outline",size:"icon",children:[(0,r.jsx)(g,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,r.jsx)(y,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,r.jsxs)(x.AW,{align:"end",children:[(0,r.jsx)(x.Xi,{onClick:()=>v("light"),children:"Light"}),(0,r.jsx)(x.Xi,{onClick:()=>v("dark"),children:"Dark"}),(0,r.jsx)(x.Xi,{onClick:()=>v("system"),children:"System"})]})]})}),(0,r.jsxs)(x.h_,{children:[(0,r.jsx)(x.$F,{asChild:!0,children:(0,r.jsxs)(h.z,{variant:"secondary",size:"icon",className:"rounded-full",children:[(0,r.jsx)(f,{className:"h-5 w-5"}),(0,r.jsx)("span",{className:"sr-only",children:"Toggle user menu"})]})}),(0,r.jsxs)(x.AW,{align:"end",children:[(0,r.jsx)(x.Ju,{children:"Options"}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)(s.default,{href:"/dashboard/settings/general",children:"Settings"})}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)("a",{href:"/cgi-bin/luci",children:"Luci"})}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsx)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/discussions/new/choose",target:"_blank",children:"Support"})}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{onClick:z,children:"Reconnect"}),(0,r.jsx)(x.Xi,{asChild:!0,children:(0,r.jsxs)(p.aR,{children:[(0,r.jsx)(p.vW,{asChild:!0,children:(0,r.jsx)("button",{className:"relative flex w-full cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors hover:bg-accent hover:text-accent-foreground",children:"Reboot"})}),(0,r.jsxs)(p._T,{children:[(0,r.jsxs)(p.fY,{children:[(0,r.jsx)(p.f$,{children:"Are you sure?"}),(0,r.jsx)(p.yT,{children:"This will reboot your device. The connection will be lost temporarily. Please wait for the page to reload."})]}),(0,r.jsxs)(p.xo,{children:[(0,r.jsx)(p.le,{children:"Cancel"}),(0,r.jsxs)(p.OL,{onClick:O,disabled:j,children:[(0,r.jsx)(m,{className:"size-4"}),"Reboot Now"]})]})]})]})}),(0,r.jsx)(x.VD,{}),(0,r.jsx)(x.Xi,{onClick:l,children:"Logout"})]})]})]})]}),(0,r.jsx)("main",{className:"flex min-h-[calc(100vh_-_theme(spacing.16))] flex-1 flex-col gap-4 bg-muted/40 p-4 md:gap-8 md:p-10",children:(0,r.jsx)(d,{children:t})})]})}},16236:function(e,t,a){"use strict";a.d(t,{aR:function(){return O},OL:function(){return X},le:function(){return Z},_T:function(){return P},yT:function(){return F},xo:function(){return I},fY:function(){return M},f$:function(){return V},vW:function(){return z}});var r=a(20881),s=a(64149),n=a(74873),o=a(83954),i=a(14491),d=a(64433),l=a(54098),c="AlertDialog",[u,f]=(0,n.b)(c,[i.p8]),m=(0,i.p8)(),h=e=>{let{__scopeAlertDialog:t,...a}=e,s=m(t);return(0,r.jsx)(i.fC,{...s,...a,modal:!0})};h.displayName=c;var x=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.xz,{...n,...s,ref:t})});x.displayName="AlertDialogTrigger";var p=e=>{let{__scopeAlertDialog:t,...a}=e,s=m(t);return(0,r.jsx)(i.h_,{...s,...a})};p.displayName="AlertDialogPortal";var g=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.aV,{...n,...s,ref:t})});g.displayName="AlertDialogOverlay";var y="AlertDialogContent",[b,v]=u(y),j=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,children:n,...c}=e,u=m(a),f=s.useRef(null),h=(0,o.e)(t,f),x=s.useRef(null);return(0,r.jsx)(i.jm,{contentName:y,titleName:w,docsSlug:"alert-dialog",children:(0,r.jsx)(b,{scope:a,cancelRef:x,children:(0,r.jsxs)(i.VY,{role:"alertdialog",...u,...c,ref:h,onOpenAutoFocus:(0,d.M)(c.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=x.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,r.jsx)(l.A4,{children:n}),(0,r.jsx)(S,{contentRef:f})]})})})});j.displayName=y;var w="AlertDialogTitle",N=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.Dx,{...n,...s,ref:t})});N.displayName=w;var k="AlertDialogDescription",A=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.dk,{...n,...s,ref:t})});A.displayName=k;var R=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,n=m(a);return(0,r.jsx)(i.x8,{...n,...s,ref:t})});R.displayName="AlertDialogAction";var T="AlertDialogCancel",C=s.forwardRef((e,t)=>{let{__scopeAlertDialog:a,...s}=e,{cancelRef:n}=v(T,a),d=m(a),l=(0,o.e)(t,n);return(0,r.jsx)(i.x8,{...d,...s,ref:l})});C.displayName=T;var S=e=>{let{contentRef:t}=e,a="`".concat(y,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(y,"` by passing a `").concat(k,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(y,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return s.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},D=a(90270),_=a(78580);let O=h,z=x,E=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(g,{className:(0,D.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",a),...s,ref:t})});E.displayName=g.displayName;let P=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsxs)(p,{children:[(0,r.jsx)(E,{}),(0,r.jsx)(j,{ref:t,className:(0,D.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",a),...s})]})});P.displayName=j.displayName;let M=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,D.cn)("flex flex-col space-y-2 text-center sm:text-left",t),...a})};M.displayName="AlertDialogHeader";let I=e=>{let{className:t,...a}=e;return(0,r.jsx)("div",{className:(0,D.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...a})};I.displayName="AlertDialogFooter";let V=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(N,{ref:t,className:(0,D.cn)("text-lg font-semibold",a),...s})});V.displayName=N.displayName;let F=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(A,{ref:t,className:(0,D.cn)("text-sm text-muted-foreground",a),...s})});F.displayName=A.displayName;let X=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(R,{ref:t,className:(0,D.cn)((0,_.d)(),a),...s})});X.displayName=R.displayName;let Z=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(C,{ref:t,className:(0,D.cn)((0,_.d)({variant:"outline"}),"mt-2 sm:mt-0",a),...s})});Z.displayName=C.displayName},78580:function(e,t,a){"use strict";a.d(t,{d:function(){return d},z:function(){return l}});var r=a(20881),s=a(64149),n=a(54098),o=a(20116),i=a(90270);let d=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,size:o,asChild:l=!1,...c}=e,u=l?n.g7:"button";return(0,r.jsx)(u,{className:(0,i.cn)(d({variant:s,size:o,className:a})),ref:t,...c})});l.displayName="Button"},71036:function(e,t,a){"use strict";a.d(t,{$F:function(){return l},AW:function(){return c},Ju:function(){return f},VD:function(){return m},Xi:function(){return u},h_:function(){return d}});var r=a(20881),s=a(64149),n=a(67293),o=a(35935),i=a(90270);let d=n.fC,l=n.xz;n.ZA,n.Uv,n.Tr,n.Ee,s.forwardRef((e,t)=>{let{className:a,inset:s,children:d,...l}=e;return(0,r.jsxs)(n.fF,{ref:t,className:(0,i.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",s&&"pl-8",a),...l,children:[d,(0,r.jsx)(o.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=n.fF.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.tu,{ref:t,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=n.tu.displayName;let c=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...o}=e;return(0,r.jsx)(n.Uv,{children:(0,r.jsx)(n.VY,{ref:t,sideOffset:s,className:(0,i.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});c.displayName=n.VY.displayName;let u=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,r.jsx)(n.ck,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s&&"pl-8",a),...o})});u.displayName=n.ck.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,checked:d,...l}=e;return(0,r.jsxs)(n.oC,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:d,...l,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.wU,{children:(0,r.jsx)(o.nQG,{className:"h-4 w-4"})})}),s]})}).displayName=n.oC.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,...d}=e;return(0,r.jsxs)(n.Rk,{ref:t,className:(0,i.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...d,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(n.wU,{children:(0,r.jsx)(o.jXb,{className:"h-4 w-4 fill-current"})})}),s]})}).displayName=n.Rk.displayName;let f=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,r.jsx)(n.__,{ref:t,className:(0,i.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...o})});f.displayName=n.__.displayName;let m=s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,r.jsx)(n.Z0,{ref:t,className:(0,i.cn)("-mx-1 my-1 h-px bg-muted",a),...s})});m.displayName=n.Z0.displayName},45320:function(e,t,a){"use strict";a.d(t,{a:function(){return n}});var r=a(64149),s=a(27525);function n(){let[e,t]=(0,r.useState)(!1),a=(0,s.useRouter)();function n(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function o(){localStorage.removeItem("session"),t(!1),a.push("/login")}function i(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(o(),!1):(t-e.lastActivity>3e5&&n(e.token),!0)}();return t(e),e}return(0,r.useEffect)(()=>{i()},[]),{isAuthenticated:e,login:async function(e){let r=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(r)}),s=await e.json();if(console.log(s),"success"!==s.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return n(e),t(!0),a.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:o,checkAuth:i}}},46646:function(e,t,a){"use strict";a.d(t,{pm:function(){return f}});var r=a(64149);let s=0,n=new Map,o=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||r()}}}),{id:a,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function f(){let[e,t]=r.useState(l);return r.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,a){"use strict";a.d(t,{cn:function(){return n}});var r=a(33958),s=a(61779);function n(){for(var e=arguments.length,t=Array(e),a=0;ae.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),a=0;a!!e&&a.indexOf(e)===t).join(" ")};var o={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"};let i=(0,r.forwardRef)((e,t)=>{let{color:a="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:d,className:l="",children:c,iconNode:u,...f}=e;return(0,r.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:a,strokeWidth:d?24*Number(i)/Number(s):i,className:n("lucide",l),...f},[...u.map(e=>{let[t,a]=e;return(0,r.createElement)(t,a)}),...Array.isArray(c)?c:[c]])}),d=(e,t)=>{let a=(0,r.forwardRef)((a,o)=>{let{className:d,...l}=a;return(0,r.createElement)(i,{ref:o,iconNode:t,className:n("lucide-".concat(s(e)),d),...l})});return a.displayName="".concat(e),a}},27525:function(e,t,a){"use strict";var r=a(39886);a.o(r,"usePathname")&&a.d(t,{usePathname:function(){return r.usePathname}}),a.o(r,"useRouter")&&a.d(t,{useRouter:function(){return r.useRouter}})}},function(e){e.O(0,[792,59,714,217,420,509,491,136,985,330,744],function(){return e(e.s=14658)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/general/page-6cab875c8babc0d5.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/general/page-6cab875c8babc0d5.js deleted file mode 100644 index e42cb1b..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/general/page-6cab875c8babc0d5.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[291],{42355:function(e,t,r){Promise.resolve().then(r.bind(r,12825))},12825:function(e,t,r){"use strict";r.r(t);var s=r(20881),a=r(64149),n=r(94920),i=r(22989),o=r(78580),l=r(33335),d=r(46646),c=r(6120),u=r(88766);t.default=()=>{let[e,t]=(0,a.useState)({AT_port:"Unknown",AT_port_custom:"Unknown",data_refresh_rate:"Unknown"}),[r,f]=(0,a.useState)(!0),[p,m]=(0,a.useState)(null),[h,x]=(0,a.useState)(!1),g=(0,d.pm)(),v=async()=>{try{let e=await fetch("/cgi-bin/settings/fetch-config.sh"),r=await e.json();r.error?m(r.error):t(r)}catch(e){m("Failed to fetch configuration"),g.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Please report this issue",action:(0,s.jsx)(c.Z,{})})}finally{f(!1)}};(0,a.useEffect)(()=>{v()},[]);let j=async t=>{try{x(!0);let t=await fetch("/cgi-bin/settings/save-config.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await t.json();if(r.error)throw Error(r.error);g.toast({title:"Success",description:"Configuration saved successfully!"}),await v()}catch(e){g.toast({variant:"destructive",title:"Save failed",description:e instanceof Error?e.message:"Failed to save configuration",action:(0,s.jsx)(c.Z,{})})}finally{x(!1)}},y=Math.floor(parseInt(e.data_refresh_rate)/1e3);return p?(0,s.jsx)("div",{className:"grid gap-6 text-red-500",children:p}):(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"AT Port Main Interface"}),(0,s.jsx)(n.SZ,{children:"Change the main interface of the AT Port configuration."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j("AT_port")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsx)(l.I,{placeholder:"Main AT port interface",value:e.AT_port,onChange:e=>t(t=>({...t,AT_port:e.target.value}))})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("AT_port"),disabled:h,children:h?"Saving...":"Save"})})]}),(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"AT Port Custom Command Interface"}),(0,s.jsx)(n.SZ,{children:"Change the custom command interface of the AT Port configuration."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j("AT_port_custom")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsx)(l.I,{placeholder:"Custom AT port interface",value:e.AT_port_custom,onChange:e=>t(t=>({...t,AT_port_custom:e.target.value}))})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("AT_port_custom"),disabled:h,children:h?"Saving...":"Save"})})]}),(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"Data Refresh Rate"}),(0,s.jsx)(n.SZ,{children:"Change the frequency of data refresh rate. Slower refresh rate is recommended."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{className:"grid gap-1.5",onSubmit:e=>{e.preventDefault(),j("data_refresh_rate")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsxs)(i.Ph,{value:y.toString(),onValueChange:e=>t(t=>({...t,data_refresh_rate:(1e3*parseInt(e)).toString()})),children:[(0,s.jsx)(i.i4,{className:"w-[180px]",children:(0,s.jsx)(i.ki,{placeholder:"Select Refresh Rate"})}),(0,s.jsxs)(i.Bw,{children:[(0,s.jsx)(i.Ql,{value:"5",children:"5 seconds"}),(0,s.jsx)(i.Ql,{value:"10",children:"10 seconds"}),(0,s.jsx)(i.Ql,{value:"15",children:"15 seconds"}),(0,s.jsx)(i.Ql,{value:"20",children:"20 seconds"}),(0,s.jsx)(i.Ql,{value:"30",children:"30 seconds"}),(0,s.jsx)(i.Ql,{value:"60",children:"60 seconds"})]})]})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("data_refresh_rate"),disabled:h,children:h?"Saving...":"Save"})})]})]})}},6120:function(e,t,r){"use strict";var s=r(20881),a=r(78580),n=r(35935);t.Z=()=>(0,s.jsx)(a.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(n.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return d}});var s=r(20881),a=r(64149),n=r(54098),i=r(20116),o=r(90270);let l=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.g7:"button";return(0,s.jsx)(u,{className:(0,o.cn)(l({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return l}});var s=r(20881),a=r(64149),n=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var s=r(20881),a=r(64149),n=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},22989:function(e,t,r){"use strict";r.d(t,{Bw:function(){return m},DI:function(){return d},Ph:function(){return l},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return h}});var s=r(20881),a=r(64149),n=r(35935),i=r(62072),o=r(90270);let l=i.fC,d=i.ZA,c=i.B4,u=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,s.jsxs)(i.xz,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[a,(0,s.jsx)(i.JO,{asChild:!0,children:(0,s.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.u_,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.g8U,{})})});f.displayName=i.u_.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.$G,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.v4q,{})})});p.displayName=i.$G.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,position:n="popper",...l}=e;return(0,s.jsx)(i.h_,{children:(0,s.jsxs)(i.VY,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...l,children:[(0,s.jsx)(f,{}),(0,s.jsx)(i.l_,{className:(0,o.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,s.jsx)(p,{})]})})});m.displayName=i.VY.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...a})});h.displayName=i.__.displayName;let x=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,s.jsxs)(i.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.wU,{children:(0,s.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,s.jsx)(i.eT,{children:a})]})});x.displayName=i.ck.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=i.Z0.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var s=r(20881),a=r(90270);function n(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=o(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return n}});var s=r(33958),a=r(61779);function n(){for(var e=arguments.length,t=Array(e),r=0;r{let[e,t]=(0,a.useState)({AT_port:"Unknown",AT_port_custom:"Unknown",data_refresh_rate:"Unknown"}),[r,f]=(0,a.useState)(!0),[p,m]=(0,a.useState)(null),[h,x]=(0,a.useState)(!1),g=(0,d.pm)(),v=async()=>{try{let e=await fetch("/cgi-bin/settings/fetch-config.sh"),r=await e.json();r.error?m(r.error):t(r)}catch(e){m("Failed to fetch configuration"),g.toast({variant:"destructive",title:"Uh oh! Something went wrong.",description:"Please report this issue",action:(0,s.jsx)(c.Z,{})})}finally{f(!1)}};(0,a.useEffect)(()=>{v()},[]);let j=async t=>{try{x(!0);let t=await fetch("/cgi-bin/settings/save-config.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),r=await t.json();if(r.error)throw Error(r.error);g.toast({title:"Success",description:"Configuration saved successfully!"}),await v()}catch(e){g.toast({variant:"destructive",title:"Save failed",description:e instanceof Error?e.message:"Failed to save configuration",action:(0,s.jsx)(c.Z,{})})}finally{x(!1)}},y=Math.floor(parseInt(e.data_refresh_rate)/1e3);return p?(0,s.jsx)("div",{className:"grid gap-6 text-red-500",children:p}):(0,s.jsxs)("div",{className:"grid gap-6",children:[(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"AT Port Main Interface"}),(0,s.jsx)(n.SZ,{children:"Change the main interface of the AT Port configuration."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j("AT_port")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsx)(l.I,{placeholder:"Main AT port interface",value:e.AT_port,onChange:e=>t(t=>({...t,AT_port:e.target.value}))})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("AT_port"),disabled:h,children:h?"Saving...":"Save"})})]}),(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"AT Port Custom Command Interface"}),(0,s.jsx)(n.SZ,{children:"Change the custom command interface of the AT Port configuration."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault(),j("AT_port_custom")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsx)(l.I,{placeholder:"Custom AT port interface",value:e.AT_port_custom,onChange:e=>t(t=>({...t,AT_port_custom:e.target.value}))})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("AT_port_custom"),disabled:h,children:h?"Saving...":"Save"})})]}),(0,s.jsxs)(n.Zb,{children:[(0,s.jsxs)(n.Ol,{children:[(0,s.jsx)(n.ll,{children:"Data Refresh Rate"}),(0,s.jsx)(n.SZ,{children:"Change the frequency of data refresh rate. Slower refresh rate is recommended."})]}),(0,s.jsx)(n.aY,{children:(0,s.jsxs)("form",{className:"grid gap-1.5",onSubmit:e=>{e.preventDefault(),j("data_refresh_rate")},children:[r&&(0,s.jsx)(u.O,{className:"h-8"}),!r&&(0,s.jsxs)(i.Ph,{value:y.toString(),onValueChange:e=>t(t=>({...t,data_refresh_rate:(1e3*parseInt(e)).toString()})),children:[(0,s.jsx)(i.i4,{className:"w-[180px]",children:(0,s.jsx)(i.ki,{placeholder:"Select Refresh Rate"})}),(0,s.jsxs)(i.Bw,{children:[(0,s.jsx)(i.Ql,{value:"5",children:"5 seconds"}),(0,s.jsx)(i.Ql,{value:"10",children:"10 seconds"}),(0,s.jsx)(i.Ql,{value:"15",children:"15 seconds"}),(0,s.jsx)(i.Ql,{value:"20",children:"20 seconds"}),(0,s.jsx)(i.Ql,{value:"30",children:"30 seconds"}),(0,s.jsx)(i.Ql,{value:"60",children:"60 seconds"})]})]})]})}),(0,s.jsx)(n.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(o.z,{onClick:()=>j("data_refresh_rate"),disabled:h,children:h?"Saving...":"Save"})})]})]})}},6120:function(e,t,r){"use strict";var s=r(20881),a=r(78580),n=r(35935);t.Z=()=>(0,s.jsx)(a.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(n.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return d}});var s=r(20881),a=r(64149),n=r(54098),i=r(20116),o=r(90270);let l=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=a.forwardRef((e,t)=>{let{className:r,variant:a,size:i,asChild:d=!1,...c}=e,u=d?n.g7:"button";return(0,s.jsx)(u,{className:(0,o.cn)(l({variant:a,size:i,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return i},aY:function(){return c},eW:function(){return u},ll:function(){return l}});var s=r(20881),a=r(64149),n=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...a})});i.displayName="Card";let o=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex flex-col space-y-1.5 p-6",r),...a})});o.displayName="CardHeader";let l=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("h3",{ref:t,className:(0,n.cn)("font-semibold leading-none tracking-tight",r),...a})});l.displayName="CardTitle";let d=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("p",{ref:t,className:(0,n.cn)("text-sm text-muted-foreground",r),...a})});d.displayName="CardDescription";let c=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("p-6 pt-0",r),...a})});c.displayName="CardContent";let u=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)("div",{ref:t,className:(0,n.cn)("flex items-center p-6 pt-0",r),...a})});u.displayName="CardFooter"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var s=r(20881),a=r(64149),n=r(90270);let i=a.forwardRef((e,t)=>{let{className:r,type:a,...i}=e;return(0,s.jsx)("input",{type:a,className:(0,n.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},22989:function(e,t,r){"use strict";r.d(t,{Bw:function(){return m},DI:function(){return d},Ph:function(){return l},Ql:function(){return x},i4:function(){return u},ki:function(){return c},n5:function(){return h}});var s=r(20881),a=r(64149),n=r(35935),i=r(62072),o=r(90270);let l=i.fC,d=i.ZA,c=i.B4,u=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,s.jsxs)(i.xz,{ref:t,className:(0,o.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",r),...l,children:[a,(0,s.jsx)(i.JO,{asChild:!0,children:(0,s.jsx)(n.jnn,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let f=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.u_,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.g8U,{})})});f.displayName=i.u_.displayName;let p=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.$G,{ref:t,className:(0,o.cn)("flex cursor-default items-center justify-center py-1",r),...a,children:(0,s.jsx)(n.v4q,{})})});p.displayName=i.$G.displayName;let m=a.forwardRef((e,t)=>{let{className:r,children:a,position:n="popper",...l}=e;return(0,s.jsx)(i.h_,{children:(0,s.jsxs)(i.VY,{ref:t,className:(0,o.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:n,...l,children:[(0,s.jsx)(f,{}),(0,s.jsx)(i.l_,{className:(0,o.cn)("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:a}),(0,s.jsx)(p,{})]})})});m.displayName=i.VY.displayName;let h=a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",r),...a})});h.displayName=i.__.displayName;let x=a.forwardRef((e,t)=>{let{className:r,children:a,...l}=e;return(0,s.jsxs)(i.ck,{ref:t,className:(0,o.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...l,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.wU,{children:(0,s.jsx)(n.nQG,{className:"h-4 w-4"})})}),(0,s.jsx)(i.eT,{children:a})]})});x.displayName=i.ck.displayName,a.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(i.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...a})}).displayName=i.Z0.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return n}});var s=r(20881),a=r(90270);function n(e){let{className:t,...r}=e;return(0,s.jsx)("div",{className:(0,a.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let a=0,n=new Map,i=e=>{if(n.has(e))return;let t=setTimeout(()=>{n.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);n.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],d={toasts:[]};function c(e){d=o(d,e),l.forEach(e=>{e(d)})}function u(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:r});return c({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(d);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return n}});var s=r(33958),a=r(61779);function n(){for(var e=arguments.length,t=Array(e),r=0;r{let{children:t}=e,s=(0,r.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(n.default,{href:"/dashboard/settings/general",className:"".concat("/dashboard/settings/general/"===s?"font-semibold text-primary":"text-sm"),children:"General"}),(0,a.jsx)(n.default,{href:"/dashboard/settings/security",className:"".concat("/dashboard/settings/security/"===s?"font-semibold text-primary":"text-sm"),children:"Security"})]}),t]})]})}},27525:function(e,t,s){"use strict";var a=s(39886);s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}})}},function(e){e.O(0,[509,985,330,744],function(){return e(e.s=67238)}),_N_E=e.O()}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[813],{67238:function(e,t,s){Promise.resolve().then(s.bind(s,83746))},83746:function(e,t,s){"use strict";s.r(t);var a=s(20881);s(64149);var r=s(27525),n=s(26509);t.default=e=>{let{children:t}=e,s=(0,r.usePathname)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"mx-auto grid w-full max-w-6xl gap-2",children:(0,a.jsx)("h1",{className:"text-3xl font-semibold",children:"Settings"})}),(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-6xl items-start gap-6 md:grid-cols-[180px_1fr] lg:grid-cols-[250px_1fr]",children:[(0,a.jsxs)("nav",{className:"grid gap-4 text-sm text-muted-foreground","x-chunk":"dashboard-04-chunk-0",children:[(0,a.jsx)(n.default,{href:"/dashboard/settings/general",className:"".concat("/dashboard/settings/general/"===s?"font-semibold text-primary":"text-sm"),children:"General"}),(0,a.jsx)(n.default,{href:"/dashboard/settings/security",className:"".concat("/dashboard/settings/security/"===s?"font-semibold text-primary":"text-sm"),children:"Security"})]}),t]})]})}},27525:function(e,t,s){"use strict";var a=s(39886);s.o(a,"usePathname")&&s.d(t,{usePathname:function(){return a.usePathname}}),s.o(a,"useRouter")&&s.d(t,{useRouter:function(){return a.useRouter}})}},function(e){e.O(0,[6509,8985,5330,1744],function(){return e(e.s=67238)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-6739ce2ba07b3288.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-6739ce2ba07b3288.js new file mode 100644 index 0000000..f6aab9b --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-6739ce2ba07b3288.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1354],{2045:function(e,r,t){Promise.resolve().then(t.bind(t,27537))},27537:function(e,r,t){"use strict";t.r(r);var s=t(20881),n=t(64149),o=t(94920),a=t(78580),i=t(33335),d=t(46646);r.default=()=>{let{toast:e}=(0,d.pm)(),[r,t]=(0,n.useState)(!1),[l,c]=(0,n.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))}),t=await r.json();return"success"===t.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let r=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))}),t=await r.json();if("success"===t.state)e({title:"Success",description:"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error("Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zb,{children:[(0,s.jsxs)(o.Ol,{children:[(0,s.jsx)(o.ll,{children:"Change Device Password"}),(0,s.jsx)(o.SZ,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.aY,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(i.I,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(i.I,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(i.I,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(a.z,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},78580:function(e,r,t){"use strict";t.d(r,{d:function(){return d},z:function(){return l}});var s=t(20881),n=t(64149),o=t(54098),a=t(20116),i=t(90270);let d=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,r)=>{let{className:t,variant:n,size:a,asChild:l=!1,...c}=e,u=l?o.g7:"button";return(0,s.jsx)(u,{className:(0,i.cn)(d({variant:n,size:a,className:t})),ref:r,...c})});l.displayName="Button"},94920:function(e,r,t){"use strict";t.d(r,{Ol:function(){return i},SZ:function(){return l},Zb:function(){return a},aY:function(){return c},eW:function(){return u},ll:function(){return d}});var s=t(20881),n=t(64149),o=t(90270);let a=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});a.displayName="Card";let i=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...n})});i.displayName="CardHeader";let d=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let l=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...n})});l.displayName="CardDescription";let c=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},33335:function(e,r,t){"use strict";t.d(r,{I:function(){return a}});var s=t(20881),n=t(64149),o=t(90270);let a=n.forwardRef((e,r)=>{let{className:t,type:n,...a}=e;return(0,s.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a})});a.displayName="Input"},46646:function(e,r,t){"use strict";t.d(r,{pm:function(){return f}});var s=t(64149);let n=0,o=new Map,a=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},i=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?a(t):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(d.push(r),()=>{let e=d.indexOf(r);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,r,t){"use strict";t.d(r,{cn:function(){return o}});var s=t(33958),n=t(61779);function o(){for(var e=arguments.length,r=Array(e),t=0;t"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:i}=r,d=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==i?void 0:i[e];if(null===r)return null;let o=s(r)||s(n);return a[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return n(e,d,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...l}[r]):({...i,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},function(e){e.O(0,[4059,8985,5330,1744],function(){return e(e.s=2045)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-f721332948f82878.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-f721332948f82878.js deleted file mode 100644 index a5ee465..0000000 --- a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/dashboard/settings/security/page-f721332948f82878.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[354],{2045:function(e,r,t){Promise.resolve().then(t.bind(t,27537))},27537:function(e,r,t){"use strict";t.r(r);var s=t(20881),n=t(64149),o=t(94920),a=t(78580),i=t(33335),d=t(46646);r.default=()=>{let{toast:e}=(0,d.pm)(),[r,t]=(0,n.useState)(!1),[l,c]=(0,n.useState)({oldPassword:"",newPassword:"",confirmPassword:""}),u=async e=>{try{let r=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"password=".concat(encodeURIComponent(e))}),t=await r.json();return"success"===t.state}catch(e){return console.error("Password verification failed:",e),!1}},f=async r=>{r.preventDefault(),t(!0);try{if(!l.oldPassword||!l.newPassword||!l.confirmPassword)throw Error("All fields are required");if(l.newPassword!==l.confirmPassword)throw Error("New passwords don't match");if(l.newPassword.length<8)throw Error("New password must be at least 8 characters long");if(!await u(l.oldPassword))throw Error("Current password is incorrect");let r=await fetch("/cgi-bin/settings/change-password.sh",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"oldPassword=".concat(encodeURIComponent(l.oldPassword),"&newPassword=").concat(encodeURIComponent(l.newPassword))}),t=await r.json();if("success"===t.state)e({title:"Success",description:"Password changed successfully!"}),c({oldPassword:"",newPassword:"",confirmPassword:""});else throw Error("Failed to change password")}catch(r){e({title:"Error",description:r instanceof Error?r.message:"An unexpected error occurred",variant:"destructive"}),console.error("Password change failed:",r)}finally{t(!1)}},p=e=>{let{name:r,value:t}=e.target;c(e=>({...e,[r]:t}))};return(0,s.jsxs)(o.Zb,{children:[(0,s.jsxs)(o.Ol,{children:[(0,s.jsx)(o.ll,{children:"Change Device Password"}),(0,s.jsx)(o.SZ,{children:"This changes the password for the web interface and terminal access."})]}),(0,s.jsx)(o.aY,{children:(0,s.jsxs)("form",{onSubmit:f,className:"space-y-4",children:[(0,s.jsx)(i.I,{placeholder:"Old Password",type:"password",name:"oldPassword",value:l.oldPassword,onChange:p,"aria-label":"Old Password"}),(0,s.jsx)(i.I,{placeholder:"New Password",type:"password",name:"newPassword",value:l.newPassword,onChange:p,"aria-label":"New Password"}),(0,s.jsx)(i.I,{placeholder:"Confirm New Password",type:"password",name:"confirmPassword",value:l.confirmPassword,onChange:p,"aria-label":"Confirm New Password"})]})}),(0,s.jsx)(o.eW,{className:"border-t px-6 py-4",children:(0,s.jsx)(a.z,{type:"submit",onClick:e=>f(e),disabled:r,children:r?"Saving...":"Save"})})]})}},78580:function(e,r,t){"use strict";t.d(r,{d:function(){return d},z:function(){return l}});var s=t(20881),n=t(64149),o=t(54098),a=t(20116),i=t(90270);let d=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=n.forwardRef((e,r)=>{let{className:t,variant:n,size:a,asChild:l=!1,...c}=e,u=l?o.g7:"button";return(0,s.jsx)(u,{className:(0,i.cn)(d({variant:n,size:a,className:t})),ref:r,...c})});l.displayName="Button"},94920:function(e,r,t){"use strict";t.d(r,{Ol:function(){return i},SZ:function(){return l},Zb:function(){return a},aY:function(){return c},eW:function(){return u},ll:function(){return d}});var s=t(20881),n=t(64149),o=t(90270);let a=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("rounded-xl border bg-card text-card-foreground shadow",t),...n})});a.displayName="Card";let i=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex flex-col space-y-1.5 p-6",t),...n})});i.displayName="CardHeader";let d=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("h3",{ref:r,className:(0,o.cn)("font-semibold leading-none tracking-tight",t),...n})});d.displayName="CardTitle";let l=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("p",{ref:r,className:(0,o.cn)("text-sm text-muted-foreground",t),...n})});l.displayName="CardDescription";let c=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("p-6 pt-0",t),...n})});c.displayName="CardContent";let u=n.forwardRef((e,r)=>{let{className:t,...n}=e;return(0,s.jsx)("div",{ref:r,className:(0,o.cn)("flex items-center p-6 pt-0",t),...n})});u.displayName="CardFooter"},33335:function(e,r,t){"use strict";t.d(r,{I:function(){return a}});var s=t(20881),n=t(64149),o=t(90270);let a=n.forwardRef((e,r)=>{let{className:t,type:n,...a}=e;return(0,s.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...a})});a.displayName="Input"},46646:function(e,r,t){"use strict";t.d(r,{pm:function(){return f}});var s=t(64149);let n=0,o=new Map,a=e=>{if(o.has(e))return;let r=setTimeout(()=>{o.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,r)},i=(e,r)=>{switch(r.type){case"ADD_TOAST":return{...e,toasts:[r.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===r.toast.id?{...e,...r.toast}:e)};case"DISMISS_TOAST":{let{toastId:t}=r;return t?a(t):e.toasts.forEach(e=>{a(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===r.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==r.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...r}=e,t=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>c({type:"DISMISS_TOAST",toastId:t});return c({type:"ADD_TOAST",toast:{...r,id:t,open:!0,onOpenChange:e=>{e||s()}}}),{id:t,dismiss:s,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:t}})}}function f(){let[e,r]=s.useState(l);return s.useEffect(()=>(d.push(r),()=>{let e=d.indexOf(r);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,r,t){"use strict";t.d(r,{cn:function(){return o}});var s=t(33958),n=t(61779);function o(){for(var e=arguments.length,r=Array(e),t=0;t"boolean"==typeof e?"".concat(e):0===e?"0":e,n=function(){for(var e,r,t=0,s="";tt=>{var o;if((null==r?void 0:r.variants)==null)return n(e,null==t?void 0:t.class,null==t?void 0:t.className);let{variants:a,defaultVariants:i}=r,d=Object.keys(a).map(e=>{let r=null==t?void 0:t[e],n=null==i?void 0:i[e];if(null===r)return null;let o=s(r)||s(n);return a[e][o]}),l=t&&Object.entries(t).reduce((e,r)=>{let[t,s]=r;return void 0===s||(e[t]=s),e},{});return n(e,d,null==r?void 0:null===(o=r.compoundVariants)||void 0===o?void 0:o.reduce((e,r)=>{let{class:t,className:s,...n}=r;return Object.entries(n).every(e=>{let[r,t]=e;return Array.isArray(t)?t.includes({...i,...l}[r]):({...i,...l})[r]===t})?[...e,t,s]:e},[]),null==t?void 0:t.class,null==t?void 0:t.className)}}},function(e){e.O(0,[59,985,330,744],function(){return e(e.s=2045)}),_N_E=e.O()}]); \ No newline at end of file diff --git a/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-2ce10dc857bad7b2.js b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-2ce10dc857bad7b2.js new file mode 100644 index 0000000..951148f --- /dev/null +++ b/ipk-source/sdxpinn-quecmanager-beta/root/www/_next/static/chunks/app/layout-2ce10dc857bad7b2.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3185],{71517:function(e,t,r){Promise.resolve().then(r.t.bind(r,14589,23)),Promise.resolve().then(r.bind(r,40108)),Promise.resolve().then(r.bind(r,62357)),Promise.resolve().then(r.bind(r,78287))},40108:function(e,t,r){"use strict";r.d(t,{ThemeProvider:function(){return o}});var s=r(20881);r(64149);var a=r(89448);function o(e){let{children:t,...r}=e;return(0,s.jsx)(a.f,{...r,children:t})}},62357:function(e,t,r){"use strict";r.d(t,{Toaster:function(){return g}});var s=r(20881),a=r(46646),o=r(64149),i=r(35935),n=r(72919),d=r(20116),u=r(90270);let l=n.zt,c=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.l_,{ref:t,className:(0,u.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...a})});c.displayName=n.l_.displayName;let f=(0,d.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),p=o.forwardRef((e,t)=>{let{className:r,variant:a,...o}=e;return(0,s.jsx)(n.fC,{ref:t,className:(0,u.cn)(f({variant:a}),r),...o})});p.displayName=n.fC.displayName,o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.aU,{ref:t,className:(0,u.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...a})}).displayName=n.aU.displayName;let m=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.x8,{ref:t,className:(0,u.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...a,children:(0,s.jsx)(i.Pxu,{className:"h-4 w-4"})})});m.displayName=n.x8.displayName;let x=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.Dx,{ref:t,className:(0,u.cn)("text-sm font-semibold [&+div]:text-xs",r),...a})});x.displayName=n.Dx.displayName;let v=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.dk,{ref:t,className:(0,u.cn)("text-sm opacity-90",r),...a})});function g(){let{toasts:e}=(0,a.pm)();return(0,s.jsxs)(l,{children:[e.map(function(e){let{id:t,title:r,description:a,action:o,...i}=e;return(0,s.jsxs)(p,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[r&&(0,s.jsx)(x,{children:r}),a&&(0,s.jsx)(v,{children:a})]}),o,(0,s.jsx)(m,{})]},t)}),(0,s.jsx)(c,{})]})}v.displayName=n.dk.displayName},78287:function(e,t,r){"use strict";r.d(t,{TooltipProvider:function(){return n}});var s=r(20881),a=r(64149),o=r(37503),i=r(90270);let n=o.zt;o.fC,o.xz,a.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...n}=e;return(0,s.jsx)(o.VY,{ref:t,sideOffset:a,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=o.VY.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let a=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},n=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],u={toasts:[]};function l(e){u=n(u,e),d.forEach(e=>{e(u)})}function c(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(u);return s.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return o}});var s=r(33958),a=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;r{let{className:r,...a}=e;return(0,s.jsx)(n.l_,{ref:t,className:(0,u.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",r),...a})});c.displayName=n.l_.displayName;let f=(0,d.j)("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),p=o.forwardRef((e,t)=>{let{className:r,variant:a,...o}=e;return(0,s.jsx)(n.fC,{ref:t,className:(0,u.cn)(f({variant:a}),r),...o})});p.displayName=n.fC.displayName,o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.aU,{ref:t,className:(0,u.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-none focus:ring-1 focus:ring-ring disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",r),...a})}).displayName=n.aU.displayName;let m=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.x8,{ref:t,className:(0,u.cn)("absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",r),"toast-close":"",...a,children:(0,s.jsx)(i.Pxu,{className:"h-4 w-4"})})});m.displayName=n.x8.displayName;let x=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.Dx,{ref:t,className:(0,u.cn)("text-sm font-semibold [&+div]:text-xs",r),...a})});x.displayName=n.Dx.displayName;let v=o.forwardRef((e,t)=>{let{className:r,...a}=e;return(0,s.jsx)(n.dk,{ref:t,className:(0,u.cn)("text-sm opacity-90",r),...a})});function g(){let{toasts:e}=(0,a.pm)();return(0,s.jsxs)(l,{children:[e.map(function(e){let{id:t,title:r,description:a,action:o,...i}=e;return(0,s.jsxs)(p,{...i,children:[(0,s.jsxs)("div",{className:"grid gap-1",children:[r&&(0,s.jsx)(x,{children:r}),a&&(0,s.jsx)(v,{children:a})]}),o,(0,s.jsx)(m,{})]},t)}),(0,s.jsx)(c,{})]})}v.displayName=n.dk.displayName},78287:function(e,t,r){"use strict";r.d(t,{TooltipProvider:function(){return n}});var s=r(20881),a=r(64149),o=r(37503),i=r(90270);let n=o.zt;o.fC,o.xz,a.forwardRef((e,t)=>{let{className:r,sideOffset:a=4,...n}=e;return(0,s.jsx)(o.VY,{ref:t,sideOffset:a,className:(0,i.cn)("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=o.VY.displayName},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let a=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),l({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},n=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],u={toasts:[]};function l(e){u=n(u,e),d.forEach(e=>{e(u)})}function c(e){let{...t}=e,r=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>l({type:"DISMISS_TOAST",toastId:r});return l({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>l({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(u);return s.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:c,dismiss:e=>l({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return o}});var s=r(33958),a=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;r{let{toast:e}=(0,u.pm)(),[t,r]=(0,n.useState)(""),[f,m]=(0,n.useState)(""),{login:p}=(0,o.a)(),h=async e=>{e.preventDefault(),await p(t)||m("Invalid password")};return(0,s.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,s.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,s.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,s.jsxs)("form",{onSubmit:h,children:[(0,s.jsxs)("div",{className:"grid gap-8",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(c._,{htmlFor:"password",children:"Password"})}),(0,s.jsx)(l.I,{id:"password",type:"password",required:!0,value:t,onChange:e=>r(e.target.value)}),(0,s.jsx)(a.z,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,s.jsx)(d.Z,{})})},children:"Forgot your password?"})]}),(0,s.jsx)(a.z,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,s.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,s.jsx)("p",{children:f})})]})]})}),(0,s.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,s.jsx)(i.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},6120:function(e,t,r){"use strict";var s=r(20881),n=r(78580),o=r(35935);t.Z=()=>(0,s.jsx)(n.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(o.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return c}});var s=r(20881),n=r(64149),o=r(54098),i=r(20116),a=r(90270);let l=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:c=!1,...u}=e,d=c?o.g7:"button";return(0,s.jsx)(d,{className:(0,a.cn)(l({variant:n,size:i,className:r})),ref:t,...u})});c.displayName="Button"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var s=r(20881),n=r(64149),o=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return c}});var s=r(20881),n=r(64149),o=r(51212),i=r(20116),a=r(90270);let l=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(o.f,{ref:t,className:(0,a.cn)(l(),r),...n})});c.displayName=o.f.displayName},45320:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var s=r(64149),n=r(27525);function o(){let[e,t]=(0,s.useState)(!1),r=(0,n.useRouter)();function o(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function i(){localStorage.removeItem("session"),t(!1),r.push("/login")}function a(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(i(),!1):(t-e.lastActivity>3e5&&o(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{a()},[]),{isAuthenticated:e,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),n=await e.json();if(console.log(n),"success"!==n.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return o(e),t(!0),r.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:i,checkAuth:a}}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let n=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},a=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function u(e){c=a(c,e),l.forEach(e=>{e(c)})}function d(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(c);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return o}});var s=r(33958),n=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;r{let{toast:e}=(0,u.pm)(),[t,r]=(0,n.useState)(""),[f,m]=(0,n.useState)(""),{login:p}=(0,o.a)(),h=async e=>{e.preventDefault(),await p(t)||m("Invalid password")};return(0,s.jsxs)("div",{className:"w-full h-screen lg:grid lg:min-h-[600px] lg:grid-cols-2 gap-4 xl:min-h-[800px]",children:[(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsxs)("div",{className:"mx-auto grid w-[350px] gap-12",children:[(0,s.jsxs)("div",{className:"grid gap-2 text-center",children:[(0,s.jsx)("h1",{className:"text-3xl font-bold",children:"Login to QuecManager"}),(0,s.jsx)("p",{className:"text-balance text-muted-foreground",children:"Enter your password to login"})]}),(0,s.jsxs)("form",{onSubmit:h,children:[(0,s.jsxs)("div",{className:"grid gap-8",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)("div",{className:"flex items-center",children:(0,s.jsx)(c._,{htmlFor:"password",children:"Password"})}),(0,s.jsx)(l.I,{id:"password",type:"password",required:!0,value:t,onChange:e=>r(e.target.value)}),(0,s.jsx)(a.z,{variant:"link",type:"button",className:"ml-auto inline-block text-sm underline text-white",onClick:()=>{e({variant:"destructive",title:"Forgot your password?",description:"Use the toolkit script to create a new password.",action:(0,s.jsx)(d.Z,{})})},children:"Forgot your password?"})]}),(0,s.jsx)(a.z,{type:"submit",className:"w-full",children:"Login"})]}),f&&(0,s.jsx)("div",{className:"bg-rose-500 p-1 mt-2 rounded-md flex text-center justify-center items-center",children:(0,s.jsx)("p",{children:f})})]})]})}),(0,s.jsx)("div",{className:"hidden bg-muted lg:block",children:(0,s.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,s.jsx)(i.default,{src:"/login-logo.svg",alt:"Image",width:"1000",height:"1000",className:"h-[50%] w-[40%] object-contain"})})})]})}},6120:function(e,t,r){"use strict";var s=r(20881),n=r(78580),o=r(35935);t.Z=()=>(0,s.jsx)(n.z,{asChild:!0,variant:"outline",className:"ml-2",children:(0,s.jsxs)("a",{href:"https://github.com/iamromulan/quectel-rgmii-toolkit/tree/development-SDXPINN",children:[(0,s.jsx)(o.wGg,{className:"w-4 h-4 mr-2"}),"Get there!"]})})},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return l},z:function(){return c}});var s=r(20881),n=r(64149),o=r(54098),i=r(20116),a=r(90270);let l=(0,i.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),c=n.forwardRef((e,t)=>{let{className:r,variant:n,size:i,asChild:c=!1,...u}=e,d=c?o.g7:"button";return(0,s.jsx)(d,{className:(0,a.cn)(l({variant:n,size:i,className:r})),ref:t,...u})});c.displayName="Button"},33335:function(e,t,r){"use strict";r.d(t,{I:function(){return i}});var s=r(20881),n=r(64149),o=r(90270);let i=n.forwardRef((e,t)=>{let{className:r,type:n,...i}=e;return(0,s.jsx)("input",{type:n,className:(0,o.cn)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",r),ref:t,...i})});i.displayName="Input"},21501:function(e,t,r){"use strict";r.d(t,{_:function(){return c}});var s=r(20881),n=r(64149),o=r(51212),i=r(20116),a=r(90270);let l=(0,i.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,s.jsx)(o.f,{ref:t,className:(0,a.cn)(l(),r),...n})});c.displayName=o.f.displayName},45320:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});var s=r(64149),n=r(27525);function o(){let[e,t]=(0,s.useState)(!1),r=(0,n.useRouter)();function o(e){let t={token:e,lastActivity:Date.now(),expiresAt:Date.now()+18e5};localStorage.setItem("session",JSON.stringify(t))}function i(){localStorage.removeItem("session"),t(!1),r.push("/login")}function a(){let e=function(){let e=function(){let e=localStorage.getItem("session");if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}();if(!e)return!1;let t=Date.now();return t>e.expiresAt?(i(),!1):(t-e.lastActivity>3e5&&o(e.token),!0)}();return t(e),e}return(0,s.useEffect)(()=>{a()},[]),{isAuthenticated:e,login:async function(e){let s=encodeURIComponent(e);try{let e=await fetch("/cgi-bin/auth.sh",{method:"POST",headers:{"Content-Type":"application/json"},body:"password=".concat(s)}),n=await e.json();if(console.log(n),"success"!==n.state)return!1;{let e=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";return Array.from(crypto.getRandomValues(new Uint8Array(e))).map(e=>t[e%t.length]).join("")}();return o(e),t(!0),r.push("/dashboard/home"),!0}}catch(e){return console.error("Login error:",e),!1}},logout:i,checkAuth:a}}},46646:function(e,t,r){"use strict";r.d(t,{pm:function(){return f}});var s=r(64149);let n=0,o=new Map,i=e=>{if(o.has(e))return;let t=setTimeout(()=>{o.delete(e),u({type:"REMOVE_TOAST",toastId:e})},1e6);o.set(e,t)},a=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:r}=t;return r?i(r):e.toasts.forEach(e=>{i(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===r||void 0===r?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},l=[],c={toasts:[]};function u(e){c=a(c,e),l.forEach(e=>{e(c)})}function d(e){let{...t}=e,r=(n=(n+1)%Number.MAX_SAFE_INTEGER).toString(),s=()=>u({type:"DISMISS_TOAST",toastId:r});return u({type:"ADD_TOAST",toast:{...t,id:r,open:!0,onOpenChange:e=>{e||s()}}}),{id:r,dismiss:s,update:e=>u({type:"UPDATE_TOAST",toast:{...e,id:r}})}}function f(){let[e,t]=s.useState(c);return s.useEffect(()=>(l.push(t),()=>{let e=l.indexOf(t);e>-1&&l.splice(e,1)}),[e]),{...e,toast:d,dismiss:e=>u({type:"DISMISS_TOAST",toastId:e})}}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return o}});var s=r(33958),n=r(61779);function o(){for(var e=arguments.length,t=Array(e),r=0;r");return e}let b=n.forwardRef((e,t)=>{let{id:r,className:s,children:l,config:o,...i}=e,d=n.useId(),c="chart-".concat(r||d.replace(/:/g,""));return(0,a.jsx)(v.Provider,{value:{config:o},children:(0,a.jsxs)("div",{"data-chart":c,ref:t,className:(0,p.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",s),...i,children:[(0,a.jsx)(j,{id:c,config:o}),(0,a.jsx)(f.h,{children:l})]})})});b.displayName="Chart";let j=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(g).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null};function y(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}x.u,n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:i=!1,hideIndicator:d=!1,label:c,labelFormatter:u,labelClassName:m,formatter:f,color:x,nameKey:h,labelKey:g}=e,{config:v}=N(),b=n.useMemo(()=>{var e;if(i||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(g||t.dataKey||t.name||"value"),n=y(v,t,r),l=g||"string"!=typeof c?null==n?void 0:n.label:(null===(e=v[c])||void 0===e?void 0:e.label)||c;return u?(0,a.jsx)("div",{className:(0,p.cn)("font-medium",m),children:u(l,s)}):l?(0,a.jsx)("div",{className:(0,p.cn)("font-medium",m),children:l}):null},[c,u,s,i,m,v,g]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,p.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:b,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(h||e.name||e.dataKey||"value"),n=y(v,e,r),s=x||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,p.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:f&&(null==e?void 0:e.value)!==void 0&&e.name?f(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!d&&(0,a.jsx)("div",{className:(0,p.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,p.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?b:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})}).displayName="ChartTooltip",h.D,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:i}=N();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,p.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=y(i,e,t);return(0,a.jsxs)("div",{className:(0,p.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend";var w=r(47657),k=r(35935),_=r(89448),R=r(71036);function C(){let{setTheme:e}=(0,_.F)();return(0,a.jsxs)(R.h_,{children:[(0,a.jsx)(R.$F,{asChild:!0,children:(0,a.jsxs)(u.z,{variant:"outline",size:"icon",children:[(0,a.jsx)(k.NWY,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(k.kLh,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(R.AW,{align:"end",children:[(0,a.jsx)(R.Xi,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(R.Xi,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(R.Xi,{onClick:()=>e("system"),children:"System"})]})]})}let S={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},z=(e,t)=>{let r=S[e];return Math.min(Math.max(Math.round((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*1e3)/10,0),100)},O=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function F(){var e,t,r;let[f,x]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[h,p]=(0,n.useState)(!0),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:O(t[0].response.match(/-?\d+/g)),rsrq:O(t[1].response.match(/-?\d+/g)),sinr:O(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",x(e),g.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{h&&p(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[h]);let v=[{activity:"rsrp",value:null!==f.rsrp?z("rsrp",f.rsrp):0,label:null!==f.rsrp?"".concat(f.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==f.rsrq?z("rsrq",f.rsrq):0,label:null!==f.rsrq?"".concat(f.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==f.sinr?z("sinr",f.sinr):0,label:null!==f.sinr?"".concat(f.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(d.Zb,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(d.Ol,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(d.ll,{children:"QuecManager Quick Stats"}),(0,a.jsx)(C,{})]})}),(0,a.jsxs)(d.aY,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.networkName}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.networkType}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:h?(0,a.jsx)(c.O,{className:"h-[140px] w-full"}):(0,a.jsx)(b,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(s.v,{margin:{left:0,right:0,top:0,bottom:10},data:v,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(l.K,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(o.B,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(i.$,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(d.eW,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=f.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=f.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=f.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(u.z,{asChild:!0,children:(0,a.jsxs)(m.default,{href:"/login",children:["Login to QuecManager",(0,a.jsx)(k.LZ3,{className:"w-4 h-4 ml-2"})]})})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),n=r(64149),s=r(54098),l=r(20116),o=r(90270);let i=(0,l.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return l},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),n=r(64149),s=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},71036:function(e,t,r){"use strict";r.d(t,{$F:function(){return d},AW:function(){return c},Ju:function(){return m},VD:function(){return f},Xi:function(){return u},h_:function(){return i}});var a=r(20881),n=r(64149),s=r(67293),l=r(35935),o=r(90270);let i=s.fC,d=s.xz;s.ZA,s.Uv,s.Tr,s.Ee,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.fF,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=s.fF.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.tu,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.tu.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.Uv,{children:(0,a.jsx)(s.VY,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.VY.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.ck,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.oC,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(l.nQG,{className:"h-4 w-4"})})}),n]})}).displayName=s.oC.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.Rk,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(l.jXb,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.Rk.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.__.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.Z0.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(20881),n=r(64149),s=r(48897),l=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(s.f,{ref:t,decorative:o,orientation:n,className:(0,l.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=s.f.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var a=r(20881),n=r(90270);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(33958),n=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;r");return e}let b=n.forwardRef((e,t)=>{let{id:r,className:s,children:l,config:o,...i}=e,d=n.useId(),c="chart-".concat(r||d.replace(/:/g,""));return(0,a.jsx)(v.Provider,{value:{config:o},children:(0,a.jsxs)("div",{"data-chart":c,ref:t,className:(0,p.cn)("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none",s),...i,children:[(0,a.jsx)(j,{id:c,config:o}),(0,a.jsx)(f.h,{children:l})]})})});b.displayName="Chart";let j=e=>{let{id:t,config:r}=e,n=Object.entries(r).filter(e=>{let[t,r]=e;return r.theme||r.color});return n.length?(0,a.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(g).map(e=>{let[r,a]=e;return"\n".concat(a," [data-chart=").concat(t,"] {\n").concat(n.map(e=>{var t;let[a,n]=e,s=(null===(t=n.theme)||void 0===t?void 0:t[r])||n.color;return s?" --color-".concat(a,": ").concat(s,";"):null}).join("\n"),"\n}\n")}).join("\n")}}):null};function y(e,t,r){if("object"!=typeof t||null===t)return;let a="payload"in t&&"object"==typeof t.payload&&null!==t.payload?t.payload:void 0,n=r;return r in t&&"string"==typeof t[r]?n=t[r]:a&&r in a&&"string"==typeof a[r]&&(n=a[r]),n in e?e[n]:e[r]}x.u,n.forwardRef((e,t)=>{let{active:r,payload:s,className:l,indicator:o="dot",hideLabel:i=!1,hideIndicator:d=!1,label:c,labelFormatter:u,labelClassName:m,formatter:f,color:x,nameKey:h,labelKey:g}=e,{config:v}=N(),b=n.useMemo(()=>{var e;if(i||!(null==s?void 0:s.length))return null;let[t]=s,r="".concat(g||t.dataKey||t.name||"value"),n=y(v,t,r),l=g||"string"!=typeof c?null==n?void 0:n.label:(null===(e=v[c])||void 0===e?void 0:e.label)||c;return u?(0,a.jsx)("div",{className:(0,p.cn)("font-medium",m),children:u(l,s)}):l?(0,a.jsx)("div",{className:(0,p.cn)("font-medium",m),children:l}):null},[c,u,s,i,m,v,g]);if(!r||!(null==s?void 0:s.length))return null;let j=1===s.length&&"dot"!==o;return(0,a.jsxs)("div",{ref:t,className:(0,p.cn)("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl",l),children:[j?null:b,(0,a.jsx)("div",{className:"grid gap-1.5",children:s.map((e,t)=>{let r="".concat(h||e.name||e.dataKey||"value"),n=y(v,e,r),s=x||e.payload.fill||e.color;return(0,a.jsx)("div",{className:(0,p.cn)("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===o&&"items-center"),children:f&&(null==e?void 0:e.value)!==void 0&&e.name?f(e.value,e.name,e,t,e.payload):(0,a.jsxs)(a.Fragment,{children:[(null==n?void 0:n.icon)?(0,a.jsx)(n.icon,{}):!d&&(0,a.jsx)("div",{className:(0,p.cn)("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":j&&"dashed"===o}),style:{"--color-bg":s,"--color-border":s}}),(0,a.jsxs)("div",{className:(0,p.cn)("flex flex-1 justify-between leading-none",j?"items-end":"items-center"),children:[(0,a.jsxs)("div",{className:"grid gap-1.5",children:[j?b:null,(0,a.jsx)("span",{className:"text-muted-foreground",children:(null==n?void 0:n.label)||e.name})]}),e.value&&(0,a.jsx)("span",{className:"font-mono font-medium tabular-nums text-foreground",children:e.value.toLocaleString()})]})]})},e.dataKey)})})]})}).displayName="ChartTooltip",h.D,n.forwardRef((e,t)=>{let{className:r,hideIcon:n=!1,payload:s,verticalAlign:l="bottom",nameKey:o}=e,{config:i}=N();return(null==s?void 0:s.length)?(0,a.jsx)("div",{ref:t,className:(0,p.cn)("flex items-center justify-center gap-4","top"===l?"pb-3":"pt-3",r),children:s.map(e=>{let t="".concat(o||e.dataKey||"value"),r=y(i,e,t);return(0,a.jsxs)("div",{className:(0,p.cn)("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!n?(0,a.jsx)(r.icon,{}):(0,a.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:e.color}}),null==r?void 0:r.label]},e.value)})}):null}).displayName="ChartLegend";var w=r(47657),k=r(35935),_=r(89448),R=r(71036);function C(){let{setTheme:e}=(0,_.F)();return(0,a.jsxs)(R.h_,{children:[(0,a.jsx)(R.$F,{asChild:!0,children:(0,a.jsxs)(u.z,{variant:"outline",size:"icon",children:[(0,a.jsx)(k.NWY,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,a.jsx)(k.kLh,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,a.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,a.jsxs)(R.AW,{align:"end",children:[(0,a.jsx)(R.Xi,{onClick:()=>e("light"),children:"Light"}),(0,a.jsx)(R.Xi,{onClick:()=>e("dark"),children:"Dark"}),(0,a.jsx)(R.Xi,{onClick:()=>e("system"),children:"System"})]})]})}let S={rsrp:{min:-140,max:-70},rsrq:{min:-20,max:-10},sinr:{min:0,max:20}},z=(e,t)=>{let r=S[e];return Math.min(Math.max(Math.round((Math.max(Math.min(t,r.max),r.min)-r.min)/(r.max-r.min)*1e3)/10,0),100)},O=e=>{if(!e)return null;let t=e.map(Number).filter(e=>-32768!==e&&5!==e&&-140!==e);return 0===t.length?null:Math.round(t.reduce((e,t)=>e+t,0)/t.length)};function F(){var e,t,r;let[f,x]=(0,n.useState)({rsrp:null,rsrq:null,sinr:null,networkType:"",bands:null,networkName:""}),[h,p]=(0,n.useState)(!0),g=(0,n.useRef)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/cgi-bin/fetch_data.sh?set=5"),t=await e.json();if(console.log(t),t){let e={rsrp:O(t[0].response.match(/-?\d+/g)),rsrq:O(t[1].response.match(/-?\d+/g)),sinr:O(t[2].response.match(/-?\d+/g)),networkType:"",bands:null,networkName:""};console.log(e);let r=t[3].response.match(/"LTE BAND \d+"|"NR5G BAND \d+"/g),a=null==r?void 0:r.some(e=>e.includes("LTE")),n=null==r?void 0:r.some(e=>e.includes("NR5G"));e.networkType=a&&n?"NR5G-NSA":a?"LTE":n?"NR5G-SA":"No Signal";let s=null==r?void 0:r.map(e=>e.includes("LTE")?"B".concat(e.match(/\d+/)):e.includes("NR5G")?"N".concat(e.split(" ")[2].replace(/"/g,"").trim()):void 0);e.bands=s?s.join(", "):"No Signal",e.networkName=t[4].response.split("\n")[1].split(":")[1].split(",")[1].replace(/"/g,"").trim()||"No Signal",x(e),g.current=e}}catch(e){console.error("Error fetching stats:",e)}finally{h&&p(!1)}};e();let t=setInterval(e,2e3);return()=>clearInterval(t)},[h]);let v=[{activity:"rsrp",value:null!==f.rsrp?z("rsrp",f.rsrp):0,label:null!==f.rsrp?"".concat(f.rsrp.toFixed(1)," dBm"):"No Signal",fill:"hsl(var(--chart-1))"},{activity:"rsrq",value:null!==f.rsrq?z("rsrq",f.rsrq):0,label:null!==f.rsrq?"".concat(f.rsrq.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-2))"},{activity:"sinr",value:null!==f.sinr?z("sinr",f.sinr):0,label:null!==f.sinr?"".concat(f.sinr.toFixed(1)," dB"):"No Signal",fill:"hsl(var(--chart-3))"}];return(0,a.jsxs)(d.Zb,{className:"xl:max-w-xl xl:w-[800px] max-w-sm",children:[(0,a.jsx)(d.Ol,{children:(0,a.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,a.jsx)(d.ll,{children:"QuecManager Quick Stats"}),(0,a.jsx)(C,{})]})}),(0,a.jsxs)(d.aY,{className:"flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-row justify-evenly items-center w-full p-2 border-t border-b",children:[h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.networkName}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.networkType}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsx)("div",{children:f.bands})]}),(0,a.jsx)("div",{className:"flex gap-4 xl:p-4 p-2 pb-2",children:h?(0,a.jsx)(c.O,{className:"h-[140px] w-full"}):(0,a.jsx)(b,{config:{sinr:{label:"sinr",color:"hsl(var(--chart-1))"},rsrp:{label:"rsrp",color:"hsl(var(--chart-2))"},rsrq:{label:"rsrq",color:"hsl(var(--chart-3))"}},className:"h-[140px] w-full",children:(0,a.jsxs)(s.v,{margin:{left:0,right:0,top:0,bottom:10},data:v,layout:"vertical",barSize:32,barGap:2,children:[(0,a.jsx)(l.K,{type:"number",dataKey:"value",hide:!0}),(0,a.jsx)(o.B,{dataKey:"activity",type:"category",tickLine:!1,tickMargin:4,axisLine:!1,className:"uppercase"}),(0,a.jsx)(i.$,{dataKey:"value",radius:5})]})})})]}),(0,a.jsxs)(d.eW,{className:"flex flex-col gap-4",children:[(0,a.jsx)("div",{className:"flex flex-row border-t border-b xl:p-4 p-2 w-full",children:(0,a.jsxs)("div",{className:"flex w-full items-center gap-2",children:[(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRP"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(e=f.rsrp)||void 0===e?void 0:e.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dBm"})]})]}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"RSRQ"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(t=f.rsrq)||void 0===t?void 0:t.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]}),(0,a.jsx)(w.Z,{orientation:"vertical",className:"mx-2 h-10 w-px"}),(0,a.jsxs)("div",{className:"grid flex-1 auto-rows-min gap-0.5",children:[(0,a.jsx)("div",{className:"text-xs text-muted-foreground",children:"SINR"}),h?(0,a.jsx)(c.O,{className:"h-8 w-24"}):(0,a.jsxs)("div",{className:"flex items-baseline gap-1 xl:text-2xl text-md font-bold tabular-nums leading-none",children:[null===(r=f.sinr)||void 0===r?void 0:r.toFixed(1),(0,a.jsx)("span",{className:"text-sm font-normal text-muted-foreground",children:"dB"})]})]})]})}),(0,a.jsx)(u.z,{asChild:!0,children:(0,a.jsxs)(m.default,{href:"/login",children:["Login to QuecManager",(0,a.jsx)(k.LZ3,{className:"w-4 h-4 ml-2"})]})})]})]})}},78580:function(e,t,r){"use strict";r.d(t,{d:function(){return i},z:function(){return d}});var a=r(20881),n=r(64149),s=r(54098),l=r(20116),o=r(90270);let i=(0,l.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),d=n.forwardRef((e,t)=>{let{className:r,variant:n,size:l,asChild:d=!1,...c}=e,u=d?s.g7:"button";return(0,a.jsx)(u,{className:(0,o.cn)(i({variant:n,size:l,className:r})),ref:t,...c})});d.displayName="Button"},94920:function(e,t,r){"use strict";r.d(t,{Ol:function(){return o},SZ:function(){return d},Zb:function(){return l},aY:function(){return c},eW:function(){return u},ll:function(){return i}});var a=r(20881),n=r(64149),s=r(90270);let l=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",r),...n})});l.displayName="Card";let o=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",r),...n})});o.displayName="CardHeader";let i=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("h3",{ref:t,className:(0,s.cn)("font-semibold leading-none tracking-tight",r),...n})});i.displayName="CardTitle";let d=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("p",{ref:t,className:(0,s.cn)("text-sm text-muted-foreground",r),...n})});d.displayName="CardDescription";let c=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("p-6 pt-0",r),...n})});c.displayName="CardContent";let u=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)("div",{ref:t,className:(0,s.cn)("flex items-center p-6 pt-0",r),...n})});u.displayName="CardFooter"},71036:function(e,t,r){"use strict";r.d(t,{$F:function(){return d},AW:function(){return c},Ju:function(){return m},VD:function(){return f},Xi:function(){return u},h_:function(){return i}});var a=r(20881),n=r(64149),s=r(67293),l=r(35935),o=r(90270);let i=s.fC,d=s.xz;s.ZA,s.Uv,s.Tr,s.Ee,n.forwardRef((e,t)=>{let{className:r,inset:n,children:i,...d}=e;return(0,a.jsxs)(s.fF,{ref:t,className:(0,o.cn)("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",n&&"pl-8",r),...d,children:[i,(0,a.jsx)(l.XCv,{className:"ml-auto h-4 w-4"})]})}).displayName=s.fF.displayName,n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.tu,{ref:t,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...n})}).displayName=s.tu.displayName;let c=n.forwardRef((e,t)=>{let{className:r,sideOffset:n=4,...l}=e;return(0,a.jsx)(s.Uv,{children:(0,a.jsx)(s.VY,{ref:t,sideOffset:n,className:(0,o.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r),...l})})});c.displayName=s.VY.displayName;let u=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.ck,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n&&"pl-8",r),...l})});u.displayName=s.ck.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,checked:i,...d}=e;return(0,a.jsxs)(s.oC,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),checked:i,...d,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(l.nQG,{className:"h-4 w-4"})})}),n]})}).displayName=s.oC.displayName,n.forwardRef((e,t)=>{let{className:r,children:n,...i}=e;return(0,a.jsxs)(s.Rk,{ref:t,className:(0,o.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...i,children:[(0,a.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,a.jsx)(s.wU,{children:(0,a.jsx)(l.jXb,{className:"h-4 w-4 fill-current"})})}),n]})}).displayName=s.Rk.displayName;let m=n.forwardRef((e,t)=>{let{className:r,inset:n,...l}=e;return(0,a.jsx)(s.__,{ref:t,className:(0,o.cn)("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",r),...l})});m.displayName=s.__.displayName;let f=n.forwardRef((e,t)=>{let{className:r,...n}=e;return(0,a.jsx)(s.Z0,{ref:t,className:(0,o.cn)("-mx-1 my-1 h-px bg-muted",r),...n})});f.displayName=s.Z0.displayName},47657:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var a=r(20881),n=r(64149),s=r(48897),l=r(90270);let o=n.forwardRef((e,t)=>{let{className:r,orientation:n="horizontal",decorative:o=!0,...i}=e;return(0,a.jsx)(s.f,{ref:t,decorative:o,orientation:n,className:(0,l.cn)("shrink-0 bg-border","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",r),...i})});o.displayName=s.f.displayName},88766:function(e,t,r){"use strict";r.d(t,{O:function(){return s}});var a=r(20881),n=r(90270);function s(e){let{className:t,...r}=e;return(0,a.jsx)("div",{className:(0,n.cn)("animate-pulse rounded-md bg-primary/10",t),...r})}},90270:function(e,t,r){"use strict";r.d(t,{cn:function(){return s}});var a=r(33958),n=r(61779);function s(){for(var e=arguments.length,t=Array(e),r=0;rp||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if("function"==typeof en&&er(e),ea&&"function"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eX(n):""}function eJ(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX("Lazy");case 13:return eX("Suspense");case 19:return eX("SuspenseList");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var e0=Symbol.for("react.client.reference");function e1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e2(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e2(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\n"\\]/g;function e5(e){return e.replace(e8,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e7(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e1(t)):e.value!==""+e1(t)&&(e.value=""+e1(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e1(i):e.removeAttribute("name")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+e1(n):"",t=null!=t?""+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function te(e,t,n){"number"===t&&e6(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tc(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ts.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tf(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case"input":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e5(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tj=1<<32-ei(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if("function"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;na?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&"object"==typeof u&&"function"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status="fulfilled",c.value=r;for(var e=0;e title"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case"link":var a=cE("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&"function"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50=uH),uY=!1;function uX(e,t){switch(e){case"keyup":return -1!==uj.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uG(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uZ=!1,uJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uJ[e.type]:"textarea"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,"onChange")).length&&(n=new i3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if("change"===e)return t}var u5=!1;if(e$){if(e$){var u7="oninput"in document;if(!u7){var u9=document.createElement("div");u9.setAttribute("oninput","return;"),u7="function"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sc=e$&&"documentMode"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r="selectionStart"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,"onSelect")).length&&(t=new i3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sy={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),"TransitionEvent"in window||delete sy.transitionend.transition);var sw=sk("animationend"),sS=sk("animationiteration"),sC=sk("animationstart"),sE=sk("transitionend"),sx=new Map,sz="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN title"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;ap||(e.current=d[p],d[p]=null,p--)}function g(e,t){d[++p]=e.current,e.current=t}var y=Symbol.for("react.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),E=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),L=Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen"),F=Symbol.for("react.legacy_hidden"),M=Symbol.for("react.cache");Symbol.for("react.tracing_marker");var O=Symbol.iterator;function R(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D=m(null),A=m(null),I=m(null),U=m(null),B={$$typeof:E,_currentValue:null,_currentValue2:null,_threadCount:0,Provider:null,Consumer:null};function V(e,t){switch(g(I,t),g(A,e),g(D,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?s2(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=s3(e=s2(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}h(D),g(D,t)}function Q(){h(D),h(A),h(I)}function $(e){null!==e.memoizedState&&g(U,e);var t=D.current,n=s3(t,e.type);t!==n&&(g(A,e),g(D,n))}function j(e){A.current===e&&(h(D),h(A)),U.current===e&&(h(U),B._currentValue=null)}var W=a.unstable_scheduleCallback,H=a.unstable_cancelCallback,q=a.unstable_shouldYield,K=a.unstable_requestPaint,Y=a.unstable_now,X=a.unstable_getCurrentPriorityLevel,G=a.unstable_ImmediatePriority,Z=a.unstable_UserBlockingPriority,J=a.unstable_NormalPriority,ee=a.unstable_LowPriority,et=a.unstable_IdlePriority,en=a.log,er=a.unstable_setDisableYieldValue,el=null,ea=null;function eo(e){if("function"==typeof en&&er(e),ea&&"function"==typeof ea.setStrictMode)try{ea.setStrictMode(el,e)}catch(e){}}var ei=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(eu(e)/es|0)|0},eu=Math.log,es=Math.LN2,ec=128,ef=4194304;function ed(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ep(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes;e=e.pingedLanes;var a=134217727&n;return 0!==a?0!=(n=a&~l)?r=ed(n):0!=(e&=a)&&(r=ed(e)):0!=(n&=~l)?r=ed(n):0!==e&&(r=ed(e)),0===r?0:0!==t&&t!==r&&0==(t&l)&&((l=r&-r)>=(e=t&-t)||32===l&&0!=(4194176&e))?t:r}function em(e,t){return e.errorRecoveryDisabledLanes&t?0:0!=(e=-536870913&e.pendingLanes)?e:536870912&e?536870912:0}function eh(){var e=ec;return 0==(4194176&(ec<<=1))&&(ec=128),e}function eg(){var e=ef;return 0==(62914560&(ef<<=1))&&(ef=4194304),e}function ey(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ev(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ei(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function eb(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ei(n),l=1<l||u[r]!==s[l]){var c="\n"+u[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{eG=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?eX(n):""}function eJ(e){try{var t="";do t+=function(e){switch(e.tag){case 26:case 27:case 5:return eX(e.type);case 16:return eX("Lazy");case 13:return eX("Suspense");case 19:return eX("SuspenseList");case 0:case 2:case 15:return e=eZ(e.type,!1);case 11:return e=eZ(e.type.render,!1);case 1:return e=eZ(e.type,!0);default:return""}}(e),e=e.return;while(e);return t}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var e0=Symbol.for("react.client.reference");function e1(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function e2(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function e3(e){e._valueTracker||(e._valueTracker=function(e){var t=e2(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function e4(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e2(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function e6(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var e8=/[\n"\\]/g;function e5(e){return e.replace(e8,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function e7(e,t,n,r,l,a,o,i){e.name="",null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+e1(t)):e.value!==""+e1(t)&&(e.value=""+e1(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?te(e,o,e1(t)):null!=n?te(e,o,e1(n)):null!=r&&e.removeAttribute("value"),null==l&&null!=a&&(e.defaultChecked=!!a),null!=l&&(e.checked=l&&"function"!=typeof l&&"symbol"!=typeof l),null!=i&&"function"!=typeof i&&"symbol"!=typeof i&&"boolean"!=typeof i?e.name=""+e1(i):e.removeAttribute("name")}function e9(e,t,n,r,l,a,o,i){if(null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||null!=t))return;n=null!=n?""+e1(n):"",t=null!=t?""+e1(t):n,i||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:l)&&"symbol"!=typeof r&&!!r,e.checked=i?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.name=o)}function te(e,t,n){"number"===t&&e6(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}var tt=Array.isArray;function tn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=iX.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}var to=ta;"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(to=function(e,t){return MSApp.execUnsafeLocalFunction(function(){return ta(e,t)})});var ti=to;function tu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType){n.nodeValue=t;return}}e.textContent=t}var ts=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tc(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||ts.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function tf(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var l in t)r=t[l],t.hasOwnProperty(l)&&n[l]!==r&&tc(e,l,r)}else for(var a in t)t.hasOwnProperty(a)&&tc(e,a,t[a])}function td(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tm=null;function th(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var tg=null,ty=null;function tv(e){var t=eO(e);if(t&&(e=t.stateNode)){var n=eD(e);switch(e=t.stateNode,t.type){case"input":if(e7(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+e5(""+t)+'"][type="radio"]'),t=0;t>=o,l-=o,tj=1<<32-ei(t)+l|n<h?(g=f,f=null):g=f.sibling;var y=p(l,f,i[h],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(l,f),o=a(y,o,h),null===c?s=y:c.sibling=y,c=y,f=g}if(h===i.length)return n(l,f),tZ&&tH(l,h),s;if(null===f){for(;hg?(y=h,h=null):y=h.sibling;var b=p(l,h,v.value,s);if(null===b){null===h&&(h=y);break}e&&h&&null===b.alternate&&t(l,h),o=a(b,o,g),null===f?c=b:f.sibling=b,f=b,h=y}if(v.done)return n(l,h),tZ&&tH(l,g),c;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,s))&&(o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return tZ&&tH(l,g),c}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=m(h,l,g,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),o=a(v,o,g),null===f?c=v:f.sibling=v,f=v);return e&&h.forEach(function(e){return t(l,e)}),tZ&&tH(l,g),c}(s,c,f,h);if("function"==typeof f.then)return u(s,c,nJ(f),h);if(f.$$typeof===E)return u(s,c,ai(s,f,h),h);n1(s,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==c&&6===c.tag?(n(s,c.sibling),(c=l(c,f)).return=s):(n(s,c),(c=i_(f,s.mode,h)).return=s),o(s=c)):n(s,c)}(u,s,c,f),nG=null,u}}var n4=n3(!0),n6=n3(!1),n8=m(null),n5=m(0);function n7(e,t){g(n5,e=oz),g(n8,t),oz=e|t.baseLanes}function n9(){g(n5,oz),g(n8,n8.current)}function re(){oz=n5.current,h(n8),h(n5)}var rt=m(null),rn=null;function rr(e){var t=e.alternate;g(ri,1&ri.current),g(rt,e),null===rn&&(null===t||null!==n8.current?rn=e:null!==t.memoizedState&&(rn=e))}function rl(e){if(22===e.tag){if(g(ri,ri.current),g(rt,e),null===rn){var t=e.alternate;null!==t&&null!==t.memoizedState&&(rn=e)}}else ra(e)}function ra(){g(ri,ri.current),g(rt,rt.current)}function ro(e){h(rt),rn===e&&(rn=null),h(ri)}var ri=m(0);function ru(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rs=s.ReactCurrentDispatcher,rc=s.ReactCurrentBatchConfig,rf=0,rd=null,rp=null,rm=null,rh=!1,rg=!1,ry=!1,rv=0,rb=0,rk=null,rw=0;function rS(){throw Error(i(321))}function rC(e,t){if(null===t)return!1;for(var n=0;na?a:8;var o=rc.transition,i={_callbacks:new Set};rc.transition=i,lf(e,!1,t,n);try{var u=l();if(null!==u&&"object"==typeof u&&"function"==typeof u.then){av(i,u);var s,c,f=(s=[],c={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},u.then(function(){c.status="fulfilled",c.value=r;for(var e=0;e title"))),sG(l,n,r),l[eE]=e,eI(l),n=l;break e;case"link":var a=cE("link","href",t).get(n+(r.href||""));if(a){for(var o=0;o",e=e.removeChild(e.firstChild);break;case"select":e="string"==typeof r.is?l.createElement("select",{is:r.is}):l.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"==typeof r.is?l.createElement(n,{is:r.is}):l.createElement(n)}}e[eE]=t,e[ex]=r;e:for(l=t.child;null!==l;){if(5===l.tag||6===l.tag)e.appendChild(l.stateNode);else if(4!==l.tag&&27!==l.tag&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===t)break;for(;null===l.sibling;){if(null===l.return||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(t.stateNode=e,sG(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break;case"img":e=!0;break;default:e=!1}e&&aC(t)}}return aP(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&aC(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=I.current,t9(t)){e:{if(e=t.stateNode,n=t.memoizedProps,e[eE]=t,(r=e.nodeValue!==n)&&null!==(l=tX))switch(l.tag){case 3:if(l=0!=(1&l.mode),sq(e.nodeValue,n,l),l){e=!1;break e}break;case 27:case 5:var a=0!=(1&l.mode);if(!0!==l.memoizedProps.suppressHydrationWarning&&sq(e.nodeValue,n,a),a){e=!1;break e}}e=r}e&&aC(t)}else(e=s1(e).createTextNode(r))[eE]=t,t.stateNode=e}return aP(t),null;case 13:if(ro(t),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(tZ&&null!==tG&&0!=(1&t.mode)&&0==(128&t.flags))ne(),nt(),t.flags|=384,l=!1;else if(l=t9(t),null!==r&&null!==r.dehydrated){if(null===e){if(!l)throw Error(i(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(i(317));l[eE]=t}else nt(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;aP(t),l=!1}else null!==tJ&&(o0(tJ),tJ=null),l=!0;if(!l)return 256&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=n,t;return n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(r=t.child,l=null,null!==r.alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(l=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==l&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ax(t,t.updateQueue),aP(t),null;case 4:return Q(),null===e&&sA(t.stateNode.containerInfo),aP(t),null;case 10:return an(t.type._context),aP(t),null;case 19:if(h(ri),null===(l=t.memoizedState))return aP(t),null;if(r=0!=(128&t.flags),null===(a=l.rendering)){if(r)az(l,!1);else{if(0!==oP||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=ru(e))){for(t.flags|=128,az(l,!1),e=a.updateQueue,t.updateQueue=e,ax(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)ix(n,e),n=n.sibling;return g(ri,1&ri.current|2),t.child}e=e.sibling}null!==l.tail&&Y()>oI&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}}else{if(!r){if(null!==(e=ru(a))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ax(t,e),az(l,!0),null===l.tail&&"hidden"===l.tailMode&&!a.alternate&&!tZ)return aP(t),null}else 2*Y()-l.renderingStartTime>oI&&536870912!==n&&(t.flags|=128,r=!0,az(l,!1),t.lanes=4194304)}l.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=l.last)?e.sibling=a:t.child=a,l.last=a)}if(null!==l.tail)return t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Y(),t.sibling=null,e=ri.current,g(ri,r?1&e|2:1&e),t;return aP(t),null;case 22:case 23:return ro(t),re(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(536870912&n)&&0==(128&t.flags)&&(aP(t),6&t.subtreeFlags&&(t.flags|=8192)):aP(t),null!==(n=t.updateQueue)&&ax(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&h(ab),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),an(ad),aP(t),null;case 25:return null}throw Error(i(156,t.tag))}(t.alternate,t,oz);if(null!==n){ow=n;return}if(null!==(t=t.sibling)){ow=t;return}ow=t=e}while(null!==t);0===oP&&(oP=5)}function is(e,t,n,r,l){var a=ek,o=ov.transition;try{ov.transition=null,ek=2,function(e,t,n,r,l,a){do id();while(null!==oj);if(0!=(6&ob))throw Error(i(327));var o,u=e.finishedWork,s=e.finishedLanes;if(null!==u){if(e.finishedWork=null,e.finishedLanes=0,u===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var c=u.lanes|u.childLanes;if(function(e,t,n){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0,t=e.entanglements;for(var l=e.expirationTimes,a=e.hiddenUpdates;0r&&(l=r,r=a,a=l),l=si(n,a);var o=si(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;nn?32:n;n=ov.transition;var l=ek;try{if(ov.transition=null,ek=r,null===oj)var a=!1;else{r=oq,oq=null;var o=oj,u=oW;if(oj=null,oW=0,0!=(6&ob))throw Error(i(331));var s=ob;if(ob|=4,of(o.current),ol(o,o.current,u,r),ob=s,nb(!1),ea&&"function"==typeof ea.onPostCommitFiberRoot)try{ea.onPostCommitFiberRoot(el,o)}catch(e){}a=!0}return a}finally{ek=l,ov.transition=n,ic(e,t)}}return!1}function ip(e,t,n){t=lL(e,t=lP(n,t),2),null!==(e=nO(e,t,2))&&(o2(e,2),nv(e))}function im(e,t,n){if(3===e.tag)ip(e,e,n);else for(;null!==t;){if(3===t.tag){ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===oQ||!oQ.has(r))){e=lT(t,e=lP(n,e),2),null!==(t=nO(t,e,2))&&(o2(t,2),nv(t));break}}t=t.return}}function ih(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new om;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(ox=!0,l.add(n),e=ig.bind(null,e,t,n),t.then(e,e))}function ig(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,2&ob?oR=!0:4&ob&&(oD=!0),ik(),ok===e&&(oS&n)===n&&(4===oP||3===oP&&(62914560&oS)===oS&&300>Y()-oA?0==(2&ob)&&o5(e,0):oT|=n),nv(e)}function iy(e,t){0===t&&(t=0==(1&e.mode)?2:eg()),null!==(e=ns(e,t))&&(o2(e,t),nv(e))}function iv(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),iy(e,n)}function ib(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),iy(e,n)}function ik(){if(50=uH),uY=!1;function uX(e,t){switch(e){case"keyup":return -1!==uj.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uG(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var uZ=!1,uJ={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function u0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!uJ[e.type]:"textarea"===t}function u1(e,t,n,r){tb(r),0<(t=sV(t,"onChange")).length&&(n=new i3("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var u2=null,u3=null;function u4(e){sM(e,0)}function u6(e){if(e4(eR(e)))return e}function u8(e,t){if("change"===e)return t}var u5=!1;if(e$){if(e$){var u7="oninput"in document;if(!u7){var u9=document.createElement("div");u9.setAttribute("oninput","return;"),u7="function"==typeof u9.oninput}r=u7}else r=!1;u5=r&&(!document.documentMode||9=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=so(r)}}function su(){for(var e=window,t=e6();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(n)e=t.contentWindow;else break;t=e6(e.document)}return t}function ss(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var sc=e$&&"documentMode"in document&&11>=document.documentMode,sf=null,sd=null,sp=null,sm=!1;function sh(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sm||null==sf||sf!==e6(r)||(r="selectionStart"in(r=sf)&&ss(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},sp&&nQ(sp,r)||(sp=r,0<(r=sV(sd,"onSelect")).length&&(t=new i3("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=sf)))}function sg(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sy={animationend:sg("Animation","AnimationEnd"),animationiteration:sg("Animation","AnimationIteration"),animationstart:sg("Animation","AnimationStart"),transitionend:sg("Transition","TransitionEnd")},sv={},sb={};function sk(e){if(sv[e])return sv[e];if(!sy[e])return e;var t,n=sy[e];for(t in n)if(n.hasOwnProperty(t)&&t in sb)return sv[e]=n[t];return e}e$&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete sy.animationend.animation,delete sy.animationiteration.animation,delete sy.animationstart.animation),"TransitionEvent"in window||delete sy.transitionend.transition);var sw=sk("animationend"),sS=sk("animationiteration"),sC=sk("animationstart"),sE=sk("transitionend"),sx=new Map,sz="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function sP(e,t){sx.set(e,t),eV(t,[e])}for(var sN=0;sN title"):null)}var cz=null;function cP(){}function cN(){if(this.count--,0===this.count){if(this.stylesheets)cL(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var c_=null;function cL(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,c_=new Map,t.forEach(cT,e),c_=null,cN.call(e))}function cT(e,t){if(!(4&t.state.loading)){var n=c_.get(e);if(n)var r=n.get(null);else{n=new Map,c_.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a