@arcgis/coding-components 4.32.0-next.39 → 4.32.0-next.40
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/arcgis-coding-components/{EM2Q3YBT.js → 5FIQMFIR.js} +2 -2
- package/dist/arcgis-coding-components/{HAESZUD6.js → 5QIEG2JZ.js} +2 -2
- package/dist/arcgis-coding-components/{MXKCKNFB.js → 6SG5NSIX.js} +2 -2
- package/dist/arcgis-coding-components/{O67SRZJC.js → 6YXBEFAC.js} +2 -2
- package/dist/arcgis-coding-components/{6DXXLR76.js → 7C6KHGG5.js} +2 -2
- package/dist/arcgis-coding-components/{3OWAUN5C.js → 7PMSLQM5.js} +2 -2
- package/dist/arcgis-coding-components/{W6E3UWOX.js → 7Q6JRW72.js} +2 -2
- package/dist/arcgis-coding-components/{OZQ2FJRX.js → B5FIAUY6.js} +2 -2
- package/dist/arcgis-coding-components/{OERQIKAX.js → CWKSCJBM.js} +2 -2
- package/dist/arcgis-coding-components/{AUCHXDB3.js → FJFHZ6T7.js} +2 -2
- package/dist/arcgis-coding-components/{VNH7T3C2.js → FUAXAAF3.js} +2 -2
- package/dist/arcgis-coding-components/{PXDMZVP6.js → GTQPQNRC.js} +2 -2
- package/dist/arcgis-coding-components/{OGVWXXKA.js → HLSBA6NN.js} +1 -1
- package/dist/arcgis-coding-components/{J45G5SCO.js → IXV6AMTK.js} +1 -1
- package/dist/arcgis-coding-components/{YAUWKXVB.js → JRKC4YT2.js} +2 -2
- package/dist/arcgis-coding-components/{BYC64NBJ.js → KWOR2565.js} +2 -2
- package/dist/arcgis-coding-components/{4DTOCZFP.js → L4OXW5HT.js} +2 -2
- package/dist/arcgis-coding-components/{HXPFYKPQ.js → M37XONCS.js} +2 -2
- package/dist/arcgis-coding-components/{2UI6DEMV.js → M73OILSQ.js} +2 -2
- package/dist/arcgis-coding-components/{TP4HGK6P.js → MJM432EZ.js} +2 -2
- package/dist/arcgis-coding-components/{FNBUXPXF.js → NKOIXFIG.js} +2 -2
- package/dist/arcgis-coding-components/{TXOZO35Y.js → PN23KUUS.js} +2 -2
- package/dist/arcgis-coding-components/{QIJRVRVB.js → QP74MWDR.js} +1 -1
- package/dist/arcgis-coding-components/{MPNNQNJM.js → QXDF6QB3.js} +2 -2
- package/dist/arcgis-coding-components/{OTP45K7C.js → R7EAKKZ6.js} +2 -2
- package/dist/arcgis-coding-components/{ADE5ROCQ.js → RHAT7VC4.js} +2 -2
- package/dist/arcgis-coding-components/{43GEWNKB.js → SYH5GOUL.js} +2 -2
- package/dist/arcgis-coding-components/{7K5JRLNT.js → SZFIBSIL.js} +1 -1
- package/dist/arcgis-coding-components/{OCEER3MA.js → UJYNX2CG.js} +2 -2
- package/dist/arcgis-coding-components/{CMRSSQBC.js → UUYCOABM.js} +2 -2
- package/dist/arcgis-coding-components/{M4CDE244.js → VT2VFTEY.js} +2 -2
- package/dist/arcgis-coding-components/{KALVHEU5.js → WGLKBRVR.js} +2 -2
- package/dist/arcgis-coding-components/{QRGMVFSD.js → ZDRCVFHP.js} +2 -2
- package/dist/arcgis-coding-components/{FAJSSRBD.js → ZOBMRSLN.js} +3 -3
- package/dist/arcgis-coding-components/{FV2A5T47.js → ZYKA45JF.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{rk as s}from"./
|
|
6
|
+
import{rk as s}from"./7PMSLQM5.js";var c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,a=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!l.call(t,n)&&n!==o&&c(t,n,{get:()=>e[n],enumerable:!(i=p(e,n))||i.enumerable});return t},d=(t,e,o)=>(a(t,e,"default"),o&&a(o,e,"default")),r={};d(r,s);var m={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:r.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:r.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:r.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:r.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},x={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{m as a,x as b};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{dk as a,ek as b,fk as c,gk as d,hk as e,ik as f,jk as g,kk as h,lk as i,mk as j,nk as k,ok as l,pk as m,qk as n}from"./
|
|
6
|
+
import{dk as a,ek as b,fk as c,gk as d,hk as e,ik as f,jk as g,kk as h,lk as i,mk as j,nk as k,ok as l,pk as m,qk as n}from"./7PMSLQM5.js";import"./SZFIBSIL.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as C,c as i,d as l,e as h}from"./
|
|
6
|
+
import{a as C,c as i,d as l,e as h}from"./QP74MWDR.js";import{c as F}from"./ZOBMRSLN.js";import"./M73OILSQ.js";import{a as y,u as T}from"./IXV6AMTK.js";import{ek as P,ik as k,lk as g,qk as f,uj as z}from"./7PMSLQM5.js";import"./SZFIBSIL.js";z();var j={False:"false",Null:"null",True:"true"},O={Break:"break",Continue:"continue",Else:"else",For:"for",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"};var $=["++","--"],V=["-","+","!","~"],W=["=","/=","*=","%=","+=","-="],R=["||","&&"],K=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var s={InvalidModuleUri:"InvalidModuleUri",ForInOfLoopInitializer:"ForInOfLoopInitializer",IdentifierExpected:"IdentifierExpected",InvalidEscapedReservedWord:"InvalidEscapedReservedWord",InvalidExpression:"InvalidExpression",InvalidFunctionIdentifier:"InvalidFunctionIdentifier",InvalidHexEscapeSequence:"InvalidHexEscapeSequence",InvalidLeftHandSideInAssignment:"InvalidLeftHandSideInAssignment",InvalidLeftHandSideInForIn:"InvalidLeftHandSideInForIn",InvalidTemplateHead:"InvalidTemplateHead",InvalidVariableAssignment:"InvalidVariableAssignment",KeyMustBeString:"KeyMustBeString",NoFunctionInsideBlock:"NoFunctionInsideBlock",NoFunctionInsideFunction:"NoFunctionInsideFunction",ModuleExportRootOnly:"ModuleExportRootOnly",ModuleImportRootOnly:"ModuleImportRootOnly",PunctuatorExpected:"PunctuatorExpected",TemplateOctalLiteral:"TemplateOctalLiteral",UnexpectedBoolean:"UnexpectedBoolean",UnexpectedEndOfScript:"UnexpectedEndOfScript",UnexpectedIdentifier:"UnexpectedIdentifier",UnexpectedKeyword:"UnexpectedKeyword",UnexpectedNull:"UnexpectedNull",UnexpectedNumber:"UnexpectedNumber",UnexpectedPunctuator:"UnexpectedPunctuator",UnexpectedString:"UnexpectedString",UnexpectedTemplate:"UnexpectedTemplate",UnexpectedToken:"UnexpectedToken"},H={[s.InvalidModuleUri]:"Module uri must be a text literal.",[s.ForInOfLoopInitializer]:"for-in loop variable declaration may not have an initializer.",[s.IdentifierExpected]:"'${value}' is an invalid identifier.",[s.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters.",[s.InvalidExpression]:"Invalid expression.",[s.InvalidFunctionIdentifier]:"'${value}' is an invalid function identifier.",[s.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence.",[s.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment.",[s.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in.",[s.InvalidTemplateHead]:"Invalid template structure.",[s.InvalidVariableAssignment]:"Invalid variable assignment.",[s.KeyMustBeString]:"Object property keys must be a word starting with a letter.",[s.NoFunctionInsideBlock]:"Functions cannot be declared inside of code blocks.",[s.NoFunctionInsideFunction]:"Functions cannot be declared inside another function.",[s.ModuleExportRootOnly]:"Module exports cannot be declared inside of code blocks.",[s.ModuleImportRootOnly]:"Module import cannot be declared inside of code blocks.",[s.PunctuatorExpected]:"'${value}' expected.",[s.TemplateOctalLiteral]:"Octal literals are not allowed in template literals.",[s.UnexpectedBoolean]:"Unexpected boolean literal.",[s.UnexpectedEndOfScript]:"Unexpected end of Arcade expression.",[s.UnexpectedIdentifier]:"Unexpected identifier.",[s.UnexpectedKeyword]:"Unexpected keyword.",[s.UnexpectedNull]:"Unexpected null literal.",[s.UnexpectedNumber]:"Unexpected number.",[s.UnexpectedPunctuator]:"Unexpected punctuator.",[s.UnexpectedString]:"Unexpected text literal.",[s.UnexpectedTemplate]:"Unexpected quasi '${value}'.",[s.UnexpectedToken]:"Unexpected token '${value}'."};var E=[[],[],[]];$.forEach(t=>E[t.length-1]?.push(t));V.forEach(t=>E[t.length-1]?.push(t));R.forEach(t=>E[t.length-1]?.push(t));W.forEach(t=>E[t.length-1]?.push(t));K.forEach(t=>E[t.length-1]?.push(t));var a={AlreadyDefined:"AlreadyDefined",ApiConflict:"ApiConflict",AssignedNeverUsed:"AssignedNeverUsed",DefinedNeverAssigned:"DefinedNeverAssigned",DefinedNeverUsed:"DefinedNeverUsed",EmptyBlockStatement:"EmptyBlockStatement",ExecutionError:"ExecutionError",InvalidApiFunctionUsage:"InvalidApiFunctionUsage",InvalidConstantIdentifier:"InvalidConstantIdentifier",InvalidPropertyIdentifier:"InvalidPropertyIdentifier",NoArgumentExpected:"NoArgumentExpected",NotADictionary:"NotADictionary",NotDefined:"NotDefined",NotEnoughArguments:"NotEnoughArguments",ProfileVariablesAreImmutable:"ProfileVariablesAreImmutable",ProfileVariablesConflict:"ProfileVariablesConflict",ReservedKeyword:"ReservedKeyword",TooManyArguments:"TooManyArguments",UnexpectedEmptyFunction:"UnexpectedEmptyFunction",UnexpectedPropertyIdentifier:"UnexpectedPropertyIdentifier",UnknownPropertyIdentifier:"UnknownPropertyIdentifier"},se={[a.AlreadyDefined]:"'${identifier}' is already defined.",[a.ApiConflict]:"'${identifier}' is already defined as an Arcade constant or function.",[a.AssignedNeverUsed]:"'${identifier}' is assigned but never used.",[a.DefinedNeverAssigned]:"'${identifier}' is defined but never assigned.",[a.DefinedNeverUsed]:"'${identifier}' is defined but never used.",[a.EmptyBlockStatement]:"Empty block statement.",[a.ExecutionError]:"Execution Error: '${stack}'",[a.InvalidApiFunctionUsage]:"Arcade function '${identifier}' not used in a call expression.",[a.InvalidConstantIdentifier]:"Invalid constant identifier, expecting ${list}.",[a.InvalidPropertyIdentifier]:"Invalid property identifier, expecting ${list}.",[a.NoArgumentExpected]:"Expecting no argument.",[a.NotADictionary]:"'${identifier}' doesn't have properties.",[a.NotDefined]:"'${identifier}' is not defined.",[a.NotEnoughArguments]:"Expecting at least ${min} argument(s).",[a.ProfileVariablesAreImmutable]:"Profile variables cannot be modified.",[a.ProfileVariablesConflict]:"'${identifier}' is already defined as a profile variable.",[a.ReservedKeyword]:"'${identifier}' is a reserved keyword.",[a.TooManyArguments]:"Too many arguments, expecting ${max}.",[a.UnexpectedEmptyFunction]:"Unexpected empty function '${identifier}'.",[a.UnexpectedPropertyIdentifier]:"Unexpected property identifier.",[a.UnknownPropertyIdentifier]:"Unknown property identifier '${identifier}'.",...H};var w=Object.values(O),q=Object.values(j);var le=q.map(t=>({label:t,kind:i.Constant})),ce=w.map(t=>({label:t,kind:i.Keyword})),he=[{label:"exportfunction",kind:i.Snippet,detail:"Export Function Statement",insertText:`export function \${1:functionName} ($2) {
|
|
7
7
|
$0
|
|
8
8
|
}`,insertTextMode:h.adjustIndentation,insertTextFormat:l.Snippet},{label:"exportvar",kind:i.Snippet,detail:"Export Variable Statement",insertText:"export var ${0:variableName}\n",insertTextMode:h.adjustIndentation,insertTextFormat:l.Snippet},{label:"for",kind:i.Snippet,detail:"For Loop Statement",insertText:"for (var ${1:i} = 0; ${1:i} < ${2:array.length}; ${1:i}++) {\n $0\n}",insertTextMode:h.adjustIndentation,insertTextFormat:l.Snippet},{label:"forin",kind:i.Snippet,detail:"For-In Loop Statement",insertText:"for (var ${1:i} in ${2:arrayOrObject}) {\n $0\n}",insertTextMode:h.adjustIndentation,insertTextFormat:l.Snippet},{label:"function",kind:i.Snippet,detail:"Function Statement",insertText:`function \${1:functionName} ($2) {
|
|
9
9
|
$0
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import"./
|
|
6
|
+
import"./SZFIBSIL.js";var e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".css",ws:`[
|
|
7
7
|
\r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r
|
|
8
8
|
]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};export{e as conf,t as language};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as b,c as r,d as _,e as n}from"./
|
|
6
|
+
import{a as b,c as r,d as _,e as n}from"./FUAXAAF3.js";import{b as l}from"./GTQPQNRC.js";import{a as g}from"./PN23KUUS.js";import{a as f}from"./ZOBMRSLN.js";import"./M73OILSQ.js";import{e as h,f as s,r as a,s as p,w as u}from"./B5FIAUY6.js";import{d,p as o}from"./IXV6AMTK.js";import"./7PMSLQM5.js";import"./SZFIBSIL.js";var v=h`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,m=class extends p{constructor(){super(...arguments),this.messages=g(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._colorizeStyle="",this._filterValue="",this.hideDocumentationActions=!1,this.loading=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedApiItem:16,apiLibrary:0,hideDocumentationActions:5,loading:5}}static{this.styles=v}load(){this._colorizeStyle=r(),this._themeChangedListener=_(()=>this._colorizeStyle=r())}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let t of this.apiLibrary??[])for(let i of t.items)if(i.name===this._selectedApiItem.name){this._selectedApiItem=i;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{d(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,t){if(!t)return;let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.completion.insertText??""))}_selectItem(e,t){e.stopPropagation(),this._selectedApiItem=t}_updateFilterValue(e){this._filterValue=e.currentTarget.value??""}renderApiCategory(e){let t=f(e.items,"name",this._filterValue);return t.length?s`<calcite-list-item-group .heading=${e.title}>${t.map(i=>s`<calcite-list-item .label=${o(i.completion.detail)} @calciteListItemSelect=${c=>this._emitItemSelected(c,i)} @keydown=${c=>this._emitItemSelected(c,i)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${c=>this._selectItem(c,i)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelectedAndClose(t,e)} ${l(t=>{t?.setFocus&&t.setFocus()})}>${this.messages.insert}</calcite-button><calcite-block open .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${l(t=>{t&&(t.innerHTML=n(e.examples),b(t).catch(console.error))})}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){let e=(this.apiLibrary??[]).map(i=>this.renderApiCategory(i)),t=e.every(i=>!i);return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list>${t?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};u("arcgis-language-api-panel",m);export{m as ArcgisLanguageApiPanel};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as Q,c as qV}from"./7K5JRLNT.js";function ds(n,e=0){return n[n.length-(1+e)]}function KP(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function Bt(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function qP(n,e){let t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function jP(n,e,t){return jV(n.length,i=>t(n[i],e))}function jV(n,e){let t=0,i=n-1;for(;t<=i;){let o=(t+i)/2|0,s=e(o);if(s<0)t=o+1;else if(s>0)i=o-1;else return o}return-(t+1)}function $P(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],o=[],s=[],r=[];for(let a of e){let l=t(a,i);l<0?o.push(a):l>0?s.push(a):r.push(a)}return n<o.length?$P(n,o,t):n<o.length+r.length?r[0]:$P(n-(o.length+r.length),s,t)}function kQ(n,e){let t=[],i;for(let o of n.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],t.push(i)):i.push(o);return t}function*W1(n,e){let t,i;for(let o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function z1(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function GP(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function V1(n){return n.filter(e=>!!e)}function zE(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function ZP(n){return!Array.isArray(n)||n.length===0}function mh(n){return Array.isArray(n)&&n.length>0}function Xs(n,e=t=>t){let t=new Set;return n.filter(i=>{let o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function mf(n,e){return n.length>0?n[0]:e}function en(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);let i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function Ac(n,e,t){let i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function H1(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function Cp(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function wp(n,e){for(let t of e)n.push(t)}function YP(n){return Array.isArray(n)?n:[n]}function GV(n,e,t){let i=XP(n,e),o=n.length,s=t.length;n.length=o+s;for(let r=o-1;r>=i;r--)n[r+s]=n[r];for(let r=0;r<s;r++)n[r+i]=t[r]}function VE(n,e,t,i){let o=XP(n,e),s=n.splice(o,t);return s===void 0&&(s=[]),GV(n,o,i),s}function XP(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}function ao(n,e){return(t,i)=>e(n(t),n(i))}function QP(...n){return(e,t)=>{for(let i of n){let o=i(e,t);if(!vp.isNeitherLessOrGreaterThan(o))return o}return vp.neitherLessOrGreaterThan}}function U1(n){return(e,t)=>-n(e,t)}var vp,Fr,JP,qn,Or,ct=Q(()=>{(function(n){function e(s){return s<0}n.isLessThan=e;function t(s){return s<=0}n.isLessThanOrEqual=t;function i(s){return s>0}n.isGreaterThan=i;function o(s){return s===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(vp||(vp={}));Fr=(n,e)=>n-e,JP=(n,e)=>Fr(n?1:0,e?1:0);qn=class{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},Or=class n{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new n(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new n(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||vp.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}};Or.empty=new Or(n=>{})});function tn(n){return typeof n=="string"}function nn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function eO(n){let e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function Wr(n){return typeof n=="number"&&!isNaN(n)}function HE(n){return!!n&&typeof n[Symbol.iterator]=="function"}function $1(n){return n===!0||n===!1}function zo(n){return typeof n>"u"}function pf(n){return!Mn(n)}function Mn(n){return zo(n)||n===null}function hs(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function K1(n){if(Mn(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function _f(n){return typeof n=="function"}function tO(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++)ZV(n[i],e[i])}function ZV(n,e){if(tn(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(_f(e)){try{if(n instanceof e)return}catch{}if(!Mn(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var yi=Q(()=>{});function ka(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?ka(i):i}),e}function iO(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(nO.call(t,i)){let o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!eO(o)&&e.push(o)}}return n}function q1(n,e){return UE(n,e,new Set)}function UE(n,e,t){if(Mn(n))return n;let i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){let o=[];for(let s of n)o.push(UE(s,e,t));return o}if(nn(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);let o={};for(let s in n)nO.call(n,s)&&(o[s]=UE(n[s],e,t));return t.delete(n),o}return n}function YV(n,e,t=!0){return nn(n)?(nn(e)&&Object.keys(e).forEach(i=>{i in n?t&&(nn(n[i])&&nn(e[i])?YV(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function on(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!on(n[t],e[t]))return!1}else{let o=[];for(i in n)o.push(i);o.sort();let s=[];for(i in e)s.push(i);if(s.sort(),!on(o,s))return!1;for(t=0;t<o.length;t++)if(!on(n[o[t]],e[o[t]]))return!1}return!0}function XV(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function bf(n){let e=[];for(let t of XV(n))typeof n[t]=="function"&&e.push(t);return e}function oO(n,e){let t=o=>function(){let s=Array.prototype.slice.call(arguments,0);return e(o,s)},i={};for(let o of n)i[o]=t(o);return i}var nO,Vo=Q(()=>{yi();nO=Object.prototype.hasOwnProperty});function sO(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{let s=o[0],r=e[s],a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),QV&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return sO(e,t)}function EQ(n,e,...t){let i=sO(e,t);return{value:i,original:i}}var QV,tt=Q(()=>{QV=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function gO(){if(!lO){lO=!0;let n=new Uint8Array(2);n[0]=1,n[1]=2,aO=new Uint16Array(n.buffer)[0]===513}return aO}var $E,vf,yp,xp,Sp,JV,cO,qE,eH,jE,tH,dO,G1,Z1,rO,iH,zr,Fl,lo,hO,nH,KE,fi,He,qt,Rc,Ea,oH,uO,us,fO,Da,TQ,sH,Y1,jn,aO,lO,GE,mO,pO,_O,NQ,gt=Q(()=>{tt();vf="en",yp=!1,xp=!1,Sp=!1,JV=!1,cO=!1,qE=!1,eH=!1,jE=!1,tH=!1,dO=!1,Z1=vf,rO=vf,Fl=globalThis;typeof Fl.vscode<"u"&&typeof Fl.vscode.process<"u"?lo=Fl.vscode.process:typeof process<"u"&&(lo=process);hO=typeof(($E=lo?.versions)===null||$E===void 0?void 0:$E.electron)=="string",nH=hO&&lo?.type==="renderer";if(typeof navigator=="object"&&!nH)zr=navigator.userAgent,yp=zr.indexOf("Windows")>=0,xp=zr.indexOf("Macintosh")>=0,jE=(zr.indexOf("Macintosh")>=0||zr.indexOf("iPad")>=0||zr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Sp=zr.indexOf("Linux")>=0,dO=zr?.indexOf("Mobi")>=0,qE=!0,G1=(p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||vf,Z1=G1,rO=navigator.language;else if(typeof lo=="object"){yp=lo.platform==="win32",xp=lo.platform==="darwin",Sp=lo.platform==="linux",JV=Sp&&!!lo.env.SNAP&&!!lo.env.SNAP_REVISION,eH=hO,tH=!!lo.env.CI||!!lo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,G1=vf,Z1=vf;let n=lo.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n),t=e.availableLanguages["*"];G1=e.locale,rO=e.osLocale,Z1=t||vf,iH=e._translationsConfigFile}catch{}cO=!0}else console.error("Unable to resolve platform.");KE=0;xp?KE=1:yp?KE=3:Sp&&(KE=2);fi=yp,He=xp,qt=Sp,Rc=cO,Ea=qE,oH=qE&&typeof Fl.importScripts=="function",uO=oH?Fl.origin:void 0,us=jE,fO=dO,Da=zr,TQ=Z1,sH=typeof Fl.postMessage=="function"&&!Fl.importScripts,Y1=(()=>{if(sH){let n=[];Fl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){let s=n[i];if(s.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),s.callback();return}}});let e=0;return t=>{let i=++e;n.push({id:i,callback:t}),Fl.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),jn=xp||jE?2:yp?1:3,aO=!0,lO=!1;GE=!!(Da&&Da.indexOf("Chrome")>=0),mO=!!(Da&&Da.indexOf("Firefox")>=0),pO=!!(!GE&&Da&&Da.indexOf("Safari")>=0),_O=!!(Da&&Da.indexOf("Edg/")>=0),NQ=!!(Da&&Da.indexOf("Android")>=0)});var $i,Lp=Q(()=>{$i={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var Ye,fs=Q(()=>{(function(n){function e(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}n.is=e;let t=Object.freeze([]);function i(){return t}n.empty=i;function*o(_){yield _}n.single=o;function s(_){return e(_)?_:o(_)}n.wrap=s;function r(_){return _||t}n.from=r;function*a(_){for(let C=_.length-1;C>=0;C--)yield _[C]}n.reverse=a;function l(_){return!_||_[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(_){return _[Symbol.iterator]().next().value}n.first=c;function d(_,C){for(let w of _)if(C(w))return!0;return!1}n.some=d;function h(_,C){for(let w of _)if(C(w))return w}n.find=h;function*u(_,C){for(let w of _)C(w)&&(yield w)}n.filter=u;function*f(_,C){let w=0;for(let y of _)yield C(y,w++)}n.map=f;function*g(..._){for(let C of _)yield*C}n.concat=g;function m(_,C,w){let y=w;for(let L of _)y=C(y,L);return y}n.reduce=m;function*b(_,C,w=_.length){for(C<0&&(C+=_.length),w<0?w+=_.length:w>_.length&&(w=_.length);C<w;C++)yield _[C]}n.slice=b;function v(_,C=Number.POSITIVE_INFINITY){let w=[];if(C===0)return[w,_];let y=_[Symbol.iterator]();for(let L=0;L<C;L++){let x=y.next();if(x.done)return[w,n.empty()];w.push(x.value)}return[w,{[Symbol.iterator](){return y}}]}n.consume=v})(Ye||(Ye={}))});var xi,vi,Qs=Q(()=>{xi=class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}};xi.Undefined=new xi(void 0);vi=class{constructor(){this._first=xi.Undefined,this._last=xi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===xi.Undefined}clear(){let e=this._first;for(;e!==xi.Undefined;){let t=e.next;e.prev=xi.Undefined,e.next=xi.Undefined,e=t}this._first=xi.Undefined,this._last=xi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new xi(e);if(this._first===xi.Undefined)this._first=i,this._last=i;else if(t){let s=this._last;this._last=i,i.prev=s,s.next=i}else{let s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==xi.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==xi.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==xi.Undefined&&e.next!==xi.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===xi.Undefined&&e.next===xi.Undefined?(this._first=xi.Undefined,this._last=xi.Undefined):e.next===xi.Undefined?(this._last=this._last.prev,this._last.next=xi.Undefined):e.prev===xi.Undefined&&(this._first=this._first.next,this._first.prev=xi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==xi.Undefined;)yield e.element,e=e.next}}});function rH(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let t of ZE)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}function Dp(n){let e=kp;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function Pc(n,e,t,i,o){if(e=Dp(e),o||(o=Ye.first(bO)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),Pc(n,e,t,i,o)}let s=Date.now(),r=n-1-i,a=-1,l=null;for(let c=1;!(Date.now()-s>=o.timeBudget);c++){let d=r-o.windowSize*c;e.lastIndex=Math.max(0,d);let h=aH(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function aH(n,e,t,i){let o;for(;o=n.exec(e);){let s=o.index||0;if(s<=t&&n.lastIndex>=t)return o;if(i>0&&s>i)return null}return null}var ZE,kp,bO,Cf=Q(()=>{fs();Qs();ZE="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";kp=rH();bO=new vi;bO.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function rt(n){Vc(n)||wO.onUnexpectedError(n)}function Lf(n){Vc(n)||wO.onUnexpectedExternalError(n)}function N2(n){if(n instanceof Error){let{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Tp.isErrorNoTelemetry(n)}}return n}function Vc(n){return n instanceof zl?!0:n instanceof Error&&n.name===Q1&&n.message===Q1}function SO(){let n=new Error(Q1);return n.name=n.message,n}function Hc(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function kf(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}var T2,wO,Q1,zl,J1,Tp,xt,mt=Q(()=>{T2=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tp.isErrorNoTelemetry(e)?new Tp(e.message+`
|
|
6
|
+
import{a as Q,c as qV}from"./SZFIBSIL.js";function ds(n,e=0){return n[n.length-(1+e)]}function KP(n){if(n.length===0)throw new Error("Invalid tail call");return[n.slice(0,n.length-1),n[n.length-1]]}function Bt(n,e,t=(i,o)=>i===o){if(n===e)return!0;if(!n||!e||n.length!==e.length)return!1;for(let i=0,o=n.length;i<o;i++)if(!t(n[i],e[i]))return!1;return!0}function qP(n,e){let t=n.length-1;e<t&&(n[e]=n[t]),n.pop()}function jP(n,e,t){return jV(n.length,i=>t(n[i],e))}function jV(n,e){let t=0,i=n-1;for(;t<=i;){let o=(t+i)/2|0,s=e(o);if(s<0)t=o+1;else if(s>0)i=o-1;else return o}return-(t+1)}function $P(n,e,t){if(n=n|0,n>=e.length)throw new TypeError("invalid index");let i=e[Math.floor(e.length*Math.random())],o=[],s=[],r=[];for(let a of e){let l=t(a,i);l<0?o.push(a):l>0?s.push(a):r.push(a)}return n<o.length?$P(n,o,t):n<o.length+r.length?r[0]:$P(n-(o.length+r.length),s,t)}function kQ(n,e){let t=[],i;for(let o of n.slice(0).sort(e))!i||e(i[0],o)!==0?(i=[o],t.push(i)):i.push(o);return t}function*W1(n,e){let t,i;for(let o of n)i!==void 0&&e(i,o)?t.push(o):(t&&(yield t),t=[o]),i=o;t&&(yield t)}function z1(n,e){for(let t=0;t<=n.length;t++)e(t===0?void 0:n[t-1],t===n.length?void 0:n[t])}function GP(n,e){for(let t=0;t<n.length;t++)e(t===0?void 0:n[t-1],n[t],t+1===n.length?void 0:n[t+1])}function V1(n){return n.filter(e=>!!e)}function zE(n){let e=0;for(let t=0;t<n.length;t++)n[t]&&(n[e]=n[t],e+=1);n.length=e}function ZP(n){return!Array.isArray(n)||n.length===0}function mh(n){return Array.isArray(n)&&n.length>0}function Xs(n,e=t=>t){let t=new Set;return n.filter(i=>{let o=e(i);return t.has(o)?!1:(t.add(o),!0)})}function mf(n,e){return n.length>0?n[0]:e}function en(n,e){let t=typeof e=="number"?n:0;typeof e=="number"?t=n:(t=0,e=n);let i=[];if(t<=e)for(let o=t;o<e;o++)i.push(o);else for(let o=t;o>e;o--)i.push(o);return i}function Ac(n,e,t){let i=n.slice(0,e),o=n.slice(e);return i.concat(t,o)}function H1(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.unshift(e))}function Cp(n,e){let t=n.indexOf(e);t>-1&&(n.splice(t,1),n.push(e))}function wp(n,e){for(let t of e)n.push(t)}function YP(n){return Array.isArray(n)?n:[n]}function GV(n,e,t){let i=XP(n,e),o=n.length,s=t.length;n.length=o+s;for(let r=o-1;r>=i;r--)n[r+s]=n[r];for(let r=0;r<s;r++)n[r+i]=t[r]}function VE(n,e,t,i){let o=XP(n,e),s=n.splice(o,t);return s===void 0&&(s=[]),GV(n,o,i),s}function XP(n,e){return e<0?Math.max(e+n.length,0):Math.min(e,n.length)}function ao(n,e){return(t,i)=>e(n(t),n(i))}function QP(...n){return(e,t)=>{for(let i of n){let o=i(e,t);if(!vp.isNeitherLessOrGreaterThan(o))return o}return vp.neitherLessOrGreaterThan}}function U1(n){return(e,t)=>-n(e,t)}var vp,Fr,JP,qn,Or,ct=Q(()=>{(function(n){function e(s){return s<0}n.isLessThan=e;function t(s){return s<=0}n.isLessThanOrEqual=t;function i(s){return s>0}n.isGreaterThan=i;function o(s){return s===0}n.isNeitherLessOrGreaterThan=o,n.greaterThan=1,n.lessThan=-1,n.neitherLessOrGreaterThan=0})(vp||(vp={}));Fr=(n,e)=>n-e,JP=(n,e)=>Fr(n?1:0,e?1:0);qn=class{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}},Or=class n{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new n(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new n(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(o=>((i||vp.isGreaterThan(e(o,t)))&&(i=!1,t=o),!0)),t}};Or.empty=new Or(n=>{})});function tn(n){return typeof n=="string"}function nn(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}function eO(n){let e=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof e}function Wr(n){return typeof n=="number"&&!isNaN(n)}function HE(n){return!!n&&typeof n[Symbol.iterator]=="function"}function $1(n){return n===!0||n===!1}function zo(n){return typeof n>"u"}function pf(n){return!Mn(n)}function Mn(n){return zo(n)||n===null}function hs(n,e){if(!n)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function K1(n){if(Mn(n))throw new Error("Assertion Failed: argument is undefined or null");return n}function _f(n){return typeof n=="function"}function tO(n,e){let t=Math.min(n.length,e.length);for(let i=0;i<t;i++)ZV(n[i],e[i])}function ZV(n,e){if(tn(e)){if(typeof n!==e)throw new Error(`argument does not match constraint: typeof ${e}`)}else if(_f(e)){try{if(n instanceof e)return}catch{}if(!Mn(n)&&n.constructor===e||e.length===1&&e.call(void 0,n)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}var yi=Q(()=>{});function ka(n){if(!n||typeof n!="object"||n instanceof RegExp)return n;let e=Array.isArray(n)?[]:{};return Object.entries(n).forEach(([t,i])=>{e[t]=i&&typeof i=="object"?ka(i):i}),e}function iO(n){if(!n||typeof n!="object")return n;let e=[n];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(nO.call(t,i)){let o=t[i];typeof o=="object"&&!Object.isFrozen(o)&&!eO(o)&&e.push(o)}}return n}function q1(n,e){return UE(n,e,new Set)}function UE(n,e,t){if(Mn(n))return n;let i=e(n);if(typeof i<"u")return i;if(Array.isArray(n)){let o=[];for(let s of n)o.push(UE(s,e,t));return o}if(nn(n)){if(t.has(n))throw new Error("Cannot clone recursive data-structure");t.add(n);let o={};for(let s in n)nO.call(n,s)&&(o[s]=UE(n[s],e,t));return t.delete(n),o}return n}function YV(n,e,t=!0){return nn(n)?(nn(e)&&Object.keys(e).forEach(i=>{i in n?t&&(nn(n[i])&&nn(e[i])?YV(n[i],e[i],t):n[i]=e[i]):n[i]=e[i]}),n):e}function on(n,e){if(n===e)return!0;if(n==null||e===null||e===void 0||typeof n!=typeof e||typeof n!="object"||Array.isArray(n)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(n)){if(n.length!==e.length)return!1;for(t=0;t<n.length;t++)if(!on(n[t],e[t]))return!1}else{let o=[];for(i in n)o.push(i);o.sort();let s=[];for(i in e)s.push(i);if(s.sort(),!on(o,s))return!1;for(t=0;t<o.length;t++)if(!on(n[o[t]],e[o[t]]))return!1}return!0}function XV(n){let e=[];for(;Object.prototype!==n;)e=e.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return e}function bf(n){let e=[];for(let t of XV(n))typeof n[t]=="function"&&e.push(t);return e}function oO(n,e){let t=o=>function(){let s=Array.prototype.slice.call(arguments,0);return e(o,s)},i={};for(let o of n)i[o]=t(o);return i}var nO,Vo=Q(()=>{yi();nO=Object.prototype.hasOwnProperty});function sO(n,e){let t;return e.length===0?t=n:t=n.replace(/\{(\d+)\}/g,(i,o)=>{let s=o[0],r=e[s],a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),QV&&(t="\uFF3B"+t.replace(/[aouei]/g,"$&$&")+"\uFF3D"),t}function p(n,e,...t){return sO(e,t)}function EQ(n,e,...t){let i=sO(e,t);return{value:i,original:i}}var QV,tt=Q(()=>{QV=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0});function gO(){if(!lO){lO=!0;let n=new Uint8Array(2);n[0]=1,n[1]=2,aO=new Uint16Array(n.buffer)[0]===513}return aO}var $E,vf,yp,xp,Sp,JV,cO,qE,eH,jE,tH,dO,G1,Z1,rO,iH,zr,Fl,lo,hO,nH,KE,fi,He,qt,Rc,Ea,oH,uO,us,fO,Da,TQ,sH,Y1,jn,aO,lO,GE,mO,pO,_O,NQ,gt=Q(()=>{tt();vf="en",yp=!1,xp=!1,Sp=!1,JV=!1,cO=!1,qE=!1,eH=!1,jE=!1,tH=!1,dO=!1,Z1=vf,rO=vf,Fl=globalThis;typeof Fl.vscode<"u"&&typeof Fl.vscode.process<"u"?lo=Fl.vscode.process:typeof process<"u"&&(lo=process);hO=typeof(($E=lo?.versions)===null||$E===void 0?void 0:$E.electron)=="string",nH=hO&&lo?.type==="renderer";if(typeof navigator=="object"&&!nH)zr=navigator.userAgent,yp=zr.indexOf("Windows")>=0,xp=zr.indexOf("Macintosh")>=0,jE=(zr.indexOf("Macintosh")>=0||zr.indexOf("iPad")>=0||zr.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Sp=zr.indexOf("Linux")>=0,dO=zr?.indexOf("Mobi")>=0,qE=!0,G1=(p({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||vf,Z1=G1,rO=navigator.language;else if(typeof lo=="object"){yp=lo.platform==="win32",xp=lo.platform==="darwin",Sp=lo.platform==="linux",JV=Sp&&!!lo.env.SNAP&&!!lo.env.SNAP_REVISION,eH=hO,tH=!!lo.env.CI||!!lo.env.BUILD_ARTIFACTSTAGINGDIRECTORY,G1=vf,Z1=vf;let n=lo.env.VSCODE_NLS_CONFIG;if(n)try{let e=JSON.parse(n),t=e.availableLanguages["*"];G1=e.locale,rO=e.osLocale,Z1=t||vf,iH=e._translationsConfigFile}catch{}cO=!0}else console.error("Unable to resolve platform.");KE=0;xp?KE=1:yp?KE=3:Sp&&(KE=2);fi=yp,He=xp,qt=Sp,Rc=cO,Ea=qE,oH=qE&&typeof Fl.importScripts=="function",uO=oH?Fl.origin:void 0,us=jE,fO=dO,Da=zr,TQ=Z1,sH=typeof Fl.postMessage=="function"&&!Fl.importScripts,Y1=(()=>{if(sH){let n=[];Fl.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,o=n.length;i<o;i++){let s=n[i];if(s.id===t.data.vscodeScheduleAsyncWork){n.splice(i,1),s.callback();return}}});let e=0;return t=>{let i=++e;n.push({id:i,callback:t}),Fl.postMessage({vscodeScheduleAsyncWork:i},"*")}}return n=>setTimeout(n)})(),jn=xp||jE?2:yp?1:3,aO=!0,lO=!1;GE=!!(Da&&Da.indexOf("Chrome")>=0),mO=!!(Da&&Da.indexOf("Firefox")>=0),pO=!!(!GE&&Da&&Da.indexOf("Safari")>=0),_O=!!(Da&&Da.indexOf("Edg/")>=0),NQ=!!(Da&&Da.indexOf("Android")>=0)});var $i,Lp=Q(()=>{$i={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}}});var Ye,fs=Q(()=>{(function(n){function e(_){return _&&typeof _=="object"&&typeof _[Symbol.iterator]=="function"}n.is=e;let t=Object.freeze([]);function i(){return t}n.empty=i;function*o(_){yield _}n.single=o;function s(_){return e(_)?_:o(_)}n.wrap=s;function r(_){return _||t}n.from=r;function*a(_){for(let C=_.length-1;C>=0;C--)yield _[C]}n.reverse=a;function l(_){return!_||_[Symbol.iterator]().next().done===!0}n.isEmpty=l;function c(_){return _[Symbol.iterator]().next().value}n.first=c;function d(_,C){for(let w of _)if(C(w))return!0;return!1}n.some=d;function h(_,C){for(let w of _)if(C(w))return w}n.find=h;function*u(_,C){for(let w of _)C(w)&&(yield w)}n.filter=u;function*f(_,C){let w=0;for(let y of _)yield C(y,w++)}n.map=f;function*g(..._){for(let C of _)yield*C}n.concat=g;function m(_,C,w){let y=w;for(let L of _)y=C(y,L);return y}n.reduce=m;function*b(_,C,w=_.length){for(C<0&&(C+=_.length),w<0?w+=_.length:w>_.length&&(w=_.length);C<w;C++)yield _[C]}n.slice=b;function v(_,C=Number.POSITIVE_INFINITY){let w=[];if(C===0)return[w,_];let y=_[Symbol.iterator]();for(let L=0;L<C;L++){let x=y.next();if(x.done)return[w,n.empty()];w.push(x.value)}return[w,{[Symbol.iterator](){return y}}]}n.consume=v})(Ye||(Ye={}))});var xi,vi,Qs=Q(()=>{xi=class n{constructor(e){this.element=e,this.next=n.Undefined,this.prev=n.Undefined}};xi.Undefined=new xi(void 0);vi=class{constructor(){this._first=xi.Undefined,this._last=xi.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===xi.Undefined}clear(){let e=this._first;for(;e!==xi.Undefined;){let t=e.next;e.prev=xi.Undefined,e.next=xi.Undefined,e=t}this._first=xi.Undefined,this._last=xi.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let i=new xi(e);if(this._first===xi.Undefined)this._first=i,this._last=i;else if(t){let s=this._last;this._last=i,i.prev=s,s.next=i}else{let s=this._first;this._first=i,i.next=s,s.prev=i}this._size+=1;let o=!1;return()=>{o||(o=!0,this._remove(i))}}shift(){if(this._first!==xi.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==xi.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==xi.Undefined&&e.next!==xi.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===xi.Undefined&&e.next===xi.Undefined?(this._first=xi.Undefined,this._last=xi.Undefined):e.next===xi.Undefined?(this._last=this._last.prev,this._last.next=xi.Undefined):e.prev===xi.Undefined&&(this._first=this._first.next,this._first.prev=xi.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==xi.Undefined;)yield e.element,e=e.next}}});function rH(n=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(let t of ZE)n.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}function Dp(n){let e=kp;if(n&&n instanceof RegExp)if(n.global)e=n;else{let t="g";n.ignoreCase&&(t+="i"),n.multiline&&(t+="m"),n.unicode&&(t+="u"),e=new RegExp(n.source,t)}return e.lastIndex=0,e}function Pc(n,e,t,i,o){if(e=Dp(e),o||(o=Ye.first(bO)),t.length>o.maxLen){let c=n-o.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,n+o.maxLen/2),Pc(n,e,t,i,o)}let s=Date.now(),r=n-1-i,a=-1,l=null;for(let c=1;!(Date.now()-s>=o.timeBudget);c++){let d=r-o.windowSize*c;e.lastIndex=Math.max(0,d);let h=aH(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){let c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function aH(n,e,t,i){let o;for(;o=n.exec(e);){let s=o.index||0;if(s<=t&&n.lastIndex>=t)return o;if(i>0&&s>i)return null}return null}var ZE,kp,bO,Cf=Q(()=>{fs();Qs();ZE="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";kp=rH();bO=new vi;bO.unshift({maxLen:1e3,windowSize:15,timeBudget:150})});function rt(n){Vc(n)||wO.onUnexpectedError(n)}function Lf(n){Vc(n)||wO.onUnexpectedExternalError(n)}function N2(n){if(n instanceof Error){let{name:e,message:t}=n,i=n.stacktrace||n.stack;return{$isError:!0,name:e,message:t,stack:i,noTelemetry:Tp.isErrorNoTelemetry(n)}}return n}function Vc(n){return n instanceof zl?!0:n instanceof Error&&n.name===Q1&&n.message===Q1}function SO(){let n=new Error(Q1);return n.name=n.message,n}function Hc(n){return n?new Error(`Illegal argument: ${n}`):new Error("Illegal argument")}function kf(n){return n?new Error(`Illegal state: ${n}`):new Error("Illegal state")}var T2,wO,Q1,zl,J1,Tp,xt,mt=Q(()=>{T2=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Tp.isErrorNoTelemetry(e)?new Tp(e.message+`
|
|
7
7
|
|
|
8
8
|
`+e.stack):new Error(e.message+`
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{b as f,c as a,d as b,e as _}from"./
|
|
6
|
+
import{b as f,c as a,d as b,e as _}from"./FUAXAAF3.js";import{b as l}from"./GTQPQNRC.js";import{a as p}from"./PN23KUUS.js";import{a as m}from"./ZOBMRSLN.js";import"./M73OILSQ.js";import{e as d,f as s,h as c,r,s as u,w as h}from"./B5FIAUY6.js";import{d as g}from"./IXV6AMTK.js";import"./7PMSLQM5.js";import"./SZFIBSIL.js";function v(o){return!Array.isArray(o)||!o.length?!1:Array.isArray(o[0].suggestions)}var $=d`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,n=class extends u{constructor(){super(...arguments),this._beforeBack=async()=>{this._selectedSuggestion=void 0},this.messages=p(),this._colorizeStyle="",this._filterValue="",this.arcgisClose=r({bubbles:!1}),this.arcgisItemSelected=r({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedSuggestion:16,suggestions:0}}static{this.styles=$}load(){this._colorizeStyle=a(),this._themeChangedListener=b(()=>this._colorizeStyle=a())}willUpdate(e){e.has("suggestions")&&this.suggestionsPropChanged()}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect(),this._themeChangedListener?.dispose()}suggestionsPropChanged(){this._selectedSuggestion=void 0}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{g(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_updateFilterValue(e){this._filterValue=e.currentTarget?.value??""}_emitItemSelected(e,t){let i=e;(!i.key||i.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(t.code))}_showSuggestionDetail(e,t){e.stopPropagation(),this._selectedSuggestion=t}_emitClose(){this.arcgisClose.emit()}renderSuggestionGroups(){return this.suggestions===void 0?null:v(this.suggestions)?this.suggestions.map(e=>s`<calcite-list-item-group .heading=${e.label}>${this.renderSuggestionListItems(e.suggestions)}</calcite-list-item-group>`):this.renderSuggestionListItems(this.suggestions)}renderSuggestionListItems(e){return e=m(e,"label",this._filterValue),e.length?e.map(t=>s`<calcite-list-item .label=${t.label} .description=${t.description} @calciteListItemSelect=${i=>this._emitItemSelected(i,t)} @keydown=${i=>this._emitItemSelected(i,t)} data-item=${t??c}><calcite-action slot=actions-end .text=${this.messages.expand??""} scale=s icon=chevron-right icon-flip-rtl @click=${i=>this._showSuggestionDetail(i,t)} data-item=${t??c}></calcite-action></calcite-list-item>`):s`<div class="notice-container">${this.messages.noitems}</div>`}renderSuggestionFlowItem(){let e=this._selectedSuggestion;return e?s`<calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .beforeBack=${this._beforeBack} selected><calcite-button width=half slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${t=>this._emitItemSelected(t,e)} data-item=${e??c} ${l(t=>void t?.setFocus())}>${this.messages.insert}</calcite-button><calcite-block open .heading=${e.label} .description=${e.description}><div .innerHTML=${_(e.documentation)??""}></div><pre><code ${l(t=>t===void 0?void 0:void f(t,e.code).catch(console.error))}></code></pre></calcite-block></calcite-flow-item>`:null}render(){return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .heading=${this.messages.suggestions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedSuggestion}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input><calcite-list>${this.renderSuggestionGroups()}</calcite-list></calcite-flow-item>${this.renderSuggestionFlowItem()}</calcite-flow>`}};h("arcgis-arcade-suggestions",n);export{n as ArcgisArcadeSuggestions};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as E,e as p,f as z,j as Ut,l as jt,q as X,r as It,t as Mt}from"./J45G5SCO.js";var Vt=";",tt=",",Ht=":";function gt(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var ke=(e,t)=>function(s,r){if(!globalThis.customElements)return;let i=(r??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(Ne)};function Ne([e,[t,o=""]]){if(customElements.get(e))return;let[s,r,n]=o.split(Vt),i=s?s?.split(tt).map(zt):void 0,c=i?.map(([l])=>l),a=class extends Ue{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(tt):void 0}static{this._syncMethods=n?.split(tt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var et=Object.defineProperty;function zt(e){let t=e.split(Ht);return t.length===1?[t[0],X(t[0])]:t}var Re=globalThis.HTMLElement??zt,Ue=class extends Re{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){et(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){et(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){et(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=gt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=this._store,r=Object.values(e).find(u=>u.tagName===o),n=`${o}--lazy`,i=r;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);let c=i.prototype,a=Element.prototype;Object.hasOwn(c,"isConnected")||(c.setAttribute=function(u,v){a.setAttribute.call(this.el,u,v)},c.removeAttribute=function(u){a.removeAttribute.call(this.el,u)},et(c,"isConnected",{get(){return Reflect.get(a,"isConnected",this.el)}})),!t._LitConstructor&&(t._LitConstructor=r,customElements.define(n,r)),r.lazy=this;let h=document.createElement(n);r.lazy=void 0,this._litElement=h,this._store=h,this._pendingAttributes.forEach(u=>{let v=this.getAttribute(u);h.attributeChangedCallback(u,null,v)}),Object.entries(s).forEach(je,h);let m=this.isConnected;(m||this._ancestorLoad)&&(h.connectedCallback?.(),m||h.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function je([e,t]){this[e]=t}var bt={};function Wt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,r])=>r.noAccessor?void 0:[s,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Mt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([r,[n]])=>(n&63)!==0))}}function qt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Bt=(e,t)=>e.manager.internals.members?.[t]?.[0];var st=Symbol.for("controller");var Kt=e=>typeof e=="object"&&e!==null&&(st in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var W;function T(e){W!==e&&(W=e,queueMicrotask(()=>{W===e&&(W=void 0)}))}function M(e){return W}var P=[];function rt(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function Jt(){return P}var I;function Ie(e){I!==e&&(I=e,queueMicrotask(()=>{I===e&&(I=void 0)}))}function Me(){let e=I;return I=void 0,e}var Ve=async(e,t)=>{let o=Ct(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(r=>t(r,s))}return o.exports},He=async e=>{let t=Ct(e);return await t.ready,t},Ct=e=>{let t=Me();if(t!==void 0)return t;let s=M().manager.internals.resolveExports(e);if(s!==void 0)return s;if(Kt(e))return e},q={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Yt;Yt=st;var $t=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Yt]=!0,this.ready=this._ready.promise,this._exports=Ft(this),this._exportWatchers=new Set;let t=e??M(new.target.name);this.component=t,this.component.addController(this),rt(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Ft(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return T(this.component),Ve}get useRef(){return T(this.component),He}get useRefSync(){return T(this.component),Ct}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await z(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(z)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Gt,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Gt,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){T(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Gt(e){p(e,void 0,this)}var Qt=$t;function Ft(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,r){if(!(ze.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,r)},set:(o,s,r,n)=>Reflect.set(o,s,r,n)});return t}var ze=new Set(["exports","_exports"]);function nt(e,t,o){let s=Object.keys(e),r=s.length;S===void 0&&queueMicrotask(G),S??(S=new Map);let n=S.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},S.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(s)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var S=void 0;function G(){Array.from(S?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),S=void 0}function it(e,t,o){var s;let r=t,n=e.manager.internals;(s=n.allWatchers)[r]??(s[r]=[]);let i=n.allWatchers[r],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Zt=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var r;s&2048&&((r=t.setters)[o]??(r[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=_t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if(q.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=_t,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,r=Bt(s,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=ot in i,l=ot in c;if(a&&l)return;let d=!a,h=!l,m=d?function(){let b=i.call(this),C=B.get(this);if(q.getter||C===void 0)return b;let O=C.manager.internals;b=O.accessorGetter[t](b,t);let g=O.getters[t]??Et;for(let $=0;$<g.length;$++)b=g[$](b,t);return b}:i,u=h?function(b){let C=i.call(this),O=B.get(this);if(O===void 0){c.call(this,b);return}let g=O.manager.isLit?b??void 0:qt(b,r),$=O.manager.internals;if(g===C)c.call(this,g);else{let Rt=q.setter?Et:$.setters[t]??Et;for(let H=0;H<Rt.length&&(g=Rt[H](g,C,t),g!==C);H++);g=$.accessorSetter[t](g,C,t),c.call(this,g),g!==C&&$.enabledWatchers[t]?.forEach(H=>H(g,C,t))}$.keyTrackers.length>0&&$?.firePropTrackers(t,b)}:c;d&&(m[ot]=!0),h&&(u[ot]=!0),Object.defineProperty(e,t,{...n,get:m,set:u})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Et=[],ot=Symbol(),_t=Symbol();function Xt(e,t,o){let s=e.manager.internals;return s.trackedValue!==_t&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((r,n)=>p(t,void 0,o===n?r:void 0)),o}function te(e,t,o){let s=Array.isArray(e)?e:[e],r=s.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};s.forEach(c=>nt(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&Xt(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function ee(e){q.readOnly=!0;try{return e()}finally{q.readOnly=!1}}var oe=e=>(...t)=>{let o=Jt(),s=new e(...t),r=s.exports;rt(o.at(-1));let n=s.component.manager.internals;n.markExports(s,r),s.watchExports(c=>n.markExports(s,c)),Ie(s);let i=[s.component,...o].reverse();return te(i,c=>c===void 0?void 0:We(s,c,r),r)};function We(e,{host:t,key:o,isReactive:s},r){let n=t,i=n[o]!==e.exports,c=n[o]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,n[o]),it(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(n[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?ee(()=>{n[o]=e.exports}):n[o]=e.exports})}var re=(e,t)=>new qe(e,t),qe=class extends Qt{constructor(e,t){let o="addController"in e,s=new Set;function r(a){s.add(a),!(st in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Zt(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Wt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=xt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=se,c.accessorSetter[a]=se,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),rt(void 0),T(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${xt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(Ge),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Fe),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ke)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&it(this.component,xt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Je),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(Ye,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Qe,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new E,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Ze),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=It(e,Be)}}},xt="autoDestroyDisabled",Be=1e3;var se=e=>e;function Ge(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Fe(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Ke(e){"triggerLoad"in e?await e.triggerLoad():await z(e.hostLoad,e)}function Je(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function Ye(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function Qe(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Ze(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var ne=e=>to(void 0,e);var Xe=class extends $t{constructor(e,t){super(e);let o=this.exports;try{T(this.component);let s=t(this.component,this),r=this.exports!==o;if(s instanceof Promise){r||this.setProvisionalExports(s);let n=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},to=oe(Xe);var es=ne;var ss=(e,t)=>(o={})=>ne((s,r)=>{let n=Ut(s.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},c=s;queueMicrotask(()=>r.onLifecycle(()=>jt(s.el,e("./assets"),({t9nLocale:l,t9nStrings:d,lang:h})=>{let m={...d,_lang:h,_t9nLocale:l,_loading:!1};r.exports=m;let u=d.componentLabel??d.widgetLabel;typeof u=="string"&&"label"in s&&s.label==null&&(s.label??(s.label=u)),a(c.messageOverrides)},o.name,t)));function a(l){let d=r.exports,h=d._original??d,m=ie(h,l);l&&(m._original=h),r.exports=m}return"messageOverrides"in c&&r.onLifecycle(()=>it(c,"messageOverrides",a)),o.blocking?(r.setProvisionalExports(i,!1),r.ready):i});function ie(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,r])=>{typeof r=="object"?o[s]=ie(e[s],r):o[s]=r??e[s]}),o}var at=globalThis,ct=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wt=Symbol(),ae=new WeakMap,F=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==wt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(ct&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=ae.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ae.set(o,t))}return t}toString(){return this.cssText}},ce=e=>new F(typeof e=="string"?e:e+"",void 0,wt),eo=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,r,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new F(o,e,wt)},At=(e,t)=>{if(ct)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),r=at.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},lt=ct?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return ce(o)})(e):e;var Lt=globalThis,ht=Lt.trustedTypes,le=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,Pt="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+x,oo=`<${St}>`,N=document,J=()=>N.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Tt=Array.isArray,me=e=>Tt(e)||typeof e?.[Symbol.iterator]=="function",Ot=`[
|
|
6
|
+
import{a as E,e as p,f as z,j as Ut,l as jt,q as X,r as It,t as Mt}from"./IXV6AMTK.js";var Vt=";",tt=",",Ht=":";function gt(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let o=t;return o.manager?.loadedCalled||o._offspring.push(e),o._postLoad.promise}return!1}var ke=(e,t)=>function(s,r){if(!globalThis.customElements)return;let i=(r??s??{}).resourcesUrl;i&&e.setAssetPath(i),Object.entries(t).forEach(Ne)};function Ne([e,[t,o=""]]){if(customElements.get(e))return;let[s,r,n]=o.split(Vt),i=s?s?.split(tt).map(zt):void 0,c=i?.map(([l])=>l),a=class extends Ue{static{this.observedAttributes=i?.map(([,l])=>l).filter(l=>l!=="")}static{this._properties=c}static{this._asyncMethods=r?r?.split(tt):void 0}static{this._syncMethods=n?.split(tt)}static{this._name=e}constructor(){!a._loadPromise&&(a._loadPromise=t(),a._initializePrototype()),super()}};customElements.define(e,a)}var et=Object.defineProperty;function zt(e){let t=e.split(Ht);return t.length===1?[t[0],X(t[0])]:t}var Re=globalThis.HTMLElement??zt,Ue=class extends Re{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new E,this._postLoaded=new E,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(this._initializeComponent.bind(this)).catch(t=>{this._postLoaded.reject(t),setTimeout(()=>{throw t})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){et(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(t){this._store[e]=t}})}static _bindAsync(e){et(this.prototype,e,{async value(...t){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...t)},configurable:!0})}static _bindSync(e){et(this.prototype,e,{value(...t){return this._litElement[e](...t)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,t=this;e._properties?.forEach(o=>{Object.hasOwn(this,o)&&(this._store[o]=t[o],delete t[o])})}attributeChangedCallback(e,t,o){this._litElement?.attributeChangedCallback(e,t,o),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=gt(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let t=this.constructor,o=t._name,s=this._store,r=Object.values(e).find(u=>u.tagName===o),n=`${o}--lazy`,i=r;for(;i&&!Object.hasOwn(i,"lumina");)i=Object.getPrototypeOf(i);let c=i.prototype,a=Element.prototype;Object.hasOwn(c,"isConnected")||(c.setAttribute=function(u,v){a.setAttribute.call(this.el,u,v)},c.removeAttribute=function(u){a.removeAttribute.call(this.el,u)},et(c,"isConnected",{get(){return Reflect.get(a,"isConnected",this.el)}})),!t._LitConstructor&&(t._LitConstructor=r,customElements.define(n,r)),r.lazy=this;let h=document.createElement(n);r.lazy=void 0,this._litElement=h,this._store=h,this._pendingAttributes.forEach(u=>{let v=this.getAttribute(u);h.attributeChangedCallback(u,null,v)}),Object.entries(s).forEach(je,h);let m=this.isConnected;(m||this._ancestorLoad)&&(h.connectedCallback?.(),m||h.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};function je([e,t]){this[e]=t}var bt={};function Wt(e,t){if(t){let o=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(o,([s,r])=>r.noAccessor?void 0:[s,[(r.readOnly?2048:0)|(r.state?32:16)]]).filter(Mt))}else{let o=e.constructor,s=o.__registerControllers?.(e)??void 0;if(o.__registerControllers=void 0,typeof s!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(s).filter(([r,[n]])=>(n&63)!==0))}}function qt(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var Bt=(e,t)=>e.manager.internals.members?.[t]?.[0];var st=Symbol.for("controller");var Kt=e=>typeof e=="object"&&e!==null&&(st in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);var W;function T(e){W!==e&&(W=e,queueMicrotask(()=>{W===e&&(W=void 0)}))}function M(e){return W}var P=[];function rt(e){if(e===void 0){P=[];return}let t=P.indexOf(e);P=t===-1?[...P,e]:P.slice(0,t+1),queueMicrotask(()=>{P=[]})}function Jt(){return P}var I;function Ie(e){I!==e&&(I=e,queueMicrotask(()=>{I===e&&(I=void 0)}))}function Me(){let e=I;return I=void 0,e}var Ve=async(e,t)=>{let o=Ct(e);if(o===void 0)return e;if(await o.ready,typeof t=="function"){let s=o.watchExports(r=>t(r,s))}return o.exports},He=async e=>{let t=Ct(e);return await t.ready,t},Ct=e=>{let t=Me();if(t!==void 0)return t;let s=M().manager.internals.resolveExports(e);if(s!==void 0)return s;if(Kt(e))return e},q={setter:!1,getter:!1,readOnly:!1},B=new WeakMap,Yt;Yt=st;var $t=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new E,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[Yt]=!0,this.ready=this._ready.promise,this._exports=Ft(this),this._exportWatchers=new Set;let t=e??M(new.target.name);this.component=t,this.component.addController(this),rt(this),this.component.manager===void 0||queueMicrotask(()=>this.catchUpLifecycle())}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(p),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?Ft(e):e,this._exportWatchers.forEach(p)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return T(this.component),Ve}get useRef(){return T(this.component),He}get useRefSync(){return T(this.component),Ct}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&p(e.hostConnected,e),this._callbacks.hostConnected.forEach(p),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&p(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(p),this._lifecycleCleanups.forEach(p),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await z(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(z)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&p(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(p),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&p(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(Gt,e)}triggerUpdated(e){let t=this;t.hostUpdated&&p(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(Gt,e)}triggerDestroy(){let e=this;e.hostDestroy&&p(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(p)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){T(this.component);let t=p(e);(Array.isArray(t)?t:[t]).forEach(s=>{typeof s=="function"?this._lifecycleCleanups.push(s):typeof s=="object"&&typeof s.remove=="function"&&this._lifecycleCleanups.push(s.remove)})}};function Gt(e){p(e,void 0,this)}var Qt=$t;function Ft(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(o,s,r){if(!(ze.has(s)&&s in o&&o[s]===t)&&(s in o||s in Promise.prototype||typeof s=="symbol"))return typeof o=="function"?o[s]:Reflect.get(o,s,r)},set:(o,s,r,n)=>Reflect.set(o,s,r,n)});return t}var ze=new Set(["exports","_exports"]);function nt(e,t,o){let s=Object.keys(e),r=s.length;S===void 0&&queueMicrotask(G),S??(S=new Map);let n=S.get(e);return n===void 0&&(n={callbacks:[],keyCount:r},S.set(e,n)),n.keyCount!==r&&(n.callbacks.forEach(i=>i(s)),n.callbacks=[],n.keyCount=r),n.callbacks.push(i=>{let c=l=>p(t,null,l),a=i[r];a===void 0?c(void 0):e[a]===o?c(a):c(void 0)}),o}var S=void 0;function G(){Array.from(S?.entries()??[]).forEach(([e,{callbacks:t}])=>{let o=Object.keys(e);t.forEach(s=>s(o))}),S=void 0}function it(e,t,o){var s;let r=t,n=e.manager.internals;(s=n.allWatchers)[r]??(s[r]=[]);let i=n.allWatchers[r],c=o,a=(l,d,h)=>p(c,null,l,d,h);return i.push(a),()=>{let l=i.indexOf(a);l!==-1&&i.splice(l,1)}}var Zt=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([o,[s]])=>{var r;s&2048&&((r=t.setters)[o]??(r[o]=[]),t.setters[o].push(t.readonlySetter))})},this.trackedValue=_t,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,o,s)=>{if(q.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let o=this.keyTrackers;this.trackedValue=_t,this.keyTrackers=[],o.forEach(s=>s(e,t))}getSetProxy(e){let t=this.component,o=t.constructor.prototype;if(this._getSetProxy(o,e,"class"),t.manager.isLit)return;let s=t.el.constructor.prototype;o!==s&&this._getSetProxy(s,e,"html")}_getSetProxy(e,t,o){let s=this.component,r=Bt(s,t),n;do n=Object.getOwnPropertyDescriptor(e,t);while(!n&&(e=Object.getPrototypeOf(e)));if(!n)return;let i=n.get,c=n.set,a=ot in i,l=ot in c;if(a&&l)return;let d=!a,h=!l,m=d?function(){let b=i.call(this),C=B.get(this);if(q.getter||C===void 0)return b;let O=C.manager.internals;b=O.accessorGetter[t](b,t);let g=O.getters[t]??Et;for(let $=0;$<g.length;$++)b=g[$](b,t);return b}:i,u=h?function(b){let C=i.call(this),O=B.get(this);if(O===void 0){c.call(this,b);return}let g=O.manager.isLit?b??void 0:qt(b,r),$=O.manager.internals;if(g===C)c.call(this,g);else{let Rt=q.setter?Et:$.setters[t]??Et;for(let H=0;H<Rt.length&&(g=Rt[H](g,C,t),g!==C);H++);g=$.accessorSetter[t](g,C,t),c.call(this,g),g!==C&&$.enabledWatchers[t]?.forEach(H=>H(g,C,t))}$.keyTrackers.length>0&&$?.firePropTrackers(t,b)}:c;d&&(m[ot]=!0),h&&(u[ot]=!0),Object.defineProperty(e,t,{...n,get:m,set:u})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Et=[],ot=Symbol(),_t=Symbol();function Xt(e,t,o){let s=e.manager.internals;return s.trackedValue!==_t&&s.trackedValue!==o&&s.firePropTrackers(void 0,void 0),s.keyTrackers.length===0&&queueMicrotask(()=>s.firePropTrackers(void 0,void 0)),s.trackedValue=o,s.keyTrackers.push((r,n)=>p(t,void 0,o===n?r:void 0)),o}function te(e,t,o){let s=Array.isArray(e)?e:[e],r=s.length+1,n=c=>{r-=1,c!==void 0&&(r=Math.min(r,0)),r===0&&t(c)};s.forEach(c=>nt(c,a=>n(a===void 0?void 0:{key:a,host:c,isReactive:!1}),o));let i=s.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return i&&Xt(i,c=>n(c===void 0?void 0:{key:c,host:i,isReactive:!0}),o),o}function ee(e){q.readOnly=!0;try{return e()}finally{q.readOnly=!1}}var oe=e=>(...t)=>{let o=Jt(),s=new e(...t),r=s.exports;rt(o.at(-1));let n=s.component.manager.internals;n.markExports(s,r),s.watchExports(c=>n.markExports(s,c)),Ie(s);let i=[s.component,...o].reverse();return te(i,c=>c===void 0?void 0:We(s,c,r),r)};function We(e,{host:t,key:o,isReactive:s},r){let n=t,i=n[o]!==e.exports,c=n[o]!==r,a=r!==e.exports;if(i&&!c&&a&&(n[o]=e.exports),t===e.component){if(s){let d=e.component.manager.internals;c&&d.markExports(e,n[o]),it(e.component,o,h=>{h!==e.exports&&d.markExports(e,h)})}e.assignedProperty=s?void 0:o}e.watchExports(()=>{if(n[o]===e.exports)return;let d=e.component.manager;d.internals.setters[o]?.includes(d.internals.readonlySetter)?ee(()=>{n[o]=e.exports}):n[o]=e.exports})}var re=(e,t)=>new qe(e,t),qe=class extends Qt{constructor(e,t){let o="addController"in e,s=new Set;function r(a){s.add(a),!(st in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function n(a){s.delete(a),a.controllerRemoved?.()}let i=e;if(i.addController=r,i.removeController=n,!o){let a=t??e.constructor.__forceUpdate;i.requestUpdate=()=>a(e)}super(e),this.internals=new Zt(this.component),this.destroyed=!1,this._updatePromise=new E,this._originalLifecycles={},this.isLit=o,this.component.manager=this,Wt(e,o),this._controllers=s,this.exports=void 0,this.hasDestroy=xt in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let c=this.internals;Object.keys(c.members).forEach(a=>{c.accessorGetter[a]=se,c.accessorSetter[a]=se,c.getSetProxy(a)}),o?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),rt(void 0),T(e),B.set(e.el,e),B.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,o=e.el===e;this._originalLifecycles={_connectedCallback:t||o?void 0:e.connectedCallback,_disconnectedCallback:t||o?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let s=this._connectedCallback.bind(this),r=this._disconnectedCallback.bind(this),n=this._update.bind(this),i=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:s,hostDisconnected:r,hostUpdate:n,hostUpdated:i}):(e.connectedCallback=s,e.disconnectedCallback=r,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=n,e.componentDidUpdate=i),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${xt} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,G(),e.enableReadonly?.(),this._controllers.forEach(Ge),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Fe),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Ke)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&it(this.component,xt,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(Je),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(Ye,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Qe,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new E,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Ze),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=It(e,Be)}}},xt="autoDestroyDisabled",Be=1e3;var se=e=>e;function Ge(e){"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)}function Fe(e){"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e)}async function Ke(e){"triggerLoad"in e?await e.triggerLoad():await z(e.hostLoad,e)}function Je(e){"triggerLoaded"in e?e.triggerLoaded():p(e.hostLoaded,e)}function Ye(e){"triggerUpdate"in e?e.triggerUpdate(this):p(e.hostUpdate,e,this)}function Qe(e){"triggerUpdated"in e?e.triggerUpdated(this):p(e.hostUpdated,e,this)}function Ze(e){"triggerDestroy"in e?e.triggerDestroy():p(e.hostDestroy,e)}var ne=e=>to(void 0,e);var Xe=class extends $t{constructor(e,t){super(e);let o=this.exports;try{T(this.component);let s=t(this.component,this),r=this.exports!==o;if(s instanceof Promise){r||this.setProvisionalExports(s);let n=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this._ready.reject(i),console.error(i)});this.onLoad(async()=>await n)}else(!r||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this._ready.reject(s),console.error(s)}}catchUpLifecycle(){}},to=oe(Xe);var es=ne;var ss=(e,t)=>(o={})=>ne((s,r)=>{let n=Ut(s.el),i={_lang:n.lang,_t9nLocale:n.t9nLocale,_loading:!0},c=s;queueMicrotask(()=>r.onLifecycle(()=>jt(s.el,e("./assets"),({t9nLocale:l,t9nStrings:d,lang:h})=>{let m={...d,_lang:h,_t9nLocale:l,_loading:!1};r.exports=m;let u=d.componentLabel??d.widgetLabel;typeof u=="string"&&"label"in s&&s.label==null&&(s.label??(s.label=u)),a(c.messageOverrides)},o.name,t)));function a(l){let d=r.exports,h=d._original??d,m=ie(h,l);l&&(m._original=h),r.exports=m}return"messageOverrides"in c&&r.onLifecycle(()=>it(c,"messageOverrides",a)),o.blocking?(r.setProvisionalExports(i,!1),r.ready):i});function ie(e,t){if(!t)return e;let o={...e};return Object.entries(t).forEach(([s,r])=>{typeof r=="object"?o[s]=ie(e[s],r):o[s]=r??e[s]}),o}var at=globalThis,ct=at.ShadowRoot&&(at.ShadyCSS===void 0||at.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wt=Symbol(),ae=new WeakMap,F=class{constructor(t,o,s){if(this._$cssResult$=!0,s!==wt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=o}get styleSheet(){let t=this.o,o=this.t;if(ct&&t===void 0){let s=o!==void 0&&o.length===1;s&&(t=ae.get(o)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ae.set(o,t))}return t}toString(){return this.cssText}},ce=e=>new F(typeof e=="string"?e:e+"",void 0,wt),eo=(e,...t)=>{let o=e.length===1?e[0]:t.reduce((s,r,n)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[n+1],e[0]);return new F(o,e,wt)},At=(e,t)=>{if(ct)e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of t){let s=document.createElement("style"),r=at.litNonce;r!==void 0&&s.setAttribute("nonce",r),s.textContent=o.cssText,e.appendChild(s)}},lt=ct?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let o="";for(let s of t.cssRules)o+=s.cssText;return ce(o)})(e):e;var Lt=globalThis,ht=Lt.trustedTypes,le=ht?ht.createPolicy("lit-html",{createHTML:e=>e}):void 0,Pt="$lit$",x=`lit$${Math.random().toFixed(9).slice(2)}$`,St="?"+x,oo=`<${St}>`,N=document,J=()=>N.createComment(""),Y=e=>e===null||typeof e!="object"&&typeof e!="function",Tt=Array.isArray,me=e=>Tt(e)||typeof e?.[Symbol.iterator]=="function",Ot=`[
|
|
7
7
|
\f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,he=/-->/g,de=/>/g,D=RegExp(`>|${Ot}(?:([^\\s"'>=/]+)(${Ot}*=${Ot}*(?:[^
|
|
8
8
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),pe=/'/g,ue=/"/g,ye=/^(?:script|style|textarea|title)$/i,Dt=e=>(t,...o)=>({_$litType$:e,strings:t,values:o}),cs=Dt(1),ls=Dt(2),hs=Dt(3),y=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),fe=new WeakMap,k=N.createTreeWalker(N,129);function ve(e,t){if(!Tt(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return le!==void 0?le.createHTML(t):t}var ge=(e,t)=>{let o=e.length-1,s=[],r,n=t===2?"<svg>":t===3?"<math>":"",i=K;for(let c=0;c<o;c++){let a=e[c],l,d,h=-1,m=0;for(;m<a.length&&(i.lastIndex=m,d=i.exec(a),d!==null);)m=i.lastIndex,i===K?d[1]==="!--"?i=he:d[1]!==void 0?i=de:d[2]!==void 0?(ye.test(d[2])&&(r=RegExp("</"+d[2],"g")),i=D):d[3]!==void 0&&(i=D):i===D?d[0]===">"?(i=r??K,h=-1):d[1]===void 0?h=-2:(h=i.lastIndex-d[2].length,l=d[1],i=d[3]===void 0?D:d[3]==='"'?ue:pe):i===ue||i===pe?i=D:i===he||i===de?i=K:(i=D,r=void 0);let u=i===D&&e[c+1].startsWith("/>")?" ":"";n+=i===K?a+oo:h>=0?(s.push(l),a.slice(0,h)+Pt+a.slice(h)+x+u):a+x+(h===-2?c:u)}return[ve(e,n+(e[o]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},Q=class e{constructor({strings:t,_$litType$:o},s){let r;this.parts=[];let n=0,i=0,c=t.length-1,a=this.parts,[l,d]=ge(t,o);if(this.el=e.createElement(l,s),k.currentNode=this.el.content,o===2||o===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=k.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(Pt)){let m=d[i++],u=r.getAttribute(h).split(x),v=/([.?@])?(.*)/.exec(m);a.push({type:1,index:n,name:v[2],strings:u,ctor:v[1]==="."?pt:v[1]==="?"?ut:v[1]==="@"?ft:U}),r.removeAttribute(h)}else h.startsWith(x)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(ye.test(r.tagName)){let h=r.textContent.split(x),m=h.length-1;if(m>0){r.textContent=ht?ht.emptyScript:"";for(let u=0;u<m;u++)r.append(h[u],J()),k.nextNode(),a.push({type:2,index:++n});r.append(h[m],J())}}}else if(r.nodeType===8)if(r.data===St)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(x,h+1))!==-1;)a.push({type:7,index:n}),h+=x.length-1}n++}}static createElement(t,o){let s=N.createElement("template");return s.innerHTML=t,s}};function R(e,t,o=e,s){if(t===y)return t;let r=s!==void 0?o.o?.[s]:o.l,n=Y(t)?void 0:t._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),n===void 0?r=void 0:(r=new n(e),r._$AT(e,o,s)),s!==void 0?(o.o??=[])[s]=r:o.l=r),r!==void 0&&(t=R(e,r._$AS(e,t.values),r,s)),t}var dt=class{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:o},parts:s}=this._$AD,r=(t?.creationScope??N).importNode(o,!0);k.currentNode=r;let n=k.nextNode(),i=0,c=0,a=s[0];for(;a!==void 0;){if(i===a.index){let l;a.type===2?l=new V(n,n.nextSibling,this,t):a.type===1?l=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(l=new mt(n,this,t)),this._$AV.push(l),a=s[++c]}i!==a?.index&&(n=k.nextNode(),i++)}return k.currentNode=N,r}p(t){let o=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,o),o+=s.strings.length-2):s._$AI(t[o])),o++}},V=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,o,s,r){this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=s,this.options=r,this.v=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,o=this._$AM;return o!==void 0&&t?.nodeType===11&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=R(this,t,o),Y(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):me(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==f&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.T(N.createTextNode(t)),this._$AH=t}$(t){let{values:o,_$litType$:s}=t,r=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(ve(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===r)this._$AH.p(o);else{let n=new dt(r,this),i=n.u(this.options);n.p(o),this.T(i),this._$AH=n}}_$AC(t){let o=fe.get(t.strings);return o===void 0&&fe.set(t.strings,o=new Q(t)),o}k(t){Tt(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,s,r=0;for(let n of t)r===o.length?o.push(s=new e(this.O(J()),this.O(J()),this,this.options)):s=o[r],s._$AI(n),r++;r<o.length&&(this._$AR(s&&s._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},U=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,s,r,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}_$AI(t,o=this,s,r){let n=this.strings,i=!1;if(n===void 0)t=R(this,t,o,0),i=!Y(t)||t!==this._$AH&&t!==y,i&&(this._$AH=t);else{let c=t,a,l;for(t=n[0],a=0;a<n.length-1;a++)l=R(this,c[s+a],o,a),l===y&&(l=this._$AH[a]),i||=!Y(l)||l!==this._$AH[a],l===f?t=f:t!==f&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}i&&!r&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},pt=class extends U{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}},ut=class extends U{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==f)}},ft=class extends U{constructor(t,o,s,r,n){super(t,o,s,r,n),this.type=5}_$AI(t,o=this){if((t=R(this,t,o,0)??f)===y)return;let s=this._$AH,r=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==f&&(s===f||r);r&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},mt=class{constructor(t,o,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){R(this,t)}},be={M:Pt,P:x,A:St,C:1,L:ge,R:dt,D:me,V:R,I:V,H:U,N:ut,U:ft,B:pt,F:mt},so=Lt.litHtmlPolyfillSupport;so?.(Q,V),(Lt.litHtmlVersions??=[]).push("3.2.0");var Ee=(e,t,o)=>{let s=o?.renderBefore??t,r=s._$litPart$;if(r===void 0){let n=o?.renderBefore??null;s._$litPart$=r=new V(t.insertBefore(J(),n),n,void 0,o??{})}return r._$AI(e),r};var{is:ro,defineProperty:no,getOwnPropertyDescriptor:io,getOwnPropertyNames:ao,getOwnPropertySymbols:co,getPrototypeOf:lo}=Object,vt=globalThis,_e=vt.trustedTypes,ho=_e?_e.emptyScript:"",po=vt.reactiveElementPolyfillSupport,Z=(e,t)=>e,yt={toAttribute(e,t){switch(t){case Boolean:e=e?ho:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let o=e;switch(t){case Boolean:o=e!==null;break;case Number:o=e===null?null:Number(e);break;case Object:case Array:try{o=JSON.parse(e)}catch{o=null}}return o}},kt=(e,t)=>!ro(e,t),Ce={attribute:!0,type:String,converter:yt,reflect:!1,hasChanged:kt};Symbol.metadata??=Symbol("metadata"),vt.litPropertyMetadata??=new WeakMap;var w=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,o=Ce){if(o.state&&(o.attribute=!1),this._$Ei(),this.elementProperties.set(t,o),!o.noAccessor){let s=Symbol(),r=this.getPropertyDescriptor(t,s,o);r!==void 0&&no(this.prototype,t,r)}}static getPropertyDescriptor(t,o,s){let{get:r,set:n}=io(this.prototype,t)??{get(){return this[o]},set(i){this[o]=i}};return{get(){return r?.call(this)},set(i){let c=r?.call(this);n.call(this,i),this.requestUpdate(t,c,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ce}static _$Ei(){if(this.hasOwnProperty(Z("elementProperties")))return;let t=lo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Z("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Z("properties"))){let o=this.properties,s=[...ao(o),...co(o)];for(let r of s)this.createProperty(r,o[r])}let t=this[Symbol.metadata];if(t!==null){let o=litPropertyMetadata.get(t);if(o!==void 0)for(let[s,r]of o)this.elementProperties.set(s,r)}this._$Eh=new Map;for(let[o,s]of this.elementProperties){let r=this._$Eu(o,s);r!==void 0&&this._$Eh.set(r,o)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let o=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let r of s)o.unshift(lt(r))}else t!==void 0&&o.push(lt(t));return o}static _$Eu(t,o){let s=o.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,o=this.constructor.elementProperties;for(let s of o.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return At(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,o,s){this._$AK(t,s)}_$EC(t,o){let s=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,s);if(r!==void 0&&s.reflect===!0){let n=(s.converter?.toAttribute!==void 0?s.converter:yt).toAttribute(o,s.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,o){let s=this.constructor,r=s._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let n=s.getPropertyOptions(r),i=typeof n.converter=="function"?{fromAttribute:n.converter}:n.converter?.fromAttribute!==void 0?n.converter:yt;this._$Em=r,this[r]=i.fromAttribute(o,n.type),this._$Em=null}}requestUpdate(t,o,s){if(t!==void 0){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??kt)(this[t],o))return;this.P(t,o,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,o,s){this._$AL.has(t)||this._$AL.set(t,o),s.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(o){Promise.reject(o)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[r,n]of s)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1,o=this._$AL;try{t=this.shouldUpdate(o),t?(this.willUpdate(o),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(o)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(o)}willUpdate(t){}_$AE(t){this._$EO?.forEach(o=>o.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(o=>this._$EC(o,this[o])),this._$EU()}updated(t){}firstUpdated(t){}};w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[Z("elementProperties")]=new Map,w[Z("finalized")]=new Map,po?.({ReactiveElement:w}),(vt.reactiveElementVersions??=[]).push("2.0.4");var A=class extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let o=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=Ee(o,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return y}};A._$litElement$=!0,A.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:A});var uo=globalThis.litElementPolyfillSupport;uo?.({LitElement:A});(globalThis.litElementVersions??=[]).push("4.1.0");var _={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},j=e=>(...t)=>({_$litDirective$:e,values:t}),L=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,s){this.t=t,this._$AM=o,this.i=s}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};var we=j(class extends L{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let o=e.element.classList;for(let s of this.st)s in t||(o.remove(s),this.st.delete(s));for(let s in t){let r=!!t[s];r===this.st.has(s)||this.nt?.has(s)||(r?(o.add(s),this.st.add(s)):(o.remove(s),this.st.delete(s)))}return y}});var Ae="important",mo=" !"+Ae,yo=j(class extends L{constructor(e){if(super(e),e.type!==_.ATTRIBUTE||e.name!=="style"||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,o)=>{let s=e[o];return s==null?t:t+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(e,[t]){let{style:o}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?o.removeProperty(s):o[s]=null);for(let s in t){let r=t[s];if(r!=null){this.ft.add(s);let n=typeof r=="string"&&r.endsWith(mo);s.includes("-")||n?o.setProperty(s,n?r.slice(0,-11):r,n?Ae:""):o[s]=r}}return y}});var{I:vo}=be;var Le=e=>e.strings===void 0,Oe=()=>document.createComment(""),mr=(e,t,o)=>{let s=e._$AA.parentNode,r=t===void 0?e._$AB:t._$AA;if(o===void 0){let n=s.insertBefore(Oe(),r),i=s.insertBefore(Oe(),r);o=new vo(n,i,e,e.options)}else{let n=o._$AB.nextSibling,i=o._$AM,c=i!==e;if(c){let a;o._$AQ?.(e),o._$AM=e,o._$AP!==void 0&&(a=e._$AU)!==i._$AU&&o._$AP(a)}if(n!==r||c){let a=o._$AA;for(;a!==n;){let l=a.nextSibling;s.insertBefore(a,r),a=l}}}return o},yr=(e,t,o=e)=>(e._$AI(t,o),e),go={},Pe=(e,t=go)=>e._$AH=t,vr=e=>e._$AH,gr=e=>{e._$AP?.(!1,!0);let t=e._$AA,o=e._$AB.nextSibling;for(;t!==o;){let s=t.nextSibling;t.remove(),t=s}};var bo=j(class extends L{constructor(e){if(super(e),e.type!==_.PROPERTY&&e.type!==_.ATTRIBUTE&&e.type!==_.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Le(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===y||t===f)return t;let o=e.element,s=e.name;if(e.type===_.PROPERTY){if(t===o[s])return y}else if(e.type===_.BOOLEAN_ATTRIBUTE){if(!!t===o.hasAttribute(s))return y}else if(e.type===_.ATTRIBUTE&&o.getAttribute(s)===t+"")return y;return Pe(e),t}});var Se=(e="",t={},o=M())=>{let s={emit:r=>{e===""&&G();let n=new CustomEvent(e,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return o.el.dispatchEvent(n),n}};return e===""&&nt(o,r=>{e=r},s),s},Tr=Se.bind(null,"");var _o=()=>{},Co=class Te extends A{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=re(this),this._postLoad=this.constructor.lazy?._postLoad??new E,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new E,this._enableUpdating=this.enableUpdating,this.enableUpdating=_o;let t=Te.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let o=super.finalizeStyles(t),s=this.shadowRootOptions===bt;return this.runtime?.commonStyles===void 0||s?o:[this.runtime.commonStyles,...o]}static createProperty(t,o){let s=typeof o=="number"?o:Array.isArray(o)?o[0]:0,r=Array.isArray(o)?o[1]:void 0;super.createProperty(t,{attribute:s&1&&typeof t=="string"?X(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),...r})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(o=>{this._postLoaded.reject(o),setTimeout(()=>{throw o})}))}createRenderRoot(){let t=this.el.shadowRoot,o=this.constructor,s=o.shadowRootOptions,n=t??(s===bt?this.el:this.el.attachShadow(s));if(Object.defineProperty(this,"shadowRoot",{value:n}),t)return A.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=n.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...o.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return n}async _load(){let t=this.el._ancestorLoad??gt(this.el);t&&await t,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let o=this._offspring.filter(s=>!s.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async s=>await s.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,o,s){let r=o?.bind(this)??o;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,s),()=>this.el.removeEventListener(t,r,s)))}listenOn(t,o,s,r){let n=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(o,n,r),()=>t.removeEventListener(o,n,r)))}async componentOnReady(){return await this._postLoaded.promise,this}};Co.$createEvent=Se;function De(e){let t,o=r=>{t=new URL(r,globalThis.location?.href).href},s={...e,getAssetPath(r){let n=new URL(r,t);return n.origin!==globalThis.location?.origin?n.href:n.pathname},setAssetPath:o,customElement(r,n){n.runtime=s,n.tagName=r,customElements.get(r)||customElements.define(r,n)}};return o(e.defaultAssetPath),s}var zr=e=>typeof e=="object"&&e!=null?we(e):e;var qr=f;var $o=De({defaultAssetPath:"https://jsdev.arcgis.com/coding-components/next/",hydratedAttribute:"hydrated"}),{customElement:Fr,getAssetPath:Kr,setAssetPath:Jr}=$o;export{ke as a,bt as b,es as c,ss as d,eo as e,cs as f,y as g,f as h,_ as i,j,L as k,Le as l,mr as m,yr as n,Pe as o,vr as p,gr as q,Tr as r,Co as s,zr as t,qr as u,$o as v,Fr as w,Kr as x};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as b,h as c}from"./4DTOCZFP.js";import{a as P,b as A}from"./PXDMZVP6.js";import{a as E}from"./TXOZO35Y.js";import{a as f,b as v,d as s}from"./M4CDE244.js";import"./43GEWNKB.js";import"./QIJRVRVB.js";import"./OGVWXXKA.js";import"./FAJSSRBD.js";import"./2UI6DEMV.js";import{b as h,e as g,f as t,h as n,r,s as u,w as _,x as m}from"./OZQ2FJRX.js";import{a as d,g as p}from"./J45G5SCO.js";import{fk as x,uj as y}from"./3OWAUN5C.js";import"./7K5JRLNT.js";y();var D=g`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`,l=class extends u{constructor(){super(...arguments),this._codeEditorElt=P(),this._componentReadyDefer=new d,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=E(),this._modelId=p(),this._openArcadeHelp=()=>void window.open(b,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=r({bubbles:!1}),this.arcgisScriptChange=r({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0}}static{this.shadowRootOptions=h}static{this.styles=D}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await c(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=m("./assets");f(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await v();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let a=this._codeEditorElt.value?.value;this._executionResult=await c(i.definition,a,e,o=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,o],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._codeEditorElt.value?.insertText(e.detail).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[x.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${A(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:S,iconFlipRtl:w=!1,onClick:$=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${$} data-panel-name=${S??n} .iconFlipRtl=${w}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;switch(this.openedSidePanel){case"api":return t`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-language-api-panel>`;case"variables":return t`<arcgis-editor-variables class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile}></arcgis-editor-variables>`;case"suggestions":return t`<arcgis-arcade-suggestions class="side-panel flex-panel border-inline-start" .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`;default:return null}}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};_("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};
|
|
6
|
+
import{a as b,h as c}from"./L4OXW5HT.js";import{a as P,b as A}from"./GTQPQNRC.js";import{a as E}from"./PN23KUUS.js";import{a as f,b as v,d as s}from"./VT2VFTEY.js";import"./SYH5GOUL.js";import"./QP74MWDR.js";import"./HLSBA6NN.js";import"./ZOBMRSLN.js";import"./M73OILSQ.js";import{b as h,e as g,f as t,h as n,r,s as u,w as _,x as m}from"./B5FIAUY6.js";import{a as d,g as p}from"./IXV6AMTK.js";import{fk as x,uj as y}from"./7PMSLQM5.js";import"./SZFIBSIL.js";y();var D=g`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`,l=class extends u{constructor(){super(...arguments),this._codeEditorElt=P(),this._componentReadyDefer=new d,this._disposables=[],this._editorProfilePromise=Promise.resolve(void 0),this.messages=E(),this._modelId=p(),this._openArcadeHelp=()=>void window.open(b,"Arcade Help"),this._toggleSidePanel=e=>{if(!e.target)return;let i=e.target?.dataset.panelName??"none";this.openedSidePanel=i===this.openedSidePanel?"none":i,this.openedSidePanel==="none"&&this._codeEditorElt.value?.setFocus().catch(console.error)},this._consoleLogs=[],this._executingScript=!1,this._preparingArcade=!1,this._resultPanel="output",this._showExecutionPanel=!1,this.hideDocumentationActions=!1,this.hideSideBar=!1,this.openedSidePanel="none",this.script="",this.sideActionBarExpanded=!1,this.arcgisDiagnosticsChange=r({bubbles:!1}),this.arcgisScriptChange=r({bubbles:!1})}static{this.properties={_apiLibrary:16,_consoleLogs:16,_editorProfile:16,_executingScript:16,_executionResult:16,_preparingArcade:16,_resultPanel:16,_showExecutionPanel:16,editorInstance:32,editorOptions:0,hideDocumentationActions:5,hideSideBar:5,openedSidePanel:3,profile:0,script:1,sideActionBarExpanded:7,snippets:0,suggestions:0,testData:0}}static{this.shadowRootOptions=h}static{this.styles=D}get editorInstance(){return this._codeEditorElt.value?.editorInstance}async getEditorInstance(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.editorInstance}async getScript(){return await this._componentReadyDefer.promise,this._codeEditorElt.value?.value}async getTestResult(){if(!this.testData)return{type:"error",value:"Missing test data",error:null};let e=await this._editorProfilePromise;if(!e)return{type:"error",value:"Missing editor profile",error:null};await this._componentReadyDefer.promise;let i=this._codeEditorElt.value?.value;return await c(e.definition,i,this.testData)}async setFocus(){await this._componentReadyDefer.promise,await this._codeEditorElt.value?.setFocus()}async load(){let e=m("./assets");f(e),await this._updateEditorProfile()}willUpdate(e){(e.has("messages")||e.has("profile"))&&this._updateDataModelDeps(),e.has("testData")&&this._testDataChanged(),e.has("snippets")&&s.updateApiContextForModel(this._modelId,{snippets:this.snippets})}async loaded(){this._componentReadyDefer.resolve(),await this._updateApiLibrary();let e=await v();this._disposables.push(e.onDiagnosticsChange(i=>!this._preparingArcade&&this.arcgisDiagnosticsChange.emit(i.diagnostics))),this.testData&&this._addExecuteScriptAction(),await this._codeEditorElt.value?.setFocus()}disconnectedCallback(){for(super.disconnectedCallback();this._disposables.length;)this._disposables.pop()?.dispose()}async _updateDataModelDeps(){await this._updateEditorProfile(),await this._updateApiLibrary()}_testDataChanged(){!this.testData&&this._executeScriptAction&&(this._disposeSafely(this._executeScriptAction),this._executeScriptAction=void 0),this.testData&&!this._executeScriptAction&&this._addExecuteScriptAction(),this._showExecutionPanel&&this._executeScript().catch(console.error)}async _updateEditorProfile(){this._preparingArcade=!0;try{await s.setProfileForModel(this._modelId,this.profile,{locale:this.messages._t9nLocale,snippets:this.snippets}),this._editorProfile=s.getEditorProfileForModel(this._modelId)}catch{this._editorProfile=void 0}finally{this._editorProfilePromise=Promise.resolve(this._editorProfile),this._preparingArcade=!1}}async _updateApiLibrary(){this._apiLibrary=await s.getApiLibraryForModel(this._modelId)}async _executeScript(){let e=this.testData;if(!this._codeEditorElt.value||!e)return;let i=await this._editorProfilePromise;if(!i){this._executionResult={type:"error",value:"Missing editor profile",error:null};return}this._showExecutionPanel=!0,this._executingScript=!0,this._consoleLogs=[],setTimeout(()=>void(async()=>{let a=this._codeEditorElt.value?.value;this._executionResult=await c(i.definition,a,e,o=>setTimeout(()=>this._consoleLogs=[...this._consoleLogs,o],0)),this._executingScript=!1})(),0)}_toggleShowExecutionPanel(){this._showExecutionPanel=!this._showExecutionPanel}_toggleSideActionBarExpanded(){this.sideActionBarExpanded=!this.sideActionBarExpanded}_onCodeEditorValueChange(e){e.stopPropagation(),this.script=e.detail,this.arcgisScriptChange.emit(e.detail)}_insertAsSnippet(e){this._codeEditorElt.value?.insertSnippet(e.detail).catch(console.error)}_insertAsText(e){this._codeEditorElt.value?.insertText(e.detail).catch(console.error)}_onResultPanelChange(e){this._resultPanel=e.detail}_onExecutionPanelClose(){this._showExecutionPanel=!1}_addExecuteScriptAction(){let e=this.editorInstance?.addAction({id:"run-script",label:"Run Arcade Expression",keybindings:[x.F5],contextMenuGroupId:"code",contextMenuOrder:1,run:()=>{this.testData&&this._executeScript().catch(console.error)}});e&&(this._executeScriptAction=e,this._disposables.push(e))}_disposeSafely(e){let i=this._disposables.indexOf(e);i!==-1&&this._disposables.splice(i,1),e.dispose()}renderMainActionBar(){return this.testData?t`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .text=${this.messages.run??""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${()=>void this._executeScript().catch(console.error)}></calcite-action>${this._executionResult?t`<calcite-action .text=${this.messages.lastresults??""} .active=${this._showExecutionPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>`:null}</calcite-action-group></calcite-action-bar>`:null}renderMainPanel(){return t`<arcgis-code-editor class="flex-adjustable" .editorOptions=${this.editorOptions} .language=${s.languageId} .value=${this.script??""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${A(this._codeEditorElt)}></arcgis-code-editor>`}renderAction({id:e,label:i,icon:a,active:o,panelName:S,iconFlipRtl:w=!1,onClick:$=this._toggleSidePanel}){return t`<calcite-action id=${e??n} .text=${i} .icon=${a} .active=${o} @click=${$} data-panel-name=${S??n} .iconFlipRtl=${w}></calcite-action>${!this.sideActionBarExpanded&&t`<calcite-tooltip .referenceElement=${e}><span>${i}</span></calcite-tooltip>`||""}`}renderSideActionBar(){return this.hideSideBar?null:t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${!!this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({id:"profile-variables-action",label:this.messages.profilevariables??"",icon:"profile-variables",active:this.openedSidePanel==="variables",panelName:"variables"})}${this.renderAction({id:"function-action",label:this.messages.constantsandfunctions??"",icon:"function",active:this.openedSidePanel==="api",panelName:"api"})}${this.suggestions?.length?this.renderAction({id:"suggestions-action",label:this.messages.suggestions??"",icon:"lightbulb",active:this.openedSidePanel==="suggestions",panelName:"suggestions"}):null}${this.hideDocumentationActions?null:this.renderAction({id:"developer-website-action",label:this.messages.help??"",icon:"question",active:!1,panelName:"none",iconFlipRtl:this.messages._lang==="ar",onClick:this._openArcadeHelp})}</calcite-action-group></calcite-action-bar>`}renderSidePanel(){if(this.hideSideBar)return null;switch(this.openedSidePanel){case"api":return t`<arcgis-language-api-panel class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-language-api-panel>`;case"variables":return t`<arcgis-editor-variables class="side-panel flex-panel border-inline-start" .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none .variable=${this._editorProfile}></arcgis-editor-variables>`;case"suggestions":return t`<arcgis-arcade-suggestions class="side-panel flex-panel border-inline-start" .suggestions=${this.suggestions} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${this._toggleSidePanel} data-panel-name=none></arcgis-arcade-suggestions>`;default:return null}}renderResultsPanel(){return this._showExecutionPanel?t`<arcgis-arcade-results class="flex-adjustable" .openedResultPanel=${this._resultPanel} .loading=${this._executingScript} .result=${this._executionResult} .consoleLogs=${this._consoleLogs} @arcgisOpenedResultPanelChange=${this._onResultPanelChange} @arcgisClose=${this._onExecutionPanelClose}></arcgis-arcade-results>`:null}render(){return t`${this.renderMainActionBar()}<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable">${this.renderMainPanel()}${this.renderResultsPanel()}</div>${this.renderSidePanel()}${this.renderSideActionBar()}</div>`}};_("arcgis-arcade-editor",l);export{l as ArcgisArcadeEditor};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{a as t,b as e}from"./
|
|
6
|
+
import{a as t,b as e}from"./5FIQMFIR.js";import"./7PMSLQM5.js";import"./SZFIBSIL.js";var i=t,o={defaultToken:"invalid",tokenPostfix:".js",keywords:["break","case","catch","class","continue","const","constructor","debugger","default","delete","do","else","export","extends","false","finally","for","from","function","get","if","import","in","instanceof","let","new","null","return","set","static","super","switch","symbol","this","throw","true","try","typeof","undefined","var","void","while","with","yield","async","await","of"],typeKeywords:[],operators:e.operators,symbols:e.symbols,escapes:e.escapes,digits:e.digits,octaldigits:e.octaldigits,binarydigits:e.binarydigits,hexdigits:e.hexdigits,regexpctl:e.regexpctl,regexpesc:e.regexpesc,tokenizer:e.tokenizer};export{i as conf,o as language};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.32/esri/copyright.txt for details.
|
|
4
|
-
* v4.32.0-next.
|
|
4
|
+
* v4.32.0-next.40
|
|
5
5
|
*/
|
|
6
|
-
import{c as X}from"./
|
|
6
|
+
import{c as X}from"./ZOBMRSLN.js";import{mj as F,tj as Q,uj as se,zj as B}from"./7PMSLQM5.js";se();async function re(i){return await(await X()).colorize(i,"arcade",{tabSize:2})}async function Se(i){if(!i)return;let t=[...i.querySelectorAll("code.language-arcade")];await Promise.all(t.map(async n=>await ie(n,n.textContent)))}async function ie(i,t){!i||i.tagName!=="CODE"||(i.innerHTML=await re(t??""))}function Re(){let i=B.get(Q).getColorTheme();return F(i.tokenTheme.getColorMap())}function Te(i){return B.get(Q).onDidColorThemeChange(()=>i())}function H(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var I=H();function Y(i){I=i}var ee=/[&<>"']/,le=new RegExp(ee.source,"g"),te=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ae=new RegExp(te.source,"g"),oe={"&":"&","<":"<",">":">",'"':""","'":"'"},G=i=>oe[i];function w(i,t){if(t){if(ee.test(i))return i.replace(le,G)}else if(te.test(i))return i.replace(ae,G);return i}var ce=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ne(i){return i.replace(ce,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}var he=/(^|[^\[])\^/g;function m(i,t){i=typeof i=="string"?i:i.source,t=t||"";let n={replace:(e,s)=>(s=s.source||s,s=s.replace(he,"$1"),i=i.replace(e,s),n),getRegex:()=>new RegExp(i,t)};return n}var pe=/[^\w:]/g,ue=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function V(i,t,n){if(i){let e;try{e=decodeURIComponent(ne(n)).replace(pe,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!ue.test(n)&&(n=fe(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}var O={},ge=/^[^:]+:\/*[^/]*$/,de=/^([^:]+:)[\s\S]*$/,ke=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(i,t){O[" "+i]||(ge.test(i)?O[" "+i]=i+"/":O[" "+i]=U(i,"/",!0)),i=O[" "+i];let n=i.indexOf(":")===-1;return t.substring(0,2)==="//"?n?t:i.replace(de,"$1")+t:t.charAt(0)==="/"?n?t:i.replace(ke,"$1")+t:i+t}var j={exec:function(){}};function J(i,t){let n=i.replace(/\|/g,(r,l,a)=>{let c=!1,u=l;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),e=n.split(/ \|/),s=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;s<e.length;s++)e[s]=e[s].trim().replace(/\\\|/g,"|");return e}function U(i,t,n){let e=i.length;if(e===0)return"";let s=0;for(;s<e;){let r=i.charAt(e-s-1);if(r===t&&!n)s++;else if(r!==t&&n)s++;else break}return i.slice(0,e-s)}function me(i,t){if(i.indexOf(t[1])===-1)return-1;let n=i.length,e=0,s=0;for(;s<n;s++)if(i[s]==="\\")s++;else if(i[s]===t[0])e++;else if(i[s]===t[1]&&(e--,e<0))return s;return-1}function xe(i,t){!i||i.silent||(t&&console.warn("marked(): callback is deprecated since version 5.0.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/using_pro#async"),(i.sanitize||i.sanitizer)&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options"),(i.highlight||i.langPrefix!=="language-")&&console.warn("marked(): highlight and langPrefix parameters are deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-highlight."),i.mangle&&console.warn("marked(): mangle parameter is enabled by default, but is deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-mangle, or disable by setting `{mangle: false}`."),i.baseUrl&&console.warn("marked(): baseUrl parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-base-url."),i.smartypants&&console.warn("marked(): smartypants parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-smartypants."),i.xhtml&&console.warn("marked(): xhtml parameter is deprecated since version 5.0.0, should not be used and will be removed in the future. Instead use https://www.npmjs.com/package/marked-xhtml."),(i.headerIds||i.headerPrefix)&&console.warn("marked(): headerIds and headerPrefix parameters enabled by default, but are deprecated since version 5.0.0, and will be removed in the future. To clear this warning, install https://www.npmjs.com/package/marked-gfm-heading-id, or disable by setting `{headerIds: false}`."))}function K(i,t,n,e){let s=t.href,r=t.title?w(t.title):null,l=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:n,href:s,title:r,text:l,tokens:e.inlineTokens(l)};return e.state.inLink=!1,a}return{type:"image",raw:n,href:s,title:r,text:w(l)}}function be(i,t){let n=i.match(/^(\s+)(?:```)/);if(n===null)return t;let e=n[1];return t.split(`
|
|
7
7
|
`).map(s=>{let r=s.match(/^\s+/);if(r===null)return s;let[l]=r;return l.length>=e.length?s.slice(e.length):s}).join(`
|
|
8
8
|
`)}var C=class{constructor(t){this.options=t||I}space(t){let n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){let n=this.rules.block.code.exec(t);if(n){let e=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?e:U(e,`
|
|
9
9
|
`)}}}fences(t){let n=this.rules.block.fences.exec(t);if(n){let e=n[0],s=be(e,n[3]||"");return{type:"code",raw:e,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:s}}}heading(t){let n=this.rules.block.heading.exec(t);if(n){let e=n[2].trim();if(/#$/.test(e)){let s=U(e,"#");(this.options.pedantic||!s||/ $/.test(s))&&(e=s.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){let n=this.rules.block.blockquote.exec(t);if(n){let e=n[0].replace(/^ *>[ \t]?/gm,""),s=this.lexer.state.top;this.lexer.state.top=!0;let r=this.lexer.blockTokens(e);return this.lexer.state.top=s,{type:"blockquote",raw:n[0],tokens:r,text:e}}}list(t){let n=this.rules.block.list.exec(t);if(n){let e,s,r,l,a,c,u,g,k,d,h,y,_=n[1].trim(),A=_.length>1,x={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");let b=new RegExp(`^( {0,3}${_})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(y=!1,!(!(n=b.exec(t))||this.rules.block.hr.test(t)));){if(e=n[0],t=t.substring(e.length),g=n[2].split(`
|