From 6236566a21a4b24533a37d791815bf528a33c5cd Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Tue, 14 Nov 2023 13:05:36 -0800 Subject: [PATCH] feat: update tabby ui (#783) --- ee/tabby-webserver/ui/404.html | 2 +- ...4055aa24a65.js => 197-f00b4479a1649cf2.js} | 0 .../static/chunks/286-453e01dda7220f79.js | 5 +++++ ...48ee9582229.js => 396-89319c375c83667c.js} | 0 .../static/chunks/519-eb23d0cddc431004.js | 5 ----- ...3ea4fa0e857.js => 576-75ac7546de3029d6.js} | 0 .../static/chunks/578-bb9110efa62af36b.js | 1 - ...a5307aba1d7.js => 590-758bf4c4ecd0fce8.js} | 2 +- ...63abcbf1d0b.js => 864-1cbecf03c470c9ba.js} | 18 ++++++++++----- ...850fea3dad7.js => 882-5574357230a12cf9.js} | 0 .../static/chunks/967-397eef0a372bae00.js | 1 - .../static/chunks/967-f02728ac0b1b01a8.js | 1 + .../(dashboard)/layout-81899020c101ed0e.js | 1 + .../(dashboard)/layout-fa47af1031c188bc.js | 1 - .../app/(dashboard)/page-1cc6ccaef036b0bc.js | 1 + .../app/(dashboard)/page-f2532ee8f924c8f9.js | 1 - ...586bbe50ec.js => page-71c1c89d46be9427.js} | 2 +- ...4a54.js => _not-found-f9b762a23cd314d6.js} | 2 +- ...b785e506.js => layout-7d7d333b8349675e.js} | 2 +- .../app/playground/page-7e940700d25a9a35.js | 1 + .../app/playground/page-dca3863ee8ac85ae.js | 1 - ...d8c76f.js => fd9d1056-6779f76bb208370f.js} | 0 ...1a6b57.js => main-app-ec730ea470aebf93.js} | 2 +- .../static/chunks/webpack-7f4514982162b5cb.js | 1 + .../static/chunks/webpack-c005aa6133da3a82.js | 1 - .../ui/_next/static/css/505009f5e2b4d0d6.css | 3 --- .../ui/_next/static/css/83506ffe28f4b91c.css | 3 +++ .../_buildManifest.js | 0 .../_ssgManifest.js | 0 ee/tabby-webserver/ui/index.html | 2 +- ee/tabby-webserver/ui/index.txt | 22 +++++++++---------- ee/tabby-webserver/ui/playground.html | 2 +- ee/tabby-webserver/ui/playground.txt | 18 +++++++-------- ee/tabby-webserver/ui/swagger.html | 2 +- ee/tabby-webserver/ui/swagger.txt | 18 +++++++-------- 35 files changed, 64 insertions(+), 57 deletions(-) rename ee/tabby-webserver/ui/_next/static/chunks/{197-660314055aa24a65.js => 197-f00b4479a1649cf2.js} (100%) create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/286-453e01dda7220f79.js rename ee/tabby-webserver/ui/_next/static/chunks/{396-28aae48ee9582229.js => 396-89319c375c83667c.js} (100%) delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/519-eb23d0cddc431004.js rename ee/tabby-webserver/ui/_next/static/chunks/{576-f90ae3ea4fa0e857.js => 576-75ac7546de3029d6.js} (100%) delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/578-bb9110efa62af36b.js rename ee/tabby-webserver/ui/_next/static/chunks/{864-bf315a5307aba1d7.js => 590-758bf4c4ecd0fce8.js} (99%) rename ee/tabby-webserver/ui/_next/static/chunks/{699-f948163abcbf1d0b.js => 864-1cbecf03c470c9ba.js} (81%) rename ee/tabby-webserver/ui/_next/static/chunks/{882-b5d5b850fea3dad7.js => 882-5574357230a12cf9.js} (100%) delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/967-397eef0a372bae00.js create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/967-f02728ac0b1b01a8.js create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/(dashboard)/layout-81899020c101ed0e.js delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/(dashboard)/layout-fa47af1031c188bc.js create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/(dashboard)/page-1cc6ccaef036b0bc.js delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/(dashboard)/page-f2532ee8f924c8f9.js rename ee/tabby-webserver/ui/_next/static/chunks/app/(dashboard)/swagger/{page-93a475586bbe50ec.js => page-71c1c89d46be9427.js} (60%) rename ee/tabby-webserver/ui/_next/static/chunks/app/{_not-found-58bcddf7b3e44a54.js => _not-found-f9b762a23cd314d6.js} (96%) rename ee/tabby-webserver/ui/_next/static/chunks/app/{layout-cc3c752bb785e506.js => layout-7d7d333b8349675e.js} (97%) create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/playground/page-7e940700d25a9a35.js delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/app/playground/page-dca3863ee8ac85ae.js rename ee/tabby-webserver/ui/_next/static/chunks/{fd9d1056-5dfc77aa37d8c76f.js => fd9d1056-6779f76bb208370f.js} (100%) rename ee/tabby-webserver/ui/_next/static/chunks/{main-app-65c258ee101a6b57.js => main-app-ec730ea470aebf93.js} (86%) create mode 100644 ee/tabby-webserver/ui/_next/static/chunks/webpack-7f4514982162b5cb.js delete mode 100644 ee/tabby-webserver/ui/_next/static/chunks/webpack-c005aa6133da3a82.js delete mode 100644 ee/tabby-webserver/ui/_next/static/css/505009f5e2b4d0d6.css create mode 100644 ee/tabby-webserver/ui/_next/static/css/83506ffe28f4b91c.css rename ee/tabby-webserver/ui/_next/static/{mygYwsh7qPUYsGaLZ_wSs => y8UTfVMfS3WRo-O_Ue2fm}/_buildManifest.js (100%) rename ee/tabby-webserver/ui/_next/static/{mygYwsh7qPUYsGaLZ_wSs => y8UTfVMfS3WRo-O_Ue2fm}/_ssgManifest.js (100%) diff --git a/ee/tabby-webserver/ui/404.html b/ee/tabby-webserver/ui/404.html index 4ec0df1db800..22187df0d013 100644 --- a/ee/tabby-webserver/ui/404.html +++ b/ee/tabby-webserver/ui/404.html @@ -1 +1 @@ -404: This page could not be found.Tabby

404

This page could not be found.

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

404

This page could not be found.

\ No newline at end of file diff --git a/ee/tabby-webserver/ui/_next/static/chunks/197-660314055aa24a65.js b/ee/tabby-webserver/ui/_next/static/chunks/197-f00b4479a1649cf2.js similarity index 100% rename from ee/tabby-webserver/ui/_next/static/chunks/197-660314055aa24a65.js rename to ee/tabby-webserver/ui/_next/static/chunks/197-f00b4479a1649cf2.js diff --git a/ee/tabby-webserver/ui/_next/static/chunks/286-453e01dda7220f79.js b/ee/tabby-webserver/ui/_next/static/chunks/286-453e01dda7220f79.js new file mode 100644 index 000000000000..2aeaa4ef350c --- /dev/null +++ b/ee/tabby-webserver/ui/_next/static/chunks/286-453e01dda7220f79.js @@ -0,0 +1,5 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[286],{85859:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,a={},i=0,u=function(e){return e&&(e.host||u(e.parentNode))},l=function(e,t,n,l){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=u(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});a[n]||(a[n]=new WeakMap);var s=a[n],d=[],f=new Set,p=new Set(c),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};c.forEach(v);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else{var t=e.getAttribute(l),a=null!==t&&"false"!==t,i=(r.get(e)||0)+1,u=(s.get(e)||0)+1;r.set(e,i),s.set(e,u),d.push(e),1===i&&a&&o.set(e,!0),1===u&&e.setAttribute(n,"true"),a||e.setAttribute(l,"true")}})};return m(t),f.clear(),i++,function(){d.forEach(function(e){var t=r.get(e)-1,a=s.get(e)-1;r.set(e,t),s.set(e,a),t||(o.has(e)||e.removeAttribute(l),o.delete(e)),a||e.removeAttribute(n)}),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),l(r,o,n,"aria-hidden")):function(){return null}}},17552:function(e,t,n){n.d(t,{Z:function(){return j}});var r,o,a,i,u,l,c=n(50044),s=n(2265),d="right-scroll-bar-position",f="width-before-scroll-bar",p=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),a=[],i=!1,u={read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=o(e,i);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){i=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,c.pi)({async:!0,ssr:!1},r),u),v=function(){},m=s.forwardRef(function(e,t){var n,r,o,a=s.useRef(null),i=s.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),u=i[0],l=i[1],d=e.forwardProps,f=e.children,m=e.className,h=e.removeScrollBar,g=e.enabled,E=e.shards,y=e.sideCar,b=e.noIsolation,w=e.inert,C=e.allowPinchZoom,D=e.as,R=void 0===D?"div":D,T=(0,c._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),O=(n=[a,t],r=function(e){return n.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(o=(0,s.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,o.facade),S=(0,c.pi)((0,c.pi)({},T),u);return s.createElement(s.Fragment,null,g&&s.createElement(y,{sideCar:p,removeScrollBar:h,shards:E,noIsolation:b,inert:w,setCallbacks:l,allowPinchZoom:!!C,lockRef:a}),d?s.cloneElement(s.Children.only(f),(0,c.pi)((0,c.pi)({},S),{ref:O})):s.createElement(R,(0,c.pi)({},S,{className:m,ref:O}),f))});m.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},m.classNames={fullWidth:f,zeroRight:d};var h=function(e){var t=e.sideCar,n=(0,c._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,(0,c.pi)({},n))};h.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},E=function(){var e=g();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},y=function(){var e=E();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[w(n),w(r),w(o)]},D=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},R=y(),T=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(f," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(f," .").concat(f," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},O=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=s.useMemo(function(){return D(o)},[o]);return s.createElement(R,{styles:T(a,!t,o,n?"":"!important")})},S=!1;if("undefined"!=typeof window)try{var P=Object.defineProperty({},"passive",{get:function(){return S=!0,!0}});window.addEventListener("test",P,P),window.removeEventListener("test",P,P)}catch(e){S=!1}var M=!!S&&{passive:!1},k=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},L=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),_(e,n)){var r=A(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},_=function(e,t){return"v"===e?k(t,"overflowY"):k(t,"overflowX")},A=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,l=n.target,c=t.contains(l),s=!1,d=u>0,f=0,p=0;do{var v=A(e,l),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&_(e,l)&&(f+=h,p+=m),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(o&&0===f||!o&&u>f)?s=!0:!d&&(o&&0===p||!o&&-u>p)&&(s=!0),s},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},N=function(e){return e&&"current"in e?e.current:e},I=0,Z=[],z=(p.useMedium(function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(I++)[0],a=s.useState(function(){return y()})[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,c.ev)([e.lockRef.current],(e.shards||[]).map(N),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=x(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-a[0],c="deltaY"in e?e.deltaY:u[1]-a[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=L(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=L(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return W(p,t,e,"h"===p?l:c,!0)},[]),l=s.useCallback(function(e){if(Z.length&&Z[Z.length-1]===a){var n="deltaY"in e?F(e):x(e),r=t.current.filter(function(t){var r;return t.name===e.type&&t.target===e.target&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(N).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=s.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=s.useCallback(function(e){n.current=x(e),r.current=void 0},[]),p=s.useCallback(function(t){d(t.type,F(t),t.target,u(t,e.lockRef.current))},[]),v=s.useCallback(function(t){d(t.type,x(t),t.target,u(t,e.lockRef.current))},[]);s.useEffect(function(){return Z.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",l,M),document.addEventListener("touchmove",l,M),document.addEventListener("touchstart",f,M),function(){Z=Z.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,M),document.removeEventListener("touchmove",l,M),document.removeEventListener("touchstart",f,M)}},[]);var m=e.removeScrollBar,h=e.inert;return s.createElement(s.Fragment,null,h?s.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?s.createElement(O,{gapMode:"margin"}):null)}),h),B=s.forwardRef(function(e,t){return s.createElement(m,(0,c.pi)({},e,{ref:t,sideCar:z}))});B.classNames=m.classNames;var j=B},25555:function(e,t,n){let r,o;n.d(t,{x8:function(){return ep},VY:function(){return es},dk:function(){return ef},aV:function(){return ec},h_:function(){return el},fC:function(){return ei},Dx:function(){return ed},xz:function(){return eu}});var a=n(13428),i=n(2265),u=n(85744),l=n(42210),c=n(56989),s=n(20966),d=n(73763),f=n(9381),p=n(16459),v=n(12488);let m="dismissableLayer.update",h=(0,i.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),g=(0,i.forwardRef)((e,t)=>{var n;let{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:d,onInteractOutside:g,onDismiss:b,...w}=e,C=(0,i.useContext)(h),[D,R]=(0,i.useState)(null),T=null!==(n=null==D?void 0:D.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,O]=(0,i.useState)({}),S=(0,l.e)(t,e=>R(e)),P=Array.from(C.layers),[M]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),k=P.indexOf(M),L=D?P.indexOf(D):-1,_=C.layersWithOutsidePointerEventsDisabled.size>0,A=L>=k,W=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,p.W)(e),r=(0,i.useRef)(!1),o=(0,i.useRef)(()=>{});return(0,i.useEffect)(()=>{let e=e=>{if(e.target&&!r.current){let r={originalEvent:e};function a(){y("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));!A||n||(null==s||s(e),null==g||g(e),e.defaultPrevented||null==b||b())},T),x=function(e,t=null==globalThis?void 0:globalThis.document){let n=(0,p.W)(e),r=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let e=e=>{e.target&&!r.current&&y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));n||(null==d||d(e),null==g||g(e),e.defaultPrevented||null==b||b())},T);return(0,v.e)(e=>{let t=L===C.layers.size-1;t&&(null==c||c(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},T),(0,i.useEffect)(()=>{if(D)return o&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(D)),C.layers.add(D),E(),()=>{o&&1===C.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[D,T,o,C]),(0,i.useEffect)(()=>()=>{D&&(C.layers.delete(D),C.layersWithOutsidePointerEventsDisabled.delete(D),E())},[D,C]),(0,i.useEffect)(()=>{let e=()=>O({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,i.createElement)(f.WV.div,(0,a.Z)({},w,{ref:S,style:{pointerEvents:_?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,u.M)(e.onFocusCapture,x.onFocusCapture),onBlurCapture:(0,u.M)(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:(0,u.M)(e.onPointerDownCapture,W.onPointerDownCapture)}))});function E(){let e=new CustomEvent(m);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,f.jH)(o,a):o.dispatchEvent(a)}let b="focusScope.autoFocusOnMount",w="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},D=(0,i.forwardRef)((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...c}=e,[s,d]=(0,i.useState)(null),v=(0,p.W)(o),m=(0,p.W)(u),h=(0,i.useRef)(null),g=(0,l.e)(t,e=>d(e)),E=(0,i.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,i.useEffect)(()=>{if(r){function e(e){if(E.paused||!s)return;let t=e.target;s.contains(t)?h.current=t:O(h.current,{select:!0})}function t(e){if(E.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||O(h.current,{select:!0})}document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){let t=document.activeElement;for(let n of e)n.removedNodes.length>0&&!(null!=s&&s.contains(t))&&O(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,E.paused]),(0,i.useEffect)(()=>{if(s){S.add(E);let e=document.activeElement,t=s.contains(e);if(!t){let t=new CustomEvent(b,C);s.addEventListener(b,v),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(O(r,{select:t}),document.activeElement!==n)return}(R(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&O(s))}return()=>{s.removeEventListener(b,v),setTimeout(()=>{let t=new CustomEvent(w,C);s.addEventListener(w,m),s.dispatchEvent(t),t.defaultPrevented||O(null!=e?e:document.body,{select:!0}),s.removeEventListener(w,m),S.remove(E)},0)}}},[s,v,m,E]);let y=(0,i.useCallback)(e=>{if(!n&&!r||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=R(e),n=T(t,e),r=T(t.reverse(),e);return[n,r]}(t),i=r&&a;i?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&O(a,{select:!0})):(e.preventDefault(),n&&O(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,E.paused]);return(0,i.createElement)(f.WV.div,(0,a.Z)({tabIndex:-1},c,{ref:g,onKeyDown:y}))});function R(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function T(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function O(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}let S=(o=[],{add(e){let t=o[0];e!==t&&(null==t||t.pause()),(o=P(o,e)).unshift(e)},remove(e){var t;null===(t=(o=P(o,e))[0])||void 0===t||t.resume()}});function P(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var M=n(54887);let k=(0,i.forwardRef)((e,t)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...o}=e;return r?M.createPortal((0,i.createElement)(f.WV.div,(0,a.Z)({},o,{ref:t})),r):null});var L=n(85606),_=n(31244),A=n(17552),W=n(85859),x=n(67256);let F="Dialog",[N,I]=(0,c.b)(F),[Z,z]=N(F),B=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=z("DialogTrigger",n),c=(0,l.e)(t,o.triggerRef);return(0,i.createElement)(f.WV.button,(0,a.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":er(o.open)},r,{ref:c,onClick:(0,u.M)(e.onClick,o.onOpenToggle)}))}),j="DialogPortal",[V,K]=N(j,{forceMount:void 0}),Y="DialogOverlay",X=(0,i.forwardRef)((e,t)=>{let n=K(Y,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=z(Y,e.__scopeDialog);return u.modal?(0,i.createElement)(L.z,{present:r||u.open},(0,i.createElement)(H,(0,a.Z)({},o,{ref:t}))):null}),H=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(Y,n);return(0,i.createElement)(A.Z,{as:x.g7,allowPinchZoom:!0,shards:[o.contentRef]},(0,i.createElement)(f.WV.div,(0,a.Z)({"data-state":er(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),U="DialogContent",q=(0,i.forwardRef)((e,t)=>{let n=K(U,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,u=z(U,e.__scopeDialog);return(0,i.createElement)(L.z,{present:r||u.open},u.modal?(0,i.createElement)($,(0,a.Z)({},o,{ref:t})):(0,i.createElement)(G,(0,a.Z)({},o,{ref:t})))}),$=(0,i.forwardRef)((e,t)=>{let n=z(U,e.__scopeDialog),r=(0,i.useRef)(null),o=(0,l.e)(t,n.contentRef,r);return(0,i.useEffect)(()=>{let e=r.current;if(e)return(0,W.Ry)(e)},[]),(0,i.createElement)(J,(0,a.Z)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,u.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,u.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;r&&e.preventDefault()}),onFocusOutside:(0,u.M)(e.onFocusOutside,e=>e.preventDefault())}))}),G=(0,i.forwardRef)((e,t)=>{let n=z(U,e.__scopeDialog),r=(0,i.useRef)(!1),o=(0,i.useRef)(!1);return(0,i.createElement)(J,(0,a.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,i;null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var a,i;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target,l=null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(u);l&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}}))}),J=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:u,...c}=e,s=z(U,n),d=(0,i.useRef)(null),f=(0,l.e)(t,d);return(0,_.EW)(),(0,i.createElement)(i.Fragment,null,(0,i.createElement)(D,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:u},(0,i.createElement)(g,(0,a.Z)({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":er(s.open)},c,{ref:f,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Q="DialogTitle",ee=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=z(Q,n);return(0,i.createElement)(f.WV.h2,(0,a.Z)({id:o.titleId},r,{ref:t}))}),et=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=z("DialogDescription",n);return(0,i.createElement)(f.WV.p,(0,a.Z)({id:o.descriptionId},r,{ref:t}))}),en=(0,i.forwardRef)((e,t)=>{let{__scopeDialog:n,...r}=e,o=z("DialogClose",n);return(0,i.createElement)(f.WV.button,(0,a.Z)({type:"button"},r,{ref:t,onClick:(0,u.M)(e.onClick,()=>o.onOpenChange(!1))}))});function er(e){return e?"open":"closed"}let[eo,ea]=(0,c.k)("DialogTitleWarning",{contentName:U,titleName:Q,docsSlug:"dialog"}),ei=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:u=!0}=e,l=(0,i.useRef)(null),c=(0,i.useRef)(null),[f=!1,p]=(0,d.T)({prop:r,defaultProp:o,onChange:a});return(0,i.createElement)(Z,{scope:t,triggerRef:l,contentRef:c,contentId:(0,s.M)(),titleId:(0,s.M)(),descriptionId:(0,s.M)(),open:f,onOpenChange:p,onOpenToggle:(0,i.useCallback)(()=>p(e=>!e),[p]),modal:u},n)},eu=B,el=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=z(j,t);return(0,i.createElement)(V,{scope:t,forceMount:n},i.Children.map(r,e=>(0,i.createElement)(L.z,{present:n||a.open},(0,i.createElement)(k,{asChild:!0,container:o},e))))},ec=X,es=q,ed=ee,ef=et,ep=en},31244:function(e,t,n){n.d(t,{EW:function(){return a}});var r=n(2265);let o=0;function a(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:i()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:i()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function i(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},26823:function(e,t,n){n.d(t,{f:function(){return s}});var r=n(13428),o=n(2265),a=n(9381);let i="horizontal",u=["horizontal","vertical"],l=(0,o.forwardRef)((e,t)=>{let{decorative:n,orientation:u=i,...l}=e,s=c(u)?u:i;return(0,o.createElement)(a.WV.div,(0,r.Z)({"data-orientation":s},n?{role:"none"}:{"aria-orientation":"vertical"===s?s:void 0,role:"separator"},l,{ref:t}))});function c(e){return u.includes(e)}l.propTypes={orientation(e,t,n){let r=e[t],o=String(r);return r&&!c(r)?Error(`Invalid prop \`orientation\` of value \`${o}\` supplied to \`${n}\`, expected one of: + - horizontal + - vertical + +Defaulting to \`${i}\`.`):null}};let s=l},50044:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return a},pi:function(){return r}});var r=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}function a(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o