@ws-ui/code-editor 1.12.3 → 1.13.0-dev.2

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/index.cjs.js CHANGED
@@ -1,120 +1,172 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react/jsx-runtime"),S=require("react"),ie=require("@monaco-editor/react"),j=require("@ws-ui/shared"),je=require("monaco-languageclient"),ue=require("monaco-languageclient/vscode/services"),de=require("@codingame/monaco-vscode-configuration-service-override"),ke=require("@codingame/monaco-vscode-languages-service-override"),We=require("@codingame/monaco-vscode-textmate-service-override");require("@codingame/monaco-vscode-theme-defaults-default-extension");const Ee=require("@codingame/monaco-vscode-editor-service-override"),Ke=require("@codingame/monaco-vscode-theme-service-override"),Ze=require("@codingame/monaco-vscode-files-service-override"),te=require("vscode/vscode/vs/platform/files/common/files"),se=require("vscode/vscode/vs/base/common/event"),Te=require("monaco-languageclient/tools"),ae=require("vscode-languageclient"),N=require("monaco-editor"),oe=require("vscode-ws-jsonrpc"),D=require("vscode-languageserver-protocol"),le=require("vscode/services"),ne=require("vscode/monaco");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-css-default-extension");require("@codingame/monaco-vscode-json-default-extension");require("@codingame/monaco-vscode-html-default-extension");require("@codingame/monaco-vscode-javascript-default-extension");const Xe=require("vscode/extensions");var X=typeof document<"u"?document.currentScript:null;function De(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const a=De(N),Be=()=>de(),Oe=()=>Ee(()=>Promise.resolve(void 0)),Me=()=>{const t=Ke(),e=t.themeService.ctor.prototype;return e.defineTheme=()=>{},t},Pe=`{
2
- "workbench.colorTheme": "Default Dark+",
3
- "workbench.iconTheme": "vs-seti",
4
- "editor.autoClosingBrackets": "languageDefined",
5
- "editor.autoClosingQuotes": "languageDefined",
6
- "editor.scrollBeyondLastLine": true,
7
- "editor.mouseWheelZoom": true,
8
- "editor.wordBasedSuggestions": false,
9
- "editor.acceptSuggestionOnEnter": "on",
10
- "editor.foldingHighlight": false,
11
- "editor.bracketPairColorization.enabled": false,
12
- "editor.fontSize": 12,
13
- "files.autoSave": "off",
14
- "editor.experimental.asyncTokenization": true,
15
- "editor.semanticHighlighting.enabled": true,
16
- "workbench.colorCustomizations": {
17
- "editor.background": "#313131"
18
- },
19
- "editor.semanticTokenColorCustomizations": {
20
- "[Default Light+]": {
21
- "enabled": true,
22
- "rules": {
23
- "*:4d": {
24
- "foreground": "#000000",
25
- "bold": false,
26
- "italic": false,
27
- "underline": false,
28
- "strikethrough": false
29
- },
30
- "method:4d": { "foreground": "#000088", "bold": true, "italic": true },
31
- "method.defaultLibrary:4d": {
32
- "foreground": "#068c00",
33
- "italic": false
34
- },
35
- "method.plugin:4d": { "foreground": "#000000" },
36
- "property:4d": { "foreground": "#a0806b" },
37
- "function:4d": { "foreground": "#5f8e5e", "italic": true },
38
- "parameter:4d": { "foreground": "#000b76", "bold": true },
39
- "variable.interprocess:4d": { "foreground": "#ff0088" },
40
- "variable.process:4d": { "foreground": "#0000ff" },
41
- "variable.local:4d": { "foreground": "#0031ff" },
42
- "keyword:4d": { "foreground": "#034d00", "bold": true },
43
- "table:4d": { "foreground": "#532300" },
44
- "field:4d": { "foreground": "#323232" },
45
- "comment:4d": { "foreground": "#535353" },
46
- "type:4d": { "foreground": "#068c00", "bold": true },
47
- "constant:4d": { "foreground": "#4d004d", "underline": true },
48
- "string:4d": { "foreground": "#000000" },
49
- "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }
50
- }
51
- },
52
- "[Default Dark+]": {
53
- "enabled": true,
54
- "rules": {
55
- "*:4d": {
56
- "foreground": "#FFFFFF",
57
- "bold": false,
58
- "italic": false,
59
- "underline": false,
60
- "strikethrough": false
61
- },
62
- "method:4d": { "foreground": "#1B79F3", "bold": true, "italic": true },
63
- "method.defaultLibrary:4d": {
64
- "foreground": "#59BB00",
65
- "italic": false
66
- },
67
- "method.plugin:4d": { "foreground": "#BFBFBF" },
68
- "property:4d": { "foreground": "#A0806B" },
69
- "function:4d": { "foreground": "#4EC36E", "italic": true },
70
- "parameter:4d": { "foreground": "#0C70FF", "bold": true },
71
- "variable.interprocess:4d": { "foreground": "#FF0088" },
72
- "variable.process:4d": { "foreground": "#53B0EB" },
73
- "variable.local:4d": { "foreground": "#18B3F1" },
74
- "keyword:4d": { "foreground": "#D0D0D0", "bold": true },
75
- "table:4d": { "foreground": "#CF5600" },
76
- "field:4d": { "foreground": "#9C6765" },
77
- "comment:4d": { "foreground": "#8F8F8F" },
78
- "type:4d": { "foreground": "#068C00", "bold": true },
79
- "constant:4d": { "foreground": "#FA647F", "underline": true },
80
- "string:4d": { "foreground": "#FFFFFF" },
81
- "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }
82
- }
83
- }
84
- }
85
- }
86
- `;class Ge{constructor(){this._onDidChangeCapabilities=new se.Emitter,this.onDidChangeCapabilities=this._onDidChangeCapabilities.event,this._onDidChangeFile=new se.Emitter,this.onDidChangeFile=this._onDidChangeFile.event,this.capabilities=te.FileSystemProviderCapabilities.FileReadWrite|te.FileSystemProviderCapabilities.FileOpenReadWriteClose,this.files=new Map}async stat(e){const n=this.files.get(e.fsPath),i=Date.now();return{type:te.FileType.File,ctime:0,mtime:i,size:n?n.byteLength:0}}async mkdir(e){}async readdir(e){return[]}async readFile(e){const i=e.toString().split("/"),o=i.length,[r,s]=i.slice(o-2),I=await j.getNodeInfo({verb:j.DesignerRequestVerb.GET_INFO,path:`${r}/${s}`,content:!0,as:"text"}),C=new TextEncoder().encode(I.content);return this.files.set(e.fsPath,C),C}async writeFile(e,n){const i=e.toString();this.files.set(i,n),this._onDidChangeFile.fire([{type:1,resource:e}])}async delete(e){const n=e.toString();this.files.delete(n)}async rename(e,n){const i=e.toString(),o=n.toString(),r=this.files.get(i);r&&(this.files.set(o,r),this.files.delete(i))}watch(e,n){return{dispose(){}}}}const Ie=()=>de.initUserConfiguration(Pe),Ce=async t=>{var o;const e=t.serviceConfig??{};e.debugLogging=((o=t.logger)==null?void 0:o.isEnabled())===!0&&(e.debugLogging===!0||t.logger.isDebugEnabled()===!0),await Ie(),e.userServices=e.userServices??{};const n=e.userServices.configurationService??void 0,i=e.workspaceConfig??void 0;if(n===void 0){if(i)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const r={...Be(),...Me(),...We(),...ke(),...Oe()};ue.mergeServices(r,e.userServices)}return Ze.registerFileSystemOverlay(1,new Ge),e};class Je extends oe.WebSocketMessageReader{constructor(e,n){super(e),this.onMessage=n}readMessage(e){this.onMessage&&this.onMessage();const[,n]=e.split(`\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),S=require("react"),Lr=require("@monaco-editor/react"),we=require("@ws-ui/shared"),rs=require("monaco-languageclient"),bn=require("monaco-languageclient/vscode/services"),mn=require("@codingame/monaco-vscode-configuration-service-override"),os=require("@codingame/monaco-vscode-languages-service-override"),ns=require("@codingame/monaco-vscode-textmate-service-override");require("@codingame/monaco-vscode-theme-defaults-default-extension");const is=require("@codingame/monaco-vscode-editor-service-override"),ss=require("@codingame/monaco-vscode-theme-service-override"),as=require("@codingame/monaco-vscode-files-service-override"),hr=require("vscode/vscode/vs/platform/files/common/files"),lo=require("vscode/vscode/vs/base/common/event"),ls=require("monaco-languageclient/tools"),co=require("vscode-languageclient"),ve=require("monaco-editor"),Tr=require("vscode-ws-jsonrpc"),Re=require("vscode-languageserver-protocol"),uo=require("vscode/services"),vr=require("vscode/monaco"),ir=require("react-dom");require("@codingame/monaco-vscode-standalone-languages");require("@codingame/monaco-vscode-standalone-html-language-features");require("@codingame/monaco-vscode-standalone-css-language-features");require("@codingame/monaco-vscode-standalone-json-language-features");require("@codingame/monaco-vscode-standalone-typescript-language-features");require("@codingame/monaco-vscode-css-default-extension");require("@codingame/monaco-vscode-json-default-extension");require("@codingame/monaco-vscode-html-default-extension");require("@codingame/monaco-vscode-javascript-default-extension");const cs=require("vscode/extensions");var ze=typeof document<"u"?document.currentScript:null;function wn(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const pe=wn(S),Z=wn(ve),ds=()=>mn(),us=()=>is(()=>Promise.resolve(void 0)),ps=()=>{const e=ss(),r=e.themeService.ctor.prototype;return r.defineTheme=()=>{},e},gs=`{\r
2
+ "workbench.colorTheme": "Default Dark+",\r
3
+ "workbench.iconTheme": "vs-seti",\r
4
+ "editor.autoClosingBrackets": "languageDefined",\r
5
+ "editor.autoClosingQuotes": "languageDefined",\r
6
+ "editor.scrollBeyondLastLine": true,\r
7
+ "editor.mouseWheelZoom": true,\r
8
+ "editor.wordBasedSuggestions": false,\r
9
+ "editor.acceptSuggestionOnEnter": "on",\r
10
+ "editor.foldingHighlight": false,\r
11
+ "editor.bracketPairColorization.enabled": false,\r
12
+ "editor.fontSize": 12,\r
13
+ "files.autoSave": "off",\r
14
+ "editor.experimental.asyncTokenization": true,\r
15
+ "editor.semanticHighlighting.enabled": true,\r
16
+ "workbench.colorCustomizations": {\r
17
+ "editor.background": "#FFFFFF00"\r
18
+ },\r
19
+ "editor.semanticTokenColorCustomizations": {\r
20
+ "[Default Light+]": {\r
21
+ "enabled": true,\r
22
+ "rules": {\r
23
+ "*:4d": {\r
24
+ "foreground": "#000000",\r
25
+ "bold": false,\r
26
+ "italic": false,\r
27
+ "underline": false,\r
28
+ "strikethrough": false\r
29
+ },\r
30
+ "method:4d": { "foreground": "#000088", "bold": true, "italic": true },\r
31
+ "method.defaultLibrary:4d": {\r
32
+ "foreground": "#068c00",\r
33
+ "italic": false\r
34
+ },\r
35
+ "method.plugin:4d": { "foreground": "#000000" },\r
36
+ "property:4d": { "foreground": "#a0806b" },\r
37
+ "function:4d": { "foreground": "#5f8e5e", "italic": true },\r
38
+ "parameter:4d": { "foreground": "#000b76", "bold": true },\r
39
+ "variable.interprocess:4d": { "foreground": "#ff0088" },\r
40
+ "variable.process:4d": { "foreground": "#0000ff" },\r
41
+ "variable.local:4d": { "foreground": "#0031ff" },\r
42
+ "keyword:4d": { "foreground": "#034d00", "bold": true },\r
43
+ "table:4d": { "foreground": "#532300" },\r
44
+ "field:4d": { "foreground": "#323232" },\r
45
+ "comment:4d": { "foreground": "#535353" },\r
46
+ "type:4d": { "foreground": "#068c00", "bold": true },\r
47
+ "constant:4d": { "foreground": "#4d004d", "underline": true },\r
48
+ "string:4d": { "foreground": "#000000" },\r
49
+ "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }\r
50
+ }\r
51
+ },\r
52
+ "[Default Dark+]": {\r
53
+ "enabled": true,\r
54
+ "rules": {\r
55
+ "*:4d": {\r
56
+ "foreground": "#FFFFFF",\r
57
+ "bold": false,\r
58
+ "italic": false,\r
59
+ "underline": false,\r
60
+ "strikethrough": false\r
61
+ },\r
62
+ "method:4d": { "foreground": "#1B79F3", "bold": true, "italic": true },\r
63
+ "method.defaultLibrary:4d": {\r
64
+ "foreground": "#59BB00",\r
65
+ "italic": false\r
66
+ },\r
67
+ "method.plugin:4d": { "foreground": "#BFBFBF" },\r
68
+ "property:4d": { "foreground": "#A0806B" },\r
69
+ "function:4d": { "foreground": "#4EC36E", "italic": true },\r
70
+ "parameter:4d": { "foreground": "#0C70FF", "bold": true },\r
71
+ "variable.interprocess:4d": { "foreground": "#FF0088" },\r
72
+ "variable.process:4d": { "foreground": "#53B0EB" },\r
73
+ "variable.local:4d": { "foreground": "#18B3F1" },\r
74
+ "keyword:4d": { "foreground": "#D0D0D0", "bold": true },\r
75
+ "table:4d": { "foreground": "#CF5600" },\r
76
+ "field:4d": { "foreground": "#9C6765" },\r
77
+ "comment:4d": { "foreground": "#8F8F8F" },\r
78
+ "type:4d": { "foreground": "#068C00", "bold": true },\r
79
+ "constant:4d": { "foreground": "#FA647F", "underline": true },\r
80
+ "string:4d": { "foreground": "#FFFFFF" },\r
81
+ "error:4d": { "foreground": "#ff0000", "bold": true, "italic": true }\r
82
+ }\r
83
+ }\r
84
+ }\r
85
+ }\r
86
+ `;class hs{constructor(){this._onDidChangeCapabilities=new lo.Emitter,this.onDidChangeCapabilities=this._onDidChangeCapabilities.event,this._onDidChangeFile=new lo.Emitter,this.onDidChangeFile=this._onDidChangeFile.event,this.capabilities=hr.FileSystemProviderCapabilities.FileReadWrite|hr.FileSystemProviderCapabilities.FileOpenReadWriteClose,this.files=new Map}async stat(r){const t=this.files.get(r.fsPath),o=Date.now();return{type:hr.FileType.File,ctime:0,mtime:o,size:t?t.byteLength:0}}async mkdir(r){}async readdir(r){return[]}async readFile(r){const o=r.toString().split("/"),i=o.length,[n,s]=o.slice(i-2),a=await we.getNodeInfo({verb:we.DesignerRequestVerb.GET_INFO,path:`${n}/${s}`,content:!0,as:"text"}),l=new TextEncoder().encode(a.content);return this.files.set(r.fsPath,l),l}async writeFile(r,t){const o=r.toString();this.files.set(o,t),this._onDidChangeFile.fire([{type:1,resource:r}])}async delete(r){const t=r.toString();this.files.delete(t)}async rename(r,t){const o=r.toString(),i=t.toString(),n=this.files.get(o);n&&(this.files.set(i,n),this.files.delete(o))}watch(r,t){return{dispose(){}}}}const xn=()=>mn.initUserConfiguration(gs),yn=async e=>{var i;const r=e.serviceConfig??{};r.debugLogging=((i=e.logger)==null?void 0:i.isEnabled())===!0&&(r.debugLogging===!0||e.logger.isDebugEnabled()===!0),await xn(),r.userServices=r.userServices??{};const t=r.userServices.configurationService??void 0,o=r.workspaceConfig??void 0;if(t===void 0){if(o)throw new Error("You provided a workspaceConfig without using the configurationServiceOverride");const n={...ds(),...ps(),...ns(),...os(),...us()};bn.mergeServices(n,r.userServices)}return as.registerFileSystemOverlay(1,new hs),r};class vs extends Tr.WebSocketMessageReader{constructor(r,t){super(r),this.onMessage=t}readMessage(r){this.onMessage&&this.onMessage();const[,t]=r.split(`\r
87
87
  \r
88
- `);if(this.state==="initial")this.events.splice(0,0,{message:n});else if(this.state==="listening"){const i=JSON.parse(n);this.callback(i)}}}class Ve extends oe.WebSocketMessageWriter{constructor(e,n){super(e),this.onSend=n}async write(e){try{const n=JSON.stringify(e);this.socket.send(n),this.onSend&&this.onSend()}catch(n){this.errorCount++,this.fireError(n,e,this.errorCount)}}}function T(t,e=!0){const n=`/PACKAGE/Project/Sources/${t}`;return e?`file://${n}`:n}function re(t,e=0){setTimeout(t,e)}function me(t,e){const n=new N.Selection(e.startLineNumber,e.startColumn,e.endLineNumber||e.startLineNumber,e.endColumn||e.startColumn);re(()=>{t.setSelection(n),t.revealRangeInCenter(n),t.focus()})}function fe(t,e,n=0){n>0&&(e=n+e),re(()=>{t.setPosition({lineNumber:e,column:1}),t.revealLineInCenter(e),t.focus()})}function _e(t,e,n){const o=t.getModel();if(o&&e){const r=o.getLineCount();for(let s=1;s<=r;s++){const I=o.getLineContent(s);if(new RegExp(`(?:Function|function) ${n}`).test(I))return s}}return 0}const pe=t=>{const e=t==null?void 0:t.getLanguageId();return e&&["css","scss","less"].includes(e)},qe={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
89
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
90
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
91
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Else"," "].join(`
92
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
93
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
94
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
95
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},Ye={provideCompletionItems:async(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"var",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
96
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
97
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
98
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["else"," "].join(`
99
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
100
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
101
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:a.languages.CompletionItemKind.Snippet,range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
102
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},He=[{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.Digit0,command:"editor.action.fontZoomReset"},{keybinding:N.KeyMod.CtrlCmd|N.KeyCode.F12,command:"editor.action.revealDefinition"}],ze=({defaultZoom:t})=>(S.useEffect(()=>{t!==void 0&&N.editor.EditorZoom.setZoomLevel(t)},[]),null);ie.loader.config({monaco:a});var q=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(q||{}),Ae=(t=>(t[t.None=0]="None",t[t.DefaultForeground=1]="DefaultForeground",t[t.DefaultBackground=2]="DefaultBackground",t))(Ae||{}),be=(t=>(t[t.Other=0]="Other",t[t.Comment=1]="Comment",t[t.String=2]="String",t[t.RegEx=3]="RegEx",t))(be||{});class V{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let i="mtk"+this.getForeground(e);const o=this.getFontStyle(e);return o&1&&(i+=" mtki"),o&2&&(i+=" mtkb"),o&4&&(i+=" mtku"),o&8&&(i+=" mtks"),i}static getInlineStyleFromMetadata(e,n){const i=this.getForeground(e),o=this.getFontStyle(e);let r=`color: ${n[i]};`;o&1&&(r+="font-style: italic;"),o&2&&(r+="font-weight: bold;");let s="";return o&4&&(s+=" underline"),o&8&&(s+=" line-through"),s&&(r+=`text-decoration:${s};`),r}static getPresentationFromMetadata(e){const n=this.getForeground(e),i=this.getFontStyle(e);return{foreground:n,italic:!!(i&1),bold:!!(i&2),underline:!!(i&4),strikethrough:!!(i&8)}}}function Ue(t,e,n,i){const o=n.tokens.data,r=t.getLanguageId();let s=0,I=0;const C=i.lineNumber-1,v=i.column-1;for(let f=0;f<o.length;f+=5){const A=o[f],p=o[f+1],k=o[f+2],L=o[f+3],y=o[f+4],R=s+A,h=A===0?I+p:p;if(C===R&&h<=v&&v<h+k){const c=n.legend.tokenTypes[L]||"not in legend (ignored)",W=[];let l=y;for(let J=0;l>0&&J<n.legend.tokenModifiers.length;J++)l&1&&W.push(n.legend.tokenModifiers[J]),l=l>>1;l>0&&W.push("not in legend (ignored)");const g=new N.Range(R+1,h+1,R+1,h+1+k),w={},E=e.getColorTheme().tokenColorMap,b=e.getColorTheme().getTokenStyleMetadata(c,W,r,!0,w);let Y;return b&&(Y={languageId:void 0,tokenType:be.Other,bold:b==null?void 0:b.bold,italic:b==null?void 0:b.italic,underline:b==null?void 0:b.underline,strikethrough:b==null?void 0:b.strikethrough,foreground:E[(b==null?void 0:b.foreground)||Ae.None],background:void 0}),{type:c,modifiers:W,range:g,metadata:Y,definitions:w}}s=R,I=h}return null}function $e(t,e,n){let i=null;for(let o=1;o<n;o++)i=e.tokenizeLine(t.getLineContent(o),i).ruleStack;return i}function Qe(t,e,n){const i=t.getColorTheme().tokenColorMap,o=V.getLanguageId(n),r=V.getTokenType(n),s=V.getFontStyle(n),I=V.getForeground(n),C=V.getBackground(n);return{languageId:e.languageIdCodec.decodeLanguageId(o),tokenType:r,bold:s&q.Bold?!0:void 0,italic:s&q.Italic?!0:void 0,underline:s&q.Underline?!0:void 0,strikethrough:s&q.Strikethrough?!0:void 0,foreground:i[I],background:i[C]}}function et(t,e,n){const i=n.lineNumber,o=t,r=o._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar,s=$e(t,r,i),I=r.tokenizeLine(t.getLineContent(i),s),C=r.tokenizeLine2(t.getLineContent(i),s);let v=0;for(let A=I.tokens.length-1;A>=0;A--){const p=I.tokens[A];if(n.column-1>=p.startIndex){v=A;break}}let f=0;for(let A=C.tokens.length>>>1;A>=0;A--)if(n.column-1>=C.tokens[A<<1]){f=A;break}return{token:I.tokens[v],metadata:Qe(e,o._languageService,C.tokens[(f<<1)+1])}}const he=S.createContext(void 0),tt=({children:t,url:e,qodly:n,defaultZoom:i,openHandler:o,language:r="4d",defaultInited:s=!1})=>{const I=ie.useMonaco(),[C,v]=S.useState(s),[f,A]=S.useState(null),p=S.useRef(),k=S.useRef(0);S.useEffect(()=>{e&&I&&L()},[e,I]);const L=async()=>{if(!I)return;const m=new Te.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),u=await Ce({logger:m});await ue.initServices({caller:"Qodly Code Editor",logger:m,serviceConfig:u}),o&&le.StandaloneServices.get(le.ICodeEditorService).registerCodeEditorOpenHandler(o),I.languages.registerCompletionItemProvider(r,n?Ye:qe);const d=ne.KeybindingsRegistry.getDefaultKeybindings.bind(ne.KeybindingsRegistry);ne.KeybindingsRegistry.getDefaultKeybindings=()=>d().filter(Z=>!["workbench.action.files.saveAs","workbench.action.files.save"].includes(Z.command)),N.editor.addKeybindingRules(He),I.languages.registerFoldingRangeProvider(r,{provideFoldingRanges:function(F){const Z=[],B=/\\\s*$/;for(let K=1,G=F.getLineCount();K<=G;K++){const H=F.getLineContent(K);if(B.exec(H)){let M=K+1;for(;M<=G;){const ee=F.getLineContent(M);if(B.exec(ee)==null)break;M++}M>K&&(Z.push({start:K,end:M,kind:I.languages.FoldingRangeKind.Region}),K=M)}}return Z}}),y()},y=()=>{A(null);let m;try{m=new WebSocket(localStorage.LSP_SERVER||e)}catch{A(new Event("INVALID_URL"));return}m.onopen=R,m.onclose=h,m.onerror=c,k.current=0},R=async function(){const m=oe.toSocket(this),u=new Je(m),d=new Ve(m),F=new je.MonacoLanguageClient({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:N.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:r}],errorHandler:{error:()=>({action:ae.ErrorAction.Continue}),closed:()=>({action:ae.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:u,writer:d})}});p.current=F;const Z=F.sendRequest.bind(F);p.current.sendRequest=function(B,K,G){return typeof B=="object"&&B.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(K.textDocument.uri)?Promise.resolve():Z(B,K,G)},u.onClose(()=>{F.stop(),k.current<3?setTimeout(()=>{k.current++,y()},1e3):A(new Event("WEBSOCKET_CLOSED"))}),F.needsStart()&&await F.start(),v(!0)},h=()=>{},c=m=>{A(m)};S.useEffect(()=>{const m=j.lspSubject.subscribe(({action:u,payload:d})=>{switch(u){case j.LspActions.WILL_SAVE:E(d.filePath);break;case j.LspActions.DID_SAVE:O(d.filePath,d.content);break;case j.LspActions.WILL_CREATE:b(d.filePath);break;case j.LspActions.DID_CREATE:we(d.filePath);break;case j.LspActions.WILL_RENAME:Y(d.oldPath,d.newPath);break;case j.LspActions.DID_RENAME:Fe(d.oldPath,d.newPath);break;case j.LspActions.WILL_DELETE:J(d.filePath);break;case j.LspActions.DID_DELETE:Le(d.filePath);break;case j.LspActions.DIAGNOSTIC_REFRESH:w(d.filePath);break}});return()=>m.unsubscribe()},[]);const W=m=>{var u,d;return(d=(u=p.current)==null?void 0:u._features)==null?void 0:d.find(F=>{var Z;return((Z=F._registrationType)==null?void 0:Z.method)===m})},l=m=>{const u=[],d=W(m);if(d)for(const[,F]of d._registrations)F.provider&&u.push(F.provider);return u},g=async(m,u,d)=>{var Z,B,K;const F=l(D.SemanticTokensRegistrationType.method);if(F[0]){const G=new N.CancellationTokenSource,H=await Promise.resolve(F[0].full.provideDocumentSemanticTokens(u,G.token)),Q=m,M=H?Ue(u,Q._themeService,{tokens:H,legend:(K=(B=(Z=p.current)==null?void 0:Z._capabilities)==null?void 0:B.semanticTokensProvider)==null?void 0:K.legend},d):null,ee=et(u,Q._themeService,d);return{semanticTokenInfo:M,textmateTokenInfo:ee}}return null},w=m=>{if(p.current){const u=l(D.DocumentDiagnosticRequest.method);for(const d of u)d.onDidChangeDiagnosticsEmitter.fire()}},E=(m,u=D.TextDocumentSaveReason.Manual)=>{var d;(d=p.current)==null||d.sendNotification(D.WillSaveTextDocumentNotification.type,{textDocument:{uri:T(m)},reason:u})},O=(m,u)=>{var d;(d=p.current)==null||d.sendNotification(D.DidSaveTextDocumentNotification.type,{textDocument:{uri:T(m)},text:u})},b=m=>{var u;(u=p.current)==null||u.sendRequest(D.WillCreateFilesRequest.type,{files:[{uri:T(m)}]})},Y=(m,u)=>{var d;(d=p.current)==null||d.sendRequest(D.WillRenameFilesRequest.type,{files:[{oldUri:T(m),newUri:T(u)}]})},J=m=>{var u;(u=p.current)==null||u.sendRequest(D.WillDeleteFilesRequest.type,{files:[{uri:T(m)}]})},we=m=>{var u;(u=p.current)==null||u.sendNotification(D.DidCreateFilesNotification.type,{files:[{uri:T(m)}]})},Fe=(m,u)=>{var d;(d=p.current)==null||d.sendNotification(D.DidRenameFilesNotification.type,{files:[{oldUri:T(m),newUri:T(u)}]})},Le=m=>{var u;(u=p.current)==null||u.sendNotification(D.DidDeleteFilesNotification.type,{files:[{uri:T(m)}]})};return x.jsxs(he.Provider,{value:{inited:C||!!f,clientRef:p,lastError:f,reload:y,getTokenAtPosition:g},children:[t,x.jsx(ze,{defaultZoom:i})]})};function nt(){const t=S.useContext(he);if(t===void 0)throw new Error("useLSP must be used within an LSPContext");return t}const ve=S.createContext(void 0),it=S.memo(({children:t})=>{const[e,n]=S.useState(null);return x.jsx(ve.Provider,{value:{editor:e,setEditor:n},children:t})});function Se(){const t=S.useContext(ve),e=S.useState(null);if(t===void 0){const[n,i]=e;return{editor:n,setEditor:i}}return t}const ot={provideCompletionItems:(t,e)=>{const n=t.getWordUntilPosition(e);return{suggestions:[{label:"device:xs",kind:a.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new a.Range(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
103
- `),insertTextRules:a.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},rt="#/definitions/Condition",st={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},at={$ref:rt,definitions:st},lt="array",ct={type:"object",properties:{class:{type:"string"},method:{type:"string"},regexPattern:{type:"string"},verbs:{type:"string"}}},gt={type:lt,items:ct};function ut(t,e){const n=document.createElement("style");n.dataset.id=e,n.textContent=t,document.head.append(n)}function dt(t){return Array.from(document.styleSheets).find(e=>e.ownerNode.getAttribute("data-id")===t)}function It(t,e){const n=[];let i=[];const o=[],r=(l,g,w,E)=>{n.push({startLineNumber:l,endLineNumber:w,startColumn:g,endColumn:E}),v(),C()},s=l=>{o.indexOf(l)<0&&o.push(l)},I=l=>{const g=o.indexOf(l);g<0||o.splice(g,1)},C=()=>{for(const l of o)try{l(i)}catch(g){console.error(g)}},v=()=>{const l=t.getModel();l&&(i=mt(n.map(g=>[l.getOffsetAt({lineNumber:g.startLineNumber,column:g.startColumn}),l.getOffsetAt({lineNumber:g.endLineNumber,column:g.endColumn})]),!0),i.length>0&&(i[0][0]<=0&&(i[0][0]=Number.NEGATIVE_INFINITY),i[i.length-1][1]>=l.getValueLength()&&(i[i.length-1][1]=Number.POSITIVE_INFINITY)))},f=l=>{const g={isDeletion:!1,isAddition:!1,isReplacement:!1};return l.text===""?g.isDeletion=!0:l.range.startLineNumber===l.range.endLineNumber&&l.range.startColumn===l.range.endColumn?g.isAddition=!0:g.isReplacement=!0,g},A=t.onDidChangeModel(l=>{v(),c()}),p=t.onDidChangeModelContent(l=>{if(!l.isUndoing)for(const g of l.changes){const w=f(g);if(w.isReplacement||w.isDeletion||w.isAddition){const E=n.some(b=>g.range.startLineNumber>=b.startLineNumber&&g.range.endLineNumber<=b.endLineNumber&&g.range.startColumn>=b.startColumn&&g.range.endColumn<=b.endColumn),O=!E&&e&&g.range.startLineNumber===1&&g.range.startColumn===1&&!j.hasAttributesString(g.text);if(E||O){const b=t.getModel();if(b){b.undo();return}}}}}),k=()=>{A.dispose(),p.dispose()};let L=[],y=`
88
+ `);if(this.state==="initial")this.events.splice(0,0,{message:t});else if(this.state==="listening"){const o=JSON.parse(t);this.callback(o)}}}class fs extends Tr.WebSocketMessageWriter{constructor(r,t){super(r),this.onSend=t}async write(r){try{const t=JSON.stringify(r);this.socket.send(t),this.onSend&&this.onSend()}catch(t){this.errorCount++,this.fireError(t,r,this.errorCount)}}}function _e(e,r=!0){const t=`/PACKAGE/Project/Sources/${e}`;return r?`file://${t}`:t}function Fr(e,r=0){setTimeout(e,r)}function In(e,r){const t=new ve.Selection(r.startLineNumber,r.startColumn,r.endLineNumber||r.startLineNumber,r.endColumn||r.startColumn);Fr(()=>{e.setSelection(t),e.revealRangeInCenter(t),e.focus()})}function Cn(e,r,t=0){t>0&&(r=t+r),Fr(()=>{e.setPosition({lineNumber:r,column:1}),e.revealLineInCenter(r),e.focus()})}function bs(e,r,t){const i=e.getModel();if(i&&r){const n=i.getLineCount();for(let s=1;s<=n;s++){const a=i.getLineContent(s);if(new RegExp(`(?:Function|function) ${t}`).test(a))return s}}return 0}const kn=e=>{const r=e==null?void 0:e.getLanguageId();return r&&["css","scss","less"].includes(r)},ms={provideCompletionItems:async(e,r)=>{const t=e.getWordUntilPosition(r);return{suggestions:[{label:"var",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
89
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"While",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["While(${1:expression})"," ${2:body}","End while"].join(`
90
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Case of",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["Case of"," :(${1:boolean_expression})"," ${2:body}","End case"].join(`
91
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Else",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["Else"," "].join(`
92
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"If",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["If (${1:expression})"," ${5:body}","End if"].join(`
93
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"For",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["For(${1:counter};${2:start};${3:end}${4:;increment})"," ${5:body}","End for"].join(`
94
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"Function",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
95
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},ws={provideCompletionItems:async(e,r)=>{const t=e.getWordUntilPosition(r);return{suggestions:[{label:"var",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["var ${1:var_name} : ${2:var_type}"].join(`
96
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"while",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["while(${1:expression})"," ${2:body}","end"].join(`
97
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"switch",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["switch"," :(${1:boolean_expression})"," ${2:body}","end"].join(`
98
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"else",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["else"," "].join(`
99
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"if",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["if (${1:expression})"," ${5:body}","end"].join(`
100
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"for",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["for(${1:counter},${2:start},${3:end}${4:,increment})"," ${5:body}","end"].join(`
101
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"function",kind:Z.languages.CompletionItemKind.Snippet,range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}"," ${5:body}"].join(`
102
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},xs=[{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.NumpadAdd,command:"editor.action.fontZoomIn"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.Equal,command:"editor.action.fontZoomIn"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.NumpadSubtract,command:"editor.action.fontZoomOut"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.Minus,command:"editor.action.fontZoomOut"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.Numpad0,command:"editor.action.fontZoomReset"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.Digit0,command:"editor.action.fontZoomReset"},{keybinding:ve.KeyMod.CtrlCmd|ve.KeyCode.F12,command:"editor.action.revealDefinition"}],ys=({defaultZoom:e})=>(S.useEffect(()=>{e!==void 0&&ve.editor.EditorZoom.setZoomLevel(e)},[]),null);Lr.loader.config({monaco:Z});var yt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(yt||{}),Sn=(e=>(e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground",e))(Sn||{}),Nn=(e=>(e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=3]="RegEx",e))(Nn||{});class vt{static getLanguageId(r){return(r&255)>>>0}static getTokenType(r){return(r&768)>>>8}static containsBalancedBrackets(r){return(r&1024)!==0}static getFontStyle(r){return(r&30720)>>>11}static getForeground(r){return(r&16744448)>>>15}static getBackground(r){return(r&4278190080)>>>24}static getClassNameFromMetadata(r){let o="mtk"+this.getForeground(r);const i=this.getFontStyle(r);return i&1&&(o+=" mtki"),i&2&&(o+=" mtkb"),i&4&&(o+=" mtku"),i&8&&(o+=" mtks"),o}static getInlineStyleFromMetadata(r,t){const o=this.getForeground(r),i=this.getFontStyle(r);let n=`color: ${t[o]};`;i&1&&(n+="font-style: italic;"),i&2&&(n+="font-weight: bold;");let s="";return i&4&&(s+=" underline"),i&8&&(s+=" line-through"),s&&(n+=`text-decoration:${s};`),n}static getPresentationFromMetadata(r){const t=this.getForeground(r),o=this.getFontStyle(r);return{foreground:t,italic:!!(o&1),bold:!!(o&2),underline:!!(o&4),strikethrough:!!(o&8)}}}function Is(e,r,t,o){const i=t.tokens.data,n=e.getLanguageId();let s=0,a=0;const l=o.lineNumber-1,c=o.column-1;for(let d=0;d<i.length;d+=5){const u=i[d],v=i[d+1],y=i[d+2],E=i[d+3],w=i[d+4],b=s+u,C=u===0?a+v:v;if(l===b&&C<=c&&c<C+y){const p=t.legend.tokenTypes[E]||"not in legend (ignored)",f=[];let h=w;for(let X=0;h>0&&X<t.legend.tokenModifiers.length;X++)h&1&&f.push(t.legend.tokenModifiers[X]),h=h>>1;h>0&&f.push("not in legend (ignored)");const g=new ve.Range(b+1,C+1,b+1,C+1+y),k={},M=r.getColorTheme().tokenColorMap,j=r.getColorTheme().getTokenStyleMetadata(p,f,n,!0,k);let H;return j&&(H={languageId:void 0,tokenType:Nn.Other,bold:j==null?void 0:j.bold,italic:j==null?void 0:j.italic,underline:j==null?void 0:j.underline,strikethrough:j==null?void 0:j.strikethrough,foreground:M[(j==null?void 0:j.foreground)||Sn.None],background:void 0}),{type:p,modifiers:f,range:g,metadata:H,definitions:k}}s=b,a=C}return null}function Cs(e,r,t){let o=null;for(let i=1;i<t;i++)o=r.tokenizeLine(e.getLineContent(i),o).ruleStack;return o}function ks(e,r,t){const o=e.getColorTheme().tokenColorMap,i=vt.getLanguageId(t),n=vt.getTokenType(t),s=vt.getFontStyle(t),a=vt.getForeground(t),l=vt.getBackground(t);return{languageId:r.languageIdCodec.decodeLanguageId(i),tokenType:n,bold:s&yt.Bold?!0:void 0,italic:s&yt.Italic?!0:void 0,underline:s&yt.Underline?!0:void 0,strikethrough:s&yt.Strikethrough?!0:void 0,foreground:o[a],background:o[l]}}function Ss(e,r,t){const o=t.lineNumber,i=e,n=i._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar,s=Cs(e,n,o),a=n.tokenizeLine(e.getLineContent(o),s),l=n.tokenizeLine2(e.getLineContent(o),s);let c=0;for(let u=a.tokens.length-1;u>=0;u--){const v=a.tokens[u];if(t.column-1>=v.startIndex){c=u;break}}let d=0;for(let u=l.tokens.length>>>1;u>=0;u--)if(t.column-1>=l.tokens[u<<1]){d=u;break}return{token:a.tokens[c],metadata:ks(r,i._languageService,l.tokens[(d<<1)+1])}}const En=S.createContext(void 0),Ns=({children:e,url:r,qodly:t,defaultZoom:o,openHandler:i,language:n="4d",defaultInited:s=!1})=>{const a=Lr.useMonaco(),[l,c]=S.useState(s),[d,u]=S.useState(null),v=S.useRef(),y=S.useRef(0);S.useEffect(()=>{r&&a&&E()},[r,a]);const E=async()=>{if(!a)return;const F=new ls.Logger({enabled:process.env.NODE_ENV==="development",debugEnabled:process.env.NODE_ENV==="development"}),x=await yn({logger:F});await bn.initServices({caller:"Qodly Code Editor",logger:F,serviceConfig:x}),i&&uo.StandaloneServices.get(uo.ICodeEditorService).registerCodeEditorOpenHandler(i),a.languages.registerCompletionItemProvider(n,t?ws:ms);const _=vr.KeybindingsRegistry.getDefaultKeybindings.bind(vr.KeybindingsRegistry);vr.KeybindingsRegistry.getDefaultKeybindings=()=>_().filter(Q=>!["workbench.action.files.saveAs","workbench.action.files.save"].includes(Q.command)),ve.editor.addKeybindingRules(xs),a.languages.registerFoldingRangeProvider(n,{provideFoldingRanges:function(O){const Q=[],N=/\\\s*$/;for(let R=1,K=O.getLineCount();R<=K;R++){const T=O.getLineContent(R);if(N.exec(T)){let q=R+1;for(;q<=K;){const V=O.getLineContent(q);if(N.exec(V)==null)break;q++}q>R&&(Q.push({start:R,end:q,kind:a.languages.FoldingRangeKind.Region}),R=q)}}return Q}}),w()},w=()=>{u(null);let F;try{F=new WebSocket(localStorage.LSP_SERVER||r)}catch{u(new Event("INVALID_URL"));return}F.onopen=b,F.onclose=C,F.onerror=p,y.current=0},b=async function(){const F=Tr.toSocket(this),x=new vs(F),_=new fs(F),O=new rs.MonacoLanguageClient({name:"4D Language Client",clientOptions:{workspaceFolder:{uri:ve.Uri.parse("file:///PACKAGE")},documentSelector:[{scheme:"file",language:n}],errorHandler:{error:()=>({action:co.ErrorAction.Continue}),closed:()=>({action:co.CloseAction.DoNotRestart})}},connectionProvider:{get:()=>Promise.resolve({reader:x,writer:_})}});v.current=O;const Q=O.sendRequest.bind(O);v.current.sendRequest=function(N,R,K){return typeof N=="object"&&N.method==="textDocument/diagnostic"&&/file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(R.textDocument.uri)?Promise.resolve():Q(N,R,K)},x.onClose(()=>{O.stop(),y.current<3?setTimeout(()=>{y.current++,w()},1e3):u(new Event("WEBSOCKET_CLOSED"))}),O.needsStart()&&await O.start(),c(!0)},C=()=>{},p=F=>{u(F)};S.useEffect(()=>{const F=we.lspSubject.subscribe(({action:x,payload:_})=>{switch(x){case we.LspActions.WILL_SAVE:M(_.filePath);break;case we.LspActions.DID_SAVE:I(_.filePath,_.content);break;case we.LspActions.WILL_CREATE:j(_.filePath);break;case we.LspActions.DID_CREATE:U(_.filePath);break;case we.LspActions.WILL_RENAME:H(_.oldPath,_.newPath);break;case we.LspActions.DID_RENAME:oe(_.oldPath,_.newPath);break;case we.LspActions.WILL_DELETE:X(_.filePath);break;case we.LspActions.DID_DELETE:G(_.filePath);break;case we.LspActions.DIAGNOSTIC_REFRESH:k(_.filePath);break}});return()=>F.unsubscribe()},[]);const f=F=>{var x,_;return(_=(x=v.current)==null?void 0:x._features)==null?void 0:_.find(O=>{var Q;return((Q=O._registrationType)==null?void 0:Q.method)===F})},h=F=>{const x=[],_=f(F);if(_)for(const[,O]of _._registrations)O.provider&&x.push(O.provider);return x},g=async(F,x,_)=>{var Q,N,R;const O=h(Re.SemanticTokensRegistrationType.method);if(O[0]){const K=new ve.CancellationTokenSource,T=await Promise.resolve(O[0].full.provideDocumentSemanticTokens(x,K.token)),z=F,q=T?Is(x,z._themeService,{tokens:T,legend:(R=(N=(Q=v.current)==null?void 0:Q._capabilities)==null?void 0:N.semanticTokensProvider)==null?void 0:R.legend},_):null,V=Ss(x,z._themeService,_);return{semanticTokenInfo:q,textmateTokenInfo:V}}return null},k=F=>{if(v.current){const x=h(Re.DocumentDiagnosticRequest.method);for(const _ of x)_.onDidChangeDiagnosticsEmitter.fire()}},M=(F,x=Re.TextDocumentSaveReason.Manual)=>{var _;(_=v.current)==null||_.sendNotification(Re.WillSaveTextDocumentNotification.type,{textDocument:{uri:_e(F)},reason:x})},I=(F,x)=>{var _;(_=v.current)==null||_.sendNotification(Re.DidSaveTextDocumentNotification.type,{textDocument:{uri:_e(F)},text:x})},j=F=>{var x;(x=v.current)==null||x.sendRequest(Re.WillCreateFilesRequest.type,{files:[{uri:_e(F)}]})},H=(F,x)=>{var _;(_=v.current)==null||_.sendRequest(Re.WillRenameFilesRequest.type,{files:[{oldUri:_e(F),newUri:_e(x)}]})},X=F=>{var x;(x=v.current)==null||x.sendRequest(Re.WillDeleteFilesRequest.type,{files:[{uri:_e(F)}]})},U=F=>{var x;(x=v.current)==null||x.sendNotification(Re.DidCreateFilesNotification.type,{files:[{uri:_e(F)}]})},oe=(F,x)=>{var _;(_=v.current)==null||_.sendNotification(Re.DidRenameFilesNotification.type,{files:[{oldUri:_e(F),newUri:_e(x)}]})},G=F=>{var x;(x=v.current)==null||x.sendNotification(Re.DidDeleteFilesNotification.type,{files:[{uri:_e(F)}]})};return m.jsxs(En.Provider,{value:{inited:l||!!d,clientRef:v,lastError:d,reload:w,getTokenAtPosition:g},children:[e,m.jsx(ys,{defaultZoom:o})]})};function Es(){const e=S.useContext(En);if(e===void 0)throw new Error("useLSP must be used within an LSPContext");return e}const _n=S.createContext(void 0),_s=S.memo(({children:e})=>{const[r,t]=S.useState(null);return m.jsx(_n.Provider,{value:{editor:r,setEditor:t},children:e})});function An(){const e=S.useContext(_n),r=S.useState(null);if(e===void 0){const[t,o]=r;return{editor:t,setEditor:o}}return e}const As={provideCompletionItems:(e,r)=>{const t=e.getWordUntilPosition(r);return{suggestions:[{label:"device:xs",kind:Z.languages.CompletionItemKind.Snippet,documentation:"Media query for phone device",range:new Z.Range(r.lineNumber,t.startColumn,r.lineNumber,t.endColumn),insertText:["@media screen and (max-width: ${1:365px}) {"," self {"," ${2:background-color}:${3:red};"," }","}"].join(`
103
+ `),insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}]}}},Os="#/definitions/Condition",zs={Base:{type:"object",properties:{id:{type:"string"},name:{type:"string"}},required:["id"]},Condition:{oneOf:[{$ref:"#/definitions/Datasource"},{$ref:"#/definitions/Privilege"},{$ref:"#/definitions/Combination"},{$ref:"#/definitions/CurrentState"},{$ref:"#/definitions/ParentState"},{$ref:"#/definitions/Reference"}]},Datasource:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"datasource"},path:{type:"string"},value:{type:["number","string","boolean","object","array","null"]},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex","in","nin","gt","gte","lt","lte"]}},required:["name","type","path","value","op"]},Privilege:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"privilege"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Combination:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"combination"},op:{enum:["and","or"]},conditions:{type:"array",items:{$ref:"#/definitions/Condition"}}},required:["type","conditions","op"]},CurrentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"currentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},ParentState:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"parentState"},value:{type:"string"},valueType:{enum:["datasource","hardCoded"]},dataType:{enum:["string","number","date","boolean","array","object"]},op:{enum:["eq","neq","regex"]}},required:["name","type","value","op"]},Reference:{allOf:[{$ref:"#/definitions/Base"}],properties:{type:{const:"reference"},ref:{type:"string"}},required:["type","ref"]}},Rs={$ref:Os,definitions:zs},Ds="array",js={type:"object",properties:{class:{type:"string"},method:{type:"string"},regexPattern:{type:"string"},verbs:{type:"string"}}},Ms={type:Ds,items:js};function Ls(e,r){const t=document.createElement("style");t.dataset.id=r,t.textContent=e,document.head.append(t)}function Ts(e){return Array.from(document.styleSheets).find(r=>r.ownerNode.getAttribute("data-id")===e)}function Fs(e,r){const t=[];let o=[];const i=[],n=(h,g,k,M)=>{t.push({startLineNumber:h,endLineNumber:k,startColumn:g,endColumn:M}),c(),l()},s=h=>{i.indexOf(h)<0&&i.push(h)},a=h=>{const g=i.indexOf(h);g<0||i.splice(g,1)},l=()=>{for(const h of i)try{h(o)}catch(g){console.error(g)}},c=()=>{const h=e.getModel();h&&(o=Ps(t.map(g=>[h.getOffsetAt({lineNumber:g.startLineNumber,column:g.startColumn}),h.getOffsetAt({lineNumber:g.endLineNumber,column:g.endColumn})]),!0),o.length>0&&(o[0][0]<=0&&(o[0][0]=Number.NEGATIVE_INFINITY),o[o.length-1][1]>=h.getValueLength()&&(o[o.length-1][1]=Number.POSITIVE_INFINITY)))},d=h=>{const g={isDeletion:!1,isAddition:!1,isReplacement:!1};return h.text===""?g.isDeletion=!0:h.range.startLineNumber===h.range.endLineNumber&&h.range.startColumn===h.range.endColumn?g.isAddition=!0:g.isReplacement=!0,g},u=e.onDidChangeModel(h=>{c(),p()}),v=e.onDidChangeModelContent(h=>{if(!h.isUndoing)for(const g of h.changes){const k=d(g);if(k.isReplacement||k.isDeletion||k.isAddition){const M=t.some(j=>g.range.startLineNumber>=j.startLineNumber&&g.range.endLineNumber<=j.endLineNumber&&g.range.startColumn>=j.startColumn&&g.range.endColumn<=j.endColumn),I=!M&&r&&g.range.startLineNumber===1&&g.range.startColumn===1&&!we.hasAttributesString(g.text);if(M||I){const j=e.getModel();if(j){j.undo();return}}}}}),y=()=>{u.dispose(),v.dispose()};let E=[],w=`
104
104
  .idoc-readonly-mark {
105
105
  cursor: not-allowed;
106
106
  z-index: 1;
107
107
  }
108
- `;if(y){const l="monaco-read-only";dt(l)||ut(y,l),y=null}const R=()=>{s(c),c()},h=()=>{I(c),L=t.deltaDecorations(L,[])},c=()=>{const l=t.getModel();l&&(L=t.deltaDecorations(L,i.map(W(l))))},W=l=>g=>{const w=l.getPositionAt(g[0]),E=l.getPositionAt(g[1]);return{range:new a.Range(w.lineNumber,w.column,E.lineNumber,E.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return i},exclude:r,attach:s,detach:I,dispose:k,show:R,hide:h}}function Ct(t,e,n){let i=!1;const o=h=>h[1]<h[0]?(i=!0,[[h[1],h[0]]]):[[...h]],r=h=>i?h.map(c=>c[1]>c[0]?I(c):c).reverse():h;let s;const I=h=>(s=h[1],h[1]=h[0],h[0]=s,h),C=o(t);let v,f,A,p,k,L,y,R;A=C[0];for(f of e)for(y=f[0],R=f[1],p=0;p<C.length;p++){if(A=C[p],k=A[0],L=A[1],k<y)L<y?v=[A]:L<=R?v=[[k,y-1]]:v=[[k,y-1],[R+1,L]];else if(k<=R)if(y===Number.NEGATIVE_INFINITY){const h=R+1;v=n===0?[]:[[h,L>h?L:h]]}else R===Number.POSITIVE_INFINITY?v=n===0?[]:[[y-1,y-1]]:L<=R?v=n<0?[[y-1,y-1]]:n>0?[[R+1,R+1]]:[]:v=[[R+1,L]];else v=[A];if(C.splice(p,1,...v),C.length===1&&C[0][1]<y)return r(C)}return r(C)}function mt(t,e){if(t.length<2)return t;const n=[];let i=null,o,r;t=t.map(s=>(s[1]<s[0]&&(o=s[1],s[1]=s[0],s[1]=o),s)).sort((s,I)=>s[0]-I[0]),n.push(t[0]);for(let s=1;s<t.length;s++)i=n[n.length-1],r=t[s],i[1]===r[0]&&!e||(i[1]===r[0]-1&&e?(i[1]=r[1],n.splice(n.length-1,1,i)):i[1]<r[0]?n.push(r):i[1]<r[1]&&(i[1]=r[1],n.splice(n.length-1,1,i)));return n}function _(t,e){return e.bind(t)}class ft{constructor(e,n){var i;this.disposables=[],this.prefer=1,this.lastPrefer=1,this.onCursor=_(this,function(o){if(o.source==="api")return;const r=this.getApprovedSelections();r.length!==0&&this.editor.setSelections(r)}),this.onRectangleSelectionStart=_(this,function({event:o}){o.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}),this.onRectangleSelectionStop=_(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}),this.onKey=_(this,function(o){const r=o.keyCode,s=a.KeyCode;if(o.altKey||s.F1<=r&&r<=s.F19||o.ctrlKey&&r!==s.Backspace)return;if(r===s.UpArrow||r===s.LeftArrow||r===s.Home||r===s.PageUp){this.prefer=-1;return}if(r===s.DownArrow||r===s.RightArrow||r===s.End||r===s.PageDown){this.prefer=1;return}const I=this.getSelections(),C=this.intervals.buffer;let v;if(r===s.Delete)v=f=>f[0]===f[1]&&C.find(A=>f[1]+1===A[0])!=null;else if(r===s.Backspace)v=f=>f[0]===f[1]&&C.find(A=>A[1]+1===f[0])!=null;else return;I.findIndex(v)!==-1&&(o.stopPropagation(),o.preventDefault())}),this.getOffsetAt=_(this,function(o){let r;for(let s=0;s<this.intervals.buffer.length;s++)if(r=this.intervals.buffer[s],o<=r[1])return r[0]-o<o-r[1]?r[0]:r[1]}),this.editor=e,this.intervals=It(e,n),(i=this.editor.getModel())==null||i.setEOL(a.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const e of this.disposables)e.dispose();this.disposables.splice(0)}exclude(e,n,i,o){arguments.length===1?this.intervals.exclude(e,0,e,Number.MAX_SAFE_INTEGER):this.intervals.exclude(e,n,i,o)}getApprovedSelections(){const e=this.editor.getModel();return this.getSelections().map(i=>Ct(i,this.intervals.buffer,this.prefer)).flat().map(i=>{const o=e.getPositionAt(i[0]),r=e.getPositionAt(i[1]);return new a.Selection(o.lineNumber,o.column,r.lineNumber,r.column)})}getSelections(){const e=this.editor.getModel();return(this.editor.getSelections()||[]).map(n=>[e.getOffsetAt({lineNumber:n.selectionStartLineNumber,column:n.selectionStartColumn}),e.getOffsetAt({lineNumber:n.positionLineNumber,column:n.positionColumn})])}}const pt={provideDocumentFormattingEdits(t,e){const n=t.getValue();try{const i=At(n,e.tabSize,e.insertSpaces);return[{range:t.getFullModelRange(),text:i}]}catch{return[]}}};function At(t,e=2,n=!0){const i=n?" ".repeat(e):" ";let o=t.replace(/\s+/g," ").trim();return o=o.replace(/\{/g,` {
109
- `+i).replace(/\}/g,`
108
+ `;if(w){const h="monaco-read-only";Ts(h)||Ls(w,h),w=null}const b=()=>{s(p),p()},C=()=>{a(p),E=e.deltaDecorations(E,[])},p=()=>{const h=e.getModel();h&&(E=e.deltaDecorations(E,o.map(f(h))))},f=h=>g=>{const k=h.getPositionAt(g[0]),M=h.getPositionAt(g[1]);return{range:new Z.Range(k.lineNumber,k.column,M.lineNumber,M.column),options:{className:"idoc-readonly-mark"}}};return{get buffer(){return o},exclude:n,attach:s,detach:a,dispose:y,show:b,hide:C}}function Ws(e,r,t){let o=!1;const i=C=>C[1]<C[0]?(o=!0,[[C[1],C[0]]]):[[...C]],n=C=>o?C.map(p=>p[1]>p[0]?a(p):p).reverse():C;let s;const a=C=>(s=C[1],C[1]=C[0],C[0]=s,C),l=i(e);let c,d,u,v,y,E,w,b;u=l[0];for(d of r)for(w=d[0],b=d[1],v=0;v<l.length;v++){if(u=l[v],y=u[0],E=u[1],y<w)E<w?c=[u]:E<=b?c=[[y,w-1]]:c=[[y,w-1],[b+1,E]];else if(y<=b)if(w===Number.NEGATIVE_INFINITY){const C=b+1;c=t===0?[]:[[C,E>C?E:C]]}else b===Number.POSITIVE_INFINITY?c=t===0?[]:[[w-1,w-1]]:E<=b?c=t<0?[[w-1,w-1]]:t>0?[[b+1,b+1]]:[]:c=[[b+1,E]];else c=[u];if(l.splice(v,1,...c),l.length===1&&l[0][1]<w)return n(l)}return n(l)}function Ps(e,r){if(e.length<2)return e;const t=[];let o=null,i,n;e=e.map(s=>(s[1]<s[0]&&(i=s[1],s[1]=s[0],s[1]=i),s)).sort((s,a)=>s[0]-a[0]),t.push(e[0]);for(let s=1;s<e.length;s++)o=t[t.length-1],n=e[s],o[1]===n[0]&&!r||(o[1]===n[0]-1&&r?(o[1]=n[1],t.splice(t.length-1,1,o)):o[1]<n[0]?t.push(n):o[1]<n[1]&&(o[1]=n[1],t.splice(t.length-1,1,o)));return t}function ft(e,r){return r.bind(e)}class Vs{constructor(r,t){var o;this.disposables=[],this.prefer=1,this.lastPrefer=1,this.onCursor=ft(this,function(i){if(i.source==="api")return;const n=this.getApprovedSelections();n.length!==0&&this.editor.setSelections(n)}),this.onRectangleSelectionStart=ft(this,function({event:i}){i.middleButton&&(this.lastPrefer=this.prefer,this.prefer=0,window.addEventListener("pointerup",this.onRectangleSelectionStop))}),this.onRectangleSelectionStop=ft(this,function(){this.prefer=this.lastPrefer,window.removeEventListener("pointerup",this.onRectangleSelectionStop)}),this.onKey=ft(this,function(i){const n=i.keyCode,s=Z.KeyCode;if(i.altKey||s.F1<=n&&n<=s.F19||i.ctrlKey&&n!==s.Backspace)return;if(n===s.UpArrow||n===s.LeftArrow||n===s.Home||n===s.PageUp){this.prefer=-1;return}if(n===s.DownArrow||n===s.RightArrow||n===s.End||n===s.PageDown){this.prefer=1;return}const a=this.getSelections(),l=this.intervals.buffer;let c;if(n===s.Delete)c=d=>d[0]===d[1]&&l.find(u=>d[1]+1===u[0])!=null;else if(n===s.Backspace)c=d=>d[0]===d[1]&&l.find(u=>u[1]+1===d[0])!=null;else return;a.findIndex(c)!==-1&&(i.stopPropagation(),i.preventDefault())}),this.getOffsetAt=ft(this,function(i){let n;for(let s=0;s<this.intervals.buffer.length;s++)if(n=this.intervals.buffer[s],i<=n[1])return n[0]-i<i-n[1]?n[0]:n[1]}),this.editor=r,this.intervals=Fs(r,t),(o=this.editor.getModel())==null||o.setEOL(Z.editor.EndOfLineSequence.LF)}enable(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.onCursor),this.editor.onKeyDown(this.onKey),this.editor.onMouseDown(this.onRectangleSelectionStart)),this.intervals.show()}dispose(){for(const r of this.disposables)r.dispose();this.disposables.splice(0)}exclude(r,t,o,i){arguments.length===1?this.intervals.exclude(r,0,r,Number.MAX_SAFE_INTEGER):this.intervals.exclude(r,t,o,i)}getApprovedSelections(){const r=this.editor.getModel();return this.getSelections().map(o=>Ws(o,this.intervals.buffer,this.prefer)).flat().map(o=>{const i=r.getPositionAt(o[0]),n=r.getPositionAt(o[1]);return new Z.Selection(i.lineNumber,i.column,n.lineNumber,n.column)})}getSelections(){const r=this.editor.getModel();return(this.editor.getSelections()||[]).map(t=>[r.getOffsetAt({lineNumber:t.selectionStartLineNumber,column:t.selectionStartColumn}),r.getOffsetAt({lineNumber:t.positionLineNumber,column:t.positionColumn})])}}const Hs={provideDocumentFormattingEdits(e,r){const t=e.getValue();try{const o=Bs(t,r.tabSize,r.insertSpaces);return[{range:e.getFullModelRange(),text:o}]}catch{return[]}}};function Bs(e,r=2,t=!0){const o=t?" ".repeat(r):" ";let i=e.replace(/\s+/g," ").trim();return i=i.replace(/\{/g,` {
109
+ `+o).replace(/\}/g,`
110
110
  }
111
111
  `).replace(/;/g,`;
112
- `+i).replace(/,/g,`,
113
- `+i),o=o.replace(/\s*\{\s*/g,` {
114
- `+i).replace(/\s*\}\s*/g,`
112
+ `+o).replace(/,/g,`,
113
+ `+o),i=i.replace(/\s*\{\s*/g,` {
114
+ `+o).replace(/\s*\}\s*/g,`
115
115
  }
116
116
  `).replace(/\s*;\s*/g,`;
117
- `+i).replace(/\s*:\s*/g,": "),o=o.split(`
118
- `).map(r=>r.trim()==="}"?"}":r.trimEnd()).filter((r,s,I)=>!(r===""&&I[s+1]==="")).join(`
119
- `).trim(),o}const bt={provideDocumentFormattingEdits(t,e){const n=t.getValue();try{const i=ht(n,e.tabSize);return[{range:t.getFullModelRange(),text:i}]}catch{return[]}}};function ht(t,e=2){const n=JSON.parse(t);return JSON.stringify(n,null,e)}const vt=new RegExp("^[ s]+(exposed|Function)","i"),ye=({lineNumber:t,editor:e,type:n,source:i})=>{var v;const o=n===j.FileFolderType.METHOD||n===j.FileFolderType.DEBUGGER&&((v=i==null?void 0:i.codeDescriptorInfo)==null?void 0:v.type)===j.SourceCodeDescriptor.METHOD;if(t===1)return o?"":"1";const r=e==null?void 0:e.getModel(),s=(r==null?void 0:r.getLinesContent())||[],I=Array(s.length).fill("-");let C=o?0:1;for(let f=1;f<s.length;f++)(f===1?"":s[f-1]).endsWith("\\")||(C+=1,I[f]=C.toString());return I[t-1]},ce=()=>x.jsx("div",{className:"absolute inset-0 animate-pulse",children:x.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:x.jsxs("div",{className:"space-y-2",children:[x.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),x.jsx("div",{className:"h-3 rounded bg-grey-200"}),x.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),x.jsx("div",{className:"h-3 rounded bg-grey-200"}),x.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),U=["fd-dark"],z={css:[],json:[]},St=({path:t,initialValue:e,type:n,language:i,onChange:o,options:r={},extra:s={},lspProps:I,theme:C=U[0],...v})=>{const{initialLineInfo:f,initialSelectionInfo:A}=s,{editor:p,setEditor:k}=Se(),{inited:L}=I;function y(c){i==="css"&&c.languages.css&&(c.languages.registerCompletionItemProvider("css",ot),c.languages.css.cssDefaults.setModeConfiguration({...c.languages.css.cssDefaults.modeConfiguration,documentFormattingEdits:!1,documentRangeFormattingEdits:!1}),z.css.forEach(W=>W.dispose()),z.css.push(c.languages.registerDocumentFormattingEditProvider("css",pt))),i==="json"&&c.languages.json&&(c.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:at},{uri:"handlers-schema.json",fileMatch:[j.HTTP_HANDLERS_TAB_PATH],schema:gt}]}),c.languages.json.jsonDefaults.setModeConfiguration({...c.languages.json.jsonDefaults.modeConfiguration,documentFormattingEdits:!1,documentRangeFormattingEdits:!1}),z.json.forEach(W=>W.dispose()),z.json.push(c.languages.registerDocumentFormattingEditProvider("json",bt)))}function R(c,W){k(c);const l=c.getModel();if(l&&(l.updateOptions({insertSpaces:!1}),c.onKeyUp(()=>{var w;const g=(w=c.getPosition())==null?void 0:w.lineNumber;if(g){const E=l.getLineFirstNonWhitespaceColumn(g),O=l.getLineLength(g),b=l.getLineContent(g);vt.test(b)&&c.executeEdits("edit-handler",[{range:new W.Range(g,0,g,O),text:b.substr(E-1,O-E)}])}})),pe(l)){const g=["editor.action.revealDefinition","editor.action.goToReferences","submenuitem.EditorContextPeek"],w=c.getContribution("editor.contrib.contextmenu"),E=w._getMenuActions;w._getMenuActions=function(){return E.apply(w,arguments).filter(function(b){return!g.includes(b.id)})}}if(n===j.FileFolderType.METHOD&&j.hasAttributesString(e)){const g=new ft(c,!0);g.exclude(1,1,1,Number.POSITIVE_INFINITY),g.enable()}}S.useEffect(()=>{if(!p)return;const{line:c,offset:W}=f||{};c&&fe(p,c,W)},[f,p]),S.useEffect(()=>{if(!p)return;const{selection:c}=A||{};c&&me(p,c)},[A,p]);const h=c=>U.includes(c)?c:U[0];return L?x.jsx(ie.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},lineNumbers:i==="4d"?c=>ye({lineNumber:c,editor:p,type:n,source:s==null?void 0:s.source}):void 0,scrollBeyondLastLine:!1,...r},path:T(t),value:e,theme:h(C),onChange:c=>o&&o(c||""),language:i,beforeMount:y,onMount:R,loading:x.jsx(ce,{}),...v}):x.jsx("div",{className:"relative flex-1 w-full",children:x.jsx(ce,{})})};var xe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ge=S.createContext&&S.createContext(xe),P=function(){return P=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},P.apply(this,arguments)},yt=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]]);return n};function Re(t){return t&&t.map(function(e,n){return S.createElement(e.tag,P({key:n},e.attr),Re(e.child))})}function Ne(t){return function(e){return S.createElement(xt,P({attr:P({},t.attr)},e),Re(t.child))}}function xt(t){var e=function(n){var i=t.attr,o=t.size,r=t.title,s=yt(t,["attr","size","title"]),I=o||n.size||"1em",C;return n.className&&(C=n.className),t.className&&(C=(C?C+" ":"")+t.className),S.createElement("svg",P({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,s,{className:C,style:P(P({color:t.color||n.color},n.style),t.style),height:I,width:I,xmlns:"http://www.w3.org/2000/svg"}),r&&S.createElement("title",null,r),t.children)};return ge!==void 0?S.createElement(ge.Consumer,null,function(n){return e(n)}):e(xe)}function Rt(t){return Ne({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(t)}function Nt(t){return Ne({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(t)}const wt=({lspProps:{lastError:t,reload:e}})=>{const[n,i]=S.useState(!1),o=()=>{e()},r=()=>{i(!1)};return S.useEffect(()=>{i(!!t)},[t]),n?x.jsxs("div",{className:"flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50",children:[x.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[x.jsx(Nt,{className:"h-4 w-4 text-yellow-600"}),x.jsxs("span",{children:["LSP not loaded."," ",x.jsx("button",{className:"text-primary-dark underline",onClick:o,children:"Reload?"})]})]}),x.jsx("button",{className:"focus:outline-none",children:x.jsx(Rt,{className:"h-4 w-4 text-white",onClick:r})})]}):null},Ft={name:"4d",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",engines:{vscode:"0.10.x"},categories:["Programming Languages"],contributes:{languages:[{id:"4d",aliases:["4D","4d"],extensions:[".4dm",".4qs"],configuration:"./language-configuration.json"}],grammars:[{language:"4d",scopeName:"source.4dm",path:"./syntaxes/4d.tmLanguage.json"}]}},{registerFileUrl:$,whenReady:jt}=Xe.registerExtension(Ft,void 0,{system:!0});$("./syntaxes/4d.tmLanguage.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",typeof document>"u"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1592});$("./language-configuration.json",new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",typeof document>"u"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1723});$("package.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K",typeof document>"u"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1006});$("package.nls.json",new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",typeof document>"u"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:135});exports.Alerts=wt;exports.CodeEditor=St;exports.CodeEditorProvider=it;exports.FdLineNumbers=ye;exports.LSPProvider=tt;exports.SUPPORTED_THEMES=U;exports._await=re;exports.configureServices=Ce;exports.getFileSystemPath=T;exports.getFunctionOffset=_e;exports.initMonacoUserConfiguration=Ie;exports.isCssModel=pe;exports.jumpToLine=fe;exports.jumpToSelection=me;exports.useCodeEditor=Se;exports.useLSP=nt;
117
+ `+o).replace(/\s*:\s*/g,": "),i=i.split(`
118
+ `).map(n=>n.trim()==="}"?"}":n.trimEnd()).filter((n,s,a)=>!(n===""&&a[s+1]==="")).join(`
119
+ `).trim(),i}const $s={provideDocumentFormattingEdits(e,r){const t=e.getValue();try{const o=Ks(t,r.tabSize);return[{range:e.getFullModelRange(),text:o}]}catch{return[]}}};function Ks(e,r=2){const t=JSON.parse(e);return JSON.stringify(t,null,r)}const Gs=new RegExp("^[ s]+(exposed|Function)","i"),On=({lineNumber:e,editor:r,type:t,source:o})=>{var c;const i=t===we.FileFolderType.METHOD||t===we.FileFolderType.DEBUGGER&&((c=o==null?void 0:o.codeDescriptorInfo)==null?void 0:c.type)===we.SourceCodeDescriptor.METHOD;if(e===1)return i?"":"1";const n=r==null?void 0:r.getModel(),s=(n==null?void 0:n.getLinesContent())||[],a=Array(s.length).fill("-");let l=i?0:1;for(let d=1;d<s.length;d++)(d===1?"":s[d-1]).endsWith("\\")||(l+=1,a[d]=l.toString());return a[e-1]},po=()=>m.jsx("div",{className:"absolute inset-0 animate-pulse",children:m.jsx("div",{className:"w-full space-y-4 px-4 py-1",children:m.jsxs("div",{className:"space-y-2",children:[m.jsx("div",{className:"h-3 w-3/4 rounded bg-grey-200"}),m.jsx("div",{className:"h-3 rounded bg-grey-200"}),m.jsx("div",{className:"h-3 w-5/6 rounded bg-grey-200"}),m.jsx("div",{className:"h-3 rounded bg-grey-200"}),m.jsx("div",{className:"h-3 rounded bg-grey-200"})]})})}),qt=["fd-dark"],Dt={css:[],json:[]},qs=({path:e,initialValue:r,type:t,language:o,onChange:i,options:n={},extra:s={},lspProps:a,theme:l=qt[0],...c})=>{const{initialLineInfo:d,initialSelectionInfo:u}=s,{editor:v,setEditor:y}=An(),{inited:E}=a;function w(p){o==="css"&&p.languages.css&&(p.languages.registerCompletionItemProvider("css",As),p.languages.css.cssDefaults.setModeConfiguration({...p.languages.css.cssDefaults.modeConfiguration,documentFormattingEdits:!1,documentRangeFormattingEdits:!1}),Dt.css.forEach(f=>f.dispose()),Dt.css.push(p.languages.registerDocumentFormattingEditProvider("css",Hs))),o==="json"&&p.languages.json&&(p.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[{uri:"condition-schema.json",fileMatch:["*.condition.json"],schema:Rs},{uri:"handlers-schema.json",fileMatch:[we.HTTP_HANDLERS_TAB_PATH],schema:Ms}]}),p.languages.json.jsonDefaults.setModeConfiguration({...p.languages.json.jsonDefaults.modeConfiguration,documentFormattingEdits:!1,documentRangeFormattingEdits:!1}),Dt.json.forEach(f=>f.dispose()),Dt.json.push(p.languages.registerDocumentFormattingEditProvider("json",$s)))}function b(p,f){y(p);const h=p.getModel();if(h&&(h.updateOptions({insertSpaces:!1}),p.onKeyUp(()=>{var k;const g=(k=p.getPosition())==null?void 0:k.lineNumber;if(g){const M=h.getLineFirstNonWhitespaceColumn(g),I=h.getLineLength(g),j=h.getLineContent(g);Gs.test(j)&&p.executeEdits("edit-handler",[{range:new f.Range(g,0,g,I),text:j.substr(M-1,I-M)}])}})),kn(h)){const g=["editor.action.revealDefinition","editor.action.goToReferences","submenuitem.EditorContextPeek"],k=p.getContribution("editor.contrib.contextmenu"),M=k._getMenuActions;k._getMenuActions=function(){return M.apply(k,arguments).filter(function(j){return!g.includes(j.id)})}}if(t===we.FileFolderType.METHOD&&we.hasAttributesString(r)){const g=new Vs(p,!0);g.exclude(1,1,1,Number.POSITIVE_INFINITY),g.enable()}}S.useEffect(()=>{if(!v)return;const{line:p,offset:f}=d||{};p&&Cn(v,p,f)},[d,v]),S.useEffect(()=>{if(!v)return;const{selection:p}=u||{};p&&In(v,p)},[u,v]);const C=p=>qt.includes(p)?p:qt[0];return E?m.jsx(Lr.Editor,{options:{readOnly:!0,fontSize:12,"semanticHighlighting.enabled":!0,padding:{top:10},lineNumbers:o==="4d"?p=>On({lineNumber:p,editor:v,type:t,source:s==null?void 0:s.source}):void 0,scrollBeyondLastLine:!1,...n},path:_e(e),value:r,theme:C(l),onChange:p=>i&&i(p||""),language:o,beforeMount:w,onMount:b,loading:m.jsx(po,{}),...c}):m.jsx("div",{className:"relative flex-1 w-full",children:m.jsx(po,{})})};var zn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},go=S.createContext&&S.createContext(zn),Xe=function(){return Xe=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Xe.apply(this,arguments)},Xs=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]]);return t};function Rn(e){return e&&e.map(function(r,t){return S.createElement(r.tag,Xe({key:t},r.attr),Rn(r.child))})}function Dn(e){return function(r){return S.createElement(Zs,Xe({attr:Xe({},e.attr)},r),Rn(e.child))}}function Zs(e){var r=function(t){var o=e.attr,i=e.size,n=e.title,s=Xs(e,["attr","size","title"]),a=i||t.size||"1em",l;return t.className&&(l=t.className),e.className&&(l=(l?l+" ":"")+e.className),S.createElement("svg",Xe({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,s,{className:l,style:Xe(Xe({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),n&&S.createElement("title",null,n),e.children)};return go!==void 0?S.createElement(go.Consumer,null,function(t){return r(t)}):r(zn)}function Ys(e){return Dn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z"}}]})(e)}function Us(e){return Dn({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z"}}]})(e)}(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-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-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--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-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-px:not(#\\#){right:-1px}.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-px:not(#\\#){left:-1px}.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)}.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-30:not(#\\#){height:calc(var(--spacing)*30)}.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-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}.grow:not(#\\#){flex-grow:1}.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}.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-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.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-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-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-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-text:not(#\\#){background-color:var(--color-input-text)}.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-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-opacity:not(#\\#){transition-property:opacity;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-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.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\\:top-full:last-child:not(#\\#){top:100%}.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\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child: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)}.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-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.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-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.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-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.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-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-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.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\\: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(--vscode-button-background,var(--theia-button-secondaryForeground,var(--theia-button-background,var(--ws-palette-primary-200)))));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--vscode-button-foreground,var(--theia-button-secondaryBackground,var(--theia-button-foreground,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(--ws-palette-negative-200);--ws-negative-dark: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-editor-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-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,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(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-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(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-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(--vscode-editor-foreground,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-base-ide:var(--vscode-editor-background,var(--theia-editor-background));--ws-panel-shift-ide:var(--vscode-editor-foreground,var(--theia-panel-foreground));--ws-panel-0-mix:var(--ws-panel-base-ide);--ws-panel-1-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-1-mix:color-mix(in srgb,var(--ws-panel-base-ide)96%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-2-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-2-mix:color-mix(in srgb,var(--ws-panel-base-ide)92%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-3-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-3-mix:color-mix(in srgb,var(--ws-panel-base-ide)88%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-4-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-4-mix:color-mix(in srgb,var(--ws-panel-base-ide)84%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-5-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-5-mix:color-mix(in srgb,var(--ws-panel-base-ide)80%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-light-mix:var(--ws-panel-base-ide)}@supports (color:color-mix(in lab,red,red)){:root:not(#\\#){--ws-panel-light-mix:color-mix(in srgb,var(--ws-panel-base-ide)70%,var(--ws-panel-shift-ide))}}:root:not(#\\#){--ws-panel-0:var(--ws-panel-0-mix,var(--ws-palette-grey-900));--ws-panel-1:var(--ws-panel-1-mix,var(--ws-palette-grey-700));--ws-panel-2:var(--ws-panel-2-mix,var(--ws-palette-grey-900));--ws-panel-3:var(--ws-panel-3-mix,var(--ws-palette-grey-900));--ws-panel-4:var(--ws-panel-4-mix,var(--ws-palette-grey-300));--ws-panel-5:var(--ws-panel-5-mix,var(--ws-palette-grey-950));--ws-panel-light:var(--ws-panel-light-mix,var(--ws-palette-grey-200));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,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(--vscode-editor-foreground,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(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,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}
120
+ `,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const Js=e=>m.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m.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"})}),Qs=e=>m.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m.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"})}),sr=e=>m.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m.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"})}),ea=e=>m.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m.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"})}),ta=e=>m.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:m.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"})}),ra=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},oa=(e,r)=>({classGroupId:e,validator:r}),jn=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),tr="-",ho=[],na="arbitrary..",ia=e=>{const r=aa(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return sa(i);const n=i.split(tr),s=n[0]===""&&n.length>1?1:0;return Mn(n,s,r)},getConflictingClassGroupIds:(i,n)=>{if(n){const s=o[i],a=t[i];return s?a?ra(a,s):s:a||ho}return t[i]||ho}}},Mn=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const o=e[r],i=t.nextPart.get(o);if(i){const l=Mn(e,r+1,i);if(l)return l}const n=t.validators;if(n===null)return;const s=r===0?e.join(tr):e.slice(r).join(tr),a=n.length;for(let l=0;l<a;l++){const c=n[l];if(c.validator(s))return c.classGroupId}},sa=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?na+o:void 0})(),aa=e=>{const{theme:r,classGroups:t}=e;return la(t,r)},la=(e,r)=>{const t=jn();for(const o in e){const i=e[o];Wr(i,t,o,r)}return t},Wr=(e,r,t,o)=>{const i=e.length;for(let n=0;n<i;n++){const s=e[n];ca(s,r,t,o)}},ca=(e,r,t,o)=>{if(typeof e=="string"){da(e,r,t);return}if(typeof e=="function"){ua(e,r,t,o);return}pa(e,r,t,o)},da=(e,r,t)=>{const o=e===""?r:Ln(r,e);o.classGroupId=t},ua=(e,r,t,o)=>{if(ga(e)){Wr(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(oa(t,e))},pa=(e,r,t,o)=>{const i=Object.entries(e),n=i.length;for(let s=0;s<n;s++){const[a,l]=i[s];Wr(l,Ln(r,a),t,o)}},Ln=(e,r)=>{let t=e;const o=r.split(tr),i=o.length;for(let n=0;n<i;n++){const s=o[n];let a=t.nextPart.get(s);a||(a=jn(),t.nextPart.set(s,a)),t=a}return t},ga=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,ha=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const i=(n,s)=>{t[n]=s,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(n){let s=t[n];if(s!==void 0)return s;if((s=o[n])!==void 0)return i(n,s),s},set(n,s){n in t?t[n]=s:i(n,s)}}},Or="!",vo=":",va=[],fo=(e,r,t,o,i)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:i}),fa=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=i=>{const n=[];let s=0,a=0,l=0,c;const d=i.length;for(let w=0;w<d;w++){const b=i[w];if(s===0&&a===0){if(b===vo){n.push(i.slice(l,w)),l=w+1;continue}if(b==="/"){c=w;continue}}b==="["?s++:b==="]"?s--:b==="("?a++:b===")"&&a--}const u=n.length===0?i:i.slice(l);let v=u,y=!1;u.endsWith(Or)?(v=u.slice(0,-1),y=!0):u.startsWith(Or)&&(v=u.slice(1),y=!0);const E=c&&c>l?c-l:void 0;return fo(n,y,v,E)};if(r){const i=r+vo,n=o;o=s=>s.startsWith(i)?n(s.slice(i.length)):fo(va,!1,s,void 0,!0)}if(t){const i=o;o=n=>t({className:n,parseClassName:i})}return o},ba=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let i=[];for(let n=0;n<t.length;n++){const s=t[n],a=s[0]==="[",l=r.has(s);a||l?(i.length>0&&(i.sort(),o.push(...i),i=[]),o.push(s)):i.push(s)}return i.length>0&&(i.sort(),o.push(...i)),o}},ma=e=>({cache:ha(e.cacheSize),parseClassName:fa(e),sortModifiers:ba(e),...ia(e)}),wa=/\s+/,xa=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:i,sortModifiers:n}=r,s=[],a=e.trim().split(wa);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{isExternal:u,modifiers:v,hasImportantModifier:y,baseClassName:E,maybePostfixModifierPosition:w}=t(d);if(u){l=d+(l.length>0?" "+l:l);continue}let b=!!w,C=o(b?E.substring(0,w):E);if(!C){if(!b){l=d+(l.length>0?" "+l:l);continue}if(C=o(E),!C){l=d+(l.length>0?" "+l:l);continue}b=!1}const p=v.length===0?"":v.length===1?v[0]:n(v).join(":"),f=y?p+Or:p,h=f+C;if(s.indexOf(h)>-1)continue;s.push(h);const g=i(C,b);for(let k=0;k<g.length;++k){const M=g[k];s.push(f+M)}l=d+(l.length>0?" "+l:l)}return l},ya=(...e)=>{let r=0,t,o,i="";for(;r<e.length;)(t=e[r++])&&(o=Tn(t))&&(i&&(i+=" "),i+=o);return i},Tn=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=Tn(e[o]))&&(t&&(t+=" "),t+=r);return t},bo=(e,...r)=>{let t,o,i,n;const s=l=>{const c=r.reduce((d,u)=>u(d),e());return t=ma(c),o=t.cache.get,i=t.cache.set,n=a,a(l)},a=l=>{const c=o(l);if(c)return c;const d=xa(l,t);return i(l,d),d};return n=s,(...l)=>n(ya(...l))},Ia=[],me=e=>{const r=t=>t[e]||Ia;return r.isThemeGetter=!0,r},Fn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ca=/^\d+\/\d+$/,ka=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sa=/\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$/,Na=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ea=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_a=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tt=e=>Ca.test(e),re=e=>!!e&&!Number.isNaN(Number(e)),$e=e=>!!e&&Number.isInteger(Number(e)),fr=e=>e.endsWith("%")&&re(e.slice(0,-1)),We=e=>ka.test(e),Aa=()=>!0,Oa=e=>Sa.test(e)&&!Na.test(e),Pn=()=>!1,za=e=>Ea.test(e),Ra=e=>_a.test(e),Da=e=>!B(e)&&!$(e),ja=e=>dt(e,Bn,Pn),B=e=>Fn.test(e),Ye=e=>dt(e,$n,Oa),br=e=>dt(e,Wa,re),mo=e=>dt(e,Vn,Pn),Ma=e=>dt(e,Hn,Ra),jt=e=>dt(e,Kn,za),$=e=>Wn.test(e),bt=e=>ut(e,$n),La=e=>ut(e,Pa),wo=e=>ut(e,Vn),Ta=e=>ut(e,Bn),Fa=e=>ut(e,Hn),Mt=e=>ut(e,Kn,!0),dt=(e,r,t)=>{const o=Fn.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},ut=(e,r,t=!1)=>{const o=Wn.exec(e);return o?o[1]?r(o[1]):t:!1},Vn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Bn=e=>e==="length"||e==="size"||e==="bg-size",$n=e=>e==="length",Wa=e=>e==="number",Pa=e=>e==="family-name",Kn=e=>e==="shadow",xo=()=>{const e=me("color"),r=me("font"),t=me("text"),o=me("font-weight"),i=me("tracking"),n=me("leading"),s=me("breakpoint"),a=me("container"),l=me("spacing"),c=me("radius"),d=me("shadow"),u=me("inset-shadow"),v=me("text-shadow"),y=me("drop-shadow"),E=me("blur"),w=me("perspective"),b=me("aspect"),C=me("ease"),p=me("animate"),f=()=>["auto","avoid","all","avoid-page","page","left","right","column"],h=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],g=()=>[...h(),$,B],k=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],I=()=>[$,B,l],j=()=>[tt,"full","auto",...I()],H=()=>[$e,"none","subgrid",$,B],X=()=>["auto",{span:["full",$e,$,B]},$e,$,B],U=()=>[$e,"auto",$,B],oe=()=>["auto","min","max","fr",$,B],G=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],x=()=>["auto",...I()],_=()=>[tt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],O=()=>[e,$,B],Q=()=>[...h(),wo,mo,{position:[$,B]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",Ta,ja,{size:[$,B]}],K=()=>[fr,bt,Ye],T=()=>["","none","full",c,$,B],z=()=>["",re,bt,Ye],q=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[re,fr,wo,mo],Y=()=>["","none",E,$,B],ee=()=>["none",re,$,B],J=()=>["none",re,$,B],te=()=>[re,$,B],L=()=>[tt,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[We],breakpoint:[We],color:[Aa],container:[We],"drop-shadow":[We],ease:["in","out","in-out"],font:[Da],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[We],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[We],shadow:[We],spacing:["px",re],text:[We],"text-shadow":[We],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tt,B,$,b]}],container:["container"],columns:[{columns:[re,B,$,a]}],"break-after":[{"break-after":f()}],"break-before":[{"break-before":f()}],"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:g()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:j()}],"inset-x":[{"inset-x":j()}],"inset-y":[{"inset-y":j()}],start:[{start:j()}],end:[{end:j()}],top:[{top:j()}],right:[{right:j()}],bottom:[{bottom:j()}],left:[{left:j()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",$,B]}],basis:[{basis:[tt,"full","auto",a,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,tt,"auto","initial","none",B]}],grow:[{grow:["",re,$,B]}],shrink:[{shrink:["",re,$,B]}],order:[{order:[$e,"first","last","none",$,B]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...G(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...G()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":G()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:x()}],mx:[{mx:x()}],my:[{my:x()}],ms:[{ms:x()}],me:[{me:x()}],mt:[{mt:x()}],mr:[{mr:x()}],mb:[{mb:x()}],ml:[{ml:x()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[a,"screen",..._()]}],"min-w":[{"min-w":[a,"screen","none",..._()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},..._()]}],h:[{h:["screen","lh",..._()]}],"min-h":[{"min-h":["screen","lh","none",..._()]}],"max-h":[{"max-h":["screen","lh",..._()]}],"font-size":[{text:["base",t,bt,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,$,br]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fr,B]}],"font-family":[{font:[La,B,r]}],"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:[i,$,B]}],"line-clamp":[{"line-clamp":[re,"none",$,br]}],leading:[{leading:[n,...I()]}],"list-image":[{"list-image":["none",$,B]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,B]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",$,Ye]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[re,"auto",$,B]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,B]}],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",$,B]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Q()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,$,B],radial:["",$,B],conic:[$e,$,B]},Fa,Ma]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,$,B]}],"outline-w":[{outline:["",re,bt,Ye]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",d,Mt,jt]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",u,Mt,jt]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[re,Ye]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",v,Mt,jt]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[re,$,B]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],"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":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[$,B]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":h()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Q()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,B]}],filter:[{filter:["","none",$,B]}],blur:[{blur:Y()}],brightness:[{brightness:[re,$,B]}],contrast:[{contrast:[re,$,B]}],"drop-shadow":[{"drop-shadow":["","none",y,Mt,jt]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",re,$,B]}],"hue-rotate":[{"hue-rotate":[re,$,B]}],invert:[{invert:["",re,$,B]}],saturate:[{saturate:[re,$,B]}],sepia:[{sepia:["",re,$,B]}],"backdrop-filter":[{"backdrop-filter":["","none",$,B]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[re,$,B]}],"backdrop-contrast":[{"backdrop-contrast":[re,$,B]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,$,B]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,$,B]}],"backdrop-invert":[{"backdrop-invert":["",re,$,B]}],"backdrop-opacity":[{"backdrop-opacity":[re,$,B]}],"backdrop-saturate":[{"backdrop-saturate":[re,$,B]}],"backdrop-sepia":[{"backdrop-sepia":["",re,$,B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,B]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",$,B]}],ease:[{ease:["linear","initial",C,$,B]}],delay:[{delay:[re,$,B]}],animate:[{animate:["none",p,$,B]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,$,B]}],"perspective-origin":[{"perspective-origin":g()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:J()}],"scale-x":[{"scale-x":J()}],"scale-y":[{"scale-y":J()}],"scale-z":[{"scale-z":J()}],"scale-3d":["scale-3d"],skew:[{skew:te()}],"skew-x":[{"skew-x":te()}],"skew-y":[{"skew-y":te()}],transform:[{transform:[$,B,"","none","gpu","cpu"]}],"transform-origin":[{origin:g()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:L()}],"translate-x":[{"translate-x":L()}],"translate-y":[{"translate-y":L()}],"translate-z":[{"translate-z":L()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}],"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",$,B]}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",$,B]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[re,bt,Ye,br]}],stroke:[{stroke:["none",...O()]}],"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"]}},Va=(e,{cacheSize:r,prefix:t,experimentalParseClassName:o,extend:i={},override:n={}})=>(It(e,"cacheSize",r),It(e,"prefix",t),It(e,"experimentalParseClassName",o),Lt(e.theme,n.theme),Lt(e.classGroups,n.classGroups),Lt(e.conflictingClassGroups,n.conflictingClassGroups),Lt(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),It(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),Tt(e.theme,i.theme),Tt(e.classGroups,i.classGroups),Tt(e.conflictingClassGroups,i.conflictingClassGroups),Tt(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),Gn(e,i,"orderSensitiveModifiers"),e),It=(e,r,t)=>{t!==void 0&&(e[r]=t)},Lt=(e,r)=>{if(r)for(const t in r)It(e,t,r[t])},Tt=(e,r)=>{if(r)for(const t in r)Gn(e,r,t)},Gn=(e,r,t)=>{const o=r[t];o!==void 0&&(e[t]=e[t]?e[t].concat(o):o)},Ha=(e,...r)=>typeof e=="function"?bo(xo,e,...r):bo(()=>Va(xo(),e),...r);function qn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yo={exports:{}};/*!
121
+ Copyright (c) 2018 Jed Watson.
122
+ Licensed under the MIT License (MIT), see
123
+ http://jedwatson.github.io/classnames
124
+ */var Io;function Ba(){return Io||(Io=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var n="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(n=i(n,o(a)))}return n}function o(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return t.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var s="";for(var a in n)r.call(n,a)&&n[a]&&(s=i(s,a));return s}function i(n,s){return s?n?n+" "+s:n+s:n}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(yo)),yo.exports}var $a=Ba();const Ka=qn($a),Ga=Ha({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function A(...e){return Ga(Ka(e))}const Et={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Ae={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},qa=`
125
+ appearance-none border rounded transition-all duration-200
126
+ focus:ring-2 focus:ring-offset-2 focus:outline-hidden
127
+ relative
128
+ `,Xa=(e,r,t)=>{const{isChecked:o,isIndeterminate:i,isDisabled:n,isInvalid:s}=t,a=o||i;return A(qa,Et[e].checkbox,{"cursor-pointer":!n},s?{[Ae.negative.checked]:a,[Ae.negative.unchecked]:!a,[Ae.negative.checkedHover]:!n&&a,[Ae.negative.focus]:!n,"border-input-disable":n}:{[Ae[r].checked]:a&&!n,[Ae[r].unchecked]:!a&&!n,[Ae[r].checkedHover]:!n&&a,[Ae[r].focus]:!n,"border-input-disable":n,"bg-input-disable":n&&a})},Za=(e,r,t)=>{const{isDisabled:o,isInvalid:i}=t;return A(Et[e].text,i?{[Ae.negative.label]:i}:{"text-input-disable":o,[Ae[r].label]:!o,"cursor-pointer":!o})},Ya=e=>A("inline-flex items-center ws-group",Et[e].spacing),Ua=(e,r,t)=>A("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",Et[e].hoverSquare,{[Ae.negative.hoverSquare]:t,[Ae[r].hoverSquare]:!t}),Ja=e=>`${Et[e].icon}`,Qa=e=>m.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:m.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),el=S.forwardRef(({label:e,isDisabled:r=!1,isInvalid:t=!1,isRequired:o=!1,size:i="md",color:n="primary",onChange:s,onFocus:a,onBlur:l,value:c,defaultValue:d,name:u,id:v,...y},E)=>{const[w,b]=S.useState(d),C=c===!0||w===!0,p=c===null,f=C||p,h={isChecked:C,isIndeterminate:p,isDisabled:r,isInvalid:t},g=Xa(i,n,h),k=Za(i,n,h),M=Ya(i),I=Ua(i,n,t),j=Ja(i);return m.jsxs("label",{"data-qui":"Checkbox",className:M,children:[m.jsxs("div",{className:g,children:[m.jsx("input",{ref:E,type:"checkbox",className:"sr-only",checked:C,disabled:r,required:o,onChange:H=>{c===void 0&&b(H.target.checked),s==null||s(H)},onFocus:a,onBlur:l,name:u,id:v,...y}),f&&m.jsx("div",{className:"center-absolute",children:p?m.jsx(Qa,{className:j}):m.jsx(Js,{className:j})}),!f&&!r&&m.jsx("div",{className:I})]}),e&&m.jsxs("span",{className:k,children:[e,o&&m.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});el.displayName="Checkbox";const _t={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},kt={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},tl=`
129
+ relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
130
+ focus:outline-hidden focus:ring-2 focus:ring-offset-0
131
+ cursor-pointer peer
132
+ `,rl=(e,r,t)=>{const{isDisabled:o,isInvalid:i}=t;return A(tl,_t[e].radio,i?kt[r].radioInvalid:{[kt[r].radio]:!o,"cursor-not-allowed opacity-60":o})},ol=(e,r,t)=>{const{checked:o,isDisabled:i,isInvalid:n}=t;return A("center-absolute rounded-full transition-all duration-200 ease-in-out",_t[e].dot,n?"bg-negative":{[kt[r].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!o,"opacity-100 scale-100":o&&!i})},nl=(e,r,t)=>A("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",_t[e].hoverDot,{[kt[r].hoverDot]:!t,"bg-negative-bg":t}),il=e=>A("cursor-pointer select-none transition-colors duration-200",_t[e].label),sl=(e,r,t,o)=>{const{isDisabled:i,isInvalid:n}=t;return A("inline-flex items-center group",_t[e].container,n?{"text-negative":n}:{[kt[r].label]:!i,"text-muted":i},o)},al=S.createContext(null),ll=()=>{const e=S.useContext(al);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},cl=S.forwardRef(({value:e,label:r,size:t,color:o,isDisabled:i,isInvalid:n,isRequired:s,className:a,...l},c)=>{const d=ll(),u=t??d.size,v=o??d.color,y=i??d.isDisabled,E=n??d.isInvalid,w=s??d.isRequired,b=d.value===e,C={checked:b,isDisabled:y,isInvalid:E},p=rl(u,v,C),f=ol(u,v,C),h=nl(u,v,E),g=il(u),k=sl(u,v,C,a),M=()=>{y||d.onChange(e)};return m.jsxs("label",{"data-qui":"RadioItem",className:k,children:[m.jsxs("div",{className:A("relative",{hidden:d.hideIndicator}),children:[m.jsx("input",{ref:c,type:"radio",value:e,checked:b,disabled:y,required:w,"aria-invalid":E,"aria-label":r?void 0:l["aria-label"],name:d.name,onChange:M,className:"sr-only",...l}),m.jsxs("div",{className:p,children:[m.jsx("div",{className:f}),!b&&!y&&m.jsx("div",{className:h})]})]}),r&&m.jsxs("span",{className:g,children:[r,w&&m.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});cl.displayName="RadioItem";const Xn={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},dl={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},ul=(e,r,t,o)=>{const i=Xn[e],n=dl[t],s=A("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!o},i.container);return o?A(s,"text-inactive-text pointer-events-none",{"border-panel":r!=="ghost"&&r==="solid","border-panel-subtle":r==="outline","bg-panel":r==="solid","bg-transparent ":r==="outline"||r==="ghost","border-transparent":r==="ghost"}):A(s,n.bg[r],n.text[r],n.hover[r],n.border[r])},pl=e=>A("flex items-center justify-center gap-1",Xn[e].text),Zn=S.forwardRef(({size:e="md",variant:r="solid",color:t="primary",className:o,children:i,disabled:n,...s},a)=>m.jsx("button",{"data-qui":"Button",ref:a,type:"button",className:A(ul(e,r,t,n),pl(e),o),disabled:n,...s,children:i}));Zn.displayName="Button";const Yn=S.createContext(null),At=()=>{const e=S.useContext(Yn);if(!e)throw new Error("Input components must be used within Input.Root");return e},pt={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Ue={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},gl=()=>A("flex flex-col relative"),hl=({size:e,color:r,isDisabled:t,isReadOnly:o,hasMessage:i,hasArea:n,isInvalid:s})=>{const a=Ue[s?"negative":r];return A("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",a.text,i?a.borderMessage:!o&&a.border,pt[e].group,{"ring-1":i,"opacity-60":t,"items-center":!n})},vl=({size:e,color:r})=>A("bg-transparent ring-0 w-full","focus:outline-hidden",[pt[e].input],Ue[r].placeholder),Co=({size:e,color:r})=>A("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",pt[e].input,Ue[r].placeholder),fl=({size:e,color:r,isDisabled:t,isAction:o})=>{const i=Ue[r];return A("transition-colors duration-200 rounded max-h-full h-fit",pt[e].icon,e==="sm"?"m-px":"m-0.5",t?"text-muted opacity-60 pointer-events-none":o?i.action:i.icon,{"cursor-pointer p-0.5":o&&!t,[i.actionHover]:o&&!t,"pointer-events-none":!o})},bl=({size:e,color:r,isDisabled:t})=>A("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",t?"text-muted":Ue[r].messageText,Ue[r].borderMessage,Ue[r].messageBackground,pt[e].message,{"opacity-60":t}),ml=({size:e})=>A(pt[e].icon);function rr(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}var wl=typeof global=="object"&&global&&global.Object===Object&&global,xl=typeof self=="object"&&self&&self.Object===Object&&self,Un=wl||xl||Function("return this")(),mr=function(){return Un.Date.now()},yl=/\s/;function Il(e){for(var r=e.length;r--&&yl.test(e.charAt(r)););return r}var Cl=/^\s+/;function kl(e){return e&&e.slice(0,Il(e)+1).replace(Cl,"")}var or=Un.Symbol,Jn=Object.prototype,Sl=Jn.hasOwnProperty,Nl=Jn.toString,mt=or?or.toStringTag:void 0;function El(e){var r=Sl.call(e,mt),t=e[mt];try{e[mt]=void 0;var o=!0}catch{}var i=Nl.call(e);return o&&(r?e[mt]=t:delete e[mt]),i}var _l=Object.prototype,Al=_l.toString;function Ol(e){return Al.call(e)}var zl="[object Null]",Rl="[object Undefined]",ko=or?or.toStringTag:void 0;function Dl(e){return e==null?e===void 0?Rl:zl:ko&&ko in Object(e)?El(e):Ol(e)}function jl(e){return e!=null&&typeof e=="object"}var Ml="[object Symbol]";function Ll(e){return typeof e=="symbol"||jl(e)&&Dl(e)==Ml}var So=NaN,Tl=/^[-+]0x[0-9a-f]+$/i,Fl=/^0b[01]+$/i,Wl=/^0o[0-7]+$/i,Pl=parseInt;function No(e){if(typeof e=="number")return e;if(Ll(e))return So;if(rr(e)){var r=typeof e.valueOf=="function"?e.valueOf():e;e=rr(r)?r+"":r}if(typeof e!="string")return e===0?e:+e;e=kl(e);var t=Fl.test(e);return t||Wl.test(e)?Pl(e.slice(2),t?2:8):Tl.test(e)?So:+e}var Vl="Expected a function",Hl=Math.max,Bl=Math.min;function Xt(e,r,t){var o,i,n,s,a,l,c=0,d=!1,u=!1,v=!0;if(typeof e!="function")throw new TypeError(Vl);r=No(r)||0,rr(t)&&(d=!!t.leading,u="maxWait"in t,n=u?Hl(No(t.maxWait)||0,r):n,v="trailing"in t?!!t.trailing:v);function y(k){var M=o,I=i;return o=i=void 0,c=k,s=e.apply(I,M),s}function E(k){return c=k,a=setTimeout(C,r),d?y(k):s}function w(k){var M=k-l,I=k-c,j=r-M;return u?Bl(j,n-I):j}function b(k){var M=k-l,I=k-c;return l===void 0||M>=r||M<0||u&&I>=n}function C(){var k=mr();if(b(k))return p(k);a=setTimeout(C,w(k))}function p(k){return a=void 0,v&&o?y(k):(o=i=void 0,s)}function f(){a!==void 0&&clearTimeout(a),c=0,o=l=i=a=void 0}function h(){return a===void 0?s:p(mr())}function g(){var k=mr(),M=b(k);if(o=arguments,i=this,l=k,M){if(a===void 0)return E(l);if(u)return clearTimeout(a),a=setTimeout(C,r),y(l)}return a===void 0&&(a=setTimeout(C,r)),s}return g.cancel=f,g.flush=h,g}var $l="Expected a function";function Kl(e,r,t){var o=!0,i=!0;if(typeof e!="function")throw new TypeError($l);return rr(t)&&(o="leading"in t?!!t.leading:o,i="trailing"in t?!!t.trailing:i),Xt(e,r,{leading:o,maxWait:r,trailing:i})}var at=function(){return at=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},at.apply(this,arguments)};function Qn(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function ei(e){return!e||!e.ownerDocument?document:e.ownerDocument}var ti=function(e){var r={},t=Array.prototype.reduce.call(e,function(o,i){var n=i.name.match(/data-simplebar-(.+)/);if(n){var s=n[1].replace(/\W+(.)/g,function(a,l){return l.toUpperCase()});switch(i.value){case"true":o[s]=!0;break;case"false":o[s]=!1;break;case void 0:o[s]=!0;break;default:o[s]=i.value}}return o},r);return t};function ri(e,r){var t;e&&(t=e.classList).add.apply(t,r.split(" "))}function oi(e,r){e&&r.split(" ").forEach(function(t){e.classList.remove(t)})}function ni(e){return".".concat(e.split(" ").join("."))}var Pr=!!(typeof window<"u"&&window.document&&window.document.createElement),Gl=Object.freeze({__proto__:null,addClasses:ri,canUseDOM:Pr,classNamesToQuery:ni,getElementDocument:ei,getElementWindow:Qn,getOptions:ti,removeClasses:oi}),it=null,Eo=null;Pr&&window.addEventListener("resize",function(){Eo!==window.devicePixelRatio&&(Eo=window.devicePixelRatio,it=null)});function _o(){if(it===null){if(typeof document>"u")return it=0,it;var e=document.body,r=document.createElement("div");r.classList.add("simplebar-hide-scrollbar"),e.appendChild(r);var t=r.getBoundingClientRect().right;e.removeChild(r),it=t}return it}var Ke=Qn,wr=ei,ql=ti,Ge=ri,qe=oi,Se=ni,wt=(function(){function e(r,t){t===void 0&&(t={});var o=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=Ke(o.el);o.scrollXTicking||(i.requestAnimationFrame(o.scrollX),o.scrollXTicking=!0),o.scrollYTicking||(i.requestAnimationFrame(o.scrollY),o.scrollYTicking=!0),o.isScrolling||(o.isScrolling=!0,Ge(o.el,o.classNames.scrolling)),o.showScrollbar("x"),o.showScrollbar("y"),o.onStopScrolling()},this.scrollX=function(){o.axis.x.isOverflowing&&o.positionScrollbar("x"),o.scrollXTicking=!1},this.scrollY=function(){o.axis.y.isOverflowing&&o.positionScrollbar("y"),o.scrollYTicking=!1},this._onStopScrolling=function(){qe(o.el,o.classNames.scrolling),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isScrolling=!1},this.onMouseEnter=function(){o.isMouseEntering||(Ge(o.el,o.classNames.mouseEntered),o.showScrollbar("x"),o.showScrollbar("y"),o.isMouseEntering=!0),o.onMouseEntered()},this._onMouseEntered=function(){qe(o.el,o.classNames.mouseEntered),o.options.autoHide&&(o.hideScrollbar("x"),o.hideScrollbar("y")),o.isMouseEntering=!1},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.onPointerEvent=function(i){if(!(!o.axis.x.track.el||!o.axis.y.track.el||!o.axis.x.scrollbar.el||!o.axis.y.scrollbar.el)){var n,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)&&(n=o.isWithinBounds(o.axis.x.track.rect)),(o.axis.y.isOverflowing||o.axis.y.forceVisible)&&(s=o.isWithinBounds(o.axis.y.track.rect)),(n||s)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(n&&(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 n,s,a,l,c,d,u,v,y,E,w;if(!(!o.draggedAxis||!o.contentWrapperEl)){var b,C=o.axis[o.draggedAxis].track,p=(s=(n=C.rect)===null||n===void 0?void 0:n[o.axis[o.draggedAxis].sizeAttr])!==null&&s!==void 0?s:0,f=o.axis[o.draggedAxis].scrollbar,h=(l=(a=o.contentWrapperEl)===null||a===void 0?void 0:a[o.axis[o.draggedAxis].scrollSizeAttr])!==null&&l!==void 0?l:0,g=parseInt((d=(c=o.elStyles)===null||c===void 0?void 0:c[o.axis[o.draggedAxis].sizeAttr])!==null&&d!==void 0?d:"0px",10);i.preventDefault(),i.stopPropagation(),o.draggedAxis==="y"?b=i.pageY:b=i.pageX;var k=b-((v=(u=C.rect)===null||u===void 0?void 0:u[o.axis[o.draggedAxis].offsetAttr])!==null&&v!==void 0?v:0)-o.axis[o.draggedAxis].dragOffset;k=o.draggedAxis==="x"&&o.isRtl?((E=(y=C.rect)===null||y===void 0?void 0:y[o.axis[o.draggedAxis].sizeAttr])!==null&&E!==void 0?E:0)-f.size-k:k;var M=k/(p-f.size),I=M*(h-g);o.draggedAxis==="x"&&o.isRtl&&(I=!((w=e.getRtlHelpers())===null||w===void 0)&&w.isScrollingToNegative?-I:I),o.contentWrapperEl[o.axis[o.draggedAxis].scrollOffsetAttr]=I}},this.onEndDrag=function(i){o.isDragging=!1;var n=wr(o.el),s=Ke(o.el);i.preventDefault(),i.stopPropagation(),qe(o.el,o.classNames.dragging),o.onStopScrolling(),n.removeEventListener("mousemove",o.drag,!0),n.removeEventListener("mouseup",o.onEndDrag,!0),o.removePreventClickId=s.setTimeout(function(){n.removeEventListener("click",o.preventClick,!0),n.removeEventListener("dblclick",o.preventClick,!0),o.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=r,this.options=at(at({},e.defaultOptions),t),this.classNames=at(at({},e.defaultOptions.classNames),t.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=Kl(this._onMouseMove,64),this.onWindowResize=Xt(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Xt(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Xt(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var r=document.createElement("div");r.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var t=r.firstElementChild,o=t==null?void 0:t.firstElementChild;if(!o)return null;document.body.appendChild(t),t.scrollLeft=0;var i=e.getOffset(t),n=e.getOffset(o);t.scrollLeft=-999;var s=e.getOffset(o);return document.body.removeChild(t),e.rtlHelpers={isScrollOriginAtZero:i.left!==n.left,isScrollingToNegative:n.left!==s.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:_o()}catch{return _o()}},e.getOffset=function(r){var t=r.getBoundingClientRect(),o=wr(r),i=Ke(r);return{top:t.top+(i.pageYOffset||o.documentElement.scrollTop),left:t.left+(i.pageXOffset||o.documentElement.scrollLeft)}},e.prototype.init=function(){Pr&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var r,t;this.wrapperEl=this.el.querySelector(Se(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(Se(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(Se(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(Se(this.classNames.offset)),this.maskEl=this.el.querySelector(Se(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,Se(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(Se(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(Se(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(Se(this.classNames.track)).concat(Se(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(Se(this.classNames.track)).concat(Se(this.classNames.vertical))),this.axis.x.scrollbar.el=((r=this.axis.x.track.el)===null||r===void 0?void 0:r.querySelector(Se(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((t=this.axis.y.track.el)===null||t===void 0?void 0:t.querySelector(Se(this.classNames.scrollbar)))||null,this.options.autoHide||(Ge(this.axis.x.scrollbar.el,this.classNames.visible),Ge(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var r=this,t,o=Ke(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(t=this.contentWrapperEl)===null||t===void 0||t.addEventListener("scroll",this.onScroll),o.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,n=o.ResizeObserver||ResizeObserver;this.resizeObserver=new n(function(){i&&o.requestAnimationFrame(function(){r.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),o.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new o.MutationObserver(function(){o.requestAnimationFrame(function(){r.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var r=Ke(this.el);this.elStyles=r.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var t=this.contentEl.offsetWidth,o=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||t>0,n=this.contentWrapperEl.offsetWidth,s=this.elStyles.overflowX,a=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var l=this.contentEl.scrollHeight,c=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=o?"auto":"100%",this.placeholderEl.style.width=i?"".concat(t||c,"px"):"auto",this.placeholderEl.style.height="".concat(l,"px");var d=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=t!==0&&c>t,this.axis.y.isOverflowing=l>d,this.axis.x.isOverflowing=s==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=a==="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 u=this.axis.x.isOverflowing?this.scrollbarWidth:0,v=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&c>n-v,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&l>d-u,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(r){var t,o;if(r===void 0&&(r="y"),!this.axis[r].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[r].scrollSizeAttr],n=(o=(t=this.axis[r].track.el)===null||t===void 0?void 0:t[this.axis[r].offsetSizeAttr])!==null&&o!==void 0?o:0,s=n/i,a;return a=Math.max(~~(s*n),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(a=Math.min(a,this.options.scrollbarMaxSize)),a},e.prototype.positionScrollbar=function(r){var t,o,i;r===void 0&&(r="y");var n=this.axis[r].scrollbar;if(!(!this.axis[r].isOverflowing||!this.contentWrapperEl||!n.el||!this.elStyles)){var s=this.contentWrapperEl[this.axis[r].scrollSizeAttr],a=((t=this.axis[r].track.el)===null||t===void 0?void 0:t[this.axis[r].offsetSizeAttr])||0,l=parseInt(this.elStyles[this.axis[r].sizeAttr],10),c=this.contentWrapperEl[this.axis[r].scrollOffsetAttr];c=r==="x"&&this.isRtl&&!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollOriginAtZero?-c:c,r==="x"&&this.isRtl&&(c=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?c:-c);var d=c/(s-l),u=~~((a-n.size)*d);u=r==="x"&&this.isRtl?-u+(a-n.size):u,n.el.style.transform=r==="x"?"translate3d(".concat(u,"px, 0, 0)"):"translate3d(0, ".concat(u,"px, 0)")}},e.prototype.toggleTrackVisibility=function(r){r===void 0&&(r="y");var t=this.axis[r].track.el,o=this.axis[r].scrollbar.el;!t||!o||!this.contentWrapperEl||(this.axis[r].isOverflowing||this.axis[r].forceVisible?(t.style.visibility="visible",this.contentWrapperEl.style[this.axis[r].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(r))):(t.style.visibility="hidden",this.contentWrapperEl.style[this.axis[r].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(r))),this.axis[r].isOverflowing?o.style.display="block":o.style.display="none")},e.prototype.showScrollbar=function(r){r===void 0&&(r="y"),this.axis[r].isOverflowing&&!this.axis[r].scrollbar.isVisible&&(Ge(this.axis[r].scrollbar.el,this.classNames.visible),this.axis[r].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(r){r===void 0&&(r="y"),!this.isDragging&&this.axis[r].isOverflowing&&this.axis[r].scrollbar.isVisible&&(qe(this.axis[r].scrollbar.el,this.classNames.visible),this.axis[r].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(r){r===void 0&&(r="y");var t=this.axis[r];!t.track.el||!t.scrollbar.el||(t.track.rect=t.track.el.getBoundingClientRect(),t.scrollbar.rect=t.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(t.track.rect)?(this.showScrollbar(r),Ge(t.track.el,this.classNames.hover),this.isWithinBounds(t.scrollbar.rect)?Ge(t.scrollbar.el,this.classNames.hover):qe(t.scrollbar.el,this.classNames.hover)):(qe(t.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(r)))},e.prototype.onMouseLeaveForAxis=function(r){r===void 0&&(r="y"),qe(this.axis[r].track.el,this.classNames.hover),qe(this.axis[r].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(r)},e.prototype.onDragStart=function(r,t){var o;t===void 0&&(t="y"),this.isDragging=!0;var i=wr(this.el),n=Ke(this.el),s=this.axis[t].scrollbar,a=t==="y"?r.pageY:r.pageX;this.axis[t].dragOffset=a-(((o=s.rect)===null||o===void 0?void 0:o[this.axis[t].offsetAttr])||0),this.draggedAxis=t,Ge(this.el,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)):(n.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(r,t){var o=this,i,n,s,a;t===void 0&&(t="y");var l=this.axis[t];if(!(!this.options.clickOnTrack||!l.scrollbar.el||!this.contentWrapperEl)){r.preventDefault();var c=Ke(this.el);this.axis[t].scrollbar.rect=l.scrollbar.el.getBoundingClientRect();var d=this.axis[t].scrollbar,u=(n=(i=d.rect)===null||i===void 0?void 0:i[this.axis[t].offsetAttr])!==null&&n!==void 0?n:0,v=parseInt((a=(s=this.elStyles)===null||s===void 0?void 0:s[this.axis[t].sizeAttr])!==null&&a!==void 0?a:"0px",10),y=this.contentWrapperEl[this.axis[t].scrollOffsetAttr],E=t==="y"?this.mouseY-u:this.mouseX-u,w=E<0?-1:1,b=w===-1?y-v:y+v,C=40,p=function(){o.contentWrapperEl&&(w===-1?y>b&&(y-=C,o.contentWrapperEl[o.axis[t].scrollOffsetAttr]=y,c.requestAnimationFrame(p)):y<b&&(y+=C,o.contentWrapperEl[o.axis[t].scrollOffsetAttr]=y,c.requestAnimationFrame(p)))};p()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var r=Ke(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),r.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(r){return this.mouseX>=r.left&&this.mouseX<=r.left+r.width&&this.mouseY>=r.top&&this.mouseY<=r.top+r.height},e.prototype.findChild=function(r,t){var o=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;return Array.prototype.filter.call(r.children,function(i){return o.call(i,t)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,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",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=ql,e.helpers=Gl,e})(),Ee=function(){return Ee=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Ee.apply(this,arguments)};function Xl(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++)r.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(t[o[i]]=e[o[i]]);return t}var Vr=pe.forwardRef(function(e,r){var t=e.children,o=e.scrollableNodeProps,i=o===void 0?{}:o,n=Xl(e,["children","scrollableNodeProps"]),s=pe.useRef(),a=pe.useRef(),l=pe.useRef(),c={},d={};Object.keys(n).forEach(function(y){Object.prototype.hasOwnProperty.call(wt.defaultOptions,y)?c[y]=n[y]:d[y]=n[y]});var u=Ee(Ee({},wt.defaultOptions.classNames),c.classNames),v=Ee(Ee({},i),{className:"".concat(u.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:c.tabIndex||wt.defaultOptions.tabIndex,role:"region","aria-label":c.ariaLabel||wt.defaultOptions.ariaLabel});return pe.useEffect(function(){var y;return a.current=v.ref?v.ref.current:a.current,s.current&&(y=new wt(s.current,Ee(Ee(Ee({},c),a.current&&{scrollableNode:a.current}),l.current&&{contentNode:l.current})),typeof r=="function"?r(y):r&&(r.current=y)),function(){y==null||y.unMount(),y=null,typeof r=="function"&&r(null)}},[]),pe.createElement("div",Ee({"data-simplebar":"init",ref:s},d),pe.createElement("div",{className:u.wrapper},pe.createElement("div",{className:u.heightAutoObserverWrapperEl},pe.createElement("div",{className:u.heightAutoObserverEl})),pe.createElement("div",{className:u.mask},pe.createElement("div",{className:u.offset},typeof t=="function"?t({scrollableNodeRef:a,scrollableNodeProps:Ee(Ee({},v),{ref:a}),contentNodeRef:l,contentNodeProps:{className:u.contentEl,ref:l}}):pe.createElement("div",Ee({},v),pe.createElement("div",{className:u.contentEl},t)))),pe.createElement("div",{className:u.placeholder})),pe.createElement("div",{className:"".concat(u.track," ").concat(u.horizontal)},pe.createElement("div",{className:u.scrollbar})),pe.createElement("div",{className:"".concat(u.track," ").concat(u.vertical)},pe.createElement("div",{className:u.scrollbar})))});Vr.displayName="SimpleBar";const Zl=S.forwardRef(({size:e="md",color:r="primary",isInvalid:t=!1,isDisabled:o=!1,isReadOnly:i=!1,className:n,children:s,...a},l)=>{const[c,d]=S.useState(!1),[u,v]=S.useState(!1),y={size:e,color:t?"negative":r,isInvalid:t,isDisabled:o,isReadOnly:i,hasMessage:c,setHasMessage:d,hasArea:u,setHasArea:v};return m.jsx(Yn.Provider,{value:y,children:m.jsx("div",{ref:l,"data-qui":"Input",className:A(gl(),n),...a,children:s})})}),Yl=S.forwardRef(({className:e,children:r,...t},o)=>{const{size:i,color:n,isDisabled:s,isReadOnly:a,hasMessage:l,hasArea:c,isInvalid:d}=At();return m.jsx("div",{ref:o,"data-qui":"InputGroup",className:A(hl({size:i,color:n,isDisabled:s,isReadOnly:a,hasMessage:l,hasArea:c,isInvalid:d}),e),...t,children:r})}),Ul=S.forwardRef(({className:e,...r},t)=>{const{size:o,color:i,isInvalid:n,isDisabled:s,isReadOnly:a}=At(),{isDisabled:l,isReadOnly:c,...d}=r;return m.jsx("input",{ref:t,disabled:s||l,readOnly:c||a||!1,"aria-invalid":n,className:A(vl({size:o,color:i}),e),...d})}),Jl=S.forwardRef(({className:e,wrapperClassName:r,autoHeight:t,...o},i)=>{const{size:n,color:s,isInvalid:a,isDisabled:l,setHasArea:c}=At(),d=S.useRef(null),u=i||d,v=S.useRef(null);S.useEffect(()=>(c(!0),()=>{c(!1)}),[c]);const y=S.useCallback(()=>{if(d.current){const f=d.current;f.style.height="auto",f.style.height=`${f.scrollHeight}px`}},[]),E=f=>{var h;y(),(h=o.onInput)==null||h.call(o,f)};S.useEffect(()=>{y()},[y,o.value]),S.useEffect(()=>{t&&v.current&&v.current.style.removeProperty("height")},[t]);const w=f=>{f.preventDefault();const h=v.current;if(!h)return;const g=f.clientY,k=h.offsetHeight,M=j=>{const H=k+(j.clientY-g);H>30&&(h.style.height=H+"px")},I=()=>{document.removeEventListener("mousemove",M),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",M),document.addEventListener("mouseup",I)},{isDisabled:b,isReadOnly:C,...p}=o;return m.jsxs("div",{ref:v,className:A("w-full relative",!t&&!o.rows&&"h-30",r),children:[t?m.jsx("textarea",{ref:u,rows:1,className:A(Co({size:n,color:s}),e),disabled:l||b,onInput:E,readOnly:C||!1,"aria-invalid":a,style:{overflow:"hidden"},...p}):m.jsx(Vr,{style:{height:"100%"},children:m.jsx("textarea",{ref:u,rows:1,className:A(Co({size:n,color:s}),e),disabled:l||b,onInput:E,readOnly:C||!1,"aria-invalid":a,style:{height:"auto",overflow:"hidden",width:"100%"},...p})}),!t&&m.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:w,children:m.jsx(ta,{})})]})}),Ql=S.forwardRef(({isAction:e=!1,className:r,isDisabled:t=!1,style:o,children:i,...n},s)=>{const{size:a,color:l,isDisabled:c}=At(),d=t||c,u=fl({size:a,color:l,isDisabled:d,isAction:e});return m.jsx("div",{ref:s,"data-qui":"InputIcon",className:A(u,r),style:o,role:e||n.onClick?"button":void 0,tabIndex:(e||n.onClick)&&!d?0:void 0,"aria-disabled":d,...n,children:i})}),ec=S.forwardRef(({icon:e,className:r,children:t,...o},i)=>{const{size:n,color:s,setHasMessage:a,isDisabled:l}=At();return S.useEffect(()=>(a(!0),()=>{a(!1)}),[a]),m.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:A(bl({size:n,color:s,isDisabled:l}),r),...o,children:[e!==void 0&&m.jsx("div",{className:A(ml({size:n}),r),children:e}),m.jsx("p",{children:t})]})});Zl.displayName="InputRoot";Yl.displayName="InputGroup";Ul.displayName="InputField";Jl.displayName="InputArea";Ql.displayName="InputIcon";ec.displayName="InputMessage";const St={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},tc=({color:e})=>A("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",St[e].container,St[e].icon),rc=({color:e})=>A("text-xs font-medium leading-3",St[e].text),oc=({color:e})=>A("p-0.5 rounded cursor-pointer",St[e].button,St[e].icon),nc=({label:e,color:r="primary",position:t="up",showCloseButton:o=!1,icon:i,children:n,delay:s=0,trigger:a="hover",className:l,container:c,isHidden:d=!1})=>{const[u,v]=S.useState(!1),[y,E]=S.useState(!1),[w,b]=S.useState({position:t,transform:""}),C=S.useRef(null),p=S.useRef(null),f=S.useRef(null),h=u&&!d;S.useEffect(()=>{h||E(!1)},[h]);const g=S.useCallback(()=>{if(!C.current||!p.current)return;const x=C.current.getBoundingClientRect(),_=p.current.getBoundingClientRect(),O=window.innerWidth,Q=window.innerHeight,N=window.scrollX,R=window.scrollY,K=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,O),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,Q),z=4;let q=t,V={position:q,transform:""};const W=te=>{const{top:L,left:ue,width:P,height:be}=x,ge=L+R,ce=ue+N;switch(te){case"up":return{top:`${ge-_.height-z}px`,left:`${ce+P/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${ge-_.height-z}px`,left:`${ce}px`,transform:"translateX(0)"};case"up-end":return{top:`${ge-_.height-z}px`,left:`${ce+P-_.width}px`,transform:"translateX(0)"};case"down":return{top:`${ge+be+z}px`,left:`${ce+P/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${ge+be+z}px`,left:`${ce}px`,transform:"translateX(0)"};case"down-end":return{top:`${ge+be+z}px`,left:`${ce+P-_.width}px`,transform:"translateX(0)"};case"left":return{top:`${ge+be/2}px`,left:`${ce-_.width-z}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${ge}px`,left:`${ce-_.width-z}px`,transform:"translateY(0)"};case"left-end":return{top:`${ge+be-_.height}px`,left:`${ce-_.width-z}px`,transform:"translateY(0)"};case"right":return{top:`${ge+be/2}px`,left:`${ce+P+z}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${ge}px`,left:`${ce+P+z}px`,transform:"translateY(0)"};case"right-end":return{top:`${ge+be-_.height}px`,left:`${ce+P+z}px`,transform:"translateY(0)"};default:return{}}},Y={up:{fits:x.top-_.height-z>=0},"up-start":{fits:x.top-_.height-z>=0&&x.left+_.width<=O},"up-end":{fits:x.top-_.height-z>=0&&x.right-_.width>=0},down:{fits:x.bottom+_.height+z<=Q&&x.bottom+_.height+z<=T},"down-start":{fits:x.bottom+_.height+z<=Q&&x.bottom+_.height+z<=T&&x.left+_.width<=O},"down-end":{fits:x.bottom+_.height+z<=Q&&x.bottom+_.height+z<=T&&x.right-_.width>=0},left:{fits:x.left-_.width-z>=0},"left-start":{fits:x.left-_.width-z>=0&&x.top+_.height<=Q},"left-end":{fits:x.left-_.width-z>=0&&x.bottom-_.height>=0},right:{fits:x.right+_.width+z<=O&&x.right+_.width+z<=K},"right-start":{fits:x.right+_.width+z<=O&&x.right+_.width+z<=K&&x.top+_.height<=Q},"right-end":{fits:x.right+_.width+z<=O&&x.right+_.width+z<=K&&x.bottom-_.height>=0}},ee=x.left+x.width/2-_.width/2,J=x.left+x.width/2+_.width/2;if((t==="up"||t==="down")&&(ee<0||J>O)&&(Y[t].fits=!1),Y[t].fits){const te=W(t);V={position:t,...te,transform:te.transform||""}}else{const te=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(L=>Y[L].fits);if(te){q=te;const L=W(te);V={position:q,...L,transform:L.transform||""}}else{const L={up:x.top,"up-start":x.top,"up-end":x.top,down:Math.min(Q-x.bottom,T-x.bottom),"down-start":Math.min(Q-x.bottom,T-x.bottom),"down-end":Math.min(Q-x.bottom,T-x.bottom),left:x.left,"left-start":x.left,"left-end":x.left,right:Math.min(O-x.right,K-x.right),"right-start":Math.min(O-x.right,K-x.right),"right-end":Math.min(O-x.right,K-x.right)},ue=Object.entries(L).reduce((be,[ge,ce])=>ce>be.space?{position:ge,space:ce}:be,{position:"up",space:0}).position;q=ue;const P=W(ue);V={position:q,...P,transform:P.transform||""}}}b(V)},[t]),k=()=>{f.current&&(clearTimeout(f.current),f.current=null)},M=()=>{k(),v(!1)},I=()=>{k(),s===0?v(!1):f.current=setTimeout(()=>v(!1),s)},j=()=>{a==="click"&&(v(!0),k(),f.current=setTimeout(()=>{y||v(!1)},s))},H=x=>{x.stopPropagation(),M()},X=()=>{E(!0),k()},U=()=>{E(!1),u&&I()},oe=()=>{a==="hover"&&(k(),v(!0))},G=()=>{a==="hover"&&I()};S.useEffect(()=>{if(!u||d||!C.current)return;const x=C.current;let _=!1,O=!1;const Q=new IntersectionObserver(([N])=>{if(!_){O=N.isIntersecting,_=!0;return}O&&!N.isIntersecting&&M(),O=N.isIntersecting},{threshold:0});return Q.observe(x),()=>Q.disconnect()},[u,d]),S.useEffect(()=>{if(u){const x=requestAnimationFrame(()=>g());return()=>cancelAnimationFrame(x)}},[u,e,g]),S.useEffect(()=>{if(u){const x=setTimeout(()=>g(),0);return()=>clearTimeout(x)}},[u,g]),S.useEffect(()=>{const x=()=>{u&&g()},_=()=>{u&&g()};return window.addEventListener("resize",x),window.addEventListener("scroll",_,!0),()=>{window.removeEventListener("resize",x),window.removeEventListener("scroll",_,!0),k()}},[u,g]);const F=c||(typeof document<"u"?document.body:null);return F?m.jsxs(m.Fragment,{children:[m.jsx("div",{"data-qui":"Tooltip",ref:C,onClick:j,onMouseEnter:oe,onMouseLeave:G,className:A("relative inline-flex items-center",l),children:n}),u&&!d&&!!e&&ir.createPortal(m.jsxs("div",{ref:p,role:"tooltip",className:tc({color:r}),style:{position:"absolute",left:w.left??0,top:w.top??0,transform:w.transform,zIndex:1e3,opacity:w.left?1:0,pointerEvents:o?"auto":"none"},onMouseEnter:o?X:void 0,onMouseLeave:o?U:void 0,children:[i&&m.jsx("span",{"data-testid":"tooltip-icon",children:i}),m.jsx("div",{className:rc({color:r}),children:e}),o&&m.jsx("div",{onClick:H,className:oc({color:r}),role:"button",children:m.jsx(sr,{})})]}),F)]}):null};var Ao;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Ao||(Ao={}));const ic=Object.freeze({x:0,y:0});var lt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(lt||(lt={}));var Oo;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Oo||(Oo={}));var Oe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Oe||(Oe={}));Oe.Space,Oe.Enter,Oe.Esc,Oe.Space,Oe.Enter,Oe.Tab;var zo;(function(e){e[e.RightClick=2]="RightClick"})(zo||(zo={}));var Ro;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Ro||(Ro={}));var Do;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Do||(Do={}));lt.Backward+"",lt.Forward+"",lt.Backward+"",lt.Forward+"";var zr;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(zr||(zr={}));var Rr;(function(e){e.Optimized="optimized"})(Rr||(Rr={}));zr.WhileDragging,Rr.Optimized;({...ic});var jo;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(jo||(jo={}));Oe.Down,Oe.Right,Oe.Up,Oe.Left;const ii={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},sc={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},ac=(e,r,t,o)=>{const i=sc[e],n=ii[r],s="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return o?A(s,n.padding,n.text,n.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):t?A(s,n.padding,n.text,n.gap,i.active.bg,i.active.text,"shadow-xs"):A(s,n.padding,n.text,n.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},lc=(e,r)=>A("flex items-center justify-center",ii[e].icon,{"opacity-50":r}),cc=()=>A("whitespace-nowrap"),si=(e,r)=>{const t=A("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!r?A(t,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):r&&!e?A(t,"border border-transparent bg-tab-inactive-bg text-inactive-text"):A(t,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},dc=S.createContext(void 0),uc=S.forwardRef(({value:e,label:r,icon:t,disabled:o,children:i,className:n,onClick:s,active:a,onClose:l,closable:c,touched:d,content:u,renderTab:v,...y},E)=>{const w=S.useContext(dc);if(!w)return null;const{activeTab:b,onTabChange:C,variant:p,color:f,size:h,showIcons:g,disabled:k}=w,M=a!==void 0?a:b===e,I=o||k,j=H=>{I||(C(e),s==null||s(H))};return p==="file"?m.jsx("div",{"data-qui":"FileTabItem",className:A(si(M,!1),"cursor-pointer",n),onClick:H=>!I&&j(H),children:i||m.jsx(m.Fragment,{children:m.jsxs("span",{className:"flex items-center gap-2",children:[t,m.jsx("span",{children:r})]})})}):m.jsxs("button",{ref:E,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":M,"aria-disabled":I,className:A(ac(f,h,M,I||!1),n),onClick:j,disabled:I,...y,children:[g&&t&&m.jsx("span",{className:lc(h,I||!1),children:t}),m.jsx("span",{className:cc(),children:i||r})]})});uc.displayName="TabItem";const pc=S.forwardRef(({isActive:e=!1,isDesactive:r=!1,children:t,...o},i)=>m.jsx("div",{"data-qui":"TabNavContainer",className:si(e,r),ref:i,...o,children:t}));pc.displayName="TabNavContainer";var fe=function(){return fe=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},fe.apply(this,arguments)},Mo={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Lo={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Ft={width:"20px",height:"20px",position:"absolute",zIndex:1},gc={top:fe(fe({},Mo),{top:"-5px"}),right:fe(fe({},Lo),{left:void 0,right:"-5px"}),bottom:fe(fe({},Mo),{top:void 0,bottom:"-5px"}),left:fe(fe({},Lo),{left:"-5px"}),topRight:fe(fe({},Ft),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:fe(fe({},Ft),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:fe(fe({},Ft),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:fe(fe({},Ft),{left:"-10px",top:"-10px",cursor:"nw-resize"})},hc=S.memo(function(e){var r=e.onResizeStart,t=e.direction,o=e.children,i=e.replaceStyles,n=e.className,s=S.useCallback(function(c){r(c,t)},[r,t]),a=S.useCallback(function(c){r(c,t)},[r,t]),l=S.useMemo(function(){return fe(fe({position:"absolute",userSelect:"none"},gc[t]),i??{})},[i,t]);return m.jsx("div",{className:n||void 0,style:l,onMouseDown:s,onTouchStart:a,children:o})}),vc=(function(){var e=function(r,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[n]=i[n])},e(r,t)};return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(r,t);function o(){this.constructor=r}r.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}})(),Le=function(){return Le=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Le.apply(this,arguments)},fc={width:"auto",height:"auto"},Wt=function(e,r,t){return Math.max(Math.min(e,t),r)},To=function(e,r,t){var o=Math.round(e/r);return o*r+t*(o-1)},rt=function(e,r){return new RegExp(e,"i").test(r)},Pt=function(e){return!!(e.touches&&e.touches.length)},bc=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Fo=function(e,r,t){t===void 0&&(t=0);var o=r.reduce(function(n,s,a){return Math.abs(s-e)<Math.abs(r[n]-e)?a:n},0),i=Math.abs(r[o]-e);return t===0||i<t?r[o]:e},xr=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Vt=function(e,r,t,o){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return r*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return t*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return o*i}}return e},mc=function(e,r,t,o,i,n,s){return o=Vt(o,e.width,r,t),i=Vt(i,e.height,r,t),n=Vt(n,e.width,r,t),s=Vt(s,e.height,r,t),{maxWidth:typeof o>"u"?void 0:Number(o),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof n>"u"?void 0:Number(n),minHeight:typeof s>"u"?void 0:Number(s)}},wc=function(e){return Array.isArray(e)?e:[e,e]},xc=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Wo="__resizable_base__",yc=(function(e){vc(r,e);function r(t){var o,i,n,s,a=e.call(this,t)||this;return a.ratio=1,a.resizable=null,a.parentLeft=0,a.parentTop=0,a.resizableLeft=0,a.resizableRight=0,a.resizableTop=0,a.resizableBottom=0,a.targetLeft=0,a.targetTop=0,a.delta={width:0,height:0},a.appendBase=function(){if(!a.resizable||!a.window)return null;var l=a.parentNode;if(!l)return null;var c=a.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Wo):c.className+=Wo,l.appendChild(c),c},a.removeBase=function(l){var c=a.parentNode;c&&c.removeChild(l)},a.state={isResizing:!1,width:(i=(o=a.propsSize)===null||o===void 0?void 0:o.width)!==null&&i!==void 0?i:"auto",height:(s=(n=a.propsSize)===null||n===void 0?void 0:n.height)!==null&&s!==void 0?s:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},a.onResizeStart=a.onResizeStart.bind(a),a.onMouseMove=a.onMouseMove.bind(a),a.onMouseUp=a.onMouseUp.bind(a),a}return Object.defineProperty(r.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||fc},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"size",{get:function(){var t=0,o=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,n=this.resizable.offsetHeight,s=this.resizable.style.position;s!=="relative"&&(this.resizable.style.position="relative"),t=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,o=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:n,this.resizable.style.position=s}return{width:t,height:o}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sizeStyle",{get:function(){var t=this,o=this.props.size,i=function(a){var l;if(typeof t.state[a]>"u"||t.state[a]==="auto")return"auto";if(t.propsSize&&t.propsSize[a]&&!((l=t.propsSize[a])===null||l===void 0)&&l.toString().endsWith("%")){if(t.state[a].toString().endsWith("%"))return t.state[a].toString();var c=t.getParentSize(),d=Number(t.state[a].toString().replace("px","")),u=d/c[a]*100;return"".concat(u,"%")}return xr(t.state[a])},n=o&&typeof o.width<"u"&&!this.state.isResizing?xr(o.width):i("width"),s=o&&typeof o.height<"u"&&!this.state.isResizing?xr(o.height):i("height");return{width:n,height:s}},enumerable:!1,configurable:!0}),r.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var o=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(o=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var n={width:t.offsetWidth,height:t.offsetHeight};return o&&(this.parentNode.style.flexWrap=i),this.removeBase(t),n},r.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},r.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},r.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:t.flexBasis!=="auto"?t.flexBasis:void 0})}},r.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},r.prototype.createSizeForCssProperty=function(t,o){var i=this.propsSize&&this.propsSize[o];return this.state[o]==="auto"&&this.state.original[o]===t&&(typeof i>"u"||i==="auto")?"auto":t},r.prototype.calculateNewMaxFromBoundary=function(t,o){var i=this.props.boundsByDirection,n=this.state.direction,s=i&&rt("left",n),a=i&&rt("top",n),l,c;if(this.props.bounds==="parent"){var d=this.parentNode;d&&(l=s?this.resizableRight-this.parentLeft:d.offsetWidth+(this.parentLeft-this.resizableLeft),c=a?this.resizableBottom-this.parentTop:d.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=s?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=a?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=s?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=a?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(t=t&&t<l?t:l),c&&Number.isFinite(c)&&(o=o&&o<c?o:c),{maxWidth:t,maxHeight:o}},r.prototype.calculateNewSizeFromDirection=function(t,o){var i=this.props.scale||1,n=wc(this.props.resizeRatio||1),s=n[0],a=n[1],l=this.state,c=l.direction,d=l.original,u=this.props,v=u.lockAspectRatio,y=u.lockAspectRatioExtraHeight,E=u.lockAspectRatioExtraWidth,w=d.width,b=d.height,C=y||0,p=E||0;return rt("right",c)&&(w=d.width+(t-d.x)*s/i,v&&(b=(w-p)/this.ratio+C)),rt("left",c)&&(w=d.width-(t-d.x)*s/i,v&&(b=(w-p)/this.ratio+C)),rt("bottom",c)&&(b=d.height+(o-d.y)*a/i,v&&(w=(b-C)*this.ratio+p)),rt("top",c)&&(b=d.height-(o-d.y)*a/i,v&&(w=(b-C)*this.ratio+p)),{newWidth:w,newHeight:b}},r.prototype.calculateNewSizeFromAspectRatio=function(t,o,i,n){var s=this.props,a=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,c=s.lockAspectRatioExtraWidth,d=typeof n.width>"u"?10:n.width,u=typeof i.width>"u"||i.width<0?t:i.width,v=typeof n.height>"u"?10:n.height,y=typeof i.height>"u"||i.height<0?o:i.height,E=l||0,w=c||0;if(a){var b=(v-E)*this.ratio+w,C=(y-E)*this.ratio+w,p=(d-w)/this.ratio+E,f=(u-w)/this.ratio+E,h=Math.max(d,b),g=Math.min(u,C),k=Math.max(v,p),M=Math.min(y,f);t=Wt(t,h,g),o=Wt(o,k,M)}else t=Wt(t,d,u),o=Wt(o,v,y);return{newWidth:t,newHeight:o}},r.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if(this.props.bounds==="parent"){var o=this.parentNode;if(o){var i=o.getBoundingClientRect();this.parentLeft=i.left*t,this.parentTop=i.top*t}}if(this.props.bounds&&typeof this.props.bounds!="string"){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*t,this.targetTop=n.top*t}if(this.resizable){var s=this.resizable.getBoundingClientRect(),a=s.left,l=s.top,c=s.right,d=s.bottom;this.resizableLeft=a*t,this.resizableRight=c*t,this.resizableTop=l*t,this.resizableBottom=d*t}},r.prototype.onResizeStart=function(t,o){if(!(!this.resizable||!this.window)){var i=0,n=0;if(t.nativeEvent&&bc(t.nativeEvent)?(i=t.nativeEvent.clientX,n=t.nativeEvent.clientY):t.nativeEvent&&Pt(t.nativeEvent)&&(i=t.nativeEvent.touches[0].clientX,n=t.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var s=this.props.onResizeStart(t,o,this.resizable);if(s===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var a,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var d=this.window.getComputedStyle(c).flexDirection;this.flexDir=d.startsWith("row")?"row":"column",a=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:i,y:n,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:Le(Le({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:o,flexBasis:a};this.setState(u)}},r.prototype.onMouseMove=function(t){var o=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Pt(t))try{t.preventDefault(),t.stopPropagation()}catch{}var i=this.props,n=i.maxWidth,s=i.maxHeight,a=i.minWidth,l=i.minHeight,c=Pt(t)?t.touches[0].clientX:t.clientX,d=Pt(t)?t.touches[0].clientY:t.clientY,u=this.state,v=u.direction,y=u.original,E=u.width,w=u.height,b=this.getParentSize(),C=mc(b,this.window.innerWidth,this.window.innerHeight,n,s,a,l);n=C.maxWidth,s=C.maxHeight,a=C.minWidth,l=C.minHeight;var p=this.calculateNewSizeFromDirection(c,d),f=p.newHeight,h=p.newWidth,g=this.calculateNewMaxFromBoundary(n,s);this.props.snap&&this.props.snap.x&&(h=Fo(h,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(f=Fo(f,this.props.snap.y,this.props.snapGap));var k=this.calculateNewSizeFromAspectRatio(h,f,{width:g.maxWidth,height:g.maxHeight},{width:a,height:l});if(h=k.newWidth,f=k.newHeight,this.props.grid){var M=To(h,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=To(f,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),j=this.props.snapGap||0,H=j===0||Math.abs(M-h)<=j?M:h,X=j===0||Math.abs(I-f)<=j?I:f;h=H,f=X}var U={width:h-y.width,height:f-y.height};if(this.delta=U,E&&typeof E=="string"){if(E.endsWith("%")){var oe=h/b.width*100;h="".concat(oe,"%")}else if(E.endsWith("vw")){var G=h/this.window.innerWidth*100;h="".concat(G,"vw")}else if(E.endsWith("vh")){var F=h/this.window.innerHeight*100;h="".concat(F,"vh")}}if(w&&typeof w=="string"){if(w.endsWith("%")){var oe=f/b.height*100;f="".concat(oe,"%")}else if(w.endsWith("vw")){var G=f/this.window.innerWidth*100;f="".concat(G,"vw")}else if(w.endsWith("vh")){var F=f/this.window.innerHeight*100;f="".concat(F,"vh")}}var x={width:this.createSizeForCssProperty(h,"width"),height:this.createSizeForCssProperty(f,"height")};this.flexDir==="row"?x.flexBasis=x.width:this.flexDir==="column"&&(x.flexBasis=x.height);var _=this.state.width!==x.width,O=this.state.height!==x.height,Q=this.state.flexBasis!==x.flexBasis,N=_||O||Q;N&&ir.flushSync(function(){o.setState(x)}),this.props.onResize&&N&&this.props.onResize(t,v,this.resizable,U)}},r.prototype.onMouseUp=function(t){var o,i,n=this.state,s=n.isResizing,a=n.direction;n.original,!(!s||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(t,a,this.resizable,this.delta),this.props.size&&this.setState({width:(o=this.props.size.width)!==null&&o!==void 0?o:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:Le(Le({},this.state.backgroundStyle),{cursor:"auto"})}))},r.prototype.updateSize=function(t){var o,i;this.setState({width:(o=t.width)!==null&&o!==void 0?o:"auto",height:(i=t.height)!==null&&i!==void 0?i:"auto"})},r.prototype.renderResizer=function(){var t=this,o=this.props,i=o.enable,n=o.handleStyles,s=o.handleClasses,a=o.handleWrapperStyle,l=o.handleWrapperClass,c=o.handleComponent;if(!i)return null;var d=Object.keys(i).map(function(u){return i[u]!==!1?m.jsx(hc,{direction:u,onResizeStart:t.onResizeStart,replaceStyles:n&&n[u],className:s&&s[u],children:c&&c[u]?c[u]:null},u):null});return m.jsx("div",{className:l,style:a,children:d})},r.prototype.render=function(){var t=this,o=Object.keys(this.props).reduce(function(s,a){return xc.indexOf(a)!==-1||(s[a]=t.props[a]),s},{}),i=Le(Le(Le({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return m.jsxs(n,Le({style:i,className:this.props.className},o,{ref:function(s){s&&(t.resizable=s)},children:[this.state.isResizing&&m.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},r.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},r})(S.PureComponent);const Ic={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},Cc={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},ai=({depth:e=0,className:r,borderType:t,disabled:o})=>A("transition-colors duration-200",{"text-body":!o,"text-inactive-text":o},t?Cc[t]:"border-panel-border",Ic[e],r),kc=e=>{if(!e)return{};const r={},t=e.match(/min-w-\[(\d+)px\]/);t&&(r.minWidth=parseInt(t[1],10));const o=e.match(/max-w-\[(\d+)px\]/);o&&(r.maxWidth=parseInt(o[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(r.minHeight=parseInt(i[1],10));const n=e.match(/max-h-\[(\d+)px\]/);return n&&(r.maxHeight=parseInt(n[1],10)),r},Sc=S.forwardRef(({children:e,width:r,height:t,minWidth:o=10,minHeight:i=10,maxWidth:n,maxHeight:s,defaultWidth:a,defaultHeight:l,defaultSize:c,size:d,grid:u,snap:v,lockAspectRatio:y=!1,enable:E,handleStyles:w={},handleClasses:b={},handleComponent:C={},style:p={},className:f,onResizeStart:h,onResize:g,onResizeStop:k,scale:M=1,bounds:I,snapGap:j,as:H="div",depth:X,disabled:U},oe)=>{const G=ai({depth:X,className:f,disabled:U}),F=kc(f),x=d?{size:d}:r!==void 0||t!==void 0?{size:{width:r??"auto",height:t??"auto"}}:{},_=c?{defaultSize:c}:a!==void 0||l!==void 0?{defaultSize:{width:a??"auto",height:l??"auto"}}:{},O=S.useRef(null);return S.useImperativeHandle(oe,()=>{var Q;return(Q=O.current)==null?void 0:Q.resizable}),m.jsx(yc,{"data-qui":"Resizable",ref:O,...x,..._,minWidth:o??F.minWidth,minHeight:i??F.minHeight,maxWidth:n??F.maxWidth,maxHeight:s??F.maxHeight,grid:u,snap:v,lockAspectRatio:y,enable:E,handleStyles:w,handleClasses:b,handleComponent:C,style:p,className:A("relative box-border",G),onResizeStart:h,onResize:g,onResizeStop:k,scale:M,bounds:I,snapGap:j,as:H,children:e})});Sc.displayName="Resizable";const ot={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Ht={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},Nc=(e,r,t,o,i,n)=>({container:A("inline-flex items-center",ot[e].gap,n),track:A("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between",ot[e].track,{[Ht[r].bg]:t&&!o&&!i,"bg-input-bg":!t&&!o||i,"bg-panel cursor-not-allowed":o,"cursor-pointer":!o}),thumb:A("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",ot[e].thumb,t?ot[e].thumbChecked:ot[e].thumbUnchecked,{[Ht[r].thumb]:!o,"bg-canvas-subtle":o}),iconLeft:A("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ht[r].icon]:!t&&!o,"text-panel-subtle":o||t}),iconRight:A("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ht[r].icon]:t&&!o,"text-panel-subtle":o||!t}),label:A("font-medium text-body",ot[e].label,{"cursor-pointer":!o,"cursor-not-allowed text-muted":o})}),Ec=S.forwardRef(({label:e,checked:r,defaultChecked:t=!1,disabled:o=!1,size:i="md",color:n="primary",icons:s,onChange:a,className:l,id:c,name:d,...u},v)=>{const[y,E]=S.useState(t),w=r!==void 0,b=w?r:y,C=()=>{const f=!b;w||E(f),a==null||a(f)},p=Nc(i,n,b,o,!!s,l);return m.jsxs("div",{"data-qui":"Toggle",className:p.container,children:[e&&m.jsx("label",{htmlFor:c,className:p.label,children:e}),m.jsxs("button",{ref:v,...u,type:"button",role:"switch","aria-checked":b,"aria-label":e,disabled:o,onClick:C,name:d,id:c,className:p.track,children:[s&&m.jsx("span",{className:p.iconLeft,children:s.unchecked}),m.jsx("span",{className:p.thumb,"aria-hidden":"true"}),s&&m.jsx("span",{className:p.iconRight,children:s.checked})]})]})});Ec.displayName="Toggle";S.createContext(null);const li=S.forwardRef(({depth:e=0,className:r,children:t,borderType:o,disabled:i,...n},s)=>{const a=ai({depth:e,className:r,borderType:o,disabled:i});return m.jsx("div",{"data-qui":"Panel",ref:s,className:a,"aria-disabled":i,...n,children:t})});li.displayName="Panel";const Nt={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},Zt={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},grey:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-input-hover"},dark:{bg:"bg-tab-inactive-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},_c=(e,r,t,o)=>A("inline-flex items-center justify-center font-medium border",Nt[e].container,Zt[r].bg,Zt[r].text,Zt[r].border,Nt[e].text,{"opacity-60 pointer-events-none":t,"cursor-pointer hover:bg-opacity-90 transition-opacity":o&&!t}),Ac=(e,r,t)=>A({[Nt[e].icon]:!t,"bg-canvas-default outline-canvas-default text-primary":t&&r!=="white"||t,"bg-primary outline-primary text-button-text":t&&r==="white"&&!t,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":t||t}),Oc=e=>A(Nt[e].text),ci=(e,r,t)=>A("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Nt[e].iconButton,Zt[r].buttonHover,{"pointer-events-none":t}),di=S.createContext(null),ar=()=>{const e=S.useContext(di);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Hr=S.forwardRef(({size:e="md",color:r="primary",className:t,children:o,disabled:i=!1,onClick:n,...s},a)=>{const l={size:e,color:r,disabled:i},c=!!n;return m.jsx(di.Provider,{value:l,children:m.jsx("div",{"data-qui":"Pill",ref:a,onClick:n,className:A(_c(e,r,i,c),t),...s,children:o})})});Hr.displayName="Pill.Root";const Br=S.forwardRef(({className:e,children:r,...t},o)=>{const{size:i}=ar();return m.jsx("span",{ref:o,className:A(Oc(i),e),...t,children:r})});Br.displayName="Pill.Text";const $r=S.forwardRef(({className:e,children:r,label:t,position:o,...i},n)=>{const{size:s,color:a,disabled:l}=ar(),c=!!t,d=m.jsx("span",{ref:n,className:A(Ac(s,a,c),e,{"opacity-60":l}),...i,children:r});return c&&!l?m.jsx(nc,{label:t||"",position:o||"up",children:d}):d});$r.displayName="Pill.Icon";const ui=S.forwardRef(({className:e,children:r,...t},o)=>{const{size:i,color:n,disabled:s}=ar();return m.jsx("button",{ref:o,type:"button",disabled:s,className:A(ci(i,n,s),e),...t,children:r})});ui.displayName="Pill.Button";const Kr=S.forwardRef(({className:e,onClose:r,"aria-label":t="Remove pill",children:o,...i},n)=>{const{size:s,color:a,disabled:l}=ar();return m.jsx("button",{ref:n,type:"button",disabled:l,className:A(ci(s,a,l),e),onClick:r,"aria-label":t,...i,children:o||m.jsx(sr,{})})});Kr.displayName="Pill.Close";const pi=S.forwardRef(({size:e="md",color:r="primary",label:t,icon:o,onClose:i,closable:n=!1,className:s,children:a,disabled:l=!1,...c},d)=>m.jsxs(Hr,{ref:d,size:e,color:r,className:s,disabled:l,...c,children:[o&&m.jsx($r,{children:o}),a||t&&m.jsx(Br,{children:t}),n&&m.jsx(Kr,{onClose:i})]}));pi.displayName="Pill";Object.assign(pi,{Root:Hr,Text:Br,Icon:$r,Button:ui,Close:Kr});function nt(e,r,t){let o=t.initialDeps??[],i,n=!0;function s(){var a,l,c;let d;t.key&&(a=t.debug)!=null&&a.call(t)&&(d=Date.now());const u=e();if(!(u.length!==o.length||u.some((y,E)=>o[E]!==y)))return i;o=u;let v;if(t.key&&(l=t.debug)!=null&&l.call(t)&&(v=Date.now()),i=r(...u),t.key&&(c=t.debug)!=null&&c.call(t)){const y=Math.round((Date.now()-d)*100)/100,E=Math.round((Date.now()-v)*100)/100,w=E/16,b=(C,p)=>{for(C=String(C);C.length<p;)C=" "+C;return C};console.info(`%c⏱ ${b(E,5)} /${b(y,5)} ms`,`
133
+ font-size: .6rem;
134
+ font-weight: bold;
135
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,t==null?void 0:t.key)}return t!=null&&t.onChange&&!(n&&t.skipInitialOnChange)&&t.onChange(i),n=!1,i}return s.updateDeps=a=>{o=a},s}function Po(e,r){if(e===void 0)throw new Error("Unexpected undefined");return e}const zc=(e,r)=>Math.abs(e-r)<1.01,Rc=(e,r,t)=>{let o;return function(...i){e.clearTimeout(o),o=e.setTimeout(()=>r.apply(this,i),t)}},Vo=e=>{const{offsetWidth:r,offsetHeight:t}=e;return{width:r,height:t}},Dc=e=>e,jc=e=>{const r=Math.max(e.startIndex-e.overscan,0),t=Math.min(e.endIndex+e.overscan,e.count-1),o=[];for(let i=r;i<=t;i++)o.push(i);return o},Mc=(e,r)=>{const t=e.scrollElement;if(!t)return;const o=e.targetWindow;if(!o)return;const i=s=>{const{width:a,height:l}=s;r({width:Math.round(a),height:Math.round(l)})};if(i(Vo(t)),!o.ResizeObserver)return()=>{};const n=new o.ResizeObserver(s=>{const a=()=>{const l=s[0];if(l!=null&&l.borderBoxSize){const c=l.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(Vo(t))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return n.observe(t,{box:"border-box"}),()=>{n.unobserve(t)}},Ho={passive:!0},Bo=typeof window>"u"?!0:"onscrollend"in window,Lc=(e,r)=>{const t=e.scrollElement;if(!t)return;const o=e.targetWindow;if(!o)return;let i=0;const n=e.options.useScrollendEvent&&Bo?()=>{}:Rc(o,()=>{r(i,!1)},e.options.isScrollingResetDelay),s=d=>()=>{const{horizontal:u,isRtl:v}=e.options;i=u?t.scrollLeft*(v&&-1||1):t.scrollTop,n(),r(i,d)},a=s(!0),l=s(!1);t.addEventListener("scroll",a,Ho);const c=e.options.useScrollendEvent&&Bo;return c&&t.addEventListener("scrollend",l,Ho),()=>{t.removeEventListener("scroll",a),c&&t.removeEventListener("scrollend",l)}},Tc=(e,r,t)=>{if(r!=null&&r.borderBoxSize){const o=r.borderBoxSize[0];if(o)return Math.round(o[t.options.horizontal?"inlineSize":"blockSize"])}return e[t.options.horizontal?"offsetWidth":"offsetHeight"]},Fc=(e,{adjustments:r=0,behavior:t},o)=>{var i,n;const s=e+r;(n=(i=o.scrollElement)==null?void 0:i.scrollTo)==null||n.call(i,{[o.options.horizontal?"left":"top"]:s,behavior:t})};class Wc{constructor(r){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var t,o,i;return((i=(o=(t=this.targetWindow)==null?void 0:t.performance)==null?void 0:o.now)==null?void 0:i.call(o))??Date.now()},this.observer=(()=>{let t=null;const o=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(i=>{i.forEach(n=>{const s=()=>{const a=n.target,l=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);return}this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(a,n,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var i;(i=o())==null||i.disconnect(),t=null},observe:i=>{var n;return(n=o())==null?void 0:n.observe(i,{box:"border-box"})},unobserve:i=>{var n;return(n=o())==null?void 0:n.unobserve(i)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([o,i])=>{typeof i>"u"&&delete t[o]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Dc,rangeExtractor:jc,onChange:()=>{},measureElement:Tc,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...t}},this.notify=t=>{var o,i;(i=(o=this.options).onChange)==null||i.call(o,this,t)},this.maybeNotify=nt(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const o=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==o){if(this.cleanup(),!o){this.maybeNotify();return}this.scrollElement=o,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,n)=>{this.scrollAdjustments=0,this.scrollDirection=n?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=n,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,o)=>{const i=new Map,n=new Map;for(let s=o-1;s>=0;s--){const a=t[s];if(i.has(a.lane))continue;const l=n.get(a.lane);if(l==null||a.end>l.end?n.set(a.lane,a):a.end<l.end&&i.set(a.lane,!0),i.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=nt(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(t,o,i,n,s,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:o,scrollMargin:i,getItemKey:n,enabled:s,lanes:a}),{key:!1}),this.getMeasurements=nt(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:o,scrollMargin:i,getItemKey:n,enabled:s,lanes:a},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>t)for(const v of this.laneAssignments.keys())v>=t&&this.laneAssignments.delete(v);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const c=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===t&&(this.lanesSettling=!1);const d=this.measurementsCache.slice(0,c),u=new Array(a).fill(void 0);for(let v=0;v<c;v++){const y=d[v];y&&(u[y.lane]=v)}for(let v=c;v<t;v++){const y=n(v),E=this.laneAssignments.get(v);let w,b;if(E!==void 0&&this.options.lanes>1){w=E;const h=u[w],g=h!==void 0?d[h]:void 0;b=g?g.end+this.options.gap:o+i}else{const h=this.options.lanes===1?d[v-1]:this.getFurthestMeasurement(d,v);b=h?h.end+this.options.gap:o+i,w=h?h.lane:v%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(v,w)}const C=l.get(y),p=typeof C=="number"?C:this.options.estimateSize(v),f=b+p;d[v]={index:v,start:b,size:p,end:f,key:y,lane:w},u[w]=v}return this.measurementsCache=d,d},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=nt(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(t,o,i,n)=>this.range=t.length>0&&o>0?Pc({measurements:t,outerSize:o,scrollOffset:i,lanes:n}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=nt(()=>{let t=null,o=null;const i=this.calculateRange();return i&&(t=i.startIndex,o=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,t,o]),[this.options.rangeExtractor,this.options.overscan,this.options.count,t,o]},(t,o,i,n,s)=>n===null||s===null?[]:t({startIndex:n,endIndex:s,overscan:o,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=t=>{const o=this.options.indexAttribute,i=t.getAttribute(o);return i?parseInt(i,10):(console.warn(`Missing attribute name '${o}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=t=>{var o;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((o=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:o.index);if(i!==void 0&&this.range){const n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,i-n),a=Math.min(this.options.count-1,i+n);return t>=s&&t<=a}return!0},this.measureElement=t=>{if(!t){this.elementsCache.forEach((s,a)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(a))});return}const o=this.indexFromElement(t),i=this.options.getItemKey(o),n=this.elementsCache.get(i);n!==t&&(n&&this.observer.unobserve(n),this.observer.observe(t),this.elementsCache.set(i,t)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(o)&&this.resizeItem(o,this.options.measureElement(t,void 0,this))},this.resizeItem=(t,o)=>{var i;const n=this.measurementsCache[t];if(!n)return;const s=this.itemSizeCache.get(n.key)??n.size,a=o-s;a!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,a,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",a),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,o)),this.notify(!1))},this.getVirtualItems=nt(()=>[this.getVirtualIndexes(),this.getMeasurements()],(t,o)=>{const i=[];for(let n=0,s=t.length;n<s;n++){const a=t[n],l=o[a];i.push(l)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const o=this.getMeasurements();if(o.length!==0)return Po(o[gi(0,o.length-1,i=>Po(o[i]).start,t)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const t=this.scrollElement.document.documentElement;return this.options.horizontal?t.scrollWidth-this.scrollElement.innerWidth:t.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(t,o,i=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),s=this.getScrollOffset();o==="auto"&&(o=t>=s+n?"end":"start"),o==="center"?t+=(i-n)/2:o==="end"&&(t-=n);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,t),0)},this.getOffsetForIndex=(t,o="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const i=this.getSize(),n=this.getScrollOffset(),s=this.measurementsCache[t];if(!s)return;if(o==="auto")if(s.end>=n+i-this.options.scrollPaddingEnd)o="end";else if(s.start<=n+this.options.scrollPaddingStart)o="start";else return[n,o];if(o==="end"&&t===this.options.count-1)return[this.getMaxScrollOffset(),o];const a=o==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,o,s.size),o]},this.scrollToOffset=(t,{align:o="start",behavior:i="auto"}={})=>{const n=this.getOffsetForAlignment(t,o),s=this.now();this.scrollState={index:null,align:o,behavior:i,startedAt:s,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(t,{align:o="auto",behavior:i="auto"}={})=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.getOffsetForIndex(t,o);if(!n)return;const[s,a]=n,l=this.now();this.scrollState={index:t,align:a,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(t,{behavior:o="auto"}={})=>{const i=this.getScrollOffset()+t,n=this.now();this.scrollState={index:null,align:"start",behavior:o,startedAt:n,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var t;const o=this.getMeasurements();let i;if(o.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((t=o[o.length-1])==null?void 0:t.end)??0;else{const n=Array(this.options.lanes).fill(null);let s=o.length-1;for(;s>=0&&n.some(a=>a===null);){const a=o[s];n[a.lane]===null&&(n[a.lane]=a.end),s--}i=Math.max(...n.filter(a=>a!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:o,behavior:i})=>{this.options.scrollToFn(t,{behavior:i,adjustments:o},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(r)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=r?r[0]:this.scrollState.lastTargetOffset,o=1,i=t!==this.scrollState.lastTargetOffset;if(!i&&zc(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=o){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const gi=(e,r,t,o)=>{for(;e<=r;){const i=(e+r)/2|0,n=t(i);if(n<o)e=i+1;else if(n>o)r=i-1;else return i}return e>0?e-1:0};function Pc({measurements:e,outerSize:r,scrollOffset:t,lanes:o}){const i=e.length-1,n=l=>e[l].start;if(e.length<=o)return{startIndex:0,endIndex:i};let s=gi(0,i,n,t),a=s;if(o===1)for(;a<i&&e[a].end<t+r;)a++;else if(o>1){const l=Array(o).fill(0);for(;a<i&&l.some(d=>d<t+r);){const d=e[a];l[d.lane]=d.end,a++}const c=Array(o).fill(t+r);for(;s>=0&&c.some(d=>d>=t);){const d=e[s];c[d.lane]=d.start,s--}s=Math.max(0,s-s%o),a=Math.min(i,a+(o-1-a%o))}return{startIndex:s,endIndex:a}}const $o=typeof document<"u"?pe.useLayoutEffect:pe.useEffect;function Vc({useFlushSync:e=!0,...r}){const t=pe.useReducer(()=>({}),{})[1],o={...r,onChange:(n,s)=>{var a;e&&s?ir.flushSync(t):t(),(a=r.onChange)==null||a.call(r,n,s)}},[i]=pe.useState(()=>new Wc(o));return i.setOptions(o),$o(()=>i._didMount(),[]),$o(()=>i._willUpdate()),i}function Hc(e){return Vc({observeElementRect:Mc,observeElementOffset:Lc,scrollToFn:Fc,...e})}const Bc=S.createContext(null),Ie=()=>{const e=S.useContext(Bc);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},xe={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},de={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},$c=({size:e,color:r,isDisabled:t,hasMessage:o,isInvalid:i,isFocused:n,menuPlacement:s})=>{const a=de[i?"negative":r];return A("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",n&&s?s==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",a.control,o?["ring-1",a.messageBorder]:["border",t?"border-input-border":n?a.controlFocused:`border-select-border focus-within:${a.controlFocused}`],xe[e].trigger,{"ring-1":o,[a.controlDisabled]:t})},Kc=({size:e,color:r,isDisabled:t,isAction:o})=>{const i=de[r];return A("transition-colors duration-200 rounded max-h-full h-fit px-0.5",xe[e].icon,e==="sm"?"m-px":"m-0.5",t?"text-muted opacity-60 pointer-events-none":o?i.iconAction:i.icon,{"cursor-pointer p-0.5":o&&!t,[i.iconActionHover]:o&&!t,"pointer-events-none":!o})},Gc=({size:e,color:r,isDisabled:t,isFocused:o,isInvalid:i,hasMessage:n,hasGroup:s,menuPlacement:a})=>{const l=de[i?"negative":r];return s?A("flex items-center justify-between flex-1 min-w-0",xe[e].control,"bg-transparent border-0",{[l.controlDisabled]:t}):A("flex items-center justify-between",o&&a?a==="top"?"rounded-b":"rounded-t":"rounded",xe[e].control,l.control,n?["ring-1",l.messageBorder]:["border",t?"border-input-border":o?l.controlFocused:`border-select-border
136
+ focus-within:${l.controlFocused}`],{[l.controlDisabled]:t})},qc=({isMulti:e})=>A("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),Xc=({size:e,color:r})=>A("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",xe[e].input,de[r].placeholder),Zc=({size:e,color:r})=>A("select-none truncate",xe[e].placeholder,de[r].placeholder),Yc=({size:e,color:r,isDisabled:t})=>A("truncate",xe[e].singleValue,t?de[r].singleValueDisabled:de[r].singleValue),Uc=({size:e,color:r,isDisabled:t,isFocused:o})=>A("inline-flex items-center rounded-xs",xe[e].multiValue,t?de[r].multiValueDisabled:de[r].multiValue,{"border border-white":o&&!t}),Jc=({size:e})=>A("truncate",xe[e].multiValueLabel),Qc=({size:e,color:r,isDisabled:t})=>A("flex items-center justify-center cursor-pointer transition-colors",xe[e].multiValueRemove,de[r].multiValueRemove),hi=({size:e,color:r,isDisabled:t})=>A("flex items-center justify-center transition-colors rounded",xe[e].clearIndicator,t?"hidden":[de[r].clearIndicator,de[r].clearIndicatorHover]),ed=({size:e,color:r,isDisabled:t})=>A("flex items-center justify-center transition-colors rounded",xe[e].dropdownIndicator,t?"text-grey-200":[de[r].dropdownIndicator,de[r].dropdownIndicatorHover]),td=({size:e,placement:r,hasMessage:t,color:o,hasGroup:i})=>{const n=r==="top";return A("absolute z-50 overflow-hidden border",i?"-left-px -right-px":"w-full",de[o].menu,{[de[o].messageBorder]:t},n?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",xe[e].menu)},rd=({size:e})=>A("overflow-y-auto",xe[e].menuList,de.primary.menuList),od=({size:e,color:r,isDisabled:t,isFocused:o,isSelected:i})=>A("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",xe[e].option,{[de[r].optionDisabled]:t,[de[r].optionSelected]:i&&!t,[de[r].optionFocused]:o&&!i&&!t,[de[r].option]:!i&&!o&&!t}),nd=({size:e})=>A(xe[e].group),id=({size:e,color:r})=>A(xe[e].groupHeading,de[r].groupHeading),sd=({size:e})=>A("text-grey-100",xe[e].loadingMessage),ad=({size:e})=>A(xe[e].noOptionsMessage,de.primary.noOptionsMessage),Ko=e=>{const r=e[0];return e.length>0&&typeof r=="object"&&r!==null&&"options"in r&&Array.isArray(r.options)};function xt(e,r){if(e==null)return{};var t={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(r.indexOf(o)!==-1)continue;t[o]=e[o]}return t}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)({}).hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},he.apply(null,arguments)}function Dr(e,r){return Dr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},Dr(e,r)}function ld(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,Dr(e,r)}var Bt={exports:{}},yr={exports:{}},ne={};/** @license React v16.13.1
137
+ * react-is.production.min.js
138
+ *
139
+ * Copyright (c) Facebook, Inc. and its affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ */var Go;function cd(){if(Go)return ne;Go=1;var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function f(g){if(typeof g=="object"&&g!==null){var k=g.$$typeof;switch(k){case r:switch(g=g.type,g){case l:case c:case o:case n:case i:case u:return g;default:switch(g=g&&g.$$typeof,g){case a:case d:case E:case y:case s:return g;default:return k}}case t:return k}}}function h(g){return f(g)===c}return ne.AsyncMode=l,ne.ConcurrentMode=c,ne.ContextConsumer=a,ne.ContextProvider=s,ne.Element=r,ne.ForwardRef=d,ne.Fragment=o,ne.Lazy=E,ne.Memo=y,ne.Portal=t,ne.Profiler=n,ne.StrictMode=i,ne.Suspense=u,ne.isAsyncMode=function(g){return h(g)||f(g)===l},ne.isConcurrentMode=h,ne.isContextConsumer=function(g){return f(g)===a},ne.isContextProvider=function(g){return f(g)===s},ne.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===r},ne.isForwardRef=function(g){return f(g)===d},ne.isFragment=function(g){return f(g)===o},ne.isLazy=function(g){return f(g)===E},ne.isMemo=function(g){return f(g)===y},ne.isPortal=function(g){return f(g)===t},ne.isProfiler=function(g){return f(g)===n},ne.isStrictMode=function(g){return f(g)===i},ne.isSuspense=function(g){return f(g)===u},ne.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===o||g===c||g===n||g===i||g===u||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===E||g.$$typeof===y||g.$$typeof===s||g.$$typeof===a||g.$$typeof===d||g.$$typeof===b||g.$$typeof===C||g.$$typeof===p||g.$$typeof===w)},ne.typeOf=f,ne}var ae={};/** @license React v16.13.1
144
+ * react-is.development.js
145
+ *
146
+ * Copyright (c) Facebook, Inc. and its affiliates.
147
+ *
148
+ * This source code is licensed under the MIT license found in the
149
+ * LICENSE file in the root directory of this source tree.
150
+ */var qo;function dd(){return qo||(qo=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,n=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,w=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,C=e?Symbol.for("react.responder"):60118,p=e?Symbol.for("react.scope"):60119;function f(L){return typeof L=="string"||typeof L=="function"||L===o||L===c||L===n||L===i||L===u||L===v||typeof L=="object"&&L!==null&&(L.$$typeof===E||L.$$typeof===y||L.$$typeof===s||L.$$typeof===a||L.$$typeof===d||L.$$typeof===b||L.$$typeof===C||L.$$typeof===p||L.$$typeof===w)}function h(L){if(typeof L=="object"&&L!==null){var ue=L.$$typeof;switch(ue){case r:var P=L.type;switch(P){case l:case c:case o:case n:case i:case u:return P;default:var be=P&&P.$$typeof;switch(be){case a:case d:case E:case y:case s:return be;default:return ue}}case t:return ue}}}var g=l,k=c,M=a,I=s,j=r,H=d,X=o,U=E,oe=y,G=t,F=n,x=i,_=u,O=!1;function Q(L){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(L)||h(L)===l}function N(L){return h(L)===c}function R(L){return h(L)===a}function K(L){return h(L)===s}function T(L){return typeof L=="object"&&L!==null&&L.$$typeof===r}function z(L){return h(L)===d}function q(L){return h(L)===o}function V(L){return h(L)===E}function W(L){return h(L)===y}function Y(L){return h(L)===t}function ee(L){return h(L)===n}function J(L){return h(L)===i}function te(L){return h(L)===u}ae.AsyncMode=g,ae.ConcurrentMode=k,ae.ContextConsumer=M,ae.ContextProvider=I,ae.Element=j,ae.ForwardRef=H,ae.Fragment=X,ae.Lazy=U,ae.Memo=oe,ae.Portal=G,ae.Profiler=F,ae.StrictMode=x,ae.Suspense=_,ae.isAsyncMode=Q,ae.isConcurrentMode=N,ae.isContextConsumer=R,ae.isContextProvider=K,ae.isElement=T,ae.isForwardRef=z,ae.isFragment=q,ae.isLazy=V,ae.isMemo=W,ae.isPortal=Y,ae.isProfiler=ee,ae.isStrictMode=J,ae.isSuspense=te,ae.isValidElementType=f,ae.typeOf=h})()),ae}var Xo;function vi(){return Xo||(Xo=1,process.env.NODE_ENV==="production"?yr.exports=cd():yr.exports=dd()),yr.exports}/*
151
+ object-assign
152
+ (c) Sindre Sorhus
153
+ @license MIT
154
+ */var Ir,Zo;function ud(){if(Zo)return Ir;Zo=1;var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function i(){try{if(!Object.assign)return!1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(d){return s[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ir=i()?Object.assign:function(n,s){for(var a,l=o(n),c,d=1;d<arguments.length;d++){a=Object(arguments[d]);for(var u in a)r.call(a,u)&&(l[u]=a[u]);if(e){c=e(a);for(var v=0;v<c.length;v++)t.call(a,c[v])&&(l[c[v]]=a[c[v]])}}return l},Ir}var Cr,Yo;function Gr(){if(Yo)return Cr;Yo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Cr=e,Cr}var Uo,Jo;function fi(){return Jo||(Jo=1,Uo=Function.call.bind(Object.prototype.hasOwnProperty)),Uo}var kr,Qo;function pd(){if(Qo)return kr;Qo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var r=Gr(),t={},o=fi();e=function(n){var s="Warning: "+n;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function i(n,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var d in n)if(o(n,d)){var u;try{if(typeof n[d]!="function"){var v=Error((l||"React class")+": "+a+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof n[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}u=n[d](s,d,l,a,null,r)}catch(E){u=E}if(u&&!(u instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in t)){t[u.message]=!0;var y=c?c():"";e("Failed "+a+" type: "+u.message+(y??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},kr=i,kr}var Sr,en;function gd(){if(en)return Sr;en=1;var e=vi(),r=ud(),t=Gr(),o=fi(),i=pd(),n=function(){};process.env.NODE_ENV!=="production"&&(n=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return Sr=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function u(N){var R=N&&(c&&N[c]||N[d]);if(typeof R=="function")return R}var v="<<anonymous>>",y={array:C("array"),bigint:C("bigint"),bool:C("boolean"),func:C("function"),number:C("number"),object:C("object"),string:C("string"),symbol:C("symbol"),any:p(),arrayOf:f,element:h(),elementType:g(),instanceOf:k,node:H(),objectOf:I,oneOf:M,oneOfType:j,shape:U,exact:oe};function E(N,R){return N===R?N!==0||1/N===1/R:N!==N&&R!==R}function w(N,R){this.message=N,this.data=R&&typeof R=="object"?R:{},this.stack=""}w.prototype=Error.prototype;function b(N){if(process.env.NODE_ENV!=="production")var R={},K=0;function T(q,V,W,Y,ee,J,te){if(Y=Y||v,J=J||W,te!==t){if(l){var L=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=Y+":"+W;!R[ue]&&K<3&&(n("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[ue]=!0,K++)}}return V[W]==null?q?V[W]===null?new w("The "+ee+" `"+J+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new w("The "+ee+" `"+J+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:N(V,W,Y,ee,J)}var z=T.bind(null,!1);return z.isRequired=T.bind(null,!0),z}function C(N){function R(K,T,z,q,V,W){var Y=K[T],ee=x(Y);if(ee!==N){var J=_(Y);return new w("Invalid "+q+" `"+V+"` of type "+("`"+J+"` supplied to `"+z+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return b(R)}function p(){return b(s)}function f(N){function R(K,T,z,q,V){if(typeof N!="function")return new w("Property `"+V+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var W=K[T];if(!Array.isArray(W)){var Y=x(W);return new w("Invalid "+q+" `"+V+"` of type "+("`"+Y+"` supplied to `"+z+"`, expected an array."))}for(var ee=0;ee<W.length;ee++){var J=N(W,ee,z,q,V+"["+ee+"]",t);if(J instanceof Error)return J}return null}return b(R)}function h(){function N(R,K,T,z,q){var V=R[K];if(!a(V)){var W=x(V);return new w("Invalid "+z+" `"+q+"` of type "+("`"+W+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return b(N)}function g(){function N(R,K,T,z,q){var V=R[K];if(!e.isValidElementType(V)){var W=x(V);return new w("Invalid "+z+" `"+q+"` of type "+("`"+W+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return b(N)}function k(N){function R(K,T,z,q,V){if(!(K[T]instanceof N)){var W=N.name||v,Y=Q(K[T]);return new w("Invalid "+q+" `"+V+"` of type "+("`"+Y+"` supplied to `"+z+"`, expected ")+("instance of `"+W+"`."))}return null}return b(R)}function M(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?n("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):n("Invalid argument supplied to oneOf, expected an array.")),s;function R(K,T,z,q,V){for(var W=K[T],Y=0;Y<N.length;Y++)if(E(W,N[Y]))return null;var ee=JSON.stringify(N,function(J,te){var L=_(te);return L==="symbol"?String(te):te});return new w("Invalid "+q+" `"+V+"` of value `"+String(W)+"` "+("supplied to `"+z+"`, expected one of "+ee+"."))}return b(R)}function I(N){function R(K,T,z,q,V){if(typeof N!="function")return new w("Property `"+V+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var W=K[T],Y=x(W);if(Y!=="object")return new w("Invalid "+q+" `"+V+"` of type "+("`"+Y+"` supplied to `"+z+"`, expected an object."));for(var ee in W)if(o(W,ee)){var J=N(W,ee,z,q,V+"."+ee,t);if(J instanceof Error)return J}return null}return b(R)}function j(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&n("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var R=0;R<N.length;R++){var K=N[R];if(typeof K!="function")return n("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(K)+" at index "+R+"."),s}function T(z,q,V,W,Y){for(var ee=[],J=0;J<N.length;J++){var te=N[J],L=te(z,q,V,W,Y,t);if(L==null)return null;L.data&&o(L.data,"expectedType")&&ee.push(L.data.expectedType)}var ue=ee.length>0?", expected one of type ["+ee.join(", ")+"]":"";return new w("Invalid "+W+" `"+Y+"` supplied to "+("`"+V+"`"+ue+"."))}return b(T)}function H(){function N(R,K,T,z,q){return G(R[K])?null:new w("Invalid "+z+" `"+q+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return b(N)}function X(N,R,K,T,z){return new w((N||"React class")+": "+R+" type `"+K+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function U(N){function R(K,T,z,q,V){var W=K[T],Y=x(W);if(Y!=="object")return new w("Invalid "+q+" `"+V+"` of type `"+Y+"` "+("supplied to `"+z+"`, expected `object`."));for(var ee in N){var J=N[ee];if(typeof J!="function")return X(z,q,V,ee,_(J));var te=J(W,ee,z,q,V+"."+ee,t);if(te)return te}return null}return b(R)}function oe(N){function R(K,T,z,q,V){var W=K[T],Y=x(W);if(Y!=="object")return new w("Invalid "+q+" `"+V+"` of type `"+Y+"` "+("supplied to `"+z+"`, expected `object`."));var ee=r({},K[T],N);for(var J in ee){var te=N[J];if(o(N,J)&&typeof te!="function")return X(z,q,V,J,_(te));if(!te)return new w("Invalid "+q+" `"+V+"` key `"+J+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(K[T],null," ")+`
155
+ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var L=te(W,J,z,q,V+"."+J,t);if(L)return L}return null}return b(R)}function G(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(G);if(N===null||a(N))return!0;var R=u(N);if(R){var K=R.call(N),T;if(R!==N.entries){for(;!(T=K.next()).done;)if(!G(T.value))return!1}else for(;!(T=K.next()).done;){var z=T.value;if(z&&!G(z[1]))return!1}}else return!1;return!0;default:return!1}}function F(N,R){return N==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function x(N){var R=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":F(R,N)?"symbol":R}function _(N){if(typeof N>"u"||N===null)return""+N;var R=x(N);if(R==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return R}function O(N){var R=_(N);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function Q(N){return!N.constructor||!N.constructor.name?v:N.constructor.name}return y.checkPropTypes=i,y.resetWarningCache=i.resetWarningCache,y.PropTypes=y,y},Sr}var Nr,tn;function hd(){if(tn)return Nr;tn=1;var e=Gr();function r(){}function t(){}return t.resetWarningCache=r,Nr=function(){function o(s,a,l,c,d,u){if(u!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}o.isRequired=o;function i(){return o}var n={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:t,resetWarningCache:r};return n.PropTypes=n,n},Nr}var rn;function vd(){if(rn)return Bt.exports;if(rn=1,process.env.NODE_ENV!=="production"){var e=vi(),r=!0;Bt.exports=gd()(e.isElement,r)}else Bt.exports=hd()();return Bt.exports}var fd=vd();const D=qn(fd);var Er={exports:{}},ie={};/**
156
+ * @license React
157
+ * react-is.production.min.js
158
+ *
159
+ * Copyright (c) Facebook, Inc. and its affiliates.
160
+ *
161
+ * This source code is licensed under the MIT license found in the
162
+ * LICENSE file in the root directory of this source tree.
163
+ */var on;function bd(){if(on)return ie;on=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function w(b){if(typeof b=="object"&&b!==null){var C=b.$$typeof;switch(C){case e:switch(b=b.type,b){case t:case i:case o:case c:case d:return b;default:switch(b=b&&b.$$typeof,b){case a:case s:case l:case v:case u:case n:return b;default:return C}}case r:return C}}}return ie.ContextConsumer=s,ie.ContextProvider=n,ie.Element=e,ie.ForwardRef=l,ie.Fragment=t,ie.Lazy=v,ie.Memo=u,ie.Portal=r,ie.Profiler=i,ie.StrictMode=o,ie.Suspense=c,ie.SuspenseList=d,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(b){return w(b)===s},ie.isContextProvider=function(b){return w(b)===n},ie.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},ie.isForwardRef=function(b){return w(b)===l},ie.isFragment=function(b){return w(b)===t},ie.isLazy=function(b){return w(b)===v},ie.isMemo=function(b){return w(b)===u},ie.isPortal=function(b){return w(b)===r},ie.isProfiler=function(b){return w(b)===i},ie.isStrictMode=function(b){return w(b)===o},ie.isSuspense=function(b){return w(b)===c},ie.isSuspenseList=function(b){return w(b)===d},ie.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===t||b===i||b===o||b===c||b===d||b===y||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===u||b.$$typeof===n||b.$$typeof===s||b.$$typeof===l||b.$$typeof===E||b.getModuleId!==void 0)},ie.typeOf=w,ie}var le={};/**
164
+ * @license React
165
+ * react-is.development.js
166
+ *
167
+ * Copyright (c) Facebook, Inc. and its affiliates.
168
+ *
169
+ * This source code is licensed under the MIT license found in the
170
+ * LICENSE file in the root directory of this source tree.
171
+ */var nn;function md(){return nn||(nn=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),E=!1,w=!1,b=!1,C=!1,p=!1,f;f=Symbol.for("react.module.reference");function h(P){return!!(typeof P=="string"||typeof P=="function"||P===t||P===i||p||P===o||P===c||P===d||C||P===y||E||w||b||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===u||P.$$typeof===n||P.$$typeof===s||P.$$typeof===l||P.$$typeof===f||P.getModuleId!==void 0))}function g(P){if(typeof P=="object"&&P!==null){var be=P.$$typeof;switch(be){case e:var ge=P.type;switch(ge){case t:case i:case o:case c:case d:return ge;default:var ce=ge&&ge.$$typeof;switch(ce){case a:case s:case l:case v:case u:case n:return ce;default:return be}}case r:return be}}}var k=s,M=n,I=e,j=l,H=t,X=v,U=u,oe=r,G=i,F=o,x=c,_=d,O=!1,Q=!1;function N(P){return O||(O=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(P){return Q||(Q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(P){return g(P)===s}function T(P){return g(P)===n}function z(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function q(P){return g(P)===l}function V(P){return g(P)===t}function W(P){return g(P)===v}function Y(P){return g(P)===u}function ee(P){return g(P)===r}function J(P){return g(P)===i}function te(P){return g(P)===o}function L(P){return g(P)===c}function ue(P){return g(P)===d}le.ContextConsumer=k,le.ContextProvider=M,le.Element=I,le.ForwardRef=j,le.Fragment=H,le.Lazy=X,le.Memo=U,le.Portal=oe,le.Profiler=G,le.StrictMode=F,le.Suspense=x,le.SuspenseList=_,le.isAsyncMode=N,le.isConcurrentMode=R,le.isContextConsumer=K,le.isContextProvider=T,le.isElement=z,le.isForwardRef=q,le.isFragment=V,le.isLazy=W,le.isMemo=Y,le.isPortal=ee,le.isProfiler=J,le.isStrictMode=te,le.isSuspense=L,le.isSuspenseList=ue,le.isValidElementType=h,le.typeOf=g})()),le}var sn;function wd(){return sn||(sn=1,process.env.NODE_ENV==="production"?Er.exports=bd():Er.exports=md()),Er.exports}var an=wd();const ln=e=>typeof e=="object"&&e!=null&&e.nodeType===1,cn=(e,r)=>(!r||e!=="hidden")&&e!=="visible"&&e!=="clip",$t=(e,r)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const t=getComputedStyle(e,null);return cn(t.overflowY,r)||cn(t.overflowX,r)||(o=>{const i=(n=>{if(!n.ownerDocument||!n.ownerDocument.defaultView)return null;try{return n.ownerDocument.defaultView.frameElement}catch{return null}})(o);return!!i&&(i.clientHeight<o.scrollHeight||i.clientWidth<o.scrollWidth)})(e)}return!1},Kt=(e,r,t,o,i,n,s,a)=>n<e&&s>r||n>e&&s<r?0:n<=e&&a<=t||s>=r&&a>=t?n-e-o:s>r&&a<t||n<e&&a>t?s-r+i:0,xd=e=>e.parentElement??(e.getRootNode().host||null),yd=(e,r)=>{var t,o,i,n;if(typeof document>"u")return[];const{inline:s,boundary:a,skipOverflowHiddenElements:l}=r,c=typeof a=="function"?a:oe=>oe!==a;if(!ln(e))throw new TypeError("Invalid target");const d=document.scrollingElement||document.documentElement,u=[];let v=e;for(;ln(v)&&c(v);){if(v=xd(v),v===d){u.push(v);break}v!=null&&v===document.body&&$t(v)&&!$t(document.documentElement)||v!=null&&$t(v,l)&&u.push(v)}const y=(o=(t=window.visualViewport)==null?void 0:t.width)!=null?o:innerWidth,E=(n=(i=window.visualViewport)==null?void 0:i.height)!=null?n:innerHeight,{scrollX:w,scrollY:b}=window,{height:C,width:p,top:f,right:h,bottom:g,left:k}=e.getBoundingClientRect(),{top:M,right:I,left:j}=(oe=>{const G=window.getComputedStyle(oe);return{top:parseFloat(G.scrollMarginTop)||0,right:parseFloat(G.scrollMarginRight)||0,bottom:parseFloat(G.scrollMarginBottom)||0,left:parseFloat(G.scrollMarginLeft)||0}})(e);let H=f-M,X=s==="center"?k+p/2-j+I:s==="end"?h+I:k-j;const U=[];for(let oe=0;oe<u.length;oe++){const G=u[oe],{height:F,width:x,top:_,right:O,bottom:Q,left:N}=G.getBoundingClientRect();if(f>=0&&k>=0&&g<=E&&h<=y&&(G===d&&!$t(G)||f>=_&&g<=Q&&k>=N&&h<=O))return U;const R=getComputedStyle(G),K=parseInt(R.borderLeftWidth,10),T=parseInt(R.borderTopWidth,10),z=parseInt(R.borderRightWidth,10),q=parseInt(R.borderBottomWidth,10);let V=0,W=0;const Y="offsetWidth"in G?G.offsetWidth-G.clientWidth-K-z:0,ee="offsetHeight"in G?G.offsetHeight-G.clientHeight-T-q:0,J="offsetWidth"in G?G.offsetWidth===0?0:x/G.offsetWidth:0,te="offsetHeight"in G?G.offsetHeight===0?0:F/G.offsetHeight:0;if(d===G)V=Kt(b,b+E,E,T,q,b+H,b+H+C,C),W=s==="start"?X:s==="center"?X-y/2:s==="end"?X-y:Kt(w,w+y,y,K,z,w+X,w+X+p,p),V=Math.max(0,V+b),W=Math.max(0,W+w);else{V=Kt(_,Q,F,T,q+ee,H,H+C,C),W=s==="start"?X-N-K:s==="center"?X-(N+x/2)+Y/2:s==="end"?X-O+z+Y:Kt(N,O,x,K,z+Y,X,X+p,p);const{scrollLeft:L,scrollTop:ue}=G;V=te===0?0:Math.max(0,Math.min(ue+V/te,G.scrollHeight-F/te+ee)),W=J===0?0:Math.max(0,Math.min(L+W/J,G.scrollWidth-x/J+Y)),H+=ue-V,X+=L-W}U.push({el:G,top:V,left:W})}return U};var ct=function(){return ct=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ct.apply(this,arguments)},Id=0;function dn(e){return typeof e=="function"?e:Pe}function Pe(){}function bi(e,r){if(e){var t=yd(e,{boundary:r});t.forEach(function(o){var i=o.el,n=o.top,s=o.left;i.scrollTop=n,i.scrollLeft=s})}}function un(e,r,t){var o=e===r||r instanceof t.Node&&e.contains&&e.contains(r);return o}function qr(e,r){var t;function o(){t&&clearTimeout(t)}function i(){for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];o(),t=setTimeout(function(){t=null,e.apply(void 0,s)},r)}return i.cancel=o,i}function Me(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(o){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return r.some(function(a){return a&&a.apply(void 0,[o].concat(n)),o.preventDownshiftDefault||o.hasOwnProperty("nativeEvent")&&o.nativeEvent.preventDownshiftDefault})}}function pn(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(o){r.forEach(function(i){typeof i=="function"?i(o):i&&(i.current=o)})}}function Cd(){return String(Id++)}function kd(e){var r=e.isOpen,t=e.resultCount,o=e.previousResultCount;return r?t?t!==o?t+" result"+(t===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function gn(e,r){return e=Array.isArray(e)?e[0]:e,!e&&r?r:e}function mi(e){return typeof e.type=="string"}function wi(e){return e.props}function Sd(e,r){console.error('The property "'+r+'" is required in "'+e+'"')}var Nd=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Gt(e){e===void 0&&(e={});var r={};return Nd.forEach(function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}function Ed(e,r){return!e||!r?e:Object.keys(e).reduce(function(t,o){return t[o]=jr(r,o)?r[o]:e[o],t},{})}function jr(e,r){return e[r]!==void 0}function hn(e){var r=e.key,t=e.keyCode;return t>=37&&t<=40&&r.indexOf("Arrow")!==0?"Arrow"+r:r}function _d(e){return Object.prototype.toString.call(e)==="[object Object]"}function _r(e,r,t,o,i){var n=t.length;if(n===0)return-1;var s=n-1;(typeof e!="number"||e<0||e>s)&&(e=r>0?-1:s+1);var a=e+r;a<0?a=s:a>s&&(a=0);var l=nr(a,r<0,t,o,i);return l===-1?e>=n?-1:e:l}function nr(e,r,t,o,i){i===void 0&&(i=!1);var n=t.length;if(r){for(var s=e;s>=0;s--)if(!o(t[s],s))return s}else for(var a=e;a<n;a++)if(!o(t[a],a))return a;return i?nr(r?n-1:0,r,t,o):-1}function vn(e,r,t,o){return o===void 0&&(o=!0),t&&r.some(function(i){return i&&(un(i,e,t)||o&&un(i,t.document.activeElement,t))})}var Xr=Pe;process.env.NODE_ENV!=="production"&&(Xr=function(e,r,t){var o="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(i){r[i]!==void 0&&t[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+o):r[i]===void 0&&t[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+o)})});var Ad=qr(function(e){xi(e).textContent=""},500);function xi(e){var r=e.getElementById("a11y-status-message");return r||(r=e.createElement("div"),r.setAttribute("id","a11y-status-message"),r.setAttribute("role","status"),r.setAttribute("aria-live","polite"),r.setAttribute("aria-relevant","additions text"),Object.assign(r.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(r),r)}function yi(e,r){if(!(!e||!r)){var t=xi(r);t.textContent=e,Ad(r)}}var Ii=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Ci=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,ki=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Yt=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Ut=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Si=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Ni=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Ei=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,_i=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Ai=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Oi=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,zi=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Ri=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Mr=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,Di=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ji=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Mi=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,Od=Object.freeze({__proto__:null,blurButton:Di,blurInput:Oi,changeInput:zi,clickButton:Mr,clickItem:Ai,controlledPropUpdatedSelectedItem:ji,itemMouseEnter:ki,keyDownArrowDown:Ut,keyDownArrowUp:Yt,keyDownEnd:_i,keyDownEnter:Ni,keyDownEscape:Si,keyDownHome:Ei,keyDownSpaceButton:Ri,mouseUp:Ci,touchEnd:Mi,unknown:Ii}),zd=["refKey","ref"],Rd=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],Dd=["onKeyDown","onBlur","onChange","onInput","onChangeText"],jd=["refKey","ref"],Md=["onMouseMove","onMouseDown","onClick","onPress","index","item"],Ld=(function(){var e=(function(r){function t(i){var n;n=r.call(this,i)||this,n.id=n.props.id||"downshift-"+Cd(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(p){return n.id+"-item-"+p},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(p,f){var h=setTimeout(function(){n.timeoutIds=n.timeoutIds.filter(function(g){return g!==h}),p()},f);n.timeoutIds.push(h)},n.setItemCount=function(p){n.itemCount=p},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(p,f){var h=n.getItemNodeFromIndex(f);return h&&h.hasAttribute("disabled")},n.setHighlightedIndex=function(p,f){p===void 0&&(p=n.props.defaultHighlightedIndex),f===void 0&&(f={}),f=Gt(f),n.internalSetState(he({highlightedIndex:p},f))},n.clearSelection=function(p){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},p)},n.selectItem=function(p,f,h){f=Gt(f),n.internalSetState(he({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:p,inputValue:n.props.itemToString(p)},f),h)},n.selectItemAtIndex=function(p,f,h){var g=n.items[p];g!=null&&n.selectItem(g,f,h)},n.selectHighlightedItem=function(p,f){return n.selectItemAtIndex(n.getState().highlightedIndex,p,f)},n.internalSetState=function(p,f){var h,g,k={},M=typeof p=="function";return!M&&p.hasOwnProperty("inputValue")&&n.props.onInputValueChange(p.inputValue,he({},n.getStateAndHelpers(),p)),n.setState(function(I){var j;I=n.getState(I);var H=M?p(I):p;H=n.props.stateReducer(I,H),h=H.hasOwnProperty("selectedItem");var X={};return h&&H.selectedItem!==I.selectedItem&&(g=H.selectedItem),(j=H).type||(j.type=Ii),Object.keys(H).forEach(function(U){I[U]!==H[U]&&(k[U]=H[U]),U!=="type"&&(H[U],jr(n.props,U)||(X[U]=H[U]))}),M&&H.hasOwnProperty("inputValue")&&n.props.onInputValueChange(H.inputValue,he({},n.getStateAndHelpers(),H)),X},function(){dn(f)();var I=Object.keys(k).length>1;I&&n.props.onStateChange(k,n.getStateAndHelpers()),h&&n.props.onSelect(p.selectedItem,n.getStateAndHelpers()),g!==void 0&&n.props.onChange(g,n.getStateAndHelpers()),n.props.onUserAction(k,n.getStateAndHelpers())})},n.rootRef=function(p){return n._rootNode=p},n.getRootProps=function(p,f){var h,g=p===void 0?{}:p,k=g.refKey,M=k===void 0?"ref":k,I=g.ref,j=xt(g,zd),H=f===void 0?{}:f,X=H.suppressRefError,U=X===void 0?!1:X;n.getRootProps.called=!0,n.getRootProps.refKey=M,n.getRootProps.suppressRefError=U;var oe=n.getState(),G=oe.isOpen;return he((h={},h[M]=pn(I,n.rootRef),h.role="combobox",h["aria-expanded"]=G,h["aria-haspopup"]="listbox",h["aria-owns"]=G?n.menuId:void 0,h["aria-labelledby"]=n.labelId,h),j)},n.keyDownHandlers={ArrowDown:function(p){var f=this;if(p.preventDefault(),this.getState().isOpen){var h=p.shiftKey?5:1;this.moveHighlightedIndex(h,{type:Ut})}else this.internalSetState({isOpen:!0,type:Ut},function(){var g=f.getItemCount();if(g>0){var k=f.getState(),M=k.highlightedIndex,I=_r(M,1,{length:g},f.isItemDisabled,!0);f.setHighlightedIndex(I,{type:Ut})}})},ArrowUp:function(p){var f=this;if(p.preventDefault(),this.getState().isOpen){var h=p.shiftKey?-5:-1;this.moveHighlightedIndex(h,{type:Yt})}else this.internalSetState({isOpen:!0,type:Yt},function(){var g=f.getItemCount();if(g>0){var k=f.getState(),M=k.highlightedIndex,I=_r(M,-1,{length:g},f.isItemDisabled,!0);f.setHighlightedIndex(I,{type:Yt})}})},Enter:function(p){if(p.which!==229){var f=this.getState(),h=f.isOpen,g=f.highlightedIndex;if(h&&g!=null){p.preventDefault();var k=this.items[g],M=this.getItemNodeFromIndex(g);if(k==null||M&&M.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Ni})}}},Escape:function(p){p.preventDefault(),this.reset(he({type:Si},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=he({},n.keyDownHandlers,{" ":function(p){p.preventDefault(),this.toggleMenu({type:Ri})}}),n.inputKeyDownHandlers=he({},n.keyDownHandlers,{Home:function(p){var f=this.getState(),h=f.isOpen;if(h){p.preventDefault();var g=this.getItemCount();if(!(g<=0||!h)){var k=nr(0,!1,{length:g},this.isItemDisabled);this.setHighlightedIndex(k,{type:Ei})}}},End:function(p){var f=this.getState(),h=f.isOpen;if(h){p.preventDefault();var g=this.getItemCount();if(!(g<=0||!h)){var k=nr(g-1,!0,{length:g},this.isItemDisabled);this.setHighlightedIndex(k,{type:_i})}}}}),n.getToggleButtonProps=function(p){var f=p===void 0?{}:p,h=f.onClick;f.onPress;var g=f.onKeyDown,k=f.onKeyUp,M=f.onBlur,I=xt(f,Rd),j=n.getState(),H=j.isOpen,X={onClick:Me(h,n.buttonHandleClick),onKeyDown:Me(g,n.buttonHandleKeyDown),onKeyUp:Me(k,n.buttonHandleKeyUp),onBlur:Me(M,n.buttonHandleBlur)},U=I.disabled?{}:X;return he({type:"button",role:"button","aria-label":H?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},U,I)},n.buttonHandleKeyUp=function(p){p.preventDefault()},n.buttonHandleKeyDown=function(p){var f=hn(p);n.buttonKeyDownHandlers[f]&&n.buttonKeyDownHandlers[f].call(n,p)},n.buttonHandleClick=function(p){if(p.preventDefault(),n.props.environment){var f=n.props.environment.document,h=f.body,g=f.activeElement;h&&h===g&&p.target.focus()}process.env.NODE_ENV==="test"?n.toggleMenu({type:Mr}):n.internalSetTimeout(function(){return n.toggleMenu({type:Mr})})},n.buttonHandleBlur=function(p){var f=p.target;n.internalSetTimeout(function(){if(!(n.isMouseDown||!n.props.environment)){var h=n.props.environment.document.activeElement;(h==null||h.id!==n.inputId)&&h!==f&&n.reset({type:Di})}})},n.getLabelProps=function(p){return he({htmlFor:n.inputId,id:n.labelId},p)},n.getInputProps=function(p){var f=p===void 0?{}:p,h=f.onKeyDown,g=f.onBlur,k=f.onChange,M=f.onInput;f.onChangeText;var I=xt(f,Dd),j,H={};j="onChange";var X=n.getState(),U=X.inputValue,oe=X.isOpen,G=X.highlightedIndex;if(!I.disabled){var F;H=(F={},F[j]=Me(k,M,n.inputHandleChange),F.onKeyDown=Me(h,n.inputHandleKeyDown),F.onBlur=Me(g,n.inputHandleBlur),F)}return he({"aria-autocomplete":"list","aria-activedescendant":oe&&typeof G=="number"&&G>=0?n.getItemId(G):void 0,"aria-controls":oe?n.menuId:void 0,"aria-labelledby":I&&I["aria-label"]?void 0:n.labelId,autoComplete:"off",value:U,id:n.inputId},H,I)},n.inputHandleKeyDown=function(p){var f=hn(p);f&&n.inputKeyDownHandlers[f]&&n.inputKeyDownHandlers[f].call(n,p)},n.inputHandleChange=function(p){n.internalSetState({type:zi,isOpen:!0,inputValue:p.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout(function(){var p;if(!(n.isMouseDown||!n.props.environment)){var f=n.props.environment.document.activeElement,h=(f==null||(p=f.dataset)==null?void 0:p.toggle)&&n._rootNode&&n._rootNode.contains(f);h||n.reset({type:Oi})}})},n.menuRef=function(p){n._menuNode=p},n.getMenuProps=function(p,f){var h,g=p===void 0?{}:p,k=g.refKey,M=k===void 0?"ref":k,I=g.ref,j=xt(g,jd),H=f===void 0?{}:f,X=H.suppressRefError,U=X===void 0?!1:X;return n.getMenuProps.called=!0,n.getMenuProps.refKey=M,n.getMenuProps.suppressRefError=U,he((h={},h[M]=pn(I,n.menuRef),h.role="listbox",h["aria-labelledby"]=j&&j["aria-label"]?void 0:n.labelId,h.id=n.menuId,h),j)},n.getItemProps=function(p){var f,h=p===void 0?{}:p,g=h.onMouseMove,k=h.onMouseDown,M=h.onClick;h.onPress;var I=h.index,j=h.item,H=j===void 0?process.env.NODE_ENV==="production"?void 0:Sd("getItemProps","item"):j,X=xt(h,Md);I===void 0?(n.items.push(H),I=n.items.indexOf(H)):n.items[I]=H;var U="onClick",oe=M,G=(f={onMouseMove:Me(g,function(){I!==n.getState().highlightedIndex&&(n.setHighlightedIndex(I,{type:ki}),n.avoidScrolling=!0,n.internalSetTimeout(function(){return n.avoidScrolling=!1},250))}),onMouseDown:Me(k,function(x){x.preventDefault()})},f[U]=Me(oe,function(){n.selectItemAtIndex(I,{type:Ai})}),f),F=X.disabled?{onMouseDown:G.onMouseDown}:G;return he({id:n.getItemId(I),role:"option","aria-selected":n.getState().highlightedIndex===I},F,X)},n.clearItems=function(){n.items=[]},n.reset=function(p,f){p===void 0&&(p={}),p=Gt(p),n.internalSetState(function(h){var g=h.selectedItem;return he({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(g)},p)},f)},n.toggleMenu=function(p,f){p===void 0&&(p={}),p=Gt(p),n.internalSetState(function(h){var g=h.isOpen;return he({isOpen:!g},g&&{highlightedIndex:n.props.defaultHighlightedIndex},p)},function(){var h=n.getState(),g=h.isOpen,k=h.highlightedIndex;g&&n.getItemCount()>0&&typeof k=="number"&&n.setHighlightedIndex(k,p),dn(f)()})},n.openMenu=function(p){n.internalSetState({isOpen:!0},p)},n.closeMenu=function(p){n.internalSetState({isOpen:!1},p)},n.updateStatus=qr(function(){var p;if((p=n.props)!=null&&(p=p.environment)!=null&&p.document){var f=n.getState(),h=n.items[f.highlightedIndex],g=n.getItemCount(),k=n.props.getA11yStatusMessage(he({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:g,highlightedItem:h},f));n.previousResultCount=g,yi(k,n.props.environment.document)}},200);var s=n.props,a=s.defaultHighlightedIndex,l=s.initialHighlightedIndex,c=l===void 0?a:l,d=s.defaultIsOpen,u=s.initialIsOpen,v=u===void 0?d:u,y=s.initialInputValue,E=y===void 0?"":y,w=s.initialSelectedItem,b=w===void 0?null:w,C=n.getState({highlightedIndex:c,isOpen:v,inputValue:E,selectedItem:b});return C.selectedItem!=null&&n.props.initialInputValue===void 0&&(C.inputValue=n.props.itemToString(C.selectedItem)),n.state=C,n}ld(t,r);var o=t.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},o.getState=function(i){return i===void 0&&(i=this.state),Ed(i,this.props)},o.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},o.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},o.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},o.moveHighlightedIndex=function(i,n){var s=this.getItemCount(),a=this.getState(),l=a.highlightedIndex;if(s>0){var c=_r(l,i,{length:s},this.isItemDisabled,!0);this.setHighlightedIndex(c,n)}},o.getStateAndHelpers=function(){var i=this.getState(),n=i.highlightedIndex,s=i.inputValue,a=i.selectedItem,l=i.isOpen,c=this.props.itemToString,d=this.id,u=this.getRootProps,v=this.getToggleButtonProps,y=this.getLabelProps,E=this.getMenuProps,w=this.getInputProps,b=this.getItemProps,C=this.openMenu,p=this.closeMenu,f=this.toggleMenu,h=this.selectItem,g=this.selectItemAtIndex,k=this.selectHighlightedItem,M=this.setHighlightedIndex,I=this.clearSelection,j=this.clearItems,H=this.reset,X=this.setItemCount,U=this.unsetItemCount,oe=this.internalSetState;return{getRootProps:u,getToggleButtonProps:v,getLabelProps:y,getMenuProps:E,getInputProps:w,getItemProps:b,reset:H,openMenu:C,closeMenu:p,toggleMenu:f,selectItem:h,selectItemAtIndex:g,selectHighlightedItem:k,setHighlightedIndex:M,clearSelection:I,clearItems:j,setItemCount:X,unsetItemCount:U,setState:oe,itemToString:c,id:d,highlightedIndex:n,inputValue:s,isOpen:l,selectedItem:a}},o.componentDidMount=function(){var i=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&fn(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var n=function(){i.isMouseDown=!0},s=function(u){i.isMouseDown=!1;var v=vn(u.target,[i._rootNode,i._menuNode],i.props.environment);!v&&i.getState().isOpen&&i.reset({type:Ci},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},a=function(){i.isTouchMove=!1},l=function(){i.isTouchMove=!0},c=function(u){var v=vn(u.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!v&&i.getState().isOpen&&i.reset({type:Mi},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},d=this.props.environment;d.addEventListener("mousedown",n),d.addEventListener("mouseup",s),d.addEventListener("touchstart",a),d.addEventListener("touchmove",l),d.addEventListener("touchend",c),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),d.removeEventListener("mousedown",n),d.removeEventListener("mouseup",s),d.removeEventListener("touchstart",a),d.removeEventListener("touchmove",l),d.removeEventListener("touchend",c)}}},o.shouldScroll=function(i,n){var s=this.props.highlightedIndex===void 0?this.getState():this.props,a=s.highlightedIndex,l=n.highlightedIndex===void 0?i:n,c=l.highlightedIndex,d=a&&this.getState().isOpen&&!i.isOpen,u=a!==c;return d||u},o.componentDidUpdate=function(i,n){process.env.NODE_ENV!=="production"&&(Xr(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&fn(this._menuNode,this.getMenuProps)),jr(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ji,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(n,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var i=gn(this.props.children,Pe);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var n=gn(i(this.getStateAndHelpers()));if(!n)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&Td(n,this.getRootProps),n;if(mi(n))return S.cloneElement(n,this.getRootProps(wi(n)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},t})(S.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:kd,itemToString:function(r){return r==null?"":(process.env.NODE_ENV!=="production"&&_d(r)&&!r.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",r),String(r))},onStateChange:Pe,onInputValueChange:Pe,onUserAction:Pe,onChange:Pe,onSelect:Pe,onOuterClick:Pe,selectedItemChanged:function(r,t){return r!==t},environment:typeof window>"u"?void 0:window,stateReducer:function(r,t){return t},suppressRefError:!1,scrollIntoView:bi},e.stateChangeTypes=Od,e})();process.env.NODE_ENV!=="production"&&(Ld.propTypes={children:D.func,defaultHighlightedIndex:D.number,defaultIsOpen:D.bool,initialHighlightedIndex:D.number,initialSelectedItem:D.any,initialInputValue:D.string,initialIsOpen:D.bool,getA11yStatusMessage:D.func,itemToString:D.func,onChange:D.func,onSelect:D.func,onStateChange:D.func,onInputValueChange:D.func,onUserAction:D.func,onOuterClick:D.func,selectedItemChanged:D.func,stateReducer:D.func,itemCount:D.number,id:D.string,environment:D.shape({addEventListener:D.func.isRequired,removeEventListener:D.func.isRequired,document:D.shape({createElement:D.func.isRequired,getElementById:D.func.isRequired,activeElement:D.any.isRequired,body:D.any.isRequired}).isRequired,Node:D.func.isRequired}),suppressRefError:D.bool,scrollIntoView:D.func,selectedItem:D.any,isOpen:D.bool,inputValue:D.string,highlightedIndex:D.number,labelId:D.string,inputId:D.string,menuId:D.string,getItemId:D.func});function fn(e,r){var t=r.refKey;e||console.error('downshift: The ref prop "'+t+'" from getMenuProps was not applied correctly on your menu element.')}function Td(e,r){var t=r.refKey,o=t!=="ref",i=!mi(e);i&&!o&&!an.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&o&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+t+'"'),!an.isForwardRef(e)&&!wi(e)[t]&&console.error('downshift: You must apply the ref prop "'+t+'" from getRootProps onto your root element.')}function Fd(e,r){return r.changes}qr(function(e,r){yi(e,r)},200);var Ct={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:Fd,scrollIntoView:bi,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function Wd(){var e=S.useRef(!0);return S.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var Jt={environment:D.shape({addEventListener:D.func.isRequired,removeEventListener:D.func.isRequired,document:D.shape({createElement:D.func.isRequired,getElementById:D.func.isRequired,activeElement:D.any.isRequired,body:D.any.isRequired}).isRequired,Node:D.func.isRequired}),itemToString:D.func,itemToKey:D.func,stateReducer:D.func},Li=he({},Jt,{getA11yStatusMessage:D.func,highlightedIndex:D.number,defaultHighlightedIndex:D.number,initialHighlightedIndex:D.number,isOpen:D.bool,defaultIsOpen:D.bool,initialIsOpen:D.bool,selectedItem:D.any,initialSelectedItem:D.any,defaultSelectedItem:D.any,id:D.string,labelId:D.string,menuId:D.string,getItemId:D.func,toggleButtonId:D.string,onSelectedItemChange:D.func,onHighlightedIndexChange:D.func,onStateChange:D.func,onIsOpenChange:D.func,scrollIntoView:D.func}),Pd=ct(ct({},Li),{items:D.array.isRequired,isItemDisabled:D.func});ct(ct({},Ct),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var Vd=he({},Li,{items:D.array.isRequired,isItemDisabled:D.func,inputValue:D.string,defaultInputValue:D.string,initialInputValue:D.string,inputId:D.string,onInputValueChange:D.func});process.env.NODE_ENV;he({},Ct,{isItemDisabled:function(){return!1}});var Hd={stateReducer:Jt.stateReducer,itemToKey:Jt.itemToKey,environment:Jt.environment,selectedItems:D.array,initialSelectedItems:D.array,defaultSelectedItems:D.array,getA11yStatusMessage:D.func,activeIndex:D.number,initialActiveIndex:D.number,defaultActiveIndex:D.number,onActiveIndexChange:D.func,onSelectedItemsChange:D.func,keyNavigationNext:D.string,keyNavigationPrevious:D.string};Ct.itemToKey,Ct.stateReducer,Ct.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const Bd=S.forwardRef(({className:e,children:r,isFocused:t,isDisabled:o,...i},n)=>{const{size:s,color:a,isDisabled:l,hasMessage:c,hasGroup:d,downshift:u,isInvalid:v,menuPlacement:y}=Ie(),E=o??l,w=t??u.isOpen;return m.jsx("div",{ref:n,className:A(Gc({size:s,color:a,isDisabled:E,isFocused:!!w,isInvalid:v&&!u.isOpen,hasMessage:c,hasGroup:d,menuPlacement:u.isOpen?y:void 0}),e),"aria-disabled":E,"aria-invalid":v,role:"combobox",tabIndex:E?-1:0,...i,children:r})}),$d=({className:e,children:r,isMulti:t})=>m.jsx("div",{className:A(qc({isMulti:t}),e),children:r}),Qt=S.forwardRef(({isHidden:e,inputClassName:r,className:t,...o},i)=>{const{size:n,color:s}=Ie();return e?m.jsx("input",{ref:i,type:"text",className:t,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...o}):m.jsx("input",{ref:i,type:"text","data-qui":"SelectSearchInput",className:A(Xc({size:n,color:s}),r,e?"":t),...o})}),Kd=({className:e,children:r})=>{const{size:t,color:o}=Ie();return m.jsx("div",{className:A(Zc({size:t,color:o}),e),children:r})},Gd=({className:e,children:r,data:t,isDisabled:o})=>{const{size:i,color:n,getOptionLabel:s}=Ie();return m.jsx("div",{className:A(Yc({size:i,color:n,isDisabled:o}),e),children:r||s(t)})},Ti=({className:e,children:r,data:t,isDisabled:o,isFocused:i,onRemove:n})=>{const{size:s,color:a,downshift:l,getOptionLabel:c}=Ie(),d=()=>{n?n(t):l.removeItem(t)};return m.jsxs("div",{className:A(Uc({size:s,color:a,isDisabled:o,isFocused:i}),e),children:[m.jsx("div",{className:Jc({size:s}),children:r||c(t)}),!o&&m.jsx("div",{className:Qc({size:s,color:a,isDisabled:!1}),onClick:d,children:m.jsx(sr,{className:"w-3 h-3"})})]})},Fi=({color:e,className:r,children:t,onClick:o,isDisabled:i,...n})=>{const{size:s,color:a,isDisabled:l,downshift:c}=Ie(),d=i??l,u=c.selectedItems.length>0;if(d||!u)return null;const v=y=>{y.stopPropagation(),o?o(y):c.clearSelection()};return m.jsx("div",{className:A(hi({size:s,color:e||a,isDisabled:d}),r),onClick:v,role:"button",tabIndex:0,"aria-label":"Clear selection",...n,children:t||m.jsx(Qs,{})})},qd=({className:e,children:r,onClick:t,isDisabled:o,...i})=>{const{size:n,color:s,isDisabled:a,downshift:l}=Ie(),c=o??a,d=l.inputValue.length>0&&l.isSearchable;if(c||!d)return null;const u=v=>{c||(v.preventDefault(),v.stopPropagation(),t?t(v):(l.setInputValue(""),l.clearSelection()))};return m.jsx("div",{"data-qui":"SelectIndicator",className:A(hi({size:n,color:s,isDisabled:c}),"cursor-pointer",e),onClick:u,onMouseDown:v=>{v.preventDefault(),v.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...i,children:r||m.jsx(sr,{})})},Wi=S.forwardRef(({color:e,className:r,children:t,onClick:o,isDisabled:i,...n},s)=>{const{size:a,color:l,isDisabled:c,downshift:d}=Ie(),u=i??c,v=d.isOpen,y=w=>{u||(w.preventDefault(),w.stopPropagation(),o?o(w):d.toggleMenu())},E=w=>{w.preventDefault(),w.stopPropagation()};return m.jsx("div",{ref:s,"data-qui":"SelectIndicator",className:A(ed({size:a,color:e||l,isDisabled:u}),"cursor-pointer",r),onClick:E,onMouseDown:y,role:"button",tabIndex:-1,"aria-label":v?"Close menu":"Open menu","aria-expanded":v,"aria-disabled":u,...n,children:t||m.jsx(ea,{className:A("transition-transform duration-200",{"rotate-180":v})})})}),Xd=S.forwardRef(({className:e,children:r,placement:t,...o},i)=>{const{size:n,hasMessage:s,color:a,hasGroup:l}=Ie();return m.jsx("div",{"data-qui":"SelectMenu",ref:i,className:A(td({size:n,placement:t,hasMessage:s,color:a,hasGroup:l}),e),...o,children:r})}),Zd=S.forwardRef(({className:e,children:r,maxHeight:t=300,totalHeight:o,...i},n)=>{const{size:s}=Ie();return m.jsx(Vr,{scrollableNodeProps:{ref:n},className:A(rd({size:s}),e),style:{maxHeight:t},...i,children:o!==void 0?m.jsx("div",{style:{height:o,position:"relative",width:"100%"},children:r}):r})}),er=({className:e,children:r,data:t,isDisabled:o,isFocused:i,isSelected:n,innerProps:s,optionClassName:a,...l})=>{const{size:c,color:d,getOptionLabel:u}=Ie();return m.jsx("div",{"data-qui":"SelectOption",className:A(od({size:c,color:d,isDisabled:o,isFocused:i,isSelected:n}),a,e),...s,...l,children:r??u(t)})},Pi=({className:e,children:r,data:t,label:o,renderGroupHeading:i})=>{const{size:n}=Ie();return m.jsxs("div",{"data-qui":"SelectOptionGroup",className:A(nd({size:n}),e),children:[m.jsx(Yd,{children:i?i(t):o||t.label}),r]})},Yd=({className:e,children:r})=>{const{size:t,color:o}=Ie();return m.jsx("div",{className:A(id({size:t,color:o}),e),children:r})},Ar=({className:e,children:r,inputValue:t})=>{const{size:o}=Ie();return m.jsx("div",{className:A(ad({size:o}),e),children:r||`No options found${t?` for "${t}"`:""}`})},Ud=S.forwardRef(({className:e,children:r,...t},o)=>{const{size:i,color:n,isDisabled:s,hasMessage:a,isInvalid:l,setHasGroup:c,groupRef:d,menuVisible:u,menuPlacement:v}=Ie();return S.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),m.jsx("div",{ref:st([o,d]),"data-qui":"SelectGroup",className:A($c({size:i,color:n,isDisabled:s,hasMessage:a,isInvalid:l,isFocused:u,menuPlacement:u?v:void 0}),e),...t,children:r})}),Jd=S.forwardRef(({isAction:e=!1,className:r,isDisabled:t=!1,style:o,children:i,...n},s)=>{const{size:a,color:l,isDisabled:c}=Ie(),d=t||c,u=Kc({size:a,color:l,isDisabled:d,isAction:e});return m.jsx("div",{ref:s,"data-qui":"SelectIcon",className:A(u,r),style:o,role:e||n.onClick?"button":void 0,tabIndex:(e||n.onClick)&&!d?0:void 0,"aria-disabled":d,...n,children:i})}),Qd=({isOpen:e,usePortal:r,controlRef:t,children:o})=>{const[i,n]=S.useState(null);return S.useLayoutEffect(()=>{if(r&&e&&t.current){const s=()=>{var a;const l=(a=t.current)==null?void 0:a.closest('[data-qui="SelectGroup"]'),c=l||t.current;if(!c)return;const d=c.getBoundingClientRect();n(l?{top:d.top+window.scrollY+l.clientTop,left:d.left+window.scrollX+l.clientLeft,width:l.clientWidth,height:l.clientHeight}:{top:d.top+window.scrollY,left:d.left+window.scrollX,width:d.width,height:d.height})};return s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0)}}},[e,r,t]),e?r&&i?ir.createPortal(m.jsx("div",{"data-qui":"SelectPortal",style:{position:"absolute",top:i.top,left:i.left,width:i.width,height:i.height,zIndex:50,pointerEvents:"none"},children:m.jsx("div",{style:{pointerEvents:"auto"},children:o})}),document.body):m.jsx(m.Fragment,{children:o}):null},st=e=>r=>{e.forEach(t=>{typeof t=="function"?t(r):t!=null&&"current"in t&&(t.current=r)})},eu=S.forwardRef(({placeholder:e,noOptionsMessage:r,hideNoOptions:t=!1,loadingMessage:o="Loading...",isClearable:i=!1,isSearchClearable:n=!1,isLoading:s=!1,isRequired:a=!1,hideIndicators:l=!1,hideDropdownIndicator:c=!1,searchPlacement:d="trigger",hideSelectedOptions:u=!1,onFocus:v,onBlur:y,renderMenuHeader:E,formatOptionLabel:w,renderOption:b,optionClassName:C,renderValue:p,renderGroupHeading:f,inputRef:h,controlShouldRenderValue:g=!0,name:k,id:M,onSelectionComplete:I,"aria-label":j,"aria-labelledby":H,"aria-describedby":X,children:U,usePortal:oe=!1,virtualizeThreshold:G=100,className:F,inputClassName:x,..._},O)=>{const{size:Q,isInvalid:N,isDisabled:R,hasGroup:K,downshift:T,options:z=[],getOptionLabel:q,getOptionValue:V,isOptionDisabled:W,menuPlacement:Y,setMenuPlacement:ee,menuVisible:J,setMenuVisible:te,inputClassName:L}=Ie(),ue=x||L,P=S.useMemo(()=>{if(b)return b;if(w)return({data:se})=>w(se)},[b,w]),be=S.useRef(null),ge=h||be,ce=S.useRef(null),Vi=S.useRef(null),Zr=S.useRef(null),{isOpen:De,openMenu:Hi,selectedItem:Yr,inputValue:Te,highlightedIndex:Ze,getToggleButtonProps:Ur,getMenuProps:Bi,getInputProps:Jr,getItemProps:cr,isMulti:Ot,isSearchable:Fe,multipleSelection:$i}=T,{getDropdownProps:Ki}=$i;S.useLayoutEffect(()=>{if(!De||!ce.current)return;const se=ce.current.getBoundingClientRect(),ye=window.innerHeight-se.bottom;ee(ye<300?"top":"bottom")},[De,ee]),S.useLayoutEffect(()=>{const se=De&&!(t&&T.filteredItems.length===0);return te(se),()=>te(!1)},[De,t,T.filteredItems.length,te]);const je=Ot?T.selectedItems??[]:Yr?[Yr]:[],dr=je.length>0,Gi=n&&!!Te&&!R&&!l,Qr=i&&(dr||!!Te)&&!R&&!l,eo=!c&&!l,qi=!dr&&(!Fe||!Te)||!g,to={},ro={};Object.entries(_).forEach(([se,ye])=>{se.startsWith("data-")||se.startsWith("aria-")||se==="role"?to[se]=ye:ro[se]=ye});const oo=S.useMemo(()=>st([ce,O]),[O]),no=Bi({},{suppressRefError:!0}),gt=Ki({preventKeyAction:De}),ur={ref:ge,disabled:R,required:a,name:k,id:M,"aria-label":j,"aria-labelledby":H,"aria-describedby":X,"aria-invalid":N,onFocus:v,onBlur:y,...ro},Xi=Fe?(Jr==null?void 0:Jr({...ur,...gt}))??ur:{...ur,...gt},{ref:io,...pr}=Xi,gr=S.useMemo(()=>st([io]),[io]),Zi=se=>je.some(ye=>V(ye)===V(se)),so=se=>u?se.filter(ye=>!Zi(ye)):se,Yi=se=>u?se.map(ye=>({...ye,options:so(ye.options)})).filter(ye=>ye.options.length>0):se,Je=Ko(z)?[]:so(T.filteredItems),Ui={sm:22,md:28,lg:36}[Q]??28,ht=Je.length>=G,zt=Hc({count:ht?Je.length:0,getScrollElement:()=>Zr.current,estimateSize:()=>Ui,overscan:5});S.useEffect(()=>{ht&&De&&Ze>=0&&Ze<Je.length&&zt.scrollToIndex(Ze,{align:"auto"})},[Ze,ht,De]);const{registerOnSelectionComplete:ao}=Ie();S.useEffect(()=>{if(I)return ao(I)},[I,ao]);const Ji=Fe?{}:Ur({disabled:R,...gt,ref:st([oo,gt.ref])});return m.jsxs("div",{className:A({relative:!K,"flex-1 min-w-0":K}),children:[m.jsxs(Bd,{"data-qui":"SelectControl",className:F,...Fe?{ref:st([oo,gt.ref])}:Ji,...to,isFocused:J,isDisabled:R,onClick:se=>{se.defaultPrevented||(Fe?Hi():T.toggleMenu())},children:[U||m.jsxs($d,{isMulti:Ot,children:[Ot&&g&&je.map((se,ye)=>m.jsx(Ti,{data:se,index:ye,isDisabled:R,children:p?p(se):void 0},V(se))),!Ot&&dr&&g&&!Fe&&m.jsx("div",{className:"flex items-center gap-2",children:m.jsx(Gd,{data:je[0],isDisabled:R,children:p?p(je[0]):q(je[0])})}),Fe&&d==="trigger"?m.jsx(Qt,{ref:gr,...pr,className:F,inputClassName:ue,placeholder:e}):m.jsxs(m.Fragment,{children:[m.jsx(Qt,{ref:gr,...pr,className:F,inputClassName:ue,isHidden:!0,readOnly:!0,value:je.map(se=>V(se)).join(",")}),qi&&m.jsx(Kd,{children:e})]})]}),m.jsxs("div",{className:A("flex items-center size-fit gap-1",{hidden:!Qr&&!eo}),children:[Gi&&m.jsx(qd,{}),Qr&&m.jsx(Fi,{}),eo&&m.jsx(Wi,{...Fe?Ur({disabled:R,"aria-label":De?"Close menu":"Open menu"}):{}})]})]}),!De&&m.jsx("div",{ref:no.ref,style:{display:"none"},"aria-hidden":"true"}),m.jsx(Qd,{isOpen:De,usePortal:oe,controlRef:ce,children:(()=>{const{ref:se,...ye}=no,Qi=st([Vi,se]);return t&&T.filteredItems.length===0?m.jsx("div",{...ye,style:{display:"none"},"aria-hidden":"true"}):m.jsxs(Xd,{ref:Qi,...ye,placement:Y,children:[E&&E(T),Fe&&d==="menu"&&m.jsx("div",{className:"p-2",children:m.jsx(Qt,{ref:gr,...pr,className:F,inputClassName:ue,autoFocus:!0,placeholder:e,onClick:Ce=>Ce.stopPropagation()})}),m.jsx(Zd,{ref:Zr,totalHeight:ht?zt.getTotalSize():void 0,children:s?m.jsx("div",{className:sd({size:Q}),children:o}):T.filteredItems.length===0?m.jsx(Ar,{inputValue:Te,children:typeof r=="function"?r(Te):r}):Ko(z)?(()=>{const Ce=Yi(z);return Ce.length===0?m.jsx(Ar,{inputValue:Te,children:typeof r=="function"?r(Te):r}):Ce.map((ke,Qe)=>m.jsx(Pi,{data:ke,label:ke.label,options:ke.options,renderGroupHeading:f,children:ke.options.map(Ne=>{const Ve=V(Ne),He=je.some(ts=>V(ts)===Ve),Be=T.filteredItems.indexOf(Ne),et=Ze===Be,Rt=W(Ne),es=cr({item:Ne,index:Be});return m.jsx(er,{...es,data:Ne,isDisabled:Rt,isFocused:et,isSelected:He,optionClassName:C,children:P?P({data:Ne,isFocused:et,isSelected:He,isDisabled:Rt}):void 0},`${Ve}-${Be}`)})},`${ke.label}-${Qe}`))})():Je.length===0?m.jsx(Ar,{inputValue:Te,children:typeof r=="function"?r(Te):r}):ht?zt.getVirtualItems().map(Ce=>{const ke=Je[Ce.index],Qe=V(ke),Ne=je.some(Rt=>V(Rt)===Qe),Ve=T.filteredItems.indexOf(ke),He=Ze===Ve,Be=W(ke),et=cr({item:ke,index:Ve});return m.jsx("div",{"data-index":Ce.index,ref:zt.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Ce.start}px)`},children:m.jsx(er,{...et,data:ke,isDisabled:Be,isFocused:He,isSelected:Ne,optionClassName:C,children:P?P({data:ke,isFocused:He,isSelected:Ne,isDisabled:Be}):void 0})},Ce.key)}):Je.map(Ce=>{const ke=V(Ce),Qe=je.some(et=>V(et)===ke),Ne=T.filteredItems.indexOf(Ce),Ve=Ze===Ne,He=W(Ce),Be=cr({item:Ce,index:Ne});return m.jsx(er,{...Be,data:Ce,isDisabled:He,isFocused:Ve,isSelected:Qe,optionClassName:C,children:P?P({data:Ce,isFocused:Ve,isSelected:Qe,isDisabled:He}):void 0},`${ke}-${Ne}`)})})]})})()})]})});Ud.displayName="Select.Group";Jd.displayName="Select.Icon";Qt.displayName="Select.Input";Ti.displayName="Select.MultiValue";Fi.displayName="Select.ClearIndicator";Wi.displayName="Select.DropdownIndicator";er.displayName="Select.Option";Pi.displayName="Select.OptionGroup";const tu=eu;tu.displayName="Select.Field";S.createContext(void 0);const ru=({active:e,disabled:r,error:t,isOpen:o,className:i})=>A("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!r,"text-inactive-text":r,"bg-primary hover:bg-primary-hover":e&&!r,"text-negative":t&&!e&&!r,"bg-primary-hover text-body":o&&!e&&!r,"text-body":!e&&!r&&!t,"hover:bg-primary-hover hover:text-tab-active-fg":!r&&!e},i),ou=S.forwardRef(({active:e,disabled:r,error:t,isOpen:o,className:i,children:n,as:s="div",...a},l)=>{const c=ru({active:e,disabled:r,error:t,isOpen:o,className:i});return m.jsx(s,{"data-qui":"ListItem",ref:l,className:c,"aria-disabled":r,"aria-selected":e,"aria-invalid":t,"aria-expanded":o,role:a.onClick?"button":"listitem",...a,children:n})});ou.displayName="ListItem";const nu=({lspProps:{lastError:e,reload:r}})=>{const[t,o]=S.useState(!1),i=()=>{r()},n=()=>{o(!1)};return S.useEffect(()=>{o(!!e)},[e]),t?m.jsxs(li,{depth:1,className:"flex items-center border-b px-2 py-1.5 text-xs",children:[m.jsxs("span",{className:"flex flex-1 justify-center gap-1",children:[m.jsx(Us,{className:"h-4 w-4 text-negative-text"}),m.jsxs("span",{children:["LSP not loaded."," ",m.jsx("button",{className:"text-primary underline",onClick:i,children:"Reload?"})]})]}),m.jsx(Zn,{color:"white",variant:"ghost",className:"focus:outline-none",children:m.jsx(Ys,{className:"h-4 w-4",onClick:n})})]}):null},iu={name:"4d",displayName:"%displayName%",description:"%description%",version:"1.0.0",publisher:"vscode",engines:{vscode:"0.10.x"},categories:["Programming Languages"],contributes:{languages:[{id:"4d",aliases:["4D","4d"],extensions:[".4dm",".4qs"],configuration:"./language-configuration.json"}],grammars:[{language:"4d",scopeName:"source.4dm",path:"./syntaxes/4d.tmLanguage.json"}]}},{registerFileUrl:lr,whenReady:su}=cs.registerExtension(iu,void 0,{system:!0});lr("./syntaxes/4d.tmLanguage.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",typeof document>"u"?require("url").pathToFileURL(__filename).href:ze&&ze.tagName.toUpperCase()==="SCRIPT"&&ze.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1592});lr("./language-configuration.json",new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",typeof document>"u"?require("url").pathToFileURL(__filename).href:ze&&ze.tagName.toUpperCase()==="SCRIPT"&&ze.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1723});lr("package.json",new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K",typeof document>"u"?require("url").pathToFileURL(__filename).href:ze&&ze.tagName.toUpperCase()==="SCRIPT"&&ze.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:1006});lr("package.nls.json",new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",typeof document>"u"?require("url").pathToFileURL(__filename).href:ze&&ze.tagName.toUpperCase()==="SCRIPT"&&ze.src||new URL("index.cjs.js",document.baseURI).href).toString(),{mimeType:"application/json",size:135});exports.Alerts=nu;exports.CodeEditor=qs;exports.CodeEditorProvider=_s;exports.FdLineNumbers=On;exports.LSPProvider=Ns;exports.SUPPORTED_THEMES=qt;exports._await=Fr;exports.configureServices=yn;exports.getFileSystemPath=_e;exports.getFunctionOffset=bs;exports.initMonacoUserConfiguration=xn;exports.isCssModel=kn;exports.jumpToLine=Cn;exports.jumpToSelection=In;exports.useCodeEditor=An;exports.useLSP=Es;
120
172
  //# sourceMappingURL=index.cjs.js.map