@ws-ui/roles-editor 1.11.3-rc1 → 1.11.3-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Standalone/style.css +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.es.js.map +1 -1
- package/dist/roles-editor.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),R=require("react"),he=require("@ws-ui/shared"),mo=require("react-dom"),un=require("@headlessui/react"),_e=require("@ws-ui/icons"),Xe=require("@ws-ui/store"),kL=require("./common.cjs.js");function DL(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ue=DL(R),W_=DL(mo);(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-grey-200);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-bg:var(--ws-select-bg);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.my-1:not(#\\#){margin-block:calc(var(--spacing)*1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-auto:not(#\\#){width:auto}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.content-center:not(#\\#){align-content:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-400:not(#\\#){border-color:var(--color-negative-400)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-500:not(#\\#){border-color:var(--color-positive-500)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-500:not(#\\#){border-color:var(--color-warning-500)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-bg:not(#\\#){background-color:var(--color-select-bg)}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.italic:not(#\\#){font-style:italic}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-600:hover:not(#\\#){background-color:var(--color-negative-600)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-600:hover:not(#\\#){background-color:var(--color-positive-600)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-600:hover:not(#\\#){background-color:var(--color-warning-600)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-hoverBackground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-panel-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editor-group-header-background,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--theia-input-background,var(--ws-palette-input-bg)));--ws-input-border:var(--vscode-input-border,var(--theia-input-border,var(--ws-palette-input-border)));--ws-input-text:var(--vscode-input-foreground,var(--theia-input-foreground,var(--ws-palette-input-text)));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder)));--ws-input-focus-border:var(--vscode-focusBorder,var(--theia-focusBorder,var(--ws-palette-primary-500)));--ws-select-bg:var(--vscode-dropdown-background,var(--theia-dropdown-background,var(--ws-input-bg)));--ws-select-border:var(--vscode-dropdown-border,var(--theia-dropdown-border,var(--ws-input-border)));--ws-select-text:var(--vscode-dropdown-foreground,var(--theia-dropdown-foreground,var(--ws-input-text)));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--theia-dropdown-listBackground,var(--ws-palette-grey-900)));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700)));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500)));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--theia-sideBar-background,var(--ws-palette-grey-700)));--ws-panel-2:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-900)));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-100)));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300)));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900));--ws-tab-border:var(--vscode-tab-border,var(--ws-palette-grey-950));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--ws-bg-foreground));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--ws-palette-grey-200));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--ws-palette-grey-700));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--ws-palette-grey-800));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--ws-bg-foreground));--ws-panel-bg:var(--vscode-panel-background,var(--ws-bg-default));--ws-panel-border:var(--vscode-panel-border,var(--ws-palette-grey-950));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--ws-palette-primary-500));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--ws-bg-foreground));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--ws-palette-grey-100))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("react/jsx-runtime"),R=require("react"),he=require("@ws-ui/shared"),mo=require("react-dom"),un=require("@headlessui/react"),_e=require("@ws-ui/icons"),Xe=require("@ws-ui/store"),kL=require("./common.cjs.js");function DL(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ue=DL(R),W_=DL(mo);(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-warning-600:var(--ws-warning-600);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--color-negative-600:var(--ws-negative-600);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-bg:var(--ws-select-bg);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.my-1:not(#\\#){margin-block:calc(var(--spacing)*1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-auto:not(#\\#){width:auto}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.content-center:not(#\\#){align-content:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-400:not(#\\#){border-color:var(--color-negative-400)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-500:not(#\\#){border-color:var(--color-positive-500)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-500:not(#\\#){border-color:var(--color-warning-500)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-bg:not(#\\#){background-color:var(--color-select-bg)}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-black:hover:not(#\\#){border-color:var(--color-black)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-600:hover:not(#\\#){background-color:var(--color-negative-600)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-600:hover:not(#\\#){background-color:var(--color-positive-600)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-600:hover:not(#\\#){background-color:var(--color-warning-600)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-gray-50:hover:not(#\\#){color:var(--color-gray-50)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-hoverBackground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-200));--ws-negative-dark:var(--vscode-inputValidation-errorBackground,var(--ws-palette-negative-600));--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-panel-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editor-group-header-background,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--theia-input-background,var(--ws-palette-input-bg)));--ws-input-border:var(--vscode-input-border,var(--theia-input-border,var(--ws-palette-input-border)));--ws-input-text:var(--vscode-input-foreground,var(--theia-input-foreground,var(--ws-palette-input-text)));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder)));--ws-input-focus-border:var(--vscode-focusBorder,var(--theia-focusBorder,var(--ws-palette-primary-500)));--ws-select-bg:var(--vscode-dropdown-background,var(--theia-dropdown-background,var(--ws-input-bg)));--ws-select-border:var(--vscode-dropdown-border,var(--theia-dropdown-border,var(--ws-input-border)));--ws-select-text:var(--vscode-dropdown-foreground,var(--theia-dropdown-foreground,var(--ws-input-text)));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--theia-dropdown-listBackground,var(--ws-palette-grey-900)));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700)));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500)));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--theia-descriptionForeground,var(--ws-palette-grey-100)));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--theia-sideBar-background,var(--ws-palette-grey-700)));--ws-panel-2:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-900)));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editor-group-header-background,var(--ws-palette-grey-900)));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-100)));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300)));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900));--ws-tab-border:var(--vscode-tab-border,var(--ws-palette-grey-950));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--ws-bg-foreground));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--ws-palette-grey-200));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--ws-palette-grey-700));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--ws-palette-grey-800));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--ws-bg-foreground));--ws-panel-bg:var(--vscode-panel-background,var(--ws-bg-default));--ws-panel-border:var(--vscode-panel-border,var(--ws-palette-grey-950));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--ws-palette-primary-500));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--ws-bg-foreground));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--ws-palette-grey-100))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
|
|
2
2
|
`,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const y8=e=>O.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:O.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),x8=e=>O.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:O.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Td=e=>O.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:O.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),w8=e=>O.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:O.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),_8=e=>O.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:O.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),E8=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},S8=(e,t)=>({classGroupId:e,validator:t}),ML=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Hu="-",tC=[],O8="arbitrary..",C8=e=>{const t=N8(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return R8(o);const i=o.split(Hu),a=i[0]===""&&i.length>1?1:0;return jL(i,a,t)},getConflictingClassGroupIds:(o,i)=>{if(i){const a=n[o],s=r[o];return a?s?E8(s,a):a:s||tC}return r[o]||tC}}},jL=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const c=jL(e,t+1,o);if(c)return c}const i=r.validators;if(i===null)return;const a=t===0?e.join(Hu):e.slice(t).join(Hu),s=i.length;for(let c=0;c<s;c++){const u=i[c];if(u.validator(a))return u.classGroupId}},R8=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?O8+n:void 0})(),N8=e=>{const{theme:t,classGroups:r}=e;return I8(r,t)},I8=(e,t)=>{const r=ML();for(const n in e){const o=e[n];U_(o,r,n,t)}return r},U_=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];P8(a,t,r,n)}},P8=(e,t,r,n)=>{if(typeof e=="string"){T8(e,t,r);return}if(typeof e=="function"){A8(e,t,r,n);return}k8(e,t,r,n)},T8=(e,t,r)=>{const n=e===""?t:LL(t,e);n.classGroupId=r},A8=(e,t,r,n)=>{if(D8(e)){U_(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(S8(r,e))},k8=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,c]=o[a];U_(c,LL(t,s),r,n)}},LL=(e,t)=>{let r=e;const n=t.split(Hu),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=ML(),r.nextPart.set(a,s)),r=s}return r},D8=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,M8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},o_="!",rC=":",j8=[],nC=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),L8=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,c=0,u;const d=o.length;for(let g=0;g<d;g++){const m=o[g];if(a===0&&s===0){if(m===rC){i.push(o.slice(c,g)),c=g+1;continue}if(m==="/"){u=g;continue}}m==="["?a++:m==="]"?a--:m==="("?s++:m===")"&&s--}const f=i.length===0?o:o.slice(c);let h=f,v=!1;f.endsWith(o_)?(h=f.slice(0,-1),v=!0):f.startsWith(o_)&&(h=f.slice(1),v=!0);const b=u&&u>c?u-c:void 0;return nC(i,v,h,b)};if(t){const o=t+rC,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):nC(j8,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},q8=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",c=t.has(a);s||c?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},z8=e=>({cache:M8(e.cacheSize),parseClassName:L8(e),sortModifiers:q8(e),...C8(e)}),B8=/\s+/,F8=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(B8);let c="";for(let u=s.length-1;u>=0;u-=1){const d=s[u],{isExternal:f,modifiers:h,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:g}=r(d);if(f){c=d+(c.length>0?" "+c:c);continue}let m=!!g,x=n(m?b.substring(0,g):b);if(!x){if(!m){c=d+(c.length>0?" "+c:c);continue}if(x=n(b),!x){c=d+(c.length>0?" "+c:c);continue}m=!1}const w=h.length===0?"":h.length===1?h[0]:i(h).join(":"),E=v?w+o_:w,S=E+x;if(a.indexOf(S)>-1)continue;a.push(S);const _=o(x,m);for(let C=0;C<_.length;++C){const N=_[C];a.push(E+N)}c=d+(c.length>0?" "+c:c)}return c},$8=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=qL(r))&&(o&&(o+=" "),o+=n);return o},qL=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=qL(e[n]))&&(r&&(r+=" "),r+=t);return r},oC=(e,...t)=>{let r,n,o,i;const a=c=>{const u=t.reduce((d,f)=>f(d),e());return r=z8(u),n=r.cache.get,o=r.cache.set,i=s,s(c)},s=c=>{const u=n(c);if(u)return u;const d=F8(c,r);return o(c,d),d};return i=a,(...c)=>i($8(...c))},V8=[],Ut=e=>{const t=r=>r[e]||V8;return t.isThemeGetter=!0,t},zL=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,BL=/^\((?:(\w[\w-]*):)?(.+)\)$/i,H8=/^\d+\/\d+$/,W8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U8=/\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$/,G8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Y8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qi=e=>H8.test(e),He=e=>!!e&&!Number.isNaN(Number(e)),jo=e=>!!e&&Number.isInteger(Number(e)),sh=e=>e.endsWith("%")&&He(e.slice(0,-1)),ho=e=>W8.test(e),X8=()=>!0,Z8=e=>U8.test(e)&&!G8.test(e),FL=()=>!1,J8=e=>Y8.test(e),Q8=e=>K8.test(e),eG=e=>!Ie(e)&&!Pe(e),tG=e=>Ta(e,HL,FL),Ie=e=>zL.test(e),fi=e=>Ta(e,WL,Z8),lh=e=>Ta(e,aG,He),iC=e=>Ta(e,$L,FL),rG=e=>Ta(e,VL,Q8),qc=e=>Ta(e,UL,J8),Pe=e=>BL.test(e),hs=e=>Aa(e,WL),nG=e=>Aa(e,sG),aC=e=>Aa(e,$L),oG=e=>Aa(e,HL),iG=e=>Aa(e,VL),zc=e=>Aa(e,UL,!0),Ta=(e,t,r)=>{const n=zL.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Aa=(e,t,r=!1)=>{const n=BL.exec(e);return n?n[1]?t(n[1]):r:!1},$L=e=>e==="position"||e==="percentage",VL=e=>e==="image"||e==="url",HL=e=>e==="length"||e==="size"||e==="bg-size",WL=e=>e==="length",aG=e=>e==="number",sG=e=>e==="family-name",UL=e=>e==="shadow",sC=()=>{const e=Ut("color"),t=Ut("font"),r=Ut("text"),n=Ut("font-weight"),o=Ut("tracking"),i=Ut("leading"),a=Ut("breakpoint"),s=Ut("container"),c=Ut("spacing"),u=Ut("radius"),d=Ut("shadow"),f=Ut("inset-shadow"),h=Ut("text-shadow"),v=Ut("drop-shadow"),b=Ut("blur"),g=Ut("perspective"),m=Ut("aspect"),x=Ut("ease"),w=Ut("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...S(),Pe,Ie],C=()=>["auto","hidden","clip","visible","scroll"],N=()=>["auto","contain","none"],P=()=>[Pe,Ie,c],A=()=>[Qi,"full","auto",...P()],j=()=>[jo,"none","subgrid",Pe,Ie],M=()=>["auto",{span:["full",jo,Pe,Ie]},jo,Pe,Ie],L=()=>[jo,"auto",Pe,Ie],D=()=>["auto","min","max","fr",Pe,Ie],T=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...P()],G=()=>[Qi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],F=()=>[e,Pe,Ie],J=()=>[...S(),aC,iC,{position:[Pe,Ie]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",oG,tG,{size:[Pe,Ie]}],oe=()=>[sh,hs,fi],re=()=>["","none","full",u,Pe,Ie],$=()=>["",He,hs,fi],Y=()=>["solid","dashed","dotted","double"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[He,sh,aC,iC],K=()=>["","none",b,Pe,Ie],Q=()=>["none",He,Pe,Ie],ne=()=>["none",He,Pe,Ie],se=()=>[He,Pe,Ie],te=()=>[Qi,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ho],breakpoint:[ho],color:[X8],container:[ho],"drop-shadow":[ho],ease:["in","out","in-out"],font:[eG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ho],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ho],shadow:[ho],spacing:["px",He],text:[ho],"text-shadow":[ho],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qi,Ie,Pe,m]}],container:["container"],columns:[{columns:[He,Ie,Pe,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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"],sr:["sr-only","not-sr-only"],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:_()}],overflow:[{overflow:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],overscroll:[{overscroll:N()}],"overscroll-x":[{"overscroll-x":N()}],"overscroll-y":[{"overscroll-y":N()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:A()}],"inset-x":[{"inset-x":A()}],"inset-y":[{"inset-y":A()}],start:[{start:A()}],end:[{end:A()}],top:[{top:A()}],right:[{right:A()}],bottom:[{bottom:A()}],left:[{left:A()}],visibility:["visible","invisible","collapse"],z:[{z:[jo,"auto",Pe,Ie]}],basis:[{basis:[Qi,"full","auto",s,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[He,Qi,"auto","initial","none",Ie]}],grow:[{grow:["",He,Pe,Ie]}],shrink:[{shrink:["",He,Pe,Ie]}],order:[{order:[jo,"first","last","none",Pe,Ie]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...T(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...T()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":T()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[s,"screen",...G()]}],"min-w":[{"min-w":[s,"screen","none",...G()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,hs,fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Pe,lh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sh,Ie]}],"font-family":[{font:[nG,Ie,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-fractions"],tracking:[{tracking:[o,Pe,Ie]}],"line-clamp":[{"line-clamp":[He,"none",Pe,lh]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",Pe,Ie]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Pe,Ie]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[He,"from-font","auto",Pe,fi]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[He,"auto",Pe,Ie]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Pe,Ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Pe,Ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},jo,Pe,Ie],radial:["",Pe,Ie],conic:[jo,Pe,Ie]},iG,rG]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:re()}],"rounded-s":[{"rounded-s":re()}],"rounded-e":[{"rounded-e":re()}],"rounded-t":[{"rounded-t":re()}],"rounded-r":[{"rounded-r":re()}],"rounded-b":[{"rounded-b":re()}],"rounded-l":[{"rounded-l":re()}],"rounded-ss":[{"rounded-ss":re()}],"rounded-se":[{"rounded-se":re()}],"rounded-ee":[{"rounded-ee":re()}],"rounded-es":[{"rounded-es":re()}],"rounded-tl":[{"rounded-tl":re()}],"rounded-tr":[{"rounded-tr":re()}],"rounded-br":[{"rounded-br":re()}],"rounded-bl":[{"rounded-bl":re()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[He,Pe,Ie]}],"outline-w":[{outline:["",He,hs,fi]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",d,zc,qc]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",f,zc,qc]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[He,fi]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",h,zc,qc]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[He,Pe,Ie]}],"mix-blend":[{"mix-blend":[...X(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":X()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[He]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Pe,Ie]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[He]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Pe,Ie]}],filter:[{filter:["","none",Pe,Ie]}],blur:[{blur:K()}],brightness:[{brightness:[He,Pe,Ie]}],contrast:[{contrast:[He,Pe,Ie]}],"drop-shadow":[{"drop-shadow":["","none",v,zc,qc]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",He,Pe,Ie]}],"hue-rotate":[{"hue-rotate":[He,Pe,Ie]}],invert:[{invert:["",He,Pe,Ie]}],saturate:[{saturate:[He,Pe,Ie]}],sepia:[{sepia:["",He,Pe,Ie]}],"backdrop-filter":[{"backdrop-filter":["","none",Pe,Ie]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[He,Pe,Ie]}],"backdrop-contrast":[{"backdrop-contrast":[He,Pe,Ie]}],"backdrop-grayscale":[{"backdrop-grayscale":["",He,Pe,Ie]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[He,Pe,Ie]}],"backdrop-invert":[{"backdrop-invert":["",He,Pe,Ie]}],"backdrop-opacity":[{"backdrop-opacity":[He,Pe,Ie]}],"backdrop-saturate":[{"backdrop-saturate":[He,Pe,Ie]}],"backdrop-sepia":[{"backdrop-sepia":["",He,Pe,Ie]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Pe,Ie]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[He,"initial",Pe,Ie]}],ease:[{ease:["linear","initial",x,Pe,Ie]}],delay:[{delay:[He,Pe,Ie]}],animate:[{animate:["none",w,Pe,Ie]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,Pe,Ie]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:ne()}],"scale-x":[{"scale-x":ne()}],"scale-y":[{"scale-y":ne()}],"scale-z":[{"scale-z":ne()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[Pe,Ie,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:te()}],"translate-x":[{"translate-x":te()}],"translate-y":[{"translate-y":te()}],"translate-z":[{"translate-z":te()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Pe,Ie]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Pe,Ie]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[He,hs,fi,lh]}],stroke:[{stroke:["none",...F()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lG=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(zs(e,"cacheSize",t),zs(e,"prefix",r),zs(e,"experimentalParseClassName",n),Bc(e.theme,i.theme),Bc(e.classGroups,i.classGroups),Bc(e.conflictingClassGroups,i.conflictingClassGroups),Bc(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),zs(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Fc(e.theme,o.theme),Fc(e.classGroups,o.classGroups),Fc(e.conflictingClassGroups,o.conflictingClassGroups),Fc(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),GL(e,o,"orderSensitiveModifiers"),e),zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Bc=(e,t)=>{if(t)for(const r in t)zs(e,r,t[r])},Fc=(e,t)=>{if(t)for(const r in t)GL(e,t,r)},GL=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},cG=(e,...t)=>typeof e=="function"?oC(sC,e,...t):oC(()=>lG(sC(),e),...t);function YL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lC={exports:{}};/*!
|
|
3
3
|
Copyright (c) 2018 Jed Watson.
|
|
4
4
|
Licensed under the MIT License (MIT), see
|
|
@@ -122,5 +122,5 @@ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var te=se(H,ne,$,Y,X+"."
|
|
|
122
122
|
`)&&n.flags==="s")}),Gw}var Yw,uL;function mde(){if(uL)return Yw;uL=1;var e=xt(),t=Ft(),r=t.RegExp;return Yw=e(function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"}),Yw}var Kw,dL;function zE(){if(dL)return Kw;dL=1;var e=Mr(),t=gt(),r=Mi(),n=f$(),o=vde(),i=NE(),a=kf(),s=Ya().get,c=gde(),u=mde(),d=i("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,h=f,v=t("".charAt),b=t("".indexOf),g=t("".replace),m=t("".slice),x=(function(){var _=/a/,C=/b*/g;return e(f,_,"a"),e(f,C,"a"),_.lastIndex!==0||C.lastIndex!==0})(),w=o.BROKEN_CARET,E=/()??/.exec("")[1]!==void 0,S=x||E||w||c||u;return S&&(h=function(C){var N=this,P=s(N),A=r(C),j=P.raw,M,L,D,T,W,q,G;if(j)return j.lastIndex=N.lastIndex,M=e(h,j,A),N.lastIndex=j.lastIndex,M;var F=P.groups,J=w&&N.sticky,z=e(n,N),U=N.source,oe=0,re=A;if(J&&(z=g(z,"y",""),b(z,"g")===-1&&(z+="g"),re=m(A,N.lastIndex),N.lastIndex>0&&(!N.multiline||N.multiline&&v(A,N.lastIndex-1)!==`
|
|
123
123
|
`)&&(U="(?: "+U+")",re=" "+re,oe++),L=new RegExp("^(?:"+U+")",z)),E&&(L=new RegExp("^"+U+"$(?!\\s)",z)),x&&(D=N.lastIndex),T=e(f,J?L:N,re),J?T?(T.input=m(T.input,oe),T[0]=m(T[0],oe),T.index=N.lastIndex,N.lastIndex+=T[0].length):N.lastIndex=0:x&&T&&(N.lastIndex=N.global?T.index+T[0].length:D),E&&T&&T.length>1&&e(d,T[0],L,function(){for(W=1;W<arguments.length-2;W++)arguments[W]===void 0&&(T[W]=void 0)}),T&&F)for(T.groups=q=a(null),W=0;W<F.length;W++)G=F[W],q[G[0]]=T[G[1]];return T}),Kw=h,Kw}var fL;function p$(){if(fL)return aL;fL=1;var e=ei(),t=zE();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),aL}p$();var pL={},Xw,hL;function h$(){if(hL)return Xw;hL=1,p$();var e=Mr(),t=Di(),r=zE(),n=xt(),o=Er(),i=ql(),a=o("species"),s=RegExp.prototype;return Xw=function(c,u,d,f){var h=o(c),v=!n(function(){var x={};return x[h]=function(){return 7},""[c](x)!==7}),b=v&&!n(function(){var x=!1,w=/a/;return c==="split"&&(w={},w.constructor={},w.constructor[a]=function(){return w},w.flags="",w[h]=/./[h]),w.exec=function(){return x=!0,null},w[h](""),!x});if(!v||!b||d){var g=/./[h],m=u(h,""[c],function(x,w,E,S,_){var C=w.exec;return C===r||C===s.exec?v&&!_?{done:!0,value:e(g,w,E,S)}:{done:!0,value:e(x,E,w,S)}:{done:!1}});t(String.prototype,c,m[0]),t(s,h,m[1])}f&&i(s[h],"sham",!0)},Xw}var Zw,vL;function v$(){if(vL)return Zw;vL=1;var e=Q3().charAt;return Zw=function(t,r,n){return r+(n?e(t,r).length:1)},Zw}var Jw,gL;function bde(){if(gL)return Jw;gL=1;var e=Ft(),t=xt(),r=e.RegExp,n=!t(function(){var o=!0;try{r(".","d")}catch{o=!1}var i={},a="",s=o?"dgimsy":"gimsy",c=function(h,v){Object.defineProperty(i,h,{get:function(){return a+=v,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};o&&(u.hasIndices="d");for(var d in u)c(d,u[d]);var f=Object.getOwnPropertyDescriptor(r.prototype,"flags").get.call(i);return f!==s||a!==s});return Jw={correct:n},Jw}var Qw,mL;function g$(){if(mL)return Qw;mL=1;var e=Mr(),t=mn(),r=Rf(),n=bde(),o=f$(),i=RegExp.prototype;return Qw=n.correct?function(a){return a.flags}:function(a){return!n.correct&&r(i,a)&&!t(a,"flags")?e(o,a):a.flags},Qw}var e_,bL;function m$(){if(bL)return e_;bL=1;var e=Mr(),t=bn(),r=Yt(),n=Qo(),o=zE(),i=TypeError;return e_=function(a,s){var c=a.exec;if(r(c)){var u=e(c,a,s);return u!==null&&t(u),u}if(n(a)==="RegExp")return e(o,a,s);throw new i("RegExp#exec called on incompatible receiver")},e_}var yL;function yde(){if(yL)return pL;yL=1;var e=Mr(),t=gt(),r=h$(),n=bn(),o=ar(),i=kE(),a=Mi(),s=ki(),c=Ll(),u=v$(),d=g$(),f=m$(),h=t("".indexOf);return r("match",function(v,b,g){return[function(x){var w=s(this),E=o(x)?c(x,v):void 0;return E?e(E,x,w):new RegExp(x)[v](a(w))},function(m){var x=n(this),w=a(m),E=g(b,x,w);if(E.done)return E.value;var S=a(d(x));if(h(S,"g")===-1)return f(x,w);var _=h(S,"u")!==-1;x.lastIndex=0;for(var C=[],N=0,P;(P=f(x,w))!==null;){var A=a(P[0]);C[N]=A,A===""&&(x.lastIndex=u(w,i(x.lastIndex),_)),N++}return N===0?null:C}]}),pL}yde();var xL={},t_,wL;function xde(){if(wL)return t_;wL=1;var e=z3(),t=Oo();return t_=function(r,n,o){return o.get&&e(o.get,n,{getter:!0}),o.set&&e(o.set,n,{setter:!0}),t.f(r,n,o)},t_}var _L;function wde(){if(_L)return xL;_L=1;var e=jn(),t=TE().EXISTS,r=gt(),n=xde(),o=Function.prototype,i=r(o.toString),a=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,s=r(a.exec),c="name";return e&&!t&&n(o,c,{configurable:!0,get:function(){try{return s(a,i(this))[1]}catch{return""}}}),xL}wde();var EL={},r_,SL;function _de(){if(SL)return r_;SL=1;var e=Sf(),t=Function.prototype,r=t.apply,n=t.call;return r_=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),r_}var n_,OL;function Ede(){if(OL)return n_;OL=1;var e=gt(),t=Ga(),r=Math.floor,n=e("".charAt),o=e("".replace),i=e("".slice),a=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;return n_=function(c,u,d,f,h,v){var b=d+c.length,g=f.length,m=s;return h!==void 0&&(h=t(h),m=a),o(v,m,function(x,w){var E;switch(n(w,0)){case"$":return"$";case"&":return c;case"`":return i(u,0,d);case"'":return i(u,b);case"<":E=h[i(w,1,-1)];break;default:var S=+w;if(S===0)return x;if(S>g){var _=r(S/10);return _===0?x:_<=g?f[_-1]===void 0?n(w,1):f[_-1]+n(w,1):x}E=f[S-1]}return E===void 0?"":E})},n_}var CL;function Sde(){if(CL)return EL;CL=1;var e=_de(),t=Mr(),r=gt(),n=h$(),o=xt(),i=bn(),a=Yt(),s=ar(),c=Pf(),u=kE(),d=Mi(),f=ki(),h=v$(),v=Ll(),b=Ede(),g=g$(),m=m$(),x=Er(),w=x("replace"),E=Math.max,S=Math.min,_=r([].concat),C=r([].push),N=r("".indexOf),P=r("".slice),A=function(D){return D===void 0?D:String(D)},j=(function(){return"a".replace(/./,"$0")==="$0"})(),M=(function(){return/./[w]?/./[w]("a","$0")==="":!1})(),L=!o(function(){var D=/./;return D.exec=function(){var T=[];return T.groups={a:"7"},T},"".replace(D,"$<a>")!=="7"});return n("replace",function(D,T,W){var q=M?"$":"$0";return[function(F,J){var z=f(this),U=s(F)?v(F,w):void 0;return U?t(U,F,z,J):t(T,d(z),F,J)},function(G,F){var J=i(this),z=d(G);if(typeof F=="string"&&N(F,q)===-1&&N(F,"$<")===-1){var U=W(T,J,z,F);if(U.done)return U.value}var oe=a(F);oe||(F=d(F));var re=d(g(J)),$=N(re,"g")!==-1,Y;$&&(Y=N(re,"u")!==-1,J.lastIndex=0);for(var X=[],H;H=m(J,z),!(H===null||(C(X,H),!$));){var K=d(H[0]);K===""&&(J.lastIndex=h(z,u(J.lastIndex),Y))}for(var Q="",ne=0,se=0;se<X.length;se++){H=X[se];for(var te=d(H[0]),be=E(S(c(H.index),z.length),0),de=[],Ee,fe=1;fe<H.length;fe++)C(de,A(H[fe]));var le=H.groups;if(oe){var Ce=_([te],de,be,z);le!==void 0&&C(Ce,le),Ee=d(e(F,void 0,Ce))}else Ee=b(te,z,be,de,le,F);be>=ne&&(Q+=P(z,ne,be)+Ee,ne=be+te.length)}return Q+P(z,ne)}]},!L||!j||M),EL}Sde();function $o(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Vu(e){return!e||!e.ownerDocument?document:e.ownerDocument}var la=null,RL=null;d$&&window.addEventListener("resize",function(){RL!==window.devicePixelRatio&&(RL=window.devicePixelRatio,la=null)});function NL(e){if(la===null){var t=Vu(e);if(typeof t>"u")return la=0,la;var r=t.body,n=t.createElement("div");n.classList.add("simplebar-hide-scrollbar"),r.appendChild(n);var o=n.getBoundingClientRect().right;r.removeChild(n),la=o}return la}var Rd=(function(){function e(r,n){var o=this;this.onScroll=function(){var i=$o(o.el);o.scrollXTicking||(i.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(i.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0)},this.scrollX=function(){o.axis.x.isOverflowing&&(o.showScrollbar("x"),o.positionScrollbar("x")),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&(o.showScrollbar("y"),o.positionScrollbar("y")),o.scrollYTicking=!1},this.onMouseEnter=function(){o.showScrollbar("x"),o.showScrollbar("y")},this.onMouseMove=function(i){o.mouseX=i.clientX,o.mouseY=i.clientY,(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseMoveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseMoveForAxis("y")},this.onMouseLeave=function(){o.onMouseMove.cancel(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&o.onMouseLeaveForAxis("x"),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&o.onMouseLeaveForAxis("y"),o.mouseX=-1,o.mouseY=-1},this.onWindowResize=function(){o.scrollbarWidth=o.getScrollbarWidth(),o.hideNativeScrollbar()},this.hideScrollbars=function(){o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.track.rect)||(o.axis.y.scrollbar.el.classList.remove(o.classNames.visible),o.axis.y.isVisible=!1),o.isWithinBounds(o.axis.x.track.rect)||(o.axis.x.scrollbar.el.classList.remove(o.classNames.visible),o.axis.x.isVisible=!1)},this.onPointerEvent=function(i){var a,s;o.axis.x.track.rect=o.axis.x.track.el.getBoundingClientRect(),o.axis.y.track.rect=o.axis.y.track.el.getBoundingClientRect(),(o.axis.x.isOverflowing||o.axis.x.forceVisible)&&(a=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(a||s)&&(i.preventDefault(),i.stopPropagation(),i.type==="mousedown"&&(a&&(o.axis.x.scrollbar.rect=o.axis.x.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.x.scrollbar.rect)?o.onDragStart(i,"x"):o.onTrackClick(i,"x")),s&&(o.axis.y.scrollbar.rect=o.axis.y.scrollbar.el.getBoundingClientRect(),o.isWithinBounds(o.axis.y.scrollbar.rect)?o.onDragStart(i,"y"):o.onTrackClick(i,"y"))))},this.drag=function(i){var a,s=o.axis[o.draggedAxis].track,c=s.rect[o.axis[o.draggedAxis].sizeAttr],u=o.axis[o.draggedAxis].scrollbar,d=o.contentWrapperEl[o.axis[o.draggedAxis].scrollSizeAttr],f=parseInt(o.elStyles[o.axis[o.draggedAxis].sizeAttr],10);i.preventDefault(),i.stopPropagation(),o.draggedAxis==="y"?a=i.pageY:a=i.pageX;var h=a-s.rect[o.axis[o.draggedAxis].offsetAttr]-o.axis[o.draggedAxis].dragOffset,v=h/(c-u.size),b=v*(d-f);o.draggedAxis==="x"&&(b=o.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?b-(c+u.size):b,b=o.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-b:b),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=b},this.onEndDrag=function(i){var a=Vu(o.el),s=$o(o.el);i.preventDefault(),i.stopPropagation(),o.el.classList.remove(o.classNames.dragging),a.removeEventListener("mousemove",o.drag,!0),a.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=s.setTimeout(function(){a.removeEventListener("click",o.preventClick,!0),a.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=r,this.minScrollbarWidth=20,this.options=Object.assign({},e.defaultOptions,n),this.classNames=Object.assign({},e.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,!e.instances.has(this.el)&&(this.recalculate=B2(this.recalculate.bind(this),64),this.onMouseMove=B2(this.onMouseMove.bind(this),64),this.hideScrollbars=$2(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=$2(this.onWindowResize.bind(this),64,{leading:!0}),e.getRtlHelpers=Bue(e.getRtlHelpers),this.init())}e.getRtlHelpers=function(){var n=document.createElement("div");n.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var o=n.firstElementChild;document.body.appendChild(o);var i=o.firstElementChild;o.scrollLeft=0;var a=e.getOffset(o),s=e.getOffset(i);o.scrollLeft=999;var c=e.getOffset(i);return{isRtlScrollingInverted:a.left!==s.left&&s.left-c.left!==0,isRtlScrollbarInverted:a.left!==s.left}},e.getOffset=function(n){var o=n.getBoundingClientRect(),i=Vu(n),a=$o(n);return{top:o.top+(a.pageYOffset||i.documentElement.scrollTop),left:o.left+(a.pageXOffset||i.documentElement.scrollLeft)}};var t=e.prototype;return t.init=function(){e.instances.set(this.el,this),d$&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},t.initDOM=function(){var n=this;if(Array.prototype.filter.call(this.el.children,function(a){return a.classList.contains(n.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var o=document.createElement("div"),i=document.createElement("div");o.classList.add(this.classNames.track),i.classList.add(this.classNames.scrollbar),o.appendChild(i),this.axis.x.track.el=o.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=o.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},t.setAccessibilityAttributes=function(){var n=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",n)},t.initListeners=function(){var n=this,o=$o(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(c){n.el.addEventListener(c,n.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(c){n.el.addEventListener(c,n.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),o.addEventListener("resize",this.onWindowResize);var i=!1,a=null,s=o.ResizeObserver||sde;this.resizeObserver=new s(function(){!i||a!==null||(a=o.requestAnimationFrame(function(){n.recalculate(),a=null}))}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),o.requestAnimationFrame(function(){i=!0}),this.mutationObserver=new o.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},t.recalculate=function(){var n=$o(this.el);this.elStyles=n.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var o=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1,a=this.contentEl.offsetWidth,s=this.contentWrapperEl.offsetWidth,c=this.elStyles.overflowX,u=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var d=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=i?a+"px":"auto",this.placeholderEl.style.height=d+"px";var h=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=f>a,this.axis.y.isOverflowing=d>h,this.axis.x.isOverflowing=c==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=u==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var v=this.axis.x.isOverflowing?this.scrollbarWidth:0,b=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-b,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&d>h-v,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},t.getScrollbarSize=function(n){if(n===void 0&&(n="y"),!this.axis[n].isOverflowing)return 0;var o=this.contentEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],a,s=i/o;return a=Math.max(~~(s*i),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},t.positionScrollbar=function(n){if(n===void 0&&(n="y"),!!this.axis[n].isOverflowing){var o=this.contentWrapperEl[this.axis[n].scrollSizeAttr],i=this.axis[n].track.el[this.axis[n].offsetSizeAttr],a=parseInt(this.elStyles[this.axis[n].sizeAttr],10),s=this.axis[n].scrollbar,c=this.contentWrapperEl[this.axis[n].scrollOffsetAttr];c=n==="x"&&this.isRtl&&e.getRtlHelpers().isRtlScrollingInverted?-c:c;var u=c/(o-a),d=~~((i-s.size)*u);d=n==="x"&&this.isRtl&&e.getRtlHelpers().isRtlScrollbarInverted?d+(i-s.size):d,s.el.style.transform=n==="x"?"translate3d("+d+"px, 0, 0)":"translate3d(0, "+d+"px, 0)"}},t.toggleTrackVisibility=function(n){n===void 0&&(n="y");var o=this.axis[n].track.el,i=this.axis[n].scrollbar.el;this.axis[n].isOverflowing||this.axis[n].forceVisible?(o.style.visibility="visible",this.contentWrapperEl.style[this.axis[n].overflowAttr]="scroll"):(o.style.visibility="hidden",this.contentWrapperEl.style[this.axis[n].overflowAttr]="hidden"),this.axis[n].isOverflowing?i.style.display="block":i.style.display="none"},t.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},t.onMouseMoveForAxis=function(n){n===void 0&&(n="y"),this.axis[n].track.rect=this.axis[n].track.el.getBoundingClientRect(),this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var o=this.isWithinBounds(this.axis[n].scrollbar.rect);o?this.axis[n].scrollbar.el.classList.add(this.classNames.hover):this.axis[n].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[n].track.rect)?(this.showScrollbar(n),this.axis[n].track.el.classList.add(this.classNames.hover)):this.axis[n].track.el.classList.remove(this.classNames.hover)},t.onMouseLeaveForAxis=function(n){n===void 0&&(n="y"),this.axis[n].track.el.classList.remove(this.classNames.hover),this.axis[n].scrollbar.el.classList.remove(this.classNames.hover)},t.showScrollbar=function(n){n===void 0&&(n="y");var o=this.axis[n].scrollbar.el;this.axis[n].isVisible||(o.classList.add(this.classNames.visible),this.axis[n].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},t.onDragStart=function(n,o){o===void 0&&(o="y");var i=Vu(this.el),a=$o(this.el),s=this.axis[o].scrollbar,c=o==="y"?n.pageY:n.pageX;this.axis[o].dragOffset=c-s.rect[this.axis[o].offsetAttr],this.draggedAxis=o,this.el.classList.add(this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},t.onTrackClick=function(n,o){var i=this;if(o===void 0&&(o="y"),!!this.options.clickOnTrack){var a=$o(this.el);this.axis[o].scrollbar.rect=this.axis[o].scrollbar.el.getBoundingClientRect();var s=this.axis[o].scrollbar,c=s.rect[this.axis[o].offsetAttr],u=parseInt(this.elStyles[this.axis[o].sizeAttr],10),d=this.contentWrapperEl[this.axis[o].scrollOffsetAttr],f=o==="y"?this.mouseY-c:this.mouseX-c,h=f<0?-1:1,v=h===-1?d-u:d+u,b=function g(){if(h===-1){if(d>v){var m;d-=i.options.clickOnTrackSpeed,i.contentWrapperEl.scrollTo((m={},m[i.axis[o].offsetAttr]=d,m)),a.requestAnimationFrame(g)}}else if(d<v){var x;d+=i.options.clickOnTrackSpeed,i.contentWrapperEl.scrollTo((x={},x[i.axis[o].offsetAttr]=d,x)),a.requestAnimationFrame(g)}};b()}},t.getContentElement=function(){return this.contentEl},t.getScrollElement=function(){return this.contentWrapperEl},t.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:NL(this.el)}catch{return NL(this.el)}},t.removeListeners=function(){var n=this,o=$o(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(i){n.el.removeEventListener(i,n.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(i){n.el.removeEventListener(i,n.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),o.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},t.unMount=function(){this.removeListeners(),e.instances.delete(this.el)},t.isWithinBounds=function(n){return this.mouseX>=n.left&&this.mouseX<=n.left+n.width&&this.mouseY>=n.top&&this.mouseY<=n.top+n.height},t.findChild=function(n,o){var i=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;return Array.prototype.filter.call(n.children,function(a){return i.call(a,o)})[0]},e})();Rd.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};Rd.instances=new WeakMap;function IL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IL(Object(r),!0).forEach(function(n){Ode(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ode(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nd(){return Nd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nd.apply(this,arguments)}function Cde(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Rde(e,t){if(e==null)return{};var r=Cde(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Nde=["children","scrollableNodeProps","tag"],Ide=function(t){var r=Array.prototype.reduce.call(t,function(n,o){var i=o.name.match(/data-simplebar-(.+)/);if(i){var a=i[1].replace(/\W+(.)/g,function(s,c){return c.toUpperCase()});switch(o.value){case"true":n[a]=!0;break;case"false":n[a]=!1;break;case void 0:n[a]=!0;break;default:n[a]=o.value}}return n},{});return r},Mf=R.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,i=e.tag,a=i===void 0?"div":i,s=Rde(e,Nde),c=a,u,d=R.useRef(),f=R.useRef(),h=R.useRef(),v={},b={},g=[];return Object.keys(s).forEach(function(m){Object.prototype.hasOwnProperty.call(Rd.defaultOptions,m)?v[m]=s[m]:m.match(/data-simplebar-(.+)/)&&m!=="data-simplebar-direction"?g.push({name:m,value:s[m]}):b[m]=s[m]}),g.length&&console.warn(`simplebar-react: this way of passing options is deprecated. Pass it like normal props instead:
|
|
124
124
|
'data-simplebar-auto-hide="false"' —> 'autoHide="false"'
|
|
125
|
-
`),R.useEffect(function(){return d=o.ref||d,f.current&&(u=new Rd(f.current,Su(Su(Su(Su({},Ide(g)),v),d&&{scrollableNode:d.current}),h.current&&{contentNode:h.current})),typeof t=="function"?t(u):t&&(t.current=u)),function(){u.unMount(),u=null,typeof t=="function"&&t(null)}},[]),R.createElement(c,Nd({ref:f,"data-simplebar":!0},b),R.createElement("div",{className:"simplebar-wrapper"},R.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},R.createElement("div",{className:"simplebar-height-auto-observer"})),R.createElement("div",{className:"simplebar-mask"},R.createElement("div",{className:"simplebar-offset"},typeof r=="function"?r({scrollableNodeRef:d,contentNodeRef:h}):R.createElement("div",Nd({},o,{className:"simplebar-content-wrapper".concat(o.className?" ".concat(o.className):"")}),R.createElement("div",{className:"simplebar-content"},r)))),R.createElement("div",{className:"simplebar-placeholder"})),R.createElement("div",{className:"simplebar-track simplebar-horizontal"},R.createElement("div",{className:"simplebar-scrollbar"})),R.createElement("div",{className:"simplebar-track simplebar-vertical"},R.createElement("div",{className:"simplebar-scrollbar"})))});Mf.displayName="SimpleBar";Mf.propTypes={children:pe.oneOfType([pe.node,pe.func]),scrollableNodeProps:pe.object,tag:pe.string};const Id=sE,Pd=lE,b$=e=>{switch(e){case he.EPermissionType.DATACLASS:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"});case he.EPermissionType.SINGLETON:return O.jsx(_e.FdSingleton,{className:"h-6 w-6"});case he.EPermissionType.DATASTORE:return O.jsx(_e.FdModel3,{className:"h-6 w-6"});case he.EPermissionType.ATTRIBUTE:return O.jsx(_e.FdTableColumn,{className:"h-6 w-6"});case he.EPermissionType.METHOD:return O.jsx(_e.FdCode,{className:"h-6 w-6"});case he.EPermissionType.SINGLETON_METHOD:return O.jsx(_e.FdFunctionSingleton,{className:"h-6 w-6"});case he.ESubPermissionType.ENTITY_SEL_METHOD:return O.jsx(_e.FdFunctionSelection,{className:"h-6 w-6"});case he.ESubPermissionType.ENTITY_METHOD:return O.jsx(_e.FdFunctionEntity,{className:"h-6 w-6"});case he.ESubPermissionType.DS_METHOD:return O.jsx(_e.FdFunctionDatastore,{className:"h-6 w-6"});case he.ESubPermissionType.DATACLASS_METHOD:return O.jsx(_e.FdFunctionDataclass,{className:"h-6 w-6"});default:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"})}},PL=({children:e})=>O.jsx("div",{className:"h-full w-full",children:O.jsx("div",{className:"flex h-full w-full flex-1 items-center justify-center",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 py-4 text-grey-200",children:[O.jsx(_e.FdInfoBold,{className:"h-10 w-10"}),O.jsx("div",{className:"text-center text-sm",children:e})]})})}),aa=({permissions:e,label:t,onToggle:r,onSelect:n,promoted:o,showIncluded:i,privileges:a,exists:s})=>{const c=e.find(u=>u.name===t);return c?O.jsxs("div",{className:"relative mx-auto flex w-fit items-center",children:[O.jsx(or,{value:c.checked||c.from.length===0||t==="promote"?c.checked:i&&c.from.length>0?null:!1,onChange:()=>r&&r(c),isInvalid:s===!1}),O.jsxs("div",{className:"absolute left-full translate-x-1/4 top-1/2 -translate-y-1/2 flex cursor-pointer items-center space-x-1",children:[t!=="promote"&&(c.checked&&(c.info||c.from.length>0)||!c.checked&&c.from.length>0)&&O.jsx(O.Fragment,{children:O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsxs("div",{className:"space-y-1 px-2",children:[c.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:c.from.map(u=>O.jsx("li",{className:"cursor-pointer list-disc font-bold hover:underline",onClick:()=>n(a[u].id),children:a[u].privilege}))})]})]}):null,c.info&&O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdInfoCircle,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"})," ",c.info]})]})})})]})}),(c.checked||c.from.length>0)&&["execute"].includes(t)&&!!(o!=null&&o.length)&&O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx(_e.FdCrown,{className:"h-3 w-3 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdInfoCircle,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsxs("span",{className:"mr-1",children:["Function is promoted with:"," "]}),o==null?void 0:o.map(u=>O.jsx("li",{className:"cursor-pointer list-disc font-bold hover:underline",onClick:()=>n(a[u].id),children:a[u].privilege}))]})]})})})})]})]})]}):null},Pde=({privilegeId:e,privileges:t})=>{const r=dr(),n=r.getCatalogMethods(),o=r.getDataclasses(),i=r.getSingletons(),a=t[e],[s,c]=R.useState([]),[u,d]=R.useState("");R.useEffect(()=>{d("")},[e]);const{isOpen:f,getMenuProps:h,getInputProps:v,getComboboxProps:b,highlightedIndex:g,getItemProps:m,selectedItem:x,openMenu:w}=fa({onInputValueChange(){c([])},items:[],itemToString(_){return _?_.applyTo:""},defaultHighlightedIndex:0,stateReducer:(_,C)=>{const{changes:N,type:P}=C;switch(P){case fa.stateChangeTypes.InputKeyDownArrowDown:return{...N,isOpen:!0,highlightedIndex:_.highlightedIndex<=s.length?_.highlightedIndex+1:0};case fa.stateChangeTypes.InputKeyDownArrowUp:return{...N,isOpen:!0,highlightedIndex:_.highlightedIndex>=0?_.highlightedIndex-1:s.length};case fa.stateChangeTypes.InputKeyDownEnter:const A=s[_.highlightedIndex];if(!A)return N;const j=he.addPermission(e,A,t);return r.actions.updatePrivileges(j),{...N,isOpen:!0,highlightedIndex:0}}return N}});R.useEffect(()=>{const _=a.resources.map(({resource:N,type:P,subType:A})=>({type:P,applyTo:N,subType:A})),C=Y1(u.toLowerCase(),n,Object.values(o),Object.values(i));c(C.filter(({applyTo:N,type:P,subType:A})=>!Al.find(_,{applyTo:N,type:P,subType:A})))},[u,a.resources]);const E=h({},{suppressRefError:!0}),S=R.useRef(null);return R.useEffect(()=>{f&&S.current&&S.current.focus()},[f]),O.jsxs("div",{className:"relative w-56 text-white group",...b(),children:[O.jsx("div",{...b(),children:O.jsx("input",{...v({},{suppressRefError:!0}),ref:S,type:"text",className:"block h-6 w-full rounded bg-grey-300 px-1 py-1.5 pl-2 pr-5 text-xs border-grey-500 focus:outline-none focus:ring-1 focus:ring-white focus:rounded-b-none focus:ring-inset",placeholder:"Create a permission",value:u,onChange:({target:{value:_}})=>d(_),onFocus:()=>{w()}})}),O.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center px-1",children:O.jsx(_e.FdDown,{className:"h-4 w-4 cursor-pointer",onMouseDown:_=>{_.preventDefault()},onClick:()=>{w()}})}),f&&O.jsx("ul",{...E,tabIndex:0,className:"absolute max-h-80 inset-x-0 top-full overflow-auto rounded-md border border-grey-50 bg-grey-900 p-0 text-grey-50 shadow-md group-focus-within:rounded-t-none group-focus-within:border-t-0",children:s.map((_,C)=>O.jsxs("li",{className:zt(x===_&&"font-bold","flex min-w-fit cursor-pointer items-center space-x-2 px-3 py-2 text-xs shadow-sm",{"bg-primary-hover":g===C,"font-bold":x===_}),...m({item:_,index:C}),onClick:()=>{const N=he.addPermission(e,_,t);r.actions.updatePrivileges(N)},children:[b$(_.type),O.jsx("span",{children:_.applyTo})]},`${_.applyTo}-${C}`))})]})};function Tde(e){const t=["datastore","singleton","dataclass","attribute","dsMethod","dataclassMethod","entityMethod","entityselMethod","singletonMethod"],r=e.reduce((n,o)=>{const[i]=o.resource.split("."),a=n.find(s=>s.prefix===i.toLowerCase());return a?(a.resources.push(o),n):[...n,{prefix:i.toLowerCase(),type:o.type,resources:[o]}]},[]);return r.sort((n,o)=>n.prefix==="ds"?-1:o.prefix==="ds"||n.prefix>o.prefix?1:-1),r.map(n=>({...n,resources:n.resources.sort((o,i)=>{const a=t.indexOf(o.type),s=t.indexOf(i.type);return a!==s?a-s:o.resource.toLowerCase()>i.resource.toLowerCase()?1:-1})})).reduce((n,o)=>[...n,...o.resources],[])}const Ade=({selectedPrivilege:e,onSelect:t,showIncluded:r,privileges:n})=>{const[o,i]=R.useState(null),[a,s]=R.useState(null),{styles:c,attributes:u}=Bd(o,a,{modifiers:[{name:"offset",options:{offset:[0,10]}}]}),d=dr(),[f,h]=R.useState([]),[v,b]=R.useState(""),{id:g}=e,m=R.useMemo(()=>he.getInheritedResources(g,n),[g,n[g].includes,n[g].resources]),x=R.useMemo(()=>he.getPromotions(g,n),[n[g]]);function w(L){h(D=>D.some(T=>L.includes(T))?D.filter(T=>!L.includes(T)):[...D,...L])}const E=async L=>{const{confirmed:D}=await d.actions.openModal({title:"Delete Privilege",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove this Privilege?",icon:"FdWarningDanger"});if(D){const T=he.removePermission(e.id,L,n);d.actions.updatePrivileges(T)}},S=async()=>{const{confirmed:L}=await d.actions.openModal({title:"Reset Permissions",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to reset permissions for this Privilege?",icon:"FdWarningDanger"});if(L){const D=he.resetResources(e.id,n);d.actions.updatePrivileges(D)}},C=m.filter(L=>f.length===0?!0:f.includes(L.type)).filter(({resource:L})=>v?new RegExp(Al.escapeRegExp(v),"i").test(L):!0),N=Tde(C),P=N.filter(L=>{const D=L.permissions.every(T=>!T.checked)&&L.permissions.some(T=>T.from.length>0);return r||!D}),A=(L,D)=>{const T=he.togglePermission(e.id,L,D,n);d.actions.updatePrivileges(T)},j=R.useMemo(()=>P.some(L=>L.exists===!1),[P]),M=async()=>{const{confirmed:L}=await d.actions.openModal({title:"Delete Privilege",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove these permissions?",views:{tips:[{type:"warning",message:"This action will remove all permissions that don't exist in the catalog for all privileges"}]},icon:"FdWarningDanger"}),D=Object.entries(n).map(([T,W])=>{const q=W.resources.filter(G=>!G.exists);return{[T]:q.map(G=>({applyTo:G.resource,type:G.type}))}}).reduce((T,W)=>({...T,...W}),{});if(L){const T=he.removeMultiplePermissions(D,n);d.actions.updatePrivileges(T)}};return O.jsxs(Mf,{className:"z-20 h-full flex-1 overflow-auto p-[15px] pt-0",style:{maxHeight:"calc(100vh - 5.5rem - 85px - 20px)"},children:[O.jsxs("table",{className:"relative h-full w-full",children:[O.jsx("thead",{className:"sticky top-0 z-20",children:O.jsxs("tr",{className:"border-b border-grey-100",children:[O.jsx("td",{className:"py-2",children:O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx("div",{className:"relative w-56",children:O.jsx(yt.Root,{children:O.jsxs(yt.Group,{children:[O.jsx(yt.Icon,{children:O.jsx(_e.FdSearch,{})}),O.jsx(yt.Field,{type:"text",placeholder:"Search available permissions",value:v,onChange:L=>{b(L.target.value)}}),O.jsx(un.Popover,{className:"flex items-center",children:({open:L})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{ref:i,children:O.jsx(yt.Icon,{isAction:!0,children:O.jsx(_e.FdAdjust,{})})}),L&&O.jsx(Ef,{children:O.jsxs(un.Popover.Panel,{ref:s,style:c.popper,...u.popper,className:"z-50 rounded-md border border-grey-50 bg-grey-900 px-4 py-2.5",static:!0,children:[O.jsx("h5",{className:"mb-2 text-sm text-grey-50",children:"Filter"}),O.jsxs("div",{className:"space-y-2 text-s",children:[O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("datastore"),onChange:()=>{w(["datastore"])},label:"Datastore",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("dataclass"),onChange:()=>{w(["dataclass"])},label:"Dataclass",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("singleton"),onChange:()=>{w(["singleton"])},label:"Singleton",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.some(D=>["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"].includes(D)),onChange:()=>{w(["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"])},label:"Functions",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("attribute"),onChange:()=>{w(["attribute"])},label:"Attribute",size:"sm"})})]})]})})]})})]})})}),O.jsx(Pde,{privilegeId:g,privileges:n}),O.jsx("div",{children:O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx("button",{className:"flex h-6 items-center space-x-1 rounded-md px-2 text-sm text-grey-50 hover:bg-primary-hover",onClick:S,children:O.jsx(_e.FdReload,{})})}),O.jsx(Cn,{container:yr(),children:O.jsxs(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"mb-1 flex max-w-xs items-center gap-x-1 rounded bg-primary-light px-2 py-2 text-s font-semibold text-primary-darker",children:[O.jsx(_e.FdBulb,{className:"m-0.5 h-4 w-4 flex-shrink-0"}),O.jsx("p",{children:"Resetting the privilege will remove all configured ressources"})]})})]})}),O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx("button",{className:zt("flex h-6 items-center space-x-1 rounded-md px-2 text-sm text-grey-50 hover:bg-primary-hover disabled:opacity-50 disabled:hover:bg-primary-dark"),onClick:M,disabled:!j,children:O.jsx(_e.FdClean,{className:"h-4 w-4"})})}),O.jsx(Cn,{container:yr(),children:O.jsxs(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"mb-1 flex max-w-xs items-center gap-x-1 rounded bg-primary-light px-2 py-2 text-s font-semibold text-primary-darker",children:[O.jsx(_e.FdBulb,{className:"m-0.5 h-4 w-4 flex-shrink-0"}),O.jsx("p",{children:"Delete all the non existing resources from privileges"})]})})]})]})}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Read"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Create"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Update"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Delete"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Execute"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Promote"})]})}),P.length?O.jsx("tbody",{children:P.map((L,D)=>{const T=L.permissions.some(W=>W.from.length>0);return O.jsxs("tr",{className:zt("group even:bg-grey-600",{"opacity-60":L.exists===!1}),children:[O.jsxs("td",{className:zt("group flex items-center gap-3 py-2 text-xs group-hover:rounded-l group-hover:bg-grey-300",L.exists===!1?"text-negative-400":"text-white",{"border-b-[0.5px] border-grey-300":!1}),children:[b$(L.type),L.resource,O.jsx(he.Tooltip,{placement:"top",label:"Remove Permission",isDisabled:T,container:yr(),children:O.jsx("button",{onClick:()=>{T?he.toastSubject.next({kind:"info",markdown:!0,message:`<div className="flex gap-x-3"><h3 className="font-bold">Info:</h3><p className="font-normal">Inherited permissions can't be removed</p></div>`,customIcon:_e.FdInfoBold}):E({applyTo:L.resource,type:L.type})},className:zt("flex flex-shrink-0 items-center justify-center rounded p-1 opacity-0 group-hover:opacity-100",T?"hover:bg-grey-300 group-hover:opacity-70":"hover:bg-primary-hover"),children:O.jsx(_e.FdPlus,{className:"h-4 w-4 rotate-45 transform text-white"})})})]}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"read",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"create",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"update",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"drop",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{promoted:x[L.resource],permissions:L.permissions,showIncluded:r,label:"execute",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:rounded-r group-hover:bg-grey-300 ",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"promote",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})})]},D)})}):null]}),!N.length&&v?O.jsx(PL,{children:"The Permission you're looking for can't be found "}):null,!N.length&&!v?O.jsxs(PL,{children:["This Privilege has no Permissions configured yet ",O.jsx("br",{}),'Add a new permission by using the "Create a permission" input above']}):null]})},kde=({onCreate:e})=>{const t=dr(),r=t.getPrivileges(),[n,o]=R.useState(null),[i,a]=R.useState(null),[s,c]=R.useState(""),[u,d]=R.useState(null),{styles:f,attributes:h}=Bd(n,i,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"});return R.useEffect(()=>{c(""),d(null)},[i]),O.jsx(un.Popover,{children:({open:v,close:b})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{className:"rounded p-1 hover:bg-primary-hover","data-cy":"New-priv-btn",ref:o,children:O.jsx("span",{children:O.jsx(_e.FdPlus,{className:"h-4 w-4 text-white"})})}),v&&O.jsx(Ef,{children:O.jsx(un.Popover.Panel,{ref:a,style:f.popper,...h.popper,"data-cy":"New-priv-pop-up",className:"z-50",static:!0,children:O.jsxs(fn,{className:"min-w-[256px] border rounded px-4 py-2 text-xs shadow-md",depth:3,borderType:"light",children:[O.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Create New Privilege"}),O.jsx("div",{className:"mt-2",children:O.jsxs("label",{className:"flex items-center space-x-4",children:[O.jsx("span",{children:"Name"}),O.jsxs(yt.Root,{className:"w-full",color:u?"negative":"primary",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{autoFocus:!0,value:s,onChange:g=>c(g.target.value),onKeyDown:g=>{if(g.key==="Enter"){d(null);try{const m=he.createPrivilege(s,r),x=t.actions.updatePrivileges(m),w=Object.values(x.payload).find(E=>E.privilege===s);w&&(e(w),b())}catch(m){d(m.message)}}},type:"text"})}),u&&O.jsx(yt.Message,{children:u})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[O.jsx("button",{className:"rounded border border-primary-dark bg-primary-dark px-4 py-1 hover:border-primary-hover hover:bg-primary-hover",onClick:()=>{d(null);try{const g=he.createPrivilege(s,r),m=t.actions.updatePrivileges(g),x=Object.values(m.payload).find(w=>w.privilege===s);x&&e(x),b()}catch(g){d(g.message)}},children:"Create"}),O.jsx("button",{className:"rounded border border-grey-100 px-4 py-1 text-grey-100 hover:bg-white hover:text-primary-dark",onClick:()=>b(),children:"Cancel"})]})]})})})]})})},Dde=()=>{const e=dr(),t=e.getCatalog(),r=e.getPrivileges(),n=R.useMemo(()=>{if(t===null)return r;const u=XB(r,Object.values((t==null?void 0:t.dataClasses)??{}));return ZB(u,t)},[r,t]),[o,i]=R.useState(null),a=R.useMemo(()=>Object.keys(n),[n]);R.useEffect(()=>{o&&n[o.id]||!a.length||i(n[a[0]])},[n]),R.useEffect(()=>{a.length<2&&c(!0)},[a.length]);const[s,c]=R.useState(!0);return O.jsxs("div",{className:"flex flex-1 h-full",children:[O.jsxs(fn,{depth:1,className:"flex h-full w-[356px] flex-col",children:[O.jsxs("div",{className:"flex flex-shrink-0 items-center justify-between px-3.5 py-[10px]",children:[O.jsxs("div",{className:"flex items-center space-x-1 text-[#DDE1E6]",children:[O.jsx("span",{children:O.jsx(_e.FdGroup,{className:"h-[14px] w-[14px]"})}),O.jsx("span",{className:"text-[11px] font-semibold",children:"Privileges"})]}),O.jsx(kde,{onCreate:u=>{i(u)}})]}),O.jsx(tce,{privileges:n,selectedPrivilege:o,selectPrivilege:u=>{i(u)}})]}),o&&n[o.id]?O.jsxs(fn,{depth:1,className:"privileges-container relative flex flex-1 flex-col overflow-x-auto border-l-[0.5px]",children:[O.jsxs("div",{className:"mb-1 flex h-full w-full flex-col items-stretch",children:[o.privilege!=="guest"?O.jsx(Jae,{privileges:n,selectedPrivilege:o,onSelect:u=>i(r[u]),setShowIncluded:c,showIncluded:s}):null,O.jsx(Ade,{privileges:n,selectedPrivilege:o,onSelect:u=>i(r[u]),showIncluded:s})]}),O.jsx(Mde,{privileges:n,selectedPrivilege:o,setSelectedPrivilege:i})]}):O.jsx(M5,{tab:"Privilege"})]})},Mde=({privileges:e,selectedPrivilege:t,setSelectedPrivilege:r})=>{const[n,o]=R.useState(!1);return O.jsx(he.Panel,{path:he.ROLES_TAB_PATH,isOpen:n,onOpen:()=>o(!0),onClose:()=>o(!1),children:O.jsx("div",{className:"h-full w-full px-3 pb-3",children:O.jsx(fn,{depth:2,className:"h-full w-full rounded",children:O.jsx(lae,{dict:e,data:he.getGraphData(t.id,e),onSelect:i=>r(e[i])})})})})},jde=({role:e})=>{var _;const t=dr(),[r,n]=R.useState(e),[o,i]=R.useState(e.role),[a,s]=R.useState(null),c=t.getPrivileges(),u=((_=r.privileges)==null?void 0:_.filter(C=>c[C]&&c[C].privilege!=="guest").length)||0,d=t.getRoles(),{selectedRole:f,selectRole:h}=d1(),[v,b]=R.useState(!1),g=he.useOutsideClick(()=>{v&&x()});he.useDidMountEffect(()=>{o!==e.role&&i(e.role)},[e.role]),R.useEffect(()=>{e.role||b(!0)},[]),R.useEffect(()=>{n(e)},[e]);const m=()=>{s(null),b(!0)},x=()=>{s(null),e.role&&e.role===o&&b(!1);try{const C=he.saveRole({...r,role:o},d);t.actions.updateRoles(C),b(!1)}catch(C){s(C.message)}},w=async C=>{C.stopPropagation();const{confirmed:N}=await t.actions.openModal({title:"Delete Role",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove this Role?",icon:"FdWarningDanger"});N&&E()},E=()=>{const C=he.removeRole(r.id,d),N=Object.keys(C);if(f!==r.id){dispatch(updateRoles(C));return}if(N.length===0)h(null);else{const P=Object.keys(d),A=P.indexOf(r.id),j=Math.max(0,A-1),M=P[j];A===0?h(N[0]):C[M]?h(M):h(N[0])}t.actions.updateRoles(C)},S=(C=null)=>{if(C&&C.stopPropagation(),!e.role){E();return}b(!1),i(e.role)};return O.jsx(O.Fragment,{children:O.jsxs(fn,{depth:4,borderType:f===r.id?"primary":f!==r.id?"light":"default",className:zt("rounded border p-2"),role:"button","data-cy":"privilegeCard",onClick:()=>{h(r.id)},ref:g,children:[O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex flex-1 items-center",children:[O.jsx("span",{className:"mr-4",children:O.jsx(_e.FdGroup,{className:"h-6 w-6"})}),v?O.jsxs(yt.Root,{color:a?"negative":"primary",className:"flex-1 mr-2",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{type:"text",value:o,onChange:({target:{value:C}})=>{i(C)},onKeyDown:C=>{C.key==="Enter"&&x(),C.key==="Escape"&&S()},onBlur:()=>S(),placeholder:"role",autoComplete:"off",autoFocus:!0})}),a&&O.jsx(yt.Message,{children:a})]}):O.jsx("span",{className:"inline-block grow overflow-hidden truncate whitespace-nowrap text-xs font-bold",title:o,children:r.role}),O.jsx("div",{className:zt("justify-between ml-auto flex w-fit items-center gap-x-2"),children:v?O.jsxs(O.Fragment,{children:[O.jsx("button",{onClick:x,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdSave,{className:"h-4 w-4 text-grey-50"})}),O.jsx("button",{onClick:S,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdClose,{className:"h-4 w-4 text-grey-50"})})]}):O.jsxs(O.Fragment,{children:[O.jsx("button",{onClick:m,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdPen,{className:"h-4 w-4 text-grey-50"})}),O.jsx("button",{onClick:C=>w(C),className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdTrash,{className:"h-4 w-4 text-grey-50"})})]})})]})}),O.jsxs("span",{className:zt("ml-[43px] py-1 text-xs"),children:[u," Privilege",u>1?"s":""]})]})})},y$=(e,t)=>e?t[e]:null,TL=(e,t,r)=>{const n=y$(e,r);return n?Object.values(r).reduce((o,i)=>i.id===e?n.privileges.includes(t)?{...o,[n.id]:{...n,privileges:n.privileges.filter(a=>a!==t)}}:{...o,[n.id]:{...n,privileges:[...n.privileges,t]}}:{...o,[i.id]:i},{}):r},Lde=()=>{const e=dr(),t=e.getPrivileges(),r=e.getRoles(),{selectedRole:n}=d1(),o=y$(n,r),i=(a,s)=>s&&s.privileges.includes(a.id);return O.jsxs("div",{className:"w-full border-b border-grey-900 p-4 ",children:[O.jsx("div",{className:"mb-4 flex items-center gap-x-5 text-white",children:O.jsx("h4",{className:"text-[13px] font-semibold ",children:"Privileges"})}),O.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[O.jsx("div",{"data-cy":"item=>Permisions",className:zt("inline-flex items-center gap-1 space-x-1 rounded bg-primary-darker px-2 py-0.5 text-xs font-semibold italic text-white"),children:"guest"}),Object.values(t).filter(a=>i(a,o)&&a.privilege!=="guest").map((a,s)=>O.jsxs("div",{"data-cy":"item=>Permisions",className:zt("inline-flex cursor-pointer items-center gap-1 space-x-1 rounded px-2 py-0.5",{"bg-primary-dark text-white":i(a,o),"bg-grey-300 text-grey-100":!i(a,o)}),onClick:()=>{const c=TL(o.id,a.id,r);e.actions.updateRoles(c)},children:[O.jsx("span",{className:"text-xs",children:a.privilege}),O.jsx("button",{className:"focus:outline-none",children:i(a,o)?O.jsx(_e.FdMinus,{className:"h-[14px] w-[14px]"}):O.jsx(_e.FdPlus,{className:"h-[14px] w-[14px]"})})]},s)),Object.values(t).filter(a=>!i(a,o)&&a.privilege!=="guest").map((a,s)=>O.jsxs("div",{"data-cy":"item=>Permisions",className:zt("inline-flex cursor-pointer items-center gap-1 space-x-1 rounded px-2 py-0.5",{"bg-primary-dark text-white":i(a,o),"bg-grey-300 text-grey-100":!i(a,o)}),onClick:()=>{const c=TL(o.id,a.id,r);e.actions.updateRoles(c)},children:[O.jsx("span",{className:"text-xs",children:a.privilege}),O.jsx("button",{className:"text-white focus:outline-none",children:i(a,o)?O.jsx(_e.FdMinus,{className:"h-[14px] w-[14px]"}):O.jsx(_e.FdPlus,{className:"h-[14px] w-[14px]"})})]},s))]})]})},qde=({children:e})=>O.jsx("div",{className:"h-full w-full",children:O.jsx("div",{className:"flex h-full w-full flex-1 items-center justify-center",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 py-4",children:[O.jsx(_e.FdInfoBold,{className:"absolute -right-full h-10 w-10 translate-x-1"}),O.jsx("div",{className:"text-center text-sm",children:e})]})})}),H_=(e,t,r,n=!1)=>{const o=e.applyTo,i=e.type===he.EPermissionType.DATACLASS?"ds":o.split(".")[0],a={...t,...r},s=()=>({value:!n,inherited:!1,from:[],explicitly:!1}),c={read:s(),create:s(),update:s(),drop:s(),execute:s(),promote:s()},u=f=>{f.forEach(h=>{a[h]&&(a[h].resources.forEach(v=>{if(v.resource===o||v.resource===i){const b=H_(e,t,{[h]:a[h]},n);Object.values(v.permissions).forEach(g=>{c[g.name].explicitly||(!c[g.name].from.includes(a[h].privilege)&&g.checked&&c[g.name].from.push(a[h].privilege),c[g.name].inherited=c[g.name].inherited||b[g.name].value||b[g.name].inherited)})}}),a[h].includes.length>0&&u(a[h].includes))})};if(Object.values(r).forEach(f=>{f.resources.forEach(h=>{h.resource===o&&Object.values(h.permissions).forEach(v=>{v.checked&&(c[v.name].explicitly=!0,n&&(c[v.name].value=!0))})}),(f.includes.length>0||f.privilege==="guest")&&u(f.includes)}),Object.values(t).forEach(f=>{f.resources.forEach(h=>{h.resource===o&&(f.privilege==="guest"?Object.values(h.permissions).forEach(v=>{v.checked&&(c[v.name].explicitly=!0,n&&(c[v.name].value=!0))}):Object.values(h.permissions).forEach(v=>{!c[v.name].explicitly&&v.checked&&(n?c[v.name].value=!0:c[v.name].value=!1)}))})}),(n?Object.entries(c).some(([f,h])=>f!=="promote"&&!h.value&&!h.explicitly):Object.entries(c).some(([f,h])=>f!=="promote"&&h.value&&!h.explicitly))&&![he.EPermissionType.DATASTORE,he.EPermissionType.SINGLETON].includes(e.type)){const f={applyTo:i,type:e.type===he.EPermissionType.DATACLASS?he.EPermissionType.DATASTORE:e.type===he.EPermissionType.SINGLETON_METHOD?he.EPermissionType.SINGLETON:he.EPermissionType.DATACLASS},h=H_(f,t,r,n),v=b=>{let g=c[b].value;return n?!c[b].value&&!c[b].explicitly&&(g=h[b].value):c[b].value&&!c[b].explicitly&&(g=h[b].value),{value:g,inherited:c[b].inherited||h[b].inherited,from:c[b].from.length>0?c[b].from:h[b].from,explicitly:c[b].explicitly}};return{read:v("read"),create:v("create"),update:v("update"),drop:v("drop"),execute:v("execute"),promote:v("promote")}}return{read:c.read,create:c.create,update:c.update,drop:c.drop,execute:c.execute,promote:c.promote}},zde=e=>{switch(e){case"dataclass":return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"});case"singleton":return O.jsx(_e.FdSingleton,{className:"h-6 w-6"});case"datastore":return O.jsx(_e.FdModel3,{className:"h-6 w-6"});case"attribute":return O.jsx(_e.FdTableColumn,{className:"h-6 w-6"});case"method":return O.jsx(_e.FdCode,{className:"h-6 w-6"});case"singletonMethod":return O.jsx(_e.FdFunctionSingleton,{className:"h-6 w-6"});case"entityselMethod":return O.jsx(_e.FdFunctionSelection,{className:"h-6 w-6"});case"entityMethod":return O.jsx(_e.FdFunctionEntity,{className:"h-6 w-6"});case"dsMethod":return O.jsx(_e.FdFunctionDatastore,{className:"h-6 w-6"});case"dataclassMethod":return O.jsx(_e.FdFunctionDataclass,{className:"h-6 w-6"});default:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"})}},Ls=sE,qs=lE,wa=({privileges:e,permission:t,hasChild:r,depth:n,isChild:o=!1,className:i,inSearch:a,toggleCollapse:s,collapsed:c,isRestrictedByDefault:u,toastMessageCallback:d})=>{const[f,h]=t.applyTo.split("."),v=R.useMemo(()=>H_(t,e.otherPrivs,e.rolePrivs,u),[e,t,u]);return O.jsxs("tr",{className:zt("group even:bg-grey-600",i),children:[O.jsxs("td",{className:zt("flex h-full w-full items-center gap-3 p-0 text-xs group-hover:rounded-l group-hover:bg-grey-300",{"px-1":a}),children:[Array(n).fill("").map((b,g)=>O.jsx("div",{className:zt("ml-1.5 mr-1 h-full w-0.5 border-l-2 border-grey-100",{"mr-0.5":o})},g)),r&&O.jsx("button",{onClick:s,className:"w-3",children:c?O.jsx(_e.FdRight,{className:"inline h-4 w-4"}):O.jsx(_e.FdDown,{className:"inline h-4 w-4"})}),zde(t.type),a?t.applyTo:h||f]}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.read.value||v.read.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.read.value&&v.read.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.read.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.read.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.create.value||v.create.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.create.value&&v.create.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.create.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.create.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.update.value||v.update.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.update.value&&v.update.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.update.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.update.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.drop.value||v.drop.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.drop.value&&v.drop.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.drop.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.drop.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:rounded-r group-hover:bg-grey-300",children:t.type!=="attribute"&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.execute.value||v.execute.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.execute.value&&v.execute.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.execute.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.execute.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})})]})},AL=({depth:e,permission:t,privileges:r,childCollapsed:n,didChildCollapsed:o,toastMessageCallback:i})=>{const[a,s]=R.useState(n),c=dr(),u=c.getRestrictedByDefault(),d=c.getPrivileges();return R.useEffect(()=>{n===!0&&s(!0)},[n]),O.jsxs(O.Fragment,{children:[O.jsx(wa,{privileges:r,permission:t,isChild:!0,depth:e,hasChild:!0,toggleCollapse:()=>{const f=!a;s(f),o==null||o(f)},isRestrictedByDefault:u,allPrivileges:d,collapsed:a,toastMessageCallback:i}),!a&&O.jsxs(O.Fragment,{children:[t.attributes.map((f,h)=>O.jsx(wa,{privileges:r,permission:f,depth:e+1,isRestrictedByDefault:u,allPrivileges:d,toastMessageCallback:i},`${f.type}-${h}`)),t.methods.map((f,h)=>O.jsx(wa,{privileges:r,permission:f,depth:e+1,isRestrictedByDefault:u,allPrivileges:d,toastMessageCallback:i},`${f.type}-${h}`))]})]})},Bde=({selectedRole:e})=>{const[t,r]=R.useState(null),[n,o]=R.useState(null),{styles:i,attributes:a}=Bd(t,n,{modifiers:[{name:"offset",options:{offset:[0,10]}}]}),s=dr(),c=s.getRestrictedByDefault(),u=s.getPrivileges(),[d,f]=R.useState([]),[h,v]=R.useState(""),b=s.getCatalogMethods(),g=s.getDataclasses(),m=s.getSingletons(),[x,w]=R.useState({}),[E,S]=R.useState([]);R.useEffect(()=>{const q=uae(b,Object.values(g),Object.values(m));w(q)},[e]);function _(q){const G=["datastore","singleton","dataclass","attribute","dsMethod","dataclassMethod","entityMethod","entityselMethod","singletonMethod"];return q.sort((F,J)=>{const z=G.indexOf(F.type),U=G.indexOf(J.type);return z!==U?z-U:F.applyTo.toLowerCase()>J.applyTo.toLowerCase()?1:-1})}R.useEffect(()=>{S(_(Y1(h,b,Object.values(g),Object.values(m)).filter(q=>d.length?d.includes(q.type):!0)))},[d,h]);const[C,N]=R.useState(!1),P=q=>{f(G=>G.some(F=>q.includes(F))?G.filter(F=>!q.includes(F)):[...G,...q])},A=s.getRoles(),j={toggleAllCollapsed:q=>{q.allCollapsed=!q.allCollapsed},toggleChildCollapsed:q=>{q.childCollapsed=!q.childCollapsed},setAllCollapsed:(q,G)=>{q.allCollapsed=G},setChildCollapsed:(q,G)=>{q.childCollapsed=G}},M=R.useMemo(()=>{const q=Object.values(u).find(U=>U.privilege==="guest"),G=A[e],F=G?Object.fromEntries(G.privileges.map(U=>[U,u[U]]).filter(([,U])=>!!U)):{};if(c)return{rolePrivs:F,otherPrivs:q?{[q.id]:q}:{}};const J=q?{[q.id]:{...q,active:!0}}:{},z=Object.fromEntries(Object.entries(u).filter(([U])=>U!==(q==null?void 0:q.id)&&!(G!=null&&G.privileges.includes(U))).map(([U,oe])=>[U,{...oe,active:!1}]));return{rolePrivs:F,otherPrivs:{...J,...z}}},[u,A,e,c]),{state:{allCollapsed:L,childCollapsed:D},dispatch:T}=he.useEnhancedState({allCollapsed:!1,childCollapsed:!1},j,"Table Collapse Store"),W=()=>{he.toastSubject.next({kind:"info",markdown:!0,message:"**Info:** You can add or modify permissions only in the Privilege section.",customIcon:_e.FdInfoCircle})};return O.jsxs(Mf,{className:"z-20 h-full flex-1 overflow-auto p-[15px] pt-0",style:{maxHeight:"calc(100vh - 5.5rem - 85px - 20px)"},children:[O.jsxs("table",{className:"relative h-full w-full",children:[O.jsx("thead",{className:"sticky top-0 z-20",children:O.jsxs("tr",{className:"border-b border-grey-100",children:[O.jsx("td",{className:"py-2",children:O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx(he.Tooltip,{label:"Collapse All",placement:"top",container:yr(),children:O.jsx("button",{onClick:()=>{D?(T.setAllCollapsed(!0),N(!0)):T.setChildCollapsed(!0)},className:zt("cursor-pointer rounded-md p-1 hover:bg-primary-hover focus:outline-none",{"pointer-events-none text-grey-200":L,"text-white":!L}),children:O.jsx(_e.FdCollapseAll,{className:"h-4 w-4"})})}),O.jsx("div",{className:"relative w-56",children:O.jsx(yt.Root,{children:O.jsxs(yt.Group,{children:[O.jsx(yt.Icon,{children:O.jsx(_e.FdSearch,{})}),O.jsx(yt.Field,{type:"text",placeholder:"Search",value:h,onChange:q=>{v(q.target.value)}}),O.jsx(un.Popover,{className:"flex items-center",children:({open:q})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{ref:r,children:O.jsx(yt.Icon,{isAction:!0,children:O.jsx(_e.FdAdjust,{})})}),q&&O.jsx(Ef,{children:O.jsxs(un.Popover.Panel,{ref:o,style:i.popper,...a.popper,className:"z-50 rounded-md border border-grey-50 bg-grey-900 px-4 py-2.5 text-xs text-grey-50",static:!0,children:[O.jsx("h5",{className:"mb-2 text-sm",children:"Filter"}),O.jsxs("div",{className:"space-y-2 text-s",children:[O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("datastore"),onChange:()=>{P(["datastore"])},label:"Datastore",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("dataclass"),onChange:()=>{P(["dataclass"])},label:"Dataclass",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("singleton"),onChange:()=>{P(["singleton"])},label:"Singleton",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.some(G=>["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"].includes(G)),onChange:()=>{P(["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"])},label:"Functions",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("attribute"),onChange:()=>{P(["attribute"])},label:"Attribute",size:"sm"})})]})]})})]})})]})})})]})}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"read"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Create"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Update"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Delete"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Execute"})]})}),O.jsx("tbody",{className:"relative",children:d.length||h?E.map((q,G)=>O.jsx(wa,{privileges:M,permission:q,depth:0,inSearch:!0,isRestrictedByDefault:c,allPrivileges:u,toastMessageCallback:W},`${q.type}-${G}`)):Object.values(x).map((q,G)=>O.jsxs(R.Fragment,{children:[O.jsx(wa,{privileges:M,permission:q,isRestrictedByDefault:c,allPrivileges:u,hasChild:!0,depth:0,toggleCollapse:()=>{const F=!C;N(F),T.setAllCollapsed(!F&&L?!1:L)},collapsed:C,toastMessageCallback:W}),q.type==="datastore"&&!C?O.jsxs(O.Fragment,{children:[q.methods.map((F,J)=>O.jsx(wa,{privileges:M,isRestrictedByDefault:c,allPrivileges:u,permission:F,depth:1,collapsed:L||!1,toastMessageCallback:W},`${F.type}-${J}`)),q.dataClasses.map((F,J)=>O.jsx(AL,{depth:1,privileges:M,permission:F,childCollapsed:D,didChildCollapsed:z=>{T.setChildCollapsed(z?D:!1)},toastMessageCallback:W},`${F.type}-${J}`))]}):null,q.singletons.map((F,J)=>O.jsx(AL,{depth:0,privileges:M,permission:F,childCollapsed:L,didChildCollapsed:z=>{T.setAllCollapsed(z?L:!1)},toastMessageCallback:W},`${F.type}-${J}`))]},`${q.type}-${G}`))})]}),(h||d.length)&&!E.length?O.jsx(qde,{children:"The Permission you're looking for can't be found "}):null]})},Fde=()=>{const e=dr(),t=e.getRoles(),[r,n]=R.useState(null),[o,i]=R.useState(null),[a,s]=R.useState(""),[c,u]=R.useState(null),{styles:d,attributes:f}=Bd(r,o,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"});R.useEffect(()=>{s(""),u(null)},[o]);const h=()=>{if(!a)throw new Error("Please enter a valid name");if(Object.values(t).find(m=>m.role.toLowerCase()===a.toLowerCase()))throw new Error(`A role with the name ${a} already exists`);const b=sF.generate(),g=he.createRole(b,a,t);e.actions.updateRoles(g)};return O.jsx(un.Popover,{children:({open:v,close:b})=>{const g=()=>{u(null);try{he.validateName(a),h(),b()}catch(m){u(m.message)}};return O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{className:"rounded p-1 hover:bg-primary-hover","data-cy":"New-priv-btn",ref:n,children:O.jsx("span",{children:O.jsx(_e.FdPlus,{className:"h-4 w-4 text-white"})})}),v&&O.jsx(Ef,{children:O.jsx(un.Popover.Panel,{ref:i,style:d.popper,...f.popper,"data-cy":"New-priv-pop-up",className:"z-50",static:!0,children:O.jsxs(fn,{className:"min-w-[256px] border rounded px-4 py-2 text-xs shadow-md",depth:3,borderType:"light",children:[O.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Create New Role"}),O.jsx("div",{className:"mt-2",children:O.jsxs("label",{className:"flex items-center space-x-4",children:[O.jsx("span",{className:"text-grey-100",children:"Name"}),O.jsxs(yt.Root,{color:c?"negative":"primary",className:"w-full",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{autoFocus:!0,value:a,onChange:m=>s(m.target.value),onKeyDown:m=>{m.key==="Enter"&&g()},type:"text"})}),c&&O.jsx(yt.Message,{children:c})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[O.jsx("button",{className:"rounded border border-primary-dark bg-primary-dark px-4 py-1 hover:border-primary-hover hover:bg-primary-hover",onClick:()=>{g()},children:"Create"}),O.jsx("button",{className:"rounded border border-grey-100 px-4 py-1 text-grey-100 hover:bg-white hover:text-primary-dark",onClick:()=>b(),children:"Cancel"})]})]})})})]})}})},$de=()=>{const t=dr().getRoles(),{selectedRole:r}=d1();return O.jsxs("div",{className:"flex flex-1 h-full",children:[O.jsxs(fn,{depth:1,className:"flex h-full w-[356px] flex-col",children:[O.jsxs("div",{className:"flex flex-shrink-0 items-center justify-between px-3.5 py-[10px]",children:[O.jsxs("div",{className:"flex items-center space-x-1 text-[#DDE1E6]",children:[O.jsx("span",{children:O.jsx(_e.FdGroup,{className:"h-[14px] w-[14px]"})}),O.jsx("span",{className:"text-[11px] font-semibold",children:"Roles"})]}),O.jsx(Fde,{})]}),O.jsx("div",{className:"flex-1 space-y-4 overflow-auto p-4 pb-10 pt-1",children:Object.values(t).length>0?Object.values(t).sort((n,o)=>he.localeCompare(n.role,o.role)).map((n,o)=>O.jsx(jde,{role:n},o)):O.jsx("div",{className:"flex h-full items-center justify-center",children:O.jsx("div",{className:"flex flex-1 items-center justify-center bg-grey-800",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 text-grey-200",children:[O.jsx(_e.FdInfoBold,{className:"h-10 w-10"}),O.jsx("div",{className:"font-semibold",children:"There are no roles"}),O.jsxs("div",{className:"flex items-center text-sm",children:["Create a new role by clicking on the"," ",O.jsx(_e.FdPlus,{className:"ml-2 inline h-4 w-4 text-white"})]})]})})})})]}),O.jsx(fn,{depth:1,className:zt("relative flex h-full w-full flex-1 flex-col items-stretch overflow-x-auto",{"border-l-[0.5px]":r}),children:O.jsx("div",{className:"flex h-full w-full select-none flex-col",children:r?O.jsxs(O.Fragment,{children:[O.jsx(Lde,{}),O.jsx(Bde,{selectedRole:r})]}):O.jsx(M5,{tab:"Role"})})})]})},x$=()=>{const e=dr(),t=e.getQodly(),r=e.getSelectedTab(),n=e.getForceLogin(),o=e.getRestrictedByDefault(),i=R.useRef();return O.jsx("div",{className:"absolute inset-0 flex flex-1 overflow-hidden",children:O.jsx("div",{className:"relative flex flex-1 overflow-x-auto","data-cy":"Roles&Privileges-editor-cy",ref:a=>i.current=a,children:O.jsxs("div",{className:"flex w-full flex-col",children:[O.jsx(WK,{activeTab:r,forceLogin:n,restrictedByDefault:o,onTabChange:a=>{e.actions.toggleTab(a)},onForceLoginChange:a=>{e.actions.toggleForceLogin(a)},onRestrictedByDefaultChange:a=>{e.actions.toggleRestrictedByDefault(a)},qodly:t}),r==="roles"?O.jsx(UK,{children:O.jsx($de,{})}):O.jsx(Dde,{})]})})})},Vde=()=>{const{modals:e,closeModal:t,editModal:r}=Zae();return O.jsx(O.Fragment,{children:e.map((n,o)=>O.jsx(he.Modal,{hasOverlay:o===0,...n,onClose:t,onEdit:r,container:yr()},n.id))})},Hde=({initialValue:e,onChange:t,...r})=>{const n=dr(),o=n.getRolesFlags(),i=n.getRolesAndPrivileges();return R.useEffect(()=>{if(e)try{const a=JSON.parse(e);if(Al.isEqual(a,i))return;n.actions.setRolesContent({content:a,flags:{touched:!1}})}catch(a){console.error("[Roles Editor Standalone] Error while parsing the initial value:",a)}},[e]),he.useDidMountEffect(()=>{if(o.touched&&t)try{const a=JSON.stringify(i,null,2);t(a)}catch(a){console.error("[Roles Editor Standalone] Error on value stringify:",a)}},[i]),O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"relative h-screen z-10 overflow-hidden",children:O.jsx(x$,{...r})}),O.jsx(Vde,{})]})},Wde=e=>{const t=Xae();return O.jsx(QB,{adapter:t,children:O.jsx(he.TipsProvider,{children:O.jsx(Hde,{...e})})})},Ude=e=>O.jsx(Kae,{children:O.jsx(Wde,{...e})});exports.ROLES_EDITOR_SCOPE_CLASS=kL.ROLES_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=QB;exports.Roles=x$;exports.Standalone=Ude;exports.useReduxAdapter=vae;
|
|
125
|
+
`),R.useEffect(function(){return d=o.ref||d,f.current&&(u=new Rd(f.current,Su(Su(Su(Su({},Ide(g)),v),d&&{scrollableNode:d.current}),h.current&&{contentNode:h.current})),typeof t=="function"?t(u):t&&(t.current=u)),function(){u.unMount(),u=null,typeof t=="function"&&t(null)}},[]),R.createElement(c,Nd({ref:f,"data-simplebar":!0},b),R.createElement("div",{className:"simplebar-wrapper"},R.createElement("div",{className:"simplebar-height-auto-observer-wrapper"},R.createElement("div",{className:"simplebar-height-auto-observer"})),R.createElement("div",{className:"simplebar-mask"},R.createElement("div",{className:"simplebar-offset"},typeof r=="function"?r({scrollableNodeRef:d,contentNodeRef:h}):R.createElement("div",Nd({},o,{className:"simplebar-content-wrapper".concat(o.className?" ".concat(o.className):"")}),R.createElement("div",{className:"simplebar-content"},r)))),R.createElement("div",{className:"simplebar-placeholder"})),R.createElement("div",{className:"simplebar-track simplebar-horizontal"},R.createElement("div",{className:"simplebar-scrollbar"})),R.createElement("div",{className:"simplebar-track simplebar-vertical"},R.createElement("div",{className:"simplebar-scrollbar"})))});Mf.displayName="SimpleBar";Mf.propTypes={children:pe.oneOfType([pe.node,pe.func]),scrollableNodeProps:pe.object,tag:pe.string};const Id=sE,Pd=lE,b$=e=>{switch(e){case he.EPermissionType.DATACLASS:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"});case he.EPermissionType.SINGLETON:return O.jsx(_e.FdSingleton,{className:"h-6 w-6"});case he.EPermissionType.DATASTORE:return O.jsx(_e.FdModel3,{className:"h-6 w-6"});case he.EPermissionType.ATTRIBUTE:return O.jsx(_e.FdTableColumn,{className:"h-6 w-6"});case he.EPermissionType.METHOD:return O.jsx(_e.FdCode,{className:"h-6 w-6"});case he.EPermissionType.SINGLETON_METHOD:return O.jsx(_e.FdFunctionSingleton,{className:"h-6 w-6"});case he.ESubPermissionType.ENTITY_SEL_METHOD:return O.jsx(_e.FdFunctionSelection,{className:"h-6 w-6"});case he.ESubPermissionType.ENTITY_METHOD:return O.jsx(_e.FdFunctionEntity,{className:"h-6 w-6"});case he.ESubPermissionType.DS_METHOD:return O.jsx(_e.FdFunctionDatastore,{className:"h-6 w-6"});case he.ESubPermissionType.DATACLASS_METHOD:return O.jsx(_e.FdFunctionDataclass,{className:"h-6 w-6"});default:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"})}},PL=({children:e})=>O.jsx("div",{className:"h-full w-full",children:O.jsx("div",{className:"flex h-full w-full flex-1 items-center justify-center",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 py-4 text-muted",children:[O.jsx(_e.FdInfoBold,{className:"h-10 w-10"}),O.jsx("div",{className:"text-center text-sm",children:e})]})})}),aa=({permissions:e,label:t,onToggle:r,onSelect:n,promoted:o,showIncluded:i,privileges:a,exists:s})=>{const c=e.find(u=>u.name===t);return c?O.jsxs("div",{className:"relative mx-auto flex w-fit items-center",children:[O.jsx(or,{value:c.checked||c.from.length===0||t==="promote"?c.checked:i&&c.from.length>0?null:!1,onChange:()=>r&&r(c),isInvalid:s===!1}),O.jsxs("div",{className:"absolute left-full translate-x-1/4 top-1/2 -translate-y-1/2 flex cursor-pointer items-center space-x-1",children:[t!=="promote"&&(c.checked&&(c.info||c.from.length>0)||!c.checked&&c.from.length>0)&&O.jsx(O.Fragment,{children:O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsxs("div",{className:"space-y-1 px-2",children:[c.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:c.from.map(u=>O.jsx("li",{className:"cursor-pointer list-disc font-bold hover:underline",onClick:()=>n(a[u].id),children:a[u].privilege}))})]})]}):null,c.info&&O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdInfoCircle,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"})," ",c.info]})]})})})]})}),(c.checked||c.from.length>0)&&["execute"].includes(t)&&!!(o!=null&&o.length)&&O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx(_e.FdCrown,{className:"h-3 w-3 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdInfoCircle,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsxs("span",{className:"mr-1",children:["Function is promoted with:"," "]}),o==null?void 0:o.map(u=>O.jsx("li",{className:"cursor-pointer list-disc font-bold hover:underline",onClick:()=>n(a[u].id),children:a[u].privilege}))]})]})})})})]})]})]}):null},Pde=({privilegeId:e,privileges:t})=>{const r=dr(),n=r.getCatalogMethods(),o=r.getDataclasses(),i=r.getSingletons(),a=t[e],[s,c]=R.useState([]),[u,d]=R.useState("");R.useEffect(()=>{d("")},[e]);const{isOpen:f,getMenuProps:h,getInputProps:v,getComboboxProps:b,highlightedIndex:g,getItemProps:m,selectedItem:x,openMenu:w}=fa({onInputValueChange(){c([])},items:[],itemToString(_){return _?_.applyTo:""},defaultHighlightedIndex:0,stateReducer:(_,C)=>{const{changes:N,type:P}=C;switch(P){case fa.stateChangeTypes.InputKeyDownArrowDown:return{...N,isOpen:!0,highlightedIndex:_.highlightedIndex<=s.length?_.highlightedIndex+1:0};case fa.stateChangeTypes.InputKeyDownArrowUp:return{...N,isOpen:!0,highlightedIndex:_.highlightedIndex>=0?_.highlightedIndex-1:s.length};case fa.stateChangeTypes.InputKeyDownEnter:const A=s[_.highlightedIndex];if(!A)return N;const j=he.addPermission(e,A,t);return r.actions.updatePrivileges(j),{...N,isOpen:!0,highlightedIndex:0}}return N}});R.useEffect(()=>{const _=a.resources.map(({resource:N,type:P,subType:A})=>({type:P,applyTo:N,subType:A})),C=Y1(u.toLowerCase(),n,Object.values(o),Object.values(i));c(C.filter(({applyTo:N,type:P,subType:A})=>!Al.find(_,{applyTo:N,type:P,subType:A})))},[u,a.resources]);const E=h({},{suppressRefError:!0}),S=R.useRef(null);return R.useEffect(()=>{f&&S.current&&S.current.focus()},[f]),O.jsxs("div",{className:"relative w-56 text-white group",...b(),children:[O.jsx("div",{...b(),children:O.jsx("input",{...v({},{suppressRefError:!0}),ref:S,type:"text",className:"block h-6 w-full rounded bg-grey-300 px-1 py-1.5 pl-2 pr-5 text-xs border-grey-500 focus:outline-none focus:ring-1 focus:ring-white focus:rounded-b-none focus:ring-inset",placeholder:"Create a permission",value:u,onChange:({target:{value:_}})=>d(_),onFocus:()=>{w()}})}),O.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center px-1",children:O.jsx(_e.FdDown,{className:"h-4 w-4 cursor-pointer",onMouseDown:_=>{_.preventDefault()},onClick:()=>{w()}})}),f&&O.jsx("ul",{...E,tabIndex:0,className:"absolute max-h-80 inset-x-0 top-full overflow-auto rounded-md border border-grey-50 bg-grey-900 p-0 text-grey-50 shadow-md group-focus-within:rounded-t-none group-focus-within:border-t-0",children:s.map((_,C)=>O.jsxs("li",{className:zt(x===_&&"font-bold","flex min-w-fit cursor-pointer items-center space-x-2 px-3 py-2 text-xs shadow-sm",{"bg-primary-hover":g===C,"font-bold":x===_}),...m({item:_,index:C}),onClick:()=>{const N=he.addPermission(e,_,t);r.actions.updatePrivileges(N)},children:[b$(_.type),O.jsx("span",{children:_.applyTo})]},`${_.applyTo}-${C}`))})]})};function Tde(e){const t=["datastore","singleton","dataclass","attribute","dsMethod","dataclassMethod","entityMethod","entityselMethod","singletonMethod"],r=e.reduce((n,o)=>{const[i]=o.resource.split("."),a=n.find(s=>s.prefix===i.toLowerCase());return a?(a.resources.push(o),n):[...n,{prefix:i.toLowerCase(),type:o.type,resources:[o]}]},[]);return r.sort((n,o)=>n.prefix==="ds"?-1:o.prefix==="ds"||n.prefix>o.prefix?1:-1),r.map(n=>({...n,resources:n.resources.sort((o,i)=>{const a=t.indexOf(o.type),s=t.indexOf(i.type);return a!==s?a-s:o.resource.toLowerCase()>i.resource.toLowerCase()?1:-1})})).reduce((n,o)=>[...n,...o.resources],[])}const Ade=({selectedPrivilege:e,onSelect:t,showIncluded:r,privileges:n})=>{const[o,i]=R.useState(null),[a,s]=R.useState(null),{styles:c,attributes:u}=Bd(o,a,{modifiers:[{name:"offset",options:{offset:[0,10]}}]}),d=dr(),[f,h]=R.useState([]),[v,b]=R.useState(""),{id:g}=e,m=R.useMemo(()=>he.getInheritedResources(g,n),[g,n[g].includes,n[g].resources]),x=R.useMemo(()=>he.getPromotions(g,n),[n[g]]);function w(L){h(D=>D.some(T=>L.includes(T))?D.filter(T=>!L.includes(T)):[...D,...L])}const E=async L=>{const{confirmed:D}=await d.actions.openModal({title:"Delete Privilege",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove this Privilege?",icon:"FdWarningDanger"});if(D){const T=he.removePermission(e.id,L,n);d.actions.updatePrivileges(T)}},S=async()=>{const{confirmed:L}=await d.actions.openModal({title:"Reset Permissions",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to reset permissions for this Privilege?",icon:"FdWarningDanger"});if(L){const D=he.resetResources(e.id,n);d.actions.updatePrivileges(D)}},C=m.filter(L=>f.length===0?!0:f.includes(L.type)).filter(({resource:L})=>v?new RegExp(Al.escapeRegExp(v),"i").test(L):!0),N=Tde(C),P=N.filter(L=>{const D=L.permissions.every(T=>!T.checked)&&L.permissions.some(T=>T.from.length>0);return r||!D}),A=(L,D)=>{const T=he.togglePermission(e.id,L,D,n);d.actions.updatePrivileges(T)},j=R.useMemo(()=>P.some(L=>L.exists===!1),[P]),M=async()=>{const{confirmed:L}=await d.actions.openModal({title:"Delete Privilege",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove these permissions?",views:{tips:[{type:"warning",message:"This action will remove all permissions that don't exist in the catalog for all privileges"}]},icon:"FdWarningDanger"}),D=Object.entries(n).map(([T,W])=>{const q=W.resources.filter(G=>!G.exists);return{[T]:q.map(G=>({applyTo:G.resource,type:G.type}))}}).reduce((T,W)=>({...T,...W}),{});if(L){const T=he.removeMultiplePermissions(D,n);d.actions.updatePrivileges(T)}};return O.jsxs(Mf,{className:"z-20 h-full flex-1 overflow-auto p-[15px] pt-0",style:{maxHeight:"calc(100vh - 5.5rem - 85px - 20px)"},children:[O.jsxs("table",{className:"relative h-full w-full",children:[O.jsx("thead",{className:"sticky top-0 z-20",children:O.jsxs("tr",{className:"border-b border-grey-100",children:[O.jsx("td",{className:"py-2",children:O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx("div",{className:"relative w-56",children:O.jsx(yt.Root,{children:O.jsxs(yt.Group,{children:[O.jsx(yt.Icon,{children:O.jsx(_e.FdSearch,{})}),O.jsx(yt.Field,{type:"text",placeholder:"Search available permissions",value:v,onChange:L=>{b(L.target.value)}}),O.jsx(un.Popover,{className:"flex items-center",children:({open:L})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{ref:i,children:O.jsx(yt.Icon,{isAction:!0,children:O.jsx(_e.FdAdjust,{})})}),L&&O.jsx(Ef,{children:O.jsxs(un.Popover.Panel,{ref:s,style:c.popper,...u.popper,className:"z-50 rounded-md border border-grey-50 bg-grey-900 px-4 py-2.5",static:!0,children:[O.jsx("h5",{className:"mb-2 text-sm text-grey-50",children:"Filter"}),O.jsxs("div",{className:"space-y-2 text-s",children:[O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("datastore"),onChange:()=>{w(["datastore"])},label:"Datastore",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("dataclass"),onChange:()=>{w(["dataclass"])},label:"Dataclass",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("singleton"),onChange:()=>{w(["singleton"])},label:"Singleton",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.some(D=>["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"].includes(D)),onChange:()=>{w(["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"])},label:"Functions",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:f.includes("attribute"),onChange:()=>{w(["attribute"])},label:"Attribute",size:"sm"})})]})]})})]})})]})})}),O.jsx(Pde,{privilegeId:g,privileges:n}),O.jsx("div",{children:O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx("button",{className:"flex h-6 items-center space-x-1 rounded-md px-2 text-sm text-grey-50 hover:bg-primary-hover",onClick:S,children:O.jsx(_e.FdReload,{})})}),O.jsx(Cn,{container:yr(),children:O.jsxs(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"mb-1 flex max-w-xs items-center gap-x-1 rounded bg-primary-light px-2 py-2 text-s font-semibold text-primary-darker",children:[O.jsx(_e.FdBulb,{className:"m-0.5 h-4 w-4 flex-shrink-0"}),O.jsx("p",{children:"Resetting the privilege will remove all configured ressources"})]})})]})}),O.jsxs(Id,{openDelay:0,closeDelay:0,children:[O.jsx(Pd,{children:O.jsx("button",{className:zt("flex h-6 items-center space-x-1 rounded-md px-2 text-sm text-grey-50 hover:bg-primary-hover disabled:opacity-50 disabled:hover:bg-primary-dark"),onClick:M,disabled:!j,children:O.jsx(_e.FdClean,{className:"h-4 w-4"})})}),O.jsx(Cn,{container:yr(),children:O.jsxs(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"mb-1 flex max-w-xs items-center gap-x-1 rounded bg-primary-light px-2 py-2 text-s font-semibold text-primary-darker",children:[O.jsx(_e.FdBulb,{className:"m-0.5 h-4 w-4 flex-shrink-0"}),O.jsx("p",{children:"Delete all the non existing resources from privileges"})]})})]})]})}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Read"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Create"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Update"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Delete"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Execute"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Promote"})]})}),P.length?O.jsx("tbody",{children:P.map((L,D)=>{const T=L.permissions.some(W=>W.from.length>0);return O.jsxs("tr",{className:zt("group even:bg-grey-600",{"opacity-60":L.exists===!1}),children:[O.jsxs("td",{className:zt("group flex items-center gap-3 py-2 text-xs group-hover:rounded-l group-hover:bg-grey-300",L.exists===!1?"text-negative-400":"text-white",{"border-b-[0.5px] border-grey-300":!1}),children:[b$(L.type),L.resource,O.jsx(he.Tooltip,{placement:"top",label:"Remove Permission",isDisabled:T,container:yr(),children:O.jsx("button",{onClick:()=>{T?he.toastSubject.next({kind:"info",markdown:!0,message:`<div className="flex gap-x-3"><h3 className="font-bold">Info:</h3><p className="font-normal">Inherited permissions can't be removed</p></div>`,customIcon:_e.FdInfoBold}):E({applyTo:L.resource,type:L.type})},className:zt("flex flex-shrink-0 items-center justify-center rounded p-1 opacity-0 group-hover:opacity-100",T?"hover:bg-grey-300 group-hover:opacity-70":"hover:bg-primary-hover"),children:O.jsx(_e.FdPlus,{className:"h-4 w-4 rotate-45 transform text-white"})})})]}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"read",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"create",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"update",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"drop",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:O.jsx(aa,{promoted:x[L.resource],permissions:L.permissions,showIncluded:r,label:"execute",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})}),O.jsx("td",{className:"py-2 text-center group-hover:rounded-r group-hover:bg-grey-300 ",children:O.jsx(aa,{permissions:L.permissions,showIncluded:r,label:"promote",onToggle:W=>A(L,W),onSelect:t,privileges:n,exists:L.exists})})]},D)})}):null]}),!N.length&&v?O.jsx(PL,{children:"The Permission you're looking for can't be found "}):null,!N.length&&!v?O.jsxs(PL,{children:["This Privilege has no Permissions configured yet ",O.jsx("br",{}),'Add a new permission by using the "Create a permission" input above']}):null]})},kde=({onCreate:e})=>{const t=dr(),r=t.getPrivileges(),[n,o]=R.useState(null),[i,a]=R.useState(null),[s,c]=R.useState(""),[u,d]=R.useState(null),{styles:f,attributes:h}=Bd(n,i,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"});return R.useEffect(()=>{c(""),d(null)},[i]),O.jsx(un.Popover,{children:({open:v,close:b})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{className:"rounded p-1 hover:bg-primary-hover","data-cy":"New-priv-btn",ref:o,children:O.jsx("span",{children:O.jsx(_e.FdPlus,{className:"h-4 w-4 text-white"})})}),v&&O.jsx(Ef,{children:O.jsx(un.Popover.Panel,{ref:a,style:f.popper,...h.popper,"data-cy":"New-priv-pop-up",className:"z-50",static:!0,children:O.jsxs(fn,{className:"min-w-[256px] border rounded px-4 py-2 text-xs shadow-md",depth:3,borderType:"light",children:[O.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Create New Privilege"}),O.jsx("div",{className:"mt-2",children:O.jsxs("label",{className:"flex items-center space-x-4",children:[O.jsx("span",{children:"Name"}),O.jsxs(yt.Root,{className:"w-full",color:u?"negative":"primary",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{autoFocus:!0,value:s,onChange:g=>c(g.target.value),onKeyDown:g=>{if(g.key==="Enter"){d(null);try{const m=he.createPrivilege(s,r),x=t.actions.updatePrivileges(m),w=Object.values(x.payload).find(E=>E.privilege===s);w&&(e(w),b())}catch(m){d(m.message)}}},type:"text"})}),u&&O.jsx(yt.Message,{children:u})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[O.jsx("button",{className:"rounded border border-primary-dark bg-primary-dark px-4 py-1 hover:border-primary-hover hover:bg-primary-hover",onClick:()=>{d(null);try{const g=he.createPrivilege(s,r),m=t.actions.updatePrivileges(g),x=Object.values(m.payload).find(w=>w.privilege===s);x&&e(x),b()}catch(g){d(g.message)}},children:"Create"}),O.jsx("button",{className:"rounded border border-grey-100 px-4 py-1 text-grey-100 hover:bg-white hover:text-primary-dark",onClick:()=>b(),children:"Cancel"})]})]})})})]})})},Dde=()=>{const e=dr(),t=e.getCatalog(),r=e.getPrivileges(),n=R.useMemo(()=>{if(t===null)return r;const u=XB(r,Object.values((t==null?void 0:t.dataClasses)??{}));return ZB(u,t)},[r,t]),[o,i]=R.useState(null),a=R.useMemo(()=>Object.keys(n),[n]);R.useEffect(()=>{o&&n[o.id]||!a.length||i(n[a[0]])},[n]),R.useEffect(()=>{a.length<2&&c(!0)},[a.length]);const[s,c]=R.useState(!0);return O.jsxs("div",{className:"flex flex-1 h-full",children:[O.jsxs(fn,{depth:1,className:"flex h-full w-[356px] flex-col",children:[O.jsxs("div",{className:"flex flex-shrink-0 items-center justify-between px-3.5 py-[10px]",children:[O.jsxs("div",{className:"flex items-center space-x-1 text-[#DDE1E6]",children:[O.jsx("span",{children:O.jsx(_e.FdGroup,{className:"h-[14px] w-[14px]"})}),O.jsx("span",{className:"text-[11px] font-semibold",children:"Privileges"})]}),O.jsx(kde,{onCreate:u=>{i(u)}})]}),O.jsx(tce,{privileges:n,selectedPrivilege:o,selectPrivilege:u=>{i(u)}})]}),o&&n[o.id]?O.jsxs(fn,{depth:1,className:"privileges-container relative flex flex-1 flex-col overflow-x-auto border-l-[0.5px]",children:[O.jsxs("div",{className:"mb-1 flex h-full w-full flex-col items-stretch",children:[o.privilege!=="guest"?O.jsx(Jae,{privileges:n,selectedPrivilege:o,onSelect:u=>i(r[u]),setShowIncluded:c,showIncluded:s}):null,O.jsx(Ade,{privileges:n,selectedPrivilege:o,onSelect:u=>i(r[u]),showIncluded:s})]}),O.jsx(Mde,{privileges:n,selectedPrivilege:o,setSelectedPrivilege:i})]}):O.jsx(M5,{tab:"Privilege"})]})},Mde=({privileges:e,selectedPrivilege:t,setSelectedPrivilege:r})=>{const[n,o]=R.useState(!1);return O.jsx(he.Panel,{path:he.ROLES_TAB_PATH,isOpen:n,onOpen:()=>o(!0),onClose:()=>o(!1),children:O.jsx("div",{className:"h-full w-full px-3 pb-3",children:O.jsx(fn,{depth:2,className:"h-full w-full rounded",children:O.jsx(lae,{dict:e,data:he.getGraphData(t.id,e),onSelect:i=>r(e[i])})})})})},jde=({role:e})=>{var _;const t=dr(),[r,n]=R.useState(e),[o,i]=R.useState(e.role),[a,s]=R.useState(null),c=t.getPrivileges(),u=((_=r.privileges)==null?void 0:_.filter(C=>c[C]&&c[C].privilege!=="guest").length)||0,d=t.getRoles(),{selectedRole:f,selectRole:h}=d1(),[v,b]=R.useState(!1),g=he.useOutsideClick(()=>{v&&x()});he.useDidMountEffect(()=>{o!==e.role&&i(e.role)},[e.role]),R.useEffect(()=>{e.role||b(!0)},[]),R.useEffect(()=>{n(e)},[e]);const m=()=>{s(null),b(!0)},x=()=>{s(null),e.role&&e.role===o&&b(!1);try{const C=he.saveRole({...r,role:o},d);t.actions.updateRoles(C),b(!1)}catch(C){s(C.message)}},w=async C=>{C.stopPropagation();const{confirmed:N}=await t.actions.openModal({title:"Delete Role",type:he.ModalType.CONFIRM,color:he.ModalColor.DANGER,message:"Are you sure you want to remove this Role?",icon:"FdWarningDanger"});N&&E()},E=()=>{const C=he.removeRole(r.id,d),N=Object.keys(C);if(f!==r.id){dispatch(updateRoles(C));return}if(N.length===0)h(null);else{const P=Object.keys(d),A=P.indexOf(r.id),j=Math.max(0,A-1),M=P[j];A===0?h(N[0]):C[M]?h(M):h(N[0])}t.actions.updateRoles(C)},S=(C=null)=>{if(C&&C.stopPropagation(),!e.role){E();return}b(!1),i(e.role)};return O.jsx(O.Fragment,{children:O.jsxs(fn,{depth:4,borderType:f===r.id?"primary":f!==r.id?"light":"default",className:zt("rounded border p-2"),role:"button","data-cy":"privilegeCard",onClick:()=>{h(r.id)},ref:g,children:[O.jsx("div",{className:"flex items-center justify-between",children:O.jsxs("div",{className:"flex flex-1 items-center",children:[O.jsx("span",{className:"mr-4",children:O.jsx(_e.FdGroup,{className:"h-6 w-6"})}),v?O.jsxs(yt.Root,{color:a?"negative":"primary",className:"flex-1 mr-2",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{type:"text",value:o,onChange:({target:{value:C}})=>{i(C)},onKeyDown:C=>{C.key==="Enter"&&x(),C.key==="Escape"&&S()},onBlur:()=>S(),placeholder:"role",autoComplete:"off",autoFocus:!0})}),a&&O.jsx(yt.Message,{children:a})]}):O.jsx("span",{className:"inline-block grow overflow-hidden truncate whitespace-nowrap text-xs font-bold",title:o,children:r.role}),O.jsx("div",{className:zt("justify-between ml-auto flex w-fit items-center gap-x-2"),children:v?O.jsxs(O.Fragment,{children:[O.jsx("button",{onClick:x,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdSave,{className:"h-4 w-4 text-grey-50"})}),O.jsx("button",{onClick:S,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdClose,{className:"h-4 w-4 text-grey-50"})})]}):O.jsxs(O.Fragment,{children:[O.jsx("button",{onClick:m,className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdPen,{className:"h-4 w-4 text-grey-50"})}),O.jsx("button",{onClick:C=>w(C),className:"rounded p-1 hover:bg-primary-hover hover:text-white",children:O.jsx(_e.FdTrash,{className:"h-4 w-4 text-grey-50"})})]})})]})}),O.jsxs("span",{className:zt("ml-[43px] py-1 text-xs"),children:[u," Privilege",u>1?"s":""]})]})})},y$=(e,t)=>e?t[e]:null,TL=(e,t,r)=>{const n=y$(e,r);return n?Object.values(r).reduce((o,i)=>i.id===e?n.privileges.includes(t)?{...o,[n.id]:{...n,privileges:n.privileges.filter(a=>a!==t)}}:{...o,[n.id]:{...n,privileges:[...n.privileges,t]}}:{...o,[i.id]:i},{}):r},Lde=()=>{const e=dr(),t=e.getPrivileges(),r=e.getRoles(),{selectedRole:n}=d1(),o=y$(n,r),i=(a,s)=>s&&s.privileges.includes(a.id);return O.jsxs("div",{className:"w-full border-b border-grey-900 p-4 ",children:[O.jsx("div",{className:"mb-4 flex items-center gap-x-5 text-white",children:O.jsx("h4",{className:"text-[13px] font-semibold ",children:"Privileges"})}),O.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[O.jsx("div",{"data-cy":"item=>Permisions",className:zt("inline-flex items-center gap-1 space-x-1 rounded bg-primary-darker px-2 py-0.5 text-xs font-semibold italic text-white"),children:"guest"}),Object.values(t).filter(a=>i(a,o)&&a.privilege!=="guest").map((a,s)=>O.jsxs("div",{"data-cy":"item=>Permisions",className:zt("inline-flex cursor-pointer items-center gap-1 space-x-1 rounded px-2 py-0.5",{"bg-primary-dark text-white":i(a,o),"bg-grey-300 text-grey-100":!i(a,o)}),onClick:()=>{const c=TL(o.id,a.id,r);e.actions.updateRoles(c)},children:[O.jsx("span",{className:"text-xs",children:a.privilege}),O.jsx("button",{className:"focus:outline-none",children:i(a,o)?O.jsx(_e.FdMinus,{className:"h-[14px] w-[14px]"}):O.jsx(_e.FdPlus,{className:"h-[14px] w-[14px]"})})]},s)),Object.values(t).filter(a=>!i(a,o)&&a.privilege!=="guest").map((a,s)=>O.jsxs("div",{"data-cy":"item=>Permisions",className:zt("inline-flex cursor-pointer items-center gap-1 space-x-1 rounded px-2 py-0.5",{"bg-primary-dark text-white":i(a,o),"bg-grey-300 text-grey-100":!i(a,o)}),onClick:()=>{const c=TL(o.id,a.id,r);e.actions.updateRoles(c)},children:[O.jsx("span",{className:"text-xs",children:a.privilege}),O.jsx("button",{className:"text-white focus:outline-none",children:i(a,o)?O.jsx(_e.FdMinus,{className:"h-[14px] w-[14px]"}):O.jsx(_e.FdPlus,{className:"h-[14px] w-[14px]"})})]},s))]})]})},qde=({children:e})=>O.jsx("div",{className:"h-full w-full",children:O.jsx("div",{className:"flex h-full w-full flex-1 items-center justify-center",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 py-4",children:[O.jsx(_e.FdInfoBold,{className:"absolute -right-full h-10 w-10 translate-x-1"}),O.jsx("div",{className:"text-center text-sm",children:e})]})})}),H_=(e,t,r,n=!1)=>{const o=e.applyTo,i=e.type===he.EPermissionType.DATACLASS?"ds":o.split(".")[0],a={...t,...r},s=()=>({value:!n,inherited:!1,from:[],explicitly:!1}),c={read:s(),create:s(),update:s(),drop:s(),execute:s(),promote:s()},u=f=>{f.forEach(h=>{a[h]&&(a[h].resources.forEach(v=>{if(v.resource===o||v.resource===i){const b=H_(e,t,{[h]:a[h]},n);Object.values(v.permissions).forEach(g=>{c[g.name].explicitly||(!c[g.name].from.includes(a[h].privilege)&&g.checked&&c[g.name].from.push(a[h].privilege),c[g.name].inherited=c[g.name].inherited||b[g.name].value||b[g.name].inherited)})}}),a[h].includes.length>0&&u(a[h].includes))})};if(Object.values(r).forEach(f=>{f.resources.forEach(h=>{h.resource===o&&Object.values(h.permissions).forEach(v=>{v.checked&&(c[v.name].explicitly=!0,n&&(c[v.name].value=!0))})}),(f.includes.length>0||f.privilege==="guest")&&u(f.includes)}),Object.values(t).forEach(f=>{f.resources.forEach(h=>{h.resource===o&&(f.privilege==="guest"?Object.values(h.permissions).forEach(v=>{v.checked&&(c[v.name].explicitly=!0,n&&(c[v.name].value=!0))}):Object.values(h.permissions).forEach(v=>{!c[v.name].explicitly&&v.checked&&(n?c[v.name].value=!0:c[v.name].value=!1)}))})}),(n?Object.entries(c).some(([f,h])=>f!=="promote"&&!h.value&&!h.explicitly):Object.entries(c).some(([f,h])=>f!=="promote"&&h.value&&!h.explicitly))&&![he.EPermissionType.DATASTORE,he.EPermissionType.SINGLETON].includes(e.type)){const f={applyTo:i,type:e.type===he.EPermissionType.DATACLASS?he.EPermissionType.DATASTORE:e.type===he.EPermissionType.SINGLETON_METHOD?he.EPermissionType.SINGLETON:he.EPermissionType.DATACLASS},h=H_(f,t,r,n),v=b=>{let g=c[b].value;return n?!c[b].value&&!c[b].explicitly&&(g=h[b].value):c[b].value&&!c[b].explicitly&&(g=h[b].value),{value:g,inherited:c[b].inherited||h[b].inherited,from:c[b].from.length>0?c[b].from:h[b].from,explicitly:c[b].explicitly}};return{read:v("read"),create:v("create"),update:v("update"),drop:v("drop"),execute:v("execute"),promote:v("promote")}}return{read:c.read,create:c.create,update:c.update,drop:c.drop,execute:c.execute,promote:c.promote}},zde=e=>{switch(e){case"dataclass":return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"});case"singleton":return O.jsx(_e.FdSingleton,{className:"h-6 w-6"});case"datastore":return O.jsx(_e.FdModel3,{className:"h-6 w-6"});case"attribute":return O.jsx(_e.FdTableColumn,{className:"h-6 w-6"});case"method":return O.jsx(_e.FdCode,{className:"h-6 w-6"});case"singletonMethod":return O.jsx(_e.FdFunctionSingleton,{className:"h-6 w-6"});case"entityselMethod":return O.jsx(_e.FdFunctionSelection,{className:"h-6 w-6"});case"entityMethod":return O.jsx(_e.FdFunctionEntity,{className:"h-6 w-6"});case"dsMethod":return O.jsx(_e.FdFunctionDatastore,{className:"h-6 w-6"});case"dataclassMethod":return O.jsx(_e.FdFunctionDataclass,{className:"h-6 w-6"});default:return O.jsx(_e.FdTableHeader,{className:"h-6 w-6"})}},Ls=sE,qs=lE,wa=({privileges:e,permission:t,hasChild:r,depth:n,isChild:o=!1,className:i,inSearch:a,toggleCollapse:s,collapsed:c,isRestrictedByDefault:u,toastMessageCallback:d})=>{const[f,h]=t.applyTo.split("."),v=R.useMemo(()=>H_(t,e.otherPrivs,e.rolePrivs,u),[e,t,u]);return O.jsxs("tr",{className:zt("group even:bg-grey-600",i),children:[O.jsxs("td",{className:zt("flex h-full w-full items-center gap-3 p-0 text-xs group-hover:rounded-l group-hover:bg-grey-300",{"px-1":a}),children:[Array(n).fill("").map((b,g)=>O.jsx("div",{className:zt("ml-1.5 mr-1 h-full w-0.5 border-l-2 border-grey-100",{"mr-0.5":o})},g)),r&&O.jsx("button",{onClick:s,className:"w-3",children:c?O.jsx(_e.FdRight,{className:"inline h-4 w-4"}):O.jsx(_e.FdDown,{className:"inline h-4 w-4"})}),zde(t.type),a?t.applyTo:h||f]}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.read.value||v.read.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.read.value&&v.read.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.read.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.read.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.create.value||v.create.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.create.value&&v.create.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.create.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.create.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.update.value||v.update.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.update.value&&v.update.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.update.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.update.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:bg-grey-300",children:[he.EPermissionType.ATTRIBUTE,he.EPermissionType.DATASTORE,he.EPermissionType.DATACLASS].includes(t.type)&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.drop.value||v.drop.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.drop.value&&v.drop.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.drop.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.drop.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})}),O.jsx("td",{className:"py-2 text-center group-hover:rounded-r group-hover:bg-grey-300",children:t.type!=="attribute"&&O.jsxs("div",{className:"relative mx-auto flex w-fit items-center justify-center gap-x-1",children:[O.jsx(or,{value:v.execute.value||v.execute.inherited,onClick:d,isDisabled:!0}),O.jsx("div",{className:"absolute left-full top-1/2 flex -translate-y-1/2 translate-x-1/2 cursor-pointer items-center",children:!v.execute.value&&v.execute.inherited?O.jsxs(Ls,{openDelay:0,closeDelay:0,children:[O.jsx(qs,{children:O.jsx(_e.FdInfoBold,{className:"h-4 w-4 text-white"})}),O.jsx(Cn,{container:yr(),children:O.jsx(Rn,{style:{zIndex:50},avoidCollisions:!0,side:"top",className:"max-w-xs rounded bg-primary-light py-2 text-sm font-semibold text-primary",children:O.jsx("div",{className:"space-y-1 px-2",children:v.execute.from.length?O.jsxs("div",{className:"flex items-start text-s",children:[O.jsx(_e.FdBulb,{className:"mr-2 mt-0.5 h-4 w-4 flex-shrink-0"}),O.jsxs("p",{children:[O.jsx("span",{className:"mr-1",children:"Permission inherited from:"}),O.jsx("ul",{children:v.execute.from.map((b,g)=>O.jsx("li",{className:"cursor-pointer list-disc font-bold",children:b},g))})]})]}):null})})})]}):""})]})})]})},AL=({depth:e,permission:t,privileges:r,childCollapsed:n,didChildCollapsed:o,toastMessageCallback:i})=>{const[a,s]=R.useState(n),c=dr(),u=c.getRestrictedByDefault(),d=c.getPrivileges();return R.useEffect(()=>{n===!0&&s(!0)},[n]),O.jsxs(O.Fragment,{children:[O.jsx(wa,{privileges:r,permission:t,isChild:!0,depth:e,hasChild:!0,toggleCollapse:()=>{const f=!a;s(f),o==null||o(f)},isRestrictedByDefault:u,allPrivileges:d,collapsed:a,toastMessageCallback:i}),!a&&O.jsxs(O.Fragment,{children:[t.attributes.map((f,h)=>O.jsx(wa,{privileges:r,permission:f,depth:e+1,isRestrictedByDefault:u,allPrivileges:d,toastMessageCallback:i},`${f.type}-${h}`)),t.methods.map((f,h)=>O.jsx(wa,{privileges:r,permission:f,depth:e+1,isRestrictedByDefault:u,allPrivileges:d,toastMessageCallback:i},`${f.type}-${h}`))]})]})},Bde=({selectedRole:e})=>{const[t,r]=R.useState(null),[n,o]=R.useState(null),{styles:i,attributes:a}=Bd(t,n,{modifiers:[{name:"offset",options:{offset:[0,10]}}]}),s=dr(),c=s.getRestrictedByDefault(),u=s.getPrivileges(),[d,f]=R.useState([]),[h,v]=R.useState(""),b=s.getCatalogMethods(),g=s.getDataclasses(),m=s.getSingletons(),[x,w]=R.useState({}),[E,S]=R.useState([]);R.useEffect(()=>{const q=uae(b,Object.values(g),Object.values(m));w(q)},[e]);function _(q){const G=["datastore","singleton","dataclass","attribute","dsMethod","dataclassMethod","entityMethod","entityselMethod","singletonMethod"];return q.sort((F,J)=>{const z=G.indexOf(F.type),U=G.indexOf(J.type);return z!==U?z-U:F.applyTo.toLowerCase()>J.applyTo.toLowerCase()?1:-1})}R.useEffect(()=>{S(_(Y1(h,b,Object.values(g),Object.values(m)).filter(q=>d.length?d.includes(q.type):!0)))},[d,h]);const[C,N]=R.useState(!1),P=q=>{f(G=>G.some(F=>q.includes(F))?G.filter(F=>!q.includes(F)):[...G,...q])},A=s.getRoles(),j={toggleAllCollapsed:q=>{q.allCollapsed=!q.allCollapsed},toggleChildCollapsed:q=>{q.childCollapsed=!q.childCollapsed},setAllCollapsed:(q,G)=>{q.allCollapsed=G},setChildCollapsed:(q,G)=>{q.childCollapsed=G}},M=R.useMemo(()=>{const q=Object.values(u).find(U=>U.privilege==="guest"),G=A[e],F=G?Object.fromEntries(G.privileges.map(U=>[U,u[U]]).filter(([,U])=>!!U)):{};if(c)return{rolePrivs:F,otherPrivs:q?{[q.id]:q}:{}};const J=q?{[q.id]:{...q,active:!0}}:{},z=Object.fromEntries(Object.entries(u).filter(([U])=>U!==(q==null?void 0:q.id)&&!(G!=null&&G.privileges.includes(U))).map(([U,oe])=>[U,{...oe,active:!1}]));return{rolePrivs:F,otherPrivs:{...J,...z}}},[u,A,e,c]),{state:{allCollapsed:L,childCollapsed:D},dispatch:T}=he.useEnhancedState({allCollapsed:!1,childCollapsed:!1},j,"Table Collapse Store"),W=()=>{he.toastSubject.next({kind:"info",markdown:!0,message:"**Info:** You can add or modify permissions only in the Privilege section.",customIcon:_e.FdInfoCircle})};return O.jsxs(Mf,{className:"z-20 h-full flex-1 overflow-auto p-[15px] pt-0",style:{maxHeight:"calc(100vh - 5.5rem - 85px - 20px)"},children:[O.jsxs("table",{className:"relative h-full w-full",children:[O.jsx("thead",{className:"sticky top-0 z-20",children:O.jsxs("tr",{className:"border-b border-grey-100",children:[O.jsx("td",{className:"py-2",children:O.jsxs("div",{className:"flex items-center space-x-2",children:[O.jsx(he.Tooltip,{label:"Collapse All",placement:"top",container:yr(),children:O.jsx("button",{onClick:()=>{D?(T.setAllCollapsed(!0),N(!0)):T.setChildCollapsed(!0)},className:zt("cursor-pointer rounded-md p-1 hover:bg-primary-hover focus:outline-none",{"pointer-events-none text-grey-200":L,"text-white":!L}),children:O.jsx(_e.FdCollapseAll,{className:"h-4 w-4"})})}),O.jsx("div",{className:"relative w-56",children:O.jsx(yt.Root,{children:O.jsxs(yt.Group,{children:[O.jsx(yt.Icon,{children:O.jsx(_e.FdSearch,{})}),O.jsx(yt.Field,{type:"text",placeholder:"Search",value:h,onChange:q=>{v(q.target.value)}}),O.jsx(un.Popover,{className:"flex items-center",children:({open:q})=>O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{ref:r,children:O.jsx(yt.Icon,{isAction:!0,children:O.jsx(_e.FdAdjust,{})})}),q&&O.jsx(Ef,{children:O.jsxs(un.Popover.Panel,{ref:o,style:i.popper,...a.popper,className:"z-50 rounded-md border border-grey-50 bg-grey-900 px-4 py-2.5 text-xs text-grey-50",static:!0,children:[O.jsx("h5",{className:"mb-2 text-sm",children:"Filter"}),O.jsxs("div",{className:"space-y-2 text-s",children:[O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("datastore"),onChange:()=>{P(["datastore"])},label:"Datastore",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("dataclass"),onChange:()=>{P(["dataclass"])},label:"Dataclass",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("singleton"),onChange:()=>{P(["singleton"])},label:"Singleton",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.some(G=>["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"].includes(G)),onChange:()=>{P(["method","singletonMethod","dsMethod","dataclassMethod","entityMethod","entityselMethod"])},label:"Functions",size:"sm"})}),O.jsx("div",{className:"flex items-center",children:O.jsx(or,{value:d.includes("attribute"),onChange:()=>{P(["attribute"])},label:"Attribute",size:"sm"})})]})]})})]})})]})})})]})}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"read"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Create"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Update"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Delete"}),O.jsx("td",{className:"px-4 py-2 text-center text-[12px]",children:"Execute"})]})}),O.jsx("tbody",{className:"relative",children:d.length||h?E.map((q,G)=>O.jsx(wa,{privileges:M,permission:q,depth:0,inSearch:!0,isRestrictedByDefault:c,allPrivileges:u,toastMessageCallback:W},`${q.type}-${G}`)):Object.values(x).map((q,G)=>O.jsxs(R.Fragment,{children:[O.jsx(wa,{privileges:M,permission:q,isRestrictedByDefault:c,allPrivileges:u,hasChild:!0,depth:0,toggleCollapse:()=>{const F=!C;N(F),T.setAllCollapsed(!F&&L?!1:L)},collapsed:C,toastMessageCallback:W}),q.type==="datastore"&&!C?O.jsxs(O.Fragment,{children:[q.methods.map((F,J)=>O.jsx(wa,{privileges:M,isRestrictedByDefault:c,allPrivileges:u,permission:F,depth:1,collapsed:L||!1,toastMessageCallback:W},`${F.type}-${J}`)),q.dataClasses.map((F,J)=>O.jsx(AL,{depth:1,privileges:M,permission:F,childCollapsed:D,didChildCollapsed:z=>{T.setChildCollapsed(z?D:!1)},toastMessageCallback:W},`${F.type}-${J}`))]}):null,q.singletons.map((F,J)=>O.jsx(AL,{depth:0,privileges:M,permission:F,childCollapsed:L,didChildCollapsed:z=>{T.setAllCollapsed(z?L:!1)},toastMessageCallback:W},`${F.type}-${J}`))]},`${q.type}-${G}`))})]}),(h||d.length)&&!E.length?O.jsx(qde,{children:"The Permission you're looking for can't be found "}):null]})},Fde=()=>{const e=dr(),t=e.getRoles(),[r,n]=R.useState(null),[o,i]=R.useState(null),[a,s]=R.useState(""),[c,u]=R.useState(null),{styles:d,attributes:f}=Bd(r,o,{modifiers:[{name:"offset",options:{offset:[-10,10]}}],placement:"right-start"});R.useEffect(()=>{s(""),u(null)},[o]);const h=()=>{if(!a)throw new Error("Please enter a valid name");if(Object.values(t).find(m=>m.role.toLowerCase()===a.toLowerCase()))throw new Error(`A role with the name ${a} already exists`);const b=sF.generate(),g=he.createRole(b,a,t);e.actions.updateRoles(g)};return O.jsx(un.Popover,{children:({open:v,close:b})=>{const g=()=>{u(null);try{he.validateName(a),h(),b()}catch(m){u(m.message)}};return O.jsxs(O.Fragment,{children:[O.jsx(un.Popover.Button,{className:"rounded p-1 hover:bg-primary-hover","data-cy":"New-priv-btn",ref:n,children:O.jsx("span",{children:O.jsx(_e.FdPlus,{className:"h-4 w-4 text-white"})})}),v&&O.jsx(Ef,{children:O.jsx(un.Popover.Panel,{ref:i,style:d.popper,...f.popper,"data-cy":"New-priv-pop-up",className:"z-50",static:!0,children:O.jsxs(fn,{className:"min-w-[256px] border rounded px-4 py-2 text-xs shadow-md",depth:3,borderType:"light",children:[O.jsx("h5",{className:"mb-2 text-xs font-semibold",children:"Create New Role"}),O.jsx("div",{className:"mt-2",children:O.jsxs("label",{className:"flex items-center space-x-4",children:[O.jsx("span",{className:"text-grey-100",children:"Name"}),O.jsxs(yt.Root,{color:c?"negative":"primary",className:"w-full",children:[O.jsx(yt.Group,{children:O.jsx(yt.Field,{autoFocus:!0,value:a,onChange:m=>s(m.target.value),onKeyDown:m=>{m.key==="Enter"&&g()},type:"text"})}),c&&O.jsx(yt.Message,{children:c})]})]})}),O.jsxs("div",{className:"mt-4 flex items-center justify-center space-x-2",children:[O.jsx("button",{className:"rounded border border-primary-dark bg-primary-dark px-4 py-1 hover:border-primary-hover hover:bg-primary-hover",onClick:()=>{g()},children:"Create"}),O.jsx("button",{className:"rounded border border-grey-100 px-4 py-1 text-grey-100 hover:bg-white hover:text-primary-dark",onClick:()=>b(),children:"Cancel"})]})]})})})]})}})},$de=()=>{const t=dr().getRoles(),{selectedRole:r}=d1();return O.jsxs("div",{className:"flex flex-1 h-full",children:[O.jsxs(fn,{depth:1,className:"flex h-full w-[356px] flex-col",children:[O.jsxs("div",{className:"flex flex-shrink-0 items-center justify-between px-3.5 py-[10px]",children:[O.jsxs("div",{className:"flex items-center space-x-1 text-[#DDE1E6]",children:[O.jsx("span",{children:O.jsx(_e.FdGroup,{className:"h-[14px] w-[14px]"})}),O.jsx("span",{className:"text-[11px] font-semibold",children:"Roles"})]}),O.jsx(Fde,{})]}),O.jsx("div",{className:"flex-1 space-y-4 overflow-auto p-4 pb-10 pt-1",children:Object.values(t).length>0?Object.values(t).sort((n,o)=>he.localeCompare(n.role,o.role)).map((n,o)=>O.jsx(jde,{role:n},o)):O.jsx("div",{className:"flex h-full items-center justify-center",children:O.jsx("div",{className:"flex flex-1 items-center justify-center bg-grey-800",children:O.jsxs("div",{className:"flex flex-col items-center justify-center space-y-4 text-grey-200",children:[O.jsx(_e.FdInfoBold,{className:"h-10 w-10"}),O.jsx("div",{className:"font-semibold",children:"There are no roles"}),O.jsxs("div",{className:"flex items-center text-sm",children:["Create a new role by clicking on the"," ",O.jsx(_e.FdPlus,{className:"ml-2 inline h-4 w-4 text-white"})]})]})})})})]}),O.jsx(fn,{depth:1,className:zt("relative flex h-full w-full flex-1 flex-col items-stretch overflow-x-auto",{"border-l-[0.5px]":r}),children:O.jsx("div",{className:"flex h-full w-full select-none flex-col",children:r?O.jsxs(O.Fragment,{children:[O.jsx(Lde,{}),O.jsx(Bde,{selectedRole:r})]}):O.jsx(M5,{tab:"Role"})})})]})},x$=()=>{const e=dr(),t=e.getQodly(),r=e.getSelectedTab(),n=e.getForceLogin(),o=e.getRestrictedByDefault(),i=R.useRef();return O.jsx("div",{className:"absolute inset-0 flex flex-1 overflow-hidden",children:O.jsx("div",{className:"relative flex flex-1 overflow-x-auto","data-cy":"Roles&Privileges-editor-cy",ref:a=>i.current=a,children:O.jsxs("div",{className:"flex w-full flex-col",children:[O.jsx(WK,{activeTab:r,forceLogin:n,restrictedByDefault:o,onTabChange:a=>{e.actions.toggleTab(a)},onForceLoginChange:a=>{e.actions.toggleForceLogin(a)},onRestrictedByDefaultChange:a=>{e.actions.toggleRestrictedByDefault(a)},qodly:t}),r==="roles"?O.jsx(UK,{children:O.jsx($de,{})}):O.jsx(Dde,{})]})})})},Vde=()=>{const{modals:e,closeModal:t,editModal:r}=Zae();return O.jsx(O.Fragment,{children:e.map((n,o)=>O.jsx(he.Modal,{hasOverlay:o===0,...n,onClose:t,onEdit:r,container:yr()},n.id))})},Hde=({initialValue:e,onChange:t,...r})=>{const n=dr(),o=n.getRolesFlags(),i=n.getRolesAndPrivileges();return R.useEffect(()=>{if(e)try{const a=JSON.parse(e);if(Al.isEqual(a,i))return;n.actions.setRolesContent({content:a,flags:{touched:!1}})}catch(a){console.error("[Roles Editor Standalone] Error while parsing the initial value:",a)}},[e]),he.useDidMountEffect(()=>{if(o.touched&&t)try{const a=JSON.stringify(i,null,2);t(a)}catch(a){console.error("[Roles Editor Standalone] Error on value stringify:",a)}},[i]),O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"relative h-screen z-10 overflow-hidden",children:O.jsx(x$,{...r})}),O.jsx(Vde,{})]})},Wde=e=>{const t=Xae();return O.jsx(QB,{adapter:t,children:O.jsx(he.TipsProvider,{children:O.jsx(Hde,{...e})})})},Ude=e=>O.jsx(Kae,{children:O.jsx(Wde,{...e})});exports.ROLES_EDITOR_SCOPE_CLASS=kL.ROLES_EDITOR_SCOPE_CLASS;exports.EditorStateAdapterProvider=QB;exports.Roles=x$;exports.Standalone=Ude;exports.useReduxAdapter=vae;
|
|
126
126
|
//# sourceMappingURL=index.cjs.js.map
|